]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blame - spl/configure
UBUNTU: Start new release
[mirror_ubuntu-artful-kernel.git] / spl / configure
CommitLineData
904dbe44
CIK
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
2078c8a7 3# Generated by GNU Autoconf 2.69 for spl 0.6.5.6.
904dbe44
CIK
4#
5#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7#
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
31fi
32
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79fi
80
81
82# IFS
83# We need space, tab and new line, in precisely that order. Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
90as_myself=
91case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100IFS=$as_save_IFS
101
102 ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107 as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112fi
113
114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there. '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135# Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174esac
175fi
176"
177 as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191 exitcode=1; echo positional parameters were not saved.
192fi
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199
200 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
201 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
202 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 PATH=/empty FPATH=/empty; export PATH FPATH
205 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
206 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
207test \$(( 1 + 1 )) = 2 || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210else
211 as_have_required=no
212fi
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217as_found=false
218for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219do
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
224 /*)
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
233fi
234fi
235 done;;
236 esac
237 as_found=false
238done
239$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242fi; }
243IFS=$as_save_IFS
244
245
246 if test "x$CONFIG_SHELL" != x; then :
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249# neutralization value for shells without unset; and this also
250# works around shells that cannot unset nonexistent variables.
251# Preserve -v and -x to the replacement shell.
252BASH_ENV=/dev/null
253ENV=/dev/null
254(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260esac
261exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262# Admittedly, this is quite paranoid, since all the known shells bail
263# out after a failed `exec'.
264$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265exit 255
266fi
267
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274 else
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276$0: including any error possibly output before this
277$0: message. Then install a modern shell, or manually run
278$0: the script under such a shell if you do have one."
279 fi
280 exit 1
281fi
282fi
283fi
284SHELL=${CONFIG_SHELL-/bin/sh}
285export SHELL
286# Unset more variables known to interfere with behavior of common tools.
287CLICOLOR_FORCE= GREP_OPTIONS=
288unset CLICOLOR_FORCE GREP_OPTIONS
289
290## --------------------- ##
291## M4sh Shell Functions. ##
292## --------------------- ##
293# as_fn_unset VAR
294# ---------------
295# Portably unset VAR.
296as_fn_unset ()
297{
298 { eval $1=; unset $1;}
299}
300as_unset=as_fn_unset
301
302# as_fn_set_status STATUS
303# -----------------------
304# Set $? to STATUS, without forking.
305as_fn_set_status ()
306{
307 return $1
308} # as_fn_set_status
309
310# as_fn_exit STATUS
311# -----------------
312# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313as_fn_exit ()
314{
315 set +e
316 as_fn_set_status $1
317 exit $1
318} # as_fn_exit
319
320# as_fn_mkdir_p
321# -------------
322# Create "$as_dir" as a directory, including parents if necessary.
323as_fn_mkdir_p ()
324{
325
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342$as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)$/{
352 s//\1/
353 q
354 }
355 /^X\(\/\).*/{
356 s//\1/
357 q
358 }
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366} # as_fn_mkdir_p
367
368# as_fn_executable_p FILE
369# -----------------------
370# Test if FILE is an executable regular file.
371as_fn_executable_p ()
372{
373 test -f "$1" && test -x "$1"
374} # as_fn_executable_p
375# as_fn_append VAR VALUE
376# ----------------------
377# Append the text in VALUE to the end of the definition contained in VAR. Take
378# advantage of any shell optimizations that allow amortized linear growth over
379# repeated appends, instead of the typical quadratic growth present in naive
380# implementations.
381if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
383 {
384 eval $1+=\$2
385 }'
386else
387 as_fn_append ()
388 {
389 eval $1=\$$1\$2
390 }
391fi # as_fn_append
392
393# as_fn_arith ARG...
394# ------------------
395# Perform arithmetic evaluation on the ARGs, and store the result in the
396# global $as_val. Take advantage of shells that can avoid forks. The arguments
397# must be portable across $(()) and expr.
398if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
400 {
401 as_val=$(( $* ))
402 }'
403else
404 as_fn_arith ()
405 {
406 as_val=`expr "$@" || test $? -eq 1`
407 }
408fi # as_fn_arith
409
410
411# as_fn_error STATUS ERROR [LINENO LOG_FD]
412# ----------------------------------------
413# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415# script with STATUS, using 1 if that was 0.
416as_fn_error ()
417{
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422 fi
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
425} # as_fn_error
426
427if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430else
431 as_expr=false
432fi
433
434if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436else
437 as_basename=false
438fi
439
440if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442else
443 as_dirname=false
444fi
445
446as_me=`$as_basename -- "$0" ||
447$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450$as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
453 q
454 }
455 /^X\/\(\/\/\)$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\).*/{
460 s//\1/
461 q
462 }
463 s/.*/./; q'`
464
465# Avoid depending upon Character Ranges.
466as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469as_cr_digits='0123456789'
470as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
479 p
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
485 b
486 :lineno
487 N
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 t loop
491 s/-\n.*//
492 ' >$as_me.lineno &&
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
504 # Exit status is that of the last command.
505 exit
506}
507
508ECHO_C= ECHO_N= ECHO_T=
509case `echo -n x` in #(((((
510-n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
517*)
518 ECHO_N='-n';;
519esac
520
521rm -f conf$$ conf$$.exe conf$$.file
522if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
527fi
528if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s='ln -s'
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536 as_ln_s='cp -pR'
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
540 as_ln_s='cp -pR'
541 fi
542else
543 as_ln_s='cp -pR'
544fi
545rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546rmdir conf$$.dir 2>/dev/null
547
548if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
553fi
554
555as_test_x='test -x'
556as_executable_p=as_fn_executable_p
557
558# Sed expression to map a string onto a valid CPP name.
559as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561# Sed expression to map a string onto a valid variable name.
562as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567test -n "$DJDIR" || exec 7<&0 </dev/null
568exec 6>&1
569
570# Name of the host.
571# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572# so uname gets run too.
573ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575#
576# Initializations.
577#
578ac_default_prefix=/usr/local
579ac_clean_files=
580ac_config_libobj_dir=.
581LIBOBJS=
582cross_compiling=no
583subdirs=
584MFLAGS=
585MAKEFLAGS=
586
587# Identity of this package.
588PACKAGE_NAME='spl'
589PACKAGE_TARNAME='spl'
2078c8a7
DJL
590PACKAGE_VERSION='0.6.5.6'
591PACKAGE_STRING='spl 0.6.5.6'
904dbe44
CIK
592PACKAGE_BUGREPORT=''
593PACKAGE_URL=''
594
595# Factoring default headers for most tests.
596ac_includes_default="\
597#include <stdio.h>
598#ifdef HAVE_SYS_TYPES_H
599# include <sys/types.h>
600#endif
601#ifdef HAVE_SYS_STAT_H
602# include <sys/stat.h>
603#endif
604#ifdef STDC_HEADERS
605# include <stdlib.h>
606# include <stddef.h>
607#else
608# ifdef HAVE_STDLIB_H
609# include <stdlib.h>
610# endif
611#endif
612#ifdef HAVE_STRING_H
613# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
614# include <memory.h>
615# endif
616# include <string.h>
617#endif
618#ifdef HAVE_STRINGS_H
619# include <strings.h>
620#endif
621#ifdef HAVE_INTTYPES_H
622# include <inttypes.h>
623#endif
624#ifdef HAVE_STDINT_H
625# include <stdint.h>
626#endif
627#ifdef HAVE_UNISTD_H
628# include <unistd.h>
629#endif"
630
631ac_subst_vars='am__EXEEXT_FALSE
632am__EXEEXT_TRUE
633LTLIBOBJS
634LIBOBJS
635CONFIG_KERNEL_FALSE
636CONFIG_KERNEL_TRUE
637CONFIG_USER_FALSE
638CONFIG_USER_TRUE
639DEBUG_KMEM_TRACKING
640DEBUG_KMEM
641DEBUG_SPL
642DEBUG_CFLAGS
643KERNELCPPFLAGS
644KERNELMAKE_PARAMS
645LINUX_SYMBOLS
646LINUX_VERSION
647LINUX_OBJ
648LINUX
649SPL_CONFIG
650ALIEN_VERSION
651ALIEN
652HAVE_ALIEN
653DPKGBUILD_VERSION
654DPKGBUILD
655HAVE_DPKGBUILD
656DPKG_VERSION
657DPKG
658HAVE_DPKG
659SRPM_DEFINE_COMMON
660SRPM_DEFINE_DKMS
661SRPM_DEFINE_KMOD
662SRPM_DEFINE_UTIL
663RPM_DEFINE_COMMON
664RPM_DEFINE_DKMS
665RPM_DEFINE_KMOD
666RPM_DEFINE_UTIL
667RPM_SPEC_DIR
668RPMBUILD_VERSION
669RPMBUILD
670HAVE_RPMBUILD
671RPM_VERSION
672RPM
673HAVE_RPM
674DEFAULT_PACKAGE
675VENDOR
676CPP
2078c8a7 677LT_SYS_LIBRARY_PATH
904dbe44
CIK
678OTOOL64
679OTOOL
680LIPO
681NMEDIT
682DSYMUTIL
683MANIFEST_TOOL
684RANLIB
685ac_ct_AR
686AR
687DLLTOOL
688OBJDUMP
689LN_S
690NM
691ac_ct_DUMPBIN
692DUMPBIN
693LD
694FGREP
695EGREP
696GREP
697SED
698LIBTOOL
699am__fastdepCC_FALSE
700am__fastdepCC_TRUE
701CCDEPMODE
702am__nodep
703AMDEPBACKSLASH
704AMDEP_FALSE
705AMDEP_TRUE
706am__quote
707am__include
708DEPDIR
709OBJEXT
710EXEEXT
711ac_ct_CC
712CPPFLAGS
713LDFLAGS
714CFLAGS
715CC
716am__untar
717am__tar
718AMTAR
719am__leading_dot
720SET_MAKE
721mkdir_p
722MKDIR_P
723INSTALL_STRIP_PROGRAM
724STRIP
725install_sh
726MAKEINFO
727AUTOHEADER
728AUTOMAKE
729AUTOCONF
730ACLOCAL
731VERSION
732PACKAGE
733CYGPATH_W
734am__isrc
735INSTALL_DATA
736INSTALL_SCRIPT
737INSTALL_PROGRAM
738AM_BACKSLASH
739AM_DEFAULT_VERBOSITY
740AM_DEFAULT_V
741AM_V
742MAINT
743MAINTAINER_MODE_FALSE
744MAINTAINER_MODE_TRUE
745target_os
746target_vendor
747target_cpu
748target
749host_os
750host_vendor
751host_cpu
752host
753build_os
754build_vendor
755build_cpu
756build
757SPL_META_LT_AGE
758SPL_META_LT_REVISION
759SPL_META_LT_CURRENT
760SPL_META_AUTHOR
761SPL_META_DATA
762SPL_META_ALIAS
763SPL_META_LICENSE
764RELEASE
765SPL_META_RELEASE
766SPL_META_VERSION
767SPL_META_NAME
768AWK
769target_alias
770host_alias
771build_alias
772LIBS
773ECHO_T
774ECHO_N
775ECHO_C
776DEFS
777mandir
778localedir
779libdir
780psdir
781pdfdir
782dvidir
783htmldir
784infodir
785docdir
786oldincludedir
787includedir
788runstatedir
789localstatedir
790sharedstatedir
791sysconfdir
792datadir
793datarootdir
794libexecdir
795sbindir
796bindir
797program_transform_name
798prefix
799exec_prefix
800PACKAGE_URL
801PACKAGE_BUGREPORT
802PACKAGE_STRING
803PACKAGE_VERSION
804PACKAGE_TARNAME
805PACKAGE_NAME
806PATH_SEPARATOR
807SHELL'
808ac_subst_files=''
809ac_user_opts='
810enable_option_checking
811enable_maintainer_mode
812enable_silent_rules
813enable_dependency_tracking
814enable_shared
815enable_static
816with_pic
817enable_fast_install
2078c8a7 818with_aix_soname
904dbe44
CIK
819with_gnu_ld
820with_sysroot
821enable_libtool_lock
822with_spec
823with_config
824enable_linux_builtin
825with_linux
826with_linux_obj
827enable_debug
828enable_debug_kmem
829enable_debug_kmem_tracking
830enable_atomic_spinlocks
831'
832 ac_precious_vars='build_alias
833host_alias
834target_alias
835CC
836CFLAGS
837LDFLAGS
838LIBS
839CPPFLAGS
2078c8a7 840LT_SYS_LIBRARY_PATH
904dbe44
CIK
841CPP'
842
843
844# Initialize some variables set by options.
845ac_init_help=
846ac_init_version=false
847ac_unrecognized_opts=
848ac_unrecognized_sep=
849# The variables have the same names as the options, with
850# dashes changed to underlines.
851cache_file=/dev/null
852exec_prefix=NONE
853no_create=
854no_recursion=
855prefix=NONE
856program_prefix=NONE
857program_suffix=NONE
858program_transform_name=s,x,x,
859silent=
860site=
861srcdir=
862verbose=
863x_includes=NONE
864x_libraries=NONE
865
866# Installation directory options.
867# These are left unexpanded so users can "make install exec_prefix=/foo"
868# and all the variables that are supposed to be based on exec_prefix
869# by default will actually change.
870# Use braces instead of parens because sh, perl, etc. also accept them.
871# (The list follows the same order as the GNU Coding Standards.)
872bindir='${exec_prefix}/bin'
873sbindir='${exec_prefix}/sbin'
874libexecdir='${exec_prefix}/libexec'
875datarootdir='${prefix}/share'
876datadir='${datarootdir}'
877sysconfdir='${prefix}/etc'
878sharedstatedir='${prefix}/com'
879localstatedir='${prefix}/var'
880runstatedir='${localstatedir}/run'
881includedir='${prefix}/include'
882oldincludedir='/usr/include'
883docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
884infodir='${datarootdir}/info'
885htmldir='${docdir}'
886dvidir='${docdir}'
887pdfdir='${docdir}'
888psdir='${docdir}'
889libdir='${exec_prefix}/lib'
890localedir='${datarootdir}/locale'
891mandir='${datarootdir}/man'
892
893ac_prev=
894ac_dashdash=
895for ac_option
896do
897 # If the previous option needs an argument, assign it.
898 if test -n "$ac_prev"; then
899 eval $ac_prev=\$ac_option
900 ac_prev=
901 continue
902 fi
903
904 case $ac_option in
905 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
906 *=) ac_optarg= ;;
907 *) ac_optarg=yes ;;
908 esac
909
910 # Accept the important Cygnus configure options, so we can diagnose typos.
911
912 case $ac_dashdash$ac_option in
913 --)
914 ac_dashdash=yes ;;
915
916 -bindir | --bindir | --bindi | --bind | --bin | --bi)
917 ac_prev=bindir ;;
918 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
919 bindir=$ac_optarg ;;
920
921 -build | --build | --buil | --bui | --bu)
922 ac_prev=build_alias ;;
923 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
924 build_alias=$ac_optarg ;;
925
926 -cache-file | --cache-file | --cache-fil | --cache-fi \
927 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
928 ac_prev=cache_file ;;
929 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
930 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
931 cache_file=$ac_optarg ;;
932
933 --config-cache | -C)
934 cache_file=config.cache ;;
935
936 -datadir | --datadir | --datadi | --datad)
937 ac_prev=datadir ;;
938 -datadir=* | --datadir=* | --datadi=* | --datad=*)
939 datadir=$ac_optarg ;;
940
941 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
942 | --dataroo | --dataro | --datar)
943 ac_prev=datarootdir ;;
944 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
945 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
946 datarootdir=$ac_optarg ;;
947
948 -disable-* | --disable-*)
949 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
950 # Reject names that are not valid shell variable names.
951 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
952 as_fn_error $? "invalid feature name: $ac_useropt"
953 ac_useropt_orig=$ac_useropt
954 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
955 case $ac_user_opts in
956 *"
957"enable_$ac_useropt"
958"*) ;;
959 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
960 ac_unrecognized_sep=', ';;
961 esac
962 eval enable_$ac_useropt=no ;;
963
964 -docdir | --docdir | --docdi | --doc | --do)
965 ac_prev=docdir ;;
966 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
967 docdir=$ac_optarg ;;
968
969 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
970 ac_prev=dvidir ;;
971 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
972 dvidir=$ac_optarg ;;
973
974 -enable-* | --enable-*)
975 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
976 # Reject names that are not valid shell variable names.
977 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
978 as_fn_error $? "invalid feature name: $ac_useropt"
979 ac_useropt_orig=$ac_useropt
980 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
981 case $ac_user_opts in
982 *"
983"enable_$ac_useropt"
984"*) ;;
985 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
986 ac_unrecognized_sep=', ';;
987 esac
988 eval enable_$ac_useropt=\$ac_optarg ;;
989
990 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
991 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
992 | --exec | --exe | --ex)
993 ac_prev=exec_prefix ;;
994 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
995 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
996 | --exec=* | --exe=* | --ex=*)
997 exec_prefix=$ac_optarg ;;
998
999 -gas | --gas | --ga | --g)
1000 # Obsolete; use --with-gas.
1001 with_gas=yes ;;
1002
1003 -help | --help | --hel | --he | -h)
1004 ac_init_help=long ;;
1005 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1006 ac_init_help=recursive ;;
1007 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1008 ac_init_help=short ;;
1009
1010 -host | --host | --hos | --ho)
1011 ac_prev=host_alias ;;
1012 -host=* | --host=* | --hos=* | --ho=*)
1013 host_alias=$ac_optarg ;;
1014
1015 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1016 ac_prev=htmldir ;;
1017 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1018 | --ht=*)
1019 htmldir=$ac_optarg ;;
1020
1021 -includedir | --includedir | --includedi | --included | --include \
1022 | --includ | --inclu | --incl | --inc)
1023 ac_prev=includedir ;;
1024 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1025 | --includ=* | --inclu=* | --incl=* | --inc=*)
1026 includedir=$ac_optarg ;;
1027
1028 -infodir | --infodir | --infodi | --infod | --info | --inf)
1029 ac_prev=infodir ;;
1030 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1031 infodir=$ac_optarg ;;
1032
1033 -libdir | --libdir | --libdi | --libd)
1034 ac_prev=libdir ;;
1035 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1036 libdir=$ac_optarg ;;
1037
1038 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1039 | --libexe | --libex | --libe)
1040 ac_prev=libexecdir ;;
1041 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1042 | --libexe=* | --libex=* | --libe=*)
1043 libexecdir=$ac_optarg ;;
1044
1045 -localedir | --localedir | --localedi | --localed | --locale)
1046 ac_prev=localedir ;;
1047 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1048 localedir=$ac_optarg ;;
1049
1050 -localstatedir | --localstatedir | --localstatedi | --localstated \
1051 | --localstate | --localstat | --localsta | --localst | --locals)
1052 ac_prev=localstatedir ;;
1053 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1054 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1055 localstatedir=$ac_optarg ;;
1056
1057 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1058 ac_prev=mandir ;;
1059 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1060 mandir=$ac_optarg ;;
1061
1062 -nfp | --nfp | --nf)
1063 # Obsolete; use --without-fp.
1064 with_fp=no ;;
1065
1066 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1067 | --no-cr | --no-c | -n)
1068 no_create=yes ;;
1069
1070 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1071 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1072 no_recursion=yes ;;
1073
1074 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1075 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1076 | --oldin | --oldi | --old | --ol | --o)
1077 ac_prev=oldincludedir ;;
1078 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1079 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1080 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1081 oldincludedir=$ac_optarg ;;
1082
1083 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1084 ac_prev=prefix ;;
1085 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1086 prefix=$ac_optarg ;;
1087
1088 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1089 | --program-pre | --program-pr | --program-p)
1090 ac_prev=program_prefix ;;
1091 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1092 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1093 program_prefix=$ac_optarg ;;
1094
1095 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1096 | --program-suf | --program-su | --program-s)
1097 ac_prev=program_suffix ;;
1098 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1099 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1100 program_suffix=$ac_optarg ;;
1101
1102 -program-transform-name | --program-transform-name \
1103 | --program-transform-nam | --program-transform-na \
1104 | --program-transform-n | --program-transform- \
1105 | --program-transform | --program-transfor \
1106 | --program-transfo | --program-transf \
1107 | --program-trans | --program-tran \
1108 | --progr-tra | --program-tr | --program-t)
1109 ac_prev=program_transform_name ;;
1110 -program-transform-name=* | --program-transform-name=* \
1111 | --program-transform-nam=* | --program-transform-na=* \
1112 | --program-transform-n=* | --program-transform-=* \
1113 | --program-transform=* | --program-transfor=* \
1114 | --program-transfo=* | --program-transf=* \
1115 | --program-trans=* | --program-tran=* \
1116 | --progr-tra=* | --program-tr=* | --program-t=*)
1117 program_transform_name=$ac_optarg ;;
1118
1119 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1120 ac_prev=pdfdir ;;
1121 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1122 pdfdir=$ac_optarg ;;
1123
1124 -psdir | --psdir | --psdi | --psd | --ps)
1125 ac_prev=psdir ;;
1126 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1127 psdir=$ac_optarg ;;
1128
1129 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1130 | -silent | --silent | --silen | --sile | --sil)
1131 silent=yes ;;
1132
1133 -runstatedir | --runstatedir | --runstatedi | --runstated \
1134 | --runstate | --runstat | --runsta | --runst | --runs \
1135 | --run | --ru | --r)
1136 ac_prev=runstatedir ;;
1137 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1138 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1139 | --run=* | --ru=* | --r=*)
1140 runstatedir=$ac_optarg ;;
1141
1142 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1143 ac_prev=sbindir ;;
1144 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1145 | --sbi=* | --sb=*)
1146 sbindir=$ac_optarg ;;
1147
1148 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1149 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1150 | --sharedst | --shareds | --shared | --share | --shar \
1151 | --sha | --sh)
1152 ac_prev=sharedstatedir ;;
1153 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1154 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1155 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1156 | --sha=* | --sh=*)
1157 sharedstatedir=$ac_optarg ;;
1158
1159 -site | --site | --sit)
1160 ac_prev=site ;;
1161 -site=* | --site=* | --sit=*)
1162 site=$ac_optarg ;;
1163
1164 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1165 ac_prev=srcdir ;;
1166 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1167 srcdir=$ac_optarg ;;
1168
1169 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1170 | --syscon | --sysco | --sysc | --sys | --sy)
1171 ac_prev=sysconfdir ;;
1172 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1173 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1174 sysconfdir=$ac_optarg ;;
1175
1176 -target | --target | --targe | --targ | --tar | --ta | --t)
1177 ac_prev=target_alias ;;
1178 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1179 target_alias=$ac_optarg ;;
1180
1181 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1182 verbose=yes ;;
1183
1184 -version | --version | --versio | --versi | --vers | -V)
1185 ac_init_version=: ;;
1186
1187 -with-* | --with-*)
1188 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1189 # Reject names that are not valid shell variable names.
1190 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1191 as_fn_error $? "invalid package name: $ac_useropt"
1192 ac_useropt_orig=$ac_useropt
1193 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1194 case $ac_user_opts in
1195 *"
1196"with_$ac_useropt"
1197"*) ;;
1198 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1199 ac_unrecognized_sep=', ';;
1200 esac
1201 eval with_$ac_useropt=\$ac_optarg ;;
1202
1203 -without-* | --without-*)
1204 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1205 # Reject names that are not valid shell variable names.
1206 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1207 as_fn_error $? "invalid package name: $ac_useropt"
1208 ac_useropt_orig=$ac_useropt
1209 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1210 case $ac_user_opts in
1211 *"
1212"with_$ac_useropt"
1213"*) ;;
1214 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1215 ac_unrecognized_sep=', ';;
1216 esac
1217 eval with_$ac_useropt=no ;;
1218
1219 --x)
1220 # Obsolete; use --with-x.
1221 with_x=yes ;;
1222
1223 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1224 | --x-incl | --x-inc | --x-in | --x-i)
1225 ac_prev=x_includes ;;
1226 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1227 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1228 x_includes=$ac_optarg ;;
1229
1230 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1231 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1232 ac_prev=x_libraries ;;
1233 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1234 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1235 x_libraries=$ac_optarg ;;
1236
1237 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1238Try \`$0 --help' for more information"
1239 ;;
1240
1241 *=*)
1242 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1243 # Reject names that are not valid shell variable names.
1244 case $ac_envvar in #(
1245 '' | [0-9]* | *[!_$as_cr_alnum]* )
1246 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1247 esac
1248 eval $ac_envvar=\$ac_optarg
1249 export $ac_envvar ;;
1250
1251 *)
1252 # FIXME: should be removed in autoconf 3.0.
1253 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1254 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1255 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1256 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1257 ;;
1258
1259 esac
1260done
1261
1262if test -n "$ac_prev"; then
1263 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1264 as_fn_error $? "missing argument to $ac_option"
1265fi
1266
1267if test -n "$ac_unrecognized_opts"; then
1268 case $enable_option_checking in
1269 no) ;;
1270 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1271 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1272 esac
1273fi
1274
1275# Check all directory arguments for consistency.
1276for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1277 datadir sysconfdir sharedstatedir localstatedir includedir \
1278 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1279 libdir localedir mandir runstatedir
1280do
1281 eval ac_val=\$$ac_var
1282 # Remove trailing slashes.
1283 case $ac_val in
1284 */ )
1285 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1286 eval $ac_var=\$ac_val;;
1287 esac
1288 # Be sure to have absolute directory names.
1289 case $ac_val in
1290 [\\/$]* | ?:[\\/]* ) continue;;
1291 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1292 esac
1293 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1294done
1295
1296# There might be people who depend on the old broken behavior: `$host'
1297# used to hold the argument of --host etc.
1298# FIXME: To remove some day.
1299build=$build_alias
1300host=$host_alias
1301target=$target_alias
1302
1303# FIXME: To remove some day.
1304if test "x$host_alias" != x; then
1305 if test "x$build_alias" = x; then
1306 cross_compiling=maybe
1307 elif test "x$build_alias" != "x$host_alias"; then
1308 cross_compiling=yes
1309 fi
1310fi
1311
1312ac_tool_prefix=
1313test -n "$host_alias" && ac_tool_prefix=$host_alias-
1314
1315test "$silent" = yes && exec 6>/dev/null
1316
1317
1318ac_pwd=`pwd` && test -n "$ac_pwd" &&
1319ac_ls_di=`ls -di .` &&
1320ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1321 as_fn_error $? "working directory cannot be determined"
1322test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1323 as_fn_error $? "pwd does not report name of working directory"
1324
1325
1326# Find the source files, if location was not specified.
1327if test -z "$srcdir"; then
1328 ac_srcdir_defaulted=yes
1329 # Try the directory containing this script, then the parent directory.
1330 ac_confdir=`$as_dirname -- "$as_myself" ||
1331$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1332 X"$as_myself" : 'X\(//\)[^/]' \| \
1333 X"$as_myself" : 'X\(//\)$' \| \
1334 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1335$as_echo X"$as_myself" |
1336 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1337 s//\1/
1338 q
1339 }
1340 /^X\(\/\/\)[^/].*/{
1341 s//\1/
1342 q
1343 }
1344 /^X\(\/\/\)$/{
1345 s//\1/
1346 q
1347 }
1348 /^X\(\/\).*/{
1349 s//\1/
1350 q
1351 }
1352 s/.*/./; q'`
1353 srcdir=$ac_confdir
1354 if test ! -r "$srcdir/$ac_unique_file"; then
1355 srcdir=..
1356 fi
1357else
1358 ac_srcdir_defaulted=no
1359fi
1360if test ! -r "$srcdir/$ac_unique_file"; then
1361 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1362 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1363fi
1364ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1365ac_abs_confdir=`(
1366 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1367 pwd)`
1368# When building in place, set srcdir=.
1369if test "$ac_abs_confdir" = "$ac_pwd"; then
1370 srcdir=.
1371fi
1372# Remove unnecessary trailing slashes from srcdir.
1373# Double slashes in file names in object file debugging info
1374# mess up M-x gdb in Emacs.
1375case $srcdir in
1376*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1377esac
1378for ac_var in $ac_precious_vars; do
1379 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1380 eval ac_env_${ac_var}_value=\$${ac_var}
1381 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1382 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1383done
1384
1385#
1386# Report the --help message.
1387#
1388if test "$ac_init_help" = "long"; then
1389 # Omit some internal or obsolete options to make the list less imposing.
1390 # This message is too long to be a string in the A/UX 3.1 sh.
1391 cat <<_ACEOF
2078c8a7 1392\`configure' configures spl 0.6.5.6 to adapt to many kinds of systems.
904dbe44
CIK
1393
1394Usage: $0 [OPTION]... [VAR=VALUE]...
1395
1396To assign environment variables (e.g., CC, CFLAGS...), specify them as
1397VAR=VALUE. See below for descriptions of some of the useful variables.
1398
1399Defaults for the options are specified in brackets.
1400
1401Configuration:
1402 -h, --help display this help and exit
1403 --help=short display options specific to this package
1404 --help=recursive display the short help of all the included packages
1405 -V, --version display version information and exit
1406 -q, --quiet, --silent do not print \`checking ...' messages
1407 --cache-file=FILE cache test results in FILE [disabled]
1408 -C, --config-cache alias for \`--cache-file=config.cache'
1409 -n, --no-create do not create output files
1410 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1411
1412Installation directories:
1413 --prefix=PREFIX install architecture-independent files in PREFIX
1414 [$ac_default_prefix]
1415 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1416 [PREFIX]
1417
1418By default, \`make install' will install all the files in
1419\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1420an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1421for instance \`--prefix=\$HOME'.
1422
1423For better control, use the options below.
1424
1425Fine tuning of the installation directories:
1426 --bindir=DIR user executables [EPREFIX/bin]
1427 --sbindir=DIR system admin executables [EPREFIX/sbin]
1428 --libexecdir=DIR program executables [EPREFIX/libexec]
1429 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1430 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1431 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1432 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1433 --libdir=DIR object code libraries [EPREFIX/lib]
1434 --includedir=DIR C header files [PREFIX/include]
1435 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1436 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1437 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1438 --infodir=DIR info documentation [DATAROOTDIR/info]
1439 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1440 --mandir=DIR man documentation [DATAROOTDIR/man]
1441 --docdir=DIR documentation root [DATAROOTDIR/doc/spl]
1442 --htmldir=DIR html documentation [DOCDIR]
1443 --dvidir=DIR dvi documentation [DOCDIR]
1444 --pdfdir=DIR pdf documentation [DOCDIR]
1445 --psdir=DIR ps documentation [DOCDIR]
1446_ACEOF
1447
1448 cat <<\_ACEOF
1449
1450Program names:
1451 --program-prefix=PREFIX prepend PREFIX to installed program names
1452 --program-suffix=SUFFIX append SUFFIX to installed program names
1453 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1454
1455System types:
1456 --build=BUILD configure for building on BUILD [guessed]
1457 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1458 --target=TARGET configure for building compilers for TARGET [HOST]
1459_ACEOF
1460fi
1461
1462if test -n "$ac_init_help"; then
1463 case $ac_init_help in
2078c8a7 1464 short | recursive ) echo "Configuration of spl 0.6.5.6:";;
904dbe44
CIK
1465 esac
1466 cat <<\_ACEOF
1467
1468Optional Features:
1469 --disable-option-checking ignore unrecognized --enable/--with options
1470 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1471 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1472 --enable-maintainer-mode
1473 enable make rules and dependencies not useful (and
1474 sometimes confusing) to the casual installer
1475 --enable-silent-rules less verbose build output (undo: "make V=1")
1476 --disable-silent-rules verbose build output (undo: "make V=0")
1477 --enable-dependency-tracking
1478 do not reject slow dependency extractors
1479 --disable-dependency-tracking
1480 speeds up one-time build
1481 --enable-shared[=PKGS] build shared libraries [default=yes]
1482 --enable-static[=PKGS] build static libraries [default=yes]
1483 --enable-fast-install[=PKGS]
1484 optimize for fast installation [default=yes]
1485 --disable-libtool-lock avoid locking (might break parallel builds)
1486 --enable-linux-builtin Configure for builtin in-tree kernel modules
1487 [default=no]
1488 --enable-debug Enable generic debug support [default=no]
1489 --enable-debug-kmem Enable basic kmem accounting [default=no]
1490 --enable-debug-kmem-tracking
1491 Enable detailed kmem tracking [default=no]
1492 --enable-atomic-spinlocks
1493 Atomic types use spinlocks [default=check]
1494
1495Optional Packages:
1496 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1497 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1498 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1499 both]
2078c8a7
DJL
1500 --with-aix-soname=aix|svr4|both
1501 shared library versioning (aka "SONAME") variant to
1502 provide on AIX, [default=aix].
904dbe44 1503 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
2078c8a7
DJL
1504 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1505 compiler's sysroot if not specified).
904dbe44
CIK
1506 --with-spec=SPEC Spec files 'generic|redhat'
1507 --with-config=CONFIG Config file 'kernel|user|all|srpm'
1508 --with-linux=PATH Path to kernel source
1509 --with-linux-obj=PATH Path to kernel build objects
1510
1511Some influential environment variables:
1512 CC C compiler command
1513 CFLAGS C compiler flags
1514 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1515 nonstandard directory <lib dir>
1516 LIBS libraries to pass to the linker, e.g. -l<library>
1517 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1518 you have headers in a nonstandard directory <include dir>
2078c8a7
DJL
1519 LT_SYS_LIBRARY_PATH
1520 User-defined run-time library search path.
904dbe44
CIK
1521 CPP C preprocessor
1522
1523Use these variables to override the choices made by `configure' or to help
1524it to find libraries and programs with nonstandard names/locations.
1525
1526Report bugs to the package provider.
1527_ACEOF
1528ac_status=$?
1529fi
1530
1531if test "$ac_init_help" = "recursive"; then
1532 # If there are subdirs, report their specific --help.
1533 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1534 test -d "$ac_dir" ||
1535 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1536 continue
1537 ac_builddir=.
1538
1539case "$ac_dir" in
1540.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1541*)
1542 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1543 # A ".." for each directory in $ac_dir_suffix.
1544 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1545 case $ac_top_builddir_sub in
1546 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1547 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1548 esac ;;
1549esac
1550ac_abs_top_builddir=$ac_pwd
1551ac_abs_builddir=$ac_pwd$ac_dir_suffix
1552# for backward compatibility:
1553ac_top_builddir=$ac_top_build_prefix
1554
1555case $srcdir in
1556 .) # We are building in place.
1557 ac_srcdir=.
1558 ac_top_srcdir=$ac_top_builddir_sub
1559 ac_abs_top_srcdir=$ac_pwd ;;
1560 [\\/]* | ?:[\\/]* ) # Absolute name.
1561 ac_srcdir=$srcdir$ac_dir_suffix;
1562 ac_top_srcdir=$srcdir
1563 ac_abs_top_srcdir=$srcdir ;;
1564 *) # Relative name.
1565 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1566 ac_top_srcdir=$ac_top_build_prefix$srcdir
1567 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1568esac
1569ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1570
1571 cd "$ac_dir" || { ac_status=$?; continue; }
1572 # Check for guested configure.
1573 if test -f "$ac_srcdir/configure.gnu"; then
1574 echo &&
1575 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1576 elif test -f "$ac_srcdir/configure"; then
1577 echo &&
1578 $SHELL "$ac_srcdir/configure" --help=recursive
1579 else
1580 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1581 fi || ac_status=$?
1582 cd "$ac_pwd" || { ac_status=$?; break; }
1583 done
1584fi
1585
1586test -n "$ac_init_help" && exit $ac_status
1587if $ac_init_version; then
1588 cat <<\_ACEOF
2078c8a7 1589spl configure 0.6.5.6
904dbe44
CIK
1590generated by GNU Autoconf 2.69
1591
1592Copyright (C) 2012 Free Software Foundation, Inc.
1593This configure script is free software; the Free Software Foundation
1594gives unlimited permission to copy, distribute and modify it.
1595_ACEOF
1596 exit
1597fi
1598
1599## ------------------------ ##
1600## Autoconf initialization. ##
1601## ------------------------ ##
1602
1603# ac_fn_c_try_compile LINENO
1604# --------------------------
1605# Try to compile conftest.$ac_ext, and return whether this succeeded.
1606ac_fn_c_try_compile ()
1607{
1608 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1609 rm -f conftest.$ac_objext
1610 if { { ac_try="$ac_compile"
1611case "(($ac_try" in
1612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1613 *) ac_try_echo=$ac_try;;
1614esac
1615eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1616$as_echo "$ac_try_echo"; } >&5
1617 (eval "$ac_compile") 2>conftest.err
1618 ac_status=$?
1619 if test -s conftest.err; then
1620 grep -v '^ *+' conftest.err >conftest.er1
1621 cat conftest.er1 >&5
1622 mv -f conftest.er1 conftest.err
1623 fi
1624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1625 test $ac_status = 0; } && {
1626 test -z "$ac_c_werror_flag" ||
1627 test ! -s conftest.err
1628 } && test -s conftest.$ac_objext; 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 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1637 as_fn_set_status $ac_retval
1638
1639} # ac_fn_c_try_compile
1640
1641# ac_fn_c_try_link LINENO
1642# -----------------------
1643# Try to link conftest.$ac_ext, and return whether this succeeded.
1644ac_fn_c_try_link ()
1645{
1646 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1647 rm -f conftest.$ac_objext conftest$ac_exeext
1648 if { { ac_try="$ac_link"
1649case "(($ac_try" in
1650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1651 *) ac_try_echo=$ac_try;;
1652esac
1653eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1654$as_echo "$ac_try_echo"; } >&5
1655 (eval "$ac_link") 2>conftest.err
1656 ac_status=$?
1657 if test -s conftest.err; then
1658 grep -v '^ *+' conftest.err >conftest.er1
1659 cat conftest.er1 >&5
1660 mv -f conftest.er1 conftest.err
1661 fi
1662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1663 test $ac_status = 0; } && {
1664 test -z "$ac_c_werror_flag" ||
1665 test ! -s conftest.err
1666 } && test -s conftest$ac_exeext && {
1667 test "$cross_compiling" = yes ||
1668 test -x conftest$ac_exeext
1669 }; then :
1670 ac_retval=0
1671else
1672 $as_echo "$as_me: failed program was:" >&5
1673sed 's/^/| /' conftest.$ac_ext >&5
1674
1675 ac_retval=1
1676fi
1677 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1678 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1679 # interfere with the next link command; also delete a directory that is
1680 # left behind by Apple's compiler. We do this before executing the actions.
1681 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1682 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1683 as_fn_set_status $ac_retval
1684
1685} # ac_fn_c_try_link
1686
1687# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1688# -------------------------------------------------------
1689# Tests whether HEADER exists and can be compiled using the include files in
1690# INCLUDES, setting the cache variable VAR accordingly.
1691ac_fn_c_check_header_compile ()
1692{
1693 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1695$as_echo_n "checking for $2... " >&6; }
1696if eval \${$3+:} false; then :
1697 $as_echo_n "(cached) " >&6
1698else
1699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1700/* end confdefs.h. */
1701$4
1702#include <$2>
1703_ACEOF
1704if ac_fn_c_try_compile "$LINENO"; then :
1705 eval "$3=yes"
1706else
1707 eval "$3=no"
1708fi
1709rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1710fi
1711eval ac_res=\$$3
1712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1713$as_echo "$ac_res" >&6; }
1714 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1715
1716} # ac_fn_c_check_header_compile
1717
1718# ac_fn_c_try_cpp LINENO
1719# ----------------------
1720# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1721ac_fn_c_try_cpp ()
1722{
1723 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1724 if { { ac_try="$ac_cpp conftest.$ac_ext"
1725case "(($ac_try" in
1726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1727 *) ac_try_echo=$ac_try;;
1728esac
1729eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1730$as_echo "$ac_try_echo"; } >&5
1731 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1732 ac_status=$?
1733 if test -s conftest.err; then
1734 grep -v '^ *+' conftest.err >conftest.er1
1735 cat conftest.er1 >&5
1736 mv -f conftest.er1 conftest.err
1737 fi
1738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1739 test $ac_status = 0; } > conftest.i && {
1740 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1741 test ! -s conftest.err
1742 }; then :
1743 ac_retval=0
1744else
1745 $as_echo "$as_me: failed program was:" >&5
1746sed 's/^/| /' conftest.$ac_ext >&5
1747
1748 ac_retval=1
1749fi
1750 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1751 as_fn_set_status $ac_retval
1752
1753} # ac_fn_c_try_cpp
1754
1755# ac_fn_c_try_run LINENO
1756# ----------------------
1757# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1758# that executables *can* be run.
1759ac_fn_c_try_run ()
1760{
1761 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1762 if { { ac_try="$ac_link"
1763case "(($ac_try" in
1764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1765 *) ac_try_echo=$ac_try;;
1766esac
1767eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1768$as_echo "$ac_try_echo"; } >&5
1769 (eval "$ac_link") 2>&5
1770 ac_status=$?
1771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1772 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1773 { { case "(($ac_try" in
1774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1775 *) ac_try_echo=$ac_try;;
1776esac
1777eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1778$as_echo "$ac_try_echo"; } >&5
1779 (eval "$ac_try") 2>&5
1780 ac_status=$?
1781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1782 test $ac_status = 0; }; }; then :
1783 ac_retval=0
1784else
1785 $as_echo "$as_me: program exited with status $ac_status" >&5
1786 $as_echo "$as_me: failed program was:" >&5
1787sed 's/^/| /' conftest.$ac_ext >&5
1788
1789 ac_retval=$ac_status
1790fi
1791 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1792 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1793 as_fn_set_status $ac_retval
1794
1795} # ac_fn_c_try_run
1796
1797# ac_fn_c_check_func LINENO FUNC VAR
1798# ----------------------------------
1799# Tests whether FUNC exists, setting the cache variable VAR accordingly
1800ac_fn_c_check_func ()
1801{
1802 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1804$as_echo_n "checking for $2... " >&6; }
1805if eval \${$3+:} false; then :
1806 $as_echo_n "(cached) " >&6
1807else
1808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1809/* end confdefs.h. */
1810/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1811 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1812#define $2 innocuous_$2
1813
1814/* System header to define __stub macros and hopefully few prototypes,
1815 which can conflict with char $2 (); below.
1816 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1817 <limits.h> exists even on freestanding compilers. */
1818
1819#ifdef __STDC__
1820# include <limits.h>
1821#else
1822# include <assert.h>
1823#endif
1824
1825#undef $2
1826
1827/* Override any GCC internal prototype to avoid an error.
1828 Use char because int might match the return type of a GCC
1829 builtin and then its argument prototype would still apply. */
1830#ifdef __cplusplus
1831extern "C"
1832#endif
1833char $2 ();
1834/* The GNU C library defines this for functions which it implements
1835 to always fail with ENOSYS. Some functions are actually named
1836 something starting with __ and the normal name is an alias. */
1837#if defined __stub_$2 || defined __stub___$2
1838choke me
1839#endif
1840
1841int
1842main ()
1843{
1844return $2 ();
1845 ;
1846 return 0;
1847}
1848_ACEOF
1849if ac_fn_c_try_link "$LINENO"; then :
1850 eval "$3=yes"
1851else
1852 eval "$3=no"
1853fi
1854rm -f core conftest.err conftest.$ac_objext \
1855 conftest$ac_exeext conftest.$ac_ext
1856fi
1857eval ac_res=\$$3
1858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1859$as_echo "$ac_res" >&6; }
1860 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1861
1862} # ac_fn_c_check_func
1863cat >config.log <<_ACEOF
1864This file contains any messages produced by compilers while
1865running configure, to aid debugging if configure makes a mistake.
1866
2078c8a7 1867It was created by spl $as_me 0.6.5.6, which was
904dbe44
CIK
1868generated by GNU Autoconf 2.69. Invocation command line was
1869
1870 $ $0 $@
1871
1872_ACEOF
1873exec 5>>config.log
1874{
1875cat <<_ASUNAME
1876## --------- ##
1877## Platform. ##
1878## --------- ##
1879
1880hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1881uname -m = `(uname -m) 2>/dev/null || echo unknown`
1882uname -r = `(uname -r) 2>/dev/null || echo unknown`
1883uname -s = `(uname -s) 2>/dev/null || echo unknown`
1884uname -v = `(uname -v) 2>/dev/null || echo unknown`
1885
1886/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1887/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1888
1889/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1890/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1891/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1892/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1893/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1894/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1895/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1896
1897_ASUNAME
1898
1899as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1900for as_dir in $PATH
1901do
1902 IFS=$as_save_IFS
1903 test -z "$as_dir" && as_dir=.
1904 $as_echo "PATH: $as_dir"
1905 done
1906IFS=$as_save_IFS
1907
1908} >&5
1909
1910cat >&5 <<_ACEOF
1911
1912
1913## ----------- ##
1914## Core tests. ##
1915## ----------- ##
1916
1917_ACEOF
1918
1919
1920# Keep a trace of the command line.
1921# Strip out --no-create and --no-recursion so they do not pile up.
1922# Strip out --silent because we don't want to record it for future runs.
1923# Also quote any args containing shell meta-characters.
1924# Make two passes to allow for proper duplicate-argument suppression.
1925ac_configure_args=
1926ac_configure_args0=
1927ac_configure_args1=
1928ac_must_keep_next=false
1929for ac_pass in 1 2
1930do
1931 for ac_arg
1932 do
1933 case $ac_arg in
1934 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1935 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1936 | -silent | --silent | --silen | --sile | --sil)
1937 continue ;;
1938 *\'*)
1939 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1940 esac
1941 case $ac_pass in
1942 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1943 2)
1944 as_fn_append ac_configure_args1 " '$ac_arg'"
1945 if test $ac_must_keep_next = true; then
1946 ac_must_keep_next=false # Got value, back to normal.
1947 else
1948 case $ac_arg in
1949 *=* | --config-cache | -C | -disable-* | --disable-* \
1950 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1951 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1952 | -with-* | --with-* | -without-* | --without-* | --x)
1953 case "$ac_configure_args0 " in
1954 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1955 esac
1956 ;;
1957 -* ) ac_must_keep_next=true ;;
1958 esac
1959 fi
1960 as_fn_append ac_configure_args " '$ac_arg'"
1961 ;;
1962 esac
1963 done
1964done
1965{ ac_configure_args0=; unset ac_configure_args0;}
1966{ ac_configure_args1=; unset ac_configure_args1;}
1967
1968# When interrupted or exit'd, cleanup temporary files, and complete
1969# config.log. We remove comments because anyway the quotes in there
1970# would cause problems or look ugly.
1971# WARNING: Use '\'' to represent an apostrophe within the trap.
1972# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1973trap 'exit_status=$?
1974 # Save into config.log some information that might help in debugging.
1975 {
1976 echo
1977
1978 $as_echo "## ---------------- ##
1979## Cache variables. ##
1980## ---------------- ##"
1981 echo
1982 # The following way of writing the cache mishandles newlines in values,
1983(
1984 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1985 eval ac_val=\$$ac_var
1986 case $ac_val in #(
1987 *${as_nl}*)
1988 case $ac_var in #(
1989 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1990$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1991 esac
1992 case $ac_var in #(
1993 _ | IFS | as_nl) ;; #(
1994 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1995 *) { eval $ac_var=; unset $ac_var;} ;;
1996 esac ;;
1997 esac
1998 done
1999 (set) 2>&1 |
2000 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2001 *${as_nl}ac_space=\ *)
2002 sed -n \
2003 "s/'\''/'\''\\\\'\'''\''/g;
2004 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2005 ;; #(
2006 *)
2007 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2008 ;;
2009 esac |
2010 sort
2011)
2012 echo
2013
2014 $as_echo "## ----------------- ##
2015## Output variables. ##
2016## ----------------- ##"
2017 echo
2018 for ac_var in $ac_subst_vars
2019 do
2020 eval ac_val=\$$ac_var
2021 case $ac_val in
2022 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2023 esac
2024 $as_echo "$ac_var='\''$ac_val'\''"
2025 done | sort
2026 echo
2027
2028 if test -n "$ac_subst_files"; then
2029 $as_echo "## ------------------- ##
2030## File substitutions. ##
2031## ------------------- ##"
2032 echo
2033 for ac_var in $ac_subst_files
2034 do
2035 eval ac_val=\$$ac_var
2036 case $ac_val in
2037 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2038 esac
2039 $as_echo "$ac_var='\''$ac_val'\''"
2040 done | sort
2041 echo
2042 fi
2043
2044 if test -s confdefs.h; then
2045 $as_echo "## ----------- ##
2046## confdefs.h. ##
2047## ----------- ##"
2048 echo
2049 cat confdefs.h
2050 echo
2051 fi
2052 test "$ac_signal" != 0 &&
2053 $as_echo "$as_me: caught signal $ac_signal"
2054 $as_echo "$as_me: exit $exit_status"
2055 } >&5
2056 rm -f core *.core core.conftest.* &&
2057 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2058 exit $exit_status
2059' 0
2060for ac_signal in 1 2 13 15; do
2061 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2062done
2063ac_signal=0
2064
2065# confdefs.h avoids OS command line length limits that DEFS can exceed.
2066rm -f -r conftest* confdefs.h
2067
2068$as_echo "/* confdefs.h */" > confdefs.h
2069
2070# Predefined preprocessor variables.
2071
2072cat >>confdefs.h <<_ACEOF
2073#define PACKAGE_NAME "$PACKAGE_NAME"
2074_ACEOF
2075
2076cat >>confdefs.h <<_ACEOF
2077#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2078_ACEOF
2079
2080cat >>confdefs.h <<_ACEOF
2081#define PACKAGE_VERSION "$PACKAGE_VERSION"
2082_ACEOF
2083
2084cat >>confdefs.h <<_ACEOF
2085#define PACKAGE_STRING "$PACKAGE_STRING"
2086_ACEOF
2087
2088cat >>confdefs.h <<_ACEOF
2089#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2090_ACEOF
2091
2092cat >>confdefs.h <<_ACEOF
2093#define PACKAGE_URL "$PACKAGE_URL"
2094_ACEOF
2095
2096
2097# Let the site file select an alternate cache file if it wants to.
2098# Prefer an explicitly selected file to automatically selected ones.
2099ac_site_file1=NONE
2100ac_site_file2=NONE
2101if test -n "$CONFIG_SITE"; then
2102 # We do not want a PATH search for config.site.
2103 case $CONFIG_SITE in #((
2104 -*) ac_site_file1=./$CONFIG_SITE;;
2105 */*) ac_site_file1=$CONFIG_SITE;;
2106 *) ac_site_file1=./$CONFIG_SITE;;
2107 esac
2108elif test "x$prefix" != xNONE; then
2109 ac_site_file1=$prefix/share/config.site
2110 ac_site_file2=$prefix/etc/config.site
2111else
2112 ac_site_file1=$ac_default_prefix/share/config.site
2113 ac_site_file2=$ac_default_prefix/etc/config.site
2114fi
2115for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2116do
2117 test "x$ac_site_file" = xNONE && continue
2118 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2119 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2120$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2121 sed 's/^/| /' "$ac_site_file" >&5
2122 . "$ac_site_file" \
2123 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2124$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2125as_fn_error $? "failed to load site script $ac_site_file
2126See \`config.log' for more details" "$LINENO" 5; }
2127 fi
2128done
2129
2130if test -r "$cache_file"; then
2131 # Some versions of bash will fail to source /dev/null (special files
2132 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2133 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2134 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2135$as_echo "$as_me: loading cache $cache_file" >&6;}
2136 case $cache_file in
2137 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2138 *) . "./$cache_file";;
2139 esac
2140 fi
2141else
2142 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2143$as_echo "$as_me: creating cache $cache_file" >&6;}
2144 >$cache_file
2145fi
2146
2147# Check that the precious variables saved in the cache have kept the same
2148# value.
2149ac_cache_corrupted=false
2150for ac_var in $ac_precious_vars; do
2151 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2152 eval ac_new_set=\$ac_env_${ac_var}_set
2153 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2154 eval ac_new_val=\$ac_env_${ac_var}_value
2155 case $ac_old_set,$ac_new_set in
2156 set,)
2157 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2158$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2159 ac_cache_corrupted=: ;;
2160 ,set)
2161 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2162$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2163 ac_cache_corrupted=: ;;
2164 ,);;
2165 *)
2166 if test "x$ac_old_val" != "x$ac_new_val"; then
2167 # differences in whitespace do not lead to failure.
2168 ac_old_val_w=`echo x $ac_old_val`
2169 ac_new_val_w=`echo x $ac_new_val`
2170 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2171 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2172$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2173 ac_cache_corrupted=:
2174 else
2175 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2176$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2177 eval $ac_var=\$ac_old_val
2178 fi
2179 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2180$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2181 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2182$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2183 fi;;
2184 esac
2185 # Pass precious variables to config.status.
2186 if test "$ac_new_set" = set; then
2187 case $ac_new_val in
2188 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2189 *) ac_arg=$ac_var=$ac_new_val ;;
2190 esac
2191 case " $ac_configure_args " in
2192 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2193 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2194 esac
2195 fi
2196done
2197if $ac_cache_corrupted; then
2198 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2199$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2200 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2201$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2202 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2203fi
2204## -------------------- ##
2205## Main body of script. ##
2206## -------------------- ##
2207
2208ac_ext=c
2209ac_cpp='$CPP $CPPFLAGS'
2210ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2211ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2212ac_compiler_gnu=$ac_cv_c_compiler_gnu
2213
2214
2215ac_ext=c
2216ac_cpp='$CPP $CPPFLAGS'
2217ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2218ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2219ac_compiler_gnu=$ac_cv_c_compiler_gnu
2220
2221
2222 for ac_prog in gawk mawk nawk awk
2223do
2224 # Extract the first word of "$ac_prog", so it can be a program name with args.
2225set dummy $ac_prog; ac_word=$2
2226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2227$as_echo_n "checking for $ac_word... " >&6; }
2228if ${ac_cv_prog_AWK+:} false; then :
2229 $as_echo_n "(cached) " >&6
2230else
2231 if test -n "$AWK"; then
2232 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2233else
2234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2235for as_dir in $PATH
2236do
2237 IFS=$as_save_IFS
2238 test -z "$as_dir" && as_dir=.
2239 for ac_exec_ext in '' $ac_executable_extensions; do
2240 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2241 ac_cv_prog_AWK="$ac_prog"
2242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2243 break 2
2244 fi
2245done
2246 done
2247IFS=$as_save_IFS
2248
2249fi
2250fi
2251AWK=$ac_cv_prog_AWK
2252if test -n "$AWK"; then
2253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2254$as_echo "$AWK" >&6; }
2255else
2256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2257$as_echo "no" >&6; }
2258fi
2259
2260
2261 test -n "$AWK" && break
2262done
2263
2264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking metadata" >&5
2265$as_echo_n "checking metadata... " >&6; }
2266
2267 META="$srcdir/META"
2268 _spl_ac_meta_type="none"
2269 if test -f "$META"; then
2270 _spl_ac_meta_type="META file"
2271
2272 SPL_META_NAME=`$AWK -F ':[ \t]+' '$1 ~ /^ *(Name|Project|Package)$/ { print $2; exit }' $META`;
2273 if test -n "$SPL_META_NAME"; then
2274
2275cat >>confdefs.h <<_ACEOF
2276#define SPL_META_NAME "$SPL_META_NAME"
2277_ACEOF
2278
2279
2280 fi
2281
2282 SPL_META_VERSION=`$AWK -F ':[ \t]+' '$1 ~ /^ *Version$/ { print $2; exit }' $META`;
2283 if test -n "$SPL_META_VERSION"; then
2284
2285cat >>confdefs.h <<_ACEOF
2286#define SPL_META_VERSION "$SPL_META_VERSION"
2287_ACEOF
2288
2289
2290 fi
2291
2292 SPL_META_RELEASE=`$AWK -F ':[ \t]+' '$1 ~ /^ *Release$/ { print $2; exit }' $META`;
2293 if test ! -f ".nogitrelease" && git rev-parse --git-dir > /dev/null 2>&1; then
2294 _match="${SPL_META_NAME}-${SPL_META_VERSION}"
2295 _alias=$(git describe --match=${_match} 2>/dev/null)
2296 _release=$(echo ${_alias}|cut -f3- -d'-'|sed 's/-/_/g')
2297 if test -n "${_release}"; then
2298 SPL_META_RELEASE=${_release}
2299 _spl_ac_meta_type="git describe"
2300 fi
2301 fi
2302
2303 if test -n "$SPL_META_RELEASE"; then
2304
2305cat >>confdefs.h <<_ACEOF
2306#define SPL_META_RELEASE "$SPL_META_RELEASE"
2307_ACEOF
2308
2309
2310
2311 RELEASE="$SPL_META_RELEASE"
2312
2313 fi
2314
2315 SPL_META_LICENSE=`$AWK -F ':[ \t]+' '$1 ~ /^ *License$/ { print $2; exit }' $META`;
2316 if test -n "$SPL_META_LICENSE"; then
2317
2318cat >>confdefs.h <<_ACEOF
2319#define SPL_META_LICENSE "$SPL_META_LICENSE"
2320_ACEOF
2321
2322
2323 fi
2324
2325 if test -n "$SPL_META_NAME" -a -n "$SPL_META_VERSION"; then
2326 SPL_META_ALIAS="$SPL_META_NAME-$SPL_META_VERSION"
2327 test -n "$SPL_META_RELEASE" &&
2328 SPL_META_ALIAS="$SPL_META_ALIAS-$SPL_META_RELEASE"
2329
2330cat >>confdefs.h <<_ACEOF
2331#define SPL_META_ALIAS "$SPL_META_ALIAS"
2332_ACEOF
2333
2334
2335 fi
2336
2337 SPL_META_DATA=`$AWK -F ':[ \t]+' '$1 ~ /^ *Date$/ { print $2; exit }' $META`;
2338 if test -n "$SPL_META_DATA"; then
2339
2340cat >>confdefs.h <<_ACEOF
2341#define SPL_META_DATA "$SPL_META_DATA"
2342_ACEOF
2343
2344
2345 fi
2346
2347 SPL_META_AUTHOR=`$AWK -F ':[ \t]+' '$1 ~ /^ *Author$/ { print $2; exit }' $META`;
2348 if test -n "$SPL_META_AUTHOR"; then
2349
2350cat >>confdefs.h <<_ACEOF
2351#define SPL_META_AUTHOR "$SPL_META_AUTHOR"
2352_ACEOF
2353
2354
2355 fi
2356
2357
2358 SPL_META_LT_CURRENT=`$AWK -F ':[ \t]+' '$1 ~ /^ *LT_Current$/ { print $2; exit }' $META`;
2359 SPL_META_LT_REVISION=`$AWK -F ':[ \t]+' '$1 ~ /^ *LT_Revision$/ { print $2; exit }' $META`;
2360 SPL_META_LT_AGE=`$AWK -F ':[ \t]+' '$1 ~ /^ *LT_Age$/ { print $2; exit }' $META`;
2361 if test -n "$SPL_META_LT_CURRENT" \
2362 -o -n "$SPL_META_LT_REVISION" \
2363 -o -n "$SPL_META_LT_AGE"; then
2364 test -n "$SPL_META_LT_CURRENT" || SPL_META_LT_CURRENT="0"
2365 test -n "$SPL_META_LT_REVISION" || SPL_META_LT_REVISION="0"
2366 test -n "$SPL_META_LT_AGE" || SPL_META_LT_AGE="0"
2367
2368cat >>confdefs.h <<_ACEOF
2369#define SPL_META_LT_CURRENT "$SPL_META_LT_CURRENT"
2370_ACEOF
2371
2372
2373cat >>confdefs.h <<_ACEOF
2374#define SPL_META_LT_REVISION "$SPL_META_LT_REVISION"
2375_ACEOF
2376
2377
2378cat >>confdefs.h <<_ACEOF
2379#define SPL_META_LT_AGE "$SPL_META_LT_AGE"
2380_ACEOF
2381
2382
2383
2384
2385 fi
2386 fi
2387
2388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_spl_ac_meta_type" >&5
2389$as_echo "$_spl_ac_meta_type" >&6; }
2390
2391
2392ac_aux_dir=
2393for ac_dir in config "$srcdir"/config; do
2394 if test -f "$ac_dir/install-sh"; then
2395 ac_aux_dir=$ac_dir
2396 ac_install_sh="$ac_aux_dir/install-sh -c"
2397 break
2398 elif test -f "$ac_dir/install.sh"; then
2399 ac_aux_dir=$ac_dir
2400 ac_install_sh="$ac_aux_dir/install.sh -c"
2401 break
2402 elif test -f "$ac_dir/shtool"; then
2403 ac_aux_dir=$ac_dir
2404 ac_install_sh="$ac_aux_dir/shtool install -c"
2405 break
2406 fi
2407done
2408if test -z "$ac_aux_dir"; then
2409 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2410fi
2411
2412# These three variables are undocumented and unsupported,
2413# and are intended to be withdrawn in a future Autoconf release.
2414# They can cause serious problems if a builder's source tree is in a directory
2415# whose full name contains unusual characters.
2416ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2417ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2418ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2419
2420
2421
2422# Make sure we can run config.sub.
2423$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2424 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2425
2426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2427$as_echo_n "checking build system type... " >&6; }
2428if ${ac_cv_build+:} false; then :
2429 $as_echo_n "(cached) " >&6
2430else
2431 ac_build_alias=$build_alias
2432test "x$ac_build_alias" = x &&
2433 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2434test "x$ac_build_alias" = x &&
2435 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2436ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2437 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2438
2439fi
2440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2441$as_echo "$ac_cv_build" >&6; }
2442case $ac_cv_build in
2443*-*-*) ;;
2444*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2445esac
2446build=$ac_cv_build
2447ac_save_IFS=$IFS; IFS='-'
2448set x $ac_cv_build
2449shift
2450build_cpu=$1
2451build_vendor=$2
2452shift; shift
2453# Remember, the first character of IFS is used to create $*,
2454# except with old shells:
2455build_os=$*
2456IFS=$ac_save_IFS
2457case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2458
2459
2460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2461$as_echo_n "checking host system type... " >&6; }
2462if ${ac_cv_host+:} false; then :
2463 $as_echo_n "(cached) " >&6
2464else
2465 if test "x$host_alias" = x; then
2466 ac_cv_host=$ac_cv_build
2467else
2468 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2469 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2470fi
2471
2472fi
2473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2474$as_echo "$ac_cv_host" >&6; }
2475case $ac_cv_host in
2476*-*-*) ;;
2477*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2478esac
2479host=$ac_cv_host
2480ac_save_IFS=$IFS; IFS='-'
2481set x $ac_cv_host
2482shift
2483host_cpu=$1
2484host_vendor=$2
2485shift; shift
2486# Remember, the first character of IFS is used to create $*,
2487# except with old shells:
2488host_os=$*
2489IFS=$ac_save_IFS
2490case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2491
2492
2493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2494$as_echo_n "checking target system type... " >&6; }
2495if ${ac_cv_target+:} false; then :
2496 $as_echo_n "(cached) " >&6
2497else
2498 if test "x$target_alias" = x; then
2499 ac_cv_target=$ac_cv_host
2500else
2501 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2502 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2503fi
2504
2505fi
2506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2507$as_echo "$ac_cv_target" >&6; }
2508case $ac_cv_target in
2509*-*-*) ;;
2510*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2511esac
2512target=$ac_cv_target
2513ac_save_IFS=$IFS; IFS='-'
2514set x $ac_cv_target
2515shift
2516target_cpu=$1
2517target_vendor=$2
2518shift; shift
2519# Remember, the first character of IFS is used to create $*,
2520# except with old shells:
2521target_os=$*
2522IFS=$ac_save_IFS
2523case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2524
2525
2526# The aliases save the names the user supplied, while $host etc.
2527# will get canonicalized.
2528test -n "$target_alias" &&
2529 test "$program_prefix$program_suffix$program_transform_name" = \
2530 NONENONEs,x,x, &&
2531 program_prefix=${target_alias}-
2532
2533
2534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2535$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2536 # Check whether --enable-maintainer-mode was given.
2537if test "${enable_maintainer_mode+set}" = set; then :
2538 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2539else
2540 USE_MAINTAINER_MODE=no
2541fi
2542
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2544$as_echo "$USE_MAINTAINER_MODE" >&6; }
2545 if test $USE_MAINTAINER_MODE = yes; then
2546 MAINTAINER_MODE_TRUE=
2547 MAINTAINER_MODE_FALSE='#'
2548else
2549 MAINTAINER_MODE_TRUE='#'
2550 MAINTAINER_MODE_FALSE=
2551fi
2552
2553 MAINT=$MAINTAINER_MODE_TRUE
2554
2555
2556# Check whether --enable-silent-rules was given.
2557if test "${enable_silent_rules+set}" = set; then :
2558 enableval=$enable_silent_rules;
2559fi
2560
2561case $enable_silent_rules in # (((
2562 yes) AM_DEFAULT_VERBOSITY=0;;
2563 no) AM_DEFAULT_VERBOSITY=1;;
2564 *) AM_DEFAULT_VERBOSITY=0;;
2565esac
2566am_make=${MAKE-make}
2567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2568$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2569if ${am_cv_make_support_nested_variables+:} false; then :
2570 $as_echo_n "(cached) " >&6
2571else
2572 if $as_echo 'TRUE=$(BAR$(V))
2573BAR0=false
2574BAR1=true
2575V=1
2576am__doit:
2577 @$(TRUE)
2578.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2579 am_cv_make_support_nested_variables=yes
2580else
2581 am_cv_make_support_nested_variables=no
2582fi
2583fi
2584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2585$as_echo "$am_cv_make_support_nested_variables" >&6; }
2586if test $am_cv_make_support_nested_variables = yes; then
2587 AM_V='$(V)'
2588 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2589else
2590 AM_V=$AM_DEFAULT_VERBOSITY
2591 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2592fi
2593AM_BACKSLASH='\'
2594
2595am__api_version='1.15'
2596
2597# Find a good install program. We prefer a C program (faster),
2598# so one script is as good as another. But avoid the broken or
2599# incompatible versions:
2600# SysV /etc/install, /usr/sbin/install
2601# SunOS /usr/etc/install
2602# IRIX /sbin/install
2603# AIX /bin/install
2604# AmigaOS /C/install, which installs bootblocks on floppy discs
2605# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2606# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2607# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2608# OS/2's system install, which has a completely different semantic
2609# ./install, which can be erroneously created by make from ./install.sh.
2610# Reject install programs that cannot install multiple files.
2611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2612$as_echo_n "checking for a BSD-compatible install... " >&6; }
2613if test -z "$INSTALL"; then
2614if ${ac_cv_path_install+:} false; then :
2615 $as_echo_n "(cached) " >&6
2616else
2617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2618for as_dir in $PATH
2619do
2620 IFS=$as_save_IFS
2621 test -z "$as_dir" && as_dir=.
2622 # Account for people who put trailing slashes in PATH elements.
2623case $as_dir/ in #((
2624 ./ | .// | /[cC]/* | \
2625 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2626 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2627 /usr/ucb/* ) ;;
2628 *)
2629 # OSF1 and SCO ODT 3.0 have their own names for install.
2630 # Don't use installbsd from OSF since it installs stuff as root
2631 # by default.
2632 for ac_prog in ginstall scoinst install; do
2633 for ac_exec_ext in '' $ac_executable_extensions; do
2634 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2635 if test $ac_prog = install &&
2636 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2637 # AIX install. It has an incompatible calling convention.
2638 :
2639 elif test $ac_prog = install &&
2640 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2641 # program-specific install script used by HP pwplus--don't use.
2642 :
2643 else
2644 rm -rf conftest.one conftest.two conftest.dir
2645 echo one > conftest.one
2646 echo two > conftest.two
2647 mkdir conftest.dir
2648 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2649 test -s conftest.one && test -s conftest.two &&
2650 test -s conftest.dir/conftest.one &&
2651 test -s conftest.dir/conftest.two
2652 then
2653 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2654 break 3
2655 fi
2656 fi
2657 fi
2658 done
2659 done
2660 ;;
2661esac
2662
2663 done
2664IFS=$as_save_IFS
2665
2666rm -rf conftest.one conftest.two conftest.dir
2667
2668fi
2669 if test "${ac_cv_path_install+set}" = set; then
2670 INSTALL=$ac_cv_path_install
2671 else
2672 # As a last resort, use the slow shell script. Don't cache a
2673 # value for INSTALL within a source directory, because that will
2674 # break other packages using the cache if that directory is
2675 # removed, or if the value is a relative name.
2676 INSTALL=$ac_install_sh
2677 fi
2678fi
2679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2680$as_echo "$INSTALL" >&6; }
2681
2682# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2683# It thinks the first close brace ends the variable substitution.
2684test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2685
2686test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2687
2688test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2689
2690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2691$as_echo_n "checking whether build environment is sane... " >&6; }
2692# Reject unsafe characters in $srcdir or the absolute working directory
2693# name. Accept space and tab only in the latter.
2694am_lf='
2695'
2696case `pwd` in
2697 *[\\\"\#\$\&\'\`$am_lf]*)
2698 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2699esac
2700case $srcdir in
2701 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2702 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2703esac
2704
2705# Do 'set' in a subshell so we don't clobber the current shell's
2706# arguments. Must try -L first in case configure is actually a
2707# symlink; some systems play weird games with the mod time of symlinks
2708# (eg FreeBSD returns the mod time of the symlink's containing
2709# directory).
2710if (
2711 am_has_slept=no
2712 for am_try in 1 2; do
2713 echo "timestamp, slept: $am_has_slept" > conftest.file
2714 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2715 if test "$*" = "X"; then
2716 # -L didn't work.
2717 set X `ls -t "$srcdir/configure" conftest.file`
2718 fi
2719 if test "$*" != "X $srcdir/configure conftest.file" \
2720 && test "$*" != "X conftest.file $srcdir/configure"; then
2721
2722 # If neither matched, then we have a broken ls. This can happen
2723 # if, for instance, CONFIG_SHELL is bash and it inherits a
2724 # broken ls alias from the environment. This has actually
2725 # happened. Such a system could not be considered "sane".
2726 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2727 alias in your environment" "$LINENO" 5
2728 fi
2729 if test "$2" = conftest.file || test $am_try -eq 2; then
2730 break
2731 fi
2732 # Just in case.
2733 sleep 1
2734 am_has_slept=yes
2735 done
2736 test "$2" = conftest.file
2737 )
2738then
2739 # Ok.
2740 :
2741else
2742 as_fn_error $? "newly created file is older than distributed files!
2743Check your system clock" "$LINENO" 5
2744fi
2745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2746$as_echo "yes" >&6; }
2747# If we didn't sleep, we still need to ensure time stamps of config.status and
2748# generated files are strictly newer.
2749am_sleep_pid=
2750if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2751 ( sleep 1 ) &
2752 am_sleep_pid=$!
2753fi
2754
2755rm -f conftest.file
2756
2757test "$program_prefix" != NONE &&
2758 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2759# Use a double $ so make ignores it.
2760test "$program_suffix" != NONE &&
2761 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2762# Double any \ or $.
2763# By default was `s,x,x', remove it if useless.
2764ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2765program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2766
2767# Expand $ac_aux_dir to an absolute path.
2768am_aux_dir=`cd "$ac_aux_dir" && pwd`
2769
2770if test x"${MISSING+set}" != xset; then
2771 case $am_aux_dir in
2772 *\ * | *\ *)
2773 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2774 *)
2775 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2776 esac
2777fi
2778# Use eval to expand $SHELL
2779if eval "$MISSING --is-lightweight"; then
2780 am_missing_run="$MISSING "
2781else
2782 am_missing_run=
2783 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2784$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2785fi
2786
2787if test x"${install_sh+set}" != xset; then
2788 case $am_aux_dir in
2789 *\ * | *\ *)
2790 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2791 *)
2792 install_sh="\${SHELL} $am_aux_dir/install-sh"
2793 esac
2794fi
2795
2796# Installed binaries are usually stripped using 'strip' when the user
2797# run "make install-strip". However 'strip' might not be the right
2798# tool to use in cross-compilation environments, therefore Automake
2799# will honor the 'STRIP' environment variable to overrule this program.
2800if test "$cross_compiling" != no; then
2801 if test -n "$ac_tool_prefix"; then
2802 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2803set dummy ${ac_tool_prefix}strip; ac_word=$2
2804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2805$as_echo_n "checking for $ac_word... " >&6; }
2806if ${ac_cv_prog_STRIP+:} false; then :
2807 $as_echo_n "(cached) " >&6
2808else
2809 if test -n "$STRIP"; then
2810 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2811else
2812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2813for as_dir in $PATH
2814do
2815 IFS=$as_save_IFS
2816 test -z "$as_dir" && as_dir=.
2817 for ac_exec_ext in '' $ac_executable_extensions; do
2818 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2819 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2821 break 2
2822 fi
2823done
2824 done
2825IFS=$as_save_IFS
2826
2827fi
2828fi
2829STRIP=$ac_cv_prog_STRIP
2830if test -n "$STRIP"; then
2831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2832$as_echo "$STRIP" >&6; }
2833else
2834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2835$as_echo "no" >&6; }
2836fi
2837
2838
2839fi
2840if test -z "$ac_cv_prog_STRIP"; then
2841 ac_ct_STRIP=$STRIP
2842 # Extract the first word of "strip", so it can be a program name with args.
2843set dummy strip; ac_word=$2
2844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2845$as_echo_n "checking for $ac_word... " >&6; }
2846if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2847 $as_echo_n "(cached) " >&6
2848else
2849 if test -n "$ac_ct_STRIP"; then
2850 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2851else
2852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2853for as_dir in $PATH
2854do
2855 IFS=$as_save_IFS
2856 test -z "$as_dir" && as_dir=.
2857 for ac_exec_ext in '' $ac_executable_extensions; do
2858 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2859 ac_cv_prog_ac_ct_STRIP="strip"
2860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2861 break 2
2862 fi
2863done
2864 done
2865IFS=$as_save_IFS
2866
2867fi
2868fi
2869ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2870if test -n "$ac_ct_STRIP"; then
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2872$as_echo "$ac_ct_STRIP" >&6; }
2873else
2874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2875$as_echo "no" >&6; }
2876fi
2877
2878 if test "x$ac_ct_STRIP" = x; then
2879 STRIP=":"
2880 else
2881 case $cross_compiling:$ac_tool_warned in
2882yes:)
2883{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2884$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2885ac_tool_warned=yes ;;
2886esac
2887 STRIP=$ac_ct_STRIP
2888 fi
2889else
2890 STRIP="$ac_cv_prog_STRIP"
2891fi
2892
2893fi
2894INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2895
2896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2897$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2898if test -z "$MKDIR_P"; then
2899 if ${ac_cv_path_mkdir+:} false; then :
2900 $as_echo_n "(cached) " >&6
2901else
2902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2903for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2904do
2905 IFS=$as_save_IFS
2906 test -z "$as_dir" && as_dir=.
2907 for ac_prog in mkdir gmkdir; do
2908 for ac_exec_ext in '' $ac_executable_extensions; do
2909 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2910 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2911 'mkdir (GNU coreutils) '* | \
2912 'mkdir (coreutils) '* | \
2913 'mkdir (fileutils) '4.1*)
2914 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2915 break 3;;
2916 esac
2917 done
2918 done
2919 done
2920IFS=$as_save_IFS
2921
2922fi
2923
2924 test -d ./--version && rmdir ./--version
2925 if test "${ac_cv_path_mkdir+set}" = set; then
2926 MKDIR_P="$ac_cv_path_mkdir -p"
2927 else
2928 # As a last resort, use the slow shell script. Don't cache a
2929 # value for MKDIR_P within a source directory, because that will
2930 # break other packages using the cache if that directory is
2931 # removed, or if the value is a relative name.
2932 MKDIR_P="$ac_install_sh -d"
2933 fi
2934fi
2935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2936$as_echo "$MKDIR_P" >&6; }
2937
2938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2939$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2940set x ${MAKE-make}
2941ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2942if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2943 $as_echo_n "(cached) " >&6
2944else
2945 cat >conftest.make <<\_ACEOF
2946SHELL = /bin/sh
2947all:
2948 @echo '@@@%%%=$(MAKE)=@@@%%%'
2949_ACEOF
2950# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2951case `${MAKE-make} -f conftest.make 2>/dev/null` in
2952 *@@@%%%=?*=@@@%%%*)
2953 eval ac_cv_prog_make_${ac_make}_set=yes;;
2954 *)
2955 eval ac_cv_prog_make_${ac_make}_set=no;;
2956esac
2957rm -f conftest.make
2958fi
2959if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2961$as_echo "yes" >&6; }
2962 SET_MAKE=
2963else
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2965$as_echo "no" >&6; }
2966 SET_MAKE="MAKE=${MAKE-make}"
2967fi
2968
2969rm -rf .tst 2>/dev/null
2970mkdir .tst 2>/dev/null
2971if test -d .tst; then
2972 am__leading_dot=.
2973else
2974 am__leading_dot=_
2975fi
2976rmdir .tst 2>/dev/null
2977
2978if test "`cd $srcdir && pwd`" != "`pwd`"; then
2979 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2980 # is not polluted with repeated "-I."
2981 am__isrc=' -I$(srcdir)'
2982 # test to see if srcdir already configured
2983 if test -f $srcdir/config.status; then
2984 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2985 fi
2986fi
2987
2988# test whether we have cygpath
2989if test -z "$CYGPATH_W"; then
2990 if (cygpath --version) >/dev/null 2>/dev/null; then
2991 CYGPATH_W='cygpath -w'
2992 else
2993 CYGPATH_W=echo
2994 fi
2995fi
2996
2997
2998# Define the identity of the package.
2999 PACKAGE='spl'
2078c8a7 3000 VERSION='0.6.5.6'
904dbe44
CIK
3001
3002
3003cat >>confdefs.h <<_ACEOF
3004#define PACKAGE "$PACKAGE"
3005_ACEOF
3006
3007
3008cat >>confdefs.h <<_ACEOF
3009#define VERSION "$VERSION"
3010_ACEOF
3011
3012# Some tools Automake needs.
3013
3014ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3015
3016
3017AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3018
3019
3020AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3021
3022
3023AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3024
3025
3026MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3027
3028# For better backward compatibility. To be removed once Automake 1.9.x
3029# dies out for good. For more background, see:
3030# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3031# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3032mkdir_p='$(MKDIR_P)'
3033
3034# We need awk for the "check" target (and possibly the TAP driver). The
3035# system "awk" is bad on some platforms.
3036# Always define AMTAR for backward compatibility. Yes, it's still used
3037# in the wild :-( We should find a proper way to deprecate it ...
3038AMTAR='$${TAR-tar}'
3039
3040
3041# We'll loop over all known methods to create a tar archive until one works.
3042_am_tools='gnutar pax cpio none'
3043
3044am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3045
3046
3047
3048
3049
3050
3051# POSIX will say in a future version that running "rm -f" with no argument
3052# is OK; and we want to be able to make that assumption in our Makefile
3053# recipes. So use an aggressive probe to check that the usage we want is
3054# actually supported "in the wild" to an acceptable degree.
3055# See automake bug#10828.
3056# To make any issue more visible, cause the running configure to be aborted
3057# by default if the 'rm' program in use doesn't match our expectations; the
3058# user can still override this though.
3059if rm -f && rm -fr && rm -rf; then : OK; else
3060 cat >&2 <<'END'
3061Oops!
3062
3063Your 'rm' program seems unable to run without file operands specified
3064on the command line, even when the '-f' option is present. This is contrary
3065to the behaviour of most rm programs out there, and not conforming with
3066the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3067
3068Please tell bug-automake@gnu.org about your system, including the value
3069of your $PATH and any error possibly output before this message. This
3070can help us improve future automake versions.
3071
3072END
3073 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3074 echo 'Configuration will proceed anyway, since you have set the' >&2
3075 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3076 echo >&2
3077 else
3078 cat >&2 <<'END'
3079Aborting the configuration process, to ensure you take notice of the issue.
3080
3081You can download and install GNU coreutils to get an 'rm' implementation
3082that behaves properly: <http://www.gnu.org/software/coreutils/>.
3083
3084If you want to complete the configuration process using your problematic
3085'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3086to "yes", and re-run configure.
3087
3088END
3089 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3090 fi
3091fi
3092
3093ac_config_headers="$ac_config_headers spl_config.h"
3094
3095
3096
3097ac_ext=c
3098ac_cpp='$CPP $CPPFLAGS'
3099ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3100ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3101ac_compiler_gnu=$ac_cv_c_compiler_gnu
3102if test -n "$ac_tool_prefix"; then
3103 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3104set dummy ${ac_tool_prefix}gcc; ac_word=$2
3105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3106$as_echo_n "checking for $ac_word... " >&6; }
3107if ${ac_cv_prog_CC+:} false; then :
3108 $as_echo_n "(cached) " >&6
3109else
3110 if test -n "$CC"; then
3111 ac_cv_prog_CC="$CC" # Let the user override the test.
3112else
3113as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3114for as_dir in $PATH
3115do
3116 IFS=$as_save_IFS
3117 test -z "$as_dir" && as_dir=.
3118 for ac_exec_ext in '' $ac_executable_extensions; do
3119 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3120 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3122 break 2
3123 fi
3124done
3125 done
3126IFS=$as_save_IFS
3127
3128fi
3129fi
3130CC=$ac_cv_prog_CC
3131if test -n "$CC"; then
3132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3133$as_echo "$CC" >&6; }
3134else
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3136$as_echo "no" >&6; }
3137fi
3138
3139
3140fi
3141if test -z "$ac_cv_prog_CC"; then
3142 ac_ct_CC=$CC
3143 # Extract the first word of "gcc", so it can be a program name with args.
3144set dummy gcc; ac_word=$2
3145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3146$as_echo_n "checking for $ac_word... " >&6; }
3147if ${ac_cv_prog_ac_ct_CC+:} false; then :
3148 $as_echo_n "(cached) " >&6
3149else
3150 if test -n "$ac_ct_CC"; then
3151 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3152else
3153as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3154for as_dir in $PATH
3155do
3156 IFS=$as_save_IFS
3157 test -z "$as_dir" && as_dir=.
3158 for ac_exec_ext in '' $ac_executable_extensions; do
3159 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3160 ac_cv_prog_ac_ct_CC="gcc"
3161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3162 break 2
3163 fi
3164done
3165 done
3166IFS=$as_save_IFS
3167
3168fi
3169fi
3170ac_ct_CC=$ac_cv_prog_ac_ct_CC
3171if test -n "$ac_ct_CC"; then
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3173$as_echo "$ac_ct_CC" >&6; }
3174else
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3176$as_echo "no" >&6; }
3177fi
3178
3179 if test "x$ac_ct_CC" = x; then
3180 CC=""
3181 else
3182 case $cross_compiling:$ac_tool_warned in
3183yes:)
3184{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3185$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3186ac_tool_warned=yes ;;
3187esac
3188 CC=$ac_ct_CC
3189 fi
3190else
3191 CC="$ac_cv_prog_CC"
3192fi
3193
3194if test -z "$CC"; then
3195 if test -n "$ac_tool_prefix"; then
3196 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3197set dummy ${ac_tool_prefix}cc; ac_word=$2
3198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3199$as_echo_n "checking for $ac_word... " >&6; }
3200if ${ac_cv_prog_CC+:} false; then :
3201 $as_echo_n "(cached) " >&6
3202else
3203 if test -n "$CC"; then
3204 ac_cv_prog_CC="$CC" # Let the user override the test.
3205else
3206as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3207for as_dir in $PATH
3208do
3209 IFS=$as_save_IFS
3210 test -z "$as_dir" && as_dir=.
3211 for ac_exec_ext in '' $ac_executable_extensions; do
3212 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3213 ac_cv_prog_CC="${ac_tool_prefix}cc"
3214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3215 break 2
3216 fi
3217done
3218 done
3219IFS=$as_save_IFS
3220
3221fi
3222fi
3223CC=$ac_cv_prog_CC
3224if test -n "$CC"; then
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3226$as_echo "$CC" >&6; }
3227else
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3229$as_echo "no" >&6; }
3230fi
3231
3232
3233 fi
3234fi
3235if test -z "$CC"; then
3236 # Extract the first word of "cc", so it can be a program name with args.
3237set dummy cc; 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_CC+:} false; then :
3241 $as_echo_n "(cached) " >&6
3242else
3243 if test -n "$CC"; then
3244 ac_cv_prog_CC="$CC" # Let the user override the test.
3245else
3246 ac_prog_rejected=no
3247as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3248for as_dir in $PATH
3249do
3250 IFS=$as_save_IFS
3251 test -z "$as_dir" && as_dir=.
3252 for ac_exec_ext in '' $ac_executable_extensions; do
3253 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3254 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3255 ac_prog_rejected=yes
3256 continue
3257 fi
3258 ac_cv_prog_CC="cc"
3259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3260 break 2
3261 fi
3262done
3263 done
3264IFS=$as_save_IFS
3265
3266if test $ac_prog_rejected = yes; then
3267 # We found a bogon in the path, so make sure we never use it.
3268 set dummy $ac_cv_prog_CC
3269 shift
3270 if test $# != 0; then
3271 # We chose a different compiler from the bogus one.
3272 # However, it has the same basename, so the bogon will be chosen
3273 # first if we set CC to just the basename; use the full file name.
3274 shift
3275 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3276 fi
3277fi
3278fi
3279fi
3280CC=$ac_cv_prog_CC
3281if test -n "$CC"; then
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3283$as_echo "$CC" >&6; }
3284else
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3286$as_echo "no" >&6; }
3287fi
3288
3289
3290fi
3291if test -z "$CC"; then
3292 if test -n "$ac_tool_prefix"; then
3293 for ac_prog in cl.exe
3294 do
3295 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3296set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3298$as_echo_n "checking for $ac_word... " >&6; }
3299if ${ac_cv_prog_CC+:} false; then :
3300 $as_echo_n "(cached) " >&6
3301else
3302 if test -n "$CC"; then
3303 ac_cv_prog_CC="$CC" # Let the user override the test.
3304else
3305as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3306for as_dir in $PATH
3307do
3308 IFS=$as_save_IFS
3309 test -z "$as_dir" && as_dir=.
3310 for ac_exec_ext in '' $ac_executable_extensions; do
3311 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3312 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3314 break 2
3315 fi
3316done
3317 done
3318IFS=$as_save_IFS
3319
3320fi
3321fi
3322CC=$ac_cv_prog_CC
3323if test -n "$CC"; then
3324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3325$as_echo "$CC" >&6; }
3326else
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3328$as_echo "no" >&6; }
3329fi
3330
3331
3332 test -n "$CC" && break
3333 done
3334fi
3335if test -z "$CC"; then
3336 ac_ct_CC=$CC
3337 for ac_prog in cl.exe
3338do
3339 # Extract the first word of "$ac_prog", so it can be a program name with args.
3340set dummy $ac_prog; ac_word=$2
3341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3342$as_echo_n "checking for $ac_word... " >&6; }
3343if ${ac_cv_prog_ac_ct_CC+:} false; then :
3344 $as_echo_n "(cached) " >&6
3345else
3346 if test -n "$ac_ct_CC"; then
3347 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3348else
3349as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3350for as_dir in $PATH
3351do
3352 IFS=$as_save_IFS
3353 test -z "$as_dir" && as_dir=.
3354 for ac_exec_ext in '' $ac_executable_extensions; do
3355 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3356 ac_cv_prog_ac_ct_CC="$ac_prog"
3357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3358 break 2
3359 fi
3360done
3361 done
3362IFS=$as_save_IFS
3363
3364fi
3365fi
3366ac_ct_CC=$ac_cv_prog_ac_ct_CC
3367if test -n "$ac_ct_CC"; then
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3369$as_echo "$ac_ct_CC" >&6; }
3370else
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3372$as_echo "no" >&6; }
3373fi
3374
3375
3376 test -n "$ac_ct_CC" && break
3377done
3378
3379 if test "x$ac_ct_CC" = x; then
3380 CC=""
3381 else
3382 case $cross_compiling:$ac_tool_warned in
3383yes:)
3384{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3385$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3386ac_tool_warned=yes ;;
3387esac
3388 CC=$ac_ct_CC
3389 fi
3390fi
3391
3392fi
3393
3394
3395test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3396$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3397as_fn_error $? "no acceptable C compiler found in \$PATH
3398See \`config.log' for more details" "$LINENO" 5; }
3399
3400# Provide some information about the compiler.
3401$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3402set X $ac_compile
3403ac_compiler=$2
3404for ac_option in --version -v -V -qversion; do
3405 { { ac_try="$ac_compiler $ac_option >&5"
3406case "(($ac_try" in
3407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3408 *) ac_try_echo=$ac_try;;
3409esac
3410eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3411$as_echo "$ac_try_echo"; } >&5
3412 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3413 ac_status=$?
3414 if test -s conftest.err; then
3415 sed '10a\
3416... rest of stderr output deleted ...
3417 10q' conftest.err >conftest.er1
3418 cat conftest.er1 >&5
3419 fi
3420 rm -f conftest.er1 conftest.err
3421 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3422 test $ac_status = 0; }
3423done
3424
3425cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3426/* end confdefs.h. */
3427
3428int
3429main ()
3430{
3431
3432 ;
3433 return 0;
3434}
3435_ACEOF
3436ac_clean_files_save=$ac_clean_files
3437ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3438# Try to create an executable without -o first, disregard a.out.
3439# It will help us diagnose broken compilers, and finding out an intuition
3440# of exeext.
3441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3442$as_echo_n "checking whether the C compiler works... " >&6; }
3443ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3444
3445# The possible output files:
3446ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3447
3448ac_rmfiles=
3449for ac_file in $ac_files
3450do
3451 case $ac_file in
3452 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3453 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3454 esac
3455done
3456rm -f $ac_rmfiles
3457
3458if { { ac_try="$ac_link_default"
3459case "(($ac_try" in
3460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3461 *) ac_try_echo=$ac_try;;
3462esac
3463eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3464$as_echo "$ac_try_echo"; } >&5
3465 (eval "$ac_link_default") 2>&5
3466 ac_status=$?
3467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3468 test $ac_status = 0; }; then :
3469 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3470# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3471# in a Makefile. We should not override ac_cv_exeext if it was cached,
3472# so that the user can short-circuit this test for compilers unknown to
3473# Autoconf.
3474for ac_file in $ac_files ''
3475do
3476 test -f "$ac_file" || continue
3477 case $ac_file in
3478 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3479 ;;
3480 [ab].out )
3481 # We found the default executable, but exeext='' is most
3482 # certainly right.
3483 break;;
3484 *.* )
3485 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3486 then :; else
3487 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3488 fi
3489 # We set ac_cv_exeext here because the later test for it is not
3490 # safe: cross compilers may not add the suffix if given an `-o'
3491 # argument, so we may need to know it at that point already.
3492 # Even if this section looks crufty: it has the advantage of
3493 # actually working.
3494 break;;
3495 * )
3496 break;;
3497 esac
3498done
3499test "$ac_cv_exeext" = no && ac_cv_exeext=
3500
3501else
3502 ac_file=''
3503fi
3504if test -z "$ac_file"; then :
3505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3506$as_echo "no" >&6; }
3507$as_echo "$as_me: failed program was:" >&5
3508sed 's/^/| /' conftest.$ac_ext >&5
3509
3510{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3511$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3512as_fn_error 77 "C compiler cannot create executables
3513See \`config.log' for more details" "$LINENO" 5; }
3514else
3515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3516$as_echo "yes" >&6; }
3517fi
3518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3519$as_echo_n "checking for C compiler default output file name... " >&6; }
3520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3521$as_echo "$ac_file" >&6; }
3522ac_exeext=$ac_cv_exeext
3523
3524rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3525ac_clean_files=$ac_clean_files_save
3526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3527$as_echo_n "checking for suffix of executables... " >&6; }
3528if { { ac_try="$ac_link"
3529case "(($ac_try" in
3530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3531 *) ac_try_echo=$ac_try;;
3532esac
3533eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3534$as_echo "$ac_try_echo"; } >&5
3535 (eval "$ac_link") 2>&5
3536 ac_status=$?
3537 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3538 test $ac_status = 0; }; then :
3539 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3540# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3541# work properly (i.e., refer to `conftest.exe'), while it won't with
3542# `rm'.
3543for ac_file in conftest.exe conftest conftest.*; do
3544 test -f "$ac_file" || continue
3545 case $ac_file in
3546 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3547 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3548 break;;
3549 * ) break;;
3550 esac
3551done
3552else
3553 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3554$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3555as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3556See \`config.log' for more details" "$LINENO" 5; }
3557fi
3558rm -f conftest conftest$ac_cv_exeext
3559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3560$as_echo "$ac_cv_exeext" >&6; }
3561
3562rm -f conftest.$ac_ext
3563EXEEXT=$ac_cv_exeext
3564ac_exeext=$EXEEXT
3565cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3566/* end confdefs.h. */
3567#include <stdio.h>
3568int
3569main ()
3570{
3571FILE *f = fopen ("conftest.out", "w");
3572 return ferror (f) || fclose (f) != 0;
3573
3574 ;
3575 return 0;
3576}
3577_ACEOF
3578ac_clean_files="$ac_clean_files conftest.out"
3579# Check that the compiler produces executables we can run. If not, either
3580# the compiler is broken, or we cross compile.
3581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3582$as_echo_n "checking whether we are cross compiling... " >&6; }
3583if test "$cross_compiling" != yes; then
3584 { { ac_try="$ac_link"
3585case "(($ac_try" in
3586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3587 *) ac_try_echo=$ac_try;;
3588esac
3589eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3590$as_echo "$ac_try_echo"; } >&5
3591 (eval "$ac_link") 2>&5
3592 ac_status=$?
3593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3594 test $ac_status = 0; }
3595 if { ac_try='./conftest$ac_cv_exeext'
3596 { { case "(($ac_try" in
3597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3598 *) ac_try_echo=$ac_try;;
3599esac
3600eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3601$as_echo "$ac_try_echo"; } >&5
3602 (eval "$ac_try") 2>&5
3603 ac_status=$?
3604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3605 test $ac_status = 0; }; }; then
3606 cross_compiling=no
3607 else
3608 if test "$cross_compiling" = maybe; then
3609 cross_compiling=yes
3610 else
3611 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3612$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3613as_fn_error $? "cannot run C compiled programs.
3614If you meant to cross compile, use \`--host'.
3615See \`config.log' for more details" "$LINENO" 5; }
3616 fi
3617 fi
3618fi
3619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3620$as_echo "$cross_compiling" >&6; }
3621
3622rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3623ac_clean_files=$ac_clean_files_save
3624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3625$as_echo_n "checking for suffix of object files... " >&6; }
3626if ${ac_cv_objext+:} false; then :
3627 $as_echo_n "(cached) " >&6
3628else
3629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3630/* end confdefs.h. */
3631
3632int
3633main ()
3634{
3635
3636 ;
3637 return 0;
3638}
3639_ACEOF
3640rm -f conftest.o conftest.obj
3641if { { ac_try="$ac_compile"
3642case "(($ac_try" in
3643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3644 *) ac_try_echo=$ac_try;;
3645esac
3646eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3647$as_echo "$ac_try_echo"; } >&5
3648 (eval "$ac_compile") 2>&5
3649 ac_status=$?
3650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3651 test $ac_status = 0; }; then :
3652 for ac_file in conftest.o conftest.obj conftest.*; do
3653 test -f "$ac_file" || continue;
3654 case $ac_file in
3655 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3656 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3657 break;;
3658 esac
3659done
3660else
3661 $as_echo "$as_me: failed program was:" >&5
3662sed 's/^/| /' conftest.$ac_ext >&5
3663
3664{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3665$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3666as_fn_error $? "cannot compute suffix of object files: cannot compile
3667See \`config.log' for more details" "$LINENO" 5; }
3668fi
3669rm -f conftest.$ac_cv_objext conftest.$ac_ext
3670fi
3671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3672$as_echo "$ac_cv_objext" >&6; }
3673OBJEXT=$ac_cv_objext
3674ac_objext=$OBJEXT
3675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3676$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3677if ${ac_cv_c_compiler_gnu+:} false; then :
3678 $as_echo_n "(cached) " >&6
3679else
3680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3681/* end confdefs.h. */
3682
3683int
3684main ()
3685{
3686#ifndef __GNUC__
3687 choke me
3688#endif
3689
3690 ;
3691 return 0;
3692}
3693_ACEOF
3694if ac_fn_c_try_compile "$LINENO"; then :
3695 ac_compiler_gnu=yes
3696else
3697 ac_compiler_gnu=no
3698fi
3699rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3700ac_cv_c_compiler_gnu=$ac_compiler_gnu
3701
3702fi
3703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3704$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3705if test $ac_compiler_gnu = yes; then
3706 GCC=yes
3707else
3708 GCC=
3709fi
3710ac_test_CFLAGS=${CFLAGS+set}
3711ac_save_CFLAGS=$CFLAGS
3712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3713$as_echo_n "checking whether $CC accepts -g... " >&6; }
3714if ${ac_cv_prog_cc_g+:} false; then :
3715 $as_echo_n "(cached) " >&6
3716else
3717 ac_save_c_werror_flag=$ac_c_werror_flag
3718 ac_c_werror_flag=yes
3719 ac_cv_prog_cc_g=no
3720 CFLAGS="-g"
3721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3722/* end confdefs.h. */
3723
3724int
3725main ()
3726{
3727
3728 ;
3729 return 0;
3730}
3731_ACEOF
3732if ac_fn_c_try_compile "$LINENO"; then :
3733 ac_cv_prog_cc_g=yes
3734else
3735 CFLAGS=""
3736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3737/* end confdefs.h. */
3738
3739int
3740main ()
3741{
3742
3743 ;
3744 return 0;
3745}
3746_ACEOF
3747if ac_fn_c_try_compile "$LINENO"; then :
3748
3749else
3750 ac_c_werror_flag=$ac_save_c_werror_flag
3751 CFLAGS="-g"
3752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3753/* end confdefs.h. */
3754
3755int
3756main ()
3757{
3758
3759 ;
3760 return 0;
3761}
3762_ACEOF
3763if ac_fn_c_try_compile "$LINENO"; then :
3764 ac_cv_prog_cc_g=yes
3765fi
3766rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3767fi
3768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3769fi
3770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3771 ac_c_werror_flag=$ac_save_c_werror_flag
3772fi
3773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3774$as_echo "$ac_cv_prog_cc_g" >&6; }
3775if test "$ac_test_CFLAGS" = set; then
3776 CFLAGS=$ac_save_CFLAGS
3777elif test $ac_cv_prog_cc_g = yes; then
3778 if test "$GCC" = yes; then
3779 CFLAGS="-g -O2"
3780 else
3781 CFLAGS="-g"
3782 fi
3783else
3784 if test "$GCC" = yes; then
3785 CFLAGS="-O2"
3786 else
3787 CFLAGS=
3788 fi
3789fi
3790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3791$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3792if ${ac_cv_prog_cc_c89+:} false; then :
3793 $as_echo_n "(cached) " >&6
3794else
3795 ac_cv_prog_cc_c89=no
3796ac_save_CC=$CC
3797cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3798/* end confdefs.h. */
3799#include <stdarg.h>
3800#include <stdio.h>
3801struct stat;
3802/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3803struct buf { int x; };
3804FILE * (*rcsopen) (struct buf *, struct stat *, int);
3805static char *e (p, i)
3806 char **p;
3807 int i;
3808{
3809 return p[i];
3810}
3811static char *f (char * (*g) (char **, int), char **p, ...)
3812{
3813 char *s;
3814 va_list v;
3815 va_start (v,p);
3816 s = g (p, va_arg (v,int));
3817 va_end (v);
3818 return s;
3819}
3820
3821/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3822 function prototypes and stuff, but not '\xHH' hex character constants.
3823 These don't provoke an error unfortunately, instead are silently treated
3824 as 'x'. The following induces an error, until -std is added to get
3825 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3826 array size at least. It's necessary to write '\x00'==0 to get something
3827 that's true only with -std. */
3828int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3829
3830/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3831 inside strings and character constants. */
3832#define FOO(x) 'x'
3833int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3834
3835int test (int i, double x);
3836struct s1 {int (*f) (int a);};
3837struct s2 {int (*f) (double a);};
3838int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3839int argc;
3840char **argv;
3841int
3842main ()
3843{
3844return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3845 ;
3846 return 0;
3847}
3848_ACEOF
3849for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3850 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3851do
3852 CC="$ac_save_CC $ac_arg"
3853 if ac_fn_c_try_compile "$LINENO"; then :
3854 ac_cv_prog_cc_c89=$ac_arg
3855fi
3856rm -f core conftest.err conftest.$ac_objext
3857 test "x$ac_cv_prog_cc_c89" != "xno" && break
3858done
3859rm -f conftest.$ac_ext
3860CC=$ac_save_CC
3861
3862fi
3863# AC_CACHE_VAL
3864case "x$ac_cv_prog_cc_c89" in
3865 x)
3866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3867$as_echo "none needed" >&6; } ;;
3868 xno)
3869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3870$as_echo "unsupported" >&6; } ;;
3871 *)
3872 CC="$CC $ac_cv_prog_cc_c89"
3873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3874$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3875esac
3876if test "x$ac_cv_prog_cc_c89" != xno; then :
3877
3878fi
3879
3880ac_ext=c
3881ac_cpp='$CPP $CPPFLAGS'
3882ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3883ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3884ac_compiler_gnu=$ac_cv_c_compiler_gnu
3885
3886ac_ext=c
3887ac_cpp='$CPP $CPPFLAGS'
3888ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3889ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3890ac_compiler_gnu=$ac_cv_c_compiler_gnu
3891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3892$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3893if ${am_cv_prog_cc_c_o+:} false; then :
3894 $as_echo_n "(cached) " >&6
3895else
3896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3897/* end confdefs.h. */
3898
3899int
3900main ()
3901{
3902
3903 ;
3904 return 0;
3905}
3906_ACEOF
3907 # Make sure it works both with $CC and with simple cc.
3908 # Following AC_PROG_CC_C_O, we do the test twice because some
3909 # compilers refuse to overwrite an existing .o file with -o,
3910 # though they will create one.
3911 am_cv_prog_cc_c_o=yes
3912 for am_i in 1 2; do
3913 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3914 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3915 ac_status=$?
3916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3917 (exit $ac_status); } \
3918 && test -f conftest2.$ac_objext; then
3919 : OK
3920 else
3921 am_cv_prog_cc_c_o=no
3922 break
3923 fi
3924 done
3925 rm -f core conftest*
3926 unset am_i
3927fi
3928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3929$as_echo "$am_cv_prog_cc_c_o" >&6; }
3930if test "$am_cv_prog_cc_c_o" != yes; then
3931 # Losing compiler, so override with the script.
3932 # FIXME: It is wrong to rewrite CC.
3933 # But if we don't then we get into trouble of one sort or another.
3934 # A longer-term fix would be to have automake use am__CC in this case,
3935 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3936 CC="$am_aux_dir/compile $CC"
3937fi
3938ac_ext=c
3939ac_cpp='$CPP $CPPFLAGS'
3940ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3941ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3942ac_compiler_gnu=$ac_cv_c_compiler_gnu
3943
3944DEPDIR="${am__leading_dot}deps"
3945
3946ac_config_commands="$ac_config_commands depfiles"
3947
3948
3949am_make=${MAKE-make}
3950cat > confinc << 'END'
3951am__doit:
3952 @echo this is the am__doit target
3953.PHONY: am__doit
3954END
3955# If we don't find an include directive, just comment out the code.
3956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3957$as_echo_n "checking for style of include used by $am_make... " >&6; }
3958am__include="#"
3959am__quote=
3960_am_result=none
3961# First try GNU make style include.
3962echo "include confinc" > confmf
3963# Ignore all kinds of additional output from 'make'.
3964case `$am_make -s -f confmf 2> /dev/null` in #(
3965*the\ am__doit\ target*)
3966 am__include=include
3967 am__quote=
3968 _am_result=GNU
3969 ;;
3970esac
3971# Now try BSD make style include.
3972if test "$am__include" = "#"; then
3973 echo '.include "confinc"' > confmf
3974 case `$am_make -s -f confmf 2> /dev/null` in #(
3975 *the\ am__doit\ target*)
3976 am__include=.include
3977 am__quote="\""
3978 _am_result=BSD
3979 ;;
3980 esac
3981fi
3982
3983
3984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3985$as_echo "$_am_result" >&6; }
3986rm -f confinc confmf
3987
3988# Check whether --enable-dependency-tracking was given.
3989if test "${enable_dependency_tracking+set}" = set; then :
3990 enableval=$enable_dependency_tracking;
3991fi
3992
3993if test "x$enable_dependency_tracking" != xno; then
3994 am_depcomp="$ac_aux_dir/depcomp"
3995 AMDEPBACKSLASH='\'
3996 am__nodep='_no'
3997fi
3998 if test "x$enable_dependency_tracking" != xno; then
3999 AMDEP_TRUE=
4000 AMDEP_FALSE='#'
4001else
4002 AMDEP_TRUE='#'
4003 AMDEP_FALSE=
4004fi
4005
4006
4007
4008depcc="$CC" am_compiler_list=
4009
4010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4011$as_echo_n "checking dependency style of $depcc... " >&6; }
4012if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4013 $as_echo_n "(cached) " >&6
4014else
4015 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4016 # We make a subdir and do the tests there. Otherwise we can end up
4017 # making bogus files that we don't know about and never remove. For
4018 # instance it was reported that on HP-UX the gcc test will end up
4019 # making a dummy file named 'D' -- because '-MD' means "put the output
4020 # in D".
4021 rm -rf conftest.dir
4022 mkdir conftest.dir
4023 # Copy depcomp to subdir because otherwise we won't find it if we're
4024 # using a relative directory.
4025 cp "$am_depcomp" conftest.dir
4026 cd conftest.dir
4027 # We will build objects and dependencies in a subdirectory because
4028 # it helps to detect inapplicable dependency modes. For instance
4029 # both Tru64's cc and ICC support -MD to output dependencies as a
4030 # side effect of compilation, but ICC will put the dependencies in
4031 # the current directory while Tru64 will put them in the object
4032 # directory.
4033 mkdir sub
4034
4035 am_cv_CC_dependencies_compiler_type=none
4036 if test "$am_compiler_list" = ""; then
4037 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4038 fi
4039 am__universal=false
4040 case " $depcc " in #(
4041 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4042 esac
4043
4044 for depmode in $am_compiler_list; do
4045 # Setup a source with many dependencies, because some compilers
4046 # like to wrap large dependency lists on column 80 (with \), and
4047 # we should not choose a depcomp mode which is confused by this.
4048 #
4049 # We need to recreate these files for each test, as the compiler may
4050 # overwrite some of them when testing with obscure command lines.
4051 # This happens at least with the AIX C compiler.
4052 : > sub/conftest.c
4053 for i in 1 2 3 4 5 6; do
4054 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4055 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4056 # Solaris 10 /bin/sh.
4057 echo '/* dummy */' > sub/conftst$i.h
4058 done
4059 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4060
4061 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4062 # mode. It turns out that the SunPro C++ compiler does not properly
4063 # handle '-M -o', and we need to detect this. Also, some Intel
4064 # versions had trouble with output in subdirs.
4065 am__obj=sub/conftest.${OBJEXT-o}
4066 am__minus_obj="-o $am__obj"
4067 case $depmode in
4068 gcc)
4069 # This depmode causes a compiler race in universal mode.
4070 test "$am__universal" = false || continue
4071 ;;
4072 nosideeffect)
4073 # After this tag, mechanisms are not by side-effect, so they'll
4074 # only be used when explicitly requested.
4075 if test "x$enable_dependency_tracking" = xyes; then
4076 continue
4077 else
4078 break
4079 fi
4080 ;;
4081 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4082 # This compiler won't grok '-c -o', but also, the minuso test has
4083 # not run yet. These depmodes are late enough in the game, and
4084 # so weak that their functioning should not be impacted.
4085 am__obj=conftest.${OBJEXT-o}
4086 am__minus_obj=
4087 ;;
4088 none) break ;;
4089 esac
4090 if depmode=$depmode \
4091 source=sub/conftest.c object=$am__obj \
4092 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4093 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4094 >/dev/null 2>conftest.err &&
4095 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4096 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4097 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4098 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4099 # icc doesn't choke on unknown options, it will just issue warnings
4100 # or remarks (even with -Werror). So we grep stderr for any message
4101 # that says an option was ignored or not supported.
4102 # When given -MP, icc 7.0 and 7.1 complain thusly:
4103 # icc: Command line warning: ignoring option '-M'; no argument required
4104 # The diagnosis changed in icc 8.0:
4105 # icc: Command line remark: option '-MP' not supported
4106 if (grep 'ignoring option' conftest.err ||
4107 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4108 am_cv_CC_dependencies_compiler_type=$depmode
4109 break
4110 fi
4111 fi
4112 done
4113
4114 cd ..
4115 rm -rf conftest.dir
4116else
4117 am_cv_CC_dependencies_compiler_type=none
4118fi
4119
4120fi
4121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4122$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4123CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4124
4125 if
4126 test "x$enable_dependency_tracking" != xno \
4127 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4128 am__fastdepCC_TRUE=
4129 am__fastdepCC_FALSE='#'
4130else
4131 am__fastdepCC_TRUE='#'
4132 am__fastdepCC_FALSE=
4133fi
4134
4135
4136case `pwd` in
4137 *\ * | *\ *)
4138 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4139$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4140esac
4141
4142
4143
2078c8a7
DJL
4144macro_version='2.4.6'
4145macro_revision='2.4.6'
904dbe44
CIK
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
2078c8a7 4159ltmain=$ac_aux_dir/ltmain.sh
904dbe44
CIK
4160
4161# Backslashify metacharacters that are still active within
4162# double-quoted strings.
4163sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4164
4165# Same as above, but do not quote variable references.
4166double_quote_subst='s/\(["`\\]\)/\\\1/g'
4167
4168# Sed substitution to delay expansion of an escaped shell variable in a
4169# double_quote_subst'ed string.
4170delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4171
4172# Sed substitution to delay expansion of an escaped single quote.
4173delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4174
4175# Sed substitution to avoid accidental globbing in evaled expressions
4176no_glob_subst='s/\*/\\\*/g'
4177
4178ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4179ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4180ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4181
4182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4183$as_echo_n "checking how to print strings... " >&6; }
4184# Test print first, because it will be a builtin if present.
4185if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4186 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4187 ECHO='print -r --'
4188elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4189 ECHO='printf %s\n'
4190else
4191 # Use this function as a fallback that always works.
4192 func_fallback_echo ()
4193 {
4194 eval 'cat <<_LTECHO_EOF
4195$1
4196_LTECHO_EOF'
4197 }
4198 ECHO='func_fallback_echo'
4199fi
4200
4201# func_echo_all arg...
4202# Invoke $ECHO with all args, space-separated.
4203func_echo_all ()
4204{
4205 $ECHO ""
4206}
4207
2078c8a7 4208case $ECHO in
904dbe44
CIK
4209 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4210$as_echo "printf" >&6; } ;;
4211 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4212$as_echo "print -r" >&6; } ;;
4213 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4214$as_echo "cat" >&6; } ;;
4215esac
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4231$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4232if ${ac_cv_path_SED+:} false; then :
4233 $as_echo_n "(cached) " >&6
4234else
4235 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4236 for ac_i in 1 2 3 4 5 6 7; do
4237 ac_script="$ac_script$as_nl$ac_script"
4238 done
4239 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4240 { ac_script=; unset ac_script;}
4241 if test -z "$SED"; then
4242 ac_path_SED_found=false
4243 # Loop through the user's path and test for each of PROGNAME-LIST
4244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4245for as_dir in $PATH
4246do
4247 IFS=$as_save_IFS
4248 test -z "$as_dir" && as_dir=.
4249 for ac_prog in sed gsed; do
4250 for ac_exec_ext in '' $ac_executable_extensions; do
4251 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4252 as_fn_executable_p "$ac_path_SED" || continue
4253# Check for GNU ac_path_SED and select it if it is found.
4254 # Check for GNU $ac_path_SED
4255case `"$ac_path_SED" --version 2>&1` in
4256*GNU*)
4257 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4258*)
4259 ac_count=0
4260 $as_echo_n 0123456789 >"conftest.in"
4261 while :
4262 do
4263 cat "conftest.in" "conftest.in" >"conftest.tmp"
4264 mv "conftest.tmp" "conftest.in"
4265 cp "conftest.in" "conftest.nl"
4266 $as_echo '' >> "conftest.nl"
4267 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4268 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4269 as_fn_arith $ac_count + 1 && ac_count=$as_val
4270 if test $ac_count -gt ${ac_path_SED_max-0}; then
4271 # Best one so far, save it but keep looking for a better one
4272 ac_cv_path_SED="$ac_path_SED"
4273 ac_path_SED_max=$ac_count
4274 fi
4275 # 10*(2^10) chars as input seems more than enough
4276 test $ac_count -gt 10 && break
4277 done
4278 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4279esac
4280
4281 $ac_path_SED_found && break 3
4282 done
4283 done
4284 done
4285IFS=$as_save_IFS
4286 if test -z "$ac_cv_path_SED"; then
4287 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4288 fi
4289else
4290 ac_cv_path_SED=$SED
4291fi
4292
4293fi
4294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4295$as_echo "$ac_cv_path_SED" >&6; }
4296 SED="$ac_cv_path_SED"
4297 rm -f conftest.sed
4298
4299test -z "$SED" && SED=sed
4300Xsed="$SED -e 1s/^X//"
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4313$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4314if ${ac_cv_path_GREP+:} false; then :
4315 $as_echo_n "(cached) " >&6
4316else
4317 if test -z "$GREP"; then
4318 ac_path_GREP_found=false
4319 # Loop through the user's path and test for each of PROGNAME-LIST
4320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4321for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4322do
4323 IFS=$as_save_IFS
4324 test -z "$as_dir" && as_dir=.
4325 for ac_prog in grep ggrep; do
4326 for ac_exec_ext in '' $ac_executable_extensions; do
4327 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4328 as_fn_executable_p "$ac_path_GREP" || continue
4329# Check for GNU ac_path_GREP and select it if it is found.
4330 # Check for GNU $ac_path_GREP
4331case `"$ac_path_GREP" --version 2>&1` in
4332*GNU*)
4333 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4334*)
4335 ac_count=0
4336 $as_echo_n 0123456789 >"conftest.in"
4337 while :
4338 do
4339 cat "conftest.in" "conftest.in" >"conftest.tmp"
4340 mv "conftest.tmp" "conftest.in"
4341 cp "conftest.in" "conftest.nl"
4342 $as_echo 'GREP' >> "conftest.nl"
4343 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4344 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4345 as_fn_arith $ac_count + 1 && ac_count=$as_val
4346 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4347 # Best one so far, save it but keep looking for a better one
4348 ac_cv_path_GREP="$ac_path_GREP"
4349 ac_path_GREP_max=$ac_count
4350 fi
4351 # 10*(2^10) chars as input seems more than enough
4352 test $ac_count -gt 10 && break
4353 done
4354 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4355esac
4356
4357 $ac_path_GREP_found && break 3
4358 done
4359 done
4360 done
4361IFS=$as_save_IFS
4362 if test -z "$ac_cv_path_GREP"; then
4363 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4364 fi
4365else
4366 ac_cv_path_GREP=$GREP
4367fi
4368
4369fi
4370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4371$as_echo "$ac_cv_path_GREP" >&6; }
4372 GREP="$ac_cv_path_GREP"
4373
4374
4375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4376$as_echo_n "checking for egrep... " >&6; }
4377if ${ac_cv_path_EGREP+:} false; then :
4378 $as_echo_n "(cached) " >&6
4379else
4380 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4381 then ac_cv_path_EGREP="$GREP -E"
4382 else
4383 if test -z "$EGREP"; then
4384 ac_path_EGREP_found=false
4385 # Loop through the user's path and test for each of PROGNAME-LIST
4386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4387for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4388do
4389 IFS=$as_save_IFS
4390 test -z "$as_dir" && as_dir=.
4391 for ac_prog in egrep; do
4392 for ac_exec_ext in '' $ac_executable_extensions; do
4393 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4394 as_fn_executable_p "$ac_path_EGREP" || continue
4395# Check for GNU ac_path_EGREP and select it if it is found.
4396 # Check for GNU $ac_path_EGREP
4397case `"$ac_path_EGREP" --version 2>&1` in
4398*GNU*)
4399 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4400*)
4401 ac_count=0
4402 $as_echo_n 0123456789 >"conftest.in"
4403 while :
4404 do
4405 cat "conftest.in" "conftest.in" >"conftest.tmp"
4406 mv "conftest.tmp" "conftest.in"
4407 cp "conftest.in" "conftest.nl"
4408 $as_echo 'EGREP' >> "conftest.nl"
4409 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4410 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4411 as_fn_arith $ac_count + 1 && ac_count=$as_val
4412 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4413 # Best one so far, save it but keep looking for a better one
4414 ac_cv_path_EGREP="$ac_path_EGREP"
4415 ac_path_EGREP_max=$ac_count
4416 fi
4417 # 10*(2^10) chars as input seems more than enough
4418 test $ac_count -gt 10 && break
4419 done
4420 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4421esac
4422
4423 $ac_path_EGREP_found && break 3
4424 done
4425 done
4426 done
4427IFS=$as_save_IFS
4428 if test -z "$ac_cv_path_EGREP"; then
4429 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4430 fi
4431else
4432 ac_cv_path_EGREP=$EGREP
4433fi
4434
4435 fi
4436fi
4437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4438$as_echo "$ac_cv_path_EGREP" >&6; }
4439 EGREP="$ac_cv_path_EGREP"
4440
4441
4442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4443$as_echo_n "checking for fgrep... " >&6; }
4444if ${ac_cv_path_FGREP+:} false; then :
4445 $as_echo_n "(cached) " >&6
4446else
4447 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4448 then ac_cv_path_FGREP="$GREP -F"
4449 else
4450 if test -z "$FGREP"; then
4451 ac_path_FGREP_found=false
4452 # Loop through the user's path and test for each of PROGNAME-LIST
4453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4454for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4455do
4456 IFS=$as_save_IFS
4457 test -z "$as_dir" && as_dir=.
4458 for ac_prog in fgrep; do
4459 for ac_exec_ext in '' $ac_executable_extensions; do
4460 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4461 as_fn_executable_p "$ac_path_FGREP" || continue
4462# Check for GNU ac_path_FGREP and select it if it is found.
4463 # Check for GNU $ac_path_FGREP
4464case `"$ac_path_FGREP" --version 2>&1` in
4465*GNU*)
4466 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4467*)
4468 ac_count=0
4469 $as_echo_n 0123456789 >"conftest.in"
4470 while :
4471 do
4472 cat "conftest.in" "conftest.in" >"conftest.tmp"
4473 mv "conftest.tmp" "conftest.in"
4474 cp "conftest.in" "conftest.nl"
4475 $as_echo 'FGREP' >> "conftest.nl"
4476 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4477 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4478 as_fn_arith $ac_count + 1 && ac_count=$as_val
4479 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4480 # Best one so far, save it but keep looking for a better one
4481 ac_cv_path_FGREP="$ac_path_FGREP"
4482 ac_path_FGREP_max=$ac_count
4483 fi
4484 # 10*(2^10) chars as input seems more than enough
4485 test $ac_count -gt 10 && break
4486 done
4487 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4488esac
4489
4490 $ac_path_FGREP_found && break 3
4491 done
4492 done
4493 done
4494IFS=$as_save_IFS
4495 if test -z "$ac_cv_path_FGREP"; then
4496 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4497 fi
4498else
4499 ac_cv_path_FGREP=$FGREP
4500fi
4501
4502 fi
4503fi
4504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4505$as_echo "$ac_cv_path_FGREP" >&6; }
4506 FGREP="$ac_cv_path_FGREP"
4507
4508
4509test -z "$GREP" && GREP=grep
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529# Check whether --with-gnu-ld was given.
4530if test "${with_gnu_ld+set}" = set; then :
2078c8a7 4531 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
904dbe44
CIK
4532else
4533 with_gnu_ld=no
4534fi
4535
4536ac_prog=ld
2078c8a7 4537if test yes = "$GCC"; then
904dbe44
CIK
4538 # Check if gcc -print-prog-name=ld gives a path.
4539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4540$as_echo_n "checking for ld used by $CC... " >&6; }
4541 case $host in
4542 *-*-mingw*)
2078c8a7 4543 # gcc leaves a trailing carriage return, which upsets mingw
904dbe44
CIK
4544 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4545 *)
4546 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4547 esac
4548 case $ac_prog in
4549 # Accept absolute paths.
4550 [\\/]* | ?:[\\/]*)
4551 re_direlt='/[^/][^/]*/\.\./'
4552 # Canonicalize the pathname of ld
4553 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4554 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4555 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4556 done
2078c8a7 4557 test -z "$LD" && LD=$ac_prog
904dbe44
CIK
4558 ;;
4559 "")
4560 # If it fails, then pretend we aren't using GCC.
4561 ac_prog=ld
4562 ;;
4563 *)
4564 # If it is relative, then search for the first ld in PATH.
4565 with_gnu_ld=unknown
4566 ;;
4567 esac
2078c8a7 4568elif test yes = "$with_gnu_ld"; then
904dbe44
CIK
4569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4570$as_echo_n "checking for GNU ld... " >&6; }
4571else
4572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4573$as_echo_n "checking for non-GNU ld... " >&6; }
4574fi
4575if ${lt_cv_path_LD+:} false; then :
4576 $as_echo_n "(cached) " >&6
4577else
4578 if test -z "$LD"; then
2078c8a7 4579 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
904dbe44 4580 for ac_dir in $PATH; do
2078c8a7 4581 IFS=$lt_save_ifs
904dbe44
CIK
4582 test -z "$ac_dir" && ac_dir=.
4583 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2078c8a7 4584 lt_cv_path_LD=$ac_dir/$ac_prog
904dbe44
CIK
4585 # Check to see if the program is GNU ld. I'd rather use --version,
4586 # but apparently some variants of GNU ld only accept -v.
4587 # Break only if it was the GNU/non-GNU ld that we prefer.
4588 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4589 *GNU* | *'with BFD'*)
2078c8a7 4590 test no != "$with_gnu_ld" && break
904dbe44
CIK
4591 ;;
4592 *)
2078c8a7 4593 test yes != "$with_gnu_ld" && break
904dbe44
CIK
4594 ;;
4595 esac
4596 fi
4597 done
2078c8a7 4598 IFS=$lt_save_ifs
904dbe44 4599else
2078c8a7 4600 lt_cv_path_LD=$LD # Let the user override the test with a path.
904dbe44
CIK
4601fi
4602fi
4603
2078c8a7 4604LD=$lt_cv_path_LD
904dbe44
CIK
4605if test -n "$LD"; then
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4607$as_echo "$LD" >&6; }
4608else
4609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4610$as_echo "no" >&6; }
4611fi
4612test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4614$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4615if ${lt_cv_prog_gnu_ld+:} false; then :
4616 $as_echo_n "(cached) " >&6
4617else
4618 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4619case `$LD -v 2>&1 </dev/null` in
4620*GNU* | *'with BFD'*)
4621 lt_cv_prog_gnu_ld=yes
4622 ;;
4623*)
4624 lt_cv_prog_gnu_ld=no
4625 ;;
4626esac
4627fi
4628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4629$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4630with_gnu_ld=$lt_cv_prog_gnu_ld
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4641$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4642if ${lt_cv_path_NM+:} false; then :
4643 $as_echo_n "(cached) " >&6
4644else
4645 if test -n "$NM"; then
4646 # Let the user override the test.
2078c8a7 4647 lt_cv_path_NM=$NM
904dbe44 4648else
2078c8a7 4649 lt_nm_to_check=${ac_tool_prefix}nm
904dbe44
CIK
4650 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4651 lt_nm_to_check="$lt_nm_to_check nm"
4652 fi
4653 for lt_tmp_nm in $lt_nm_to_check; do
2078c8a7 4654 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
904dbe44 4655 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
2078c8a7 4656 IFS=$lt_save_ifs
904dbe44 4657 test -z "$ac_dir" && ac_dir=.
2078c8a7
DJL
4658 tmp_nm=$ac_dir/$lt_tmp_nm
4659 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
904dbe44 4660 # Check to see if the nm accepts a BSD-compat flag.
2078c8a7 4661 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
904dbe44
CIK
4662 # nm: unknown option "B" ignored
4663 # Tru64's nm complains that /dev/null is an invalid object file
2078c8a7
DJL
4664 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4665 case $build_os in
4666 mingw*) lt_bad_file=conftest.nm/nofile ;;
4667 *) lt_bad_file=/dev/null ;;
4668 esac
4669 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4670 *$lt_bad_file* | *'Invalid file or object type'*)
904dbe44 4671 lt_cv_path_NM="$tmp_nm -B"
2078c8a7 4672 break 2
904dbe44
CIK
4673 ;;
4674 *)
4675 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4676 */dev/null*)
4677 lt_cv_path_NM="$tmp_nm -p"
2078c8a7 4678 break 2
904dbe44
CIK
4679 ;;
4680 *)
4681 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4682 continue # so that we can try to find one that supports BSD flags
4683 ;;
4684 esac
4685 ;;
4686 esac
4687 fi
4688 done
2078c8a7 4689 IFS=$lt_save_ifs
904dbe44
CIK
4690 done
4691 : ${lt_cv_path_NM=no}
4692fi
4693fi
4694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4695$as_echo "$lt_cv_path_NM" >&6; }
2078c8a7
DJL
4696if test no != "$lt_cv_path_NM"; then
4697 NM=$lt_cv_path_NM
904dbe44
CIK
4698else
4699 # Didn't find any BSD compatible name lister, look for dumpbin.
4700 if test -n "$DUMPBIN"; then :
4701 # Let the user override the test.
4702 else
4703 if test -n "$ac_tool_prefix"; then
4704 for ac_prog in dumpbin "link -dump"
4705 do
4706 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4707set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4709$as_echo_n "checking for $ac_word... " >&6; }
4710if ${ac_cv_prog_DUMPBIN+:} false; then :
4711 $as_echo_n "(cached) " >&6
4712else
4713 if test -n "$DUMPBIN"; then
4714 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4715else
4716as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4717for as_dir in $PATH
4718do
4719 IFS=$as_save_IFS
4720 test -z "$as_dir" && as_dir=.
4721 for ac_exec_ext in '' $ac_executable_extensions; do
4722 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4723 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4725 break 2
4726 fi
4727done
4728 done
4729IFS=$as_save_IFS
4730
4731fi
4732fi
4733DUMPBIN=$ac_cv_prog_DUMPBIN
4734if test -n "$DUMPBIN"; then
4735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4736$as_echo "$DUMPBIN" >&6; }
4737else
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4739$as_echo "no" >&6; }
4740fi
4741
4742
4743 test -n "$DUMPBIN" && break
4744 done
4745fi
4746if test -z "$DUMPBIN"; then
4747 ac_ct_DUMPBIN=$DUMPBIN
4748 for ac_prog in dumpbin "link -dump"
4749do
4750 # Extract the first word of "$ac_prog", so it can be a program name with args.
4751set dummy $ac_prog; ac_word=$2
4752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4753$as_echo_n "checking for $ac_word... " >&6; }
4754if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4755 $as_echo_n "(cached) " >&6
4756else
4757 if test -n "$ac_ct_DUMPBIN"; then
4758 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4759else
4760as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4761for as_dir in $PATH
4762do
4763 IFS=$as_save_IFS
4764 test -z "$as_dir" && as_dir=.
4765 for ac_exec_ext in '' $ac_executable_extensions; do
4766 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4767 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4769 break 2
4770 fi
4771done
4772 done
4773IFS=$as_save_IFS
4774
4775fi
4776fi
4777ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4778if test -n "$ac_ct_DUMPBIN"; then
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4780$as_echo "$ac_ct_DUMPBIN" >&6; }
4781else
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4783$as_echo "no" >&6; }
4784fi
4785
4786
4787 test -n "$ac_ct_DUMPBIN" && break
4788done
4789
4790 if test "x$ac_ct_DUMPBIN" = x; then
4791 DUMPBIN=":"
4792 else
4793 case $cross_compiling:$ac_tool_warned in
4794yes:)
4795{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4796$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4797ac_tool_warned=yes ;;
4798esac
4799 DUMPBIN=$ac_ct_DUMPBIN
4800 fi
4801fi
4802
2078c8a7 4803 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
904dbe44 4804 *COFF*)
2078c8a7 4805 DUMPBIN="$DUMPBIN -symbols -headers"
904dbe44
CIK
4806 ;;
4807 *)
4808 DUMPBIN=:
4809 ;;
4810 esac
4811 fi
4812
2078c8a7
DJL
4813 if test : != "$DUMPBIN"; then
4814 NM=$DUMPBIN
904dbe44
CIK
4815 fi
4816fi
4817test -z "$NM" && NM=nm
4818
4819
4820
4821
4822
4823
4824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4825$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4826if ${lt_cv_nm_interface+:} false; then :
4827 $as_echo_n "(cached) " >&6
4828else
4829 lt_cv_nm_interface="BSD nm"
4830 echo "int some_variable = 0;" > conftest.$ac_ext
4831 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4832 (eval "$ac_compile" 2>conftest.err)
4833 cat conftest.err >&5
4834 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4835 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4836 cat conftest.err >&5
4837 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4838 cat conftest.out >&5
4839 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4840 lt_cv_nm_interface="MS dumpbin"
4841 fi
4842 rm -f conftest*
4843fi
4844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4845$as_echo "$lt_cv_nm_interface" >&6; }
4846
4847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4848$as_echo_n "checking whether ln -s works... " >&6; }
4849LN_S=$as_ln_s
4850if test "$LN_S" = "ln -s"; then
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4852$as_echo "yes" >&6; }
4853else
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4855$as_echo "no, using $LN_S" >&6; }
4856fi
4857
4858# find the maximum length of command line arguments
4859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4860$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4861if ${lt_cv_sys_max_cmd_len+:} false; then :
4862 $as_echo_n "(cached) " >&6
4863else
4864 i=0
2078c8a7 4865 teststring=ABCD
904dbe44
CIK
4866
4867 case $build_os in
4868 msdosdjgpp*)
4869 # On DJGPP, this test can blow up pretty badly due to problems in libc
4870 # (any single argument exceeding 2000 bytes causes a buffer overrun
4871 # during glob expansion). Even if it were fixed, the result of this
4872 # check would be larger than it should be.
4873 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4874 ;;
4875
4876 gnu*)
4877 # Under GNU Hurd, this test is not required because there is
4878 # no limit to the length of command line arguments.
4879 # Libtool will interpret -1 as no limit whatsoever
4880 lt_cv_sys_max_cmd_len=-1;
4881 ;;
4882
4883 cygwin* | mingw* | cegcc*)
4884 # On Win9x/ME, this test blows up -- it succeeds, but takes
4885 # about 5 minutes as the teststring grows exponentially.
4886 # Worse, since 9x/ME are not pre-emptively multitasking,
4887 # you end up with a "frozen" computer, even though with patience
4888 # the test eventually succeeds (with a max line length of 256k).
4889 # Instead, let's just punt: use the minimum linelength reported by
4890 # all of the supported platforms: 8192 (on NT/2K/XP).
4891 lt_cv_sys_max_cmd_len=8192;
4892 ;;
4893
4894 mint*)
4895 # On MiNT this can take a long time and run out of memory.
4896 lt_cv_sys_max_cmd_len=8192;
4897 ;;
4898
4899 amigaos*)
4900 # On AmigaOS with pdksh, this test takes hours, literally.
4901 # So we just punt and use a minimum line length of 8192.
4902 lt_cv_sys_max_cmd_len=8192;
4903 ;;
4904
2078c8a7 4905 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
904dbe44
CIK
4906 # This has been around since 386BSD, at least. Likely further.
4907 if test -x /sbin/sysctl; then
4908 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4909 elif test -x /usr/sbin/sysctl; then
4910 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4911 else
4912 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4913 fi
4914 # And add a safety zone
4915 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4916 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4917 ;;
4918
4919 interix*)
4920 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4921 lt_cv_sys_max_cmd_len=196608
4922 ;;
4923
4924 os2*)
4925 # The test takes a long time on OS/2.
4926 lt_cv_sys_max_cmd_len=8192
4927 ;;
4928
4929 osf*)
4930 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4931 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4932 # nice to cause kernel panics so lets avoid the loop below.
4933 # First set a reasonable default.
4934 lt_cv_sys_max_cmd_len=16384
4935 #
4936 if test -x /sbin/sysconfig; then
4937 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4938 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4939 esac
4940 fi
4941 ;;
4942 sco3.2v5*)
4943 lt_cv_sys_max_cmd_len=102400
4944 ;;
4945 sysv5* | sco5v6* | sysv4.2uw2*)
4946 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4947 if test -n "$kargmax"; then
4948 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4949 else
4950 lt_cv_sys_max_cmd_len=32768
4951 fi
4952 ;;
4953 *)
4954 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4955 if test -n "$lt_cv_sys_max_cmd_len" && \
2078c8a7 4956 test undefined != "$lt_cv_sys_max_cmd_len"; then
904dbe44
CIK
4957 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4958 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4959 else
4960 # Make teststring a little bigger before we do anything with it.
4961 # a 1K string should be a reasonable start.
2078c8a7 4962 for i in 1 2 3 4 5 6 7 8; do
904dbe44
CIK
4963 teststring=$teststring$teststring
4964 done
4965 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4966 # If test is not a shell built-in, we'll probably end up computing a
4967 # maximum length that is only half of the actual maximum length, but
4968 # we can't tell.
2078c8a7 4969 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
904dbe44 4970 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
2078c8a7 4971 test 17 != "$i" # 1/2 MB should be enough
904dbe44
CIK
4972 do
4973 i=`expr $i + 1`
4974 teststring=$teststring$teststring
4975 done
4976 # Only check the string length outside the loop.
4977 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4978 teststring=
4979 # Add a significant safety factor because C++ compilers can tack on
4980 # massive amounts of additional arguments before passing them to the
4981 # linker. It appears as though 1/2 is a usable value.
4982 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4983 fi
4984 ;;
4985 esac
4986
4987fi
4988
2078c8a7 4989if test -n "$lt_cv_sys_max_cmd_len"; then
904dbe44
CIK
4990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4991$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4992else
4993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4994$as_echo "none" >&6; }
4995fi
4996max_cmd_len=$lt_cv_sys_max_cmd_len
4997
4998
4999
5000
5001
5002
5003: ${CP="cp -f"}
5004: ${MV="mv -f"}
5005: ${RM="rm -f"}
5006
904dbe44
CIK
5007if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5008 lt_unset=unset
5009else
5010 lt_unset=false
5011fi
5012
5013
5014
5015
5016
5017# test EBCDIC or ASCII
5018case `echo X|tr X '\101'` in
5019 A) # ASCII based system
5020 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5021 lt_SP2NL='tr \040 \012'
5022 lt_NL2SP='tr \015\012 \040\040'
5023 ;;
5024 *) # EBCDIC based system
5025 lt_SP2NL='tr \100 \n'
5026 lt_NL2SP='tr \r\n \100\100'
5027 ;;
5028esac
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5039$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5040if ${lt_cv_to_host_file_cmd+:} false; then :
5041 $as_echo_n "(cached) " >&6
5042else
5043 case $host in
5044 *-*-mingw* )
5045 case $build in
5046 *-*-mingw* ) # actually msys
5047 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5048 ;;
5049 *-*-cygwin* )
5050 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5051 ;;
5052 * ) # otherwise, assume *nix
5053 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5054 ;;
5055 esac
5056 ;;
5057 *-*-cygwin* )
5058 case $build in
5059 *-*-mingw* ) # actually msys
5060 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5061 ;;
5062 *-*-cygwin* )
5063 lt_cv_to_host_file_cmd=func_convert_file_noop
5064 ;;
5065 * ) # otherwise, assume *nix
5066 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5067 ;;
5068 esac
5069 ;;
5070 * ) # unhandled hosts (and "normal" native builds)
5071 lt_cv_to_host_file_cmd=func_convert_file_noop
5072 ;;
5073esac
5074
5075fi
5076
5077to_host_file_cmd=$lt_cv_to_host_file_cmd
5078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5079$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5080
5081
5082
5083
5084
5085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5086$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5087if ${lt_cv_to_tool_file_cmd+:} false; then :
5088 $as_echo_n "(cached) " >&6
5089else
5090 #assume ordinary cross tools, or native build.
5091lt_cv_to_tool_file_cmd=func_convert_file_noop
5092case $host in
5093 *-*-mingw* )
5094 case $build in
5095 *-*-mingw* ) # actually msys
5096 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5097 ;;
5098 esac
5099 ;;
5100esac
5101
5102fi
5103
5104to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5106$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5107
5108
5109
5110
5111
5112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5113$as_echo_n "checking for $LD option to reload object files... " >&6; }
5114if ${lt_cv_ld_reload_flag+:} false; then :
5115 $as_echo_n "(cached) " >&6
5116else
5117 lt_cv_ld_reload_flag='-r'
5118fi
5119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5120$as_echo "$lt_cv_ld_reload_flag" >&6; }
5121reload_flag=$lt_cv_ld_reload_flag
5122case $reload_flag in
5123"" | " "*) ;;
5124*) reload_flag=" $reload_flag" ;;
5125esac
5126reload_cmds='$LD$reload_flag -o $output$reload_objs'
5127case $host_os in
5128 cygwin* | mingw* | pw32* | cegcc*)
2078c8a7 5129 if test yes != "$GCC"; then
904dbe44
CIK
5130 reload_cmds=false
5131 fi
5132 ;;
5133 darwin*)
2078c8a7
DJL
5134 if test yes = "$GCC"; then
5135 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
904dbe44
CIK
5136 else
5137 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5138 fi
5139 ;;
5140esac
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150if test -n "$ac_tool_prefix"; then
5151 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5152set dummy ${ac_tool_prefix}objdump; ac_word=$2
5153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5154$as_echo_n "checking for $ac_word... " >&6; }
5155if ${ac_cv_prog_OBJDUMP+:} false; then :
5156 $as_echo_n "(cached) " >&6
5157else
5158 if test -n "$OBJDUMP"; then
5159 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5160else
5161as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5162for as_dir in $PATH
5163do
5164 IFS=$as_save_IFS
5165 test -z "$as_dir" && as_dir=.
5166 for ac_exec_ext in '' $ac_executable_extensions; do
5167 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5168 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5170 break 2
5171 fi
5172done
5173 done
5174IFS=$as_save_IFS
5175
5176fi
5177fi
5178OBJDUMP=$ac_cv_prog_OBJDUMP
5179if test -n "$OBJDUMP"; then
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5181$as_echo "$OBJDUMP" >&6; }
5182else
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5184$as_echo "no" >&6; }
5185fi
5186
5187
5188fi
5189if test -z "$ac_cv_prog_OBJDUMP"; then
5190 ac_ct_OBJDUMP=$OBJDUMP
5191 # Extract the first word of "objdump", so it can be a program name with args.
5192set dummy objdump; ac_word=$2
5193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5194$as_echo_n "checking for $ac_word... " >&6; }
5195if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5196 $as_echo_n "(cached) " >&6
5197else
5198 if test -n "$ac_ct_OBJDUMP"; then
5199 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5200else
5201as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5202for as_dir in $PATH
5203do
5204 IFS=$as_save_IFS
5205 test -z "$as_dir" && as_dir=.
5206 for ac_exec_ext in '' $ac_executable_extensions; do
5207 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5208 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5210 break 2
5211 fi
5212done
5213 done
5214IFS=$as_save_IFS
5215
5216fi
5217fi
5218ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5219if test -n "$ac_ct_OBJDUMP"; then
5220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5221$as_echo "$ac_ct_OBJDUMP" >&6; }
5222else
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5224$as_echo "no" >&6; }
5225fi
5226
5227 if test "x$ac_ct_OBJDUMP" = x; then
5228 OBJDUMP="false"
5229 else
5230 case $cross_compiling:$ac_tool_warned in
5231yes:)
5232{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5233$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5234ac_tool_warned=yes ;;
5235esac
5236 OBJDUMP=$ac_ct_OBJDUMP
5237 fi
5238else
5239 OBJDUMP="$ac_cv_prog_OBJDUMP"
5240fi
5241
5242test -z "$OBJDUMP" && OBJDUMP=objdump
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5253$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5254if ${lt_cv_deplibs_check_method+:} false; then :
5255 $as_echo_n "(cached) " >&6
5256else
5257 lt_cv_file_magic_cmd='$MAGIC_CMD'
5258lt_cv_file_magic_test_file=
5259lt_cv_deplibs_check_method='unknown'
5260# Need to set the preceding variable on all platforms that support
5261# interlibrary dependencies.
5262# 'none' -- dependencies not supported.
2078c8a7 5263# 'unknown' -- same as none, but documents that we really don't know.
904dbe44
CIK
5264# 'pass_all' -- all dependencies passed with no checks.
5265# 'test_compile' -- check by making test program.
5266# 'file_magic [[regex]]' -- check by looking for files in library path
2078c8a7
DJL
5267# that responds to the $file_magic_cmd with a given extended regex.
5268# If you have 'file' or equivalent on your system and you're not sure
5269# whether 'pass_all' will *always* work, you probably want this one.
904dbe44
CIK
5270
5271case $host_os in
5272aix[4-9]*)
5273 lt_cv_deplibs_check_method=pass_all
5274 ;;
5275
5276beos*)
5277 lt_cv_deplibs_check_method=pass_all
5278 ;;
5279
5280bsdi[45]*)
5281 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5282 lt_cv_file_magic_cmd='/usr/bin/file -L'
5283 lt_cv_file_magic_test_file=/shlib/libc.so
5284 ;;
5285
5286cygwin*)
5287 # func_win32_libid is a shell function defined in ltmain.sh
5288 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5289 lt_cv_file_magic_cmd='func_win32_libid'
5290 ;;
5291
5292mingw* | pw32*)
5293 # Base MSYS/MinGW do not provide the 'file' command needed by
5294 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5295 # unless we find 'file', for example because we are cross-compiling.
2078c8a7 5296 if ( file / ) >/dev/null 2>&1; then
904dbe44
CIK
5297 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5298 lt_cv_file_magic_cmd='func_win32_libid'
5299 else
5300 # Keep this pattern in sync with the one in func_win32_libid.
5301 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5302 lt_cv_file_magic_cmd='$OBJDUMP -f'
5303 fi
5304 ;;
5305
5306cegcc*)
5307 # use the weaker test based on 'objdump'. See mingw*.
5308 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5309 lt_cv_file_magic_cmd='$OBJDUMP -f'
5310 ;;
5311
5312darwin* | rhapsody*)
5313 lt_cv_deplibs_check_method=pass_all
5314 ;;
5315
5316freebsd* | dragonfly*)
5317 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5318 case $host_cpu in
5319 i*86 )
5320 # Not sure whether the presence of OpenBSD here was a mistake.
5321 # Let's accept both of them until this is cleared up.
5322 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5323 lt_cv_file_magic_cmd=/usr/bin/file
5324 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5325 ;;
5326 esac
5327 else
5328 lt_cv_deplibs_check_method=pass_all
5329 fi
5330 ;;
5331
5332haiku*)
5333 lt_cv_deplibs_check_method=pass_all
5334 ;;
5335
5336hpux10.20* | hpux11*)
5337 lt_cv_file_magic_cmd=/usr/bin/file
5338 case $host_cpu in
5339 ia64*)
5340 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5341 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5342 ;;
5343 hppa*64*)
5344 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]'
5345 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5346 ;;
5347 *)
5348 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5349 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5350 ;;
5351 esac
5352 ;;
5353
5354interix[3-9]*)
5355 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5356 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5357 ;;
5358
5359irix5* | irix6* | nonstopux*)
5360 case $LD in
5361 *-32|*"-32 ") libmagic=32-bit;;
5362 *-n32|*"-n32 ") libmagic=N32;;
5363 *-64|*"-64 ") libmagic=64-bit;;
5364 *) libmagic=never-match;;
5365 esac
5366 lt_cv_deplibs_check_method=pass_all
5367 ;;
5368
5369# This must be glibc/ELF.
5370linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5371 lt_cv_deplibs_check_method=pass_all
5372 ;;
5373
5374netbsd* | netbsdelf*-gnu)
5375 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5376 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5377 else
5378 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5379 fi
5380 ;;
5381
5382newos6*)
5383 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5384 lt_cv_file_magic_cmd=/usr/bin/file
5385 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5386 ;;
5387
5388*nto* | *qnx*)
5389 lt_cv_deplibs_check_method=pass_all
5390 ;;
5391
2078c8a7
DJL
5392openbsd* | bitrig*)
5393 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
904dbe44
CIK
5394 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5395 else
5396 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5397 fi
5398 ;;
5399
5400osf3* | osf4* | osf5*)
5401 lt_cv_deplibs_check_method=pass_all
5402 ;;
5403
5404rdos*)
5405 lt_cv_deplibs_check_method=pass_all
5406 ;;
5407
5408solaris*)
5409 lt_cv_deplibs_check_method=pass_all
5410 ;;
5411
5412sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5413 lt_cv_deplibs_check_method=pass_all
5414 ;;
5415
5416sysv4 | sysv4.3*)
5417 case $host_vendor in
5418 motorola)
5419 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]'
5420 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5421 ;;
5422 ncr)
5423 lt_cv_deplibs_check_method=pass_all
5424 ;;
5425 sequent)
5426 lt_cv_file_magic_cmd='/bin/file'
5427 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5428 ;;
5429 sni)
5430 lt_cv_file_magic_cmd='/bin/file'
5431 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5432 lt_cv_file_magic_test_file=/lib/libc.so
5433 ;;
5434 siemens)
5435 lt_cv_deplibs_check_method=pass_all
5436 ;;
5437 pc)
5438 lt_cv_deplibs_check_method=pass_all
5439 ;;
5440 esac
5441 ;;
5442
5443tpf*)
5444 lt_cv_deplibs_check_method=pass_all
5445 ;;
2078c8a7
DJL
5446os2*)
5447 lt_cv_deplibs_check_method=pass_all
5448 ;;
904dbe44
CIK
5449esac
5450
5451fi
5452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5453$as_echo "$lt_cv_deplibs_check_method" >&6; }
5454
5455file_magic_glob=
5456want_nocaseglob=no
5457if test "$build" = "$host"; then
5458 case $host_os in
5459 mingw* | pw32*)
5460 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5461 want_nocaseglob=yes
5462 else
5463 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5464 fi
5465 ;;
5466 esac
5467fi
5468
5469file_magic_cmd=$lt_cv_file_magic_cmd
5470deplibs_check_method=$lt_cv_deplibs_check_method
5471test -z "$deplibs_check_method" && deplibs_check_method=unknown
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494if test -n "$ac_tool_prefix"; then
5495 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5496set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5498$as_echo_n "checking for $ac_word... " >&6; }
5499if ${ac_cv_prog_DLLTOOL+:} false; then :
5500 $as_echo_n "(cached) " >&6
5501else
5502 if test -n "$DLLTOOL"; then
5503 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5504else
5505as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5506for as_dir in $PATH
5507do
5508 IFS=$as_save_IFS
5509 test -z "$as_dir" && as_dir=.
5510 for ac_exec_ext in '' $ac_executable_extensions; do
5511 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5512 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5514 break 2
5515 fi
5516done
5517 done
5518IFS=$as_save_IFS
5519
5520fi
5521fi
5522DLLTOOL=$ac_cv_prog_DLLTOOL
5523if test -n "$DLLTOOL"; then
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5525$as_echo "$DLLTOOL" >&6; }
5526else
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5528$as_echo "no" >&6; }
5529fi
5530
5531
5532fi
5533if test -z "$ac_cv_prog_DLLTOOL"; then
5534 ac_ct_DLLTOOL=$DLLTOOL
5535 # Extract the first word of "dlltool", so it can be a program name with args.
5536set dummy dlltool; ac_word=$2
5537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5538$as_echo_n "checking for $ac_word... " >&6; }
5539if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5540 $as_echo_n "(cached) " >&6
5541else
5542 if test -n "$ac_ct_DLLTOOL"; then
5543 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5544else
5545as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5546for as_dir in $PATH
5547do
5548 IFS=$as_save_IFS
5549 test -z "$as_dir" && as_dir=.
5550 for ac_exec_ext in '' $ac_executable_extensions; do
5551 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5552 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5554 break 2
5555 fi
5556done
5557 done
5558IFS=$as_save_IFS
5559
5560fi
5561fi
5562ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5563if test -n "$ac_ct_DLLTOOL"; then
5564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5565$as_echo "$ac_ct_DLLTOOL" >&6; }
5566else
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5568$as_echo "no" >&6; }
5569fi
5570
5571 if test "x$ac_ct_DLLTOOL" = x; then
5572 DLLTOOL="false"
5573 else
5574 case $cross_compiling:$ac_tool_warned in
5575yes:)
5576{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5577$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5578ac_tool_warned=yes ;;
5579esac
5580 DLLTOOL=$ac_ct_DLLTOOL
5581 fi
5582else
5583 DLLTOOL="$ac_cv_prog_DLLTOOL"
5584fi
5585
5586test -z "$DLLTOOL" && DLLTOOL=dlltool
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5598$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5599if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5600 $as_echo_n "(cached) " >&6
5601else
5602 lt_cv_sharedlib_from_linklib_cmd='unknown'
5603
5604case $host_os in
5605cygwin* | mingw* | pw32* | cegcc*)
2078c8a7
DJL
5606 # two different shell functions defined in ltmain.sh;
5607 # decide which one to use based on capabilities of $DLLTOOL
904dbe44
CIK
5608 case `$DLLTOOL --help 2>&1` in
5609 *--identify-strict*)
5610 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5611 ;;
5612 *)
5613 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5614 ;;
5615 esac
5616 ;;
5617*)
5618 # fallback: assume linklib IS sharedlib
2078c8a7 5619 lt_cv_sharedlib_from_linklib_cmd=$ECHO
904dbe44
CIK
5620 ;;
5621esac
5622
5623fi
5624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5625$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5626sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5627test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5628
5629
5630
5631
5632
5633
5634
5635
5636if test -n "$ac_tool_prefix"; then
5637 for ac_prog in ar
5638 do
5639 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5640set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5642$as_echo_n "checking for $ac_word... " >&6; }
5643if ${ac_cv_prog_AR+:} false; then :
5644 $as_echo_n "(cached) " >&6
5645else
5646 if test -n "$AR"; then
5647 ac_cv_prog_AR="$AR" # Let the user override the test.
5648else
5649as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5650for as_dir in $PATH
5651do
5652 IFS=$as_save_IFS
5653 test -z "$as_dir" && as_dir=.
5654 for ac_exec_ext in '' $ac_executable_extensions; do
5655 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5656 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5658 break 2
5659 fi
5660done
5661 done
5662IFS=$as_save_IFS
5663
5664fi
5665fi
5666AR=$ac_cv_prog_AR
5667if test -n "$AR"; then
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5669$as_echo "$AR" >&6; }
5670else
5671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5672$as_echo "no" >&6; }
5673fi
5674
5675
5676 test -n "$AR" && break
5677 done
5678fi
5679if test -z "$AR"; then
5680 ac_ct_AR=$AR
5681 for ac_prog in ar
5682do
5683 # Extract the first word of "$ac_prog", so it can be a program name with args.
5684set dummy $ac_prog; ac_word=$2
5685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5686$as_echo_n "checking for $ac_word... " >&6; }
5687if ${ac_cv_prog_ac_ct_AR+:} false; then :
5688 $as_echo_n "(cached) " >&6
5689else
5690 if test -n "$ac_ct_AR"; then
5691 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5692else
5693as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5694for as_dir in $PATH
5695do
5696 IFS=$as_save_IFS
5697 test -z "$as_dir" && as_dir=.
5698 for ac_exec_ext in '' $ac_executable_extensions; do
5699 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5700 ac_cv_prog_ac_ct_AR="$ac_prog"
5701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5702 break 2
5703 fi
5704done
5705 done
5706IFS=$as_save_IFS
5707
5708fi
5709fi
5710ac_ct_AR=$ac_cv_prog_ac_ct_AR
5711if test -n "$ac_ct_AR"; then
5712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5713$as_echo "$ac_ct_AR" >&6; }
5714else
5715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5716$as_echo "no" >&6; }
5717fi
5718
5719
5720 test -n "$ac_ct_AR" && break
5721done
5722
5723 if test "x$ac_ct_AR" = x; then
5724 AR="false"
5725 else
5726 case $cross_compiling:$ac_tool_warned in
5727yes:)
5728{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5729$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5730ac_tool_warned=yes ;;
5731esac
5732 AR=$ac_ct_AR
5733 fi
5734fi
5735
5736: ${AR=ar}
5737: ${AR_FLAGS=cru}
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5750$as_echo_n "checking for archiver @FILE support... " >&6; }
5751if ${lt_cv_ar_at_file+:} false; then :
5752 $as_echo_n "(cached) " >&6
5753else
5754 lt_cv_ar_at_file=no
5755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5756/* end confdefs.h. */
5757
5758int
5759main ()
5760{
5761
5762 ;
5763 return 0;
5764}
5765_ACEOF
5766if ac_fn_c_try_compile "$LINENO"; then :
5767 echo conftest.$ac_objext > conftest.lst
5768 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5769 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5770 (eval $lt_ar_try) 2>&5
5771 ac_status=$?
5772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5773 test $ac_status = 0; }
2078c8a7 5774 if test 0 -eq "$ac_status"; then
904dbe44
CIK
5775 # Ensure the archiver fails upon bogus file names.
5776 rm -f conftest.$ac_objext libconftest.a
5777 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5778 (eval $lt_ar_try) 2>&5
5779 ac_status=$?
5780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5781 test $ac_status = 0; }
2078c8a7 5782 if test 0 -ne "$ac_status"; then
904dbe44
CIK
5783 lt_cv_ar_at_file=@
5784 fi
5785 fi
5786 rm -f conftest.* libconftest.a
5787
5788fi
5789rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5790
5791fi
5792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5793$as_echo "$lt_cv_ar_at_file" >&6; }
5794
2078c8a7 5795if test no = "$lt_cv_ar_at_file"; then
904dbe44
CIK
5796 archiver_list_spec=
5797else
5798 archiver_list_spec=$lt_cv_ar_at_file
5799fi
5800
5801
5802
5803
5804
5805
5806
5807if test -n "$ac_tool_prefix"; then
5808 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5809set dummy ${ac_tool_prefix}strip; ac_word=$2
5810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5811$as_echo_n "checking for $ac_word... " >&6; }
5812if ${ac_cv_prog_STRIP+:} false; then :
5813 $as_echo_n "(cached) " >&6
5814else
5815 if test -n "$STRIP"; then
5816 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5817else
5818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5819for as_dir in $PATH
5820do
5821 IFS=$as_save_IFS
5822 test -z "$as_dir" && as_dir=.
5823 for ac_exec_ext in '' $ac_executable_extensions; do
5824 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5825 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5827 break 2
5828 fi
5829done
5830 done
5831IFS=$as_save_IFS
5832
5833fi
5834fi
5835STRIP=$ac_cv_prog_STRIP
5836if test -n "$STRIP"; then
5837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5838$as_echo "$STRIP" >&6; }
5839else
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5841$as_echo "no" >&6; }
5842fi
5843
5844
5845fi
5846if test -z "$ac_cv_prog_STRIP"; then
5847 ac_ct_STRIP=$STRIP
5848 # Extract the first word of "strip", so it can be a program name with args.
5849set dummy strip; ac_word=$2
5850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5851$as_echo_n "checking for $ac_word... " >&6; }
5852if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5853 $as_echo_n "(cached) " >&6
5854else
5855 if test -n "$ac_ct_STRIP"; then
5856 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5857else
5858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5859for as_dir in $PATH
5860do
5861 IFS=$as_save_IFS
5862 test -z "$as_dir" && as_dir=.
5863 for ac_exec_ext in '' $ac_executable_extensions; do
5864 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5865 ac_cv_prog_ac_ct_STRIP="strip"
5866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5867 break 2
5868 fi
5869done
5870 done
5871IFS=$as_save_IFS
5872
5873fi
5874fi
5875ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5876if test -n "$ac_ct_STRIP"; then
5877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5878$as_echo "$ac_ct_STRIP" >&6; }
5879else
5880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5881$as_echo "no" >&6; }
5882fi
5883
5884 if test "x$ac_ct_STRIP" = x; then
5885 STRIP=":"
5886 else
5887 case $cross_compiling:$ac_tool_warned in
5888yes:)
5889{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5890$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5891ac_tool_warned=yes ;;
5892esac
5893 STRIP=$ac_ct_STRIP
5894 fi
5895else
5896 STRIP="$ac_cv_prog_STRIP"
5897fi
5898
5899test -z "$STRIP" && STRIP=:
5900
5901
5902
5903
5904
5905
5906if test -n "$ac_tool_prefix"; then
5907 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5908set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5910$as_echo_n "checking for $ac_word... " >&6; }
5911if ${ac_cv_prog_RANLIB+:} false; then :
5912 $as_echo_n "(cached) " >&6
5913else
5914 if test -n "$RANLIB"; then
5915 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5916else
5917as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5918for as_dir in $PATH
5919do
5920 IFS=$as_save_IFS
5921 test -z "$as_dir" && as_dir=.
5922 for ac_exec_ext in '' $ac_executable_extensions; do
5923 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5924 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5926 break 2
5927 fi
5928done
5929 done
5930IFS=$as_save_IFS
5931
5932fi
5933fi
5934RANLIB=$ac_cv_prog_RANLIB
5935if test -n "$RANLIB"; then
5936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5937$as_echo "$RANLIB" >&6; }
5938else
5939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5940$as_echo "no" >&6; }
5941fi
5942
5943
5944fi
5945if test -z "$ac_cv_prog_RANLIB"; then
5946 ac_ct_RANLIB=$RANLIB
5947 # Extract the first word of "ranlib", so it can be a program name with args.
5948set dummy ranlib; ac_word=$2
5949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5950$as_echo_n "checking for $ac_word... " >&6; }
5951if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5952 $as_echo_n "(cached) " >&6
5953else
5954 if test -n "$ac_ct_RANLIB"; then
5955 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5956else
5957as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5958for as_dir in $PATH
5959do
5960 IFS=$as_save_IFS
5961 test -z "$as_dir" && as_dir=.
5962 for ac_exec_ext in '' $ac_executable_extensions; do
5963 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5964 ac_cv_prog_ac_ct_RANLIB="ranlib"
5965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5966 break 2
5967 fi
5968done
5969 done
5970IFS=$as_save_IFS
5971
5972fi
5973fi
5974ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5975if test -n "$ac_ct_RANLIB"; then
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5977$as_echo "$ac_ct_RANLIB" >&6; }
5978else
5979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5980$as_echo "no" >&6; }
5981fi
5982
5983 if test "x$ac_ct_RANLIB" = x; then
5984 RANLIB=":"
5985 else
5986 case $cross_compiling:$ac_tool_warned in
5987yes:)
5988{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5989$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5990ac_tool_warned=yes ;;
5991esac
5992 RANLIB=$ac_ct_RANLIB
5993 fi
5994else
5995 RANLIB="$ac_cv_prog_RANLIB"
5996fi
5997
5998test -z "$RANLIB" && RANLIB=:
5999
6000
6001
6002
6003
6004
6005# Determine commands to create old-style static archives.
6006old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6007old_postinstall_cmds='chmod 644 $oldlib'
6008old_postuninstall_cmds=
6009
6010if test -n "$RANLIB"; then
6011 case $host_os in
2078c8a7 6012 bitrig* | openbsd*)
904dbe44
CIK
6013 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6014 ;;
6015 *)
6016 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6017 ;;
6018 esac
6019 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6020fi
6021
6022case $host_os in
6023 darwin*)
6024 lock_old_archive_extraction=yes ;;
6025 *)
6026 lock_old_archive_extraction=no ;;
6027esac
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067# If no C compiler was specified, use CC.
6068LTCC=${LTCC-"$CC"}
6069
6070# If no C compiler flags were specified, use CFLAGS.
6071LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6072
6073# Allow CC to be a program name with arguments.
6074compiler=$CC
6075
6076
6077# Check for command to grab the raw symbol name followed by C symbol from nm.
6078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6079$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6080if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6081 $as_echo_n "(cached) " >&6
6082else
6083
6084# These are sane defaults that work on at least a few old systems.
6085# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6086
6087# Character class describing NM global symbol codes.
6088symcode='[BCDEGRST]'
6089
6090# Regexp to match symbols that can be accessed directly from C.
6091sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6092
6093# Define system-specific variables.
6094case $host_os in
6095aix*)
6096 symcode='[BCDT]'
6097 ;;
6098cygwin* | mingw* | pw32* | cegcc*)
6099 symcode='[ABCDGISTW]'
6100 ;;
6101hpux*)
2078c8a7 6102 if test ia64 = "$host_cpu"; then
904dbe44
CIK
6103 symcode='[ABCDEGRST]'
6104 fi
6105 ;;
6106irix* | nonstopux*)
6107 symcode='[BCDEGRST]'
6108 ;;
6109osf*)
6110 symcode='[BCDEGQRST]'
6111 ;;
6112solaris*)
6113 symcode='[BDRT]'
6114 ;;
6115sco3.2v5*)
6116 symcode='[DT]'
6117 ;;
6118sysv4.2uw2*)
6119 symcode='[DT]'
6120 ;;
6121sysv5* | sco5v6* | unixware* | OpenUNIX*)
6122 symcode='[ABDT]'
6123 ;;
6124sysv4)
6125 symcode='[DFNSTU]'
6126 ;;
6127esac
6128
6129# If we're using GNU nm, then use its standard symbol codes.
6130case `$NM -V 2>&1` in
6131*GNU* | *'with BFD'*)
6132 symcode='[ABCDGIRSTW]' ;;
6133esac
6134
2078c8a7
DJL
6135if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6136 # Gets list of data symbols to import.
6137 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6138 # Adjust the below global symbol transforms to fixup imported variables.
6139 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6140 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6141 lt_c_name_lib_hook="\
6142 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6143 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6144else
6145 # Disable hooks by default.
6146 lt_cv_sys_global_symbol_to_import=
6147 lt_cdecl_hook=
6148 lt_c_name_hook=
6149 lt_c_name_lib_hook=
6150fi
6151
904dbe44
CIK
6152# Transform an extracted symbol line into a proper C declaration.
6153# Some systems (esp. on ia64) link data and code symbols differently,
6154# so use this general approach.
2078c8a7
DJL
6155lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6156$lt_cdecl_hook\
6157" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6158" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
904dbe44
CIK
6159
6160# Transform an extracted symbol line into symbol name and symbol address
2078c8a7
DJL
6161lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6162$lt_c_name_hook\
6163" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6164" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6165
6166# Transform an extracted symbol line into symbol name with lib prefix and
6167# symbol address.
6168lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6169$lt_c_name_lib_hook\
6170" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6171" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6172" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
904dbe44
CIK
6173
6174# Handle CRLF in mingw tool chain
6175opt_cr=
6176case $build_os in
6177mingw*)
6178 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6179 ;;
6180esac
6181
6182# Try without a prefix underscore, then with it.
6183for ac_symprfx in "" "_"; do
6184
6185 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6186 symxfrm="\\1 $ac_symprfx\\2 \\2"
6187
6188 # Write the raw and C identifiers.
6189 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
2078c8a7
DJL
6190 # Fake it for dumpbin and say T for any non-static function,
6191 # D for any global variable and I for any imported variable.
904dbe44
CIK
6192 # Also find C++ and __fastcall symbols from MSVC++,
6193 # which start with @ or ?.
6194 lt_cv_sys_global_symbol_pipe="$AWK '"\
6195" {last_section=section; section=\$ 3};"\
6196" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6197" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
2078c8a7
DJL
6198" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6199" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6200" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
904dbe44
CIK
6201" \$ 0!~/External *\|/{next};"\
6202" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6203" {if(hide[section]) next};"\
2078c8a7
DJL
6204" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6205" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6206" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6207" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
904dbe44
CIK
6208" ' prfx=^$ac_symprfx"
6209 else
6210 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6211 fi
6212 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6213
6214 # Check to see that the pipe works correctly.
6215 pipe_works=no
6216
6217 rm -f conftest*
6218 cat > conftest.$ac_ext <<_LT_EOF
6219#ifdef __cplusplus
6220extern "C" {
6221#endif
6222char nm_test_var;
6223void nm_test_func(void);
6224void nm_test_func(void){}
6225#ifdef __cplusplus
6226}
6227#endif
6228int main(){nm_test_var='a';nm_test_func();return(0);}
6229_LT_EOF
6230
6231 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6232 (eval $ac_compile) 2>&5
6233 ac_status=$?
6234 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6235 test $ac_status = 0; }; then
6236 # Now try to grab the symbols.
6237 nlist=conftest.nm
6238 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6239 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6240 ac_status=$?
6241 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6242 test $ac_status = 0; } && test -s "$nlist"; then
6243 # Try sorting and uniquifying the output.
6244 if sort "$nlist" | uniq > "$nlist"T; then
6245 mv -f "$nlist"T "$nlist"
6246 else
6247 rm -f "$nlist"T
6248 fi
6249
6250 # Make sure that we snagged all the symbols we need.
6251 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6252 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6253 cat <<_LT_EOF > conftest.$ac_ext
6254/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
2078c8a7
DJL
6255#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6256/* DATA imports from DLLs on WIN32 can't be const, because runtime
904dbe44
CIK
6257 relocations are performed -- see ld's documentation on pseudo-relocs. */
6258# define LT_DLSYM_CONST
2078c8a7 6259#elif defined __osf__
904dbe44
CIK
6260/* This system does not cope well with relocations in const data. */
6261# define LT_DLSYM_CONST
6262#else
6263# define LT_DLSYM_CONST const
6264#endif
6265
6266#ifdef __cplusplus
6267extern "C" {
6268#endif
6269
6270_LT_EOF
6271 # Now generate the symbol file.
6272 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6273
6274 cat <<_LT_EOF >> conftest.$ac_ext
6275
6276/* The mapping between symbol names and symbols. */
6277LT_DLSYM_CONST struct {
6278 const char *name;
6279 void *address;
6280}
6281lt__PROGRAM__LTX_preloaded_symbols[] =
6282{
6283 { "@PROGRAM@", (void *) 0 },
6284_LT_EOF
2078c8a7 6285 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
904dbe44
CIK
6286 cat <<\_LT_EOF >> conftest.$ac_ext
6287 {0, (void *) 0}
6288};
6289
6290/* This works around a problem in FreeBSD linker */
6291#ifdef FREEBSD_WORKAROUND
6292static const void *lt_preloaded_setup() {
6293 return lt__PROGRAM__LTX_preloaded_symbols;
6294}
6295#endif
6296
6297#ifdef __cplusplus
6298}
6299#endif
6300_LT_EOF
6301 # Now try linking the two files.
6302 mv conftest.$ac_objext conftstm.$ac_objext
6303 lt_globsym_save_LIBS=$LIBS
6304 lt_globsym_save_CFLAGS=$CFLAGS
2078c8a7 6305 LIBS=conftstm.$ac_objext
904dbe44
CIK
6306 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6307 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6308 (eval $ac_link) 2>&5
6309 ac_status=$?
6310 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2078c8a7 6311 test $ac_status = 0; } && test -s conftest$ac_exeext; then
904dbe44
CIK
6312 pipe_works=yes
6313 fi
6314 LIBS=$lt_globsym_save_LIBS
6315 CFLAGS=$lt_globsym_save_CFLAGS
6316 else
6317 echo "cannot find nm_test_func in $nlist" >&5
6318 fi
6319 else
6320 echo "cannot find nm_test_var in $nlist" >&5
6321 fi
6322 else
6323 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6324 fi
6325 else
6326 echo "$progname: failed program was:" >&5
6327 cat conftest.$ac_ext >&5
6328 fi
6329 rm -rf conftest* conftst*
6330
6331 # Do not use the global_symbol_pipe unless it works.
2078c8a7 6332 if test yes = "$pipe_works"; then
904dbe44
CIK
6333 break
6334 else
6335 lt_cv_sys_global_symbol_pipe=
6336 fi
6337done
6338
6339fi
6340
6341if test -z "$lt_cv_sys_global_symbol_pipe"; then
6342 lt_cv_sys_global_symbol_to_cdecl=
6343fi
6344if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6346$as_echo "failed" >&6; }
6347else
6348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6349$as_echo "ok" >&6; }
6350fi
6351
6352# Response file support.
6353if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6354 nm_file_list_spec='@'
6355elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6356 nm_file_list_spec='@'
6357fi
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
2078c8a7
DJL
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
904dbe44
CIK
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6396$as_echo_n "checking for sysroot... " >&6; }
6397
6398# Check whether --with-sysroot was given.
6399if test "${with_sysroot+set}" = set; then :
6400 withval=$with_sysroot;
6401else
6402 with_sysroot=no
6403fi
6404
6405
6406lt_sysroot=
2078c8a7 6407case $with_sysroot in #(
904dbe44 6408 yes)
2078c8a7 6409 if test yes = "$GCC"; then
904dbe44
CIK
6410 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6411 fi
6412 ;; #(
6413 /*)
6414 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6415 ;; #(
6416 no|'')
6417 ;; #(
6418 *)
2078c8a7
DJL
6419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6420$as_echo "$with_sysroot" >&6; }
904dbe44
CIK
6421 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6422 ;;
6423esac
6424
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6426$as_echo "${lt_sysroot:-no}" >&6; }
6427
6428
6429
6430
6431
2078c8a7
DJL
6432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6433$as_echo_n "checking for a working dd... " >&6; }
6434if ${ac_cv_path_lt_DD+:} false; then :
6435 $as_echo_n "(cached) " >&6
6436else
6437 printf 0123456789abcdef0123456789abcdef >conftest.i
6438cat conftest.i conftest.i >conftest2.i
6439: ${lt_DD:=$DD}
6440if test -z "$lt_DD"; then
6441 ac_path_lt_DD_found=false
6442 # Loop through the user's path and test for each of PROGNAME-LIST
6443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6444for as_dir in $PATH
6445do
6446 IFS=$as_save_IFS
6447 test -z "$as_dir" && as_dir=.
6448 for ac_prog in dd; do
6449 for ac_exec_ext in '' $ac_executable_extensions; do
6450 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6451 as_fn_executable_p "$ac_path_lt_DD" || continue
6452if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6453 cmp -s conftest.i conftest.out \
6454 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6455fi
6456 $ac_path_lt_DD_found && break 3
6457 done
6458 done
6459 done
6460IFS=$as_save_IFS
6461 if test -z "$ac_cv_path_lt_DD"; then
6462 :
6463 fi
6464else
6465 ac_cv_path_lt_DD=$lt_DD
6466fi
6467
6468rm -f conftest.i conftest2.i conftest.out
6469fi
6470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6471$as_echo "$ac_cv_path_lt_DD" >&6; }
6472
6473
6474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6475$as_echo_n "checking how to truncate binary pipes... " >&6; }
6476if ${lt_cv_truncate_bin+:} false; then :
6477 $as_echo_n "(cached) " >&6
6478else
6479 printf 0123456789abcdef0123456789abcdef >conftest.i
6480cat conftest.i conftest.i >conftest2.i
6481lt_cv_truncate_bin=
6482if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6483 cmp -s conftest.i conftest.out \
6484 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6485fi
6486rm -f conftest.i conftest2.i conftest.out
6487test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6488fi
6489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6490$as_echo "$lt_cv_truncate_bin" >&6; }
6491
6492
6493
6494
6495
6496
6497
6498# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
6499func_cc_basename ()
6500{
6501 for cc_temp in $*""; do
6502 case $cc_temp in
6503 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6504 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6505 \-*) ;;
6506 *) break;;
6507 esac
6508 done
6509 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6510}
6511
904dbe44
CIK
6512# Check whether --enable-libtool-lock was given.
6513if test "${enable_libtool_lock+set}" = set; then :
6514 enableval=$enable_libtool_lock;
6515fi
6516
2078c8a7 6517test no = "$enable_libtool_lock" || enable_libtool_lock=yes
904dbe44
CIK
6518
6519# Some flags need to be propagated to the compiler or linker for good
6520# libtool support.
6521case $host in
6522ia64-*-hpux*)
2078c8a7
DJL
6523 # Find out what ABI is being produced by ac_compile, and set mode
6524 # options accordingly.
904dbe44
CIK
6525 echo 'int i;' > conftest.$ac_ext
6526 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6527 (eval $ac_compile) 2>&5
6528 ac_status=$?
6529 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6530 test $ac_status = 0; }; then
6531 case `/usr/bin/file conftest.$ac_objext` in
6532 *ELF-32*)
2078c8a7 6533 HPUX_IA64_MODE=32
904dbe44
CIK
6534 ;;
6535 *ELF-64*)
2078c8a7 6536 HPUX_IA64_MODE=64
904dbe44
CIK
6537 ;;
6538 esac
6539 fi
6540 rm -rf conftest*
6541 ;;
6542*-*-irix6*)
2078c8a7
DJL
6543 # Find out what ABI is being produced by ac_compile, and set linker
6544 # options accordingly.
904dbe44
CIK
6545 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6546 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6547 (eval $ac_compile) 2>&5
6548 ac_status=$?
6549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6550 test $ac_status = 0; }; then
2078c8a7 6551 if test yes = "$lt_cv_prog_gnu_ld"; then
904dbe44
CIK
6552 case `/usr/bin/file conftest.$ac_objext` in
6553 *32-bit*)
6554 LD="${LD-ld} -melf32bsmip"
6555 ;;
6556 *N32*)
6557 LD="${LD-ld} -melf32bmipn32"
6558 ;;
6559 *64-bit*)
6560 LD="${LD-ld} -melf64bmip"
6561 ;;
6562 esac
6563 else
6564 case `/usr/bin/file conftest.$ac_objext` in
6565 *32-bit*)
6566 LD="${LD-ld} -32"
6567 ;;
6568 *N32*)
6569 LD="${LD-ld} -n32"
6570 ;;
6571 *64-bit*)
6572 LD="${LD-ld} -64"
6573 ;;
6574 esac
6575 fi
6576 fi
6577 rm -rf conftest*
6578 ;;
6579
2078c8a7
DJL
6580mips64*-*linux*)
6581 # Find out what ABI is being produced by ac_compile, and set linker
6582 # options accordingly.
6583 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6584 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6585 (eval $ac_compile) 2>&5
6586 ac_status=$?
6587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6588 test $ac_status = 0; }; then
6589 emul=elf
6590 case `/usr/bin/file conftest.$ac_objext` in
6591 *32-bit*)
6592 emul="${emul}32"
6593 ;;
6594 *64-bit*)
6595 emul="${emul}64"
6596 ;;
6597 esac
6598 case `/usr/bin/file conftest.$ac_objext` in
6599 *MSB*)
6600 emul="${emul}btsmip"
6601 ;;
6602 *LSB*)
6603 emul="${emul}ltsmip"
6604 ;;
6605 esac
6606 case `/usr/bin/file conftest.$ac_objext` in
6607 *N32*)
6608 emul="${emul}n32"
6609 ;;
6610 esac
6611 LD="${LD-ld} -m $emul"
6612 fi
6613 rm -rf conftest*
6614 ;;
6615
904dbe44
CIK
6616x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6617s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
2078c8a7
DJL
6618 # Find out what ABI is being produced by ac_compile, and set linker
6619 # options accordingly. Note that the listed cases only cover the
6620 # situations where additional linker options are needed (such as when
6621 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6622 # vice versa); the common cases where no linker options are needed do
6623 # not appear in the list.
904dbe44
CIK
6624 echo 'int i;' > conftest.$ac_ext
6625 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6626 (eval $ac_compile) 2>&5
6627 ac_status=$?
6628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6629 test $ac_status = 0; }; then
6630 case `/usr/bin/file conftest.o` in
6631 *32-bit*)
6632 case $host in
6633 x86_64-*kfreebsd*-gnu)
6634 LD="${LD-ld} -m elf_i386_fbsd"
6635 ;;
6636 x86_64-*linux*)
6637 case `/usr/bin/file conftest.o` in
6638 *x86-64*)
6639 LD="${LD-ld} -m elf32_x86_64"
6640 ;;
6641 *)
6642 LD="${LD-ld} -m elf_i386"
6643 ;;
6644 esac
6645 ;;
2078c8a7 6646 powerpc64le-*linux*)
904dbe44
CIK
6647 LD="${LD-ld} -m elf32lppclinux"
6648 ;;
2078c8a7 6649 powerpc64-*linux*)
904dbe44
CIK
6650 LD="${LD-ld} -m elf32ppclinux"
6651 ;;
6652 s390x-*linux*)
6653 LD="${LD-ld} -m elf_s390"
6654 ;;
6655 sparc64-*linux*)
6656 LD="${LD-ld} -m elf32_sparc"
6657 ;;
6658 esac
6659 ;;
6660 *64-bit*)
6661 case $host in
6662 x86_64-*kfreebsd*-gnu)
6663 LD="${LD-ld} -m elf_x86_64_fbsd"
6664 ;;
6665 x86_64-*linux*)
6666 LD="${LD-ld} -m elf_x86_64"
6667 ;;
2078c8a7 6668 powerpcle-*linux*)
904dbe44
CIK
6669 LD="${LD-ld} -m elf64lppc"
6670 ;;
2078c8a7 6671 powerpc-*linux*)
904dbe44
CIK
6672 LD="${LD-ld} -m elf64ppc"
6673 ;;
6674 s390*-*linux*|s390*-*tpf*)
6675 LD="${LD-ld} -m elf64_s390"
6676 ;;
6677 sparc*-*linux*)
6678 LD="${LD-ld} -m elf64_sparc"
6679 ;;
6680 esac
6681 ;;
6682 esac
6683 fi
6684 rm -rf conftest*
6685 ;;
6686
6687*-*-sco3.2v5*)
6688 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2078c8a7 6689 SAVE_CFLAGS=$CFLAGS
904dbe44
CIK
6690 CFLAGS="$CFLAGS -belf"
6691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6692$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6693if ${lt_cv_cc_needs_belf+:} false; then :
6694 $as_echo_n "(cached) " >&6
6695else
6696 ac_ext=c
6697ac_cpp='$CPP $CPPFLAGS'
6698ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6699ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6700ac_compiler_gnu=$ac_cv_c_compiler_gnu
6701
6702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6703/* end confdefs.h. */
6704
6705int
6706main ()
6707{
6708
6709 ;
6710 return 0;
6711}
6712_ACEOF
6713if ac_fn_c_try_link "$LINENO"; then :
6714 lt_cv_cc_needs_belf=yes
6715else
6716 lt_cv_cc_needs_belf=no
6717fi
6718rm -f core conftest.err conftest.$ac_objext \
6719 conftest$ac_exeext conftest.$ac_ext
6720 ac_ext=c
6721ac_cpp='$CPP $CPPFLAGS'
6722ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6723ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6724ac_compiler_gnu=$ac_cv_c_compiler_gnu
6725
6726fi
6727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6728$as_echo "$lt_cv_cc_needs_belf" >&6; }
2078c8a7 6729 if test yes != "$lt_cv_cc_needs_belf"; then
904dbe44 6730 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2078c8a7 6731 CFLAGS=$SAVE_CFLAGS
904dbe44
CIK
6732 fi
6733 ;;
6734*-*solaris*)
2078c8a7
DJL
6735 # Find out what ABI is being produced by ac_compile, and set linker
6736 # options accordingly.
904dbe44
CIK
6737 echo 'int i;' > conftest.$ac_ext
6738 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6739 (eval $ac_compile) 2>&5
6740 ac_status=$?
6741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6742 test $ac_status = 0; }; then
6743 case `/usr/bin/file conftest.o` in
6744 *64-bit*)
6745 case $lt_cv_prog_gnu_ld in
6746 yes*)
6747 case $host in
2078c8a7 6748 i?86-*-solaris*|x86_64-*-solaris*)
904dbe44
CIK
6749 LD="${LD-ld} -m elf_x86_64"
6750 ;;
6751 sparc*-*-solaris*)
6752 LD="${LD-ld} -m elf64_sparc"
6753 ;;
6754 esac
6755 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6756 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
2078c8a7 6757 LD=${LD-ld}_sol2
904dbe44
CIK
6758 fi
6759 ;;
6760 *)
6761 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6762 LD="${LD-ld} -64"
6763 fi
6764 ;;
6765 esac
6766 ;;
6767 esac
6768 fi
6769 rm -rf conftest*
6770 ;;
6771esac
6772
2078c8a7 6773need_locks=$enable_libtool_lock
904dbe44
CIK
6774
6775if test -n "$ac_tool_prefix"; then
6776 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6777set dummy ${ac_tool_prefix}mt; ac_word=$2
6778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6779$as_echo_n "checking for $ac_word... " >&6; }
6780if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6781 $as_echo_n "(cached) " >&6
6782else
6783 if test -n "$MANIFEST_TOOL"; then
6784 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6785else
6786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6787for as_dir in $PATH
6788do
6789 IFS=$as_save_IFS
6790 test -z "$as_dir" && as_dir=.
6791 for ac_exec_ext in '' $ac_executable_extensions; do
6792 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6793 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6795 break 2
6796 fi
6797done
6798 done
6799IFS=$as_save_IFS
6800
6801fi
6802fi
6803MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6804if test -n "$MANIFEST_TOOL"; then
6805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6806$as_echo "$MANIFEST_TOOL" >&6; }
6807else
6808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6809$as_echo "no" >&6; }
6810fi
6811
6812
6813fi
6814if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6815 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6816 # Extract the first word of "mt", so it can be a program name with args.
6817set dummy mt; ac_word=$2
6818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6819$as_echo_n "checking for $ac_word... " >&6; }
6820if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6821 $as_echo_n "(cached) " >&6
6822else
6823 if test -n "$ac_ct_MANIFEST_TOOL"; then
6824 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6825else
6826as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6827for as_dir in $PATH
6828do
6829 IFS=$as_save_IFS
6830 test -z "$as_dir" && as_dir=.
6831 for ac_exec_ext in '' $ac_executable_extensions; do
6832 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6833 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6835 break 2
6836 fi
6837done
6838 done
6839IFS=$as_save_IFS
6840
6841fi
6842fi
6843ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6844if test -n "$ac_ct_MANIFEST_TOOL"; then
6845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6846$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6847else
6848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6849$as_echo "no" >&6; }
6850fi
6851
6852 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6853 MANIFEST_TOOL=":"
6854 else
6855 case $cross_compiling:$ac_tool_warned in
6856yes:)
6857{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6858$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6859ac_tool_warned=yes ;;
6860esac
6861 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6862 fi
6863else
6864 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6865fi
6866
6867test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6869$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6870if ${lt_cv_path_mainfest_tool+:} false; then :
6871 $as_echo_n "(cached) " >&6
6872else
6873 lt_cv_path_mainfest_tool=no
6874 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6875 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6876 cat conftest.err >&5
6877 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6878 lt_cv_path_mainfest_tool=yes
6879 fi
6880 rm -f conftest*
6881fi
6882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6883$as_echo "$lt_cv_path_mainfest_tool" >&6; }
2078c8a7 6884if test yes != "$lt_cv_path_mainfest_tool"; then
904dbe44
CIK
6885 MANIFEST_TOOL=:
6886fi
6887
6888
6889
6890
6891
6892
6893 case $host_os in
6894 rhapsody* | darwin*)
6895 if test -n "$ac_tool_prefix"; then
6896 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6897set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6899$as_echo_n "checking for $ac_word... " >&6; }
6900if ${ac_cv_prog_DSYMUTIL+:} false; then :
6901 $as_echo_n "(cached) " >&6
6902else
6903 if test -n "$DSYMUTIL"; then
6904 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6905else
6906as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6907for as_dir in $PATH
6908do
6909 IFS=$as_save_IFS
6910 test -z "$as_dir" && as_dir=.
6911 for ac_exec_ext in '' $ac_executable_extensions; do
6912 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6913 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6915 break 2
6916 fi
6917done
6918 done
6919IFS=$as_save_IFS
6920
6921fi
6922fi
6923DSYMUTIL=$ac_cv_prog_DSYMUTIL
6924if test -n "$DSYMUTIL"; then
6925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6926$as_echo "$DSYMUTIL" >&6; }
6927else
6928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6929$as_echo "no" >&6; }
6930fi
6931
6932
6933fi
6934if test -z "$ac_cv_prog_DSYMUTIL"; then
6935 ac_ct_DSYMUTIL=$DSYMUTIL
6936 # Extract the first word of "dsymutil", so it can be a program name with args.
6937set dummy dsymutil; ac_word=$2
6938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6939$as_echo_n "checking for $ac_word... " >&6; }
6940if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6941 $as_echo_n "(cached) " >&6
6942else
6943 if test -n "$ac_ct_DSYMUTIL"; then
6944 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6945else
6946as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6947for as_dir in $PATH
6948do
6949 IFS=$as_save_IFS
6950 test -z "$as_dir" && as_dir=.
6951 for ac_exec_ext in '' $ac_executable_extensions; do
6952 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6953 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6955 break 2
6956 fi
6957done
6958 done
6959IFS=$as_save_IFS
6960
6961fi
6962fi
6963ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6964if test -n "$ac_ct_DSYMUTIL"; then
6965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6966$as_echo "$ac_ct_DSYMUTIL" >&6; }
6967else
6968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6969$as_echo "no" >&6; }
6970fi
6971
6972 if test "x$ac_ct_DSYMUTIL" = x; then
6973 DSYMUTIL=":"
6974 else
6975 case $cross_compiling:$ac_tool_warned in
6976yes:)
6977{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6978$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6979ac_tool_warned=yes ;;
6980esac
6981 DSYMUTIL=$ac_ct_DSYMUTIL
6982 fi
6983else
6984 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6985fi
6986
6987 if test -n "$ac_tool_prefix"; then
6988 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6989set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6991$as_echo_n "checking for $ac_word... " >&6; }
6992if ${ac_cv_prog_NMEDIT+:} false; then :
6993 $as_echo_n "(cached) " >&6
6994else
6995 if test -n "$NMEDIT"; then
6996 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6997else
6998as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6999for as_dir in $PATH
7000do
7001 IFS=$as_save_IFS
7002 test -z "$as_dir" && as_dir=.
7003 for ac_exec_ext in '' $ac_executable_extensions; do
7004 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7005 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7007 break 2
7008 fi
7009done
7010 done
7011IFS=$as_save_IFS
7012
7013fi
7014fi
7015NMEDIT=$ac_cv_prog_NMEDIT
7016if test -n "$NMEDIT"; then
7017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7018$as_echo "$NMEDIT" >&6; }
7019else
7020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7021$as_echo "no" >&6; }
7022fi
7023
7024
7025fi
7026if test -z "$ac_cv_prog_NMEDIT"; then
7027 ac_ct_NMEDIT=$NMEDIT
7028 # Extract the first word of "nmedit", so it can be a program name with args.
7029set dummy nmedit; ac_word=$2
7030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7031$as_echo_n "checking for $ac_word... " >&6; }
7032if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7033 $as_echo_n "(cached) " >&6
7034else
7035 if test -n "$ac_ct_NMEDIT"; then
7036 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7037else
7038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7039for as_dir in $PATH
7040do
7041 IFS=$as_save_IFS
7042 test -z "$as_dir" && as_dir=.
7043 for ac_exec_ext in '' $ac_executable_extensions; do
7044 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7045 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7047 break 2
7048 fi
7049done
7050 done
7051IFS=$as_save_IFS
7052
7053fi
7054fi
7055ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7056if test -n "$ac_ct_NMEDIT"; then
7057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7058$as_echo "$ac_ct_NMEDIT" >&6; }
7059else
7060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7061$as_echo "no" >&6; }
7062fi
7063
7064 if test "x$ac_ct_NMEDIT" = x; then
7065 NMEDIT=":"
7066 else
7067 case $cross_compiling:$ac_tool_warned in
7068yes:)
7069{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7070$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7071ac_tool_warned=yes ;;
7072esac
7073 NMEDIT=$ac_ct_NMEDIT
7074 fi
7075else
7076 NMEDIT="$ac_cv_prog_NMEDIT"
7077fi
7078
7079 if test -n "$ac_tool_prefix"; then
7080 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7081set dummy ${ac_tool_prefix}lipo; ac_word=$2
7082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7083$as_echo_n "checking for $ac_word... " >&6; }
7084if ${ac_cv_prog_LIPO+:} false; then :
7085 $as_echo_n "(cached) " >&6
7086else
7087 if test -n "$LIPO"; then
7088 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7089else
7090as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7091for as_dir in $PATH
7092do
7093 IFS=$as_save_IFS
7094 test -z "$as_dir" && as_dir=.
7095 for ac_exec_ext in '' $ac_executable_extensions; do
7096 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7097 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7099 break 2
7100 fi
7101done
7102 done
7103IFS=$as_save_IFS
7104
7105fi
7106fi
7107LIPO=$ac_cv_prog_LIPO
7108if test -n "$LIPO"; then
7109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7110$as_echo "$LIPO" >&6; }
7111else
7112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7113$as_echo "no" >&6; }
7114fi
7115
7116
7117fi
7118if test -z "$ac_cv_prog_LIPO"; then
7119 ac_ct_LIPO=$LIPO
7120 # Extract the first word of "lipo", so it can be a program name with args.
7121set dummy lipo; ac_word=$2
7122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7123$as_echo_n "checking for $ac_word... " >&6; }
7124if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7125 $as_echo_n "(cached) " >&6
7126else
7127 if test -n "$ac_ct_LIPO"; then
7128 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7129else
7130as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7131for as_dir in $PATH
7132do
7133 IFS=$as_save_IFS
7134 test -z "$as_dir" && as_dir=.
7135 for ac_exec_ext in '' $ac_executable_extensions; do
7136 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7137 ac_cv_prog_ac_ct_LIPO="lipo"
7138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7139 break 2
7140 fi
7141done
7142 done
7143IFS=$as_save_IFS
7144
7145fi
7146fi
7147ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7148if test -n "$ac_ct_LIPO"; then
7149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7150$as_echo "$ac_ct_LIPO" >&6; }
7151else
7152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7153$as_echo "no" >&6; }
7154fi
7155
7156 if test "x$ac_ct_LIPO" = x; then
7157 LIPO=":"
7158 else
7159 case $cross_compiling:$ac_tool_warned in
7160yes:)
7161{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7162$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7163ac_tool_warned=yes ;;
7164esac
7165 LIPO=$ac_ct_LIPO
7166 fi
7167else
7168 LIPO="$ac_cv_prog_LIPO"
7169fi
7170
7171 if test -n "$ac_tool_prefix"; then
7172 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7173set dummy ${ac_tool_prefix}otool; ac_word=$2
7174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7175$as_echo_n "checking for $ac_word... " >&6; }
7176if ${ac_cv_prog_OTOOL+:} false; then :
7177 $as_echo_n "(cached) " >&6
7178else
7179 if test -n "$OTOOL"; then
7180 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7181else
7182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7183for as_dir in $PATH
7184do
7185 IFS=$as_save_IFS
7186 test -z "$as_dir" && as_dir=.
7187 for ac_exec_ext in '' $ac_executable_extensions; do
7188 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7189 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7191 break 2
7192 fi
7193done
7194 done
7195IFS=$as_save_IFS
7196
7197fi
7198fi
7199OTOOL=$ac_cv_prog_OTOOL
7200if test -n "$OTOOL"; then
7201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7202$as_echo "$OTOOL" >&6; }
7203else
7204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7205$as_echo "no" >&6; }
7206fi
7207
7208
7209fi
7210if test -z "$ac_cv_prog_OTOOL"; then
7211 ac_ct_OTOOL=$OTOOL
7212 # Extract the first word of "otool", so it can be a program name with args.
7213set dummy otool; ac_word=$2
7214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7215$as_echo_n "checking for $ac_word... " >&6; }
7216if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7217 $as_echo_n "(cached) " >&6
7218else
7219 if test -n "$ac_ct_OTOOL"; then
7220 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7221else
7222as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7223for as_dir in $PATH
7224do
7225 IFS=$as_save_IFS
7226 test -z "$as_dir" && as_dir=.
7227 for ac_exec_ext in '' $ac_executable_extensions; do
7228 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7229 ac_cv_prog_ac_ct_OTOOL="otool"
7230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7231 break 2
7232 fi
7233done
7234 done
7235IFS=$as_save_IFS
7236
7237fi
7238fi
7239ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7240if test -n "$ac_ct_OTOOL"; then
7241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7242$as_echo "$ac_ct_OTOOL" >&6; }
7243else
7244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7245$as_echo "no" >&6; }
7246fi
7247
7248 if test "x$ac_ct_OTOOL" = x; then
7249 OTOOL=":"
7250 else
7251 case $cross_compiling:$ac_tool_warned in
7252yes:)
7253{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7254$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7255ac_tool_warned=yes ;;
7256esac
7257 OTOOL=$ac_ct_OTOOL
7258 fi
7259else
7260 OTOOL="$ac_cv_prog_OTOOL"
7261fi
7262
7263 if test -n "$ac_tool_prefix"; then
7264 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7265set dummy ${ac_tool_prefix}otool64; ac_word=$2
7266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7267$as_echo_n "checking for $ac_word... " >&6; }
7268if ${ac_cv_prog_OTOOL64+:} false; then :
7269 $as_echo_n "(cached) " >&6
7270else
7271 if test -n "$OTOOL64"; then
7272 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7273else
7274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7275for as_dir in $PATH
7276do
7277 IFS=$as_save_IFS
7278 test -z "$as_dir" && as_dir=.
7279 for ac_exec_ext in '' $ac_executable_extensions; do
7280 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7281 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7283 break 2
7284 fi
7285done
7286 done
7287IFS=$as_save_IFS
7288
7289fi
7290fi
7291OTOOL64=$ac_cv_prog_OTOOL64
7292if test -n "$OTOOL64"; then
7293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7294$as_echo "$OTOOL64" >&6; }
7295else
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7297$as_echo "no" >&6; }
7298fi
7299
7300
7301fi
7302if test -z "$ac_cv_prog_OTOOL64"; then
7303 ac_ct_OTOOL64=$OTOOL64
7304 # Extract the first word of "otool64", so it can be a program name with args.
7305set dummy otool64; ac_word=$2
7306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7307$as_echo_n "checking for $ac_word... " >&6; }
7308if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7309 $as_echo_n "(cached) " >&6
7310else
7311 if test -n "$ac_ct_OTOOL64"; then
7312 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7313else
7314as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7315for as_dir in $PATH
7316do
7317 IFS=$as_save_IFS
7318 test -z "$as_dir" && as_dir=.
7319 for ac_exec_ext in '' $ac_executable_extensions; do
7320 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7321 ac_cv_prog_ac_ct_OTOOL64="otool64"
7322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7323 break 2
7324 fi
7325done
7326 done
7327IFS=$as_save_IFS
7328
7329fi
7330fi
7331ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7332if test -n "$ac_ct_OTOOL64"; then
7333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7334$as_echo "$ac_ct_OTOOL64" >&6; }
7335else
7336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7337$as_echo "no" >&6; }
7338fi
7339
7340 if test "x$ac_ct_OTOOL64" = x; then
7341 OTOOL64=":"
7342 else
7343 case $cross_compiling:$ac_tool_warned in
7344yes:)
7345{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7346$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7347ac_tool_warned=yes ;;
7348esac
7349 OTOOL64=$ac_ct_OTOOL64
7350 fi
7351else
7352 OTOOL64="$ac_cv_prog_OTOOL64"
7353fi
7354
7355
7356
7357
7358
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368
7369
7370
7371
7372
7373
7374
7375
7376
7377
7378
7379
7380
7381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7382$as_echo_n "checking for -single_module linker flag... " >&6; }
7383if ${lt_cv_apple_cc_single_mod+:} false; then :
7384 $as_echo_n "(cached) " >&6
7385else
7386 lt_cv_apple_cc_single_mod=no
2078c8a7 7387 if test -z "$LT_MULTI_MODULE"; then
904dbe44
CIK
7388 # By default we will add the -single_module flag. You can override
7389 # by either setting the environment variable LT_MULTI_MODULE
7390 # non-empty at configure time, or by adding -multi_module to the
7391 # link flags.
7392 rm -rf libconftest.dylib*
7393 echo "int foo(void){return 1;}" > conftest.c
7394 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7395-dynamiclib -Wl,-single_module conftest.c" >&5
7396 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7397 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7398 _lt_result=$?
7399 # If there is a non-empty error log, and "single_module"
7400 # appears in it, assume the flag caused a linker warning
7401 if test -s conftest.err && $GREP single_module conftest.err; then
7402 cat conftest.err >&5
7403 # Otherwise, if the output was created with a 0 exit code from
7404 # the compiler, it worked.
2078c8a7 7405 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
904dbe44
CIK
7406 lt_cv_apple_cc_single_mod=yes
7407 else
7408 cat conftest.err >&5
7409 fi
7410 rm -rf libconftest.dylib*
7411 rm -f conftest.*
7412 fi
7413fi
7414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7415$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7416
7417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7418$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7419if ${lt_cv_ld_exported_symbols_list+:} false; then :
7420 $as_echo_n "(cached) " >&6
7421else
7422 lt_cv_ld_exported_symbols_list=no
7423 save_LDFLAGS=$LDFLAGS
7424 echo "_main" > conftest.sym
7425 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7427/* end confdefs.h. */
7428
7429int
7430main ()
7431{
7432
7433 ;
7434 return 0;
7435}
7436_ACEOF
7437if ac_fn_c_try_link "$LINENO"; then :
7438 lt_cv_ld_exported_symbols_list=yes
7439else
7440 lt_cv_ld_exported_symbols_list=no
7441fi
7442rm -f core conftest.err conftest.$ac_objext \
7443 conftest$ac_exeext conftest.$ac_ext
2078c8a7 7444 LDFLAGS=$save_LDFLAGS
904dbe44
CIK
7445
7446fi
7447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7448$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7449
7450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7451$as_echo_n "checking for -force_load linker flag... " >&6; }
7452if ${lt_cv_ld_force_load+:} false; then :
7453 $as_echo_n "(cached) " >&6
7454else
7455 lt_cv_ld_force_load=no
7456 cat > conftest.c << _LT_EOF
7457int forced_loaded() { return 2;}
7458_LT_EOF
7459 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7460 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7461 echo "$AR cru libconftest.a conftest.o" >&5
7462 $AR cru libconftest.a conftest.o 2>&5
7463 echo "$RANLIB libconftest.a" >&5
7464 $RANLIB libconftest.a 2>&5
7465 cat > conftest.c << _LT_EOF
7466int main() { return 0;}
7467_LT_EOF
7468 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7469 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7470 _lt_result=$?
7471 if test -s conftest.err && $GREP force_load conftest.err; then
7472 cat conftest.err >&5
2078c8a7 7473 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
904dbe44
CIK
7474 lt_cv_ld_force_load=yes
7475 else
7476 cat conftest.err >&5
7477 fi
7478 rm -f conftest.err libconftest.a conftest conftest.c
7479 rm -rf conftest.dSYM
7480
7481fi
7482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7483$as_echo "$lt_cv_ld_force_load" >&6; }
7484 case $host_os in
7485 rhapsody* | darwin1.[012])
2078c8a7 7486 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
904dbe44 7487 darwin1.*)
2078c8a7 7488 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
904dbe44
CIK
7489 darwin*) # darwin 5.x on
7490 # if running on 10.5 or later, the deployment target defaults
7491 # to the OS version, if on x86, and 10.4, the deployment
7492 # target defaults to 10.4. Don't you love it?
7493 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7494 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
2078c8a7
DJL
7495 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7496 10.[012][,.]*)
7497 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
904dbe44 7498 10.*)
2078c8a7 7499 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
904dbe44
CIK
7500 esac
7501 ;;
7502 esac
2078c8a7 7503 if test yes = "$lt_cv_apple_cc_single_mod"; then
904dbe44
CIK
7504 _lt_dar_single_mod='$single_module'
7505 fi
2078c8a7
DJL
7506 if test yes = "$lt_cv_ld_exported_symbols_list"; then
7507 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
904dbe44 7508 else
2078c8a7 7509 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
904dbe44 7510 fi
2078c8a7 7511 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
904dbe44
CIK
7512 _lt_dsymutil='~$DSYMUTIL $lib || :'
7513 else
7514 _lt_dsymutil=
7515 fi
7516 ;;
7517 esac
7518
2078c8a7
DJL
7519# func_munge_path_list VARIABLE PATH
7520# -----------------------------------
7521# VARIABLE is name of variable containing _space_ separated list of
7522# directories to be munged by the contents of PATH, which is string
7523# having a format:
7524# "DIR[:DIR]:"
7525# string "DIR[ DIR]" will be prepended to VARIABLE
7526# ":DIR[:DIR]"
7527# string "DIR[ DIR]" will be appended to VARIABLE
7528# "DIRP[:DIRP]::[DIRA:]DIRA"
7529# string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7530# "DIRA[ DIRA]" will be appended to VARIABLE
7531# "DIR[:DIR]"
7532# VARIABLE will be replaced by "DIR[ DIR]"
7533func_munge_path_list ()
7534{
7535 case x$2 in
7536 x)
7537 ;;
7538 *:)
7539 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7540 ;;
7541 x:*)
7542 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7543 ;;
7544 *::*)
7545 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7546 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7547 ;;
7548 *)
7549 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7550 ;;
7551 esac
7552}
7553
904dbe44
CIK
7554ac_ext=c
7555ac_cpp='$CPP $CPPFLAGS'
7556ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7557ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7558ac_compiler_gnu=$ac_cv_c_compiler_gnu
7559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7560$as_echo_n "checking how to run the C preprocessor... " >&6; }
7561# On Suns, sometimes $CPP names a directory.
7562if test -n "$CPP" && test -d "$CPP"; then
7563 CPP=
7564fi
7565if test -z "$CPP"; then
7566 if ${ac_cv_prog_CPP+:} false; then :
7567 $as_echo_n "(cached) " >&6
7568else
7569 # Double quotes because CPP needs to be expanded
7570 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7571 do
7572 ac_preproc_ok=false
7573for ac_c_preproc_warn_flag in '' yes
7574do
7575 # Use a header file that comes with gcc, so configuring glibc
7576 # with a fresh cross-compiler works.
7577 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7578 # <limits.h> exists even on freestanding compilers.
7579 # On the NeXT, cc -E runs the code through the compiler's parser,
7580 # not just through cpp. "Syntax error" is here to catch this case.
7581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7582/* end confdefs.h. */
7583#ifdef __STDC__
7584# include <limits.h>
7585#else
7586# include <assert.h>
7587#endif
7588 Syntax error
7589_ACEOF
7590if ac_fn_c_try_cpp "$LINENO"; then :
7591
7592else
7593 # Broken: fails on valid input.
7594continue
7595fi
7596rm -f conftest.err conftest.i conftest.$ac_ext
7597
7598 # OK, works on sane cases. Now check whether nonexistent headers
7599 # can be detected and how.
7600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7601/* end confdefs.h. */
7602#include <ac_nonexistent.h>
7603_ACEOF
7604if ac_fn_c_try_cpp "$LINENO"; then :
7605 # Broken: success on invalid input.
7606continue
7607else
7608 # Passes both tests.
7609ac_preproc_ok=:
7610break
7611fi
7612rm -f conftest.err conftest.i conftest.$ac_ext
7613
7614done
7615# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7616rm -f conftest.i conftest.err conftest.$ac_ext
7617if $ac_preproc_ok; then :
7618 break
7619fi
7620
7621 done
7622 ac_cv_prog_CPP=$CPP
7623
7624fi
7625 CPP=$ac_cv_prog_CPP
7626else
7627 ac_cv_prog_CPP=$CPP
7628fi
7629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7630$as_echo "$CPP" >&6; }
7631ac_preproc_ok=false
7632for ac_c_preproc_warn_flag in '' yes
7633do
7634 # Use a header file that comes with gcc, so configuring glibc
7635 # with a fresh cross-compiler works.
7636 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7637 # <limits.h> exists even on freestanding compilers.
7638 # On the NeXT, cc -E runs the code through the compiler's parser,
7639 # not just through cpp. "Syntax error" is here to catch this case.
7640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7641/* end confdefs.h. */
7642#ifdef __STDC__
7643# include <limits.h>
7644#else
7645# include <assert.h>
7646#endif
7647 Syntax error
7648_ACEOF
7649if ac_fn_c_try_cpp "$LINENO"; then :
7650
7651else
7652 # Broken: fails on valid input.
7653continue
7654fi
7655rm -f conftest.err conftest.i conftest.$ac_ext
7656
7657 # OK, works on sane cases. Now check whether nonexistent headers
7658 # can be detected and how.
7659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7660/* end confdefs.h. */
7661#include <ac_nonexistent.h>
7662_ACEOF
7663if ac_fn_c_try_cpp "$LINENO"; then :
7664 # Broken: success on invalid input.
7665continue
7666else
7667 # Passes both tests.
7668ac_preproc_ok=:
7669break
7670fi
7671rm -f conftest.err conftest.i conftest.$ac_ext
7672
7673done
7674# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7675rm -f conftest.i conftest.err conftest.$ac_ext
7676if $ac_preproc_ok; then :
7677
7678else
7679 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7680$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7681as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7682See \`config.log' for more details" "$LINENO" 5; }
7683fi
7684
7685ac_ext=c
7686ac_cpp='$CPP $CPPFLAGS'
7687ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7688ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7689ac_compiler_gnu=$ac_cv_c_compiler_gnu
7690
7691
7692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7693$as_echo_n "checking for ANSI C header files... " >&6; }
7694if ${ac_cv_header_stdc+:} false; then :
7695 $as_echo_n "(cached) " >&6
7696else
7697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7698/* end confdefs.h. */
7699#include <stdlib.h>
7700#include <stdarg.h>
7701#include <string.h>
7702#include <float.h>
7703
7704int
7705main ()
7706{
7707
7708 ;
7709 return 0;
7710}
7711_ACEOF
7712if ac_fn_c_try_compile "$LINENO"; then :
7713 ac_cv_header_stdc=yes
7714else
7715 ac_cv_header_stdc=no
7716fi
7717rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7718
7719if test $ac_cv_header_stdc = yes; then
7720 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7722/* end confdefs.h. */
7723#include <string.h>
7724
7725_ACEOF
7726if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7727 $EGREP "memchr" >/dev/null 2>&1; then :
7728
7729else
7730 ac_cv_header_stdc=no
7731fi
7732rm -f conftest*
7733
7734fi
7735
7736if test $ac_cv_header_stdc = yes; then
7737 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7739/* end confdefs.h. */
7740#include <stdlib.h>
7741
7742_ACEOF
7743if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7744 $EGREP "free" >/dev/null 2>&1; then :
7745
7746else
7747 ac_cv_header_stdc=no
7748fi
7749rm -f conftest*
7750
7751fi
7752
7753if test $ac_cv_header_stdc = yes; then
7754 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7755 if test "$cross_compiling" = yes; then :
7756 :
7757else
7758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7759/* end confdefs.h. */
7760#include <ctype.h>
7761#include <stdlib.h>
7762#if ((' ' & 0x0FF) == 0x020)
7763# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7764# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7765#else
7766# define ISLOWER(c) \
7767 (('a' <= (c) && (c) <= 'i') \
7768 || ('j' <= (c) && (c) <= 'r') \
7769 || ('s' <= (c) && (c) <= 'z'))
7770# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7771#endif
7772
7773#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7774int
7775main ()
7776{
7777 int i;
7778 for (i = 0; i < 256; i++)
7779 if (XOR (islower (i), ISLOWER (i))
7780 || toupper (i) != TOUPPER (i))
7781 return 2;
7782 return 0;
7783}
7784_ACEOF
7785if ac_fn_c_try_run "$LINENO"; then :
7786
7787else
7788 ac_cv_header_stdc=no
7789fi
7790rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7791 conftest.$ac_objext conftest.beam conftest.$ac_ext
7792fi
7793
7794fi
7795fi
7796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7797$as_echo "$ac_cv_header_stdc" >&6; }
7798if test $ac_cv_header_stdc = yes; then
7799
7800$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7801
7802fi
7803
7804# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7805for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7806 inttypes.h stdint.h unistd.h
7807do :
7808 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7809ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7810"
7811if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7812 cat >>confdefs.h <<_ACEOF
7813#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7814_ACEOF
7815
7816fi
7817
7818done
7819
7820
7821for ac_header in dlfcn.h
7822do :
7823 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7824"
7825if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7826 cat >>confdefs.h <<_ACEOF
7827#define HAVE_DLFCN_H 1
7828_ACEOF
7829
7830fi
7831
7832done
7833
7834
7835
7836
7837
7838# Set options
7839
7840
7841
7842 enable_dlopen=no
7843
7844
7845 enable_win32_dll=no
7846
7847
7848 # Check whether --enable-shared was given.
7849if test "${enable_shared+set}" = set; then :
7850 enableval=$enable_shared; p=${PACKAGE-default}
7851 case $enableval in
7852 yes) enable_shared=yes ;;
7853 no) enable_shared=no ;;
7854 *)
7855 enable_shared=no
7856 # Look at the argument we got. We use all the common list separators.
2078c8a7 7857 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
904dbe44 7858 for pkg in $enableval; do
2078c8a7 7859 IFS=$lt_save_ifs
904dbe44
CIK
7860 if test "X$pkg" = "X$p"; then
7861 enable_shared=yes
7862 fi
7863 done
2078c8a7 7864 IFS=$lt_save_ifs
904dbe44
CIK
7865 ;;
7866 esac
7867else
7868 enable_shared=yes
7869fi
7870
7871
7872
7873
7874
7875
7876
7877
7878
7879 # Check whether --enable-static was given.
7880if test "${enable_static+set}" = set; then :
7881 enableval=$enable_static; p=${PACKAGE-default}
7882 case $enableval in
7883 yes) enable_static=yes ;;
7884 no) enable_static=no ;;
7885 *)
7886 enable_static=no
7887 # Look at the argument we got. We use all the common list separators.
2078c8a7 7888 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
904dbe44 7889 for pkg in $enableval; do
2078c8a7 7890 IFS=$lt_save_ifs
904dbe44
CIK
7891 if test "X$pkg" = "X$p"; then
7892 enable_static=yes
7893 fi
7894 done
2078c8a7 7895 IFS=$lt_save_ifs
904dbe44
CIK
7896 ;;
7897 esac
7898else
7899 enable_static=yes
7900fi
7901
7902
7903
7904
7905
7906
7907
7908
7909
7910
7911# Check whether --with-pic was given.
7912if test "${with_pic+set}" = set; then :
7913 withval=$with_pic; lt_p=${PACKAGE-default}
7914 case $withval in
7915 yes|no) pic_mode=$withval ;;
7916 *)
7917 pic_mode=default
7918 # Look at the argument we got. We use all the common list separators.
2078c8a7 7919 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
904dbe44 7920 for lt_pkg in $withval; do
2078c8a7 7921 IFS=$lt_save_ifs
904dbe44
CIK
7922 if test "X$lt_pkg" = "X$lt_p"; then
7923 pic_mode=yes
7924 fi
7925 done
2078c8a7 7926 IFS=$lt_save_ifs
904dbe44
CIK
7927 ;;
7928 esac
7929else
7930 pic_mode=default
7931fi
7932
7933
904dbe44
CIK
7934
7935
7936
7937
7938
7939
7940 # Check whether --enable-fast-install was given.
7941if test "${enable_fast_install+set}" = set; then :
7942 enableval=$enable_fast_install; p=${PACKAGE-default}
7943 case $enableval in
7944 yes) enable_fast_install=yes ;;
7945 no) enable_fast_install=no ;;
7946 *)
7947 enable_fast_install=no
7948 # Look at the argument we got. We use all the common list separators.
2078c8a7 7949 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
904dbe44 7950 for pkg in $enableval; do
2078c8a7 7951 IFS=$lt_save_ifs
904dbe44
CIK
7952 if test "X$pkg" = "X$p"; then
7953 enable_fast_install=yes
7954 fi
7955 done
2078c8a7 7956 IFS=$lt_save_ifs
904dbe44
CIK
7957 ;;
7958 esac
7959else
7960 enable_fast_install=yes
7961fi
7962
7963
7964
7965
7966
7967
7968
7969
2078c8a7
DJL
7970 shared_archive_member_spec=
7971case $host,$enable_shared in
7972power*-*-aix[5-9]*,yes)
7973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
7974$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
7975
7976# Check whether --with-aix-soname was given.
7977if test "${with_aix_soname+set}" = set; then :
7978 withval=$with_aix_soname; case $withval in
7979 aix|svr4|both)
7980 ;;
7981 *)
7982 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
7983 ;;
7984 esac
7985 lt_cv_with_aix_soname=$with_aix_soname
7986else
7987 if ${lt_cv_with_aix_soname+:} false; then :
7988 $as_echo_n "(cached) " >&6
7989else
7990 lt_cv_with_aix_soname=aix
7991fi
7992
7993 with_aix_soname=$lt_cv_with_aix_soname
7994fi
7995
7996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
7997$as_echo "$with_aix_soname" >&6; }
7998 if test aix != "$with_aix_soname"; then
7999 # For the AIX way of multilib, we name the shared archive member
8000 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8001 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8002 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8003 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8004 if test 64 = "${OBJECT_MODE-32}"; then
8005 shared_archive_member_spec=shr_64
8006 else
8007 shared_archive_member_spec=shr
8008 fi
8009 fi
8010 ;;
8011*)
8012 with_aix_soname=aix
8013 ;;
8014esac
8015
8016
8017
8018
8019
8020
8021
904dbe44
CIK
8022
8023
8024
8025# This can be used to rebuild libtool when needed
2078c8a7 8026LIBTOOL_DEPS=$ltmain
904dbe44
CIK
8027
8028# Always use our own libtool.
8029LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8030
8031
8032
8033
8034
8035
8036
8037
8038
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050
8051
8052
8053
8054
8055
8056
8057
8058
8059
8060test -z "$LN_S" && LN_S="ln -s"
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074
2078c8a7 8075if test -n "${ZSH_VERSION+set}"; then
904dbe44
CIK
8076 setopt NO_GLOB_SUBST
8077fi
8078
8079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8080$as_echo_n "checking for objdir... " >&6; }
8081if ${lt_cv_objdir+:} false; then :
8082 $as_echo_n "(cached) " >&6
8083else
8084 rm -f .libs 2>/dev/null
8085mkdir .libs 2>/dev/null
8086if test -d .libs; then
8087 lt_cv_objdir=.libs
8088else
8089 # MS-DOS does not allow filenames that begin with a dot.
8090 lt_cv_objdir=_libs
8091fi
8092rmdir .libs 2>/dev/null
8093fi
8094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8095$as_echo "$lt_cv_objdir" >&6; }
8096objdir=$lt_cv_objdir
8097
8098
8099
8100
8101
8102cat >>confdefs.h <<_ACEOF
8103#define LT_OBJDIR "$lt_cv_objdir/"
8104_ACEOF
8105
8106
8107
8108
8109case $host_os in
8110aix3*)
8111 # AIX sometimes has problems with the GCC collect2 program. For some
8112 # reason, if we set the COLLECT_NAMES environment variable, the problems
8113 # vanish in a puff of smoke.
2078c8a7 8114 if test set != "${COLLECT_NAMES+set}"; then
904dbe44
CIK
8115 COLLECT_NAMES=
8116 export COLLECT_NAMES
8117 fi
8118 ;;
8119esac
8120
8121# Global variables:
8122ofile=libtool
8123can_build_shared=yes
8124
2078c8a7 8125# All known linkers require a '.a' archive for static linking (except MSVC,
904dbe44
CIK
8126# which needs '.lib').
8127libext=a
8128
2078c8a7 8129with_gnu_ld=$lt_cv_prog_gnu_ld
904dbe44 8130
2078c8a7
DJL
8131old_CC=$CC
8132old_CFLAGS=$CFLAGS
904dbe44
CIK
8133
8134# Set sane defaults for various variables
8135test -z "$CC" && CC=cc
8136test -z "$LTCC" && LTCC=$CC
8137test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8138test -z "$LD" && LD=ld
8139test -z "$ac_objext" && ac_objext=o
8140
2078c8a7
DJL
8141func_cc_basename $compiler
8142cc_basename=$func_cc_basename_result
904dbe44
CIK
8143
8144
8145# Only perform the check for file, if the check method requires it
8146test -z "$MAGIC_CMD" && MAGIC_CMD=file
8147case $deplibs_check_method in
8148file_magic*)
8149 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8151$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8152if ${lt_cv_path_MAGIC_CMD+:} false; then :
8153 $as_echo_n "(cached) " >&6
8154else
8155 case $MAGIC_CMD in
8156[\\/*] | ?:[\\/]*)
2078c8a7 8157 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
904dbe44
CIK
8158 ;;
8159*)
2078c8a7
DJL
8160 lt_save_MAGIC_CMD=$MAGIC_CMD
8161 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
904dbe44
CIK
8162 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8163 for ac_dir in $ac_dummy; do
2078c8a7 8164 IFS=$lt_save_ifs
904dbe44 8165 test -z "$ac_dir" && ac_dir=.
2078c8a7
DJL
8166 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8167 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
904dbe44
CIK
8168 if test -n "$file_magic_test_file"; then
8169 case $deplibs_check_method in
8170 "file_magic "*)
8171 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
2078c8a7 8172 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
904dbe44
CIK
8173 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8174 $EGREP "$file_magic_regex" > /dev/null; then
8175 :
8176 else
8177 cat <<_LT_EOF 1>&2
8178
8179*** Warning: the command libtool uses to detect shared libraries,
8180*** $file_magic_cmd, produces output that libtool cannot recognize.
8181*** The result is that libtool may fail to recognize shared libraries
8182*** as such. This will affect the creation of libtool libraries that
8183*** depend on shared libraries, but programs linked with such libtool
8184*** libraries will work regardless of this problem. Nevertheless, you
8185*** may want to report the problem to your system manager and/or to
8186*** bug-libtool@gnu.org
8187
8188_LT_EOF
8189 fi ;;
8190 esac
8191 fi
8192 break
8193 fi
8194 done
2078c8a7
DJL
8195 IFS=$lt_save_ifs
8196 MAGIC_CMD=$lt_save_MAGIC_CMD
904dbe44
CIK
8197 ;;
8198esac
8199fi
8200
2078c8a7 8201MAGIC_CMD=$lt_cv_path_MAGIC_CMD
904dbe44
CIK
8202if test -n "$MAGIC_CMD"; then
8203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8204$as_echo "$MAGIC_CMD" >&6; }
8205else
8206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8207$as_echo "no" >&6; }
8208fi
8209
8210
8211
8212
8213
8214if test -z "$lt_cv_path_MAGIC_CMD"; then
8215 if test -n "$ac_tool_prefix"; then
8216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8217$as_echo_n "checking for file... " >&6; }
8218if ${lt_cv_path_MAGIC_CMD+:} false; then :
8219 $as_echo_n "(cached) " >&6
8220else
8221 case $MAGIC_CMD in
8222[\\/*] | ?:[\\/]*)
2078c8a7 8223 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
904dbe44
CIK
8224 ;;
8225*)
2078c8a7
DJL
8226 lt_save_MAGIC_CMD=$MAGIC_CMD
8227 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
904dbe44
CIK
8228 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8229 for ac_dir in $ac_dummy; do
2078c8a7 8230 IFS=$lt_save_ifs
904dbe44 8231 test -z "$ac_dir" && ac_dir=.
2078c8a7
DJL
8232 if test -f "$ac_dir/file"; then
8233 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
904dbe44
CIK
8234 if test -n "$file_magic_test_file"; then
8235 case $deplibs_check_method in
8236 "file_magic "*)
8237 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
2078c8a7 8238 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
904dbe44
CIK
8239 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8240 $EGREP "$file_magic_regex" > /dev/null; then
8241 :
8242 else
8243 cat <<_LT_EOF 1>&2
8244
8245*** Warning: the command libtool uses to detect shared libraries,
8246*** $file_magic_cmd, produces output that libtool cannot recognize.
8247*** The result is that libtool may fail to recognize shared libraries
8248*** as such. This will affect the creation of libtool libraries that
8249*** depend on shared libraries, but programs linked with such libtool
8250*** libraries will work regardless of this problem. Nevertheless, you
8251*** may want to report the problem to your system manager and/or to
8252*** bug-libtool@gnu.org
8253
8254_LT_EOF
8255 fi ;;
8256 esac
8257 fi
8258 break
8259 fi
8260 done
2078c8a7
DJL
8261 IFS=$lt_save_ifs
8262 MAGIC_CMD=$lt_save_MAGIC_CMD
904dbe44
CIK
8263 ;;
8264esac
8265fi
8266
2078c8a7 8267MAGIC_CMD=$lt_cv_path_MAGIC_CMD
904dbe44
CIK
8268if test -n "$MAGIC_CMD"; then
8269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8270$as_echo "$MAGIC_CMD" >&6; }
8271else
8272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8273$as_echo "no" >&6; }
8274fi
8275
8276
8277 else
8278 MAGIC_CMD=:
8279 fi
8280fi
8281
8282 fi
8283 ;;
8284esac
8285
8286# Use C for the default configuration in the libtool script
8287
2078c8a7 8288lt_save_CC=$CC
904dbe44
CIK
8289ac_ext=c
8290ac_cpp='$CPP $CPPFLAGS'
8291ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8292ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8293ac_compiler_gnu=$ac_cv_c_compiler_gnu
8294
8295
8296# Source file extension for C test sources.
8297ac_ext=c
8298
8299# Object file extension for compiled C test sources.
8300objext=o
8301objext=$objext
8302
8303# Code to be used in simple compile tests
8304lt_simple_compile_test_code="int some_variable = 0;"
8305
8306# Code to be used in simple link tests
8307lt_simple_link_test_code='int main(){return(0);}'
8308
8309
8310
8311
8312
8313
8314
8315# If no C compiler was specified, use CC.
8316LTCC=${LTCC-"$CC"}
8317
8318# If no C compiler flags were specified, use CFLAGS.
8319LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8320
8321# Allow CC to be a program name with arguments.
8322compiler=$CC
8323
8324# Save the default compiler, since it gets overwritten when the other
8325# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8326compiler_DEFAULT=$CC
8327
8328# save warnings/boilerplate of simple test code
8329ac_outfile=conftest.$ac_objext
8330echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8331eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8332_lt_compiler_boilerplate=`cat conftest.err`
8333$RM conftest*
8334
8335ac_outfile=conftest.$ac_objext
8336echo "$lt_simple_link_test_code" >conftest.$ac_ext
8337eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8338_lt_linker_boilerplate=`cat conftest.err`
8339$RM -r conftest*
8340
8341
8342## CAVEAT EMPTOR:
8343## There is no encapsulation within the following macros, do not change
8344## the running order or otherwise move them around unless you know exactly
8345## what you are doing...
8346if test -n "$compiler"; then
8347
8348lt_prog_compiler_no_builtin_flag=
8349
2078c8a7 8350if test yes = "$GCC"; then
904dbe44
CIK
8351 case $cc_basename in
8352 nvcc*)
8353 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8354 *)
8355 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8356 esac
8357
8358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8359$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8360if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8361 $as_echo_n "(cached) " >&6
8362else
8363 lt_cv_prog_compiler_rtti_exceptions=no
8364 ac_outfile=conftest.$ac_objext
8365 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
2078c8a7 8366 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
904dbe44
CIK
8367 # Insert the option either (1) after the last *FLAGS variable, or
8368 # (2) before a word containing "conftest.", or (3) at the end.
8369 # Note that $ac_compile itself does not contain backslashes and begins
8370 # with a dollar sign (not a hyphen), so the echo should work correctly.
8371 # The option is referenced via a variable to avoid confusing sed.
8372 lt_compile=`echo "$ac_compile" | $SED \
8373 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8374 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8375 -e 's:$: $lt_compiler_flag:'`
8376 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8377 (eval "$lt_compile" 2>conftest.err)
8378 ac_status=$?
8379 cat conftest.err >&5
8380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8381 if (exit $ac_status) && test -s "$ac_outfile"; then
8382 # The compiler can only warn and ignore the option if not recognized
8383 # So say no if there are warnings other than the usual output.
8384 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8385 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8386 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8387 lt_cv_prog_compiler_rtti_exceptions=yes
8388 fi
8389 fi
8390 $RM conftest*
8391
8392fi
8393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8394$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8395
2078c8a7 8396if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
904dbe44
CIK
8397 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8398else
8399 :
8400fi
8401
8402fi
8403
8404
8405
8406
8407
8408
8409 lt_prog_compiler_wl=
8410lt_prog_compiler_pic=
8411lt_prog_compiler_static=
8412
8413
2078c8a7 8414 if test yes = "$GCC"; then
904dbe44
CIK
8415 lt_prog_compiler_wl='-Wl,'
8416 lt_prog_compiler_static='-static'
8417
8418 case $host_os in
8419 aix*)
8420 # All AIX code is PIC.
2078c8a7 8421 if test ia64 = "$host_cpu"; then
904dbe44
CIK
8422 # AIX 5 now supports IA64 processor
8423 lt_prog_compiler_static='-Bstatic'
8424 fi
2078c8a7 8425 lt_prog_compiler_pic='-fPIC'
904dbe44
CIK
8426 ;;
8427
8428 amigaos*)
8429 case $host_cpu in
8430 powerpc)
8431 # see comment about AmigaOS4 .so support
8432 lt_prog_compiler_pic='-fPIC'
8433 ;;
8434 m68k)
8435 # FIXME: we need at least 68020 code to build shared libraries, but
2078c8a7
DJL
8436 # adding the '-m68020' flag to GCC prevents building anything better,
8437 # like '-m68040'.
904dbe44
CIK
8438 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8439 ;;
8440 esac
8441 ;;
8442
8443 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8444 # PIC is the default for these OSes.
8445 ;;
8446
8447 mingw* | cygwin* | pw32* | os2* | cegcc*)
8448 # This hack is so that the source file can tell whether it is being
8449 # built for inclusion in a dll (and should export symbols for example).
8450 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8451 # (--disable-auto-import) libraries
8452 lt_prog_compiler_pic='-DDLL_EXPORT'
2078c8a7
DJL
8453 case $host_os in
8454 os2*)
8455 lt_prog_compiler_static='$wl-static'
8456 ;;
8457 esac
904dbe44
CIK
8458 ;;
8459
8460 darwin* | rhapsody*)
8461 # PIC is the default on this platform
8462 # Common symbols not allowed in MH_DYLIB files
8463 lt_prog_compiler_pic='-fno-common'
8464 ;;
8465
8466 haiku*)
8467 # PIC is the default for Haiku.
8468 # The "-static" flag exists, but is broken.
8469 lt_prog_compiler_static=
8470 ;;
8471
8472 hpux*)
8473 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8474 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8475 # sets the default TLS model and affects inlining.
8476 case $host_cpu in
8477 hppa*64*)
8478 # +Z the default
8479 ;;
8480 *)
8481 lt_prog_compiler_pic='-fPIC'
8482 ;;
8483 esac
8484 ;;
8485
8486 interix[3-9]*)
8487 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8488 # Instead, we relocate shared libraries at runtime.
8489 ;;
8490
8491 msdosdjgpp*)
8492 # Just because we use GCC doesn't mean we suddenly get shared libraries
8493 # on systems that don't support them.
8494 lt_prog_compiler_can_build_shared=no
8495 enable_shared=no
8496 ;;
8497
8498 *nto* | *qnx*)
8499 # QNX uses GNU C++, but need to define -shared option too, otherwise
8500 # it will coredump.
8501 lt_prog_compiler_pic='-fPIC -shared'
8502 ;;
8503
8504 sysv4*MP*)
8505 if test -d /usr/nec; then
8506 lt_prog_compiler_pic=-Kconform_pic
8507 fi
8508 ;;
8509
8510 *)
8511 lt_prog_compiler_pic='-fPIC'
8512 ;;
8513 esac
8514
8515 case $cc_basename in
8516 nvcc*) # Cuda Compiler Driver 2.2
8517 lt_prog_compiler_wl='-Xlinker '
8518 if test -n "$lt_prog_compiler_pic"; then
8519 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8520 fi
8521 ;;
8522 esac
8523 else
8524 # PORTME Check for flag to pass linker flags through the system compiler.
8525 case $host_os in
8526 aix*)
8527 lt_prog_compiler_wl='-Wl,'
2078c8a7 8528 if test ia64 = "$host_cpu"; then
904dbe44
CIK
8529 # AIX 5 now supports IA64 processor
8530 lt_prog_compiler_static='-Bstatic'
8531 else
8532 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8533 fi
8534 ;;
8535
2078c8a7
DJL
8536 darwin* | rhapsody*)
8537 # PIC is the default on this platform
8538 # Common symbols not allowed in MH_DYLIB files
8539 lt_prog_compiler_pic='-fno-common'
8540 case $cc_basename in
8541 nagfor*)
8542 # NAG Fortran compiler
8543 lt_prog_compiler_wl='-Wl,-Wl,,'
8544 lt_prog_compiler_pic='-PIC'
8545 lt_prog_compiler_static='-Bstatic'
8546 ;;
8547 esac
8548 ;;
8549
904dbe44
CIK
8550 mingw* | cygwin* | pw32* | os2* | cegcc*)
8551 # This hack is so that the source file can tell whether it is being
8552 # built for inclusion in a dll (and should export symbols for example).
8553 lt_prog_compiler_pic='-DDLL_EXPORT'
2078c8a7
DJL
8554 case $host_os in
8555 os2*)
8556 lt_prog_compiler_static='$wl-static'
8557 ;;
8558 esac
904dbe44
CIK
8559 ;;
8560
8561 hpux9* | hpux10* | hpux11*)
8562 lt_prog_compiler_wl='-Wl,'
8563 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8564 # not for PA HP-UX.
8565 case $host_cpu in
8566 hppa*64*|ia64*)
8567 # +Z the default
8568 ;;
8569 *)
8570 lt_prog_compiler_pic='+Z'
8571 ;;
8572 esac
8573 # Is there a better lt_prog_compiler_static that works with the bundled CC?
2078c8a7 8574 lt_prog_compiler_static='$wl-a ${wl}archive'
904dbe44
CIK
8575 ;;
8576
8577 irix5* | irix6* | nonstopux*)
8578 lt_prog_compiler_wl='-Wl,'
8579 # PIC (with -KPIC) is the default.
8580 lt_prog_compiler_static='-non_shared'
8581 ;;
8582
8583 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8584 case $cc_basename in
2078c8a7 8585 # old Intel for x86_64, which still supported -KPIC.
904dbe44
CIK
8586 ecc*)
8587 lt_prog_compiler_wl='-Wl,'
8588 lt_prog_compiler_pic='-KPIC'
8589 lt_prog_compiler_static='-static'
8590 ;;
8591 # icc used to be incompatible with GCC.
8592 # ICC 10 doesn't accept -KPIC any more.
8593 icc* | ifort*)
8594 lt_prog_compiler_wl='-Wl,'
8595 lt_prog_compiler_pic='-fPIC'
8596 lt_prog_compiler_static='-static'
8597 ;;
8598 # Lahey Fortran 8.1.
8599 lf95*)
8600 lt_prog_compiler_wl='-Wl,'
8601 lt_prog_compiler_pic='--shared'
8602 lt_prog_compiler_static='--static'
8603 ;;
8604 nagfor*)
8605 # NAG Fortran compiler
8606 lt_prog_compiler_wl='-Wl,-Wl,,'
8607 lt_prog_compiler_pic='-PIC'
8608 lt_prog_compiler_static='-Bstatic'
8609 ;;
2078c8a7
DJL
8610 tcc*)
8611 # Fabrice Bellard et al's Tiny C Compiler
8612 lt_prog_compiler_wl='-Wl,'
8613 lt_prog_compiler_pic='-fPIC'
8614 lt_prog_compiler_static='-static'
8615 ;;
904dbe44
CIK
8616 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8617 # Portland Group compilers (*not* the Pentium gcc compiler,
8618 # which looks to be a dead project)
8619 lt_prog_compiler_wl='-Wl,'
8620 lt_prog_compiler_pic='-fpic'
8621 lt_prog_compiler_static='-Bstatic'
8622 ;;
8623 ccc*)
8624 lt_prog_compiler_wl='-Wl,'
8625 # All Alpha code is PIC.
8626 lt_prog_compiler_static='-non_shared'
8627 ;;
8628 xl* | bgxl* | bgf* | mpixl*)
8629 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8630 lt_prog_compiler_wl='-Wl,'
8631 lt_prog_compiler_pic='-qpic'
8632 lt_prog_compiler_static='-qstaticlink'
8633 ;;
8634 *)
8635 case `$CC -V 2>&1 | sed 5q` in
8636 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8637 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8638 lt_prog_compiler_pic='-KPIC'
8639 lt_prog_compiler_static='-Bstatic'
8640 lt_prog_compiler_wl=''
8641 ;;
8642 *Sun\ F* | *Sun*Fortran*)
8643 lt_prog_compiler_pic='-KPIC'
8644 lt_prog_compiler_static='-Bstatic'
8645 lt_prog_compiler_wl='-Qoption ld '
8646 ;;
8647 *Sun\ C*)
8648 # Sun C 5.9
8649 lt_prog_compiler_pic='-KPIC'
8650 lt_prog_compiler_static='-Bstatic'
8651 lt_prog_compiler_wl='-Wl,'
8652 ;;
8653 *Intel*\ [CF]*Compiler*)
8654 lt_prog_compiler_wl='-Wl,'
8655 lt_prog_compiler_pic='-fPIC'
8656 lt_prog_compiler_static='-static'
8657 ;;
8658 *Portland\ Group*)
8659 lt_prog_compiler_wl='-Wl,'
8660 lt_prog_compiler_pic='-fpic'
8661 lt_prog_compiler_static='-Bstatic'
8662 ;;
8663 esac
8664 ;;
8665 esac
8666 ;;
8667
8668 newsos6)
8669 lt_prog_compiler_pic='-KPIC'
8670 lt_prog_compiler_static='-Bstatic'
8671 ;;
8672
8673 *nto* | *qnx*)
8674 # QNX uses GNU C++, but need to define -shared option too, otherwise
8675 # it will coredump.
8676 lt_prog_compiler_pic='-fPIC -shared'
8677 ;;
8678
8679 osf3* | osf4* | osf5*)
8680 lt_prog_compiler_wl='-Wl,'
8681 # All OSF/1 code is PIC.
8682 lt_prog_compiler_static='-non_shared'
8683 ;;
8684
8685 rdos*)
8686 lt_prog_compiler_static='-non_shared'
8687 ;;
8688
8689 solaris*)
8690 lt_prog_compiler_pic='-KPIC'
8691 lt_prog_compiler_static='-Bstatic'
8692 case $cc_basename in
8693 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8694 lt_prog_compiler_wl='-Qoption ld ';;
8695 *)
8696 lt_prog_compiler_wl='-Wl,';;
8697 esac
8698 ;;
8699
8700 sunos4*)
8701 lt_prog_compiler_wl='-Qoption ld '
8702 lt_prog_compiler_pic='-PIC'
8703 lt_prog_compiler_static='-Bstatic'
8704 ;;
8705
8706 sysv4 | sysv4.2uw2* | sysv4.3*)
8707 lt_prog_compiler_wl='-Wl,'
8708 lt_prog_compiler_pic='-KPIC'
8709 lt_prog_compiler_static='-Bstatic'
8710 ;;
8711
8712 sysv4*MP*)
2078c8a7 8713 if test -d /usr/nec; then
904dbe44
CIK
8714 lt_prog_compiler_pic='-Kconform_pic'
8715 lt_prog_compiler_static='-Bstatic'
8716 fi
8717 ;;
8718
8719 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8720 lt_prog_compiler_wl='-Wl,'
8721 lt_prog_compiler_pic='-KPIC'
8722 lt_prog_compiler_static='-Bstatic'
8723 ;;
8724
8725 unicos*)
8726 lt_prog_compiler_wl='-Wl,'
8727 lt_prog_compiler_can_build_shared=no
8728 ;;
8729
8730 uts4*)
8731 lt_prog_compiler_pic='-pic'
8732 lt_prog_compiler_static='-Bstatic'
8733 ;;
8734
8735 *)
8736 lt_prog_compiler_can_build_shared=no
8737 ;;
8738 esac
8739 fi
8740
8741case $host_os in
2078c8a7 8742 # For platforms that do not support PIC, -DPIC is meaningless:
904dbe44
CIK
8743 *djgpp*)
8744 lt_prog_compiler_pic=
8745 ;;
8746 *)
8747 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8748 ;;
8749esac
8750
8751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8752$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8753if ${lt_cv_prog_compiler_pic+:} false; then :
8754 $as_echo_n "(cached) " >&6
8755else
8756 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8757fi
8758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8759$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8760lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8761
8762#
8763# Check to make sure the PIC flag actually works.
8764#
8765if test -n "$lt_prog_compiler_pic"; then
8766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8767$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8768if ${lt_cv_prog_compiler_pic_works+:} false; then :
8769 $as_echo_n "(cached) " >&6
8770else
8771 lt_cv_prog_compiler_pic_works=no
8772 ac_outfile=conftest.$ac_objext
8773 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
2078c8a7 8774 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
904dbe44
CIK
8775 # Insert the option either (1) after the last *FLAGS variable, or
8776 # (2) before a word containing "conftest.", or (3) at the end.
8777 # Note that $ac_compile itself does not contain backslashes and begins
8778 # with a dollar sign (not a hyphen), so the echo should work correctly.
8779 # The option is referenced via a variable to avoid confusing sed.
8780 lt_compile=`echo "$ac_compile" | $SED \
8781 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8782 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8783 -e 's:$: $lt_compiler_flag:'`
8784 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8785 (eval "$lt_compile" 2>conftest.err)
8786 ac_status=$?
8787 cat conftest.err >&5
8788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8789 if (exit $ac_status) && test -s "$ac_outfile"; then
8790 # The compiler can only warn and ignore the option if not recognized
8791 # So say no if there are warnings other than the usual output.
8792 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8793 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8794 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8795 lt_cv_prog_compiler_pic_works=yes
8796 fi
8797 fi
8798 $RM conftest*
8799
8800fi
8801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8802$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8803
2078c8a7 8804if test yes = "$lt_cv_prog_compiler_pic_works"; then
904dbe44
CIK
8805 case $lt_prog_compiler_pic in
8806 "" | " "*) ;;
8807 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8808 esac
8809else
8810 lt_prog_compiler_pic=
8811 lt_prog_compiler_can_build_shared=no
8812fi
8813
8814fi
8815
8816
8817
8818
8819
8820
8821
8822
8823
8824
8825
8826#
8827# Check to make sure the static flag actually works.
8828#
8829wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8831$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8832if ${lt_cv_prog_compiler_static_works+:} false; then :
8833 $as_echo_n "(cached) " >&6
8834else
8835 lt_cv_prog_compiler_static_works=no
2078c8a7 8836 save_LDFLAGS=$LDFLAGS
904dbe44
CIK
8837 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8838 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8839 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8840 # The linker can only warn and ignore the option if not recognized
8841 # So say no if there are warnings
8842 if test -s conftest.err; then
8843 # Append any errors to the config.log.
8844 cat conftest.err 1>&5
8845 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8846 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8847 if diff conftest.exp conftest.er2 >/dev/null; then
8848 lt_cv_prog_compiler_static_works=yes
8849 fi
8850 else
8851 lt_cv_prog_compiler_static_works=yes
8852 fi
8853 fi
8854 $RM -r conftest*
2078c8a7 8855 LDFLAGS=$save_LDFLAGS
904dbe44
CIK
8856
8857fi
8858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8859$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8860
2078c8a7 8861if test yes = "$lt_cv_prog_compiler_static_works"; then
904dbe44
CIK
8862 :
8863else
8864 lt_prog_compiler_static=
8865fi
8866
8867
8868
8869
8870
8871
8872
8873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8874$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8875if ${lt_cv_prog_compiler_c_o+:} false; then :
8876 $as_echo_n "(cached) " >&6
8877else
8878 lt_cv_prog_compiler_c_o=no
8879 $RM -r conftest 2>/dev/null
8880 mkdir conftest
8881 cd conftest
8882 mkdir out
8883 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8884
8885 lt_compiler_flag="-o out/conftest2.$ac_objext"
8886 # Insert the option either (1) after the last *FLAGS variable, or
8887 # (2) before a word containing "conftest.", or (3) at the end.
8888 # Note that $ac_compile itself does not contain backslashes and begins
8889 # with a dollar sign (not a hyphen), so the echo should work correctly.
8890 lt_compile=`echo "$ac_compile" | $SED \
8891 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8892 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8893 -e 's:$: $lt_compiler_flag:'`
8894 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8895 (eval "$lt_compile" 2>out/conftest.err)
8896 ac_status=$?
8897 cat out/conftest.err >&5
8898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8899 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8900 then
8901 # The compiler can only warn and ignore the option if not recognized
8902 # So say no if there are warnings
8903 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8904 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8905 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8906 lt_cv_prog_compiler_c_o=yes
8907 fi
8908 fi
8909 chmod u+w . 2>&5
8910 $RM conftest*
8911 # SGI C++ compiler will create directory out/ii_files/ for
8912 # template instantiation
8913 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8914 $RM out/* && rmdir out
8915 cd ..
8916 $RM -r conftest
8917 $RM conftest*
8918
8919fi
8920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8921$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8922
8923
8924
8925
8926
8927
8928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8929$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8930if ${lt_cv_prog_compiler_c_o+:} false; then :
8931 $as_echo_n "(cached) " >&6
8932else
8933 lt_cv_prog_compiler_c_o=no
8934 $RM -r conftest 2>/dev/null
8935 mkdir conftest
8936 cd conftest
8937 mkdir out
8938 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8939
8940 lt_compiler_flag="-o out/conftest2.$ac_objext"
8941 # Insert the option either (1) after the last *FLAGS variable, or
8942 # (2) before a word containing "conftest.", or (3) at the end.
8943 # Note that $ac_compile itself does not contain backslashes and begins
8944 # with a dollar sign (not a hyphen), so the echo should work correctly.
8945 lt_compile=`echo "$ac_compile" | $SED \
8946 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8947 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8948 -e 's:$: $lt_compiler_flag:'`
8949 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8950 (eval "$lt_compile" 2>out/conftest.err)
8951 ac_status=$?
8952 cat out/conftest.err >&5
8953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8954 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8955 then
8956 # The compiler can only warn and ignore the option if not recognized
8957 # So say no if there are warnings
8958 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8959 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8960 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8961 lt_cv_prog_compiler_c_o=yes
8962 fi
8963 fi
8964 chmod u+w . 2>&5
8965 $RM conftest*
8966 # SGI C++ compiler will create directory out/ii_files/ for
8967 # template instantiation
8968 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8969 $RM out/* && rmdir out
8970 cd ..
8971 $RM -r conftest
8972 $RM conftest*
8973
8974fi
8975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8976$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8977
8978
8979
8980
2078c8a7
DJL
8981hard_links=nottested
8982if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
904dbe44
CIK
8983 # do not overwrite the value of need_locks provided by the user
8984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8985$as_echo_n "checking if we can lock with hard links... " >&6; }
8986 hard_links=yes
8987 $RM conftest*
8988 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8989 touch conftest.a
8990 ln conftest.a conftest.b 2>&5 || hard_links=no
8991 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8993$as_echo "$hard_links" >&6; }
2078c8a7
DJL
8994 if test no = "$hard_links"; then
8995 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
8996$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
904dbe44
CIK
8997 need_locks=warn
8998 fi
8999else
9000 need_locks=no
9001fi
9002
9003
9004
9005
9006
9007
9008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9009$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9010
9011 runpath_var=
9012 allow_undefined_flag=
9013 always_export_symbols=no
9014 archive_cmds=
9015 archive_expsym_cmds=
9016 compiler_needs_object=no
9017 enable_shared_with_static_runtimes=no
9018 export_dynamic_flag_spec=
9019 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9020 hardcode_automatic=no
9021 hardcode_direct=no
9022 hardcode_direct_absolute=no
9023 hardcode_libdir_flag_spec=
9024 hardcode_libdir_separator=
9025 hardcode_minus_L=no
9026 hardcode_shlibpath_var=unsupported
9027 inherit_rpath=no
9028 link_all_deplibs=unknown
9029 module_cmds=
9030 module_expsym_cmds=
9031 old_archive_from_new_cmds=
9032 old_archive_from_expsyms_cmds=
9033 thread_safe_flag_spec=
9034 whole_archive_flag_spec=
9035 # include_expsyms should be a list of space-separated symbols to be *always*
9036 # included in the symbol list
9037 include_expsyms=
9038 # exclude_expsyms can be an extended regexp of symbols to exclude
2078c8a7
DJL
9039 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9040 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9041 # as well as any symbol that contains 'd'.
904dbe44
CIK
9042 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9043 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9044 # platforms (ab)use it in PIC code, but their linkers get confused if
9045 # the symbol is explicitly referenced. Since portable code cannot
9046 # rely on this symbol name, it's probably fine to never include it in
9047 # preloaded symbol tables.
9048 # Exclude shared library initialization/finalization symbols.
9049 extract_expsyms_cmds=
9050
9051 case $host_os in
9052 cygwin* | mingw* | pw32* | cegcc*)
9053 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9054 # When not using gcc, we currently assume that we are using
9055 # Microsoft Visual C++.
2078c8a7 9056 if test yes != "$GCC"; then
904dbe44
CIK
9057 with_gnu_ld=no
9058 fi
9059 ;;
9060 interix*)
9061 # we just hope/assume this is gcc and not c89 (= MSVC++)
9062 with_gnu_ld=yes
9063 ;;
2078c8a7 9064 openbsd* | bitrig*)
904dbe44
CIK
9065 with_gnu_ld=no
9066 ;;
9067 linux* | k*bsd*-gnu | gnu*)
9068 link_all_deplibs=no
9069 ;;
9070 esac
9071
9072 ld_shlibs=yes
9073
9074 # On some targets, GNU ld is compatible enough with the native linker
9075 # that we're better off using the native interface for both.
9076 lt_use_gnu_ld_interface=no
2078c8a7 9077 if test yes = "$with_gnu_ld"; then
904dbe44
CIK
9078 case $host_os in
9079 aix*)
9080 # The AIX port of GNU ld has always aspired to compatibility
9081 # with the native linker. However, as the warning in the GNU ld
9082 # block says, versions before 2.19.5* couldn't really create working
9083 # shared libraries, regardless of the interface used.
9084 case `$LD -v 2>&1` in
9085 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9086 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9087 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9088 *)
9089 lt_use_gnu_ld_interface=yes
9090 ;;
9091 esac
9092 ;;
9093 *)
9094 lt_use_gnu_ld_interface=yes
9095 ;;
9096 esac
9097 fi
9098
2078c8a7 9099 if test yes = "$lt_use_gnu_ld_interface"; then
904dbe44 9100 # If archive_cmds runs LD, not CC, wlarc should be empty
2078c8a7 9101 wlarc='$wl'
904dbe44
CIK
9102
9103 # Set some defaults for GNU ld with shared library support. These
9104 # are reset later if shared libraries are not supported. Putting them
9105 # here allows them to be overridden if necessary.
9106 runpath_var=LD_RUN_PATH
2078c8a7
DJL
9107 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9108 export_dynamic_flag_spec='$wl--export-dynamic'
904dbe44
CIK
9109 # ancient GNU ld didn't support --whole-archive et. al.
9110 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
2078c8a7 9111 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
904dbe44
CIK
9112 else
9113 whole_archive_flag_spec=
9114 fi
9115 supports_anon_versioning=no
2078c8a7 9116 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
904dbe44
CIK
9117 *GNU\ gold*) supports_anon_versioning=yes ;;
9118 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9119 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9120 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9121 *\ 2.11.*) ;; # other 2.11 versions
9122 *) supports_anon_versioning=yes ;;
9123 esac
9124
9125 # See if GNU ld supports shared libraries.
9126 case $host_os in
9127 aix[3-9]*)
9128 # On AIX/PPC, the GNU linker is very broken
2078c8a7 9129 if test ia64 != "$host_cpu"; then
904dbe44
CIK
9130 ld_shlibs=no
9131 cat <<_LT_EOF 1>&2
9132
9133*** Warning: the GNU linker, at least up to release 2.19, is reported
9134*** to be unable to reliably create shared libraries on AIX.
9135*** Therefore, libtool is disabling shared libraries support. If you
9136*** really care for shared libraries, you may want to install binutils
9137*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9138*** You will then need to restart the configuration process.
9139
9140_LT_EOF
9141 fi
9142 ;;
9143
9144 amigaos*)
9145 case $host_cpu in
9146 powerpc)
9147 # see comment about AmigaOS4 .so support
2078c8a7 9148 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
904dbe44
CIK
9149 archive_expsym_cmds=''
9150 ;;
9151 m68k)
9152 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)'
9153 hardcode_libdir_flag_spec='-L$libdir'
9154 hardcode_minus_L=yes
9155 ;;
9156 esac
9157 ;;
9158
9159 beos*)
9160 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9161 allow_undefined_flag=unsupported
9162 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9163 # support --undefined. This deserves some investigation. FIXME
2078c8a7 9164 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
904dbe44
CIK
9165 else
9166 ld_shlibs=no
9167 fi
9168 ;;
9169
9170 cygwin* | mingw* | pw32* | cegcc*)
9171 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9172 # as there is no search path for DLLs.
9173 hardcode_libdir_flag_spec='-L$libdir'
2078c8a7 9174 export_dynamic_flag_spec='$wl--export-all-symbols'
904dbe44
CIK
9175 allow_undefined_flag=unsupported
9176 always_export_symbols=no
9177 enable_shared_with_static_runtimes=yes
9178 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'
9179 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9180
9181 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
2078c8a7
DJL
9182 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9183 # If the export-symbols file already is a .def file, use it as
9184 # is; otherwise, prepend EXPORTS...
9185 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9186 cp $export_symbols $output_objdir/$soname.def;
9187 else
9188 echo EXPORTS > $output_objdir/$soname.def;
9189 cat $export_symbols >> $output_objdir/$soname.def;
9190 fi~
9191 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
904dbe44
CIK
9192 else
9193 ld_shlibs=no
9194 fi
9195 ;;
9196
9197 haiku*)
2078c8a7 9198 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
904dbe44
CIK
9199 link_all_deplibs=yes
9200 ;;
9201
2078c8a7
DJL
9202 os2*)
9203 hardcode_libdir_flag_spec='-L$libdir'
9204 hardcode_minus_L=yes
9205 allow_undefined_flag=unsupported
9206 shrext_cmds=.dll
9207 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9208 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9209 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9210 $ECHO EXPORTS >> $output_objdir/$libname.def~
9211 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9212 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9213 emximp -o $lib $output_objdir/$libname.def'
9214 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9215 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9216 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9217 $ECHO EXPORTS >> $output_objdir/$libname.def~
9218 prefix_cmds="$SED"~
9219 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9220 prefix_cmds="$prefix_cmds -e 1d";
9221 fi~
9222 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9223 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9224 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9225 emximp -o $lib $output_objdir/$libname.def'
9226 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9227 enable_shared_with_static_runtimes=yes
9228 ;;
9229
904dbe44
CIK
9230 interix[3-9]*)
9231 hardcode_direct=no
9232 hardcode_shlibpath_var=no
2078c8a7
DJL
9233 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9234 export_dynamic_flag_spec='$wl-E'
904dbe44
CIK
9235 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9236 # Instead, shared libraries are loaded at an image base (0x10000000 by
9237 # default) and relocated if they conflict, which is a slow very memory
9238 # consuming and fragmenting process. To avoid this, we pick a random,
9239 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9240 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
2078c8a7
DJL
9241 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9242 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'
904dbe44
CIK
9243 ;;
9244
9245 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9246 tmp_diet=no
2078c8a7 9247 if test linux-dietlibc = "$host_os"; then
904dbe44
CIK
9248 case $cc_basename in
9249 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9250 esac
9251 fi
9252 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
2078c8a7 9253 && test no = "$tmp_diet"
904dbe44
CIK
9254 then
9255 tmp_addflag=' $pic_flag'
9256 tmp_sharedflag='-shared'
9257 case $cc_basename,$host_cpu in
9258 pgcc*) # Portland Group C compiler
2078c8a7 9259 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'
904dbe44
CIK
9260 tmp_addflag=' $pic_flag'
9261 ;;
9262 pgf77* | pgf90* | pgf95* | pgfortran*)
9263 # Portland Group f77 and f90 compilers
2078c8a7 9264 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'
904dbe44
CIK
9265 tmp_addflag=' $pic_flag -Mnomain' ;;
9266 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9267 tmp_addflag=' -i_dynamic' ;;
9268 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9269 tmp_addflag=' -i_dynamic -nofor_main' ;;
9270 ifc* | ifort*) # Intel Fortran compiler
9271 tmp_addflag=' -nofor_main' ;;
9272 lf95*) # Lahey Fortran 8.1
9273 whole_archive_flag_spec=
9274 tmp_sharedflag='--shared' ;;
2078c8a7
DJL
9275 nagfor*) # NAGFOR 5.3
9276 tmp_sharedflag='-Wl,-shared' ;;
904dbe44
CIK
9277 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9278 tmp_sharedflag='-qmkshrobj'
9279 tmp_addflag= ;;
9280 nvcc*) # Cuda Compiler Driver 2.2
2078c8a7 9281 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'
904dbe44
CIK
9282 compiler_needs_object=yes
9283 ;;
9284 esac
9285 case `$CC -V 2>&1 | sed 5q` in
9286 *Sun\ C*) # Sun C 5.9
2078c8a7 9287 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'
904dbe44
CIK
9288 compiler_needs_object=yes
9289 tmp_sharedflag='-G' ;;
9290 *Sun\ F*) # Sun Fortran 8.3
9291 tmp_sharedflag='-G' ;;
9292 esac
2078c8a7 9293 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
904dbe44 9294
2078c8a7 9295 if test yes = "$supports_anon_versioning"; then
904dbe44 9296 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
2078c8a7
DJL
9297 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9298 echo "local: *; };" >> $output_objdir/$libname.ver~
9299 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
904dbe44
CIK
9300 fi
9301
9302 case $cc_basename in
2078c8a7
DJL
9303 tcc*)
9304 export_dynamic_flag_spec='-rdynamic'
9305 ;;
904dbe44
CIK
9306 xlf* | bgf* | bgxlf* | mpixlf*)
9307 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9308 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
2078c8a7 9309 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
904dbe44 9310 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
2078c8a7 9311 if test yes = "$supports_anon_versioning"; then
904dbe44 9312 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
2078c8a7
DJL
9313 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9314 echo "local: *; };" >> $output_objdir/$libname.ver~
9315 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
904dbe44
CIK
9316 fi
9317 ;;
9318 esac
9319 else
9320 ld_shlibs=no
9321 fi
9322 ;;
9323
9324 netbsd* | netbsdelf*-gnu)
9325 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9326 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9327 wlarc=
9328 else
2078c8a7
DJL
9329 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9330 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
904dbe44
CIK
9331 fi
9332 ;;
9333
9334 solaris*)
9335 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9336 ld_shlibs=no
9337 cat <<_LT_EOF 1>&2
9338
9339*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9340*** create shared libraries on Solaris systems. Therefore, libtool
9341*** is disabling shared libraries support. We urge you to upgrade GNU
9342*** binutils to release 2.9.1 or newer. Another option is to modify
9343*** your PATH or compiler configuration so that the native linker is
9344*** used, and then restart.
9345
9346_LT_EOF
9347 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
2078c8a7
DJL
9348 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9349 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
904dbe44
CIK
9350 else
9351 ld_shlibs=no
9352 fi
9353 ;;
9354
9355 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9356 case `$LD -v 2>&1` in
9357 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9358 ld_shlibs=no
9359 cat <<_LT_EOF 1>&2
9360
2078c8a7 9361*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
904dbe44
CIK
9362*** reliably create shared libraries on SCO systems. Therefore, libtool
9363*** is disabling shared libraries support. We urge you to upgrade GNU
9364*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9365*** your PATH or compiler configuration so that the native linker is
9366*** used, and then restart.
9367
9368_LT_EOF
9369 ;;
9370 *)
9371 # For security reasons, it is highly recommended that you always
9372 # use absolute paths for naming shared libraries, and exclude the
9373 # DT_RUNPATH tag from executables and libraries. But doing so
9374 # requires that you compile everything twice, which is a pain.
9375 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
2078c8a7
DJL
9376 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9377 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9378 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
904dbe44
CIK
9379 else
9380 ld_shlibs=no
9381 fi
9382 ;;
9383 esac
9384 ;;
9385
9386 sunos4*)
9387 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9388 wlarc=
9389 hardcode_direct=yes
9390 hardcode_shlibpath_var=no
9391 ;;
9392
9393 *)
9394 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
2078c8a7
DJL
9395 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9396 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
904dbe44
CIK
9397 else
9398 ld_shlibs=no
9399 fi
9400 ;;
9401 esac
9402
2078c8a7 9403 if test no = "$ld_shlibs"; then
904dbe44
CIK
9404 runpath_var=
9405 hardcode_libdir_flag_spec=
9406 export_dynamic_flag_spec=
9407 whole_archive_flag_spec=
9408 fi
9409 else
9410 # PORTME fill in a description of your system's linker (not GNU ld)
9411 case $host_os in
9412 aix3*)
9413 allow_undefined_flag=unsupported
9414 always_export_symbols=yes
9415 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'
9416 # Note: this linker hardcodes the directories in LIBPATH if there
9417 # are no directories specified by -L.
9418 hardcode_minus_L=yes
2078c8a7 9419 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
904dbe44
CIK
9420 # Neither direct hardcoding nor static linking is supported with a
9421 # broken collect2.
9422 hardcode_direct=unsupported
9423 fi
9424 ;;
9425
9426 aix[4-9]*)
2078c8a7 9427 if test ia64 = "$host_cpu"; then
904dbe44
CIK
9428 # On IA64, the linker does run time linking by default, so we don't
9429 # have to do anything special.
9430 aix_use_runtimelinking=no
9431 exp_sym_flag='-Bexport'
2078c8a7 9432 no_entry_flag=
904dbe44
CIK
9433 else
9434 # If we're using GNU nm, then we don't want the "-C" option.
2078c8a7
DJL
9435 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9436 # Without the "-l" option, or with the "-B" option, AIX nm treats
9437 # weak defined symbols like other global defined symbols, whereas
9438 # GNU nm marks them as "W".
9439 # While the 'weak' keyword is ignored in the Export File, we need
9440 # it in the Import File for the 'aix-soname' feature, so we have
9441 # to replace the "-B" option with "-P" for AIX nm.
904dbe44 9442 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
2078c8a7 9443 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
904dbe44 9444 else
2078c8a7 9445 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
904dbe44
CIK
9446 fi
9447 aix_use_runtimelinking=no
9448
9449 # Test if we are trying to use run time linking or normal
9450 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
2078c8a7
DJL
9451 # have runtime linking enabled, and use it for executables.
9452 # For shared libraries, we enable/disable runtime linking
9453 # depending on the kind of the shared library created -
9454 # when "with_aix_soname,aix_use_runtimelinking" is:
9455 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9456 # "aix,yes" lib.so shared, rtl:yes, for executables
9457 # lib.a static archive
9458 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9459 # lib.a(lib.so.V) shared, rtl:no, for executables
9460 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9461 # lib.a(lib.so.V) shared, rtl:no
9462 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9463 # lib.a static archive
904dbe44
CIK
9464 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9465 for ld_flag in $LDFLAGS; do
2078c8a7 9466 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
904dbe44
CIK
9467 aix_use_runtimelinking=yes
9468 break
9469 fi
9470 done
2078c8a7
DJL
9471 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9472 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9473 # so we don't have lib.a shared libs to link our executables.
9474 # We have to force runtime linking in this case.
9475 aix_use_runtimelinking=yes
9476 LDFLAGS="$LDFLAGS -Wl,-brtl"
9477 fi
904dbe44
CIK
9478 ;;
9479 esac
9480
9481 exp_sym_flag='-bexport'
9482 no_entry_flag='-bnoentry'
9483 fi
9484
9485 # When large executables or shared objects are built, AIX ld can
9486 # have problems creating the table of contents. If linking a library
9487 # or program results in "error TOC overflow" add -mminimal-toc to
9488 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9489 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9490
9491 archive_cmds=''
9492 hardcode_direct=yes
9493 hardcode_direct_absolute=yes
9494 hardcode_libdir_separator=':'
9495 link_all_deplibs=yes
2078c8a7
DJL
9496 file_list_spec='$wl-f,'
9497 case $with_aix_soname,$aix_use_runtimelinking in
9498 aix,*) ;; # traditional, no import file
9499 svr4,* | *,yes) # use import file
9500 # The Import File defines what to hardcode.
9501 hardcode_direct=no
9502 hardcode_direct_absolute=no
9503 ;;
9504 esac
904dbe44 9505
2078c8a7 9506 if test yes = "$GCC"; then
904dbe44
CIK
9507 case $host_os in aix4.[012]|aix4.[012].*)
9508 # We only want to do this on AIX 4.2 and lower, the check
9509 # below for broken collect2 doesn't work under 4.3+
2078c8a7 9510 collect2name=`$CC -print-prog-name=collect2`
904dbe44
CIK
9511 if test -f "$collect2name" &&
9512 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9513 then
9514 # We have reworked collect2
9515 :
9516 else
9517 # We have old collect2
9518 hardcode_direct=unsupported
9519 # It fails to find uninstalled libraries when the uninstalled
9520 # path is not listed in the libpath. Setting hardcode_minus_L
9521 # to unsupported forces relinking
9522 hardcode_minus_L=yes
9523 hardcode_libdir_flag_spec='-L$libdir'
9524 hardcode_libdir_separator=
9525 fi
9526 ;;
9527 esac
9528 shared_flag='-shared'
2078c8a7
DJL
9529 if test yes = "$aix_use_runtimelinking"; then
9530 shared_flag="$shared_flag "'$wl-G'
904dbe44 9531 fi
2078c8a7
DJL
9532 # Need to ensure runtime linking is disabled for the traditional
9533 # shared library, or the linker may eventually find shared libraries
9534 # /with/ Import File - we do not want to mix them.
9535 shared_flag_aix='-shared'
9536 shared_flag_svr4='-shared $wl-G'
904dbe44
CIK
9537 else
9538 # not using gcc
2078c8a7 9539 if test ia64 = "$host_cpu"; then
904dbe44
CIK
9540 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9541 # chokes on -Wl,-G. The following line is correct:
9542 shared_flag='-G'
9543 else
2078c8a7
DJL
9544 if test yes = "$aix_use_runtimelinking"; then
9545 shared_flag='$wl-G'
904dbe44 9546 else
2078c8a7 9547 shared_flag='$wl-bM:SRE'
904dbe44 9548 fi
2078c8a7
DJL
9549 shared_flag_aix='$wl-bM:SRE'
9550 shared_flag_svr4='$wl-G'
904dbe44
CIK
9551 fi
9552 fi
9553
2078c8a7 9554 export_dynamic_flag_spec='$wl-bexpall'
904dbe44
CIK
9555 # It seems that -bexpall does not export symbols beginning with
9556 # underscore (_), so it is better to generate a list of symbols to export.
9557 always_export_symbols=yes
2078c8a7 9558 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
904dbe44
CIK
9559 # Warning - without using the other runtime loading flags (-brtl),
9560 # -berok will link without error, but may produce a broken library.
9561 allow_undefined_flag='-berok'
9562 # Determine the default libpath from the value encoded in an
9563 # empty executable.
2078c8a7 9564 if test set = "${lt_cv_aix_libpath+set}"; then
904dbe44
CIK
9565 aix_libpath=$lt_cv_aix_libpath
9566else
9567 if ${lt_cv_aix_libpath_+:} false; then :
9568 $as_echo_n "(cached) " >&6
9569else
9570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9571/* end confdefs.h. */
9572
9573int
9574main ()
9575{
9576
9577 ;
9578 return 0;
9579}
9580_ACEOF
9581if ac_fn_c_try_link "$LINENO"; then :
9582
9583 lt_aix_libpath_sed='
9584 /Import File Strings/,/^$/ {
9585 /^0/ {
9586 s/^0 *\([^ ]*\) *$/\1/
9587 p
9588 }
9589 }'
9590 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9591 # Check for a 64-bit object if we didn't find anything.
9592 if test -z "$lt_cv_aix_libpath_"; then
9593 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9594 fi
9595fi
9596rm -f core conftest.err conftest.$ac_objext \
9597 conftest$ac_exeext conftest.$ac_ext
9598 if test -z "$lt_cv_aix_libpath_"; then
2078c8a7 9599 lt_cv_aix_libpath_=/usr/lib:/lib
904dbe44
CIK
9600 fi
9601
9602fi
9603
9604 aix_libpath=$lt_cv_aix_libpath_
9605fi
9606
2078c8a7
DJL
9607 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9608 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
904dbe44 9609 else
2078c8a7
DJL
9610 if test ia64 = "$host_cpu"; then
9611 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
904dbe44 9612 allow_undefined_flag="-z nodefs"
2078c8a7 9613 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"
904dbe44
CIK
9614 else
9615 # Determine the default libpath from the value encoded in an
9616 # empty executable.
2078c8a7 9617 if test set = "${lt_cv_aix_libpath+set}"; then
904dbe44
CIK
9618 aix_libpath=$lt_cv_aix_libpath
9619else
9620 if ${lt_cv_aix_libpath_+:} false; then :
9621 $as_echo_n "(cached) " >&6
9622else
9623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9624/* end confdefs.h. */
9625
9626int
9627main ()
9628{
9629
9630 ;
9631 return 0;
9632}
9633_ACEOF
9634if ac_fn_c_try_link "$LINENO"; then :
9635
9636 lt_aix_libpath_sed='
9637 /Import File Strings/,/^$/ {
9638 /^0/ {
9639 s/^0 *\([^ ]*\) *$/\1/
9640 p
9641 }
9642 }'
9643 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9644 # Check for a 64-bit object if we didn't find anything.
9645 if test -z "$lt_cv_aix_libpath_"; then
9646 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9647 fi
9648fi
9649rm -f core conftest.err conftest.$ac_objext \
9650 conftest$ac_exeext conftest.$ac_ext
9651 if test -z "$lt_cv_aix_libpath_"; then
2078c8a7 9652 lt_cv_aix_libpath_=/usr/lib:/lib
904dbe44
CIK
9653 fi
9654
9655fi
9656
9657 aix_libpath=$lt_cv_aix_libpath_
9658fi
9659
2078c8a7 9660 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
904dbe44
CIK
9661 # Warning - without using the other run time loading flags,
9662 # -berok will link without error, but may produce a broken library.
2078c8a7
DJL
9663 no_undefined_flag=' $wl-bernotok'
9664 allow_undefined_flag=' $wl-berok'
9665 if test yes = "$with_gnu_ld"; then
904dbe44 9666 # We only use this code for GNU lds that support --whole-archive.
2078c8a7 9667 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
904dbe44
CIK
9668 else
9669 # Exported symbols can be pulled into shared objects from archives
9670 whole_archive_flag_spec='$convenience'
9671 fi
9672 archive_cmds_need_lc=yes
2078c8a7
DJL
9673 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9674 # -brtl affects multiple linker settings, -berok does not and is overridden later
9675 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9676 if test svr4 != "$with_aix_soname"; then
9677 # This is similar to how AIX traditionally builds its shared libraries.
9678 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
9679 fi
9680 if test aix != "$with_aix_soname"; then
9681 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
9682 else
9683 # used by -dlpreopen to get the symbols
9684 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
9685 fi
9686 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
904dbe44
CIK
9687 fi
9688 fi
9689 ;;
9690
9691 amigaos*)
9692 case $host_cpu in
9693 powerpc)
9694 # see comment about AmigaOS4 .so support
2078c8a7 9695 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
904dbe44
CIK
9696 archive_expsym_cmds=''
9697 ;;
9698 m68k)
9699 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)'
9700 hardcode_libdir_flag_spec='-L$libdir'
9701 hardcode_minus_L=yes
9702 ;;
9703 esac
9704 ;;
9705
9706 bsdi[45]*)
9707 export_dynamic_flag_spec=-rdynamic
9708 ;;
9709
9710 cygwin* | mingw* | pw32* | cegcc*)
9711 # When not using gcc, we currently assume that we are using
9712 # Microsoft Visual C++.
9713 # hardcode_libdir_flag_spec is actually meaningless, as there is
9714 # no search path for DLLs.
9715 case $cc_basename in
9716 cl*)
9717 # Native MSVC
9718 hardcode_libdir_flag_spec=' '
9719 allow_undefined_flag=unsupported
9720 always_export_symbols=yes
9721 file_list_spec='@'
9722 # Tell ltmain to make .lib files, not .a files.
9723 libext=lib
9724 # Tell ltmain to make .dll files, not .so files.
2078c8a7 9725 shrext_cmds=.dll
904dbe44 9726 # FIXME: Setting linknames here is a bad hack.
2078c8a7
DJL
9727 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9728 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9729 cp "$export_symbols" "$output_objdir/$soname.def";
9730 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9731 else
9732 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9733 fi~
9734 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9735 linknames='
904dbe44
CIK
9736 # The linker will not automatically build a static lib if we build a DLL.
9737 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9738 enable_shared_with_static_runtimes=yes
9739 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9740 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9741 # Don't use ranlib
9742 old_postinstall_cmds='chmod 644 $oldlib'
9743 postlink_cmds='lt_outputfile="@OUTPUT@"~
2078c8a7
DJL
9744 lt_tool_outputfile="@TOOL_OUTPUT@"~
9745 case $lt_outputfile in
9746 *.exe|*.EXE) ;;
9747 *)
9748 lt_outputfile=$lt_outputfile.exe
9749 lt_tool_outputfile=$lt_tool_outputfile.exe
9750 ;;
9751 esac~
9752 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9753 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9754 $RM "$lt_outputfile.manifest";
9755 fi'
904dbe44
CIK
9756 ;;
9757 *)
9758 # Assume MSVC wrapper
9759 hardcode_libdir_flag_spec=' '
9760 allow_undefined_flag=unsupported
9761 # Tell ltmain to make .lib files, not .a files.
9762 libext=lib
9763 # Tell ltmain to make .dll files, not .so files.
2078c8a7 9764 shrext_cmds=.dll
904dbe44
CIK
9765 # FIXME: Setting linknames here is a bad hack.
9766 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9767 # The linker will automatically build a .lib file if we build a DLL.
9768 old_archive_from_new_cmds='true'
9769 # FIXME: Should let the user specify the lib program.
9770 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9771 enable_shared_with_static_runtimes=yes
9772 ;;
9773 esac
9774 ;;
9775
9776 darwin* | rhapsody*)
9777
9778
9779 archive_cmds_need_lc=no
9780 hardcode_direct=no
9781 hardcode_automatic=yes
9782 hardcode_shlibpath_var=unsupported
2078c8a7
DJL
9783 if test yes = "$lt_cv_ld_force_load"; then
9784 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\"`'
904dbe44
CIK
9785
9786 else
9787 whole_archive_flag_spec=''
9788 fi
9789 link_all_deplibs=yes
2078c8a7 9790 allow_undefined_flag=$_lt_dar_allow_undefined
904dbe44 9791 case $cc_basename in
2078c8a7 9792 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
904dbe44
CIK
9793 *) _lt_dar_can_shared=$GCC ;;
9794 esac
2078c8a7 9795 if test yes = "$_lt_dar_can_shared"; then
904dbe44 9796 output_verbose_link_cmd=func_echo_all
2078c8a7
DJL
9797 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9798 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9799 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"
9800 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"
904dbe44
CIK
9801
9802 else
9803 ld_shlibs=no
9804 fi
9805
9806 ;;
9807
9808 dgux*)
9809 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9810 hardcode_libdir_flag_spec='-L$libdir'
9811 hardcode_shlibpath_var=no
9812 ;;
9813
9814 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9815 # support. Future versions do this automatically, but an explicit c++rt0.o
9816 # does not break anything, and helps significantly (at the cost of a little
9817 # extra space).
9818 freebsd2.2*)
9819 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9820 hardcode_libdir_flag_spec='-R$libdir'
9821 hardcode_direct=yes
9822 hardcode_shlibpath_var=no
9823 ;;
9824
9825 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9826 freebsd2.*)
9827 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9828 hardcode_direct=yes
9829 hardcode_minus_L=yes
9830 hardcode_shlibpath_var=no
9831 ;;
9832
9833 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9834 freebsd* | dragonfly*)
9835 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9836 hardcode_libdir_flag_spec='-R$libdir'
9837 hardcode_direct=yes
9838 hardcode_shlibpath_var=no
9839 ;;
9840
9841 hpux9*)
2078c8a7
DJL
9842 if test yes = "$GCC"; then
9843 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
904dbe44 9844 else
2078c8a7 9845 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
904dbe44 9846 fi
2078c8a7 9847 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
904dbe44
CIK
9848 hardcode_libdir_separator=:
9849 hardcode_direct=yes
9850
9851 # hardcode_minus_L: Not really in the search PATH,
9852 # but as the default location of the library.
9853 hardcode_minus_L=yes
2078c8a7 9854 export_dynamic_flag_spec='$wl-E'
904dbe44
CIK
9855 ;;
9856
9857 hpux10*)
2078c8a7
DJL
9858 if test yes,no = "$GCC,$with_gnu_ld"; then
9859 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
904dbe44
CIK
9860 else
9861 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9862 fi
2078c8a7
DJL
9863 if test no = "$with_gnu_ld"; then
9864 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
904dbe44
CIK
9865 hardcode_libdir_separator=:
9866 hardcode_direct=yes
9867 hardcode_direct_absolute=yes
2078c8a7 9868 export_dynamic_flag_spec='$wl-E'
904dbe44
CIK
9869 # hardcode_minus_L: Not really in the search PATH,
9870 # but as the default location of the library.
9871 hardcode_minus_L=yes
9872 fi
9873 ;;
9874
9875 hpux11*)
2078c8a7 9876 if test yes,no = "$GCC,$with_gnu_ld"; then
904dbe44
CIK
9877 case $host_cpu in
9878 hppa*64*)
2078c8a7 9879 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
904dbe44
CIK
9880 ;;
9881 ia64*)
2078c8a7 9882 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
904dbe44
CIK
9883 ;;
9884 *)
2078c8a7 9885 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
904dbe44
CIK
9886 ;;
9887 esac
9888 else
9889 case $host_cpu in
9890 hppa*64*)
2078c8a7 9891 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
904dbe44
CIK
9892 ;;
9893 ia64*)
2078c8a7 9894 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
904dbe44
CIK
9895 ;;
9896 *)
9897
9898 # Older versions of the 11.00 compiler do not understand -b yet
9899 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9901$as_echo_n "checking if $CC understands -b... " >&6; }
9902if ${lt_cv_prog_compiler__b+:} false; then :
9903 $as_echo_n "(cached) " >&6
9904else
9905 lt_cv_prog_compiler__b=no
2078c8a7 9906 save_LDFLAGS=$LDFLAGS
904dbe44
CIK
9907 LDFLAGS="$LDFLAGS -b"
9908 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9909 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9910 # The linker can only warn and ignore the option if not recognized
9911 # So say no if there are warnings
9912 if test -s conftest.err; then
9913 # Append any errors to the config.log.
9914 cat conftest.err 1>&5
9915 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9916 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9917 if diff conftest.exp conftest.er2 >/dev/null; then
9918 lt_cv_prog_compiler__b=yes
9919 fi
9920 else
9921 lt_cv_prog_compiler__b=yes
9922 fi
9923 fi
9924 $RM -r conftest*
2078c8a7 9925 LDFLAGS=$save_LDFLAGS
904dbe44
CIK
9926
9927fi
9928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9929$as_echo "$lt_cv_prog_compiler__b" >&6; }
9930
2078c8a7
DJL
9931if test yes = "$lt_cv_prog_compiler__b"; then
9932 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
904dbe44
CIK
9933else
9934 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9935fi
9936
9937 ;;
9938 esac
9939 fi
2078c8a7
DJL
9940 if test no = "$with_gnu_ld"; then
9941 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
904dbe44
CIK
9942 hardcode_libdir_separator=:
9943
9944 case $host_cpu in
9945 hppa*64*|ia64*)
9946 hardcode_direct=no
9947 hardcode_shlibpath_var=no
9948 ;;
9949 *)
9950 hardcode_direct=yes
9951 hardcode_direct_absolute=yes
2078c8a7 9952 export_dynamic_flag_spec='$wl-E'
904dbe44
CIK
9953
9954 # hardcode_minus_L: Not really in the search PATH,
9955 # but as the default location of the library.
9956 hardcode_minus_L=yes
9957 ;;
9958 esac
9959 fi
9960 ;;
9961
9962 irix5* | irix6* | nonstopux*)
2078c8a7
DJL
9963 if test yes = "$GCC"; then
9964 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'
904dbe44
CIK
9965 # Try to use the -exported_symbol ld option, if it does not
9966 # work, assume that -exports_file does not work either and
9967 # implicitly export all symbols.
9968 # This should be the same for all languages, so no per-tag cache variable.
9969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9970$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9971if ${lt_cv_irix_exported_symbol+:} false; then :
9972 $as_echo_n "(cached) " >&6
9973else
2078c8a7
DJL
9974 save_LDFLAGS=$LDFLAGS
9975 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
904dbe44
CIK
9976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9977/* end confdefs.h. */
9978int foo (void) { return 0; }
9979_ACEOF
9980if ac_fn_c_try_link "$LINENO"; then :
9981 lt_cv_irix_exported_symbol=yes
9982else
9983 lt_cv_irix_exported_symbol=no
9984fi
9985rm -f core conftest.err conftest.$ac_objext \
9986 conftest$ac_exeext conftest.$ac_ext
2078c8a7 9987 LDFLAGS=$save_LDFLAGS
904dbe44
CIK
9988fi
9989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9990$as_echo "$lt_cv_irix_exported_symbol" >&6; }
2078c8a7
DJL
9991 if test yes = "$lt_cv_irix_exported_symbol"; then
9992 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'
904dbe44 9993 fi
2078c8a7 9994 link_all_deplibs=no
904dbe44 9995 else
2078c8a7
DJL
9996 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'
9997 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'
904dbe44
CIK
9998 fi
9999 archive_cmds_need_lc='no'
2078c8a7 10000 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
904dbe44
CIK
10001 hardcode_libdir_separator=:
10002 inherit_rpath=yes
10003 link_all_deplibs=yes
10004 ;;
10005
2078c8a7
DJL
10006 linux*)
10007 case $cc_basename in
10008 tcc*)
10009 # Fabrice Bellard et al's Tiny C Compiler
10010 ld_shlibs=yes
10011 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10012 ;;
10013 esac
10014 ;;
10015
904dbe44
CIK
10016 netbsd* | netbsdelf*-gnu)
10017 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10018 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10019 else
10020 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10021 fi
10022 hardcode_libdir_flag_spec='-R$libdir'
10023 hardcode_direct=yes
10024 hardcode_shlibpath_var=no
10025 ;;
10026
10027 newsos6)
10028 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10029 hardcode_direct=yes
2078c8a7 10030 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
904dbe44
CIK
10031 hardcode_libdir_separator=:
10032 hardcode_shlibpath_var=no
10033 ;;
10034
10035 *nto* | *qnx*)
10036 ;;
10037
2078c8a7 10038 openbsd* | bitrig*)
904dbe44
CIK
10039 if test -f /usr/libexec/ld.so; then
10040 hardcode_direct=yes
10041 hardcode_shlibpath_var=no
10042 hardcode_direct_absolute=yes
2078c8a7 10043 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
904dbe44 10044 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
2078c8a7
DJL
10045 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10046 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10047 export_dynamic_flag_spec='$wl-E'
904dbe44 10048 else
2078c8a7
DJL
10049 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10050 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
904dbe44
CIK
10051 fi
10052 else
10053 ld_shlibs=no
10054 fi
10055 ;;
10056
10057 os2*)
10058 hardcode_libdir_flag_spec='-L$libdir'
10059 hardcode_minus_L=yes
10060 allow_undefined_flag=unsupported
2078c8a7
DJL
10061 shrext_cmds=.dll
10062 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10063 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10064 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10065 $ECHO EXPORTS >> $output_objdir/$libname.def~
10066 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10067 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10068 emximp -o $lib $output_objdir/$libname.def'
10069 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10070 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10071 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10072 $ECHO EXPORTS >> $output_objdir/$libname.def~
10073 prefix_cmds="$SED"~
10074 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10075 prefix_cmds="$prefix_cmds -e 1d";
10076 fi~
10077 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10078 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10079 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10080 emximp -o $lib $output_objdir/$libname.def'
10081 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10082 enable_shared_with_static_runtimes=yes
904dbe44
CIK
10083 ;;
10084
10085 osf3*)
2078c8a7
DJL
10086 if test yes = "$GCC"; then
10087 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10088 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'
904dbe44
CIK
10089 else
10090 allow_undefined_flag=' -expect_unresolved \*'
2078c8a7 10091 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'
904dbe44
CIK
10092 fi
10093 archive_cmds_need_lc='no'
2078c8a7 10094 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
904dbe44
CIK
10095 hardcode_libdir_separator=:
10096 ;;
10097
10098 osf4* | osf5*) # as osf3* with the addition of -msym flag
2078c8a7
DJL
10099 if test yes = "$GCC"; then
10100 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10101 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'
10102 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
904dbe44
CIK
10103 else
10104 allow_undefined_flag=' -expect_unresolved \*'
2078c8a7 10105 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'
904dbe44 10106 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~
2078c8a7 10107 $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'
904dbe44
CIK
10108
10109 # Both c and cxx compiler support -rpath directly
10110 hardcode_libdir_flag_spec='-rpath $libdir'
10111 fi
10112 archive_cmds_need_lc='no'
10113 hardcode_libdir_separator=:
10114 ;;
10115
10116 solaris*)
10117 no_undefined_flag=' -z defs'
2078c8a7
DJL
10118 if test yes = "$GCC"; then
10119 wlarc='$wl'
10120 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
904dbe44 10121 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
2078c8a7 10122 $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'
904dbe44
CIK
10123 else
10124 case `$CC -V 2>&1` in
10125 *"Compilers 5.0"*)
10126 wlarc=''
2078c8a7 10127 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
904dbe44 10128 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
2078c8a7 10129 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
904dbe44
CIK
10130 ;;
10131 *)
2078c8a7
DJL
10132 wlarc='$wl'
10133 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
904dbe44 10134 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
2078c8a7 10135 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
904dbe44
CIK
10136 ;;
10137 esac
10138 fi
10139 hardcode_libdir_flag_spec='-R$libdir'
10140 hardcode_shlibpath_var=no
10141 case $host_os in
10142 solaris2.[0-5] | solaris2.[0-5].*) ;;
10143 *)
10144 # The compiler driver will combine and reorder linker options,
2078c8a7 10145 # but understands '-z linker_flag'. GCC discards it without '$wl',
904dbe44
CIK
10146 # but is careful enough not to reorder.
10147 # Supported since Solaris 2.6 (maybe 2.5.1?)
2078c8a7
DJL
10148 if test yes = "$GCC"; then
10149 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
904dbe44
CIK
10150 else
10151 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10152 fi
10153 ;;
10154 esac
10155 link_all_deplibs=yes
10156 ;;
10157
10158 sunos4*)
2078c8a7 10159 if test sequent = "$host_vendor"; then
904dbe44
CIK
10160 # Use $CC to link under sequent, because it throws in some extra .o
10161 # files that make .init and .fini sections work.
2078c8a7 10162 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
904dbe44
CIK
10163 else
10164 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10165 fi
10166 hardcode_libdir_flag_spec='-L$libdir'
10167 hardcode_direct=yes
10168 hardcode_minus_L=yes
10169 hardcode_shlibpath_var=no
10170 ;;
10171
10172 sysv4)
10173 case $host_vendor in
10174 sni)
10175 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10176 hardcode_direct=yes # is this really true???
10177 ;;
10178 siemens)
10179 ## LD is ld it makes a PLAMLIB
10180 ## CC just makes a GrossModule.
10181 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10182 reload_cmds='$CC -r -o $output$reload_objs'
10183 hardcode_direct=no
10184 ;;
10185 motorola)
10186 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10187 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10188 ;;
10189 esac
10190 runpath_var='LD_RUN_PATH'
10191 hardcode_shlibpath_var=no
10192 ;;
10193
10194 sysv4.3*)
10195 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10196 hardcode_shlibpath_var=no
10197 export_dynamic_flag_spec='-Bexport'
10198 ;;
10199
10200 sysv4*MP*)
10201 if test -d /usr/nec; then
10202 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10203 hardcode_shlibpath_var=no
10204 runpath_var=LD_RUN_PATH
10205 hardcode_runpath_var=yes
10206 ld_shlibs=yes
10207 fi
10208 ;;
10209
10210 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
2078c8a7 10211 no_undefined_flag='$wl-z,text'
904dbe44
CIK
10212 archive_cmds_need_lc=no
10213 hardcode_shlibpath_var=no
10214 runpath_var='LD_RUN_PATH'
10215
2078c8a7
DJL
10216 if test yes = "$GCC"; then
10217 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10218 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
904dbe44 10219 else
2078c8a7
DJL
10220 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10221 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
904dbe44
CIK
10222 fi
10223 ;;
10224
10225 sysv5* | sco3.2v5* | sco5v6*)
2078c8a7 10226 # Note: We CANNOT use -z defs as we might desire, because we do not
904dbe44
CIK
10227 # link with -lc, and that would cause any symbols used from libc to
10228 # always be unresolved, which means just about no library would
10229 # ever link correctly. If we're not using GNU ld we use -z text
10230 # though, which does catch some bad symbols but isn't as heavy-handed
10231 # as -z defs.
2078c8a7
DJL
10232 no_undefined_flag='$wl-z,text'
10233 allow_undefined_flag='$wl-z,nodefs'
904dbe44
CIK
10234 archive_cmds_need_lc=no
10235 hardcode_shlibpath_var=no
2078c8a7 10236 hardcode_libdir_flag_spec='$wl-R,$libdir'
904dbe44
CIK
10237 hardcode_libdir_separator=':'
10238 link_all_deplibs=yes
2078c8a7 10239 export_dynamic_flag_spec='$wl-Bexport'
904dbe44
CIK
10240 runpath_var='LD_RUN_PATH'
10241
2078c8a7
DJL
10242 if test yes = "$GCC"; then
10243 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10244 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
904dbe44 10245 else
2078c8a7
DJL
10246 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10247 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
904dbe44
CIK
10248 fi
10249 ;;
10250
10251 uts4*)
10252 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10253 hardcode_libdir_flag_spec='-L$libdir'
10254 hardcode_shlibpath_var=no
10255 ;;
10256
10257 *)
10258 ld_shlibs=no
10259 ;;
10260 esac
10261
2078c8a7 10262 if test sni = "$host_vendor"; then
904dbe44
CIK
10263 case $host in
10264 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2078c8a7 10265 export_dynamic_flag_spec='$wl-Blargedynsym'
904dbe44
CIK
10266 ;;
10267 esac
10268 fi
10269 fi
10270
10271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10272$as_echo "$ld_shlibs" >&6; }
2078c8a7 10273test no = "$ld_shlibs" && can_build_shared=no
904dbe44
CIK
10274
10275with_gnu_ld=$with_gnu_ld
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291#
10292# Do we need to explicitly link libc?
10293#
10294case "x$archive_cmds_need_lc" in
10295x|xyes)
10296 # Assume -lc should be added
10297 archive_cmds_need_lc=yes
10298
2078c8a7 10299 if test yes,yes = "$GCC,$enable_shared"; then
904dbe44
CIK
10300 case $archive_cmds in
10301 *'~'*)
10302 # FIXME: we may have to deal with multi-command sequences.
10303 ;;
10304 '$CC '*)
10305 # Test whether the compiler implicitly links with -lc since on some
10306 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10307 # to ld, don't add -lc before -lgcc.
10308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10309$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10310if ${lt_cv_archive_cmds_need_lc+:} false; then :
10311 $as_echo_n "(cached) " >&6
10312else
10313 $RM conftest*
10314 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10315
10316 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10317 (eval $ac_compile) 2>&5
10318 ac_status=$?
10319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10320 test $ac_status = 0; } 2>conftest.err; then
10321 soname=conftest
10322 lib=conftest
10323 libobjs=conftest.$ac_objext
10324 deplibs=
10325 wl=$lt_prog_compiler_wl
10326 pic_flag=$lt_prog_compiler_pic
10327 compiler_flags=-v
10328 linker_flags=-v
10329 verstring=
10330 output_objdir=.
10331 libname=conftest
10332 lt_save_allow_undefined_flag=$allow_undefined_flag
10333 allow_undefined_flag=
10334 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10335 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10336 ac_status=$?
10337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10338 test $ac_status = 0; }
10339 then
10340 lt_cv_archive_cmds_need_lc=no
10341 else
10342 lt_cv_archive_cmds_need_lc=yes
10343 fi
10344 allow_undefined_flag=$lt_save_allow_undefined_flag
10345 else
10346 cat conftest.err 1>&5
10347 fi
10348 $RM conftest*
10349
10350fi
10351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10352$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10353 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10354 ;;
10355 esac
10356 fi
10357 ;;
10358esac
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10512$as_echo_n "checking dynamic linker characteristics... " >&6; }
10513
2078c8a7 10514if test yes = "$GCC"; then
904dbe44 10515 case $host_os in
2078c8a7
DJL
10516 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10517 *) lt_awk_arg='/^libraries:/' ;;
904dbe44
CIK
10518 esac
10519 case $host_os in
2078c8a7
DJL
10520 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10521 *) lt_sed_strip_eq='s|=/|/|g' ;;
904dbe44
CIK
10522 esac
10523 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10524 case $lt_search_path_spec in
10525 *\;*)
10526 # if the path contains ";" then we assume it to be the separator
10527 # otherwise default to the standard path separator (i.e. ":") - it is
10528 # assumed that no part of a normal pathname contains ";" but that should
10529 # okay in the real world where ";" in dirpaths is itself problematic.
10530 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10531 ;;
10532 *)
10533 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10534 ;;
10535 esac
10536 # Ok, now we have the path, separated by spaces, we can step through it
2078c8a7 10537 # and add multilib dir if necessary...
904dbe44 10538 lt_tmp_lt_search_path_spec=
2078c8a7
DJL
10539 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10540 # ...but if some path component already ends with the multilib dir we assume
10541 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10542 case "$lt_multi_os_dir; $lt_search_path_spec " in
10543 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10544 lt_multi_os_dir=
10545 ;;
10546 esac
904dbe44 10547 for lt_sys_path in $lt_search_path_spec; do
2078c8a7
DJL
10548 if test -d "$lt_sys_path$lt_multi_os_dir"; then
10549 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10550 elif test -n "$lt_multi_os_dir"; then
904dbe44
CIK
10551 test -d "$lt_sys_path" && \
10552 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10553 fi
10554 done
10555 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
2078c8a7
DJL
10556BEGIN {RS = " "; FS = "/|\n";} {
10557 lt_foo = "";
10558 lt_count = 0;
904dbe44
CIK
10559 for (lt_i = NF; lt_i > 0; lt_i--) {
10560 if ($lt_i != "" && $lt_i != ".") {
10561 if ($lt_i == "..") {
10562 lt_count++;
10563 } else {
10564 if (lt_count == 0) {
2078c8a7 10565 lt_foo = "/" $lt_i lt_foo;
904dbe44
CIK
10566 } else {
10567 lt_count--;
10568 }
10569 }
10570 }
10571 }
10572 if (lt_foo != "") { lt_freq[lt_foo]++; }
10573 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10574}'`
10575 # AWK program above erroneously prepends '/' to C:/dos/paths
10576 # for these hosts.
10577 case $host_os in
10578 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
2078c8a7 10579 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
904dbe44
CIK
10580 esac
10581 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10582else
10583 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10584fi
10585library_names_spec=
10586libname_spec='lib$name'
10587soname_spec=
2078c8a7 10588shrext_cmds=.so
904dbe44
CIK
10589postinstall_cmds=
10590postuninstall_cmds=
10591finish_cmds=
10592finish_eval=
10593shlibpath_var=
10594shlibpath_overrides_runpath=unknown
10595version_type=none
10596dynamic_linker="$host_os ld.so"
10597sys_lib_dlsearch_path_spec="/lib /usr/lib"
10598need_lib_prefix=unknown
10599hardcode_into_libs=no
10600
10601# when you set need_version to no, make sure it does not cause -set_version
10602# flags to be left without arguments
10603need_version=unknown
10604
2078c8a7
DJL
10605
10606
904dbe44
CIK
10607case $host_os in
10608aix3*)
10609 version_type=linux # correct to gnu/linux during the next big refactor
2078c8a7 10610 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
904dbe44
CIK
10611 shlibpath_var=LIBPATH
10612
10613 # AIX 3 has no versioning support, so we append a major version to the name.
2078c8a7 10614 soname_spec='$libname$release$shared_ext$major'
904dbe44
CIK
10615 ;;
10616
10617aix[4-9]*)
10618 version_type=linux # correct to gnu/linux during the next big refactor
10619 need_lib_prefix=no
10620 need_version=no
10621 hardcode_into_libs=yes
2078c8a7 10622 if test ia64 = "$host_cpu"; then
904dbe44 10623 # AIX 5 supports IA64
2078c8a7 10624 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
904dbe44
CIK
10625 shlibpath_var=LD_LIBRARY_PATH
10626 else
10627 # With GCC up to 2.95.x, collect2 would create an import file
10628 # for dependence libraries. The import file would start with
2078c8a7
DJL
10629 # the line '#! .'. This would cause the generated library to
10630 # depend on '.', always an invalid library. This was fixed in
904dbe44
CIK
10631 # development snapshots of GCC prior to 3.0.
10632 case $host_os in
10633 aix4 | aix4.[01] | aix4.[01].*)
10634 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10635 echo ' yes '
2078c8a7 10636 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
904dbe44
CIK
10637 :
10638 else
10639 can_build_shared=no
10640 fi
10641 ;;
10642 esac
2078c8a7
DJL
10643 # Using Import Files as archive members, it is possible to support
10644 # filename-based versioning of shared library archives on AIX. While
10645 # this would work for both with and without runtime linking, it will
10646 # prevent static linking of such archives. So we do filename-based
10647 # shared library versioning with .so extension only, which is used
10648 # when both runtime linking and shared linking is enabled.
10649 # Unfortunately, runtime linking may impact performance, so we do
10650 # not want this to be the default eventually. Also, we use the
10651 # versioned .so libs for executables only if there is the -brtl
10652 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10653 # To allow for filename-based versioning support, we need to create
10654 # libNAME.so.V as an archive file, containing:
10655 # *) an Import File, referring to the versioned filename of the
10656 # archive as well as the shared archive member, telling the
10657 # bitwidth (32 or 64) of that shared object, and providing the
10658 # list of exported symbols of that shared object, eventually
10659 # decorated with the 'weak' keyword
10660 # *) the shared object with the F_LOADONLY flag set, to really avoid
10661 # it being seen by the linker.
10662 # At run time we better use the real file rather than another symlink,
10663 # but for link time we create the symlink libNAME.so -> libNAME.so.V
10664
10665 case $with_aix_soname,$aix_use_runtimelinking in
10666 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
904dbe44
CIK
10667 # soname into executable. Probably we can add versioning support to
10668 # collect2, so additional links can be useful in future.
2078c8a7
DJL
10669 aix,yes) # traditional libtool
10670 dynamic_linker='AIX unversionable lib.so'
904dbe44
CIK
10671 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10672 # instead of lib<name>.a to let people know that these are not
10673 # typical AIX shared libraries.
2078c8a7
DJL
10674 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10675 ;;
10676 aix,no) # traditional AIX only
10677 dynamic_linker='AIX lib.a(lib.so.V)'
904dbe44
CIK
10678 # We preserve .a as extension for shared libraries through AIX4.2
10679 # and later when we are not doing run time linking.
2078c8a7
DJL
10680 library_names_spec='$libname$release.a $libname.a'
10681 soname_spec='$libname$release$shared_ext$major'
10682 ;;
10683 svr4,*) # full svr4 only
10684 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10685 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10686 # We do not specify a path in Import Files, so LIBPATH fires.
10687 shlibpath_overrides_runpath=yes
10688 ;;
10689 *,yes) # both, prefer svr4
10690 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10691 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10692 # unpreferred sharedlib libNAME.a needs extra handling
10693 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
10694 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
10695 # We do not specify a path in Import Files, so LIBPATH fires.
10696 shlibpath_overrides_runpath=yes
10697 ;;
10698 *,no) # both, prefer aix
10699 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10700 library_names_spec='$libname$release.a $libname.a'
10701 soname_spec='$libname$release$shared_ext$major'
10702 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10703 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
10704 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
10705 ;;
10706 esac
904dbe44
CIK
10707 shlibpath_var=LIBPATH
10708 fi
10709 ;;
10710
10711amigaos*)
10712 case $host_cpu in
10713 powerpc)
10714 # Since July 2007 AmigaOS4 officially supports .so libraries.
10715 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
2078c8a7 10716 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
904dbe44
CIK
10717 ;;
10718 m68k)
10719 library_names_spec='$libname.ixlibrary $libname.a'
10720 # Create ${libname}_ixlibrary.a entries in /sys/libs.
2078c8a7 10721 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
904dbe44
CIK
10722 ;;
10723 esac
10724 ;;
10725
10726beos*)
2078c8a7 10727 library_names_spec='$libname$shared_ext'
904dbe44
CIK
10728 dynamic_linker="$host_os ld.so"
10729 shlibpath_var=LIBRARY_PATH
10730 ;;
10731
10732bsdi[45]*)
10733 version_type=linux # correct to gnu/linux during the next big refactor
10734 need_version=no
2078c8a7
DJL
10735 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10736 soname_spec='$libname$release$shared_ext$major'
904dbe44
CIK
10737 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10738 shlibpath_var=LD_LIBRARY_PATH
10739 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10740 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10741 # the default ld.so.conf also contains /usr/contrib/lib and
10742 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10743 # libtool to hard-code these into programs
10744 ;;
10745
10746cygwin* | mingw* | pw32* | cegcc*)
10747 version_type=windows
2078c8a7 10748 shrext_cmds=.dll
904dbe44
CIK
10749 need_version=no
10750 need_lib_prefix=no
10751
10752 case $GCC,$cc_basename in
10753 yes,*)
10754 # gcc
10755 library_names_spec='$libname.dll.a'
10756 # DLL is installed to $(libdir)/../bin by postinstall_cmds
2078c8a7
DJL
10757 postinstall_cmds='base_file=`basename \$file`~
10758 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
904dbe44
CIK
10759 dldir=$destdir/`dirname \$dlpath`~
10760 test -d \$dldir || mkdir -p \$dldir~
10761 $install_prog $dir/$dlname \$dldir/$dlname~
10762 chmod a+x \$dldir/$dlname~
10763 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10764 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10765 fi'
10766 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10767 dlpath=$dir/\$dldll~
10768 $RM \$dlpath'
10769 shlibpath_overrides_runpath=yes
10770
10771 case $host_os in
10772 cygwin*)
10773 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
2078c8a7 10774 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
904dbe44
CIK
10775
10776 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10777 ;;
10778 mingw* | cegcc*)
10779 # MinGW DLLs use traditional 'lib' prefix
2078c8a7 10780 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
904dbe44
CIK
10781 ;;
10782 pw32*)
10783 # pw32 DLLs use 'pw' prefix rather than 'lib'
2078c8a7 10784 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
904dbe44
CIK
10785 ;;
10786 esac
10787 dynamic_linker='Win32 ld.exe'
10788 ;;
10789
10790 *,cl*)
10791 # Native MSVC
10792 libname_spec='$name'
2078c8a7
DJL
10793 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10794 library_names_spec='$libname.dll.lib'
904dbe44
CIK
10795
10796 case $build_os in
10797 mingw*)
10798 sys_lib_search_path_spec=
10799 lt_save_ifs=$IFS
10800 IFS=';'
10801 for lt_path in $LIB
10802 do
10803 IFS=$lt_save_ifs
10804 # Let DOS variable expansion print the short 8.3 style file name.
10805 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10806 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10807 done
10808 IFS=$lt_save_ifs
10809 # Convert to MSYS style.
10810 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10811 ;;
10812 cygwin*)
10813 # Convert to unix form, then to dos form, then back to unix form
10814 # but this time dos style (no spaces!) so that the unix form looks
10815 # like /cygdrive/c/PROGRA~1:/cygdr...
10816 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10817 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10818 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10819 ;;
10820 *)
2078c8a7 10821 sys_lib_search_path_spec=$LIB
904dbe44
CIK
10822 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10823 # It is most probably a Windows format PATH.
10824 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10825 else
10826 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10827 fi
10828 # FIXME: find the short name or the path components, as spaces are
10829 # common. (e.g. "Program Files" -> "PROGRA~1")
10830 ;;
10831 esac
10832
10833 # DLL is installed to $(libdir)/../bin by postinstall_cmds
2078c8a7
DJL
10834 postinstall_cmds='base_file=`basename \$file`~
10835 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
904dbe44
CIK
10836 dldir=$destdir/`dirname \$dlpath`~
10837 test -d \$dldir || mkdir -p \$dldir~
10838 $install_prog $dir/$dlname \$dldir/$dlname'
10839 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10840 dlpath=$dir/\$dldll~
10841 $RM \$dlpath'
10842 shlibpath_overrides_runpath=yes
10843 dynamic_linker='Win32 link.exe'
10844 ;;
10845
10846 *)
10847 # Assume MSVC wrapper
2078c8a7 10848 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
904dbe44
CIK
10849 dynamic_linker='Win32 ld.exe'
10850 ;;
10851 esac
10852 # FIXME: first we should search . and the directory the executable is in
10853 shlibpath_var=PATH
10854 ;;
10855
10856darwin* | rhapsody*)
10857 dynamic_linker="$host_os dyld"
10858 version_type=darwin
10859 need_lib_prefix=no
10860 need_version=no
2078c8a7
DJL
10861 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
10862 soname_spec='$libname$release$major$shared_ext'
904dbe44
CIK
10863 shlibpath_overrides_runpath=yes
10864 shlibpath_var=DYLD_LIBRARY_PATH
10865 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10866
10867 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10868 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10869 ;;
10870
10871dgux*)
10872 version_type=linux # correct to gnu/linux during the next big refactor
10873 need_lib_prefix=no
10874 need_version=no
2078c8a7
DJL
10875 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10876 soname_spec='$libname$release$shared_ext$major'
904dbe44
CIK
10877 shlibpath_var=LD_LIBRARY_PATH
10878 ;;
10879
10880freebsd* | dragonfly*)
10881 # DragonFly does not have aout. When/if they implement a new
10882 # versioning mechanism, adjust this.
10883 if test -x /usr/bin/objformat; then
10884 objformat=`/usr/bin/objformat`
10885 else
10886 case $host_os in
10887 freebsd[23].*) objformat=aout ;;
10888 *) objformat=elf ;;
10889 esac
10890 fi
10891 version_type=freebsd-$objformat
10892 case $version_type in
10893 freebsd-elf*)
2078c8a7
DJL
10894 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10895 soname_spec='$libname$release$shared_ext$major'
904dbe44
CIK
10896 need_version=no
10897 need_lib_prefix=no
10898 ;;
10899 freebsd-*)
2078c8a7 10900 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
904dbe44
CIK
10901 need_version=yes
10902 ;;
10903 esac
10904 shlibpath_var=LD_LIBRARY_PATH
10905 case $host_os in
10906 freebsd2.*)
10907 shlibpath_overrides_runpath=yes
10908 ;;
10909 freebsd3.[01]* | freebsdelf3.[01]*)
10910 shlibpath_overrides_runpath=yes
10911 hardcode_into_libs=yes
10912 ;;
10913 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10914 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10915 shlibpath_overrides_runpath=no
10916 hardcode_into_libs=yes
10917 ;;
10918 *) # from 4.6 on, and DragonFly
10919 shlibpath_overrides_runpath=yes
10920 hardcode_into_libs=yes
10921 ;;
10922 esac
10923 ;;
10924
10925haiku*)
10926 version_type=linux # correct to gnu/linux during the next big refactor
10927 need_lib_prefix=no
10928 need_version=no
10929 dynamic_linker="$host_os runtime_loader"
2078c8a7
DJL
10930 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10931 soname_spec='$libname$release$shared_ext$major'
904dbe44 10932 shlibpath_var=LIBRARY_PATH
2078c8a7 10933 shlibpath_overrides_runpath=no
904dbe44
CIK
10934 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10935 hardcode_into_libs=yes
10936 ;;
10937
10938hpux9* | hpux10* | hpux11*)
10939 # Give a soname corresponding to the major version so that dld.sl refuses to
10940 # link against other versions.
10941 version_type=sunos
10942 need_lib_prefix=no
10943 need_version=no
10944 case $host_cpu in
10945 ia64*)
10946 shrext_cmds='.so'
10947 hardcode_into_libs=yes
10948 dynamic_linker="$host_os dld.so"
10949 shlibpath_var=LD_LIBRARY_PATH
10950 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2078c8a7
DJL
10951 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10952 soname_spec='$libname$release$shared_ext$major'
10953 if test 32 = "$HPUX_IA64_MODE"; then
904dbe44 10954 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
2078c8a7 10955 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
904dbe44
CIK
10956 else
10957 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
2078c8a7 10958 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
904dbe44 10959 fi
904dbe44
CIK
10960 ;;
10961 hppa*64*)
10962 shrext_cmds='.sl'
10963 hardcode_into_libs=yes
10964 dynamic_linker="$host_os dld.sl"
10965 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10966 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2078c8a7
DJL
10967 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10968 soname_spec='$libname$release$shared_ext$major'
904dbe44
CIK
10969 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10970 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10971 ;;
10972 *)
10973 shrext_cmds='.sl'
10974 dynamic_linker="$host_os dld.sl"
10975 shlibpath_var=SHLIB_PATH
10976 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
2078c8a7
DJL
10977 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10978 soname_spec='$libname$release$shared_ext$major'
904dbe44
CIK
10979 ;;
10980 esac
10981 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10982 postinstall_cmds='chmod 555 $lib'
10983 # or fails outright, so override atomically:
10984 install_override_mode=555
10985 ;;
10986
10987interix[3-9]*)
10988 version_type=linux # correct to gnu/linux during the next big refactor
10989 need_lib_prefix=no
10990 need_version=no
2078c8a7
DJL
10991 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10992 soname_spec='$libname$release$shared_ext$major'
904dbe44
CIK
10993 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10994 shlibpath_var=LD_LIBRARY_PATH
10995 shlibpath_overrides_runpath=no
10996 hardcode_into_libs=yes
10997 ;;
10998
10999irix5* | irix6* | nonstopux*)
11000 case $host_os in
11001 nonstopux*) version_type=nonstopux ;;
11002 *)
2078c8a7 11003 if test yes = "$lt_cv_prog_gnu_ld"; then
904dbe44
CIK
11004 version_type=linux # correct to gnu/linux during the next big refactor
11005 else
11006 version_type=irix
11007 fi ;;
11008 esac
11009 need_lib_prefix=no
11010 need_version=no
2078c8a7
DJL
11011 soname_spec='$libname$release$shared_ext$major'
11012 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
904dbe44
CIK
11013 case $host_os in
11014 irix5* | nonstopux*)
11015 libsuff= shlibsuff=
11016 ;;
11017 *)
11018 case $LD in # libtool.m4 will add one of these switches to LD
11019 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11020 libsuff= shlibsuff= libmagic=32-bit;;
11021 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11022 libsuff=32 shlibsuff=N32 libmagic=N32;;
11023 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11024 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11025 *) libsuff= shlibsuff= libmagic=never-match;;
11026 esac
11027 ;;
11028 esac
11029 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11030 shlibpath_overrides_runpath=no
2078c8a7
DJL
11031 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11032 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
904dbe44
CIK
11033 hardcode_into_libs=yes
11034 ;;
11035
11036# No shared lib support for Linux oldld, aout, or coff.
11037linux*oldld* | linux*aout* | linux*coff*)
11038 dynamic_linker=no
11039 ;;
11040
2078c8a7
DJL
11041linux*android*)
11042 version_type=none # Android doesn't support versioned libraries.
11043 need_lib_prefix=no
11044 need_version=no
11045 library_names_spec='$libname$release$shared_ext'
11046 soname_spec='$libname$release$shared_ext'
11047 finish_cmds=
11048 shlibpath_var=LD_LIBRARY_PATH
11049 shlibpath_overrides_runpath=yes
11050
11051 # This implies no fast_install, which is unacceptable.
11052 # Some rework will be needed to allow for fast_install
11053 # before this can be enabled.
11054 hardcode_into_libs=yes
11055
11056 dynamic_linker='Android linker'
11057 # Don't embed -rpath directories since the linker doesn't support them.
11058 hardcode_libdir_flag_spec='-L$libdir'
11059 ;;
11060
904dbe44
CIK
11061# This must be glibc/ELF.
11062linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11063 version_type=linux # correct to gnu/linux during the next big refactor
11064 need_lib_prefix=no
11065 need_version=no
2078c8a7
DJL
11066 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11067 soname_spec='$libname$release$shared_ext$major'
904dbe44
CIK
11068 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11069 shlibpath_var=LD_LIBRARY_PATH
11070 shlibpath_overrides_runpath=no
11071
11072 # Some binutils ld are patched to set DT_RUNPATH
11073 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11074 $as_echo_n "(cached) " >&6
11075else
11076 lt_cv_shlibpath_overrides_runpath=no
11077 save_LDFLAGS=$LDFLAGS
11078 save_libdir=$libdir
11079 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11080 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11082/* end confdefs.h. */
11083
11084int
11085main ()
11086{
11087
11088 ;
11089 return 0;
11090}
11091_ACEOF
11092if ac_fn_c_try_link "$LINENO"; then :
11093 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11094 lt_cv_shlibpath_overrides_runpath=yes
11095fi
11096fi
11097rm -f core conftest.err conftest.$ac_objext \
11098 conftest$ac_exeext conftest.$ac_ext
11099 LDFLAGS=$save_LDFLAGS
11100 libdir=$save_libdir
11101
11102fi
11103
11104 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11105
11106 # This implies no fast_install, which is unacceptable.
11107 # Some rework will be needed to allow for fast_install
11108 # before this can be enabled.
11109 hardcode_into_libs=yes
11110
2078c8a7
DJL
11111 # Ideally, we could use ldconfig to report *all* directores which are
11112 # searched for libraries, however this is still not possible. Aside from not
11113 # being certain /sbin/ldconfig is available, command
11114 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11115 # even though it is searched at run-time. Try to do the best guess by
11116 # appending ld.so.conf contents (and includes) to the search path.
904dbe44
CIK
11117 if test -f /etc/ld.so.conf; then
11118 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' ' '`
11119 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11120 fi
11121
11122 # We used to test for /lib/ld.so.1 and disable shared libraries on
11123 # powerpc, because MkLinux only supported shared libraries with the
11124 # GNU dynamic linker. Since this was broken with cross compilers,
11125 # most powerpc-linux boxes support dynamic linking these days and
11126 # people can always --disable-shared, the test was removed, and we
11127 # assume the GNU/Linux dynamic linker is in use.
11128 dynamic_linker='GNU/Linux ld.so'
11129 ;;
11130
11131netbsdelf*-gnu)
11132 version_type=linux
11133 need_lib_prefix=no
11134 need_version=no
11135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11136 soname_spec='${libname}${release}${shared_ext}$major'
11137 shlibpath_var=LD_LIBRARY_PATH
11138 shlibpath_overrides_runpath=no
11139 hardcode_into_libs=yes
11140 dynamic_linker='NetBSD ld.elf_so'
11141 ;;
11142
11143netbsd*)
11144 version_type=sunos
11145 need_lib_prefix=no
11146 need_version=no
11147 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
2078c8a7 11148 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
904dbe44
CIK
11149 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11150 dynamic_linker='NetBSD (a.out) ld.so'
11151 else
2078c8a7
DJL
11152 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11153 soname_spec='$libname$release$shared_ext$major'
904dbe44
CIK
11154 dynamic_linker='NetBSD ld.elf_so'
11155 fi
11156 shlibpath_var=LD_LIBRARY_PATH
11157 shlibpath_overrides_runpath=yes
11158 hardcode_into_libs=yes
11159 ;;
11160
11161newsos6)
11162 version_type=linux # correct to gnu/linux during the next big refactor
2078c8a7 11163 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
904dbe44
CIK
11164 shlibpath_var=LD_LIBRARY_PATH
11165 shlibpath_overrides_runpath=yes
11166 ;;
11167
11168*nto* | *qnx*)
11169 version_type=qnx
11170 need_lib_prefix=no
11171 need_version=no
2078c8a7
DJL
11172 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11173 soname_spec='$libname$release$shared_ext$major'
904dbe44
CIK
11174 shlibpath_var=LD_LIBRARY_PATH
11175 shlibpath_overrides_runpath=no
11176 hardcode_into_libs=yes
11177 dynamic_linker='ldqnx.so'
11178 ;;
11179
2078c8a7 11180openbsd* | bitrig*)
904dbe44 11181 version_type=sunos
2078c8a7 11182 sys_lib_dlsearch_path_spec=/usr/lib
904dbe44 11183 need_lib_prefix=no
2078c8a7
DJL
11184 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11185 need_version=no
904dbe44 11186 else
2078c8a7 11187 need_version=yes
904dbe44 11188 fi
2078c8a7
DJL
11189 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11190 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11191 shlibpath_var=LD_LIBRARY_PATH
11192 shlibpath_overrides_runpath=yes
904dbe44
CIK
11193 ;;
11194
11195os2*)
11196 libname_spec='$name'
2078c8a7
DJL
11197 version_type=windows
11198 shrext_cmds=.dll
11199 need_version=no
904dbe44 11200 need_lib_prefix=no
2078c8a7
DJL
11201 # OS/2 can only load a DLL with a base name of 8 characters or less.
11202 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11203 v=$($ECHO $release$versuffix | tr -d .-);
11204 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11205 $ECHO $n$v`$shared_ext'
11206 library_names_spec='${libname}_dll.$libext'
904dbe44 11207 dynamic_linker='OS/2 ld.exe'
2078c8a7
DJL
11208 shlibpath_var=BEGINLIBPATH
11209 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11210 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11211 postinstall_cmds='base_file=`basename \$file`~
11212 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11213 dldir=$destdir/`dirname \$dlpath`~
11214 test -d \$dldir || mkdir -p \$dldir~
11215 $install_prog $dir/$dlname \$dldir/$dlname~
11216 chmod a+x \$dldir/$dlname~
11217 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11218 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11219 fi'
11220 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11221 dlpath=$dir/\$dldll~
11222 $RM \$dlpath'
904dbe44
CIK
11223 ;;
11224
11225osf3* | osf4* | osf5*)
11226 version_type=osf
11227 need_lib_prefix=no
11228 need_version=no
2078c8a7
DJL
11229 soname_spec='$libname$release$shared_ext$major'
11230 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
904dbe44
CIK
11231 shlibpath_var=LD_LIBRARY_PATH
11232 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
2078c8a7 11233 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
904dbe44
CIK
11234 ;;
11235
11236rdos*)
11237 dynamic_linker=no
11238 ;;
11239
11240solaris*)
11241 version_type=linux # correct to gnu/linux during the next big refactor
11242 need_lib_prefix=no
11243 need_version=no
2078c8a7
DJL
11244 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11245 soname_spec='$libname$release$shared_ext$major'
904dbe44
CIK
11246 shlibpath_var=LD_LIBRARY_PATH
11247 shlibpath_overrides_runpath=yes
11248 hardcode_into_libs=yes
11249 # ldd complains unless libraries are executable
11250 postinstall_cmds='chmod +x $lib'
11251 ;;
11252
11253sunos4*)
11254 version_type=sunos
2078c8a7 11255 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
904dbe44
CIK
11256 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11257 shlibpath_var=LD_LIBRARY_PATH
11258 shlibpath_overrides_runpath=yes
2078c8a7 11259 if test yes = "$with_gnu_ld"; then
904dbe44
CIK
11260 need_lib_prefix=no
11261 fi
11262 need_version=yes
11263 ;;
11264
11265sysv4 | sysv4.3*)
11266 version_type=linux # correct to gnu/linux during the next big refactor
2078c8a7
DJL
11267 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11268 soname_spec='$libname$release$shared_ext$major'
904dbe44
CIK
11269 shlibpath_var=LD_LIBRARY_PATH
11270 case $host_vendor in
11271 sni)
11272 shlibpath_overrides_runpath=no
11273 need_lib_prefix=no
11274 runpath_var=LD_RUN_PATH
11275 ;;
11276 siemens)
11277 need_lib_prefix=no
11278 ;;
11279 motorola)
11280 need_lib_prefix=no
11281 need_version=no
11282 shlibpath_overrides_runpath=no
11283 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11284 ;;
11285 esac
11286 ;;
11287
11288sysv4*MP*)
2078c8a7 11289 if test -d /usr/nec; then
904dbe44 11290 version_type=linux # correct to gnu/linux during the next big refactor
2078c8a7
DJL
11291 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11292 soname_spec='$libname$shared_ext.$major'
904dbe44
CIK
11293 shlibpath_var=LD_LIBRARY_PATH
11294 fi
11295 ;;
11296
11297sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
2078c8a7 11298 version_type=sco
904dbe44
CIK
11299 need_lib_prefix=no
11300 need_version=no
2078c8a7
DJL
11301 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11302 soname_spec='$libname$release$shared_ext$major'
904dbe44
CIK
11303 shlibpath_var=LD_LIBRARY_PATH
11304 shlibpath_overrides_runpath=yes
11305 hardcode_into_libs=yes
2078c8a7 11306 if test yes = "$with_gnu_ld"; then
904dbe44
CIK
11307 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11308 else
11309 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11310 case $host_os in
11311 sco3.2v5*)
11312 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11313 ;;
11314 esac
11315 fi
11316 sys_lib_dlsearch_path_spec='/usr/lib'
11317 ;;
11318
11319tpf*)
11320 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11321 version_type=linux # correct to gnu/linux during the next big refactor
11322 need_lib_prefix=no
11323 need_version=no
2078c8a7 11324 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
904dbe44
CIK
11325 shlibpath_var=LD_LIBRARY_PATH
11326 shlibpath_overrides_runpath=no
11327 hardcode_into_libs=yes
11328 ;;
11329
11330uts4*)
11331 version_type=linux # correct to gnu/linux during the next big refactor
2078c8a7
DJL
11332 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11333 soname_spec='$libname$release$shared_ext$major'
904dbe44
CIK
11334 shlibpath_var=LD_LIBRARY_PATH
11335 ;;
11336
11337*)
11338 dynamic_linker=no
11339 ;;
11340esac
11341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11342$as_echo "$dynamic_linker" >&6; }
2078c8a7 11343test no = "$dynamic_linker" && can_build_shared=no
904dbe44
CIK
11344
11345variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
2078c8a7 11346if test yes = "$GCC"; then
904dbe44
CIK
11347 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11348fi
11349
2078c8a7
DJL
11350if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11351 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
904dbe44 11352fi
2078c8a7
DJL
11353
11354if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11355 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
904dbe44
CIK
11356fi
11357
2078c8a7
DJL
11358# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11359configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11360
11361# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11362func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11363
11364# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11365configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11366
11367
11368
11369
11370
11371
904dbe44
CIK
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11464$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11465hardcode_action=
11466if test -n "$hardcode_libdir_flag_spec" ||
11467 test -n "$runpath_var" ||
2078c8a7 11468 test yes = "$hardcode_automatic"; then
904dbe44
CIK
11469
11470 # We can hardcode non-existent directories.
2078c8a7 11471 if test no != "$hardcode_direct" &&
904dbe44
CIK
11472 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11473 # have to relink, otherwise we might link with an installed library
11474 # when we should be linking with a yet-to-be-installed one
2078c8a7
DJL
11475 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11476 test no != "$hardcode_minus_L"; then
904dbe44
CIK
11477 # Linking always hardcodes the temporary library directory.
11478 hardcode_action=relink
11479 else
11480 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11481 hardcode_action=immediate
11482 fi
11483else
11484 # We cannot hardcode anything, or else we can only hardcode existing
11485 # directories.
11486 hardcode_action=unsupported
11487fi
11488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11489$as_echo "$hardcode_action" >&6; }
11490
2078c8a7
DJL
11491if test relink = "$hardcode_action" ||
11492 test yes = "$inherit_rpath"; then
904dbe44
CIK
11493 # Fast installation is not supported
11494 enable_fast_install=no
2078c8a7
DJL
11495elif test yes = "$shlibpath_overrides_runpath" ||
11496 test no = "$enable_shared"; then
904dbe44
CIK
11497 # Fast installation is not necessary
11498 enable_fast_install=needless
11499fi
11500
11501
11502
11503
11504
11505
2078c8a7 11506 if test yes != "$enable_dlopen"; then
904dbe44
CIK
11507 enable_dlopen=unknown
11508 enable_dlopen_self=unknown
11509 enable_dlopen_self_static=unknown
11510else
11511 lt_cv_dlopen=no
11512 lt_cv_dlopen_libs=
11513
11514 case $host_os in
11515 beos*)
2078c8a7 11516 lt_cv_dlopen=load_add_on
904dbe44
CIK
11517 lt_cv_dlopen_libs=
11518 lt_cv_dlopen_self=yes
11519 ;;
11520
11521 mingw* | pw32* | cegcc*)
2078c8a7 11522 lt_cv_dlopen=LoadLibrary
904dbe44
CIK
11523 lt_cv_dlopen_libs=
11524 ;;
11525
11526 cygwin*)
2078c8a7 11527 lt_cv_dlopen=dlopen
904dbe44
CIK
11528 lt_cv_dlopen_libs=
11529 ;;
11530
11531 darwin*)
2078c8a7 11532 # if libdl is installed we need to link against it
904dbe44
CIK
11533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11534$as_echo_n "checking for dlopen in -ldl... " >&6; }
11535if ${ac_cv_lib_dl_dlopen+:} false; then :
11536 $as_echo_n "(cached) " >&6
11537else
11538 ac_check_lib_save_LIBS=$LIBS
11539LIBS="-ldl $LIBS"
11540cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11541/* end confdefs.h. */
11542
11543/* Override any GCC internal prototype to avoid an error.
11544 Use char because int might match the return type of a GCC
11545 builtin and then its argument prototype would still apply. */
11546#ifdef __cplusplus
11547extern "C"
11548#endif
11549char dlopen ();
11550int
11551main ()
11552{
11553return dlopen ();
11554 ;
11555 return 0;
11556}
11557_ACEOF
11558if ac_fn_c_try_link "$LINENO"; then :
11559 ac_cv_lib_dl_dlopen=yes
11560else
11561 ac_cv_lib_dl_dlopen=no
11562fi
11563rm -f core conftest.err conftest.$ac_objext \
11564 conftest$ac_exeext conftest.$ac_ext
11565LIBS=$ac_check_lib_save_LIBS
11566fi
11567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11568$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11569if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
2078c8a7 11570 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
904dbe44
CIK
11571else
11572
2078c8a7 11573 lt_cv_dlopen=dyld
904dbe44
CIK
11574 lt_cv_dlopen_libs=
11575 lt_cv_dlopen_self=yes
11576
11577fi
11578
11579 ;;
11580
2078c8a7
DJL
11581 tpf*)
11582 # Don't try to run any link tests for TPF. We know it's impossible
11583 # because TPF is a cross-compiler, and we know how we open DSOs.
11584 lt_cv_dlopen=dlopen
11585 lt_cv_dlopen_libs=
11586 lt_cv_dlopen_self=no
11587 ;;
11588
904dbe44
CIK
11589 *)
11590 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11591if test "x$ac_cv_func_shl_load" = xyes; then :
2078c8a7 11592 lt_cv_dlopen=shl_load
904dbe44
CIK
11593else
11594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11595$as_echo_n "checking for shl_load in -ldld... " >&6; }
11596if ${ac_cv_lib_dld_shl_load+:} false; then :
11597 $as_echo_n "(cached) " >&6
11598else
11599 ac_check_lib_save_LIBS=$LIBS
11600LIBS="-ldld $LIBS"
11601cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11602/* end confdefs.h. */
11603
11604/* Override any GCC internal prototype to avoid an error.
11605 Use char because int might match the return type of a GCC
11606 builtin and then its argument prototype would still apply. */
11607#ifdef __cplusplus
11608extern "C"
11609#endif
11610char shl_load ();
11611int
11612main ()
11613{
11614return shl_load ();
11615 ;
11616 return 0;
11617}
11618_ACEOF
11619if ac_fn_c_try_link "$LINENO"; then :
11620 ac_cv_lib_dld_shl_load=yes
11621else
11622 ac_cv_lib_dld_shl_load=no
11623fi
11624rm -f core conftest.err conftest.$ac_objext \
11625 conftest$ac_exeext conftest.$ac_ext
11626LIBS=$ac_check_lib_save_LIBS
11627fi
11628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11629$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11630if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
2078c8a7 11631 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
904dbe44
CIK
11632else
11633 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11634if test "x$ac_cv_func_dlopen" = xyes; then :
2078c8a7 11635 lt_cv_dlopen=dlopen
904dbe44
CIK
11636else
11637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11638$as_echo_n "checking for dlopen in -ldl... " >&6; }
11639if ${ac_cv_lib_dl_dlopen+:} false; then :
11640 $as_echo_n "(cached) " >&6
11641else
11642 ac_check_lib_save_LIBS=$LIBS
11643LIBS="-ldl $LIBS"
11644cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11645/* end confdefs.h. */
11646
11647/* Override any GCC internal prototype to avoid an error.
11648 Use char because int might match the return type of a GCC
11649 builtin and then its argument prototype would still apply. */
11650#ifdef __cplusplus
11651extern "C"
11652#endif
11653char dlopen ();
11654int
11655main ()
11656{
11657return dlopen ();
11658 ;
11659 return 0;
11660}
11661_ACEOF
11662if ac_fn_c_try_link "$LINENO"; then :
11663 ac_cv_lib_dl_dlopen=yes
11664else
11665 ac_cv_lib_dl_dlopen=no
11666fi
11667rm -f core conftest.err conftest.$ac_objext \
11668 conftest$ac_exeext conftest.$ac_ext
11669LIBS=$ac_check_lib_save_LIBS
11670fi
11671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11672$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11673if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
2078c8a7 11674 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
904dbe44
CIK
11675else
11676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11677$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11678if ${ac_cv_lib_svld_dlopen+:} false; then :
11679 $as_echo_n "(cached) " >&6
11680else
11681 ac_check_lib_save_LIBS=$LIBS
11682LIBS="-lsvld $LIBS"
11683cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11684/* end confdefs.h. */
11685
11686/* Override any GCC internal prototype to avoid an error.
11687 Use char because int might match the return type of a GCC
11688 builtin and then its argument prototype would still apply. */
11689#ifdef __cplusplus
11690extern "C"
11691#endif
11692char dlopen ();
11693int
11694main ()
11695{
11696return dlopen ();
11697 ;
11698 return 0;
11699}
11700_ACEOF
11701if ac_fn_c_try_link "$LINENO"; then :
11702 ac_cv_lib_svld_dlopen=yes
11703else
11704 ac_cv_lib_svld_dlopen=no
11705fi
11706rm -f core conftest.err conftest.$ac_objext \
11707 conftest$ac_exeext conftest.$ac_ext
11708LIBS=$ac_check_lib_save_LIBS
11709fi
11710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11711$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11712if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
2078c8a7 11713 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
904dbe44
CIK
11714else
11715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11716$as_echo_n "checking for dld_link in -ldld... " >&6; }
11717if ${ac_cv_lib_dld_dld_link+:} false; then :
11718 $as_echo_n "(cached) " >&6
11719else
11720 ac_check_lib_save_LIBS=$LIBS
11721LIBS="-ldld $LIBS"
11722cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11723/* end confdefs.h. */
11724
11725/* Override any GCC internal prototype to avoid an error.
11726 Use char because int might match the return type of a GCC
11727 builtin and then its argument prototype would still apply. */
11728#ifdef __cplusplus
11729extern "C"
11730#endif
11731char dld_link ();
11732int
11733main ()
11734{
11735return dld_link ();
11736 ;
11737 return 0;
11738}
11739_ACEOF
11740if ac_fn_c_try_link "$LINENO"; then :
11741 ac_cv_lib_dld_dld_link=yes
11742else
11743 ac_cv_lib_dld_dld_link=no
11744fi
11745rm -f core conftest.err conftest.$ac_objext \
11746 conftest$ac_exeext conftest.$ac_ext
11747LIBS=$ac_check_lib_save_LIBS
11748fi
11749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11750$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11751if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
2078c8a7 11752 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
904dbe44
CIK
11753fi
11754
11755
11756fi
11757
11758
11759fi
11760
11761
11762fi
11763
11764
11765fi
11766
11767
11768fi
11769
11770 ;;
11771 esac
11772
2078c8a7 11773 if test no = "$lt_cv_dlopen"; then
904dbe44 11774 enable_dlopen=no
2078c8a7
DJL
11775 else
11776 enable_dlopen=yes
904dbe44
CIK
11777 fi
11778
11779 case $lt_cv_dlopen in
11780 dlopen)
2078c8a7
DJL
11781 save_CPPFLAGS=$CPPFLAGS
11782 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
904dbe44 11783
2078c8a7 11784 save_LDFLAGS=$LDFLAGS
904dbe44
CIK
11785 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11786
2078c8a7 11787 save_LIBS=$LIBS
904dbe44
CIK
11788 LIBS="$lt_cv_dlopen_libs $LIBS"
11789
11790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11791$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11792if ${lt_cv_dlopen_self+:} false; then :
11793 $as_echo_n "(cached) " >&6
11794else
2078c8a7 11795 if test yes = "$cross_compiling"; then :
904dbe44
CIK
11796 lt_cv_dlopen_self=cross
11797else
11798 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11799 lt_status=$lt_dlunknown
11800 cat > conftest.$ac_ext <<_LT_EOF
11801#line $LINENO "configure"
11802#include "confdefs.h"
11803
11804#if HAVE_DLFCN_H
11805#include <dlfcn.h>
11806#endif
11807
11808#include <stdio.h>
11809
11810#ifdef RTLD_GLOBAL
11811# define LT_DLGLOBAL RTLD_GLOBAL
11812#else
11813# ifdef DL_GLOBAL
11814# define LT_DLGLOBAL DL_GLOBAL
11815# else
11816# define LT_DLGLOBAL 0
11817# endif
11818#endif
11819
11820/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11821 find out it does not work in some platform. */
11822#ifndef LT_DLLAZY_OR_NOW
11823# ifdef RTLD_LAZY
11824# define LT_DLLAZY_OR_NOW RTLD_LAZY
11825# else
11826# ifdef DL_LAZY
11827# define LT_DLLAZY_OR_NOW DL_LAZY
11828# else
11829# ifdef RTLD_NOW
11830# define LT_DLLAZY_OR_NOW RTLD_NOW
11831# else
11832# ifdef DL_NOW
11833# define LT_DLLAZY_OR_NOW DL_NOW
11834# else
11835# define LT_DLLAZY_OR_NOW 0
11836# endif
11837# endif
11838# endif
11839# endif
11840#endif
11841
2078c8a7 11842/* When -fvisibility=hidden is used, assume the code has been annotated
904dbe44 11843 correspondingly for the symbols needed. */
2078c8a7 11844#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
904dbe44
CIK
11845int fnord () __attribute__((visibility("default")));
11846#endif
11847
11848int fnord () { return 42; }
11849int main ()
11850{
11851 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11852 int status = $lt_dlunknown;
11853
11854 if (self)
11855 {
11856 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11857 else
11858 {
11859 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11860 else puts (dlerror ());
11861 }
11862 /* dlclose (self); */
11863 }
11864 else
11865 puts (dlerror ());
11866
11867 return status;
11868}
11869_LT_EOF
11870 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11871 (eval $ac_link) 2>&5
11872 ac_status=$?
11873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2078c8a7 11874 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
904dbe44
CIK
11875 (./conftest; exit; ) >&5 2>/dev/null
11876 lt_status=$?
11877 case x$lt_status in
11878 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11879 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11880 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11881 esac
11882 else :
11883 # compilation failed
11884 lt_cv_dlopen_self=no
11885 fi
11886fi
11887rm -fr conftest*
11888
11889
11890fi
11891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11892$as_echo "$lt_cv_dlopen_self" >&6; }
11893
2078c8a7 11894 if test yes = "$lt_cv_dlopen_self"; then
904dbe44
CIK
11895 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11897$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11898if ${lt_cv_dlopen_self_static+:} false; then :
11899 $as_echo_n "(cached) " >&6
11900else
2078c8a7 11901 if test yes = "$cross_compiling"; then :
904dbe44
CIK
11902 lt_cv_dlopen_self_static=cross
11903else
11904 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11905 lt_status=$lt_dlunknown
11906 cat > conftest.$ac_ext <<_LT_EOF
11907#line $LINENO "configure"
11908#include "confdefs.h"
11909
11910#if HAVE_DLFCN_H
11911#include <dlfcn.h>
11912#endif
11913
11914#include <stdio.h>
11915
11916#ifdef RTLD_GLOBAL
11917# define LT_DLGLOBAL RTLD_GLOBAL
11918#else
11919# ifdef DL_GLOBAL
11920# define LT_DLGLOBAL DL_GLOBAL
11921# else
11922# define LT_DLGLOBAL 0
11923# endif
11924#endif
11925
11926/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11927 find out it does not work in some platform. */
11928#ifndef LT_DLLAZY_OR_NOW
11929# ifdef RTLD_LAZY
11930# define LT_DLLAZY_OR_NOW RTLD_LAZY
11931# else
11932# ifdef DL_LAZY
11933# define LT_DLLAZY_OR_NOW DL_LAZY
11934# else
11935# ifdef RTLD_NOW
11936# define LT_DLLAZY_OR_NOW RTLD_NOW
11937# else
11938# ifdef DL_NOW
11939# define LT_DLLAZY_OR_NOW DL_NOW
11940# else
11941# define LT_DLLAZY_OR_NOW 0
11942# endif
11943# endif
11944# endif
11945# endif
11946#endif
11947
2078c8a7 11948/* When -fvisibility=hidden is used, assume the code has been annotated
904dbe44 11949 correspondingly for the symbols needed. */
2078c8a7 11950#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
904dbe44
CIK
11951int fnord () __attribute__((visibility("default")));
11952#endif
11953
11954int fnord () { return 42; }
11955int main ()
11956{
11957 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11958 int status = $lt_dlunknown;
11959
11960 if (self)
11961 {
11962 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11963 else
11964 {
11965 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11966 else puts (dlerror ());
11967 }
11968 /* dlclose (self); */
11969 }
11970 else
11971 puts (dlerror ());
11972
11973 return status;
11974}
11975_LT_EOF
11976 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11977 (eval $ac_link) 2>&5
11978 ac_status=$?
11979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2078c8a7 11980 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
904dbe44
CIK
11981 (./conftest; exit; ) >&5 2>/dev/null
11982 lt_status=$?
11983 case x$lt_status in
11984 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11985 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11986 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11987 esac
11988 else :
11989 # compilation failed
11990 lt_cv_dlopen_self_static=no
11991 fi
11992fi
11993rm -fr conftest*
11994
11995
11996fi
11997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11998$as_echo "$lt_cv_dlopen_self_static" >&6; }
11999 fi
12000
2078c8a7
DJL
12001 CPPFLAGS=$save_CPPFLAGS
12002 LDFLAGS=$save_LDFLAGS
12003 LIBS=$save_LIBS
904dbe44
CIK
12004 ;;
12005 esac
12006
12007 case $lt_cv_dlopen_self in
12008 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12009 *) enable_dlopen_self=unknown ;;
12010 esac
12011
12012 case $lt_cv_dlopen_self_static in
12013 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12014 *) enable_dlopen_self_static=unknown ;;
12015 esac
12016fi
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033
12034striplib=
12035old_striplib=
12036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12037$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12038if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12039 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12040 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12042$as_echo "yes" >&6; }
12043else
12044# FIXME - insert some real tests, host_os isn't really good enough
12045 case $host_os in
12046 darwin*)
2078c8a7 12047 if test -n "$STRIP"; then
904dbe44
CIK
12048 striplib="$STRIP -x"
12049 old_striplib="$STRIP -S"
12050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12051$as_echo "yes" >&6; }
12052 else
12053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12054$as_echo "no" >&6; }
12055 fi
12056 ;;
12057 *)
12058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12059$as_echo "no" >&6; }
12060 ;;
12061 esac
12062fi
12063
12064
12065
12066
12067
12068
12069
12070
12071
12072
12073
12074
2078c8a7 12075 # Report what library types will actually be built
904dbe44
CIK
12076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12077$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12079$as_echo "$can_build_shared" >&6; }
12080
12081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12082$as_echo_n "checking whether to build shared libraries... " >&6; }
2078c8a7 12083 test no = "$can_build_shared" && enable_shared=no
904dbe44
CIK
12084
12085 # On AIX, shared libraries and static libraries use the same namespace, and
12086 # are all built from PIC.
12087 case $host_os in
12088 aix3*)
2078c8a7 12089 test yes = "$enable_shared" && enable_static=no
904dbe44
CIK
12090 if test -n "$RANLIB"; then
12091 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12092 postinstall_cmds='$RANLIB $lib'
12093 fi
12094 ;;
12095
12096 aix[4-9]*)
2078c8a7
DJL
12097 if test ia64 != "$host_cpu"; then
12098 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12099 yes,aix,yes) ;; # shared object as lib.so file only
12100 yes,svr4,*) ;; # shared object as lib.so archive member only
12101 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12102 esac
904dbe44
CIK
12103 fi
12104 ;;
12105 esac
12106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12107$as_echo "$enable_shared" >&6; }
12108
12109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12110$as_echo_n "checking whether to build static libraries... " >&6; }
12111 # Make sure either enable_shared or enable_static is yes.
2078c8a7 12112 test yes = "$enable_shared" || enable_static=yes
904dbe44
CIK
12113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12114$as_echo "$enable_static" >&6; }
12115
12116
12117
12118
12119fi
12120ac_ext=c
12121ac_cpp='$CPP $CPPFLAGS'
12122ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12123ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12124ac_compiler_gnu=$ac_cv_c_compiler_gnu
12125
2078c8a7 12126CC=$lt_save_CC
904dbe44
CIK
12127
12128
12129
12130
12131
12132
12133
12134
12135
12136
12137
12138
12139
12140
12141
12142 ac_config_commands="$ac_config_commands libtool"
12143
12144
12145
12146
12147# Only expand once:
12148
12149
12150
12151
12152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl author" >&5
12153$as_echo_n "checking spl author... " >&6; }
12154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPL_META_AUTHOR" >&5
12155$as_echo "$SPL_META_AUTHOR" >&6; }
12156
12157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl license" >&5
12158$as_echo_n "checking spl license... " >&6; }
12159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPL_META_LICENSE" >&5
12160$as_echo "$SPL_META_LICENSE" >&6; }
12161
12162
12163
12164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linux distribution" >&5
12165$as_echo_n "checking linux distribution... " >&6; }
12166 if test -f /etc/toss-release ; then
12167 VENDOR=toss ;
12168 elif test -f /etc/fedora-release ; then
12169 VENDOR=fedora ;
12170 elif test -f /etc/redhat-release ; then
12171 VENDOR=redhat ;
12172 elif test -f /etc/gentoo-release ; then
12173 VENDOR=gentoo ;
12174 elif test -f /etc/arch-release ; then
12175 VENDOR=arch ;
12176 elif test -f /etc/SuSE-release ; then
12177 VENDOR=sles ;
12178 elif test -f /etc/slackware-version ; then
12179 VENDOR=slackware ;
12180 elif test -f /etc/lunar.release ; then
12181 VENDOR=lunar ;
12182 elif test -f /etc/lsb-release ; then
12183 VENDOR=ubuntu ;
12184 elif test -f /etc/debian_version ; then
12185 VENDOR=debian ;
12186 else
12187 VENDOR= ;
12188 fi
12189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VENDOR" >&5
12190$as_echo "$VENDOR" >&6; }
12191
12192
12193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default package type" >&5
12194$as_echo_n "checking default package type... " >&6; }
12195 case "$VENDOR" in
12196 toss) DEFAULT_PACKAGE=rpm ;;
12197 redhat) DEFAULT_PACKAGE=rpm ;;
12198 fedora) DEFAULT_PACKAGE=rpm ;;
12199 gentoo) DEFAULT_PACKAGE=tgz ;;
12200 arch) DEFAULT_PACKAGE=tgz ;;
12201 sles) DEFAULT_PACKAGE=rpm ;;
12202 slackware) DEFAULT_PACKAGE=tgz ;;
12203 lunar) DEFAULT_PACKAGE=tgz ;;
12204 ubuntu) DEFAULT_PACKAGE=deb ;;
12205 debian) DEFAULT_PACKAGE=deb ;;
12206 *) DEFAULT_PACKAGE=rpm ;;
12207 esac
12208
12209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_PACKAGE" >&5
12210$as_echo "$DEFAULT_PACKAGE" >&6; }
12211
12212
12213
12214 RPM=rpm
12215 RPMBUILD=rpmbuild
12216
12217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $RPM is available" >&5
12218$as_echo_n "checking whether $RPM is available... " >&6; }
12219 if tmp=$($RPM --version 2>/dev/null); then :
12220
12221 RPM_VERSION=$(echo $tmp | $AWK '/RPM/ { print $3 }')
12222 HAVE_RPM=yes
12223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_RPM ($RPM_VERSION)" >&5
12224$as_echo "$HAVE_RPM ($RPM_VERSION)" >&6; }
12225
12226else
12227
12228 HAVE_RPM=no
12229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_RPM" >&5
12230$as_echo "$HAVE_RPM" >&6; }
12231
12232fi
12233
12234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $RPMBUILD is available" >&5
12235$as_echo_n "checking whether $RPMBUILD is available... " >&6; }
12236 if tmp=$($RPMBUILD --version 2>/dev/null); then :
12237
12238 RPMBUILD_VERSION=$(echo $tmp | $AWK '/RPM/ { print $3 }')
12239 HAVE_RPMBUILD=yes
12240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&5
12241$as_echo "$HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&6; }
12242
12243else
12244
12245 HAVE_RPMBUILD=no
12246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_RPMBUILD" >&5
12247$as_echo "$HAVE_RPMBUILD" >&6; }
12248
12249fi
12250
12251 RPM_DEFINE_COMMON='--define "$(DEBUG_SPL) 1" --define "$(DEBUG_KMEM) 1" --define "$(DEBUG_KMEM_TRACKING) 1"'
12252 RPM_DEFINE_UTIL=
12253 RPM_DEFINE_KMOD='--define "kernels $(LINUX_VERSION)"'
12254 RPM_DEFINE_DKMS=
12255
12256 SRPM_DEFINE_COMMON='--define "build_src_rpm 1"'
12257 SRPM_DEFINE_UTIL=
12258 SRPM_DEFINE_KMOD=
12259 SRPM_DEFINE_DKMS=
12260
12261 RPM_SPEC_DIR="rpm/generic"
12262
12263# Check whether --with-spec was given.
12264if test "${with_spec+set}" = set; then :
12265 withval=$with_spec; RPM_SPEC_DIR="rpm/$withval"
12266fi
12267
12268
12269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether spec files are available" >&5
12270$as_echo_n "checking whether spec files are available... " >&6; }
12271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($RPM_SPEC_DIR/*.spec.in)" >&5
12272$as_echo "yes ($RPM_SPEC_DIR/*.spec.in)" >&6; }
12273
12274
12275
12276
12277
12278
12279
12280
12281
12282
12283
12284
12285
12286
12287
12288
12289
12290
12291
12292
12293 DPKG=dpkg
12294 DPKGBUILD=dpkg-buildpackage
12295
12296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $DPKG is available" >&5
12297$as_echo_n "checking whether $DPKG is available... " >&6; }
12298 if tmp=$($DPKG --version 2>/dev/null); then :
12299
12300 DPKG_VERSION=$(echo $tmp | $AWK '/Debian/ { print $7 }')
12301 HAVE_DPKG=yes
12302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DPKG ($DPKG_VERSION)" >&5
12303$as_echo "$HAVE_DPKG ($DPKG_VERSION)" >&6; }
12304
12305else
12306
12307 HAVE_DPKG=no
12308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DPKG" >&5
12309$as_echo "$HAVE_DPKG" >&6; }
12310
12311fi
12312
12313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $DPKGBUILD is available" >&5
12314$as_echo_n "checking whether $DPKGBUILD is available... " >&6; }
12315 if tmp=$($DPKGBUILD --version 2>/dev/null); then :
12316
12317 DPKGBUILD_VERSION=$(echo $tmp | \
12318 $AWK '/Debian/ { print $4 }' | cut -f-4 -d'.')
12319 HAVE_DPKGBUILD=yes
12320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&5
12321$as_echo "$HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&6; }
12322
12323else
12324
12325 HAVE_DPKGBUILD=no
12326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DPKGBUILD" >&5
12327$as_echo "$HAVE_DPKGBUILD" >&6; }
12328
12329fi
12330
12331
12332
12333
12334
12335
12336
12337
12338
12339
12340 ALIEN=alien
12341
12342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ALIEN is available" >&5
12343$as_echo_n "checking whether $ALIEN is available... " >&6; }
12344 if tmp=$($ALIEN --version 2>/dev/null); then :
12345
12346 ALIEN_VERSION=$(echo $tmp | $AWK '{ print $3 }')
12347 HAVE_ALIEN=yes
12348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_ALIEN ($ALIEN_VERSION)" >&5
12349$as_echo "$HAVE_ALIEN ($ALIEN_VERSION)" >&6; }
12350
12351else
12352
12353 HAVE_ALIEN=no
12354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_ALIEN" >&5
12355$as_echo "$HAVE_ALIEN" >&6; }
12356
12357fi
12358
12359
12360
12361
12362
12363
12364
12365 SPL_CONFIG=all
12366
12367# Check whether --with-config was given.
12368if test "${with_config+set}" = set; then :
12369 withval=$with_config; SPL_CONFIG="$withval"
12370fi
12371
12372 # Check whether --enable-linux-builtin was given.
12373if test "${enable_linux_builtin+set}" = set; then :
12374 enableval=$enable_linux_builtin;
12375else
12376 enable_linux_builtin=no
12377fi
12378
12379
12380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl config" >&5
12381$as_echo_n "checking spl config... " >&6; }
12382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPL_CONFIG" >&5
12383$as_echo "$SPL_CONFIG" >&6; };
12384
12385
12386 case "$SPL_CONFIG" in
12387 kernel)
12388
12389
12390# Check whether --with-linux was given.
12391if test "${with_linux+set}" = set; then :
12392 withval=$with_linux; kernelsrc="$withval"
12393fi
12394
12395
12396
12397# Check whether --with-linux-obj was given.
12398if test "${with_linux_obj+set}" = set; then :
12399 withval=$with_linux_obj; kernelbuild="$withval"
12400fi
12401
12402
12403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel source directory" >&5
12404$as_echo_n "checking kernel source directory... " >&6; }
12405 if test -z "$kernelsrc"; then
12406 if test -e "/lib/modules/$(uname -r)/source"; then
12407 headersdir="/lib/modules/$(uname -r)/source"
12408 sourcelink=$(readlink -f "$headersdir")
12409 elif test -e "/lib/modules/$(uname -r)/build"; then
12410 headersdir="/lib/modules/$(uname -r)/build"
12411 sourcelink=$(readlink -f "$headersdir")
12412 else
12413 sourcelink=$(ls -1d /usr/src/kernels/* \
12414 /usr/src/linux-* \
12415 2>/dev/null | grep -v obj | tail -1)
12416 fi
12417
12418 if test -n "$sourcelink" && test -e ${sourcelink}; then
12419 kernelsrc=`readlink -f ${sourcelink}`
12420 else
12421 kernelsrc="Not found"
12422 fi
12423 else
12424 if test "$kernelsrc" = "NONE"; then
12425 kernsrcver=NONE
12426 fi
12427 fi
12428
12429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernelsrc" >&5
12430$as_echo "$kernelsrc" >&6; }
12431 if test ! -d "$kernelsrc"; then
12432 as_fn_error $? "
12433 *** Please make sure the kernel devel package for your distribution
12434 *** is installed and then try again. If that fails, you can specify the
12435 *** location of the kernel source with the '--with-linux=PATH' option." "$LINENO" 5
12436 fi
12437
12438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel build directory" >&5
12439$as_echo_n "checking kernel build directory... " >&6; }
12440 if test -z "$kernelbuild"; then
12441 if test -e "/lib/modules/$(uname -r)/build"; then
12442 kernelbuild=`readlink -f /lib/modules/$(uname -r)/build`
12443 elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then
12444 kernelbuild=${kernelsrc}-obj/${target_cpu}/${target_cpu}
12445 elif test -d ${kernelsrc}-obj/${target_cpu}/default; then
12446 kernelbuild=${kernelsrc}-obj/${target_cpu}/default
12447 elif test -d `dirname ${kernelsrc}`/build-${target_cpu}; then
12448 kernelbuild=`dirname ${kernelsrc}`/build-${target_cpu}
12449 else
12450 kernelbuild=${kernelsrc}
12451 fi
12452 fi
12453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernelbuild" >&5
12454$as_echo "$kernelbuild" >&6; }
12455
12456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel source version" >&5
12457$as_echo_n "checking kernel source version... " >&6; }
12458 utsrelease1=$kernelbuild/include/linux/version.h
12459 utsrelease2=$kernelbuild/include/linux/utsrelease.h
12460 utsrelease3=$kernelbuild/include/generated/utsrelease.h
12461 if test -r $utsrelease1 && fgrep -q UTS_RELEASE $utsrelease1; then
12462 utsrelease=linux/version.h
12463 elif test -r $utsrelease2 && fgrep -q UTS_RELEASE $utsrelease2; then
12464 utsrelease=linux/utsrelease.h
12465 elif test -r $utsrelease3 && fgrep -q UTS_RELEASE $utsrelease3; then
12466 utsrelease=generated/utsrelease.h
12467 fi
12468
12469 if test "$utsrelease"; then
12470 kernsrcver=`(echo "#include <$utsrelease>";
12471 echo "kernsrcver=UTS_RELEASE") |
12472 cpp -I $kernelbuild/include |
12473 grep "^kernsrcver=" | cut -d \" -f 2`
12474
12475 if test -z "$kernsrcver"; then
12476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
12477$as_echo "Not found" >&6; }
12478 as_fn_error $? "*** Cannot determine kernel version." "$LINENO" 5
12479 fi
12480 else
12481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
12482$as_echo "Not found" >&6; }
12483 if test "x$enable_linux_builtin" != xyes; then
12484 as_fn_error $? "*** Cannot find UTS_RELEASE definition." "$LINENO" 5
12485 else
12486 as_fn_error $? "
12487 *** Cannot find UTS_RELEASE definition.
12488 *** Please run 'make prepare' inside the kernel source tree." "$LINENO" 5
12489 fi
12490 fi
12491
12492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernsrcver" >&5
12493$as_echo "$kernsrcver" >&6; }
12494
12495 LINUX=${kernelsrc}
12496 LINUX_OBJ=${kernelbuild}
12497 LINUX_VERSION=${kernsrcver}
12498
12499
12500
12501
12502
12503
12504 modpost=$LINUX/scripts/Makefile.modpost
12505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel file name for module symbols" >&5
12506$as_echo_n "checking kernel file name for module symbols... " >&6; }
12507 if test "x$enable_linux_builtin" != xyes -a -f "$modpost"; then
12508 if grep -q Modules.symvers $modpost; then
12509 LINUX_SYMBOLS=Modules.symvers
12510 else
12511 LINUX_SYMBOLS=Module.symvers
12512 fi
12513
12514 if ! test -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then
12515 as_fn_error $? "
12516 *** Please make sure the kernel devel package for your distribution
12517 *** is installed. If you are building with a custom kernel, make sure the
12518 *** kernel is configured, built, and the '--with-linux=PATH' configure
12519 *** option refers to the location of the kernel source." "$LINENO" 5
12520 fi
12521 else
12522 LINUX_SYMBOLS=NONE
12523 fi
12524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINUX_SYMBOLS" >&5
12525$as_echo "$LINUX_SYMBOLS" >&6; }
12526
12527
12528
12529
12530 if test "${LINUX_OBJ}" != "${LINUX}"; then
12531 KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
12532 fi
12533
12534
12535 KERNELCPPFLAGS="$KERNELCPPFLAGS -Wstrict-prototypes"
12536
12537
12538
12539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether debugging is enabled" >&5
12540$as_echo_n "checking whether debugging is enabled... " >&6; }
12541 # Check whether --enable-debug was given.
12542if test "${enable_debug+set}" = set; then :
12543 enableval=$enable_debug;
12544else
12545 enable_debug=no
12546fi
12547
12548
12549 if test "x$enable_debug" = xyes; then :
12550
12551 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG -Werror"
12552 DEBUG_CFLAGS="-DDEBUG -Werror"
12553 DEBUG_SPL="_with_debug"
12554
12555else
12556
12557 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DNDEBUG"
12558 DEBUG_CFLAGS="-DNDEBUG"
12559 DEBUG_SPL="_without_debug"
12560
12561fi
12562
12563
12564
12565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug" >&5
12566$as_echo "$enable_debug" >&6; }
12567
12568
12569 # Check whether --enable-debug-kmem was given.
12570if test "${enable_debug_kmem+set}" = set; then :
12571 enableval=$enable_debug_kmem;
12572else
12573 enable_debug_kmem=no
12574fi
12575
12576
12577 if test "x$enable_debug_kmem" = xyes; then :
12578
12579 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_KMEM"
12580 DEBUG_KMEM="_with_debug_kmem"
12581
12582$as_echo "#define DEBUG_KMEM 1" >>confdefs.h
12583
12584
12585else
12586
12587 DEBUG_KMEM="_without_debug_kmem"
12588
12589fi
12590
12591
12592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether basic kmem accounting is enabled" >&5
12593$as_echo_n "checking whether basic kmem accounting is enabled... " >&6; }
12594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug_kmem" >&5
12595$as_echo "$enable_debug_kmem" >&6; }
12596
12597
12598 # Check whether --enable-debug-kmem-tracking was given.
12599if test "${enable_debug_kmem_tracking+set}" = set; then :
12600 enableval=$enable_debug_kmem_tracking;
12601else
12602 enable_debug_kmem_tracking=no
12603fi
12604
12605
12606 if test "x$enable_debug_kmem_tracking" = xyes; then :
12607
12608 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_KMEM_TRACKING"
12609 DEBUG_KMEM_TRACKING="_with_debug_kmem_tracking"
12610
12611$as_echo "#define DEBUG_KMEM_TRACKING 1" >>confdefs.h
12612
12613
12614else
12615
12616 DEBUG_KMEM_TRACKING="_without_debug_kmem_tracking"
12617
12618fi
12619
12620
12621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether detailed kmem tracking is enabled" >&5
12622$as_echo_n "checking whether detailed kmem tracking is enabled... " >&6; }
12623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug_kmem_tracking" >&5
12624$as_echo "$enable_debug_kmem_tracking" >&6; }
12625
12626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether modules can be built" >&5
12627$as_echo_n "checking whether modules can be built... " >&6; }
12628
12629
12630cat confdefs.h - <<_ACEOF >conftest.c
12631
12632
12633int
12634main (void)
12635{
12636
12637 ;
12638 return 0;
12639}
12640
12641_ACEOF
12642
12643
12644 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
12645 echo "obj-m := conftest.o" >build/Makefile
12646 modpost_flag=''
12647 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
12648 if { 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'
12649 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12650 (eval $ac_try) 2>&5
12651 ac_status=$?
12652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12653 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
12654 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12655 (eval $ac_try) 2>&5
12656 ac_status=$?
12657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12658 test $ac_status = 0; }; }; then :
12659
12660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12661$as_echo "yes" >&6; }
12662
12663else
12664 $as_echo "$as_me: failed program was:" >&5
12665sed 's/^/| /' conftest.$ac_ext >&5
12666
12667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12668$as_echo "no" >&6; }
12669 if test "x$enable_linux_builtin" != xyes; then
12670 as_fn_error $? "*** Unable to build an empty module." "$LINENO" 5
12671 else
12672 as_fn_error $? "
12673 *** Unable to build an empty module.
12674 *** Please run 'make scripts' inside the kernel source tree." "$LINENO" 5
12675 fi
12676
12677
12678
12679fi
12680 rm -Rf build
12681
12682
12683
12684 if test "x$cross_compiling" != xyes; then :
12685
12686 if test "$cross_compiling" = yes; then :
12687 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12688$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12689as_fn_error $? "cannot run test program while cross compiling
12690See \`config.log' for more details" "$LINENO" 5; }
12691else
12692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12693/* end confdefs.h. */
12694
12695
12696 #include "$LINUX/include/linux/license.h"
12697
12698int
12699main ()
12700{
12701
12702 return !license_is_gpl_compatible(
12703 "$SPL_META_LICENSE");
12704
12705 ;
12706 return 0;
12707}
12708
12709_ACEOF
12710if ac_fn_c_try_run "$LINENO"; then :
12711
12712
12713$as_echo "#define SPL_IS_GPL_COMPATIBLE 1" >>confdefs.h
12714
12715
12716fi
12717rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12718 conftest.$ac_objext conftest.beam conftest.$ac_ext
12719fi
12720
12721
12722fi
12723
12724
12725 # Check whether --enable-atomic-spinlocks was given.
12726if test "${enable_atomic_spinlocks+set}" = set; then :
12727 enableval=$enable_atomic_spinlocks;
12728else
12729 enable_atomic_spinlocks=check
12730fi
12731
12732
12733
12734
12735cat confdefs.h - <<_ACEOF >conftest.c
12736
12737
12738 #include <linux/fs.h>
12739
12740int
12741main (void)
12742{
12743
12744 atomic64_t *ptr __attribute__ ((unused));
12745
12746 ;
12747 return 0;
12748}
12749
12750_ACEOF
12751
12752
12753 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
12754 echo "obj-m := conftest.o" >build/Makefile
12755 modpost_flag=''
12756 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
12757 if { 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'
12758 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12759 (eval $ac_try) 2>&5
12760 ac_status=$?
12761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12762 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
12763 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12764 (eval $ac_try) 2>&5
12765 ac_status=$?
12766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12767 test $ac_status = 0; }; }; then :
12768
12769 have_atomic64_t=yes
12770
12771$as_echo "#define HAVE_ATOMIC64_T 1" >>confdefs.h
12772
12773
12774else
12775 $as_echo "$as_me: failed program was:" >&5
12776sed 's/^/| /' conftest.$ac_ext >&5
12777
12778 have_atomic64_t=no
12779
12780
12781
12782fi
12783 rm -Rf build
12784
12785
12786
12787 if test "x$enable_atomic_spinlocks" = xcheck; then :
12788
12789 if test "x$have_atomic64_t" = xyes; then :
12790
12791 enable_atomic_spinlocks=no
12792
12793else
12794
12795 enable_atomic_spinlocks=yes
12796
12797fi
12798
12799fi
12800
12801 if test "x$enable_atomic_spinlocks" = xyes; then :
12802
12803
12804$as_echo "#define ATOMIC_SPINLOCK 1" >>confdefs.h
12805
12806
12807else
12808
12809 if test "x$have_atomic64_t" = xno; then :
12810
12811 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12812$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12813as_fn_error $? "--disable-atomic-spinlocks given but required atomic64 support is unavailable
12814See \`config.log' for more details" "$LINENO" 5; }
12815
12816fi
12817
12818fi
12819
12820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether atomic types use spinlocks" >&5
12821$as_echo_n "checking whether atomic types use spinlocks... " >&6; }
12822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_atomic_spinlocks" >&5
12823$as_echo "$enable_atomic_spinlocks" >&6; }
12824
12825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel defines atomic64_t" >&5
12826$as_echo_n "checking whether kernel defines atomic64_t... " >&6; }
12827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_atomic64_t" >&5
12828$as_echo "$have_atomic64_t" >&6; }
12829
12830
12831 tmp_flags="$EXTRA_KCFLAGS"
12832 EXTRA_KCFLAGS="-Werror"
12833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether old 2-argument shrinker exists" >&5
12834$as_echo_n "checking whether old 2-argument shrinker exists... " >&6; }
12835
12836
12837cat confdefs.h - <<_ACEOF >conftest.c
12838
12839
12840 #include <linux/mm.h>
12841
12842 int shrinker_cb(int nr_to_scan, gfp_t gfp_mask);
12843
12844int
12845main (void)
12846{
12847
12848 struct shrinker cache_shrinker = {
12849 .shrink = shrinker_cb,
12850 .seeks = DEFAULT_SEEKS,
12851 };
12852 register_shrinker(&cache_shrinker);
12853
12854 ;
12855 return 0;
12856}
12857
12858_ACEOF
12859
12860
12861 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
12862 echo "obj-m := conftest.o" >build/Makefile
12863 modpost_flag=''
12864 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
12865 if { 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'
12866 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12867 (eval $ac_try) 2>&5
12868 ac_status=$?
12869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12870 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
12871 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12872 (eval $ac_try) 2>&5
12873 ac_status=$?
12874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12875 test $ac_status = 0; }; }; then :
12876
12877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12878$as_echo "yes" >&6; }
12879
12880$as_echo "#define HAVE_2ARGS_OLD_SHRINKER_CALLBACK 1" >>confdefs.h
12881
12882
12883else
12884 $as_echo "$as_me: failed program was:" >&5
12885sed 's/^/| /' conftest.$ac_ext >&5
12886
12887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12888$as_echo "no" >&6; }
12889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether old 3-argument shrinker exists" >&5
12890$as_echo_n "checking whether old 3-argument shrinker exists... " >&6; }
12891
12892
12893cat confdefs.h - <<_ACEOF >conftest.c
12894
12895
12896 #include <linux/mm.h>
12897
12898 int shrinker_cb(struct shrinker *, int nr_to_scan,
12899 gfp_t gfp_mask);
12900
12901int
12902main (void)
12903{
12904
12905 struct shrinker cache_shrinker = {
12906 .shrink = shrinker_cb,
12907 .seeks = DEFAULT_SEEKS,
12908 };
12909 register_shrinker(&cache_shrinker);
12910
12911 ;
12912 return 0;
12913}
12914
12915_ACEOF
12916
12917
12918 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
12919 echo "obj-m := conftest.o" >build/Makefile
12920 modpost_flag=''
12921 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
12922 if { 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'
12923 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12924 (eval $ac_try) 2>&5
12925 ac_status=$?
12926 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12927 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
12928 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12929 (eval $ac_try) 2>&5
12930 ac_status=$?
12931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12932 test $ac_status = 0; }; }; then :
12933
12934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12935$as_echo "yes" >&6; }
12936
12937$as_echo "#define HAVE_3ARGS_SHRINKER_CALLBACK 1" >>confdefs.h
12938
12939
12940else
12941 $as_echo "$as_me: failed program was:" >&5
12942sed 's/^/| /' conftest.$ac_ext >&5
12943
12944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12945$as_echo "no" >&6; }
12946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether new 2-argument shrinker exists" >&5
12947$as_echo_n "checking whether new 2-argument shrinker exists... " >&6; }
12948
12949
12950cat confdefs.h - <<_ACEOF >conftest.c
12951
12952
12953 #include <linux/mm.h>
12954
12955 int shrinker_cb(struct shrinker *,
12956 struct shrink_control *sc);
12957
12958int
12959main (void)
12960{
12961
12962 struct shrinker cache_shrinker = {
12963 .shrink = shrinker_cb,
12964 .seeks = DEFAULT_SEEKS,
12965 };
12966 register_shrinker(&cache_shrinker);
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_2ARGS_NEW_SHRINKER_CALLBACK 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 ->count_objects callback exists" >&5
13004$as_echo_n "checking whether ->count_objects callback exists... " >&6; }
13005
13006
13007cat confdefs.h - <<_ACEOF >conftest.c
13008
13009
13010 #include <linux/mm.h>
13011
13012 unsigned long shrinker_cb(
13013 struct shrinker *,
13014 struct shrink_control *sc);
13015
13016int
13017main (void)
13018{
13019
13020 struct shrinker cache_shrinker = {
13021 .count_objects = shrinker_cb,
13022 .scan_objects = shrinker_cb,
13023 .seeks = DEFAULT_SEEKS,
13024 };
13025 register_shrinker(&cache_shrinker);
13026
13027 ;
13028 return 0;
13029}
13030
13031_ACEOF
13032
13033
13034 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13035 echo "obj-m := conftest.o" >build/Makefile
13036 modpost_flag=''
13037 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13038 if { 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'
13039 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13040 (eval $ac_try) 2>&5
13041 ac_status=$?
13042 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13043 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13044 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13045 (eval $ac_try) 2>&5
13046 ac_status=$?
13047 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13048 test $ac_status = 0; }; }; then :
13049
13050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13051$as_echo "yes" >&6; }
13052
13053$as_echo "#define HAVE_SPLIT_SHRINKER_CALLBACK 1" >>confdefs.h
13054
13055
13056else
13057 $as_echo "$as_me: failed program was:" >&5
13058sed 's/^/| /' conftest.$ac_ext >&5
13059
13060 as_fn_error $? "error" "$LINENO" 5
13061
13062
13063
13064fi
13065 rm -Rf build
13066
13067
13068
13069
13070
13071fi
13072 rm -Rf build
13073
13074
13075
13076
13077
13078fi
13079 rm -Rf build
13080
13081
13082
13083
13084
13085fi
13086 rm -Rf build
13087
13088
13089 EXTRA_KCFLAGS="$tmp_flags"
13090
13091
13092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct ctl_table has ctl_name" >&5
13093$as_echo_n "checking whether struct ctl_table has ctl_name... " >&6; }
13094
13095
13096cat confdefs.h - <<_ACEOF >conftest.c
13097
13098
13099 #include <linux/sysctl.h>
13100
13101int
13102main (void)
13103{
13104
13105 struct ctl_table ctl __attribute__ ((unused));
13106 ctl.ctl_name = 0;
13107
13108 ;
13109 return 0;
13110}
13111
13112_ACEOF
13113
13114
13115 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13116 echo "obj-m := conftest.o" >build/Makefile
13117 modpost_flag=''
13118 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13119 if { 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'
13120 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13121 (eval $ac_try) 2>&5
13122 ac_status=$?
13123 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13124 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13125 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13126 (eval $ac_try) 2>&5
13127 ac_status=$?
13128 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13129 test $ac_status = 0; }; }; then :
13130
13131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13132$as_echo "yes" >&6; }
13133
13134$as_echo "#define HAVE_CTL_NAME 1" >>confdefs.h
13135
13136
13137else
13138 $as_echo "$as_me: failed program was:" >&5
13139sed 's/^/| /' conftest.$ac_ext >&5
13140
13141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13142$as_echo "no" >&6; }
13143
13144
13145
13146fi
13147 rm -Rf build
13148
13149
13150
13151
13152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether PDE_DATA() is available" >&5
13153$as_echo_n "checking whether PDE_DATA() is available... " >&6; }
13154
13155
13156
13157cat confdefs.h - <<_ACEOF >conftest.c
13158
13159
13160 #include <linux/proc_fs.h>
13161
13162int
13163main (void)
13164{
13165
13166 PDE_DATA(NULL);
13167
13168 ;
13169 return 0;
13170}
13171
13172_ACEOF
13173
13174
13175 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13176 echo "obj-m := conftest.o" >build/Makefile
13177 modpost_flag=''
13178 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13179 if { 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'
13180 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13181 (eval $ac_try) 2>&5
13182 ac_status=$?
13183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13184 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13185 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13186 (eval $ac_try) 2>&5
13187 ac_status=$?
13188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13189 test $ac_status = 0; }; }; then :
13190 rc=0
13191else
13192 $as_echo "$as_me: failed program was:" >&5
13193sed 's/^/| /' conftest.$ac_ext >&5
13194 rc=1
13195
13196
13197fi
13198 rm -Rf build
13199
13200
13201 if test $rc -ne 0; then :
13202
13203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13204$as_echo "no" >&6; }
13205
13206 else
13207 if test "x$enable_linux_builtin" != xyes; then
13208
13209 grep -q -E '[[:space:]]PDE_DATA[[:space:]]' \
13210 $LINUX_OBJ/Module*.symvers 2>/dev/null
13211 rc=$?
13212 if test $rc -ne 0; then
13213 export=0
13214 for file in ; do
13215 grep -q -E "EXPORT_SYMBOL.*(PDE_DATA)" \
13216 "$LINUX_OBJ/$file" 2>/dev/null
13217 rc=$?
13218 if test $rc -eq 0; then
13219 export=1
13220 break;
13221 fi
13222 done
13223 if test $export -eq 0; then :
13224 rc=1
13225 else :
13226 rc=0
13227 fi
13228 else :
13229 rc=0
13230 fi
13231
13232 fi
13233 if test $rc -ne 0; then :
13234
13235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13236$as_echo "no" >&6; }
13237
13238 else :
13239
13240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13241$as_echo "yes" >&6; }
13242
13243$as_echo "#define HAVE_PDE_DATA 1" >>confdefs.h
13244
13245
13246 fi
13247 fi
13248
13249
13250 tmp_flags="$EXTRA_KCFLAGS"
13251 EXTRA_KCFLAGS="-Werror"
13252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether set_fs_pwd() requires const struct path *" >&5
13253$as_echo_n "checking whether set_fs_pwd() requires const struct path *... " >&6; }
13254
13255
13256cat confdefs.h - <<_ACEOF >conftest.c
13257
13258
13259 #include <linux/spinlock.h>
13260 #include <linux/fs_struct.h>
13261 #include <linux/path.h>
13262 void (*const set_fs_pwd_func)
13263 (struct fs_struct *, const struct path *)
13264 = set_fs_pwd;
13265
13266int
13267main (void)
13268{
13269
13270 return 0;
13271
13272 ;
13273 return 0;
13274}
13275
13276_ACEOF
13277
13278
13279 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13280 echo "obj-m := conftest.o" >build/Makefile
13281 modpost_flag=''
13282 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13283 if { 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'
13284 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13285 (eval $ac_try) 2>&5
13286 ac_status=$?
13287 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13288 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13289 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13290 (eval $ac_try) 2>&5
13291 ac_status=$?
13292 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13293 test $ac_status = 0; }; }; then :
13294
13295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13296$as_echo "yes" >&6; }
13297
13298$as_echo "#define HAVE_SET_FS_PWD_WITH_CONST 1" >>confdefs.h
13299
13300
13301else
13302 $as_echo "$as_me: failed program was:" >&5
13303sed 's/^/| /' conftest.$ac_ext >&5
13304
13305
13306
13307cat confdefs.h - <<_ACEOF >conftest.c
13308
13309
13310 #include <linux/spinlock.h>
13311 #include <linux/fs_struct.h>
13312 #include <linux/path.h>
13313 void (*const set_fs_pwd_func)
13314 (struct fs_struct *, struct path *)
13315 = set_fs_pwd;
13316
13317int
13318main (void)
13319{
13320
13321 return 0;
13322
13323 ;
13324 return 0;
13325}
13326
13327_ACEOF
13328
13329
13330 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13331 echo "obj-m := conftest.o" >build/Makefile
13332 modpost_flag=''
13333 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13334 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13335 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13336 (eval $ac_try) 2>&5
13337 ac_status=$?
13338 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13339 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13340 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13341 (eval $ac_try) 2>&5
13342 ac_status=$?
13343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13344 test $ac_status = 0; }; }; then :
13345
13346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13347$as_echo "no" >&6; }
13348
13349else
13350 $as_echo "$as_me: failed program was:" >&5
13351sed 's/^/| /' conftest.$ac_ext >&5
13352
13353 as_fn_error $? "unknown" "$LINENO" 5
13354
13355
13356
13357fi
13358 rm -Rf build
13359
13360
13361
13362
13363
13364fi
13365 rm -Rf build
13366
13367
13368 EXTRA_KCFLAGS="$tmp_flags"
13369
13370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vfs_unlink() wants 2 args" >&5
13371$as_echo_n "checking whether vfs_unlink() wants 2 args... " >&6; }
13372
13373
13374cat confdefs.h - <<_ACEOF >conftest.c
13375
13376
13377 #include <linux/fs.h>
13378
13379int
13380main (void)
13381{
13382
13383 vfs_unlink((struct inode *) NULL, (struct dentry *) NULL);
13384
13385 ;
13386 return 0;
13387}
13388
13389_ACEOF
13390
13391
13392 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13393 echo "obj-m := conftest.o" >build/Makefile
13394 modpost_flag=''
13395 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13396 if { 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'
13397 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13398 (eval $ac_try) 2>&5
13399 ac_status=$?
13400 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13401 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13402 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13403 (eval $ac_try) 2>&5
13404 ac_status=$?
13405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13406 test $ac_status = 0; }; }; then :
13407
13408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13409$as_echo "yes" >&6; }
13410
13411$as_echo "#define HAVE_2ARGS_VFS_UNLINK 1" >>confdefs.h
13412
13413
13414else
13415 $as_echo "$as_me: failed program was:" >&5
13416sed 's/^/| /' conftest.$ac_ext >&5
13417
13418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13419$as_echo "no" >&6; }
13420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vfs_unlink() wants 3 args" >&5
13421$as_echo_n "checking whether vfs_unlink() wants 3 args... " >&6; }
13422
13423
13424cat confdefs.h - <<_ACEOF >conftest.c
13425
13426
13427 #include <linux/fs.h>
13428
13429int
13430main (void)
13431{
13432
13433 vfs_unlink((struct inode *) NULL,
13434 (struct dentry *) NULL,
13435 (struct inode **) NULL);
13436
13437 ;
13438 return 0;
13439}
13440
13441_ACEOF
13442
13443
13444 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13445 echo "obj-m := conftest.o" >build/Makefile
13446 modpost_flag=''
13447 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13448 if { 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'
13449 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13450 (eval $ac_try) 2>&5
13451 ac_status=$?
13452 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13453 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13454 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13455 (eval $ac_try) 2>&5
13456 ac_status=$?
13457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13458 test $ac_status = 0; }; }; then :
13459
13460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13461$as_echo "yes" >&6; }
13462
13463$as_echo "#define HAVE_3ARGS_VFS_UNLINK 1" >>confdefs.h
13464
13465
13466else
13467 $as_echo "$as_me: failed program was:" >&5
13468sed 's/^/| /' conftest.$ac_ext >&5
13469
13470 as_fn_error $? "no" "$LINENO" 5
13471
13472
13473
13474fi
13475 rm -Rf build
13476
13477
13478
13479
13480
13481
13482fi
13483 rm -Rf build
13484
13485
13486
13487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vfs_rename() wants 4 args" >&5
13488$as_echo_n "checking whether vfs_rename() wants 4 args... " >&6; }
13489
13490
13491cat confdefs.h - <<_ACEOF >conftest.c
13492
13493
13494 #include <linux/fs.h>
13495
13496int
13497main (void)
13498{
13499
13500 vfs_rename((struct inode *) NULL, (struct dentry *) NULL,
13501 (struct inode *) NULL, (struct dentry *) NULL);
13502
13503 ;
13504 return 0;
13505}
13506
13507_ACEOF
13508
13509
13510 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13511 echo "obj-m := conftest.o" >build/Makefile
13512 modpost_flag=''
13513 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13514 if { 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'
13515 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13516 (eval $ac_try) 2>&5
13517 ac_status=$?
13518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13519 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13520 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13521 (eval $ac_try) 2>&5
13522 ac_status=$?
13523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13524 test $ac_status = 0; }; }; then :
13525
13526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13527$as_echo "yes" >&6; }
13528
13529$as_echo "#define HAVE_4ARGS_VFS_RENAME 1" >>confdefs.h
13530
13531
13532else
13533 $as_echo "$as_me: failed program was:" >&5
13534sed 's/^/| /' conftest.$ac_ext >&5
13535
13536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13537$as_echo "no" >&6; }
13538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vfs_rename() wants 5 args" >&5
13539$as_echo_n "checking whether vfs_rename() wants 5 args... " >&6; }
13540
13541
13542cat confdefs.h - <<_ACEOF >conftest.c
13543
13544
13545 #include <linux/fs.h>
13546
13547int
13548main (void)
13549{
13550
13551 vfs_rename((struct inode *) NULL,
13552 (struct dentry *) NULL,
13553 (struct inode *) NULL,
13554 (struct dentry *) NULL,
13555 (struct inode **) NULL);
13556
13557 ;
13558 return 0;
13559}
13560
13561_ACEOF
13562
13563
13564 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13565 echo "obj-m := conftest.o" >build/Makefile
13566 modpost_flag=''
13567 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13568 if { 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'
13569 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13570 (eval $ac_try) 2>&5
13571 ac_status=$?
13572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13573 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13574 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13575 (eval $ac_try) 2>&5
13576 ac_status=$?
13577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13578 test $ac_status = 0; }; }; then :
13579
13580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13581$as_echo "yes" >&6; }
13582
13583$as_echo "#define HAVE_5ARGS_VFS_RENAME 1" >>confdefs.h
13584
13585
13586else
13587 $as_echo "$as_me: failed program was:" >&5
13588sed 's/^/| /' conftest.$ac_ext >&5
13589
13590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13591$as_echo "no" >&6; }
13592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vfs_rename() wants 6 args" >&5
13593$as_echo_n "checking whether vfs_rename() wants 6 args... " >&6; }
13594
13595
13596cat confdefs.h - <<_ACEOF >conftest.c
13597
13598
13599 #include <linux/fs.h>
13600
13601int
13602main (void)
13603{
13604
13605 vfs_rename((struct inode *) NULL,
13606 (struct dentry *) NULL,
13607 (struct inode *) NULL,
13608 (struct dentry *) NULL,
13609 (struct inode **) NULL,
13610 (unsigned int) 0);
13611
13612 ;
13613 return 0;
13614}
13615
13616_ACEOF
13617
13618
13619 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13620 echo "obj-m := conftest.o" >build/Makefile
13621 modpost_flag=''
13622 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13623 if { 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'
13624 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13625 (eval $ac_try) 2>&5
13626 ac_status=$?
13627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13628 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13629 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13630 (eval $ac_try) 2>&5
13631 ac_status=$?
13632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13633 test $ac_status = 0; }; }; then :
13634
13635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13636$as_echo "yes" >&6; }
13637
13638$as_echo "#define HAVE_6ARGS_VFS_RENAME 1" >>confdefs.h
13639
13640
13641else
13642 $as_echo "$as_me: failed program was:" >&5
13643sed 's/^/| /' conftest.$ac_ext >&5
13644
13645 as_fn_error $? "no" "$LINENO" 5
13646
13647
13648
13649fi
13650 rm -Rf build
13651
13652
13653
13654
13655
13656fi
13657 rm -Rf build
13658
13659
13660
13661
13662
13663fi
13664 rm -Rf build
13665
13666
13667
13668
13669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vfs_fsync() wants 2 args" >&5
13670$as_echo_n "checking whether vfs_fsync() wants 2 args... " >&6; }
13671
13672
13673cat confdefs.h - <<_ACEOF >conftest.c
13674
13675
13676 #include <linux/fs.h>
13677
13678int
13679main (void)
13680{
13681
13682 vfs_fsync(NULL, 0);
13683
13684 ;
13685 return 0;
13686}
13687
13688_ACEOF
13689
13690
13691 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13692 echo "obj-m := conftest.o" >build/Makefile
13693 modpost_flag=''
13694 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13695 if { 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'
13696 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13697 (eval $ac_try) 2>&5
13698 ac_status=$?
13699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13700 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13701 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13702 (eval $ac_try) 2>&5
13703 ac_status=$?
13704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13705 test $ac_status = 0; }; }; then :
13706
13707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13708$as_echo "yes" >&6; }
13709
13710$as_echo "#define HAVE_2ARGS_VFS_FSYNC 1" >>confdefs.h
13711
13712
13713else
13714 $as_echo "$as_me: failed program was:" >&5
13715sed 's/^/| /' conftest.$ac_ext >&5
13716
13717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13718$as_echo "no" >&6; }
13719
13720
13721
13722fi
13723 rm -Rf build
13724
13725
13726
13727
13728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether truncate_range() inode operation is available" >&5
13729$as_echo_n "checking whether truncate_range() inode operation is available... " >&6; }
13730
13731
13732cat confdefs.h - <<_ACEOF >conftest.c
13733
13734
13735 #include <linux/fs.h>
13736
13737int
13738main (void)
13739{
13740
13741 struct inode_operations ops;
13742 ops.truncate_range = NULL;
13743
13744 ;
13745 return 0;
13746}
13747
13748_ACEOF
13749
13750
13751 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13752 echo "obj-m := conftest.o" >build/Makefile
13753 modpost_flag=''
13754 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13755 if { 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'
13756 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13757 (eval $ac_try) 2>&5
13758 ac_status=$?
13759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13760 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13761 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13762 (eval $ac_try) 2>&5
13763 ac_status=$?
13764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13765 test $ac_status = 0; }; }; then :
13766
13767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13768$as_echo "yes" >&6; }
13769
13770$as_echo "#define HAVE_INODE_TRUNCATE_RANGE 1" >>confdefs.h
13771
13772
13773else
13774 $as_echo "$as_me: failed program was:" >&5
13775sed 's/^/| /' conftest.$ac_ext >&5
13776
13777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13778$as_echo "no" >&6; }
13779
13780
13781
13782fi
13783 rm -Rf build
13784
13785
13786
13787
13788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct fs_struct uses spinlock_t" >&5
13789$as_echo_n "checking whether struct fs_struct uses spinlock_t... " >&6; }
13790 tmp_flags="$EXTRA_KCFLAGS"
13791 EXTRA_KCFLAGS="-Werror"
13792
13793
13794cat confdefs.h - <<_ACEOF >conftest.c
13795
13796
13797 #include <linux/sched.h>
13798 #include <linux/fs_struct.h>
13799
13800int
13801main (void)
13802{
13803
13804 static struct fs_struct fs;
13805 spin_lock_init(&fs.lock);
13806
13807 ;
13808 return 0;
13809}
13810
13811_ACEOF
13812
13813
13814 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13815 echo "obj-m := conftest.o" >build/Makefile
13816 modpost_flag=''
13817 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13818 if { 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'
13819 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13820 (eval $ac_try) 2>&5
13821 ac_status=$?
13822 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13823 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13824 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13825 (eval $ac_try) 2>&5
13826 ac_status=$?
13827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13828 test $ac_status = 0; }; }; then :
13829
13830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13831$as_echo "yes" >&6; }
13832
13833$as_echo "#define HAVE_FS_STRUCT_SPINLOCK 1" >>confdefs.h
13834
13835
13836else
13837 $as_echo "$as_me: failed program was:" >&5
13838sed 's/^/| /' conftest.$ac_ext >&5
13839
13840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13841$as_echo "no" >&6; }
13842
13843
13844
13845fi
13846 rm -Rf build
13847
13848
13849 EXTRA_KCFLAGS="$tmp_flags"
13850
13851
13852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kuid_t/kgid_t is available" >&5
13853$as_echo_n "checking whether kuid_t/kgid_t is available... " >&6; }
13854
13855
13856cat confdefs.h - <<_ACEOF >conftest.c
13857
13858
13859 #include <linux/uidgid.h>
13860
13861int
13862main (void)
13863{
13864
13865 kuid_t userid = KUIDT_INIT(0);
13866 kgid_t groupid = KGIDT_INIT(0);
13867
13868 ;
13869 return 0;
13870}
13871
13872_ACEOF
13873
13874
13875 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13876 echo "obj-m := conftest.o" >build/Makefile
13877 modpost_flag=''
13878 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13879 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13880 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13881 (eval $ac_try) 2>&5
13882 ac_status=$?
13883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13884 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13885 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13886 (eval $ac_try) 2>&5
13887 ac_status=$?
13888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13889 test $ac_status = 0; }; }; then :
13890
13891
13892
13893cat confdefs.h - <<_ACEOF >conftest.c
13894
13895
13896 #include <linux/uidgid.h>
13897
13898int
13899main (void)
13900{
13901
13902 kuid_t userid = 0;
13903 kgid_t groupid = 0;
13904
13905 ;
13906 return 0;
13907}
13908
13909_ACEOF
13910
13911
13912 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13913 echo "obj-m := conftest.o" >build/Makefile
13914 modpost_flag=''
13915 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13916 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13917 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13918 (eval $ac_try) 2>&5
13919 ac_status=$?
13920 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13921 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13922 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13923 (eval $ac_try) 2>&5
13924 ac_status=$?
13925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13926 test $ac_status = 0; }; }; then :
13927
13928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; optional" >&5
13929$as_echo "yes; optional" >&6; }
13930
13931else
13932 $as_echo "$as_me: failed program was:" >&5
13933sed 's/^/| /' conftest.$ac_ext >&5
13934
13935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; mandatory" >&5
13936$as_echo "yes; mandatory" >&6; }
13937
13938$as_echo "#define HAVE_KUIDGID_T 1" >>confdefs.h
13939
13940
13941
13942
13943fi
13944 rm -Rf build
13945
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
13957fi
13958 rm -Rf build
13959
13960
13961
13962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __put_task_struct() is available" >&5
13963$as_echo_n "checking whether __put_task_struct() is available... " >&6; }
13964
13965
13966
13967cat confdefs.h - <<_ACEOF >conftest.c
13968
13969
13970 #include <linux/sched.h>
13971
13972int
13973main (void)
13974{
13975
13976 __put_task_struct(NULL);
13977
13978 ;
13979 return 0;
13980}
13981
13982_ACEOF
13983
13984
13985 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13986 echo "obj-m := conftest.o" >build/Makefile
13987 modpost_flag=''
13988 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13989 if { 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'
13990 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13991 (eval $ac_try) 2>&5
13992 ac_status=$?
13993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13994 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13995 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13996 (eval $ac_try) 2>&5
13997 ac_status=$?
13998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13999 test $ac_status = 0; }; }; then :
14000 rc=0
14001else
14002 $as_echo "$as_me: failed program was:" >&5
14003sed 's/^/| /' conftest.$ac_ext >&5
14004 rc=1
14005
14006
14007fi
14008 rm -Rf build
14009
14010
14011 if test $rc -ne 0; then :
14012
14013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14014$as_echo "no" >&6; }
14015
14016 else
14017 if test "x$enable_linux_builtin" != xyes; then
14018
14019 grep -q -E '[[:space:]]__put_task_struct[[:space:]]' \
14020 $LINUX_OBJ/Module*.symvers 2>/dev/null
14021 rc=$?
14022 if test $rc -ne 0; then
14023 export=0
14024 for file in ; do
14025 grep -q -E "EXPORT_SYMBOL.*(__put_task_struct)" \
14026 "$LINUX_OBJ/$file" 2>/dev/null
14027 rc=$?
14028 if test $rc -eq 0; then
14029 export=1
14030 break;
14031 fi
14032 done
14033 if test $export -eq 0; then :
14034 rc=1
14035 else :
14036 rc=0
14037 fi
14038 else :
14039 rc=0
14040 fi
14041
14042 fi
14043 if test $rc -ne 0; then :
14044
14045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14046$as_echo "no" >&6; }
14047
14048 else :
14049
14050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14051$as_echo "yes" >&6; }
14052
14053$as_echo "#define HAVE_PUT_TASK_STRUCT 1" >>confdefs.h
14054
14055
14056 fi
14057 fi
14058
14059
14060
14061
14062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->fallocate() exists" >&5
14063$as_echo_n "checking whether fops->fallocate() exists... " >&6; }
14064
14065
14066cat confdefs.h - <<_ACEOF >conftest.c
14067
14068
14069 #include <linux/fs.h>
14070
14071int
14072main (void)
14073{
14074
14075 long (*fallocate) (struct file *, int, loff_t, loff_t) = NULL;
14076 struct file_operations fops __attribute__ ((unused)) = {
14077 .fallocate = fallocate,
14078 };
14079
14080 ;
14081 return 0;
14082}
14083
14084_ACEOF
14085
14086
14087 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14088 echo "obj-m := conftest.o" >build/Makefile
14089 modpost_flag=''
14090 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14091 if { 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'
14092 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14093 (eval $ac_try) 2>&5
14094 ac_status=$?
14095 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14096 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14097 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14098 (eval $ac_try) 2>&5
14099 ac_status=$?
14100 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14101 test $ac_status = 0; }; }; then :
14102
14103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14104$as_echo "yes" >&6; }
14105
14106$as_echo "#define HAVE_FILE_FALLOCATE 1" >>confdefs.h
14107
14108
14109else
14110 $as_echo "$as_me: failed program was:" >&5
14111sed 's/^/| /' conftest.$ac_ext >&5
14112
14113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14114$as_echo "no" >&6; }
14115
14116
14117
14118fi
14119 rm -Rf build
14120
14121
14122
14123
14124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->fallocate() exists" >&5
14125$as_echo_n "checking whether iops->fallocate() exists... " >&6; }
14126
14127
14128cat confdefs.h - <<_ACEOF >conftest.c
14129
14130
14131 #include <linux/fs.h>
14132
14133int
14134main (void)
14135{
14136
14137 long (*fallocate) (struct inode *, int, loff_t, loff_t) = NULL;
14138 struct inode_operations fops __attribute__ ((unused)) = {
14139 .fallocate = fallocate,
14140 };
14141
14142 ;
14143 return 0;
14144}
14145
14146_ACEOF
14147
14148
14149 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14150 echo "obj-m := conftest.o" >build/Makefile
14151 modpost_flag=''
14152 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14153 if { 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'
14154 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14155 (eval $ac_try) 2>&5
14156 ac_status=$?
14157 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14158 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14159 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14160 (eval $ac_try) 2>&5
14161 ac_status=$?
14162 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14163 test $ac_status = 0; }; }; then :
14164
14165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14166$as_echo "yes" >&6; }
14167
14168$as_echo "#define HAVE_INODE_FALLOCATE 1" >>confdefs.h
14169
14170
14171else
14172 $as_echo "$as_me: failed program was:" >&5
14173sed 's/^/| /' conftest.$ac_ext >&5
14174
14175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14176$as_echo "no" >&6; }
14177
14178
14179
14180fi
14181 rm -Rf build
14182
14183
14184
14185
14186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->fallocate() exists" >&5
14187$as_echo_n "checking whether fops->fallocate() exists... " >&6; }
14188
14189
14190cat confdefs.h - <<_ACEOF >conftest.c
14191
14192
14193 #include <linux/fs.h>
14194
14195int
14196main (void)
14197{
14198
14199 long (*fallocate) (struct file *, int, loff_t, loff_t) = NULL;
14200 struct file_operations_no_const fops __attribute__ ((unused)) = {
14201 .fallocate = fallocate,
14202 };
14203
14204 ;
14205 return 0;
14206}
14207
14208_ACEOF
14209
14210
14211 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14212 echo "obj-m := conftest.o" >build/Makefile
14213 modpost_flag=''
14214 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14215 if { 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'
14216 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14217 (eval $ac_try) 2>&5
14218 ac_status=$?
14219 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14220 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14221 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14222 (eval $ac_try) 2>&5
14223 ac_status=$?
14224 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14225 test $ac_status = 0; }; }; then :
14226
14227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14228$as_echo "yes" >&6; }
14229
14230$as_echo "#define HAVE_FILE_FALLOCATE 1" >>confdefs.h
14231
14232
14233else
14234 $as_echo "$as_me: failed program was:" >&5
14235sed 's/^/| /' conftest.$ac_ext >&5
14236
14237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14238$as_echo "no" >&6; }
14239
14240
14241
14242fi
14243 rm -Rf build
14244
14245
14246
14247
14248
14249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CONFIG_ZLIB_INFLATE is defined" >&5
14250$as_echo_n "checking whether CONFIG_ZLIB_INFLATE is defined... " >&6; }
14251
14252
14253cat confdefs.h - <<_ACEOF >conftest.c
14254
14255
14256 #if !defined(CONFIG_ZLIB_INFLATE) && \
14257 !defined(CONFIG_ZLIB_INFLATE_MODULE)
14258 #error CONFIG_ZLIB_INFLATE not defined
14259 #endif
14260
14261int
14262main (void)
14263{
14264
14265 ;
14266 return 0;
14267}
14268
14269_ACEOF
14270
14271
14272 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14273 echo "obj-m := conftest.o" >build/Makefile
14274 modpost_flag=''
14275 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14276 if { 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'
14277 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14278 (eval $ac_try) 2>&5
14279 ac_status=$?
14280 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14281 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14282 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14283 (eval $ac_try) 2>&5
14284 ac_status=$?
14285 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14286 test $ac_status = 0; }; }; then :
14287
14288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14289$as_echo "yes" >&6; }
14290
14291else
14292 $as_echo "$as_me: failed program was:" >&5
14293sed 's/^/| /' conftest.$ac_ext >&5
14294
14295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14296$as_echo "no" >&6; }
14297 as_fn_error $? "
14298 *** This kernel does not include the required zlib inflate support.
14299 *** Rebuild the kernel with CONFIG_ZLIB_INFLATE=y|m set." "$LINENO" 5
14300
14301
14302
14303fi
14304 rm -Rf build
14305
14306
14307
14308
14309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CONFIG_ZLIB_DEFLATE is defined" >&5
14310$as_echo_n "checking whether CONFIG_ZLIB_DEFLATE is defined... " >&6; }
14311
14312
14313cat confdefs.h - <<_ACEOF >conftest.c
14314
14315
14316 #if !defined(CONFIG_ZLIB_DEFLATE) && \
14317 !defined(CONFIG_ZLIB_DEFLATE_MODULE)
14318 #error CONFIG_ZLIB_DEFLATE not defined
14319 #endif
14320
14321int
14322main (void)
14323{
14324
14325 ;
14326 return 0;
14327}
14328
14329_ACEOF
14330
14331
14332 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14333 echo "obj-m := conftest.o" >build/Makefile
14334 modpost_flag=''
14335 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14336 if { 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'
14337 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14338 (eval $ac_try) 2>&5
14339 ac_status=$?
14340 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14341 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14342 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14343 (eval $ac_try) 2>&5
14344 ac_status=$?
14345 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14346 test $ac_status = 0; }; }; then :
14347
14348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14349$as_echo "yes" >&6; }
14350
14351else
14352 $as_echo "$as_me: failed program was:" >&5
14353sed 's/^/| /' conftest.$ac_ext >&5
14354
14355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14356$as_echo "no" >&6; }
14357 as_fn_error $? "
14358 *** This kernel does not include the required zlib deflate support.
14359 *** Rebuild the kernel with CONFIG_ZLIB_DEFLATE=y|m set." "$LINENO" 5
14360
14361
14362
14363fi
14364 rm -Rf build
14365
14366
14367
14368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether zlib_deflate_workspacesize() wants 2 args" >&5
14369$as_echo_n "checking whether zlib_deflate_workspacesize() wants 2 args... " >&6; }
14370
14371
14372cat confdefs.h - <<_ACEOF >conftest.c
14373
14374
14375 #include <linux/zlib.h>
14376
14377int
14378main (void)
14379{
14380
14381 return zlib_deflate_workspacesize(MAX_WBITS, MAX_MEM_LEVEL);
14382
14383 ;
14384 return 0;
14385}
14386
14387_ACEOF
14388
14389
14390 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14391 echo "obj-m := conftest.o" >build/Makefile
14392 modpost_flag=''
14393 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14394 if { 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'
14395 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14396 (eval $ac_try) 2>&5
14397 ac_status=$?
14398 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14399 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14400 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14401 (eval $ac_try) 2>&5
14402 ac_status=$?
14403 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14404 test $ac_status = 0; }; }; then :
14405
14406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14407$as_echo "yes" >&6; }
14408
14409$as_echo "#define HAVE_2ARGS_ZLIB_DEFLATE_WORKSPACESIZE 1" >>confdefs.h
14410
14411
14412else
14413 $as_echo "$as_me: failed program was:" >&5
14414sed 's/^/| /' conftest.$ac_ext >&5
14415
14416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14417$as_echo "no" >&6; }
14418
14419
14420
14421fi
14422 rm -Rf build
14423
14424
14425
14426
14427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct shrink_control exists" >&5
14428$as_echo_n "checking whether struct shrink_control exists... " >&6; }
14429
14430
14431cat confdefs.h - <<_ACEOF >conftest.c
14432
14433
14434 #include <linux/mm.h>
14435
14436int
14437main (void)
14438{
14439
14440 struct shrink_control sc __attribute__ ((unused));
14441
14442 sc.nr_to_scan = 0;
14443 sc.gfp_mask = GFP_KERNEL;
14444
14445 ;
14446 return 0;
14447}
14448
14449_ACEOF
14450
14451
14452 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14453 echo "obj-m := conftest.o" >build/Makefile
14454 modpost_flag=''
14455 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14456 if { 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'
14457 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14458 (eval $ac_try) 2>&5
14459 ac_status=$?
14460 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14461 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14462 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14463 (eval $ac_try) 2>&5
14464 ac_status=$?
14465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14466 test $ac_status = 0; }; }; then :
14467
14468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14469$as_echo "yes" >&6; }
14470
14471$as_echo "#define HAVE_SHRINK_CONTROL_STRUCT 1" >>confdefs.h
14472
14473
14474else
14475 $as_echo "$as_me: failed program was:" >&5
14476sed 's/^/| /' conftest.$ac_ext >&5
14477
14478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14479$as_echo "no" >&6; }
14480
14481
14482
14483fi
14484 rm -Rf build
14485
14486
14487
14488
14489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct rw_semaphore member wait_lock is raw" >&5
14490$as_echo_n "checking whether struct rw_semaphore member wait_lock is raw... " >&6; }
14491 tmp_flags="$EXTRA_KCFLAGS"
14492 EXTRA_KCFLAGS="-Werror"
14493
14494
14495cat confdefs.h - <<_ACEOF >conftest.c
14496
14497
14498 #include <linux/rwsem.h>
14499
14500int
14501main (void)
14502{
14503
14504 struct rw_semaphore dummy_semaphore __attribute__ ((unused));
14505 raw_spinlock_t dummy_lock __attribute__ ((unused));
14506 dummy_semaphore.wait_lock = dummy_lock;
14507
14508 ;
14509 return 0;
14510}
14511
14512_ACEOF
14513
14514
14515 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14516 echo "obj-m := conftest.o" >build/Makefile
14517 modpost_flag=''
14518 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14519 if { 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'
14520 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14521 (eval $ac_try) 2>&5
14522 ac_status=$?
14523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14524 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14525 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14526 (eval $ac_try) 2>&5
14527 ac_status=$?
14528 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14529 test $ac_status = 0; }; }; then :
14530
14531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14532$as_echo "yes" >&6; }
14533
14534$as_echo "#define RWSEM_SPINLOCK_IS_RAW 1" >>confdefs.h
14535
14536
14537else
14538 $as_echo "$as_me: failed program was:" >&5
14539sed 's/^/| /' conftest.$ac_ext >&5
14540
14541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14542$as_echo "no" >&6; }
14543
14544
14545
14546fi
14547 rm -Rf build
14548
14549
14550 EXTRA_KCFLAGS="$tmp_flags"
14551
14552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether header linux/sched/rt.h exists" >&5
14553$as_echo_n "checking whether header linux/sched/rt.h exists... " >&6; }
14554
14555
14556cat confdefs.h - <<_ACEOF >conftest.c
14557
14558
14559 #include <linux/sched.h>
14560 #include <linux/sched/rt.h>
14561
14562int
14563main (void)
14564{
14565
14566 return 0;
14567
14568 ;
14569 return 0;
14570}
14571
14572_ACEOF
14573
14574
14575 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14576 echo "obj-m := conftest.o" >build/Makefile
14577 modpost_flag=''
14578 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14579 if { 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'
14580 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14581 (eval $ac_try) 2>&5
14582 ac_status=$?
14583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14584 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14585 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14586 (eval $ac_try) 2>&5
14587 ac_status=$?
14588 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14589 test $ac_status = 0; }; }; then :
14590
14591
14592$as_echo "#define HAVE_SCHED_RT_HEADER 1" >>confdefs.h
14593
14594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14595$as_echo "yes" >&6; }
14596
14597else
14598 $as_echo "$as_me: failed program was:" >&5
14599sed 's/^/| /' conftest.$ac_ext >&5
14600
14601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14602$as_echo "no" >&6; }
14603
14604
14605
14606fi
14607 rm -Rf build
14608
14609
14610
14611
14612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vfs_getattr() wants" >&5
14613$as_echo_n "checking whether vfs_getattr() wants... " >&6; }
14614
14615
14616cat confdefs.h - <<_ACEOF >conftest.c
14617
14618
14619 #include <linux/fs.h>
14620
14621int
14622main (void)
14623{
14624
14625 vfs_getattr((struct path *) NULL,
14626 (struct kstat *)NULL);
14627
14628 ;
14629 return 0;
14630}
14631
14632_ACEOF
14633
14634
14635 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14636 echo "obj-m := conftest.o" >build/Makefile
14637 modpost_flag=''
14638 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14639 if { 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'
14640 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14641 (eval $ac_try) 2>&5
14642 ac_status=$?
14643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14644 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14645 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14646 (eval $ac_try) 2>&5
14647 ac_status=$?
14648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14649 test $ac_status = 0; }; }; then :
14650
14651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2 args" >&5
14652$as_echo "2 args" >&6; }
14653
14654$as_echo "#define HAVE_2ARGS_VFS_GETATTR 1" >>confdefs.h
14655
14656
14657else
14658 $as_echo "$as_me: failed program was:" >&5
14659sed 's/^/| /' conftest.$ac_ext >&5
14660
14661
14662
14663cat confdefs.h - <<_ACEOF >conftest.c
14664
14665
14666 #include <linux/fs.h>
14667
14668int
14669main (void)
14670{
14671
14672 vfs_getattr((struct vfsmount *)NULL,
14673 (struct dentry *)NULL,
14674 (struct kstat *)NULL);
14675
14676 ;
14677 return 0;
14678}
14679
14680_ACEOF
14681
14682
14683 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14684 echo "obj-m := conftest.o" >build/Makefile
14685 modpost_flag=''
14686 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14687 if { 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'
14688 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14689 (eval $ac_try) 2>&5
14690 ac_status=$?
14691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14692 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14693 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14694 (eval $ac_try) 2>&5
14695 ac_status=$?
14696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14697 test $ac_status = 0; }; }; then :
14698
14699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 3 args" >&5
14700$as_echo "3 args" >&6; }
14701
14702else
14703 $as_echo "$as_me: failed program was:" >&5
14704sed 's/^/| /' conftest.$ac_ext >&5
14705
14706 as_fn_error $? "unknown" "$LINENO" 5
14707
14708
14709
14710fi
14711 rm -Rf build
14712
14713
14714
14715
14716
14717fi
14718 rm -Rf build
14719
14720
14721
14722
14723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether usleep_range() is available" >&5
14724$as_echo_n "checking whether usleep_range() is available... " >&6; }
14725
14726
14727cat confdefs.h - <<_ACEOF >conftest.c
14728
14729
14730 #include <linux/delay.h>
14731
14732int
14733main (void)
14734{
14735
14736 usleep_range(0, 0);
14737
14738 ;
14739 return 0;
14740}
14741
14742_ACEOF
14743
14744
14745 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14746 echo "obj-m := conftest.o" >build/Makefile
14747 modpost_flag=''
14748 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14749 if { 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'
14750 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14751 (eval $ac_try) 2>&5
14752 ac_status=$?
14753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14754 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14755 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14756 (eval $ac_try) 2>&5
14757 ac_status=$?
14758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14759 test $ac_status = 0; }; }; then :
14760
14761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14762$as_echo "yes" >&6; }
14763
14764$as_echo "#define HAVE_USLEEP_RANGE 1" >>confdefs.h
14765
14766
14767else
14768 $as_echo "$as_me: failed program was:" >&5
14769sed 's/^/| /' conftest.$ac_ext >&5
14770
14771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14772$as_echo "no" >&6; }
14773
14774
14775
14776fi
14777 rm -Rf build
14778
14779
14780
14781
14782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct kmem_cache has allocflags" >&5
14783$as_echo_n "checking whether struct kmem_cache has allocflags... " >&6; }
14784
14785
14786cat confdefs.h - <<_ACEOF >conftest.c
14787
14788
14789 #include <linux/slab.h>
14790
14791int
14792main (void)
14793{
14794
14795 struct kmem_cache cachep __attribute__ ((unused));
14796 cachep.allocflags = GFP_KERNEL;
14797
14798 ;
14799 return 0;
14800}
14801
14802_ACEOF
14803
14804
14805 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14806 echo "obj-m := conftest.o" >build/Makefile
14807 modpost_flag=''
14808 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14809 if { 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'
14810 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14811 (eval $ac_try) 2>&5
14812 ac_status=$?
14813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14814 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14815 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14816 (eval $ac_try) 2>&5
14817 ac_status=$?
14818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14819 test $ac_status = 0; }; }; then :
14820
14821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14822$as_echo "yes" >&6; }
14823
14824$as_echo "#define HAVE_KMEM_CACHE_ALLOCFLAGS 1" >>confdefs.h
14825
14826
14827else
14828 $as_echo "$as_me: failed program was:" >&5
14829sed 's/^/| /' conftest.$ac_ext >&5
14830
14831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14832$as_echo "no" >&6; }
14833
14834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct kmem_cache has gfpflags" >&5
14835$as_echo_n "checking whether struct kmem_cache has gfpflags... " >&6; }
14836
14837
14838cat confdefs.h - <<_ACEOF >conftest.c
14839
14840
14841 #include <linux/slab.h>
14842
14843int
14844main (void)
14845{
14846
14847 struct kmem_cache cachep __attribute__ ((unused));
14848 cachep.gfpflags = GFP_KERNEL;
14849
14850 ;
14851 return 0;
14852}
14853
14854_ACEOF
14855
14856
14857 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14858 echo "obj-m := conftest.o" >build/Makefile
14859 modpost_flag=''
14860 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14861 if { 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'
14862 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14863 (eval $ac_try) 2>&5
14864 ac_status=$?
14865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14866 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14867 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14868 (eval $ac_try) 2>&5
14869 ac_status=$?
14870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14871 test $ac_status = 0; }; }; then :
14872
14873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14874$as_echo "yes" >&6; }
14875
14876$as_echo "#define HAVE_KMEM_CACHE_GFPFLAGS 1" >>confdefs.h
14877
14878
14879else
14880 $as_echo "$as_me: failed program was:" >&5
14881sed 's/^/| /' conftest.$ac_ext >&5
14882
14883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14884$as_echo "no" >&6; }
14885
14886
14887
14888fi
14889 rm -Rf build
14890
14891
14892
14893
14894
14895fi
14896 rm -Rf build
14897
14898
14899
14900
14901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wait_on_bit() takes an action" >&5
14902$as_echo_n "checking whether wait_on_bit() takes an action... " >&6; }
14903
14904
14905cat confdefs.h - <<_ACEOF >conftest.c
14906
14907
14908 #include <linux/wait.h>
14909
14910int
14911main (void)
14912{
14913
14914 int (*action)(void *) = NULL;
14915 wait_on_bit(NULL, 0, action, 0);
14916
14917 ;
14918 return 0;
14919}
14920
14921_ACEOF
14922
14923
14924 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14925 echo "obj-m := conftest.o" >build/Makefile
14926 modpost_flag=''
14927 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14928 if { 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'
14929 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14930 (eval $ac_try) 2>&5
14931 ac_status=$?
14932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14933 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14934 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14935 (eval $ac_try) 2>&5
14936 ac_status=$?
14937 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14938 test $ac_status = 0; }; }; then :
14939
14940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14941$as_echo "yes" >&6; }
14942
14943$as_echo "#define HAVE_WAIT_ON_BIT_ACTION 1" >>confdefs.h
14944
14945
14946else
14947 $as_echo "$as_me: failed program was:" >&5
14948sed 's/^/| /' conftest.$ac_ext >&5
14949
14950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14951$as_echo "no" >&6; }
14952
14953
14954
14955fi
14956 rm -Rf build
14957
14958
14959
14960 ;;
14961 user) ;;
14962 all)
14963
14964
14965# Check whether --with-linux was given.
14966if test "${with_linux+set}" = set; then :
14967 withval=$with_linux; kernelsrc="$withval"
14968fi
14969
14970
14971
14972# Check whether --with-linux-obj was given.
14973if test "${with_linux_obj+set}" = set; then :
14974 withval=$with_linux_obj; kernelbuild="$withval"
14975fi
14976
14977
14978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel source directory" >&5
14979$as_echo_n "checking kernel source directory... " >&6; }
14980 if test -z "$kernelsrc"; then
14981 if test -e "/lib/modules/$(uname -r)/source"; then
14982 headersdir="/lib/modules/$(uname -r)/source"
14983 sourcelink=$(readlink -f "$headersdir")
14984 elif test -e "/lib/modules/$(uname -r)/build"; then
14985 headersdir="/lib/modules/$(uname -r)/build"
14986 sourcelink=$(readlink -f "$headersdir")
14987 else
14988 sourcelink=$(ls -1d /usr/src/kernels/* \
14989 /usr/src/linux-* \
14990 2>/dev/null | grep -v obj | tail -1)
14991 fi
14992
14993 if test -n "$sourcelink" && test -e ${sourcelink}; then
14994 kernelsrc=`readlink -f ${sourcelink}`
14995 else
14996 kernelsrc="Not found"
14997 fi
14998 else
14999 if test "$kernelsrc" = "NONE"; then
15000 kernsrcver=NONE
15001 fi
15002 fi
15003
15004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernelsrc" >&5
15005$as_echo "$kernelsrc" >&6; }
15006 if test ! -d "$kernelsrc"; then
15007 as_fn_error $? "
15008 *** Please make sure the kernel devel package for your distribution
15009 *** is installed and then try again. If that fails, you can specify the
15010 *** location of the kernel source with the '--with-linux=PATH' option." "$LINENO" 5
15011 fi
15012
15013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel build directory" >&5
15014$as_echo_n "checking kernel build directory... " >&6; }
15015 if test -z "$kernelbuild"; then
15016 if test -e "/lib/modules/$(uname -r)/build"; then
15017 kernelbuild=`readlink -f /lib/modules/$(uname -r)/build`
15018 elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then
15019 kernelbuild=${kernelsrc}-obj/${target_cpu}/${target_cpu}
15020 elif test -d ${kernelsrc}-obj/${target_cpu}/default; then
15021 kernelbuild=${kernelsrc}-obj/${target_cpu}/default
15022 elif test -d `dirname ${kernelsrc}`/build-${target_cpu}; then
15023 kernelbuild=`dirname ${kernelsrc}`/build-${target_cpu}
15024 else
15025 kernelbuild=${kernelsrc}
15026 fi
15027 fi
15028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernelbuild" >&5
15029$as_echo "$kernelbuild" >&6; }
15030
15031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel source version" >&5
15032$as_echo_n "checking kernel source version... " >&6; }
15033 utsrelease1=$kernelbuild/include/linux/version.h
15034 utsrelease2=$kernelbuild/include/linux/utsrelease.h
15035 utsrelease3=$kernelbuild/include/generated/utsrelease.h
15036 if test -r $utsrelease1 && fgrep -q UTS_RELEASE $utsrelease1; then
15037 utsrelease=linux/version.h
15038 elif test -r $utsrelease2 && fgrep -q UTS_RELEASE $utsrelease2; then
15039 utsrelease=linux/utsrelease.h
15040 elif test -r $utsrelease3 && fgrep -q UTS_RELEASE $utsrelease3; then
15041 utsrelease=generated/utsrelease.h
15042 fi
15043
15044 if test "$utsrelease"; then
15045 kernsrcver=`(echo "#include <$utsrelease>";
15046 echo "kernsrcver=UTS_RELEASE") |
15047 cpp -I $kernelbuild/include |
15048 grep "^kernsrcver=" | cut -d \" -f 2`
15049
15050 if test -z "$kernsrcver"; then
15051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
15052$as_echo "Not found" >&6; }
15053 as_fn_error $? "*** Cannot determine kernel version." "$LINENO" 5
15054 fi
15055 else
15056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
15057$as_echo "Not found" >&6; }
15058 if test "x$enable_linux_builtin" != xyes; then
15059 as_fn_error $? "*** Cannot find UTS_RELEASE definition." "$LINENO" 5
15060 else
15061 as_fn_error $? "
15062 *** Cannot find UTS_RELEASE definition.
15063 *** Please run 'make prepare' inside the kernel source tree." "$LINENO" 5
15064 fi
15065 fi
15066
15067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernsrcver" >&5
15068$as_echo "$kernsrcver" >&6; }
15069
15070 LINUX=${kernelsrc}
15071 LINUX_OBJ=${kernelbuild}
15072 LINUX_VERSION=${kernsrcver}
15073
15074
15075
15076
15077
15078
15079 modpost=$LINUX/scripts/Makefile.modpost
15080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel file name for module symbols" >&5
15081$as_echo_n "checking kernel file name for module symbols... " >&6; }
15082 if test "x$enable_linux_builtin" != xyes -a -f "$modpost"; then
15083 if grep -q Modules.symvers $modpost; then
15084 LINUX_SYMBOLS=Modules.symvers
15085 else
15086 LINUX_SYMBOLS=Module.symvers
15087 fi
15088
15089 if ! test -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then
15090 as_fn_error $? "
15091 *** Please make sure the kernel devel package for your distribution
15092 *** is installed. If you are building with a custom kernel, make sure the
15093 *** kernel is configured, built, and the '--with-linux=PATH' configure
15094 *** option refers to the location of the kernel source." "$LINENO" 5
15095 fi
15096 else
15097 LINUX_SYMBOLS=NONE
15098 fi
15099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINUX_SYMBOLS" >&5
15100$as_echo "$LINUX_SYMBOLS" >&6; }
15101
15102
15103
15104
15105 if test "${LINUX_OBJ}" != "${LINUX}"; then
15106 KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
15107 fi
15108
15109
15110 KERNELCPPFLAGS="$KERNELCPPFLAGS -Wstrict-prototypes"
15111
15112
15113
15114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether debugging is enabled" >&5
15115$as_echo_n "checking whether debugging is enabled... " >&6; }
15116 # Check whether --enable-debug was given.
15117if test "${enable_debug+set}" = set; then :
15118 enableval=$enable_debug;
15119else
15120 enable_debug=no
15121fi
15122
15123
15124 if test "x$enable_debug" = xyes; then :
15125
15126 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG -Werror"
15127 DEBUG_CFLAGS="-DDEBUG -Werror"
15128 DEBUG_SPL="_with_debug"
15129
15130else
15131
15132 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DNDEBUG"
15133 DEBUG_CFLAGS="-DNDEBUG"
15134 DEBUG_SPL="_without_debug"
15135
15136fi
15137
15138
15139
15140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug" >&5
15141$as_echo "$enable_debug" >&6; }
15142
15143
15144 # Check whether --enable-debug-kmem was given.
15145if test "${enable_debug_kmem+set}" = set; then :
15146 enableval=$enable_debug_kmem;
15147else
15148 enable_debug_kmem=no
15149fi
15150
15151
15152 if test "x$enable_debug_kmem" = xyes; then :
15153
15154 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_KMEM"
15155 DEBUG_KMEM="_with_debug_kmem"
15156
15157$as_echo "#define DEBUG_KMEM 1" >>confdefs.h
15158
15159
15160else
15161
15162 DEBUG_KMEM="_without_debug_kmem"
15163
15164fi
15165
15166
15167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether basic kmem accounting is enabled" >&5
15168$as_echo_n "checking whether basic kmem accounting is enabled... " >&6; }
15169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug_kmem" >&5
15170$as_echo "$enable_debug_kmem" >&6; }
15171
15172
15173 # Check whether --enable-debug-kmem-tracking was given.
15174if test "${enable_debug_kmem_tracking+set}" = set; then :
15175 enableval=$enable_debug_kmem_tracking;
15176else
15177 enable_debug_kmem_tracking=no
15178fi
15179
15180
15181 if test "x$enable_debug_kmem_tracking" = xyes; then :
15182
15183 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_KMEM_TRACKING"
15184 DEBUG_KMEM_TRACKING="_with_debug_kmem_tracking"
15185
15186$as_echo "#define DEBUG_KMEM_TRACKING 1" >>confdefs.h
15187
15188
15189else
15190
15191 DEBUG_KMEM_TRACKING="_without_debug_kmem_tracking"
15192
15193fi
15194
15195
15196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether detailed kmem tracking is enabled" >&5
15197$as_echo_n "checking whether detailed kmem tracking is enabled... " >&6; }
15198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug_kmem_tracking" >&5
15199$as_echo "$enable_debug_kmem_tracking" >&6; }
15200
15201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether modules can be built" >&5
15202$as_echo_n "checking whether modules can be built... " >&6; }
15203
15204
15205cat confdefs.h - <<_ACEOF >conftest.c
15206
15207
15208int
15209main (void)
15210{
15211
15212 ;
15213 return 0;
15214}
15215
15216_ACEOF
15217
15218
15219 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15220 echo "obj-m := conftest.o" >build/Makefile
15221 modpost_flag=''
15222 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15223 if { 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'
15224 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15225 (eval $ac_try) 2>&5
15226 ac_status=$?
15227 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15228 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15229 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15230 (eval $ac_try) 2>&5
15231 ac_status=$?
15232 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15233 test $ac_status = 0; }; }; then :
15234
15235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15236$as_echo "yes" >&6; }
15237
15238else
15239 $as_echo "$as_me: failed program was:" >&5
15240sed 's/^/| /' conftest.$ac_ext >&5
15241
15242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15243$as_echo "no" >&6; }
15244 if test "x$enable_linux_builtin" != xyes; then
15245 as_fn_error $? "*** Unable to build an empty module." "$LINENO" 5
15246 else
15247 as_fn_error $? "
15248 *** Unable to build an empty module.
15249 *** Please run 'make scripts' inside the kernel source tree." "$LINENO" 5
15250 fi
15251
15252
15253
15254fi
15255 rm -Rf build
15256
15257
15258
15259 if test "x$cross_compiling" != xyes; then :
15260
15261 if test "$cross_compiling" = yes; then :
15262 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15263$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15264as_fn_error $? "cannot run test program while cross compiling
15265See \`config.log' for more details" "$LINENO" 5; }
15266else
15267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15268/* end confdefs.h. */
15269
15270
15271 #include "$LINUX/include/linux/license.h"
15272
15273int
15274main ()
15275{
15276
15277 return !license_is_gpl_compatible(
15278 "$SPL_META_LICENSE");
15279
15280 ;
15281 return 0;
15282}
15283
15284_ACEOF
15285if ac_fn_c_try_run "$LINENO"; then :
15286
15287
15288$as_echo "#define SPL_IS_GPL_COMPATIBLE 1" >>confdefs.h
15289
15290
15291fi
15292rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15293 conftest.$ac_objext conftest.beam conftest.$ac_ext
15294fi
15295
15296
15297fi
15298
15299
15300 # Check whether --enable-atomic-spinlocks was given.
15301if test "${enable_atomic_spinlocks+set}" = set; then :
15302 enableval=$enable_atomic_spinlocks;
15303else
15304 enable_atomic_spinlocks=check
15305fi
15306
15307
15308
15309
15310cat confdefs.h - <<_ACEOF >conftest.c
15311
15312
15313 #include <linux/fs.h>
15314
15315int
15316main (void)
15317{
15318
15319 atomic64_t *ptr __attribute__ ((unused));
15320
15321 ;
15322 return 0;
15323}
15324
15325_ACEOF
15326
15327
15328 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15329 echo "obj-m := conftest.o" >build/Makefile
15330 modpost_flag=''
15331 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15332 if { 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'
15333 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15334 (eval $ac_try) 2>&5
15335 ac_status=$?
15336 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15337 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15338 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15339 (eval $ac_try) 2>&5
15340 ac_status=$?
15341 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15342 test $ac_status = 0; }; }; then :
15343
15344 have_atomic64_t=yes
15345
15346$as_echo "#define HAVE_ATOMIC64_T 1" >>confdefs.h
15347
15348
15349else
15350 $as_echo "$as_me: failed program was:" >&5
15351sed 's/^/| /' conftest.$ac_ext >&5
15352
15353 have_atomic64_t=no
15354
15355
15356
15357fi
15358 rm -Rf build
15359
15360
15361
15362 if test "x$enable_atomic_spinlocks" = xcheck; then :
15363
15364 if test "x$have_atomic64_t" = xyes; then :
15365
15366 enable_atomic_spinlocks=no
15367
15368else
15369
15370 enable_atomic_spinlocks=yes
15371
15372fi
15373
15374fi
15375
15376 if test "x$enable_atomic_spinlocks" = xyes; then :
15377
15378
15379$as_echo "#define ATOMIC_SPINLOCK 1" >>confdefs.h
15380
15381
15382else
15383
15384 if test "x$have_atomic64_t" = xno; then :
15385
15386 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15387$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15388as_fn_error $? "--disable-atomic-spinlocks given but required atomic64 support is unavailable
15389See \`config.log' for more details" "$LINENO" 5; }
15390
15391fi
15392
15393fi
15394
15395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether atomic types use spinlocks" >&5
15396$as_echo_n "checking whether atomic types use spinlocks... " >&6; }
15397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_atomic_spinlocks" >&5
15398$as_echo "$enable_atomic_spinlocks" >&6; }
15399
15400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel defines atomic64_t" >&5
15401$as_echo_n "checking whether kernel defines atomic64_t... " >&6; }
15402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_atomic64_t" >&5
15403$as_echo "$have_atomic64_t" >&6; }
15404
15405
15406 tmp_flags="$EXTRA_KCFLAGS"
15407 EXTRA_KCFLAGS="-Werror"
15408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether old 2-argument shrinker exists" >&5
15409$as_echo_n "checking whether old 2-argument shrinker exists... " >&6; }
15410
15411
15412cat confdefs.h - <<_ACEOF >conftest.c
15413
15414
15415 #include <linux/mm.h>
15416
15417 int shrinker_cb(int nr_to_scan, gfp_t gfp_mask);
15418
15419int
15420main (void)
15421{
15422
15423 struct shrinker cache_shrinker = {
15424 .shrink = shrinker_cb,
15425 .seeks = DEFAULT_SEEKS,
15426 };
15427 register_shrinker(&cache_shrinker);
15428
15429 ;
15430 return 0;
15431}
15432
15433_ACEOF
15434
15435
15436 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15437 echo "obj-m := conftest.o" >build/Makefile
15438 modpost_flag=''
15439 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15440 if { 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'
15441 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15442 (eval $ac_try) 2>&5
15443 ac_status=$?
15444 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15445 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15446 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15447 (eval $ac_try) 2>&5
15448 ac_status=$?
15449 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15450 test $ac_status = 0; }; }; then :
15451
15452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15453$as_echo "yes" >&6; }
15454
15455$as_echo "#define HAVE_2ARGS_OLD_SHRINKER_CALLBACK 1" >>confdefs.h
15456
15457
15458else
15459 $as_echo "$as_me: failed program was:" >&5
15460sed 's/^/| /' conftest.$ac_ext >&5
15461
15462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15463$as_echo "no" >&6; }
15464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether old 3-argument shrinker exists" >&5
15465$as_echo_n "checking whether old 3-argument shrinker exists... " >&6; }
15466
15467
15468cat confdefs.h - <<_ACEOF >conftest.c
15469
15470
15471 #include <linux/mm.h>
15472
15473 int shrinker_cb(struct shrinker *, int nr_to_scan,
15474 gfp_t gfp_mask);
15475
15476int
15477main (void)
15478{
15479
15480 struct shrinker cache_shrinker = {
15481 .shrink = shrinker_cb,
15482 .seeks = DEFAULT_SEEKS,
15483 };
15484 register_shrinker(&cache_shrinker);
15485
15486 ;
15487 return 0;
15488}
15489
15490_ACEOF
15491
15492
15493 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15494 echo "obj-m := conftest.o" >build/Makefile
15495 modpost_flag=''
15496 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15497 if { 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'
15498 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15499 (eval $ac_try) 2>&5
15500 ac_status=$?
15501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15502 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15503 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15504 (eval $ac_try) 2>&5
15505 ac_status=$?
15506 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15507 test $ac_status = 0; }; }; then :
15508
15509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15510$as_echo "yes" >&6; }
15511
15512$as_echo "#define HAVE_3ARGS_SHRINKER_CALLBACK 1" >>confdefs.h
15513
15514
15515else
15516 $as_echo "$as_me: failed program was:" >&5
15517sed 's/^/| /' conftest.$ac_ext >&5
15518
15519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15520$as_echo "no" >&6; }
15521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether new 2-argument shrinker exists" >&5
15522$as_echo_n "checking whether new 2-argument shrinker exists... " >&6; }
15523
15524
15525cat confdefs.h - <<_ACEOF >conftest.c
15526
15527
15528 #include <linux/mm.h>
15529
15530 int shrinker_cb(struct shrinker *,
15531 struct shrink_control *sc);
15532
15533int
15534main (void)
15535{
15536
15537 struct shrinker cache_shrinker = {
15538 .shrink = shrinker_cb,
15539 .seeks = DEFAULT_SEEKS,
15540 };
15541 register_shrinker(&cache_shrinker);
15542
15543 ;
15544 return 0;
15545}
15546
15547_ACEOF
15548
15549
15550 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15551 echo "obj-m := conftest.o" >build/Makefile
15552 modpost_flag=''
15553 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15554 if { 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'
15555 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15556 (eval $ac_try) 2>&5
15557 ac_status=$?
15558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15559 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15560 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15561 (eval $ac_try) 2>&5
15562 ac_status=$?
15563 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15564 test $ac_status = 0; }; }; then :
15565
15566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15567$as_echo "yes" >&6; }
15568
15569$as_echo "#define HAVE_2ARGS_NEW_SHRINKER_CALLBACK 1" >>confdefs.h
15570
15571
15572else
15573 $as_echo "$as_me: failed program was:" >&5
15574sed 's/^/| /' conftest.$ac_ext >&5
15575
15576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15577$as_echo "no" >&6; }
15578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ->count_objects callback exists" >&5
15579$as_echo_n "checking whether ->count_objects callback exists... " >&6; }
15580
15581
15582cat confdefs.h - <<_ACEOF >conftest.c
15583
15584
15585 #include <linux/mm.h>
15586
15587 unsigned long shrinker_cb(
15588 struct shrinker *,
15589 struct shrink_control *sc);
15590
15591int
15592main (void)
15593{
15594
15595 struct shrinker cache_shrinker = {
15596 .count_objects = shrinker_cb,
15597 .scan_objects = shrinker_cb,
15598 .seeks = DEFAULT_SEEKS,
15599 };
15600 register_shrinker(&cache_shrinker);
15601
15602 ;
15603 return 0;
15604}
15605
15606_ACEOF
15607
15608
15609 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15610 echo "obj-m := conftest.o" >build/Makefile
15611 modpost_flag=''
15612 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15613 if { 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'
15614 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15615 (eval $ac_try) 2>&5
15616 ac_status=$?
15617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15618 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15619 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15620 (eval $ac_try) 2>&5
15621 ac_status=$?
15622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15623 test $ac_status = 0; }; }; then :
15624
15625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15626$as_echo "yes" >&6; }
15627
15628$as_echo "#define HAVE_SPLIT_SHRINKER_CALLBACK 1" >>confdefs.h
15629
15630
15631else
15632 $as_echo "$as_me: failed program was:" >&5
15633sed 's/^/| /' conftest.$ac_ext >&5
15634
15635 as_fn_error $? "error" "$LINENO" 5
15636
15637
15638
15639fi
15640 rm -Rf build
15641
15642
15643
15644
15645
15646fi
15647 rm -Rf build
15648
15649
15650
15651
15652
15653fi
15654 rm -Rf build
15655
15656
15657
15658
15659
15660fi
15661 rm -Rf build
15662
15663
15664 EXTRA_KCFLAGS="$tmp_flags"
15665
15666
15667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct ctl_table has ctl_name" >&5
15668$as_echo_n "checking whether struct ctl_table has ctl_name... " >&6; }
15669
15670
15671cat confdefs.h - <<_ACEOF >conftest.c
15672
15673
15674 #include <linux/sysctl.h>
15675
15676int
15677main (void)
15678{
15679
15680 struct ctl_table ctl __attribute__ ((unused));
15681 ctl.ctl_name = 0;
15682
15683 ;
15684 return 0;
15685}
15686
15687_ACEOF
15688
15689
15690 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15691 echo "obj-m := conftest.o" >build/Makefile
15692 modpost_flag=''
15693 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15694 if { 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'
15695 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15696 (eval $ac_try) 2>&5
15697 ac_status=$?
15698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15699 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15700 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15701 (eval $ac_try) 2>&5
15702 ac_status=$?
15703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15704 test $ac_status = 0; }; }; then :
15705
15706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15707$as_echo "yes" >&6; }
15708
15709$as_echo "#define HAVE_CTL_NAME 1" >>confdefs.h
15710
15711
15712else
15713 $as_echo "$as_me: failed program was:" >&5
15714sed 's/^/| /' conftest.$ac_ext >&5
15715
15716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15717$as_echo "no" >&6; }
15718
15719
15720
15721fi
15722 rm -Rf build
15723
15724
15725
15726
15727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether PDE_DATA() is available" >&5
15728$as_echo_n "checking whether PDE_DATA() is available... " >&6; }
15729
15730
15731
15732cat confdefs.h - <<_ACEOF >conftest.c
15733
15734
15735 #include <linux/proc_fs.h>
15736
15737int
15738main (void)
15739{
15740
15741 PDE_DATA(NULL);
15742
15743 ;
15744 return 0;
15745}
15746
15747_ACEOF
15748
15749
15750 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15751 echo "obj-m := conftest.o" >build/Makefile
15752 modpost_flag=''
15753 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15754 if { 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'
15755 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15756 (eval $ac_try) 2>&5
15757 ac_status=$?
15758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15759 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15760 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15761 (eval $ac_try) 2>&5
15762 ac_status=$?
15763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15764 test $ac_status = 0; }; }; then :
15765 rc=0
15766else
15767 $as_echo "$as_me: failed program was:" >&5
15768sed 's/^/| /' conftest.$ac_ext >&5
15769 rc=1
15770
15771
15772fi
15773 rm -Rf build
15774
15775
15776 if test $rc -ne 0; then :
15777
15778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15779$as_echo "no" >&6; }
15780
15781 else
15782 if test "x$enable_linux_builtin" != xyes; then
15783
15784 grep -q -E '[[:space:]]PDE_DATA[[:space:]]' \
15785 $LINUX_OBJ/Module*.symvers 2>/dev/null
15786 rc=$?
15787 if test $rc -ne 0; then
15788 export=0
15789 for file in ; do
15790 grep -q -E "EXPORT_SYMBOL.*(PDE_DATA)" \
15791 "$LINUX_OBJ/$file" 2>/dev/null
15792 rc=$?
15793 if test $rc -eq 0; then
15794 export=1
15795 break;
15796 fi
15797 done
15798 if test $export -eq 0; then :
15799 rc=1
15800 else :
15801 rc=0
15802 fi
15803 else :
15804 rc=0
15805 fi
15806
15807 fi
15808 if test $rc -ne 0; then :
15809
15810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15811$as_echo "no" >&6; }
15812
15813 else :
15814
15815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15816$as_echo "yes" >&6; }
15817
15818$as_echo "#define HAVE_PDE_DATA 1" >>confdefs.h
15819
15820
15821 fi
15822 fi
15823
15824
15825 tmp_flags="$EXTRA_KCFLAGS"
15826 EXTRA_KCFLAGS="-Werror"
15827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether set_fs_pwd() requires const struct path *" >&5
15828$as_echo_n "checking whether set_fs_pwd() requires const struct path *... " >&6; }
15829
15830
15831cat confdefs.h - <<_ACEOF >conftest.c
15832
15833
15834 #include <linux/spinlock.h>
15835 #include <linux/fs_struct.h>
15836 #include <linux/path.h>
15837 void (*const set_fs_pwd_func)
15838 (struct fs_struct *, const struct path *)
15839 = set_fs_pwd;
15840
15841int
15842main (void)
15843{
15844
15845 return 0;
15846
15847 ;
15848 return 0;
15849}
15850
15851_ACEOF
15852
15853
15854 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15855 echo "obj-m := conftest.o" >build/Makefile
15856 modpost_flag=''
15857 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15858 if { 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'
15859 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15860 (eval $ac_try) 2>&5
15861 ac_status=$?
15862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15863 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15864 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15865 (eval $ac_try) 2>&5
15866 ac_status=$?
15867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15868 test $ac_status = 0; }; }; then :
15869
15870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15871$as_echo "yes" >&6; }
15872
15873$as_echo "#define HAVE_SET_FS_PWD_WITH_CONST 1" >>confdefs.h
15874
15875
15876else
15877 $as_echo "$as_me: failed program was:" >&5
15878sed 's/^/| /' conftest.$ac_ext >&5
15879
15880
15881
15882cat confdefs.h - <<_ACEOF >conftest.c
15883
15884
15885 #include <linux/spinlock.h>
15886 #include <linux/fs_struct.h>
15887 #include <linux/path.h>
15888 void (*const set_fs_pwd_func)
15889 (struct fs_struct *, struct path *)
15890 = set_fs_pwd;
15891
15892int
15893main (void)
15894{
15895
15896 return 0;
15897
15898 ;
15899 return 0;
15900}
15901
15902_ACEOF
15903
15904
15905 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15906 echo "obj-m := conftest.o" >build/Makefile
15907 modpost_flag=''
15908 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15909 if { 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'
15910 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15911 (eval $ac_try) 2>&5
15912 ac_status=$?
15913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15914 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15915 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15916 (eval $ac_try) 2>&5
15917 ac_status=$?
15918 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15919 test $ac_status = 0; }; }; then :
15920
15921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15922$as_echo "no" >&6; }
15923
15924else
15925 $as_echo "$as_me: failed program was:" >&5
15926sed 's/^/| /' conftest.$ac_ext >&5
15927
15928 as_fn_error $? "unknown" "$LINENO" 5
15929
15930
15931
15932fi
15933 rm -Rf build
15934
15935
15936
15937
15938
15939fi
15940 rm -Rf build
15941
15942
15943 EXTRA_KCFLAGS="$tmp_flags"
15944
15945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vfs_unlink() wants 2 args" >&5
15946$as_echo_n "checking whether vfs_unlink() wants 2 args... " >&6; }
15947
15948
15949cat confdefs.h - <<_ACEOF >conftest.c
15950
15951
15952 #include <linux/fs.h>
15953
15954int
15955main (void)
15956{
15957
15958 vfs_unlink((struct inode *) NULL, (struct dentry *) NULL);
15959
15960 ;
15961 return 0;
15962}
15963
15964_ACEOF
15965
15966
15967 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15968 echo "obj-m := conftest.o" >build/Makefile
15969 modpost_flag=''
15970 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15971 if { 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'
15972 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15973 (eval $ac_try) 2>&5
15974 ac_status=$?
15975 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15976 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15977 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15978 (eval $ac_try) 2>&5
15979 ac_status=$?
15980 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15981 test $ac_status = 0; }; }; then :
15982
15983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15984$as_echo "yes" >&6; }
15985
15986$as_echo "#define HAVE_2ARGS_VFS_UNLINK 1" >>confdefs.h
15987
15988
15989else
15990 $as_echo "$as_me: failed program was:" >&5
15991sed 's/^/| /' conftest.$ac_ext >&5
15992
15993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15994$as_echo "no" >&6; }
15995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vfs_unlink() wants 3 args" >&5
15996$as_echo_n "checking whether vfs_unlink() wants 3 args... " >&6; }
15997
15998
15999cat confdefs.h - <<_ACEOF >conftest.c
16000
16001
16002 #include <linux/fs.h>
16003
16004int
16005main (void)
16006{
16007
16008 vfs_unlink((struct inode *) NULL,
16009 (struct dentry *) NULL,
16010 (struct inode **) NULL);
16011
16012 ;
16013 return 0;
16014}
16015
16016_ACEOF
16017
16018
16019 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16020 echo "obj-m := conftest.o" >build/Makefile
16021 modpost_flag=''
16022 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16023 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16024 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16025 (eval $ac_try) 2>&5
16026 ac_status=$?
16027 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16028 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16029 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16030 (eval $ac_try) 2>&5
16031 ac_status=$?
16032 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16033 test $ac_status = 0; }; }; then :
16034
16035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16036$as_echo "yes" >&6; }
16037
16038$as_echo "#define HAVE_3ARGS_VFS_UNLINK 1" >>confdefs.h
16039
16040
16041else
16042 $as_echo "$as_me: failed program was:" >&5
16043sed 's/^/| /' conftest.$ac_ext >&5
16044
16045 as_fn_error $? "no" "$LINENO" 5
16046
16047
16048
16049fi
16050 rm -Rf build
16051
16052
16053
16054
16055
16056
16057fi
16058 rm -Rf build
16059
16060
16061
16062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vfs_rename() wants 4 args" >&5
16063$as_echo_n "checking whether vfs_rename() wants 4 args... " >&6; }
16064
16065
16066cat confdefs.h - <<_ACEOF >conftest.c
16067
16068
16069 #include <linux/fs.h>
16070
16071int
16072main (void)
16073{
16074
16075 vfs_rename((struct inode *) NULL, (struct dentry *) NULL,
16076 (struct inode *) NULL, (struct dentry *) NULL);
16077
16078 ;
16079 return 0;
16080}
16081
16082_ACEOF
16083
16084
16085 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16086 echo "obj-m := conftest.o" >build/Makefile
16087 modpost_flag=''
16088 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16089 if { 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'
16090 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16091 (eval $ac_try) 2>&5
16092 ac_status=$?
16093 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16094 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16095 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16096 (eval $ac_try) 2>&5
16097 ac_status=$?
16098 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16099 test $ac_status = 0; }; }; then :
16100
16101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16102$as_echo "yes" >&6; }
16103
16104$as_echo "#define HAVE_4ARGS_VFS_RENAME 1" >>confdefs.h
16105
16106
16107else
16108 $as_echo "$as_me: failed program was:" >&5
16109sed 's/^/| /' conftest.$ac_ext >&5
16110
16111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16112$as_echo "no" >&6; }
16113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vfs_rename() wants 5 args" >&5
16114$as_echo_n "checking whether vfs_rename() wants 5 args... " >&6; }
16115
16116
16117cat confdefs.h - <<_ACEOF >conftest.c
16118
16119
16120 #include <linux/fs.h>
16121
16122int
16123main (void)
16124{
16125
16126 vfs_rename((struct inode *) NULL,
16127 (struct dentry *) NULL,
16128 (struct inode *) NULL,
16129 (struct dentry *) NULL,
16130 (struct inode **) NULL);
16131
16132 ;
16133 return 0;
16134}
16135
16136_ACEOF
16137
16138
16139 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16140 echo "obj-m := conftest.o" >build/Makefile
16141 modpost_flag=''
16142 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16143 if { 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'
16144 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16145 (eval $ac_try) 2>&5
16146 ac_status=$?
16147 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16148 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16149 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16150 (eval $ac_try) 2>&5
16151 ac_status=$?
16152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16153 test $ac_status = 0; }; }; then :
16154
16155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16156$as_echo "yes" >&6; }
16157
16158$as_echo "#define HAVE_5ARGS_VFS_RENAME 1" >>confdefs.h
16159
16160
16161else
16162 $as_echo "$as_me: failed program was:" >&5
16163sed 's/^/| /' conftest.$ac_ext >&5
16164
16165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16166$as_echo "no" >&6; }
16167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vfs_rename() wants 6 args" >&5
16168$as_echo_n "checking whether vfs_rename() wants 6 args... " >&6; }
16169
16170
16171cat confdefs.h - <<_ACEOF >conftest.c
16172
16173
16174 #include <linux/fs.h>
16175
16176int
16177main (void)
16178{
16179
16180 vfs_rename((struct inode *) NULL,
16181 (struct dentry *) NULL,
16182 (struct inode *) NULL,
16183 (struct dentry *) NULL,
16184 (struct inode **) NULL,
16185 (unsigned int) 0);
16186
16187 ;
16188 return 0;
16189}
16190
16191_ACEOF
16192
16193
16194 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16195 echo "obj-m := conftest.o" >build/Makefile
16196 modpost_flag=''
16197 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16198 if { 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'
16199 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16200 (eval $ac_try) 2>&5
16201 ac_status=$?
16202 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16203 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16204 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16205 (eval $ac_try) 2>&5
16206 ac_status=$?
16207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16208 test $ac_status = 0; }; }; then :
16209
16210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16211$as_echo "yes" >&6; }
16212
16213$as_echo "#define HAVE_6ARGS_VFS_RENAME 1" >>confdefs.h
16214
16215
16216else
16217 $as_echo "$as_me: failed program was:" >&5
16218sed 's/^/| /' conftest.$ac_ext >&5
16219
16220 as_fn_error $? "no" "$LINENO" 5
16221
16222
16223
16224fi
16225 rm -Rf build
16226
16227
16228
16229
16230
16231fi
16232 rm -Rf build
16233
16234
16235
16236
16237
16238fi
16239 rm -Rf build
16240
16241
16242
16243
16244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vfs_fsync() wants 2 args" >&5
16245$as_echo_n "checking whether vfs_fsync() wants 2 args... " >&6; }
16246
16247
16248cat confdefs.h - <<_ACEOF >conftest.c
16249
16250
16251 #include <linux/fs.h>
16252
16253int
16254main (void)
16255{
16256
16257 vfs_fsync(NULL, 0);
16258
16259 ;
16260 return 0;
16261}
16262
16263_ACEOF
16264
16265
16266 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16267 echo "obj-m := conftest.o" >build/Makefile
16268 modpost_flag=''
16269 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16270 if { 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'
16271 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16272 (eval $ac_try) 2>&5
16273 ac_status=$?
16274 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16275 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16276 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16277 (eval $ac_try) 2>&5
16278 ac_status=$?
16279 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16280 test $ac_status = 0; }; }; then :
16281
16282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16283$as_echo "yes" >&6; }
16284
16285$as_echo "#define HAVE_2ARGS_VFS_FSYNC 1" >>confdefs.h
16286
16287
16288else
16289 $as_echo "$as_me: failed program was:" >&5
16290sed 's/^/| /' conftest.$ac_ext >&5
16291
16292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16293$as_echo "no" >&6; }
16294
16295
16296
16297fi
16298 rm -Rf build
16299
16300
16301
16302
16303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether truncate_range() inode operation is available" >&5
16304$as_echo_n "checking whether truncate_range() inode operation is available... " >&6; }
16305
16306
16307cat confdefs.h - <<_ACEOF >conftest.c
16308
16309
16310 #include <linux/fs.h>
16311
16312int
16313main (void)
16314{
16315
16316 struct inode_operations ops;
16317 ops.truncate_range = NULL;
16318
16319 ;
16320 return 0;
16321}
16322
16323_ACEOF
16324
16325
16326 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16327 echo "obj-m := conftest.o" >build/Makefile
16328 modpost_flag=''
16329 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16330 if { 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'
16331 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16332 (eval $ac_try) 2>&5
16333 ac_status=$?
16334 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16335 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16336 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16337 (eval $ac_try) 2>&5
16338 ac_status=$?
16339 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16340 test $ac_status = 0; }; }; then :
16341
16342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16343$as_echo "yes" >&6; }
16344
16345$as_echo "#define HAVE_INODE_TRUNCATE_RANGE 1" >>confdefs.h
16346
16347
16348else
16349 $as_echo "$as_me: failed program was:" >&5
16350sed 's/^/| /' conftest.$ac_ext >&5
16351
16352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16353$as_echo "no" >&6; }
16354
16355
16356
16357fi
16358 rm -Rf build
16359
16360
16361
16362
16363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct fs_struct uses spinlock_t" >&5
16364$as_echo_n "checking whether struct fs_struct uses spinlock_t... " >&6; }
16365 tmp_flags="$EXTRA_KCFLAGS"
16366 EXTRA_KCFLAGS="-Werror"
16367
16368
16369cat confdefs.h - <<_ACEOF >conftest.c
16370
16371
16372 #include <linux/sched.h>
16373 #include <linux/fs_struct.h>
16374
16375int
16376main (void)
16377{
16378
16379 static struct fs_struct fs;
16380 spin_lock_init(&fs.lock);
16381
16382 ;
16383 return 0;
16384}
16385
16386_ACEOF
16387
16388
16389 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16390 echo "obj-m := conftest.o" >build/Makefile
16391 modpost_flag=''
16392 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16393 if { 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'
16394 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16395 (eval $ac_try) 2>&5
16396 ac_status=$?
16397 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16398 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16399 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16400 (eval $ac_try) 2>&5
16401 ac_status=$?
16402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16403 test $ac_status = 0; }; }; then :
16404
16405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16406$as_echo "yes" >&6; }
16407
16408$as_echo "#define HAVE_FS_STRUCT_SPINLOCK 1" >>confdefs.h
16409
16410
16411else
16412 $as_echo "$as_me: failed program was:" >&5
16413sed 's/^/| /' conftest.$ac_ext >&5
16414
16415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16416$as_echo "no" >&6; }
16417
16418
16419
16420fi
16421 rm -Rf build
16422
16423
16424 EXTRA_KCFLAGS="$tmp_flags"
16425
16426
16427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kuid_t/kgid_t is available" >&5
16428$as_echo_n "checking whether kuid_t/kgid_t is available... " >&6; }
16429
16430
16431cat confdefs.h - <<_ACEOF >conftest.c
16432
16433
16434 #include <linux/uidgid.h>
16435
16436int
16437main (void)
16438{
16439
16440 kuid_t userid = KUIDT_INIT(0);
16441 kgid_t groupid = KGIDT_INIT(0);
16442
16443 ;
16444 return 0;
16445}
16446
16447_ACEOF
16448
16449
16450 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16451 echo "obj-m := conftest.o" >build/Makefile
16452 modpost_flag=''
16453 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16454 if { 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'
16455 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16456 (eval $ac_try) 2>&5
16457 ac_status=$?
16458 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16459 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16460 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16461 (eval $ac_try) 2>&5
16462 ac_status=$?
16463 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16464 test $ac_status = 0; }; }; then :
16465
16466
16467
16468cat confdefs.h - <<_ACEOF >conftest.c
16469
16470
16471 #include <linux/uidgid.h>
16472
16473int
16474main (void)
16475{
16476
16477 kuid_t userid = 0;
16478 kgid_t groupid = 0;
16479
16480 ;
16481 return 0;
16482}
16483
16484_ACEOF
16485
16486
16487 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16488 echo "obj-m := conftest.o" >build/Makefile
16489 modpost_flag=''
16490 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16491 if { 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'
16492 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16493 (eval $ac_try) 2>&5
16494 ac_status=$?
16495 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16496 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16497 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16498 (eval $ac_try) 2>&5
16499 ac_status=$?
16500 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16501 test $ac_status = 0; }; }; then :
16502
16503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; optional" >&5
16504$as_echo "yes; optional" >&6; }
16505
16506else
16507 $as_echo "$as_me: failed program was:" >&5
16508sed 's/^/| /' conftest.$ac_ext >&5
16509
16510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; mandatory" >&5
16511$as_echo "yes; mandatory" >&6; }
16512
16513$as_echo "#define HAVE_KUIDGID_T 1" >>confdefs.h
16514
16515
16516
16517
16518fi
16519 rm -Rf build
16520
16521
16522
16523else
16524 $as_echo "$as_me: failed program was:" >&5
16525sed 's/^/| /' conftest.$ac_ext >&5
16526
16527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16528$as_echo "no" >&6; }
16529
16530
16531
16532fi
16533 rm -Rf build
16534
16535
16536
16537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __put_task_struct() is available" >&5
16538$as_echo_n "checking whether __put_task_struct() is available... " >&6; }
16539
16540
16541
16542cat confdefs.h - <<_ACEOF >conftest.c
16543
16544
16545 #include <linux/sched.h>
16546
16547int
16548main (void)
16549{
16550
16551 __put_task_struct(NULL);
16552
16553 ;
16554 return 0;
16555}
16556
16557_ACEOF
16558
16559
16560 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16561 echo "obj-m := conftest.o" >build/Makefile
16562 modpost_flag=''
16563 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16564 if { 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'
16565 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16566 (eval $ac_try) 2>&5
16567 ac_status=$?
16568 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16569 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16570 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16571 (eval $ac_try) 2>&5
16572 ac_status=$?
16573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16574 test $ac_status = 0; }; }; then :
16575 rc=0
16576else
16577 $as_echo "$as_me: failed program was:" >&5
16578sed 's/^/| /' conftest.$ac_ext >&5
16579 rc=1
16580
16581
16582fi
16583 rm -Rf build
16584
16585
16586 if test $rc -ne 0; then :
16587
16588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16589$as_echo "no" >&6; }
16590
16591 else
16592 if test "x$enable_linux_builtin" != xyes; then
16593
16594 grep -q -E '[[:space:]]__put_task_struct[[:space:]]' \
16595 $LINUX_OBJ/Module*.symvers 2>/dev/null
16596 rc=$?
16597 if test $rc -ne 0; then
16598 export=0
16599 for file in ; do
16600 grep -q -E "EXPORT_SYMBOL.*(__put_task_struct)" \
16601 "$LINUX_OBJ/$file" 2>/dev/null
16602 rc=$?
16603 if test $rc -eq 0; then
16604 export=1
16605 break;
16606 fi
16607 done
16608 if test $export -eq 0; then :
16609 rc=1
16610 else :
16611 rc=0
16612 fi
16613 else :
16614 rc=0
16615 fi
16616
16617 fi
16618 if test $rc -ne 0; then :
16619
16620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16621$as_echo "no" >&6; }
16622
16623 else :
16624
16625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16626$as_echo "yes" >&6; }
16627
16628$as_echo "#define HAVE_PUT_TASK_STRUCT 1" >>confdefs.h
16629
16630
16631 fi
16632 fi
16633
16634
16635
16636
16637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->fallocate() exists" >&5
16638$as_echo_n "checking whether fops->fallocate() exists... " >&6; }
16639
16640
16641cat confdefs.h - <<_ACEOF >conftest.c
16642
16643
16644 #include <linux/fs.h>
16645
16646int
16647main (void)
16648{
16649
16650 long (*fallocate) (struct file *, int, loff_t, loff_t) = NULL;
16651 struct file_operations fops __attribute__ ((unused)) = {
16652 .fallocate = fallocate,
16653 };
16654
16655 ;
16656 return 0;
16657}
16658
16659_ACEOF
16660
16661
16662 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16663 echo "obj-m := conftest.o" >build/Makefile
16664 modpost_flag=''
16665 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16666 if { 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'
16667 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16668 (eval $ac_try) 2>&5
16669 ac_status=$?
16670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16671 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16672 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16673 (eval $ac_try) 2>&5
16674 ac_status=$?
16675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16676 test $ac_status = 0; }; }; then :
16677
16678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16679$as_echo "yes" >&6; }
16680
16681$as_echo "#define HAVE_FILE_FALLOCATE 1" >>confdefs.h
16682
16683
16684else
16685 $as_echo "$as_me: failed program was:" >&5
16686sed 's/^/| /' conftest.$ac_ext >&5
16687
16688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16689$as_echo "no" >&6; }
16690
16691
16692
16693fi
16694 rm -Rf build
16695
16696
16697
16698
16699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->fallocate() exists" >&5
16700$as_echo_n "checking whether iops->fallocate() exists... " >&6; }
16701
16702
16703cat confdefs.h - <<_ACEOF >conftest.c
16704
16705
16706 #include <linux/fs.h>
16707
16708int
16709main (void)
16710{
16711
16712 long (*fallocate) (struct inode *, int, loff_t, loff_t) = NULL;
16713 struct inode_operations fops __attribute__ ((unused)) = {
16714 .fallocate = fallocate,
16715 };
16716
16717 ;
16718 return 0;
16719}
16720
16721_ACEOF
16722
16723
16724 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16725 echo "obj-m := conftest.o" >build/Makefile
16726 modpost_flag=''
16727 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16728 if { 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'
16729 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16730 (eval $ac_try) 2>&5
16731 ac_status=$?
16732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16733 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16734 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16735 (eval $ac_try) 2>&5
16736 ac_status=$?
16737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16738 test $ac_status = 0; }; }; then :
16739
16740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16741$as_echo "yes" >&6; }
16742
16743$as_echo "#define HAVE_INODE_FALLOCATE 1" >>confdefs.h
16744
16745
16746else
16747 $as_echo "$as_me: failed program was:" >&5
16748sed 's/^/| /' conftest.$ac_ext >&5
16749
16750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16751$as_echo "no" >&6; }
16752
16753
16754
16755fi
16756 rm -Rf build
16757
16758
16759
16760
16761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->fallocate() exists" >&5
16762$as_echo_n "checking whether fops->fallocate() exists... " >&6; }
16763
16764
16765cat confdefs.h - <<_ACEOF >conftest.c
16766
16767
16768 #include <linux/fs.h>
16769
16770int
16771main (void)
16772{
16773
16774 long (*fallocate) (struct file *, int, loff_t, loff_t) = NULL;
16775 struct file_operations_no_const fops __attribute__ ((unused)) = {
16776 .fallocate = fallocate,
16777 };
16778
16779 ;
16780 return 0;
16781}
16782
16783_ACEOF
16784
16785
16786 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16787 echo "obj-m := conftest.o" >build/Makefile
16788 modpost_flag=''
16789 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16790 if { 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'
16791 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16792 (eval $ac_try) 2>&5
16793 ac_status=$?
16794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16795 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16796 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16797 (eval $ac_try) 2>&5
16798 ac_status=$?
16799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16800 test $ac_status = 0; }; }; then :
16801
16802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16803$as_echo "yes" >&6; }
16804
16805$as_echo "#define HAVE_FILE_FALLOCATE 1" >>confdefs.h
16806
16807
16808else
16809 $as_echo "$as_me: failed program was:" >&5
16810sed 's/^/| /' conftest.$ac_ext >&5
16811
16812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16813$as_echo "no" >&6; }
16814
16815
16816
16817fi
16818 rm -Rf build
16819
16820
16821
16822
16823
16824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CONFIG_ZLIB_INFLATE is defined" >&5
16825$as_echo_n "checking whether CONFIG_ZLIB_INFLATE is defined... " >&6; }
16826
16827
16828cat confdefs.h - <<_ACEOF >conftest.c
16829
16830
16831 #if !defined(CONFIG_ZLIB_INFLATE) && \
16832 !defined(CONFIG_ZLIB_INFLATE_MODULE)
16833 #error CONFIG_ZLIB_INFLATE not defined
16834 #endif
16835
16836int
16837main (void)
16838{
16839
16840 ;
16841 return 0;
16842}
16843
16844_ACEOF
16845
16846
16847 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16848 echo "obj-m := conftest.o" >build/Makefile
16849 modpost_flag=''
16850 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16851 if { 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'
16852 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16853 (eval $ac_try) 2>&5
16854 ac_status=$?
16855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16856 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16857 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16858 (eval $ac_try) 2>&5
16859 ac_status=$?
16860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16861 test $ac_status = 0; }; }; then :
16862
16863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16864$as_echo "yes" >&6; }
16865
16866else
16867 $as_echo "$as_me: failed program was:" >&5
16868sed 's/^/| /' conftest.$ac_ext >&5
16869
16870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16871$as_echo "no" >&6; }
16872 as_fn_error $? "
16873 *** This kernel does not include the required zlib inflate support.
16874 *** Rebuild the kernel with CONFIG_ZLIB_INFLATE=y|m set." "$LINENO" 5
16875
16876
16877
16878fi
16879 rm -Rf build
16880
16881
16882
16883
16884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CONFIG_ZLIB_DEFLATE is defined" >&5
16885$as_echo_n "checking whether CONFIG_ZLIB_DEFLATE is defined... " >&6; }
16886
16887
16888cat confdefs.h - <<_ACEOF >conftest.c
16889
16890
16891 #if !defined(CONFIG_ZLIB_DEFLATE) && \
16892 !defined(CONFIG_ZLIB_DEFLATE_MODULE)
16893 #error CONFIG_ZLIB_DEFLATE not defined
16894 #endif
16895
16896int
16897main (void)
16898{
16899
16900 ;
16901 return 0;
16902}
16903
16904_ACEOF
16905
16906
16907 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16908 echo "obj-m := conftest.o" >build/Makefile
16909 modpost_flag=''
16910 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16911 if { 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'
16912 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16913 (eval $ac_try) 2>&5
16914 ac_status=$?
16915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16916 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16917 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16918 (eval $ac_try) 2>&5
16919 ac_status=$?
16920 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16921 test $ac_status = 0; }; }; then :
16922
16923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16924$as_echo "yes" >&6; }
16925
16926else
16927 $as_echo "$as_me: failed program was:" >&5
16928sed 's/^/| /' conftest.$ac_ext >&5
16929
16930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16931$as_echo "no" >&6; }
16932 as_fn_error $? "
16933 *** This kernel does not include the required zlib deflate support.
16934 *** Rebuild the kernel with CONFIG_ZLIB_DEFLATE=y|m set." "$LINENO" 5
16935
16936
16937
16938fi
16939 rm -Rf build
16940
16941
16942
16943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether zlib_deflate_workspacesize() wants 2 args" >&5
16944$as_echo_n "checking whether zlib_deflate_workspacesize() wants 2 args... " >&6; }
16945
16946
16947cat confdefs.h - <<_ACEOF >conftest.c
16948
16949
16950 #include <linux/zlib.h>
16951
16952int
16953main (void)
16954{
16955
16956 return zlib_deflate_workspacesize(MAX_WBITS, MAX_MEM_LEVEL);
16957
16958 ;
16959 return 0;
16960}
16961
16962_ACEOF
16963
16964
16965 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16966 echo "obj-m := conftest.o" >build/Makefile
16967 modpost_flag=''
16968 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16969 if { 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'
16970 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16971 (eval $ac_try) 2>&5
16972 ac_status=$?
16973 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16974 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16975 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16976 (eval $ac_try) 2>&5
16977 ac_status=$?
16978 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16979 test $ac_status = 0; }; }; then :
16980
16981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16982$as_echo "yes" >&6; }
16983
16984$as_echo "#define HAVE_2ARGS_ZLIB_DEFLATE_WORKSPACESIZE 1" >>confdefs.h
16985
16986
16987else
16988 $as_echo "$as_me: failed program was:" >&5
16989sed 's/^/| /' conftest.$ac_ext >&5
16990
16991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16992$as_echo "no" >&6; }
16993
16994
16995
16996fi
16997 rm -Rf build
16998
16999
17000
17001
17002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct shrink_control exists" >&5
17003$as_echo_n "checking whether struct shrink_control exists... " >&6; }
17004
17005
17006cat confdefs.h - <<_ACEOF >conftest.c
17007
17008
17009 #include <linux/mm.h>
17010
17011int
17012main (void)
17013{
17014
17015 struct shrink_control sc __attribute__ ((unused));
17016
17017 sc.nr_to_scan = 0;
17018 sc.gfp_mask = GFP_KERNEL;
17019
17020 ;
17021 return 0;
17022}
17023
17024_ACEOF
17025
17026
17027 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17028 echo "obj-m := conftest.o" >build/Makefile
17029 modpost_flag=''
17030 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17031 if { 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'
17032 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17033 (eval $ac_try) 2>&5
17034 ac_status=$?
17035 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17036 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17037 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17038 (eval $ac_try) 2>&5
17039 ac_status=$?
17040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17041 test $ac_status = 0; }; }; then :
17042
17043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17044$as_echo "yes" >&6; }
17045
17046$as_echo "#define HAVE_SHRINK_CONTROL_STRUCT 1" >>confdefs.h
17047
17048
17049else
17050 $as_echo "$as_me: failed program was:" >&5
17051sed 's/^/| /' conftest.$ac_ext >&5
17052
17053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17054$as_echo "no" >&6; }
17055
17056
17057
17058fi
17059 rm -Rf build
17060
17061
17062
17063
17064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct rw_semaphore member wait_lock is raw" >&5
17065$as_echo_n "checking whether struct rw_semaphore member wait_lock is raw... " >&6; }
17066 tmp_flags="$EXTRA_KCFLAGS"
17067 EXTRA_KCFLAGS="-Werror"
17068
17069
17070cat confdefs.h - <<_ACEOF >conftest.c
17071
17072
17073 #include <linux/rwsem.h>
17074
17075int
17076main (void)
17077{
17078
17079 struct rw_semaphore dummy_semaphore __attribute__ ((unused));
17080 raw_spinlock_t dummy_lock __attribute__ ((unused));
17081 dummy_semaphore.wait_lock = dummy_lock;
17082
17083 ;
17084 return 0;
17085}
17086
17087_ACEOF
17088
17089
17090 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17091 echo "obj-m := conftest.o" >build/Makefile
17092 modpost_flag=''
17093 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17094 if { 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'
17095 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17096 (eval $ac_try) 2>&5
17097 ac_status=$?
17098 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17099 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17100 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17101 (eval $ac_try) 2>&5
17102 ac_status=$?
17103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17104 test $ac_status = 0; }; }; then :
17105
17106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17107$as_echo "yes" >&6; }
17108
17109$as_echo "#define RWSEM_SPINLOCK_IS_RAW 1" >>confdefs.h
17110
17111
17112else
17113 $as_echo "$as_me: failed program was:" >&5
17114sed 's/^/| /' conftest.$ac_ext >&5
17115
17116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17117$as_echo "no" >&6; }
17118
17119
17120
17121fi
17122 rm -Rf build
17123
17124
17125 EXTRA_KCFLAGS="$tmp_flags"
17126
17127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether header linux/sched/rt.h exists" >&5
17128$as_echo_n "checking whether header linux/sched/rt.h exists... " >&6; }
17129
17130
17131cat confdefs.h - <<_ACEOF >conftest.c
17132
17133
17134 #include <linux/sched.h>
17135 #include <linux/sched/rt.h>
17136
17137int
17138main (void)
17139{
17140
17141 return 0;
17142
17143 ;
17144 return 0;
17145}
17146
17147_ACEOF
17148
17149
17150 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17151 echo "obj-m := conftest.o" >build/Makefile
17152 modpost_flag=''
17153 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17154 if { 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'
17155 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17156 (eval $ac_try) 2>&5
17157 ac_status=$?
17158 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17159 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17160 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17161 (eval $ac_try) 2>&5
17162 ac_status=$?
17163 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17164 test $ac_status = 0; }; }; then :
17165
17166
17167$as_echo "#define HAVE_SCHED_RT_HEADER 1" >>confdefs.h
17168
17169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17170$as_echo "yes" >&6; }
17171
17172else
17173 $as_echo "$as_me: failed program was:" >&5
17174sed 's/^/| /' conftest.$ac_ext >&5
17175
17176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17177$as_echo "no" >&6; }
17178
17179
17180
17181fi
17182 rm -Rf build
17183
17184
17185
17186
17187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vfs_getattr() wants" >&5
17188$as_echo_n "checking whether vfs_getattr() wants... " >&6; }
17189
17190
17191cat confdefs.h - <<_ACEOF >conftest.c
17192
17193
17194 #include <linux/fs.h>
17195
17196int
17197main (void)
17198{
17199
17200 vfs_getattr((struct path *) NULL,
17201 (struct kstat *)NULL);
17202
17203 ;
17204 return 0;
17205}
17206
17207_ACEOF
17208
17209
17210 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17211 echo "obj-m := conftest.o" >build/Makefile
17212 modpost_flag=''
17213 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17214 if { 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'
17215 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17216 (eval $ac_try) 2>&5
17217 ac_status=$?
17218 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17219 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17220 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17221 (eval $ac_try) 2>&5
17222 ac_status=$?
17223 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17224 test $ac_status = 0; }; }; then :
17225
17226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2 args" >&5
17227$as_echo "2 args" >&6; }
17228
17229$as_echo "#define HAVE_2ARGS_VFS_GETATTR 1" >>confdefs.h
17230
17231
17232else
17233 $as_echo "$as_me: failed program was:" >&5
17234sed 's/^/| /' conftest.$ac_ext >&5
17235
17236
17237
17238cat confdefs.h - <<_ACEOF >conftest.c
17239
17240
17241 #include <linux/fs.h>
17242
17243int
17244main (void)
17245{
17246
17247 vfs_getattr((struct vfsmount *)NULL,
17248 (struct dentry *)NULL,
17249 (struct kstat *)NULL);
17250
17251 ;
17252 return 0;
17253}
17254
17255_ACEOF
17256
17257
17258 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17259 echo "obj-m := conftest.o" >build/Makefile
17260 modpost_flag=''
17261 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17262 if { 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'
17263 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17264 (eval $ac_try) 2>&5
17265 ac_status=$?
17266 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17267 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17268 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17269 (eval $ac_try) 2>&5
17270 ac_status=$?
17271 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17272 test $ac_status = 0; }; }; then :
17273
17274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 3 args" >&5
17275$as_echo "3 args" >&6; }
17276
17277else
17278 $as_echo "$as_me: failed program was:" >&5
17279sed 's/^/| /' conftest.$ac_ext >&5
17280
17281 as_fn_error $? "unknown" "$LINENO" 5
17282
17283
17284
17285fi
17286 rm -Rf build
17287
17288
17289
17290
17291
17292fi
17293 rm -Rf build
17294
17295
17296
17297
17298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether usleep_range() is available" >&5
17299$as_echo_n "checking whether usleep_range() is available... " >&6; }
17300
17301
17302cat confdefs.h - <<_ACEOF >conftest.c
17303
17304
17305 #include <linux/delay.h>
17306
17307int
17308main (void)
17309{
17310
17311 usleep_range(0, 0);
17312
17313 ;
17314 return 0;
17315}
17316
17317_ACEOF
17318
17319
17320 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17321 echo "obj-m := conftest.o" >build/Makefile
17322 modpost_flag=''
17323 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17324 if { 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'
17325 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17326 (eval $ac_try) 2>&5
17327 ac_status=$?
17328 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17329 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17330 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17331 (eval $ac_try) 2>&5
17332 ac_status=$?
17333 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17334 test $ac_status = 0; }; }; then :
17335
17336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17337$as_echo "yes" >&6; }
17338
17339$as_echo "#define HAVE_USLEEP_RANGE 1" >>confdefs.h
17340
17341
17342else
17343 $as_echo "$as_me: failed program was:" >&5
17344sed 's/^/| /' conftest.$ac_ext >&5
17345
17346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17347$as_echo "no" >&6; }
17348
17349
17350
17351fi
17352 rm -Rf build
17353
17354
17355
17356
17357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct kmem_cache has allocflags" >&5
17358$as_echo_n "checking whether struct kmem_cache has allocflags... " >&6; }
17359
17360
17361cat confdefs.h - <<_ACEOF >conftest.c
17362
17363
17364 #include <linux/slab.h>
17365
17366int
17367main (void)
17368{
17369
17370 struct kmem_cache cachep __attribute__ ((unused));
17371 cachep.allocflags = GFP_KERNEL;
17372
17373 ;
17374 return 0;
17375}
17376
17377_ACEOF
17378
17379
17380 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17381 echo "obj-m := conftest.o" >build/Makefile
17382 modpost_flag=''
17383 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17384 if { 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'
17385 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17386 (eval $ac_try) 2>&5
17387 ac_status=$?
17388 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17389 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17390 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17391 (eval $ac_try) 2>&5
17392 ac_status=$?
17393 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17394 test $ac_status = 0; }; }; then :
17395
17396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17397$as_echo "yes" >&6; }
17398
17399$as_echo "#define HAVE_KMEM_CACHE_ALLOCFLAGS 1" >>confdefs.h
17400
17401
17402else
17403 $as_echo "$as_me: failed program was:" >&5
17404sed 's/^/| /' conftest.$ac_ext >&5
17405
17406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17407$as_echo "no" >&6; }
17408
17409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct kmem_cache has gfpflags" >&5
17410$as_echo_n "checking whether struct kmem_cache has gfpflags... " >&6; }
17411
17412
17413cat confdefs.h - <<_ACEOF >conftest.c
17414
17415
17416 #include <linux/slab.h>
17417
17418int
17419main (void)
17420{
17421
17422 struct kmem_cache cachep __attribute__ ((unused));
17423 cachep.gfpflags = GFP_KERNEL;
17424
17425 ;
17426 return 0;
17427}
17428
17429_ACEOF
17430
17431
17432 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17433 echo "obj-m := conftest.o" >build/Makefile
17434 modpost_flag=''
17435 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17436 if { 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'
17437 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17438 (eval $ac_try) 2>&5
17439 ac_status=$?
17440 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17441 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17442 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17443 (eval $ac_try) 2>&5
17444 ac_status=$?
17445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17446 test $ac_status = 0; }; }; then :
17447
17448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17449$as_echo "yes" >&6; }
17450
17451$as_echo "#define HAVE_KMEM_CACHE_GFPFLAGS 1" >>confdefs.h
17452
17453
17454else
17455 $as_echo "$as_me: failed program was:" >&5
17456sed 's/^/| /' conftest.$ac_ext >&5
17457
17458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17459$as_echo "no" >&6; }
17460
17461
17462
17463fi
17464 rm -Rf build
17465
17466
17467
17468
17469
17470fi
17471 rm -Rf build
17472
17473
17474
17475
17476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wait_on_bit() takes an action" >&5
17477$as_echo_n "checking whether wait_on_bit() takes an action... " >&6; }
17478
17479
17480cat confdefs.h - <<_ACEOF >conftest.c
17481
17482
17483 #include <linux/wait.h>
17484
17485int
17486main (void)
17487{
17488
17489 int (*action)(void *) = NULL;
17490 wait_on_bit(NULL, 0, action, 0);
17491
17492 ;
17493 return 0;
17494}
17495
17496_ACEOF
17497
17498
17499 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17500 echo "obj-m := conftest.o" >build/Makefile
17501 modpost_flag=''
17502 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17503 if { 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'
17504 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17505 (eval $ac_try) 2>&5
17506 ac_status=$?
17507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17508 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17509 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17510 (eval $ac_try) 2>&5
17511 ac_status=$?
17512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17513 test $ac_status = 0; }; }; then :
17514
17515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17516$as_echo "yes" >&6; }
17517
17518$as_echo "#define HAVE_WAIT_ON_BIT_ACTION 1" >>confdefs.h
17519
17520
17521else
17522 $as_echo "$as_me: failed program was:" >&5
17523sed 's/^/| /' conftest.$ac_ext >&5
17524
17525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17526$as_echo "no" >&6; }
17527
17528
17529
17530fi
17531 rm -Rf build
17532
17533
17534
17535
17536 ;;
17537 srpm) ;;
17538 *)
17539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5
17540$as_echo "Error!" >&6; }
17541 as_fn_error $? "Bad value \"$SPL_CONFIG\" for --with-config,
17542 user kernel|user|all|srpm" "$LINENO" 5 ;;
17543 esac
17544
17545 if test "$SPL_CONFIG" = user -o "$SPL_CONFIG" = all; then
17546 CONFIG_USER_TRUE=
17547 CONFIG_USER_FALSE='#'
17548else
17549 CONFIG_USER_TRUE='#'
17550 CONFIG_USER_FALSE=
17551fi
17552
17553 if test "$SPL_CONFIG" = kernel -o "$SPL_CONFIG" = all &&
17554 test "x$enable_linux_builtin" != xyes ; then
17555 CONFIG_KERNEL_TRUE=
17556 CONFIG_KERNEL_FALSE='#'
17557else
17558 CONFIG_KERNEL_TRUE='#'
17559 CONFIG_KERNEL_FALSE=
17560fi
17561
17562
17563
17564ac_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"
17565
17566
17567cat >confcache <<\_ACEOF
17568# This file is a shell script that caches the results of configure
17569# tests run on this system so they can be shared between configure
17570# scripts and configure runs, see configure's option --config-cache.
17571# It is not useful on other systems. If it contains results you don't
17572# want to keep, you may remove or edit it.
17573#
17574# config.status only pays attention to the cache file if you give it
17575# the --recheck option to rerun configure.
17576#
17577# `ac_cv_env_foo' variables (set or unset) will be overridden when
17578# loading this file, other *unset* `ac_cv_foo' will be assigned the
17579# following values.
17580
17581_ACEOF
17582
17583# The following way of writing the cache mishandles newlines in values,
17584# but we know of no workaround that is simple, portable, and efficient.
17585# So, we kill variables containing newlines.
17586# Ultrix sh set writes to stderr and can't be redirected directly,
17587# and sets the high bit in the cache file unless we assign to the vars.
17588(
17589 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17590 eval ac_val=\$$ac_var
17591 case $ac_val in #(
17592 *${as_nl}*)
17593 case $ac_var in #(
17594 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17595$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17596 esac
17597 case $ac_var in #(
17598 _ | IFS | as_nl) ;; #(
17599 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17600 *) { eval $ac_var=; unset $ac_var;} ;;
17601 esac ;;
17602 esac
17603 done
17604
17605 (set) 2>&1 |
17606 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17607 *${as_nl}ac_space=\ *)
17608 # `set' does not quote correctly, so add quotes: double-quote
17609 # substitution turns \\\\ into \\, and sed turns \\ into \.
17610 sed -n \
17611 "s/'/'\\\\''/g;
17612 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17613 ;; #(
17614 *)
17615 # `set' quotes correctly as required by POSIX, so do not add quotes.
17616 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17617 ;;
17618 esac |
17619 sort
17620) |
17621 sed '
17622 /^ac_cv_env_/b end
17623 t clear
17624 :clear
17625 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17626 t end
17627 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17628 :end' >>confcache
17629if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17630 if test -w "$cache_file"; then
17631 if test "x$cache_file" != "x/dev/null"; then
17632 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17633$as_echo "$as_me: updating cache $cache_file" >&6;}
17634 if test ! -f "$cache_file" || test -h "$cache_file"; then
17635 cat confcache >"$cache_file"
17636 else
17637 case $cache_file in #(
17638 */* | ?:*)
17639 mv -f confcache "$cache_file"$$ &&
17640 mv -f "$cache_file"$$ "$cache_file" ;; #(
17641 *)
17642 mv -f confcache "$cache_file" ;;
17643 esac
17644 fi
17645 fi
17646 else
17647 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17648$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17649 fi
17650fi
17651rm -f confcache
17652
17653test "x$prefix" = xNONE && prefix=$ac_default_prefix
17654# Let make expand exec_prefix.
17655test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17656
17657DEFS=-DHAVE_CONFIG_H
17658
17659ac_libobjs=
17660ac_ltlibobjs=
17661U=
17662for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17663 # 1. Remove the extension, and $U if already installed.
17664 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17665 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17666 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17667 # will be set to the directory where LIBOBJS objects are built.
17668 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17669 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17670done
17671LIBOBJS=$ac_libobjs
17672
17673LTLIBOBJS=$ac_ltlibobjs
17674
17675
17676if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17677 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
17678Usually this means the macro was only invoked conditionally." "$LINENO" 5
17679fi
17680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17681$as_echo_n "checking that generated files are newer than configure... " >&6; }
17682 if test -n "$am_sleep_pid"; then
17683 # Hide warnings about reused PIDs.
17684 wait $am_sleep_pid 2>/dev/null
17685 fi
17686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17687$as_echo "done" >&6; }
17688 if test -n "$EXEEXT"; then
17689 am__EXEEXT_TRUE=
17690 am__EXEEXT_FALSE='#'
17691else
17692 am__EXEEXT_TRUE='#'
17693 am__EXEEXT_FALSE=
17694fi
17695
17696if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17697 as_fn_error $? "conditional \"AMDEP\" was never defined.
17698Usually this means the macro was only invoked conditionally." "$LINENO" 5
17699fi
17700if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17701 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17702Usually this means the macro was only invoked conditionally." "$LINENO" 5
17703fi
17704if test -z "${CONFIG_USER_TRUE}" && test -z "${CONFIG_USER_FALSE}"; then
17705 as_fn_error $? "conditional \"CONFIG_USER\" was never defined.
17706Usually this means the macro was only invoked conditionally." "$LINENO" 5
17707fi
17708if test -z "${CONFIG_KERNEL_TRUE}" && test -z "${CONFIG_KERNEL_FALSE}"; then
17709 as_fn_error $? "conditional \"CONFIG_KERNEL\" was never defined.
17710Usually this means the macro was only invoked conditionally." "$LINENO" 5
17711fi
17712
17713: "${CONFIG_STATUS=./config.status}"
17714ac_write_fail=0
17715ac_clean_files_save=$ac_clean_files
17716ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17717{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17718$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17719as_write_fail=0
17720cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17721#! $SHELL
17722# Generated by $as_me.
17723# Run this file to recreate the current configuration.
17724# Compiler output produced by configure, useful for debugging
17725# configure, is in config.log if it exists.
17726
17727debug=false
17728ac_cs_recheck=false
17729ac_cs_silent=false
17730
17731SHELL=\${CONFIG_SHELL-$SHELL}
17732export SHELL
17733_ASEOF
17734cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17735## -------------------- ##
17736## M4sh Initialization. ##
17737## -------------------- ##
17738
17739# Be more Bourne compatible
17740DUALCASE=1; export DUALCASE # for MKS sh
17741if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17742 emulate sh
17743 NULLCMD=:
17744 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17745 # is contrary to our usage. Disable this feature.
17746 alias -g '${1+"$@"}'='"$@"'
17747 setopt NO_GLOB_SUBST
17748else
17749 case `(set -o) 2>/dev/null` in #(
17750 *posix*) :
17751 set -o posix ;; #(
17752 *) :
17753 ;;
17754esac
17755fi
17756
17757
17758as_nl='
17759'
17760export as_nl
17761# Printing a long string crashes Solaris 7 /usr/bin/printf.
17762as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17763as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17764as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17765# Prefer a ksh shell builtin over an external printf program on Solaris,
17766# but without wasting forks for bash or zsh.
17767if test -z "$BASH_VERSION$ZSH_VERSION" \
17768 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17769 as_echo='print -r --'
17770 as_echo_n='print -rn --'
17771elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17772 as_echo='printf %s\n'
17773 as_echo_n='printf %s'
17774else
17775 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17776 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17777 as_echo_n='/usr/ucb/echo -n'
17778 else
17779 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17780 as_echo_n_body='eval
17781 arg=$1;
17782 case $arg in #(
17783 *"$as_nl"*)
17784 expr "X$arg" : "X\\(.*\\)$as_nl";
17785 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17786 esac;
17787 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17788 '
17789 export as_echo_n_body
17790 as_echo_n='sh -c $as_echo_n_body as_echo'
17791 fi
17792 export as_echo_body
17793 as_echo='sh -c $as_echo_body as_echo'
17794fi
17795
17796# The user is always right.
17797if test "${PATH_SEPARATOR+set}" != set; then
17798 PATH_SEPARATOR=:
17799 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17800 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17801 PATH_SEPARATOR=';'
17802 }
17803fi
17804
17805
17806# IFS
17807# We need space, tab and new line, in precisely that order. Quoting is
17808# there to prevent editors from complaining about space-tab.
17809# (If _AS_PATH_WALK were called with IFS unset, it would disable word
17810# splitting by setting IFS to empty value.)
17811IFS=" "" $as_nl"
17812
17813# Find who we are. Look in the path if we contain no directory separator.
17814as_myself=
17815case $0 in #((
17816 *[\\/]* ) as_myself=$0 ;;
17817 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17818for as_dir in $PATH
17819do
17820 IFS=$as_save_IFS
17821 test -z "$as_dir" && as_dir=.
17822 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17823 done
17824IFS=$as_save_IFS
17825
17826 ;;
17827esac
17828# We did not find ourselves, most probably we were run as `sh COMMAND'
17829# in which case we are not to be found in the path.
17830if test "x$as_myself" = x; then
17831 as_myself=$0
17832fi
17833if test ! -f "$as_myself"; then
17834 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17835 exit 1
17836fi
17837
17838# Unset variables that we do not need and which cause bugs (e.g. in
17839# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17840# suppresses any "Segmentation fault" message there. '((' could
17841# trigger a bug in pdksh 5.2.14.
17842for as_var in BASH_ENV ENV MAIL MAILPATH
17843do eval test x\${$as_var+set} = xset \
17844 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17845done
17846PS1='$ '
17847PS2='> '
17848PS4='+ '
17849
17850# NLS nuisances.
17851LC_ALL=C
17852export LC_ALL
17853LANGUAGE=C
17854export LANGUAGE
17855
17856# CDPATH.
17857(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17858
17859
17860# as_fn_error STATUS ERROR [LINENO LOG_FD]
17861# ----------------------------------------
17862# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17863# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17864# script with STATUS, using 1 if that was 0.
17865as_fn_error ()
17866{
17867 as_status=$1; test $as_status -eq 0 && as_status=1
17868 if test "$4"; then
17869 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17870 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17871 fi
17872 $as_echo "$as_me: error: $2" >&2
17873 as_fn_exit $as_status
17874} # as_fn_error
17875
17876
17877# as_fn_set_status STATUS
17878# -----------------------
17879# Set $? to STATUS, without forking.
17880as_fn_set_status ()
17881{
17882 return $1
17883} # as_fn_set_status
17884
17885# as_fn_exit STATUS
17886# -----------------
17887# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17888as_fn_exit ()
17889{
17890 set +e
17891 as_fn_set_status $1
17892 exit $1
17893} # as_fn_exit
17894
17895# as_fn_unset VAR
17896# ---------------
17897# Portably unset VAR.
17898as_fn_unset ()
17899{
17900 { eval $1=; unset $1;}
17901}
17902as_unset=as_fn_unset
17903# as_fn_append VAR VALUE
17904# ----------------------
17905# Append the text in VALUE to the end of the definition contained in VAR. Take
17906# advantage of any shell optimizations that allow amortized linear growth over
17907# repeated appends, instead of the typical quadratic growth present in naive
17908# implementations.
17909if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17910 eval 'as_fn_append ()
17911 {
17912 eval $1+=\$2
17913 }'
17914else
17915 as_fn_append ()
17916 {
17917 eval $1=\$$1\$2
17918 }
17919fi # as_fn_append
17920
17921# as_fn_arith ARG...
17922# ------------------
17923# Perform arithmetic evaluation on the ARGs, and store the result in the
17924# global $as_val. Take advantage of shells that can avoid forks. The arguments
17925# must be portable across $(()) and expr.
17926if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17927 eval 'as_fn_arith ()
17928 {
17929 as_val=$(( $* ))
17930 }'
17931else
17932 as_fn_arith ()
17933 {
17934 as_val=`expr "$@" || test $? -eq 1`
17935 }
17936fi # as_fn_arith
17937
17938
17939if expr a : '\(a\)' >/dev/null 2>&1 &&
17940 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17941 as_expr=expr
17942else
17943 as_expr=false
17944fi
17945
17946if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17947 as_basename=basename
17948else
17949 as_basename=false
17950fi
17951
17952if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17953 as_dirname=dirname
17954else
17955 as_dirname=false
17956fi
17957
17958as_me=`$as_basename -- "$0" ||
17959$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17960 X"$0" : 'X\(//\)$' \| \
17961 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17962$as_echo X/"$0" |
17963 sed '/^.*\/\([^/][^/]*\)\/*$/{
17964 s//\1/
17965 q
17966 }
17967 /^X\/\(\/\/\)$/{
17968 s//\1/
17969 q
17970 }
17971 /^X\/\(\/\).*/{
17972 s//\1/
17973 q
17974 }
17975 s/.*/./; q'`
17976
17977# Avoid depending upon Character Ranges.
17978as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17979as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17980as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17981as_cr_digits='0123456789'
17982as_cr_alnum=$as_cr_Letters$as_cr_digits
17983
17984ECHO_C= ECHO_N= ECHO_T=
17985case `echo -n x` in #(((((
17986-n*)
17987 case `echo 'xy\c'` in
17988 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17989 xy) ECHO_C='\c';;
17990 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17991 ECHO_T=' ';;
17992 esac;;
17993*)
17994 ECHO_N='-n';;
17995esac
17996
17997rm -f conf$$ conf$$.exe conf$$.file
17998if test -d conf$$.dir; then
17999 rm -f conf$$.dir/conf$$.file
18000else
18001 rm -f conf$$.dir
18002 mkdir conf$$.dir 2>/dev/null
18003fi
18004if (echo >conf$$.file) 2>/dev/null; then
18005 if ln -s conf$$.file conf$$ 2>/dev/null; then
18006 as_ln_s='ln -s'
18007 # ... but there are two gotchas:
18008 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18009 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18010 # In both cases, we have to default to `cp -pR'.
18011 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18012 as_ln_s='cp -pR'
18013 elif ln conf$$.file conf$$ 2>/dev/null; then
18014 as_ln_s=ln
18015 else
18016 as_ln_s='cp -pR'
18017 fi
18018else
18019 as_ln_s='cp -pR'
18020fi
18021rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18022rmdir conf$$.dir 2>/dev/null
18023
18024
18025# as_fn_mkdir_p
18026# -------------
18027# Create "$as_dir" as a directory, including parents if necessary.
18028as_fn_mkdir_p ()
18029{
18030
18031 case $as_dir in #(
18032 -*) as_dir=./$as_dir;;
18033 esac
18034 test -d "$as_dir" || eval $as_mkdir_p || {
18035 as_dirs=
18036 while :; do
18037 case $as_dir in #(
18038 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18039 *) as_qdir=$as_dir;;
18040 esac
18041 as_dirs="'$as_qdir' $as_dirs"
18042 as_dir=`$as_dirname -- "$as_dir" ||
18043$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18044 X"$as_dir" : 'X\(//\)[^/]' \| \
18045 X"$as_dir" : 'X\(//\)$' \| \
18046 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18047$as_echo X"$as_dir" |
18048 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18049 s//\1/
18050 q
18051 }
18052 /^X\(\/\/\)[^/].*/{
18053 s//\1/
18054 q
18055 }
18056 /^X\(\/\/\)$/{
18057 s//\1/
18058 q
18059 }
18060 /^X\(\/\).*/{
18061 s//\1/
18062 q
18063 }
18064 s/.*/./; q'`
18065 test -d "$as_dir" && break
18066 done
18067 test -z "$as_dirs" || eval "mkdir $as_dirs"
18068 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18069
18070
18071} # as_fn_mkdir_p
18072if mkdir -p . 2>/dev/null; then
18073 as_mkdir_p='mkdir -p "$as_dir"'
18074else
18075 test -d ./-p && rmdir ./-p
18076 as_mkdir_p=false
18077fi
18078
18079
18080# as_fn_executable_p FILE
18081# -----------------------
18082# Test if FILE is an executable regular file.
18083as_fn_executable_p ()
18084{
18085 test -f "$1" && test -x "$1"
18086} # as_fn_executable_p
18087as_test_x='test -x'
18088as_executable_p=as_fn_executable_p
18089
18090# Sed expression to map a string onto a valid CPP name.
18091as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18092
18093# Sed expression to map a string onto a valid variable name.
18094as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18095
18096
18097exec 6>&1
18098## ----------------------------------- ##
18099## Main body of $CONFIG_STATUS script. ##
18100## ----------------------------------- ##
18101_ASEOF
18102test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18103
18104cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18105# Save the log message, to keep $0 and so on meaningful, and to
18106# report actual input values of CONFIG_FILES etc. instead of their
18107# values after options handling.
18108ac_log="
2078c8a7 18109This file was extended by spl $as_me 0.6.5.6, which was
904dbe44
CIK
18110generated by GNU Autoconf 2.69. Invocation command line was
18111
18112 CONFIG_FILES = $CONFIG_FILES
18113 CONFIG_HEADERS = $CONFIG_HEADERS
18114 CONFIG_LINKS = $CONFIG_LINKS
18115 CONFIG_COMMANDS = $CONFIG_COMMANDS
18116 $ $0 $@
18117
18118on `(hostname || uname -n) 2>/dev/null | sed 1q`
18119"
18120
18121_ACEOF
18122
18123case $ac_config_files in *"
18124"*) set x $ac_config_files; shift; ac_config_files=$*;;
18125esac
18126
18127case $ac_config_headers in *"
18128"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18129esac
18130
18131
18132cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18133# Files that config.status was made for.
18134config_files="$ac_config_files"
18135config_headers="$ac_config_headers"
18136config_commands="$ac_config_commands"
18137
18138_ACEOF
18139
18140cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18141ac_cs_usage="\
18142\`$as_me' instantiates files and other configuration actions
18143from templates according to the current configuration. Unless the files
18144and actions are specified as TAGs, all are instantiated by default.
18145
18146Usage: $0 [OPTION]... [TAG]...
18147
18148 -h, --help print this help, then exit
18149 -V, --version print version number and configuration settings, then exit
18150 --config print configuration, then exit
18151 -q, --quiet, --silent
18152 do not print progress messages
18153 -d, --debug don't remove temporary files
18154 --recheck update $as_me by reconfiguring in the same conditions
18155 --file=FILE[:TEMPLATE]
18156 instantiate the configuration file FILE
18157 --header=FILE[:TEMPLATE]
18158 instantiate the configuration header FILE
18159
18160Configuration files:
18161$config_files
18162
18163Configuration headers:
18164$config_headers
18165
18166Configuration commands:
18167$config_commands
18168
18169Report bugs to the package provider."
18170
18171_ACEOF
18172cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18173ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18174ac_cs_version="\\
2078c8a7 18175spl config.status 0.6.5.6
904dbe44
CIK
18176configured by $0, generated by GNU Autoconf 2.69,
18177 with options \\"\$ac_cs_config\\"
18178
18179Copyright (C) 2012 Free Software Foundation, Inc.
18180This config.status script is free software; the Free Software Foundation
18181gives unlimited permission to copy, distribute and modify it."
18182
18183ac_pwd='$ac_pwd'
18184srcdir='$srcdir'
18185INSTALL='$INSTALL'
18186MKDIR_P='$MKDIR_P'
18187AWK='$AWK'
18188test -n "\$AWK" || AWK=awk
18189_ACEOF
18190
18191cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18192# The default lists apply if the user does not specify any file.
18193ac_need_defaults=:
18194while test $# != 0
18195do
18196 case $1 in
18197 --*=?*)
18198 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18199 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18200 ac_shift=:
18201 ;;
18202 --*=)
18203 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18204 ac_optarg=
18205 ac_shift=:
18206 ;;
18207 *)
18208 ac_option=$1
18209 ac_optarg=$2
18210 ac_shift=shift
18211 ;;
18212 esac
18213
18214 case $ac_option in
18215 # Handling of the options.
18216 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18217 ac_cs_recheck=: ;;
18218 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18219 $as_echo "$ac_cs_version"; exit ;;
18220 --config | --confi | --conf | --con | --co | --c )
18221 $as_echo "$ac_cs_config"; exit ;;
18222 --debug | --debu | --deb | --de | --d | -d )
18223 debug=: ;;
18224 --file | --fil | --fi | --f )
18225 $ac_shift
18226 case $ac_optarg in
18227 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18228 '') as_fn_error $? "missing file argument" ;;
18229 esac
18230 as_fn_append CONFIG_FILES " '$ac_optarg'"
18231 ac_need_defaults=false;;
18232 --header | --heade | --head | --hea )
18233 $ac_shift
18234 case $ac_optarg in
18235 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18236 esac
18237 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18238 ac_need_defaults=false;;
18239 --he | --h)
18240 # Conflict between --help and --header
18241 as_fn_error $? "ambiguous option: \`$1'
18242Try \`$0 --help' for more information.";;
18243 --help | --hel | -h )
18244 $as_echo "$ac_cs_usage"; exit ;;
18245 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18246 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18247 ac_cs_silent=: ;;
18248
18249 # This is an error.
18250 -*) as_fn_error $? "unrecognized option: \`$1'
18251Try \`$0 --help' for more information." ;;
18252
18253 *) as_fn_append ac_config_targets " $1"
18254 ac_need_defaults=false ;;
18255
18256 esac
18257 shift
18258done
18259
18260ac_configure_extra_args=
18261
18262if $ac_cs_silent; then
18263 exec 6>/dev/null
18264 ac_configure_extra_args="$ac_configure_extra_args --silent"
18265fi
18266
18267_ACEOF
18268cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18269if \$ac_cs_recheck; then
18270 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18271 shift
18272 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18273 CONFIG_SHELL='$SHELL'
18274 export CONFIG_SHELL
18275 exec "\$@"
18276fi
18277
18278_ACEOF
18279cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18280exec 5>>config.log
18281{
18282 echo
18283 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18284## Running $as_me. ##
18285_ASBOX
18286 $as_echo "$ac_log"
18287} >&5
18288
18289_ACEOF
18290cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18291#
18292# INIT-COMMANDS
18293#
18294AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18295
18296
18297# The HP-UX ksh and POSIX shell print the target directory to stdout
18298# if CDPATH is set.
18299(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18300
18301sed_quote_subst='$sed_quote_subst'
18302double_quote_subst='$double_quote_subst'
18303delay_variable_subst='$delay_variable_subst'
18304macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18305macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18306enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18307enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18308pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18309enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
2078c8a7 18310shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
904dbe44
CIK
18311SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18312ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18313PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
18314host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18315host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18316host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18317build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18318build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18319build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18320SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18321Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18322GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18323EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18324FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18325LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18326NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18327LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18328max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18329ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18330exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18331lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18332lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18333lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18334lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18335lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18336reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18337reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18338OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18339deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18340file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18341file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18342want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18343DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18344sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18345AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18346AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18347archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18348STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18349RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18350old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18351old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18352old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18353lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18354CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18355CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18356compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18357GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18358lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18359lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
2078c8a7 18360lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
904dbe44
CIK
18361lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18362lt_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"`'
2078c8a7 18363lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
904dbe44
CIK
18364nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18365lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
2078c8a7 18366lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
904dbe44
CIK
18367objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18368MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18369lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18370lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18371lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18372lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18373lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18374need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18375MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18376DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18377NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18378LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18379OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18380OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18381libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18382shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18383extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18384archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18385enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18386export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18387whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18388compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18389old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18390old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18391archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18392archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18393module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18394module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18395with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18396allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18397no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18398hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18399hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18400hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18401hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18402hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18403hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18404hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18405inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18406link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18407always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18408export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18409exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18410include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18411prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18412postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18413file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18414variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18415need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18416need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18417version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18418runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18419shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18420shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18421libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18422library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18423soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18424install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18425postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18426postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18427finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18428finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18429hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18430sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
2078c8a7
DJL
18431configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
18432configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
904dbe44
CIK
18433hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18434enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18435enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18436enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18437old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18438striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18439
18440LTCC='$LTCC'
18441LTCFLAGS='$LTCFLAGS'
18442compiler='$compiler_DEFAULT'
18443
18444# A function that is used when there is no print builtin or printf.
18445func_fallback_echo ()
18446{
18447 eval 'cat <<_LTECHO_EOF
18448\$1
18449_LTECHO_EOF'
18450}
18451
18452# Quote evaled strings.
18453for var in SHELL \
18454ECHO \
18455PATH_SEPARATOR \
18456SED \
18457GREP \
18458EGREP \
18459FGREP \
18460LD \
18461NM \
18462LN_S \
18463lt_SP2NL \
18464lt_NL2SP \
18465reload_flag \
18466OBJDUMP \
18467deplibs_check_method \
18468file_magic_cmd \
18469file_magic_glob \
18470want_nocaseglob \
18471DLLTOOL \
18472sharedlib_from_linklib_cmd \
18473AR \
18474AR_FLAGS \
18475archiver_list_spec \
18476STRIP \
18477RANLIB \
18478CC \
18479CFLAGS \
18480compiler \
18481lt_cv_sys_global_symbol_pipe \
18482lt_cv_sys_global_symbol_to_cdecl \
2078c8a7 18483lt_cv_sys_global_symbol_to_import \
904dbe44
CIK
18484lt_cv_sys_global_symbol_to_c_name_address \
18485lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
2078c8a7 18486lt_cv_nm_interface \
904dbe44 18487nm_file_list_spec \
2078c8a7 18488lt_cv_truncate_bin \
904dbe44
CIK
18489lt_prog_compiler_no_builtin_flag \
18490lt_prog_compiler_pic \
18491lt_prog_compiler_wl \
18492lt_prog_compiler_static \
18493lt_cv_prog_compiler_c_o \
18494need_locks \
18495MANIFEST_TOOL \
18496DSYMUTIL \
18497NMEDIT \
18498LIPO \
18499OTOOL \
18500OTOOL64 \
18501shrext_cmds \
18502export_dynamic_flag_spec \
18503whole_archive_flag_spec \
18504compiler_needs_object \
18505with_gnu_ld \
18506allow_undefined_flag \
18507no_undefined_flag \
18508hardcode_libdir_flag_spec \
18509hardcode_libdir_separator \
18510exclude_expsyms \
18511include_expsyms \
18512file_list_spec \
18513variables_saved_for_relink \
18514libname_spec \
18515library_names_spec \
18516soname_spec \
18517install_override_mode \
18518finish_eval \
18519old_striplib \
18520striplib; do
18521 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18522 *[\\\\\\\`\\"\\\$]*)
2078c8a7 18523 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
904dbe44
CIK
18524 ;;
18525 *)
18526 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18527 ;;
18528 esac
18529done
18530
18531# Double-quote double-evaled strings.
18532for var in reload_cmds \
18533old_postinstall_cmds \
18534old_postuninstall_cmds \
18535old_archive_cmds \
18536extract_expsyms_cmds \
18537old_archive_from_new_cmds \
18538old_archive_from_expsyms_cmds \
18539archive_cmds \
18540archive_expsym_cmds \
18541module_cmds \
18542module_expsym_cmds \
18543export_symbols_cmds \
18544prelink_cmds \
18545postlink_cmds \
18546postinstall_cmds \
18547postuninstall_cmds \
18548finish_cmds \
18549sys_lib_search_path_spec \
2078c8a7
DJL
18550configure_time_dlsearch_path \
18551configure_time_lt_sys_library_path; do
904dbe44
CIK
18552 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18553 *[\\\\\\\`\\"\\\$]*)
2078c8a7 18554 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
904dbe44
CIK
18555 ;;
18556 *)
18557 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18558 ;;
18559 esac
18560done
18561
18562ac_aux_dir='$ac_aux_dir'
904dbe44 18563
2078c8a7 18564# See if we are running on zsh, and set the options that allow our
904dbe44 18565# commands through without removal of \ escapes INIT.
2078c8a7 18566if test -n "\${ZSH_VERSION+set}"; then
904dbe44
CIK
18567 setopt NO_GLOB_SUBST
18568fi
18569
18570
18571 PACKAGE='$PACKAGE'
18572 VERSION='$VERSION'
904dbe44
CIK
18573 RM='$RM'
18574 ofile='$ofile'
18575
18576
18577
18578
18579_ACEOF
18580
18581cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18582
18583# Handling of arguments.
18584for ac_config_target in $ac_config_targets
18585do
18586 case $ac_config_target in
18587 "spl_config.h") CONFIG_HEADERS="$CONFIG_HEADERS spl_config.h" ;;
18588 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18589 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18590 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18591 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
18592 "man/man1/Makefile") CONFIG_FILES="$CONFIG_FILES man/man1/Makefile" ;;
18593 "man/man5/Makefile") CONFIG_FILES="$CONFIG_FILES man/man5/Makefile" ;;
18594 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
18595 "cmd/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/Makefile" ;;
18596 "module/Makefile") CONFIG_FILES="$CONFIG_FILES module/Makefile" ;;
18597 "module/spl/Makefile") CONFIG_FILES="$CONFIG_FILES module/spl/Makefile" ;;
18598 "module/splat/Makefile") CONFIG_FILES="$CONFIG_FILES module/splat/Makefile" ;;
18599 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
18600 "include/fs/Makefile") CONFIG_FILES="$CONFIG_FILES include/fs/Makefile" ;;
18601 "include/linux/Makefile") CONFIG_FILES="$CONFIG_FILES include/linux/Makefile" ;;
18602 "include/rpc/Makefile") CONFIG_FILES="$CONFIG_FILES include/rpc/Makefile" ;;
18603 "include/sharefs/Makefile") CONFIG_FILES="$CONFIG_FILES include/sharefs/Makefile" ;;
18604 "include/sys/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/Makefile" ;;
18605 "include/sys/fm/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/fm/Makefile" ;;
18606 "include/sys/fs/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/fs/Makefile" ;;
18607 "include/sys/sysevent/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/sysevent/Makefile" ;;
18608 "include/util/Makefile") CONFIG_FILES="$CONFIG_FILES include/util/Makefile" ;;
18609 "include/vm/Makefile") CONFIG_FILES="$CONFIG_FILES include/vm/Makefile" ;;
18610 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
18611 "rpm/Makefile") CONFIG_FILES="$CONFIG_FILES rpm/Makefile" ;;
18612 "rpm/redhat/Makefile") CONFIG_FILES="$CONFIG_FILES rpm/redhat/Makefile" ;;
18613 "rpm/redhat/spl.spec") CONFIG_FILES="$CONFIG_FILES rpm/redhat/spl.spec" ;;
18614 "rpm/redhat/spl-kmod.spec") CONFIG_FILES="$CONFIG_FILES rpm/redhat/spl-kmod.spec" ;;
18615 "rpm/redhat/spl-dkms.spec") CONFIG_FILES="$CONFIG_FILES rpm/redhat/spl-dkms.spec" ;;
18616 "rpm/generic/Makefile") CONFIG_FILES="$CONFIG_FILES rpm/generic/Makefile" ;;
18617 "rpm/generic/spl.spec") CONFIG_FILES="$CONFIG_FILES rpm/generic/spl.spec" ;;
18618 "rpm/generic/spl-kmod.spec") CONFIG_FILES="$CONFIG_FILES rpm/generic/spl-kmod.spec" ;;
18619 "rpm/generic/spl-dkms.spec") CONFIG_FILES="$CONFIG_FILES rpm/generic/spl-dkms.spec" ;;
18620 "spl.release") CONFIG_FILES="$CONFIG_FILES spl.release" ;;
18621
18622 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18623 esac
18624done
18625
18626
18627# If the user did not use the arguments to specify the items to instantiate,
18628# then the envvar interface is used. Set only those that are not.
18629# We use the long form for the default assignment because of an extremely
18630# bizarre bug on SunOS 4.1.3.
18631if $ac_need_defaults; then
18632 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18633 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18634 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18635fi
18636
18637# Have a temporary directory for convenience. Make it in the build tree
18638# simply because there is no reason against having it here, and in addition,
18639# creating and moving files from /tmp can sometimes cause problems.
18640# Hook for its removal unless debugging.
18641# Note that there is a small window in which the directory will not be cleaned:
18642# after its creation but before its name has been assigned to `$tmp'.
18643$debug ||
18644{
18645 tmp= ac_tmp=
18646 trap 'exit_status=$?
18647 : "${ac_tmp:=$tmp}"
18648 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18649' 0
18650 trap 'as_fn_exit 1' 1 2 13 15
18651}
18652# Create a (secure) tmp directory for tmp files.
18653
18654{
18655 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18656 test -d "$tmp"
18657} ||
18658{
18659 tmp=./conf$$-$RANDOM
18660 (umask 077 && mkdir "$tmp")
18661} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18662ac_tmp=$tmp
18663
18664# Set up the scripts for CONFIG_FILES section.
18665# No need to generate them if there are no CONFIG_FILES.
18666# This happens for instance with `./config.status config.h'.
18667if test -n "$CONFIG_FILES"; then
18668
18669
18670ac_cr=`echo X | tr X '\015'`
18671# On cygwin, bash can eat \r inside `` if the user requested igncr.
18672# But we know of no other shell where ac_cr would be empty at this
18673# point, so we can use a bashism as a fallback.
18674if test "x$ac_cr" = x; then
18675 eval ac_cr=\$\'\\r\'
18676fi
18677ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18678if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18679 ac_cs_awk_cr='\\r'
18680else
18681 ac_cs_awk_cr=$ac_cr
18682fi
18683
18684echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18685_ACEOF
18686
18687
18688{
18689 echo "cat >conf$$subs.awk <<_ACEOF" &&
18690 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18691 echo "_ACEOF"
18692} >conf$$subs.sh ||
18693 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18694ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18695ac_delim='%!_!# '
18696for ac_last_try in false false false false false :; do
18697 . ./conf$$subs.sh ||
18698 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18699
18700 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18701 if test $ac_delim_n = $ac_delim_num; then
18702 break
18703 elif $ac_last_try; then
18704 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18705 else
18706 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18707 fi
18708done
18709rm -f conf$$subs.sh
18710
18711cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18712cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18713_ACEOF
18714sed -n '
18715h
18716s/^/S["/; s/!.*/"]=/
18717p
18718g
18719s/^[^!]*!//
18720:repl
18721t repl
18722s/'"$ac_delim"'$//
18723t delim
18724:nl
18725h
18726s/\(.\{148\}\)..*/\1/
18727t more1
18728s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18729p
18730n
18731b repl
18732:more1
18733s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18734p
18735g
18736s/.\{148\}//
18737t nl
18738:delim
18739h
18740s/\(.\{148\}\)..*/\1/
18741t more2
18742s/["\\]/\\&/g; s/^/"/; s/$/"/
18743p
18744b
18745:more2
18746s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18747p
18748g
18749s/.\{148\}//
18750t delim
18751' <conf$$subs.awk | sed '
18752/^[^""]/{
18753 N
18754 s/\n//
18755}
18756' >>$CONFIG_STATUS || ac_write_fail=1
18757rm -f conf$$subs.awk
18758cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18759_ACAWK
18760cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18761 for (key in S) S_is_set[key] = 1
18762 FS = "\a"
18763
18764}
18765{
18766 line = $ 0
18767 nfields = split(line, field, "@")
18768 substed = 0
18769 len = length(field[1])
18770 for (i = 2; i < nfields; i++) {
18771 key = field[i]
18772 keylen = length(key)
18773 if (S_is_set[key]) {
18774 value = S[key]
18775 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18776 len += length(value) + length(field[++i])
18777 substed = 1
18778 } else
18779 len += 1 + keylen
18780 }
18781
18782 print line
18783}
18784
18785_ACAWK
18786_ACEOF
18787cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18788if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18789 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18790else
18791 cat
18792fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18793 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18794_ACEOF
18795
18796# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18797# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18798# trailing colons and then remove the whole line if VPATH becomes empty
18799# (actually we leave an empty line to preserve line numbers).
18800if test "x$srcdir" = x.; then
18801 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18802h
18803s///
18804s/^/:/
18805s/[ ]*$/:/
18806s/:\$(srcdir):/:/g
18807s/:\${srcdir}:/:/g
18808s/:@srcdir@:/:/g
18809s/^:*//
18810s/:*$//
18811x
18812s/\(=[ ]*\).*/\1/
18813G
18814s/\n//
18815s/^[^=]*=[ ]*$//
18816}'
18817fi
18818
18819cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18820fi # test -n "$CONFIG_FILES"
18821
18822# Set up the scripts for CONFIG_HEADERS section.
18823# No need to generate them if there are no CONFIG_HEADERS.
18824# This happens for instance with `./config.status Makefile'.
18825if test -n "$CONFIG_HEADERS"; then
18826cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18827BEGIN {
18828_ACEOF
18829
18830# Transform confdefs.h into an awk script `defines.awk', embedded as
18831# here-document in config.status, that substitutes the proper values into
18832# config.h.in to produce config.h.
18833
18834# Create a delimiter string that does not exist in confdefs.h, to ease
18835# handling of long lines.
18836ac_delim='%!_!# '
18837for ac_last_try in false false :; do
18838 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18839 if test -z "$ac_tt"; then
18840 break
18841 elif $ac_last_try; then
18842 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18843 else
18844 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18845 fi
18846done
18847
18848# For the awk script, D is an array of macro values keyed by name,
18849# likewise P contains macro parameters if any. Preserve backslash
18850# newline sequences.
18851
18852ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18853sed -n '
18854s/.\{148\}/&'"$ac_delim"'/g
18855t rset
18856:rset
18857s/^[ ]*#[ ]*define[ ][ ]*/ /
18858t def
18859d
18860:def
18861s/\\$//
18862t bsnl
18863s/["\\]/\\&/g
18864s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18865D["\1"]=" \3"/p
18866s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18867d
18868:bsnl
18869s/["\\]/\\&/g
18870s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18871D["\1"]=" \3\\\\\\n"\\/p
18872t cont
18873s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18874t cont
18875d
18876:cont
18877n
18878s/.\{148\}/&'"$ac_delim"'/g
18879t clear
18880:clear
18881s/\\$//
18882t bsnlc
18883s/["\\]/\\&/g; s/^/"/; s/$/"/p
18884d
18885:bsnlc
18886s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18887b cont
18888' <confdefs.h | sed '
18889s/'"$ac_delim"'/"\\\
18890"/g' >>$CONFIG_STATUS || ac_write_fail=1
18891
18892cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18893 for (key in D) D_is_set[key] = 1
18894 FS = "\a"
18895}
18896/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18897 line = \$ 0
18898 split(line, arg, " ")
18899 if (arg[1] == "#") {
18900 defundef = arg[2]
18901 mac1 = arg[3]
18902 } else {
18903 defundef = substr(arg[1], 2)
18904 mac1 = arg[2]
18905 }
18906 split(mac1, mac2, "(") #)
18907 macro = mac2[1]
18908 prefix = substr(line, 1, index(line, defundef) - 1)
18909 if (D_is_set[macro]) {
18910 # Preserve the white space surrounding the "#".
18911 print prefix "define", macro P[macro] D[macro]
18912 next
18913 } else {
18914 # Replace #undef with comments. This is necessary, for example,
18915 # in the case of _POSIX_SOURCE, which is predefined and required
18916 # on some systems where configure will not decide to define it.
18917 if (defundef == "undef") {
18918 print "/*", prefix defundef, macro, "*/"
18919 next
18920 }
18921 }
18922}
18923{ print }
18924_ACAWK
18925_ACEOF
18926cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18927 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18928fi # test -n "$CONFIG_HEADERS"
18929
18930
18931eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18932shift
18933for ac_tag
18934do
18935 case $ac_tag in
18936 :[FHLC]) ac_mode=$ac_tag; continue;;
18937 esac
18938 case $ac_mode$ac_tag in
18939 :[FHL]*:*);;
18940 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18941 :[FH]-) ac_tag=-:-;;
18942 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18943 esac
18944 ac_save_IFS=$IFS
18945 IFS=:
18946 set x $ac_tag
18947 IFS=$ac_save_IFS
18948 shift
18949 ac_file=$1
18950 shift
18951
18952 case $ac_mode in
18953 :L) ac_source=$1;;
18954 :[FH])
18955 ac_file_inputs=
18956 for ac_f
18957 do
18958 case $ac_f in
18959 -) ac_f="$ac_tmp/stdin";;
18960 *) # Look for the file first in the build tree, then in the source tree
18961 # (if the path is not absolute). The absolute path cannot be DOS-style,
18962 # because $ac_f cannot contain `:'.
18963 test -f "$ac_f" ||
18964 case $ac_f in
18965 [\\/$]*) false;;
18966 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18967 esac ||
18968 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18969 esac
18970 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18971 as_fn_append ac_file_inputs " '$ac_f'"
18972 done
18973
18974 # Let's still pretend it is `configure' which instantiates (i.e., don't
18975 # use $as_me), people would be surprised to read:
18976 # /* config.h. Generated by config.status. */
18977 configure_input='Generated from '`
18978 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18979 `' by configure.'
18980 if test x"$ac_file" != x-; then
18981 configure_input="$ac_file. $configure_input"
18982 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18983$as_echo "$as_me: creating $ac_file" >&6;}
18984 fi
18985 # Neutralize special characters interpreted by sed in replacement strings.
18986 case $configure_input in #(
18987 *\&* | *\|* | *\\* )
18988 ac_sed_conf_input=`$as_echo "$configure_input" |
18989 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18990 *) ac_sed_conf_input=$configure_input;;
18991 esac
18992
18993 case $ac_tag in
18994 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18995 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18996 esac
18997 ;;
18998 esac
18999
19000 ac_dir=`$as_dirname -- "$ac_file" ||
19001$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19002 X"$ac_file" : 'X\(//\)[^/]' \| \
19003 X"$ac_file" : 'X\(//\)$' \| \
19004 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19005$as_echo X"$ac_file" |
19006 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19007 s//\1/
19008 q
19009 }
19010 /^X\(\/\/\)[^/].*/{
19011 s//\1/
19012 q
19013 }
19014 /^X\(\/\/\)$/{
19015 s//\1/
19016 q
19017 }
19018 /^X\(\/\).*/{
19019 s//\1/
19020 q
19021 }
19022 s/.*/./; q'`
19023 as_dir="$ac_dir"; as_fn_mkdir_p
19024 ac_builddir=.
19025
19026case "$ac_dir" in
19027.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19028*)
19029 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19030 # A ".." for each directory in $ac_dir_suffix.
19031 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19032 case $ac_top_builddir_sub in
19033 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19034 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19035 esac ;;
19036esac
19037ac_abs_top_builddir=$ac_pwd
19038ac_abs_builddir=$ac_pwd$ac_dir_suffix
19039# for backward compatibility:
19040ac_top_builddir=$ac_top_build_prefix
19041
19042case $srcdir in
19043 .) # We are building in place.
19044 ac_srcdir=.
19045 ac_top_srcdir=$ac_top_builddir_sub
19046 ac_abs_top_srcdir=$ac_pwd ;;
19047 [\\/]* | ?:[\\/]* ) # Absolute name.
19048 ac_srcdir=$srcdir$ac_dir_suffix;
19049 ac_top_srcdir=$srcdir
19050 ac_abs_top_srcdir=$srcdir ;;
19051 *) # Relative name.
19052 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19053 ac_top_srcdir=$ac_top_build_prefix$srcdir
19054 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19055esac
19056ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19057
19058
19059 case $ac_mode in
19060 :F)
19061 #
19062 # CONFIG_FILE
19063 #
19064
19065 case $INSTALL in
19066 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19067 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19068 esac
19069 ac_MKDIR_P=$MKDIR_P
19070 case $MKDIR_P in
19071 [\\/$]* | ?:[\\/]* ) ;;
19072 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19073 esac
19074_ACEOF
19075
19076cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19077# If the template does not know about datarootdir, expand it.
19078# FIXME: This hack should be removed a few years after 2.60.
19079ac_datarootdir_hack=; ac_datarootdir_seen=
19080ac_sed_dataroot='
19081/datarootdir/ {
19082 p
19083 q
19084}
19085/@datadir@/p
19086/@docdir@/p
19087/@infodir@/p
19088/@localedir@/p
19089/@mandir@/p'
19090case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19091*datarootdir*) ac_datarootdir_seen=yes;;
19092*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19093 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19094$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19095_ACEOF
19096cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19097 ac_datarootdir_hack='
19098 s&@datadir@&$datadir&g
19099 s&@docdir@&$docdir&g
19100 s&@infodir@&$infodir&g
19101 s&@localedir@&$localedir&g
19102 s&@mandir@&$mandir&g
19103 s&\\\${datarootdir}&$datarootdir&g' ;;
19104esac
19105_ACEOF
19106
19107# Neutralize VPATH when `$srcdir' = `.'.
19108# Shell code in configure.ac might set extrasub.
19109# FIXME: do we really want to maintain this feature?
19110cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19111ac_sed_extra="$ac_vpsub
19112$extrasub
19113_ACEOF
19114cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19115:t
19116/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19117s|@configure_input@|$ac_sed_conf_input|;t t
19118s&@top_builddir@&$ac_top_builddir_sub&;t t
19119s&@top_build_prefix@&$ac_top_build_prefix&;t t
19120s&@srcdir@&$ac_srcdir&;t t
19121s&@abs_srcdir@&$ac_abs_srcdir&;t t
19122s&@top_srcdir@&$ac_top_srcdir&;t t
19123s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19124s&@builddir@&$ac_builddir&;t t
19125s&@abs_builddir@&$ac_abs_builddir&;t t
19126s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19127s&@INSTALL@&$ac_INSTALL&;t t
19128s&@MKDIR_P@&$ac_MKDIR_P&;t t
19129$ac_datarootdir_hack
19130"
19131eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19132 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19133
19134test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19135 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19136 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19137 "$ac_tmp/out"`; test -z "$ac_out"; } &&
19138 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19139which seems to be undefined. Please make sure it is defined" >&5
19140$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19141which seems to be undefined. Please make sure it is defined" >&2;}
19142
19143 rm -f "$ac_tmp/stdin"
19144 case $ac_file in
19145 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19146 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19147 esac \
19148 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19149 ;;
19150 :H)
19151 #
19152 # CONFIG_HEADER
19153 #
19154 if test x"$ac_file" != x-; then
19155 {
19156 $as_echo "/* $configure_input */" \
19157 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19158 } >"$ac_tmp/config.h" \
19159 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19160 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19161 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19162$as_echo "$as_me: $ac_file is unchanged" >&6;}
19163 else
19164 rm -f "$ac_file"
19165 mv "$ac_tmp/config.h" "$ac_file" \
19166 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19167 fi
19168 else
19169 $as_echo "/* $configure_input */" \
19170 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19171 || as_fn_error $? "could not create -" "$LINENO" 5
19172 fi
19173# Compute "$ac_file"'s index in $config_headers.
19174_am_arg="$ac_file"
19175_am_stamp_count=1
19176for _am_header in $config_headers :; do
19177 case $_am_header in
19178 $_am_arg | $_am_arg:* )
19179 break ;;
19180 * )
19181 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19182 esac
19183done
19184echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19185$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19186 X"$_am_arg" : 'X\(//\)[^/]' \| \
19187 X"$_am_arg" : 'X\(//\)$' \| \
19188 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19189$as_echo X"$_am_arg" |
19190 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19191 s//\1/
19192 q
19193 }
19194 /^X\(\/\/\)[^/].*/{
19195 s//\1/
19196 q
19197 }
19198 /^X\(\/\/\)$/{
19199 s//\1/
19200 q
19201 }
19202 /^X\(\/\).*/{
19203 s//\1/
19204 q
19205 }
19206 s/.*/./; q'`/stamp-h$_am_stamp_count
19207 ;;
19208
19209 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19210$as_echo "$as_me: executing $ac_file commands" >&6;}
19211 ;;
19212 esac
19213
19214
19215 case $ac_file$ac_mode in
19216 "spl_config.h":H)
19217 (mv spl_config.h spl_config.h.tmp &&
19218 awk -f ${ac_srcdir}/config/config.awk spl_config.h.tmp >spl_config.h &&
19219 rm spl_config.h.tmp) || exit 1 ;;
19220 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19221 # Older Autoconf quotes --file arguments for eval, but not when files
19222 # are listed without --file. Let's play safe and only enable the eval
19223 # if we detect the quoting.
19224 case $CONFIG_FILES in
19225 *\'*) eval set x "$CONFIG_FILES" ;;
19226 *) set x $CONFIG_FILES ;;
19227 esac
19228 shift
19229 for mf
19230 do
19231 # Strip MF so we end up with the name of the file.
19232 mf=`echo "$mf" | sed -e 's/:.*$//'`
19233 # Check whether this is an Automake generated Makefile or not.
19234 # We used to match only the files named 'Makefile.in', but
19235 # some people rename them; so instead we look at the file content.
19236 # Grep'ing the first line is not enough: some people post-process
19237 # each Makefile.in and add a new line on top of each file to say so.
19238 # Grep'ing the whole file is not good either: AIX grep has a line
19239 # limit of 2048, but all sed's we know have understand at least 4000.
19240 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19241 dirpart=`$as_dirname -- "$mf" ||
19242$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19243 X"$mf" : 'X\(//\)[^/]' \| \
19244 X"$mf" : 'X\(//\)$' \| \
19245 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19246$as_echo X"$mf" |
19247 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19248 s//\1/
19249 q
19250 }
19251 /^X\(\/\/\)[^/].*/{
19252 s//\1/
19253 q
19254 }
19255 /^X\(\/\/\)$/{
19256 s//\1/
19257 q
19258 }
19259 /^X\(\/\).*/{
19260 s//\1/
19261 q
19262 }
19263 s/.*/./; q'`
19264 else
19265 continue
19266 fi
19267 # Extract the definition of DEPDIR, am__include, and am__quote
19268 # from the Makefile without running 'make'.
19269 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19270 test -z "$DEPDIR" && continue
19271 am__include=`sed -n 's/^am__include = //p' < "$mf"`
19272 test -z "$am__include" && continue
19273 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19274 # Find all dependency output files, they are included files with
19275 # $(DEPDIR) in their names. We invoke sed twice because it is the
19276 # simplest approach to changing $(DEPDIR) to its actual value in the
19277 # expansion.
19278 for file in `sed -n "
19279 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19280 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
19281 # Make sure the directory exists.
19282 test -f "$dirpart/$file" && continue
19283 fdir=`$as_dirname -- "$file" ||
19284$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19285 X"$file" : 'X\(//\)[^/]' \| \
19286 X"$file" : 'X\(//\)$' \| \
19287 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19288$as_echo X"$file" |
19289 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19290 s//\1/
19291 q
19292 }
19293 /^X\(\/\/\)[^/].*/{
19294 s//\1/
19295 q
19296 }
19297 /^X\(\/\/\)$/{
19298 s//\1/
19299 q
19300 }
19301 /^X\(\/\).*/{
19302 s//\1/
19303 q
19304 }
19305 s/.*/./; q'`
19306 as_dir=$dirpart/$fdir; as_fn_mkdir_p
19307 # echo "creating $dirpart/$file"
19308 echo '# dummy' > "$dirpart/$file"
19309 done
19310 done
19311}
19312 ;;
19313 "libtool":C)
19314
2078c8a7 19315 # See if we are running on zsh, and set the options that allow our
904dbe44 19316 # commands through without removal of \ escapes.
2078c8a7 19317 if test -n "${ZSH_VERSION+set}"; then
904dbe44
CIK
19318 setopt NO_GLOB_SUBST
19319 fi
19320
2078c8a7 19321 cfgfile=${ofile}T
904dbe44
CIK
19322 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19323 $RM "$cfgfile"
19324
19325 cat <<_LT_EOF >> "$cfgfile"
19326#! $SHELL
2078c8a7 19327# Generated automatically by $as_me ($PACKAGE) $VERSION
904dbe44
CIK
19328# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19329# NOTE: Changes made to this file will be lost: look at ltmain.sh.
2078c8a7
DJL
19330
19331# Provide generalized library-building support services.
19332# Written by Gordon Matzigkeit, 1996
19333
19334# Copyright (C) 2014 Free Software Foundation, Inc.
19335# This is free software; see the source for copying conditions. There is NO
19336# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
19337
19338# GNU Libtool is free software; you can redistribute it and/or modify
19339# it under the terms of the GNU General Public License as published by
19340# the Free Software Foundation; either version 2 of of the License, or
19341# (at your option) any later version.
904dbe44 19342#
2078c8a7
DJL
19343# As a special exception to the GNU General Public License, if you
19344# distribute this file as part of a program or library that is built
19345# using GNU Libtool, you may include this file under the same
19346# distribution terms that you use for the rest of that program.
904dbe44 19347#
2078c8a7
DJL
19348# GNU Libtool is distributed in the hope that it will be useful, but
19349# WITHOUT ANY WARRANTY; without even the implied warranty of
904dbe44
CIK
19350# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19351# GNU General Public License for more details.
19352#
19353# You should have received a copy of the GNU General Public License
2078c8a7 19354# along with this program. If not, see <http://www.gnu.org/licenses/>.
904dbe44
CIK
19355
19356
19357# The names of the tagged configurations supported by this script.
2078c8a7
DJL
19358available_tags=''
19359
19360# Configured defaults for sys_lib_dlsearch_path munging.
19361: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
904dbe44
CIK
19362
19363# ### BEGIN LIBTOOL CONFIG
19364
19365# Which release of libtool.m4 was used?
19366macro_version=$macro_version
19367macro_revision=$macro_revision
19368
19369# Whether or not to build shared libraries.
19370build_libtool_libs=$enable_shared
19371
19372# Whether or not to build static libraries.
19373build_old_libs=$enable_static
19374
19375# What type of objects to build.
19376pic_mode=$pic_mode
19377
19378# Whether or not to optimize for fast installation.
19379fast_install=$enable_fast_install
19380
2078c8a7
DJL
19381# Shared archive member basename,for filename based shared library versioning on AIX.
19382shared_archive_member_spec=$shared_archive_member_spec
19383
904dbe44
CIK
19384# Shell to use when invoking shell scripts.
19385SHELL=$lt_SHELL
19386
19387# An echo program that protects backslashes.
19388ECHO=$lt_ECHO
19389
19390# The PATH separator for the build system.
19391PATH_SEPARATOR=$lt_PATH_SEPARATOR
19392
19393# The host system.
19394host_alias=$host_alias
19395host=$host
19396host_os=$host_os
19397
19398# The build system.
19399build_alias=$build_alias
19400build=$build
19401build_os=$build_os
19402
19403# A sed program that does not truncate output.
19404SED=$lt_SED
19405
19406# Sed that helps us avoid accidentally triggering echo(1) options like -n.
19407Xsed="\$SED -e 1s/^X//"
19408
19409# A grep program that handles long lines.
19410GREP=$lt_GREP
19411
19412# An ERE matcher.
19413EGREP=$lt_EGREP
19414
19415# A literal string matcher.
19416FGREP=$lt_FGREP
19417
19418# A BSD- or MS-compatible name lister.
19419NM=$lt_NM
19420
19421# Whether we need soft or hard links.
19422LN_S=$lt_LN_S
19423
19424# What is the maximum length of a command?
19425max_cmd_len=$max_cmd_len
19426
19427# Object file suffix (normally "o").
19428objext=$ac_objext
19429
19430# Executable file suffix (normally "").
19431exeext=$exeext
19432
19433# whether the shell understands "unset".
19434lt_unset=$lt_unset
19435
19436# turn spaces into newlines.
19437SP2NL=$lt_lt_SP2NL
19438
19439# turn newlines into spaces.
19440NL2SP=$lt_lt_NL2SP
19441
19442# convert \$build file names to \$host format.
19443to_host_file_cmd=$lt_cv_to_host_file_cmd
19444
19445# convert \$build files to toolchain format.
19446to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19447
19448# An object symbol dumper.
19449OBJDUMP=$lt_OBJDUMP
19450
19451# Method to check whether dependent libraries are shared objects.
19452deplibs_check_method=$lt_deplibs_check_method
19453
19454# Command to use when deplibs_check_method = "file_magic".
19455file_magic_cmd=$lt_file_magic_cmd
19456
19457# How to find potential files when deplibs_check_method = "file_magic".
19458file_magic_glob=$lt_file_magic_glob
19459
19460# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19461want_nocaseglob=$lt_want_nocaseglob
19462
19463# DLL creation program.
19464DLLTOOL=$lt_DLLTOOL
19465
19466# Command to associate shared and link libraries.
19467sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19468
19469# The archiver.
19470AR=$lt_AR
19471
19472# Flags to create an archive.
19473AR_FLAGS=$lt_AR_FLAGS
19474
19475# How to feed a file listing to the archiver.
19476archiver_list_spec=$lt_archiver_list_spec
19477
19478# A symbol stripping program.
19479STRIP=$lt_STRIP
19480
19481# Commands used to install an old-style archive.
19482RANLIB=$lt_RANLIB
19483old_postinstall_cmds=$lt_old_postinstall_cmds
19484old_postuninstall_cmds=$lt_old_postuninstall_cmds
19485
19486# Whether to use a lock for old archive extraction.
19487lock_old_archive_extraction=$lock_old_archive_extraction
19488
19489# A C compiler.
19490LTCC=$lt_CC
19491
19492# LTCC compiler flags.
19493LTCFLAGS=$lt_CFLAGS
19494
19495# Take the output of nm and produce a listing of raw symbols and C names.
19496global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19497
19498# Transform the output of nm in a proper C declaration.
19499global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19500
2078c8a7
DJL
19501# Transform the output of nm into a list of symbols to manually relocate.
19502global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
19503
904dbe44
CIK
19504# Transform the output of nm in a C name address pair.
19505global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19506
19507# Transform the output of nm in a C name address pair when lib prefix is needed.
19508global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19509
2078c8a7
DJL
19510# The name lister interface.
19511nm_interface=$lt_lt_cv_nm_interface
19512
904dbe44
CIK
19513# Specify filename containing input files for \$NM.
19514nm_file_list_spec=$lt_nm_file_list_spec
19515
2078c8a7 19516# The root where to search for dependent libraries,and where our libraries should be installed.
904dbe44
CIK
19517lt_sysroot=$lt_sysroot
19518
2078c8a7
DJL
19519# Command to truncate a binary pipe.
19520lt_truncate_bin=$lt_lt_cv_truncate_bin
19521
904dbe44
CIK
19522# The name of the directory that contains temporary libtool files.
19523objdir=$objdir
19524
19525# Used to examine libraries when file_magic_cmd begins with "file".
19526MAGIC_CMD=$MAGIC_CMD
19527
19528# Must we lock files when doing compilation?
19529need_locks=$lt_need_locks
19530
19531# Manifest tool.
19532MANIFEST_TOOL=$lt_MANIFEST_TOOL
19533
19534# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19535DSYMUTIL=$lt_DSYMUTIL
19536
19537# Tool to change global to local symbols on Mac OS X.
19538NMEDIT=$lt_NMEDIT
19539
19540# Tool to manipulate fat objects and archives on Mac OS X.
19541LIPO=$lt_LIPO
19542
19543# ldd/readelf like tool for Mach-O binaries on Mac OS X.
19544OTOOL=$lt_OTOOL
19545
19546# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19547OTOOL64=$lt_OTOOL64
19548
19549# Old archive suffix (normally "a").
19550libext=$libext
19551
19552# Shared library suffix (normally ".so").
19553shrext_cmds=$lt_shrext_cmds
19554
19555# The commands to extract the exported symbol list from a shared archive.
19556extract_expsyms_cmds=$lt_extract_expsyms_cmds
19557
19558# Variables whose values should be saved in libtool wrapper scripts and
19559# restored at link time.
19560variables_saved_for_relink=$lt_variables_saved_for_relink
19561
19562# Do we need the "lib" prefix for modules?
19563need_lib_prefix=$need_lib_prefix
19564
19565# Do we need a version for libraries?
19566need_version=$need_version
19567
19568# Library versioning type.
19569version_type=$version_type
19570
19571# Shared library runtime path variable.
19572runpath_var=$runpath_var
19573
19574# Shared library path variable.
19575shlibpath_var=$shlibpath_var
19576
19577# Is shlibpath searched before the hard-coded library search path?
19578shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19579
19580# Format of library name prefix.
19581libname_spec=$lt_libname_spec
19582
19583# List of archive names. First name is the real one, the rest are links.
19584# The last name is the one that the linker finds with -lNAME
19585library_names_spec=$lt_library_names_spec
19586
19587# The coded name of the library, if different from the real name.
19588soname_spec=$lt_soname_spec
19589
19590# Permission mode override for installation of shared libraries.
19591install_override_mode=$lt_install_override_mode
19592
19593# Command to use after installation of a shared archive.
19594postinstall_cmds=$lt_postinstall_cmds
19595
19596# Command to use after uninstallation of a shared archive.
19597postuninstall_cmds=$lt_postuninstall_cmds
19598
19599# Commands used to finish a libtool library installation in a directory.
19600finish_cmds=$lt_finish_cmds
19601
19602# As "finish_cmds", except a single script fragment to be evaled but
19603# not shown.
19604finish_eval=$lt_finish_eval
19605
19606# Whether we should hardcode library paths into libraries.
19607hardcode_into_libs=$hardcode_into_libs
19608
19609# Compile-time system search path for libraries.
19610sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19611
2078c8a7
DJL
19612# Detected run-time system search path for libraries.
19613sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
19614
19615# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
19616configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
904dbe44
CIK
19617
19618# Whether dlopen is supported.
19619dlopen_support=$enable_dlopen
19620
19621# Whether dlopen of programs is supported.
19622dlopen_self=$enable_dlopen_self
19623
19624# Whether dlopen of statically linked programs is supported.
19625dlopen_self_static=$enable_dlopen_self_static
19626
19627# Commands to strip libraries.
19628old_striplib=$lt_old_striplib
19629striplib=$lt_striplib
19630
19631
19632# The linker used to build libraries.
19633LD=$lt_LD
19634
19635# How to create reloadable object files.
19636reload_flag=$lt_reload_flag
19637reload_cmds=$lt_reload_cmds
19638
19639# Commands used to build an old-style archive.
19640old_archive_cmds=$lt_old_archive_cmds
19641
19642# A language specific compiler.
19643CC=$lt_compiler
19644
19645# Is the compiler the GNU compiler?
19646with_gcc=$GCC
19647
19648# Compiler flag to turn off builtin functions.
19649no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19650
19651# Additional compiler flags for building library objects.
19652pic_flag=$lt_lt_prog_compiler_pic
19653
19654# How to pass a linker flag through the compiler.
19655wl=$lt_lt_prog_compiler_wl
19656
19657# Compiler flag to prevent dynamic linking.
19658link_static_flag=$lt_lt_prog_compiler_static
19659
19660# Does compiler simultaneously support -c and -o options?
19661compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19662
19663# Whether or not to add -lc for building shared libraries.
19664build_libtool_need_lc=$archive_cmds_need_lc
19665
19666# Whether or not to disallow shared libs when runtime libs are static.
19667allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19668
19669# Compiler flag to allow reflexive dlopens.
19670export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19671
19672# Compiler flag to generate shared objects directly from archives.
19673whole_archive_flag_spec=$lt_whole_archive_flag_spec
19674
19675# Whether the compiler copes with passing no objects directly.
19676compiler_needs_object=$lt_compiler_needs_object
19677
19678# Create an old-style archive from a shared archive.
19679old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19680
19681# Create a temporary old-style archive to link instead of a shared archive.
19682old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19683
19684# Commands used to build a shared archive.
19685archive_cmds=$lt_archive_cmds
19686archive_expsym_cmds=$lt_archive_expsym_cmds
19687
19688# Commands used to build a loadable module if different from building
19689# a shared archive.
19690module_cmds=$lt_module_cmds
19691module_expsym_cmds=$lt_module_expsym_cmds
19692
19693# Whether we are building with GNU ld or not.
19694with_gnu_ld=$lt_with_gnu_ld
19695
19696# Flag that allows shared libraries with undefined symbols to be built.
19697allow_undefined_flag=$lt_allow_undefined_flag
19698
19699# Flag that enforces no undefined symbols.
19700no_undefined_flag=$lt_no_undefined_flag
19701
19702# Flag to hardcode \$libdir into a binary during linking.
19703# This must work even if \$libdir does not exist
19704hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19705
19706# Whether we need a single "-rpath" flag with a separated argument.
19707hardcode_libdir_separator=$lt_hardcode_libdir_separator
19708
2078c8a7 19709# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
904dbe44
CIK
19710# DIR into the resulting binary.
19711hardcode_direct=$hardcode_direct
19712
2078c8a7 19713# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
904dbe44 19714# DIR into the resulting binary and the resulting library dependency is
2078c8a7 19715# "absolute",i.e impossible to change by setting \$shlibpath_var if the
904dbe44
CIK
19716# library is relocated.
19717hardcode_direct_absolute=$hardcode_direct_absolute
19718
19719# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19720# into the resulting binary.
19721hardcode_minus_L=$hardcode_minus_L
19722
19723# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19724# into the resulting binary.
19725hardcode_shlibpath_var=$hardcode_shlibpath_var
19726
19727# Set to "yes" if building a shared library automatically hardcodes DIR
19728# into the library and all subsequent libraries and executables linked
19729# against it.
19730hardcode_automatic=$hardcode_automatic
19731
19732# Set to yes if linker adds runtime paths of dependent libraries
19733# to runtime path list.
19734inherit_rpath=$inherit_rpath
19735
19736# Whether libtool must link a program against all its dependency libraries.
19737link_all_deplibs=$link_all_deplibs
19738
19739# Set to "yes" if exported symbols are required.
19740always_export_symbols=$always_export_symbols
19741
19742# The commands to list exported symbols.
19743export_symbols_cmds=$lt_export_symbols_cmds
19744
19745# Symbols that should not be listed in the preloaded symbols.
19746exclude_expsyms=$lt_exclude_expsyms
19747
19748# Symbols that must always be exported.
19749include_expsyms=$lt_include_expsyms
19750
19751# Commands necessary for linking programs (against libraries) with templates.
19752prelink_cmds=$lt_prelink_cmds
19753
19754# Commands necessary for finishing linking programs.
19755postlink_cmds=$lt_postlink_cmds
19756
19757# Specify filename containing input files.
19758file_list_spec=$lt_file_list_spec
19759
19760# How to hardcode a shared library path into an executable.
19761hardcode_action=$hardcode_action
19762
19763# ### END LIBTOOL CONFIG
19764
2078c8a7
DJL
19765_LT_EOF
19766
19767 cat <<'_LT_EOF' >> "$cfgfile"
19768
19769# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
19770
19771# func_munge_path_list VARIABLE PATH
19772# -----------------------------------
19773# VARIABLE is name of variable containing _space_ separated list of
19774# directories to be munged by the contents of PATH, which is string
19775# having a format:
19776# "DIR[:DIR]:"
19777# string "DIR[ DIR]" will be prepended to VARIABLE
19778# ":DIR[:DIR]"
19779# string "DIR[ DIR]" will be appended to VARIABLE
19780# "DIRP[:DIRP]::[DIRA:]DIRA"
19781# string "DIRP[ DIRP]" will be prepended to VARIABLE and string
19782# "DIRA[ DIRA]" will be appended to VARIABLE
19783# "DIR[:DIR]"
19784# VARIABLE will be replaced by "DIR[ DIR]"
19785func_munge_path_list ()
19786{
19787 case x$2 in
19788 x)
19789 ;;
19790 *:)
19791 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
19792 ;;
19793 x:*)
19794 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
19795 ;;
19796 *::*)
19797 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
19798 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
19799 ;;
19800 *)
19801 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
19802 ;;
19803 esac
19804}
19805
19806
19807# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
19808func_cc_basename ()
19809{
19810 for cc_temp in $*""; do
19811 case $cc_temp in
19812 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19813 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19814 \-*) ;;
19815 *) break;;
19816 esac
19817 done
19818 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19819}
19820
19821
19822# ### END FUNCTIONS SHARED WITH CONFIGURE
19823
904dbe44
CIK
19824_LT_EOF
19825
19826 case $host_os in
19827 aix3*)
19828 cat <<\_LT_EOF >> "$cfgfile"
19829# AIX sometimes has problems with the GCC collect2 program. For some
19830# reason, if we set the COLLECT_NAMES environment variable, the problems
19831# vanish in a puff of smoke.
2078c8a7 19832if test set != "${COLLECT_NAMES+set}"; then
904dbe44
CIK
19833 COLLECT_NAMES=
19834 export COLLECT_NAMES
19835fi
19836_LT_EOF
19837 ;;
19838 esac
19839
19840
2078c8a7 19841ltmain=$ac_aux_dir/ltmain.sh
904dbe44
CIK
19842
19843
19844 # We use sed instead of cat because bash on DJGPP gets confused if
19845 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19846 # text mode, it properly converts lines to CR/LF. This bash problem
19847 # is reportedly fixed, but why not run on old versions too?
19848 sed '$q' "$ltmain" >> "$cfgfile" \
19849 || (rm -f "$cfgfile"; exit 1)
19850
904dbe44
CIK
19851 mv -f "$cfgfile" "$ofile" ||
19852 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19853 chmod +x "$ofile"
19854
19855 ;;
19856
19857 esac
19858done # for ac_tag
19859
19860
19861as_fn_exit 0
19862_ACEOF
19863ac_clean_files=$ac_clean_files_save
19864
19865test $ac_write_fail = 0 ||
19866 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19867
19868
19869# configure is writing to config.log, and then calls config.status.
19870# config.status does its own redirection, appending to config.log.
19871# Unfortunately, on DOS this fails, as config.log is still kept open
19872# by configure, so config.status won't be able to write to it; its
19873# output is simply discarded. So we exec the FD to /dev/null,
19874# effectively closing config.log, so it can be properly (re)opened and
19875# appended to by config.status. When coming back to configure, we
19876# need to make the FD available again.
19877if test "$no_create" != yes; then
19878 ac_cs_success=:
19879 ac_config_status_args=
19880 test "$silent" = yes &&
19881 ac_config_status_args="$ac_config_status_args --quiet"
19882 exec 5>/dev/null
19883 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19884 exec 5>>config.log
19885 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19886 # would make configure fail if this is the last instruction.
19887 $ac_cs_success || as_fn_exit 1
19888fi
19889if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19890 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19891$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19892fi
19893