]> git.proxmox.com Git - mirror_spl-debian.git/blame - configure
Reduce max kmem based slab size
[mirror_spl-debian.git] / configure
CommitLineData
bf9f3bac 1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59.
4#
5# Copyright (C) 2003 Free Software Foundation, Inc.
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
8## --------------------- ##
9## M4sh Initialization. ##
10## --------------------- ##
11
12# Be Bourne compatible
13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21fi
22DUALCASE=1; export DUALCASE # for MKS sh
23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27else
28 as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54else
55 as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60else
61 as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152done
153;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184}
185
186
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196else
197 as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230# Sed expression to map a string onto a valid variable name.
231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" $as_nl"
239
240# CDPATH.
241$as_unset CDPATH
242
243
244
245# Check that we are running under the correct shell.
246SHELL=${CONFIG_SHELL-/bin/sh}
247
248case X$ECHO in
249X*--fallback-echo)
250 # Remove one level of quotation (which was required for Make).
251 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
252 ;;
253esac
254
255echo=${ECHO-echo}
256if test "X$1" = X--no-reexec; then
257 # Discard the --no-reexec flag, and continue.
258 shift
259elif test "X$1" = X--fallback-echo; then
260 # Avoid inline document here, it may be left over
261 :
262elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
263 # Yippee, $echo works!
264 :
265else
266 # Restart under the correct shell.
267 exec $SHELL "$0" --no-reexec ${1+"$@"}
268fi
269
270if test "X$1" = X--fallback-echo; then
271 # used as fallback echo
272 shift
273 cat <<EOF
274$*
275EOF
276 exit 0
277fi
278
279# The HP-UX ksh and POSIX shell print the target directory to stdout
280# if CDPATH is set.
281(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
282
283if test -z "$ECHO"; then
284if test "X${echo_test_string+set}" != Xset; then
285# find a string as large as possible, as long as the shell can cope with it
286 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
289 echo_test_string=`eval $cmd` &&
290 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
291 then
292 break
293 fi
294 done
295fi
296
297if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
298 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
299 test "X$echo_testing_string" = "X$echo_test_string"; then
300 :
301else
302 # The Solaris, AIX, and Digital Unix default echo programs unquote
303 # backslashes. This makes it impossible to quote backslashes using
304 # echo "$something" | sed 's/\\/\\\\/g'
305 #
306 # So, first we look for a working echo in the user's PATH.
307
308 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
309 for dir in $PATH /usr/ucb; do
310 IFS="$lt_save_ifs"
311 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
312 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
313 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
314 test "X$echo_testing_string" = "X$echo_test_string"; then
315 echo="$dir/echo"
316 break
317 fi
318 done
319 IFS="$lt_save_ifs"
320
321 if test "X$echo" = Xecho; then
322 # We didn't find a better echo, so look for alternatives.
323 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
324 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
325 test "X$echo_testing_string" = "X$echo_test_string"; then
326 # This shell has a builtin print -r that does the trick.
327 echo='print -r'
328 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
329 test "X$CONFIG_SHELL" != X/bin/ksh; then
330 # If we have ksh, try running configure again with it.
331 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
332 export ORIGINAL_CONFIG_SHELL
333 CONFIG_SHELL=/bin/ksh
334 export CONFIG_SHELL
335 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
336 else
337 # Try using printf.
338 echo='printf %s\n'
339 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
340 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
341 test "X$echo_testing_string" = "X$echo_test_string"; then
342 # Cool, printf works
343 :
344 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
345 test "X$echo_testing_string" = 'X\t' &&
346 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
347 test "X$echo_testing_string" = "X$echo_test_string"; then
348 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
349 export CONFIG_SHELL
350 SHELL="$CONFIG_SHELL"
351 export SHELL
352 echo="$CONFIG_SHELL $0 --fallback-echo"
353 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354 test "X$echo_testing_string" = 'X\t' &&
355 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356 test "X$echo_testing_string" = "X$echo_test_string"; then
357 echo="$CONFIG_SHELL $0 --fallback-echo"
358 else
359 # maybe with a smaller string...
360 prev=:
361
362 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
363 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
364 then
365 break
366 fi
367 prev="$cmd"
368 done
369
370 if test "$prev" != 'sed 50q "$0"'; then
371 echo_test_string=`eval $prev`
372 export echo_test_string
373 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
374 else
375 # Oops. We lost completely, so just stick with echo.
376 echo=echo
377 fi
378 fi
379 fi
380 fi
381fi
382fi
383
384# Copy echo and quote the copy suitably for passing to libtool from
385# the Makefile, instead of quoting the original, which is used later.
386ECHO=$echo
387if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
388 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
389fi
390
391
392
393
394tagnames=${tagnames+${tagnames},}CXX
395
396tagnames=${tagnames+${tagnames},}F77
397
398# Name of the host.
399# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
400# so uname gets run too.
401ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
402
403exec 6>&1
404
405#
406# Initializations.
407#
408ac_default_prefix=/usr/local
409ac_config_libobj_dir=.
410cross_compiling=no
411subdirs=
412MFLAGS=
413MAKEFLAGS=
414SHELL=${CONFIG_SHELL-/bin/sh}
415
416# Maximum number of lines to put in a shell here document.
417# This variable seems obsolete. It should probably be removed, and
418# only ac_max_sed_lines should be used.
419: ${ac_max_here_lines=38}
420
421# Identity of this package.
422PACKAGE_NAME=
423PACKAGE_TARNAME=
424PACKAGE_VERSION=
425PACKAGE_STRING=
426PACKAGE_BUGREPORT=
427
428# Factoring default headers for most tests.
429ac_includes_default="\
430#include <stdio.h>
431#if HAVE_SYS_TYPES_H
432# include <sys/types.h>
433#endif
434#if HAVE_SYS_STAT_H
435# include <sys/stat.h>
436#endif
437#if STDC_HEADERS
438# include <stdlib.h>
439# include <stddef.h>
440#else
441# if HAVE_STDLIB_H
442# include <stdlib.h>
443# endif
444#endif
445#if HAVE_STRING_H
446# if !STDC_HEADERS && HAVE_MEMORY_H
447# include <memory.h>
448# endif
449# include <string.h>
450#endif
451#if HAVE_STRINGS_H
452# include <strings.h>
453#endif
454#if HAVE_INTTYPES_H
455# include <inttypes.h>
456#else
457# if HAVE_STDINT_H
458# include <stdint.h>
459# endif
460#endif
461#if HAVE_UNISTD_H
462# include <unistd.h>
463#endif"
464
86933a6e 465ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS SPL_META_NAME SPL_META_VERSION SPL_META_RELEASE SPL_META_ALIAS SPL_META_DATA SPL_META_AUTHOR SPL_META_LT_CURRENT SPL_META_LT_REVISION SPL_META_LT_AGE build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE SED EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LICENSE SPL_CONFIG LINUX LINUX_OBJ LINUX_VERSION LINUX_SYMBOLS KERNELMAKE_PARAMS KERNELCPPFLAGS CONFIG_USER_TRUE CONFIG_USER_FALSE CONFIG_KERNEL_TRUE CONFIG_KERNEL_FALSE LIBOBJS LTLIBOBJS'
bf9f3bac 466ac_subst_files=''
467
468# Initialize some variables set by options.
469ac_init_help=
470ac_init_version=false
471# The variables have the same names as the options, with
472# dashes changed to underlines.
473cache_file=/dev/null
474exec_prefix=NONE
475no_create=
476no_recursion=
477prefix=NONE
478program_prefix=NONE
479program_suffix=NONE
480program_transform_name=s,x,x,
481silent=
482site=
483srcdir=
484verbose=
485x_includes=NONE
486x_libraries=NONE
487
488# Installation directory options.
489# These are left unexpanded so users can "make install exec_prefix=/foo"
490# and all the variables that are supposed to be based on exec_prefix
491# by default will actually change.
492# Use braces instead of parens because sh, perl, etc. also accept them.
493bindir='${exec_prefix}/bin'
494sbindir='${exec_prefix}/sbin'
495libexecdir='${exec_prefix}/libexec'
496datadir='${prefix}/share'
497sysconfdir='${prefix}/etc'
498sharedstatedir='${prefix}/com'
499localstatedir='${prefix}/var'
500libdir='${exec_prefix}/lib'
501includedir='${prefix}/include'
502oldincludedir='/usr/include'
503infodir='${prefix}/info'
504mandir='${prefix}/man'
505
506ac_prev=
507for ac_option
508do
509 # If the previous option needs an argument, assign it.
510 if test -n "$ac_prev"; then
511 eval "$ac_prev=\$ac_option"
512 ac_prev=
513 continue
514 fi
515
516 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
517
518 # Accept the important Cygnus configure options, so we can diagnose typos.
519
520 case $ac_option in
521
522 -bindir | --bindir | --bindi | --bind | --bin | --bi)
523 ac_prev=bindir ;;
524 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
525 bindir=$ac_optarg ;;
526
527 -build | --build | --buil | --bui | --bu)
528 ac_prev=build_alias ;;
529 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
530 build_alias=$ac_optarg ;;
531
532 -cache-file | --cache-file | --cache-fil | --cache-fi \
533 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
534 ac_prev=cache_file ;;
535 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
536 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
537 cache_file=$ac_optarg ;;
538
539 --config-cache | -C)
540 cache_file=config.cache ;;
541
542 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
543 ac_prev=datadir ;;
544 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
545 | --da=*)
546 datadir=$ac_optarg ;;
547
548 -disable-* | --disable-*)
549 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
550 # Reject names that are not valid shell variable names.
551 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
552 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
553 { (exit 1); exit 1; }; }
554 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
555 eval "enable_$ac_feature=no" ;;
556
557 -enable-* | --enable-*)
558 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
559 # Reject names that are not valid shell variable names.
560 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
561 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
562 { (exit 1); exit 1; }; }
563 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
564 case $ac_option in
565 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
566 *) ac_optarg=yes ;;
567 esac
568 eval "enable_$ac_feature='$ac_optarg'" ;;
569
570 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
571 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
572 | --exec | --exe | --ex)
573 ac_prev=exec_prefix ;;
574 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
575 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
576 | --exec=* | --exe=* | --ex=*)
577 exec_prefix=$ac_optarg ;;
578
579 -gas | --gas | --ga | --g)
580 # Obsolete; use --with-gas.
581 with_gas=yes ;;
582
583 -help | --help | --hel | --he | -h)
584 ac_init_help=long ;;
585 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
586 ac_init_help=recursive ;;
587 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
588 ac_init_help=short ;;
589
590 -host | --host | --hos | --ho)
591 ac_prev=host_alias ;;
592 -host=* | --host=* | --hos=* | --ho=*)
593 host_alias=$ac_optarg ;;
594
595 -includedir | --includedir | --includedi | --included | --include \
596 | --includ | --inclu | --incl | --inc)
597 ac_prev=includedir ;;
598 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
599 | --includ=* | --inclu=* | --incl=* | --inc=*)
600 includedir=$ac_optarg ;;
601
602 -infodir | --infodir | --infodi | --infod | --info | --inf)
603 ac_prev=infodir ;;
604 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
605 infodir=$ac_optarg ;;
606
607 -libdir | --libdir | --libdi | --libd)
608 ac_prev=libdir ;;
609 -libdir=* | --libdir=* | --libdi=* | --libd=*)
610 libdir=$ac_optarg ;;
611
612 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
613 | --libexe | --libex | --libe)
614 ac_prev=libexecdir ;;
615 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
616 | --libexe=* | --libex=* | --libe=*)
617 libexecdir=$ac_optarg ;;
618
619 -localstatedir | --localstatedir | --localstatedi | --localstated \
620 | --localstate | --localstat | --localsta | --localst \
621 | --locals | --local | --loca | --loc | --lo)
622 ac_prev=localstatedir ;;
623 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
624 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
625 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
626 localstatedir=$ac_optarg ;;
627
628 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
629 ac_prev=mandir ;;
630 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
631 mandir=$ac_optarg ;;
632
633 -nfp | --nfp | --nf)
634 # Obsolete; use --without-fp.
635 with_fp=no ;;
636
637 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
638 | --no-cr | --no-c | -n)
639 no_create=yes ;;
640
641 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
642 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
643 no_recursion=yes ;;
644
645 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
646 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
647 | --oldin | --oldi | --old | --ol | --o)
648 ac_prev=oldincludedir ;;
649 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
650 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
651 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
652 oldincludedir=$ac_optarg ;;
653
654 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
655 ac_prev=prefix ;;
656 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
657 prefix=$ac_optarg ;;
658
659 -program-prefix | --program-prefix | --program-prefi | --program-pref \
660 | --program-pre | --program-pr | --program-p)
661 ac_prev=program_prefix ;;
662 -program-prefix=* | --program-prefix=* | --program-prefi=* \
663 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
664 program_prefix=$ac_optarg ;;
665
666 -program-suffix | --program-suffix | --program-suffi | --program-suff \
667 | --program-suf | --program-su | --program-s)
668 ac_prev=program_suffix ;;
669 -program-suffix=* | --program-suffix=* | --program-suffi=* \
670 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
671 program_suffix=$ac_optarg ;;
672
673 -program-transform-name | --program-transform-name \
674 | --program-transform-nam | --program-transform-na \
675 | --program-transform-n | --program-transform- \
676 | --program-transform | --program-transfor \
677 | --program-transfo | --program-transf \
678 | --program-trans | --program-tran \
679 | --progr-tra | --program-tr | --program-t)
680 ac_prev=program_transform_name ;;
681 -program-transform-name=* | --program-transform-name=* \
682 | --program-transform-nam=* | --program-transform-na=* \
683 | --program-transform-n=* | --program-transform-=* \
684 | --program-transform=* | --program-transfor=* \
685 | --program-transfo=* | --program-transf=* \
686 | --program-trans=* | --program-tran=* \
687 | --progr-tra=* | --program-tr=* | --program-t=*)
688 program_transform_name=$ac_optarg ;;
689
690 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
691 | -silent | --silent | --silen | --sile | --sil)
692 silent=yes ;;
693
694 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
695 ac_prev=sbindir ;;
696 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
697 | --sbi=* | --sb=*)
698 sbindir=$ac_optarg ;;
699
700 -sharedstatedir | --sharedstatedir | --sharedstatedi \
701 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
702 | --sharedst | --shareds | --shared | --share | --shar \
703 | --sha | --sh)
704 ac_prev=sharedstatedir ;;
705 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
706 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
707 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
708 | --sha=* | --sh=*)
709 sharedstatedir=$ac_optarg ;;
710
711 -site | --site | --sit)
712 ac_prev=site ;;
713 -site=* | --site=* | --sit=*)
714 site=$ac_optarg ;;
715
716 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
717 ac_prev=srcdir ;;
718 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
719 srcdir=$ac_optarg ;;
720
721 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
722 | --syscon | --sysco | --sysc | --sys | --sy)
723 ac_prev=sysconfdir ;;
724 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
725 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
726 sysconfdir=$ac_optarg ;;
727
728 -target | --target | --targe | --targ | --tar | --ta | --t)
729 ac_prev=target_alias ;;
730 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
731 target_alias=$ac_optarg ;;
732
733 -v | -verbose | --verbose | --verbos | --verbo | --verb)
734 verbose=yes ;;
735
736 -version | --version | --versio | --versi | --vers | -V)
737 ac_init_version=: ;;
738
739 -with-* | --with-*)
740 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
741 # Reject names that are not valid shell variable names.
742 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
743 { echo "$as_me: error: invalid package name: $ac_package" >&2
744 { (exit 1); exit 1; }; }
745 ac_package=`echo $ac_package| sed 's/-/_/g'`
746 case $ac_option in
747 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
748 *) ac_optarg=yes ;;
749 esac
750 eval "with_$ac_package='$ac_optarg'" ;;
751
752 -without-* | --without-*)
753 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
754 # Reject names that are not valid shell variable names.
755 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
756 { echo "$as_me: error: invalid package name: $ac_package" >&2
757 { (exit 1); exit 1; }; }
758 ac_package=`echo $ac_package | sed 's/-/_/g'`
759 eval "with_$ac_package=no" ;;
760
761 --x)
762 # Obsolete; use --with-x.
763 with_x=yes ;;
764
765 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
766 | --x-incl | --x-inc | --x-in | --x-i)
767 ac_prev=x_includes ;;
768 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
769 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
770 x_includes=$ac_optarg ;;
771
772 -x-libraries | --x-libraries | --x-librarie | --x-librari \
773 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
774 ac_prev=x_libraries ;;
775 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
776 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
777 x_libraries=$ac_optarg ;;
778
779 -*) { echo "$as_me: error: unrecognized option: $ac_option
780Try \`$0 --help' for more information." >&2
781 { (exit 1); exit 1; }; }
782 ;;
783
784 *=*)
785 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
786 # Reject names that are not valid shell variable names.
787 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
788 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
789 { (exit 1); exit 1; }; }
790 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
791 eval "$ac_envvar='$ac_optarg'"
792 export $ac_envvar ;;
793
794 *)
795 # FIXME: should be removed in autoconf 3.0.
796 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
797 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
798 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
799 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
800 ;;
801
802 esac
803done
804
805if test -n "$ac_prev"; then
806 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
807 { echo "$as_me: error: missing argument to $ac_option" >&2
808 { (exit 1); exit 1; }; }
809fi
810
811# Be sure to have absolute paths.
812for ac_var in exec_prefix prefix
813do
814 eval ac_val=$`echo $ac_var`
815 case $ac_val in
816 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
817 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
818 { (exit 1); exit 1; }; };;
819 esac
820done
821
822# Be sure to have absolute paths.
823for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
824 localstatedir libdir includedir oldincludedir infodir mandir
825do
826 eval ac_val=$`echo $ac_var`
827 case $ac_val in
828 [\\/$]* | ?:[\\/]* ) ;;
829 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
830 { (exit 1); exit 1; }; };;
831 esac
832done
833
834# There might be people who depend on the old broken behavior: `$host'
835# used to hold the argument of --host etc.
836# FIXME: To remove some day.
837build=$build_alias
838host=$host_alias
839target=$target_alias
840
841# FIXME: To remove some day.
842if test "x$host_alias" != x; then
843 if test "x$build_alias" = x; then
844 cross_compiling=maybe
845 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
846 If a cross compiler is detected then cross compile mode will be used." >&2
847 elif test "x$build_alias" != "x$host_alias"; then
848 cross_compiling=yes
849 fi
850fi
851
852ac_tool_prefix=
853test -n "$host_alias" && ac_tool_prefix=$host_alias-
854
855test "$silent" = yes && exec 6>/dev/null
856
857
858# Find the source files, if location was not specified.
859if test -z "$srcdir"; then
860 ac_srcdir_defaulted=yes
861 # Try the directory containing this script, then its parent.
862 ac_confdir=`(dirname "$0") 2>/dev/null ||
863$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
864 X"$0" : 'X\(//\)[^/]' \| \
865 X"$0" : 'X\(//\)$' \| \
866 X"$0" : 'X\(/\)' \| \
867 . : '\(.\)' 2>/dev/null ||
868echo X"$0" |
869 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
870 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
871 /^X\(\/\/\)$/{ s//\1/; q; }
872 /^X\(\/\).*/{ s//\1/; q; }
873 s/.*/./; q'`
874 srcdir=$ac_confdir
875 if test ! -r $srcdir/$ac_unique_file; then
876 srcdir=..
877 fi
878else
879 ac_srcdir_defaulted=no
880fi
881if test ! -r $srcdir/$ac_unique_file; then
882 if test "$ac_srcdir_defaulted" = yes; then
883 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
884 { (exit 1); exit 1; }; }
885 else
886 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
887 { (exit 1); exit 1; }; }
888 fi
889fi
890(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
891 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
892 { (exit 1); exit 1; }; }
893srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
894ac_env_build_alias_set=${build_alias+set}
895ac_env_build_alias_value=$build_alias
896ac_cv_env_build_alias_set=${build_alias+set}
897ac_cv_env_build_alias_value=$build_alias
898ac_env_host_alias_set=${host_alias+set}
899ac_env_host_alias_value=$host_alias
900ac_cv_env_host_alias_set=${host_alias+set}
901ac_cv_env_host_alias_value=$host_alias
902ac_env_target_alias_set=${target_alias+set}
903ac_env_target_alias_value=$target_alias
904ac_cv_env_target_alias_set=${target_alias+set}
905ac_cv_env_target_alias_value=$target_alias
906ac_env_CC_set=${CC+set}
907ac_env_CC_value=$CC
908ac_cv_env_CC_set=${CC+set}
909ac_cv_env_CC_value=$CC
910ac_env_CFLAGS_set=${CFLAGS+set}
911ac_env_CFLAGS_value=$CFLAGS
912ac_cv_env_CFLAGS_set=${CFLAGS+set}
913ac_cv_env_CFLAGS_value=$CFLAGS
914ac_env_LDFLAGS_set=${LDFLAGS+set}
915ac_env_LDFLAGS_value=$LDFLAGS
916ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
917ac_cv_env_LDFLAGS_value=$LDFLAGS
918ac_env_CPPFLAGS_set=${CPPFLAGS+set}
919ac_env_CPPFLAGS_value=$CPPFLAGS
920ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
921ac_cv_env_CPPFLAGS_value=$CPPFLAGS
922ac_env_CPP_set=${CPP+set}
923ac_env_CPP_value=$CPP
924ac_cv_env_CPP_set=${CPP+set}
925ac_cv_env_CPP_value=$CPP
926ac_env_CXX_set=${CXX+set}
927ac_env_CXX_value=$CXX
928ac_cv_env_CXX_set=${CXX+set}
929ac_cv_env_CXX_value=$CXX
930ac_env_CXXFLAGS_set=${CXXFLAGS+set}
931ac_env_CXXFLAGS_value=$CXXFLAGS
932ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
933ac_cv_env_CXXFLAGS_value=$CXXFLAGS
934ac_env_CXXCPP_set=${CXXCPP+set}
935ac_env_CXXCPP_value=$CXXCPP
936ac_cv_env_CXXCPP_set=${CXXCPP+set}
937ac_cv_env_CXXCPP_value=$CXXCPP
938ac_env_F77_set=${F77+set}
939ac_env_F77_value=$F77
940ac_cv_env_F77_set=${F77+set}
941ac_cv_env_F77_value=$F77
942ac_env_FFLAGS_set=${FFLAGS+set}
943ac_env_FFLAGS_value=$FFLAGS
944ac_cv_env_FFLAGS_set=${FFLAGS+set}
945ac_cv_env_FFLAGS_value=$FFLAGS
946
947#
948# Report the --help message.
949#
950if test "$ac_init_help" = "long"; then
951 # Omit some internal or obsolete options to make the list less imposing.
952 # This message is too long to be a string in the A/UX 3.1 sh.
953 cat <<_ACEOF
954\`configure' configures this package to adapt to many kinds of systems.
955
956Usage: $0 [OPTION]... [VAR=VALUE]...
957
958To assign environment variables (e.g., CC, CFLAGS...), specify them as
959VAR=VALUE. See below for descriptions of some of the useful variables.
960
961Defaults for the options are specified in brackets.
962
963Configuration:
964 -h, --help display this help and exit
965 --help=short display options specific to this package
966 --help=recursive display the short help of all the included packages
967 -V, --version display version information and exit
968 -q, --quiet, --silent do not print \`checking...' messages
969 --cache-file=FILE cache test results in FILE [disabled]
970 -C, --config-cache alias for \`--cache-file=config.cache'
971 -n, --no-create do not create output files
972 --srcdir=DIR find the sources in DIR [configure dir or \`..']
973
974_ACEOF
975
976 cat <<_ACEOF
977Installation directories:
978 --prefix=PREFIX install architecture-independent files in PREFIX
979 [$ac_default_prefix]
980 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
981 [PREFIX]
982
983By default, \`make install' will install all the files in
984\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
985an installation prefix other than \`$ac_default_prefix' using \`--prefix',
986for instance \`--prefix=\$HOME'.
987
988For better control, use the options below.
989
990Fine tuning of the installation directories:
991 --bindir=DIR user executables [EPREFIX/bin]
992 --sbindir=DIR system admin executables [EPREFIX/sbin]
993 --libexecdir=DIR program executables [EPREFIX/libexec]
994 --datadir=DIR read-only architecture-independent data [PREFIX/share]
995 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
996 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
997 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
998 --libdir=DIR object code libraries [EPREFIX/lib]
999 --includedir=DIR C header files [PREFIX/include]
1000 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1001 --infodir=DIR info documentation [PREFIX/info]
1002 --mandir=DIR man documentation [PREFIX/man]
1003_ACEOF
1004
1005 cat <<\_ACEOF
1006
1007Program names:
1008 --program-prefix=PREFIX prepend PREFIX to installed program names
1009 --program-suffix=SUFFIX append SUFFIX to installed program names
1010 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1011
1012System types:
1013 --build=BUILD configure for building on BUILD [guessed]
1014 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1015 --target=TARGET configure for building compilers for TARGET [HOST]
1016_ACEOF
1017fi
1018
1019if test -n "$ac_init_help"; then
1020
1021 cat <<\_ACEOF
1022
1023Optional Features:
1024 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1025 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1026 --enable-maintainer-mode enable make rules and dependencies not useful
1027 (and sometimes confusing) to the casual installer
1028 --disable-dependency-tracking speeds up one-time build
1029 --enable-dependency-tracking do not reject slow dependency extractors
1030 --enable-shared[=PKGS]
1031 build shared libraries [default=yes]
1032 --enable-static[=PKGS]
1033 build static libraries [default=yes]
1034 --enable-fast-install[=PKGS]
1035 optimize for fast installation [default=yes]
1036 --disable-libtool-lock avoid locking (might break parallel builds)
055ffd98
BB
1037 --enable-debug Enable generic debug support [default=no]
1038 --enable-debug-kmem Enable basic kmem accounting [default=yes]
1039 --enable-debug-kmem-tracking
1040 Enable detailed kmem tracking [default=no]
5e9b5d83 1041 --enable-atomic-spinlocks
d04c8a56 1042 Atomic types use spinlocks [default=check]
bf9f3bac 1043
1044Optional Packages:
1045 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1046 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1047 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1048 --with-pic try to use only PIC/non-PIC objects [default=use
1049 both]
1050 --with-tags[=TAGS]
1051 include additional configurations [automatic]
c1541dfe 1052 --with-config=CONFIG Config file 'kernel|user|all|srpm'
bf9f3bac 1053 --with-linux=PATH Path to kernel source
1054 --with-linux-obj=PATH Path to kernel build objects
1055
1056Some influential environment variables:
1057 CC C compiler command
1058 CFLAGS C compiler flags
1059 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1060 nonstandard directory <lib dir>
1061 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1062 headers in a nonstandard directory <include dir>
1063 CPP C preprocessor
1064 CXX C++ compiler command
1065 CXXFLAGS C++ compiler flags
1066 CXXCPP C++ preprocessor
1067 F77 Fortran 77 compiler command
1068 FFLAGS Fortran 77 compiler flags
1069
1070Use these variables to override the choices made by `configure' or to help
1071it to find libraries and programs with nonstandard names/locations.
1072
1073_ACEOF
1074fi
1075
1076if test "$ac_init_help" = "recursive"; then
1077 # If there are subdirs, report their specific --help.
1078 ac_popdir=`pwd`
1079 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1080 test -d $ac_dir || continue
1081 ac_builddir=.
1082
1083if test "$ac_dir" != .; then
1084 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1085 # A "../" for each directory in $ac_dir_suffix.
1086 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1087else
1088 ac_dir_suffix= ac_top_builddir=
1089fi
1090
1091case $srcdir in
1092 .) # No --srcdir option. We are building in place.
1093 ac_srcdir=.
1094 if test -z "$ac_top_builddir"; then
1095 ac_top_srcdir=.
1096 else
1097 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1098 fi ;;
1099 [\\/]* | ?:[\\/]* ) # Absolute path.
1100 ac_srcdir=$srcdir$ac_dir_suffix;
1101 ac_top_srcdir=$srcdir ;;
1102 *) # Relative path.
1103 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1104 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1105esac
1106
1107# Do not use `cd foo && pwd` to compute absolute paths, because
1108# the directories may not exist.
1109case `pwd` in
1110.) ac_abs_builddir="$ac_dir";;
1111*)
1112 case "$ac_dir" in
1113 .) ac_abs_builddir=`pwd`;;
1114 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1115 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1116 esac;;
1117esac
1118case $ac_abs_builddir in
1119.) ac_abs_top_builddir=${ac_top_builddir}.;;
1120*)
1121 case ${ac_top_builddir}. in
1122 .) ac_abs_top_builddir=$ac_abs_builddir;;
1123 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1124 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1125 esac;;
1126esac
1127case $ac_abs_builddir in
1128.) ac_abs_srcdir=$ac_srcdir;;
1129*)
1130 case $ac_srcdir in
1131 .) ac_abs_srcdir=$ac_abs_builddir;;
1132 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1133 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1134 esac;;
1135esac
1136case $ac_abs_builddir in
1137.) ac_abs_top_srcdir=$ac_top_srcdir;;
1138*)
1139 case $ac_top_srcdir in
1140 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1141 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1142 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1143 esac;;
1144esac
1145
1146 cd $ac_dir
1147 # Check for guested configure; otherwise get Cygnus style configure.
1148 if test -f $ac_srcdir/configure.gnu; then
1149 echo
1150 $SHELL $ac_srcdir/configure.gnu --help=recursive
1151 elif test -f $ac_srcdir/configure; then
1152 echo
1153 $SHELL $ac_srcdir/configure --help=recursive
1154 elif test -f $ac_srcdir/configure.ac ||
1155 test -f $ac_srcdir/configure.in; then
1156 echo
1157 $ac_configure --help
1158 else
1159 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1160 fi
1161 cd $ac_popdir
1162 done
1163fi
1164
1165test -n "$ac_init_help" && exit 0
1166if $ac_init_version; then
1167 cat <<\_ACEOF
1168
1169Copyright (C) 2003 Free Software Foundation, Inc.
1170This configure script is free software; the Free Software Foundation
1171gives unlimited permission to copy, distribute and modify it.
1172_ACEOF
1173 exit 0
1174fi
1175exec 5>config.log
1176cat >&5 <<_ACEOF
1177This file contains any messages produced by compilers while
1178running configure, to aid debugging if configure makes a mistake.
1179
1180It was created by $as_me, which was
1181generated by GNU Autoconf 2.59. Invocation command line was
1182
1183 $ $0 $@
1184
1185_ACEOF
1186{
1187cat <<_ASUNAME
1188## --------- ##
1189## Platform. ##
1190## --------- ##
1191
1192hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1193uname -m = `(uname -m) 2>/dev/null || echo unknown`
1194uname -r = `(uname -r) 2>/dev/null || echo unknown`
1195uname -s = `(uname -s) 2>/dev/null || echo unknown`
1196uname -v = `(uname -v) 2>/dev/null || echo unknown`
1197
1198/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1199/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1200
1201/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1202/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1203/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1204hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1205/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1206/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1207/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1208
1209_ASUNAME
1210
1211as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1212for as_dir in $PATH
1213do
1214 IFS=$as_save_IFS
1215 test -z "$as_dir" && as_dir=.
1216 echo "PATH: $as_dir"
1217done
1218
1219} >&5
1220
1221cat >&5 <<_ACEOF
1222
1223
1224## ----------- ##
1225## Core tests. ##
1226## ----------- ##
1227
1228_ACEOF
1229
1230
1231# Keep a trace of the command line.
1232# Strip out --no-create and --no-recursion so they do not pile up.
1233# Strip out --silent because we don't want to record it for future runs.
1234# Also quote any args containing shell meta-characters.
1235# Make two passes to allow for proper duplicate-argument suppression.
1236ac_configure_args=
1237ac_configure_args0=
1238ac_configure_args1=
1239ac_sep=
1240ac_must_keep_next=false
1241for ac_pass in 1 2
1242do
1243 for ac_arg
1244 do
1245 case $ac_arg in
1246 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1247 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1248 | -silent | --silent | --silen | --sile | --sil)
1249 continue ;;
1250 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1251 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1252 esac
1253 case $ac_pass in
1254 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1255 2)
1256 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1257 if test $ac_must_keep_next = true; then
1258 ac_must_keep_next=false # Got value, back to normal.
1259 else
1260 case $ac_arg in
1261 *=* | --config-cache | -C | -disable-* | --disable-* \
1262 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1263 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1264 | -with-* | --with-* | -without-* | --without-* | --x)
1265 case "$ac_configure_args0 " in
1266 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1267 esac
1268 ;;
1269 -* ) ac_must_keep_next=true ;;
1270 esac
1271 fi
1272 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1273 # Get rid of the leading space.
1274 ac_sep=" "
1275 ;;
1276 esac
1277 done
1278done
1279$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1280$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1281
1282# When interrupted or exit'd, cleanup temporary files, and complete
1283# config.log. We remove comments because anyway the quotes in there
1284# would cause problems or look ugly.
1285# WARNING: Be sure not to use single quotes in there, as some shells,
1286# such as our DU 5.0 friend, will then `close' the trap.
1287trap 'exit_status=$?
1288 # Save into config.log some information that might help in debugging.
1289 {
1290 echo
1291
1292 cat <<\_ASBOX
1293## ---------------- ##
1294## Cache variables. ##
1295## ---------------- ##
1296_ASBOX
1297 echo
1298 # The following way of writing the cache mishandles newlines in values,
1299{
1300 (set) 2>&1 |
1301 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1302 *ac_space=\ *)
1303 sed -n \
1304 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1305 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1306 ;;
1307 *)
1308 sed -n \
1309 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1310 ;;
1311 esac;
1312}
1313 echo
1314
1315 cat <<\_ASBOX
1316## ----------------- ##
1317## Output variables. ##
1318## ----------------- ##
1319_ASBOX
1320 echo
1321 for ac_var in $ac_subst_vars
1322 do
1323 eval ac_val=$`echo $ac_var`
1324 echo "$ac_var='"'"'$ac_val'"'"'"
1325 done | sort
1326 echo
1327
1328 if test -n "$ac_subst_files"; then
1329 cat <<\_ASBOX
1330## ------------- ##
1331## Output files. ##
1332## ------------- ##
1333_ASBOX
1334 echo
1335 for ac_var in $ac_subst_files
1336 do
1337 eval ac_val=$`echo $ac_var`
1338 echo "$ac_var='"'"'$ac_val'"'"'"
1339 done | sort
1340 echo
1341 fi
1342
1343 if test -s confdefs.h; then
1344 cat <<\_ASBOX
1345## ----------- ##
1346## confdefs.h. ##
1347## ----------- ##
1348_ASBOX
1349 echo
1350 sed "/^$/d" confdefs.h | sort
1351 echo
1352 fi
1353 test "$ac_signal" != 0 &&
1354 echo "$as_me: caught signal $ac_signal"
1355 echo "$as_me: exit $exit_status"
1356 } >&5
1357 rm -f core *.core &&
1358 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1359 exit $exit_status
1360 ' 0
1361for ac_signal in 1 2 13 15; do
1362 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1363done
1364ac_signal=0
1365
1366# confdefs.h avoids OS command line length limits that DEFS can exceed.
1367rm -rf conftest* confdefs.h
1368# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1369echo >confdefs.h
1370
1371# Predefined preprocessor variables.
1372
1373cat >>confdefs.h <<_ACEOF
1374#define PACKAGE_NAME "$PACKAGE_NAME"
1375_ACEOF
1376
1377
1378cat >>confdefs.h <<_ACEOF
1379#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1380_ACEOF
1381
1382
1383cat >>confdefs.h <<_ACEOF
1384#define PACKAGE_VERSION "$PACKAGE_VERSION"
1385_ACEOF
1386
1387
1388cat >>confdefs.h <<_ACEOF
1389#define PACKAGE_STRING "$PACKAGE_STRING"
1390_ACEOF
1391
1392
1393cat >>confdefs.h <<_ACEOF
1394#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1395_ACEOF
1396
1397
1398# Let the site file select an alternate cache file if it wants to.
1399# Prefer explicitly selected file to automatically selected ones.
1400if test -z "$CONFIG_SITE"; then
1401 if test "x$prefix" != xNONE; then
1402 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1403 else
1404 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1405 fi
1406fi
1407for ac_site_file in $CONFIG_SITE; do
1408 if test -r "$ac_site_file"; then
1409 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1410echo "$as_me: loading site script $ac_site_file" >&6;}
1411 sed 's/^/| /' "$ac_site_file" >&5
1412 . "$ac_site_file"
1413 fi
1414done
1415
1416if test -r "$cache_file"; then
1417 # Some versions of bash will fail to source /dev/null (special
1418 # files actually), so we avoid doing that.
1419 if test -f "$cache_file"; then
1420 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1421echo "$as_me: loading cache $cache_file" >&6;}
1422 case $cache_file in
1423 [\\/]* | ?:[\\/]* ) . $cache_file;;
1424 *) . ./$cache_file;;
1425 esac
1426 fi
1427else
1428 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1429echo "$as_me: creating cache $cache_file" >&6;}
1430 >$cache_file
1431fi
1432
1433# Check that the precious variables saved in the cache have kept the same
1434# value.
1435ac_cache_corrupted=false
1436for ac_var in `(set) 2>&1 |
1437 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1438 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1439 eval ac_new_set=\$ac_env_${ac_var}_set
1440 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1441 eval ac_new_val="\$ac_env_${ac_var}_value"
1442 case $ac_old_set,$ac_new_set in
1443 set,)
1444 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1445echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1446 ac_cache_corrupted=: ;;
1447 ,set)
1448 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1449echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1450 ac_cache_corrupted=: ;;
1451 ,);;
1452 *)
1453 if test "x$ac_old_val" != "x$ac_new_val"; then
1454 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1455echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1456 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1457echo "$as_me: former value: $ac_old_val" >&2;}
1458 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1459echo "$as_me: current value: $ac_new_val" >&2;}
1460 ac_cache_corrupted=:
1461 fi;;
1462 esac
1463 # Pass precious variables to config.status.
1464 if test "$ac_new_set" = set; then
1465 case $ac_new_val in
1466 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1467 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1468 *) ac_arg=$ac_var=$ac_new_val ;;
1469 esac
1470 case " $ac_configure_args " in
1471 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1472 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1473 esac
1474 fi
1475done
1476if $ac_cache_corrupted; then
1477 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1478echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1479 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1480echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1481 { (exit 1); exit 1; }; }
1482fi
1483
1484ac_ext=c
1485ac_cpp='$CPP $CPPFLAGS'
1486ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1487ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1488ac_compiler_gnu=$ac_cv_c_compiler_gnu
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
0c617c9a
BB
1508ac_ext=c
1509ac_cpp='$CPP $CPPFLAGS'
1510ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1511ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1512ac_compiler_gnu=$ac_cv_c_compiler_gnu
1513
1514
dd529a30 1515 echo "$as_me:$LINENO: checking metadata" >&5
1516echo $ECHO_N "checking metadata... $ECHO_C" >&6
1517
1518 META="$srcdir/META"
1519 _spl_ac_meta_got_file=no
1520 if test -f "$META"; then
1521 _spl_ac_meta_got_file=yes
1522
abc3ca14 1523 SPL_META_NAME=`perl -n\
dd529a30 1524 -e "BEGIN { \\$key=shift @ARGV; }"\
1525 -e "next unless s/^\s*\\$key[:=]//i;"\
1526 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
1527 -e "s/^\s+//;"\
1528 -e "s/\s+$//;"\
1529 -e "s/^(['\"])(.*)\1/\\$2/;"\
1530 -e "\\$val=\\$_;"\
1531 -e "END { print \\$val if defined \\$val; }"\
1532 '(?:NAME|PROJECT|PACKAGE)' $META`;
abc3ca14 1533 if test -n "$SPL_META_NAME"; then
dd529a30 1534
1535cat >>confdefs.h <<_ACEOF
abc3ca14 1536#define SPL_META_NAME "$SPL_META_NAME"
dd529a30 1537_ACEOF
1538
1539
1540 fi
1541
abc3ca14 1542 SPL_META_VERSION=`perl -n\
dd529a30 1543 -e "BEGIN { \\$key=shift @ARGV; }"\
1544 -e "next unless s/^\s*\\$key[:=]//i;"\
1545 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
1546 -e "s/^\s+//;"\
1547 -e "s/\s+$//;"\
1548 -e "s/^(['\"])(.*)\1/\\$2/;"\
1549 -e "\\$val=\\$_;"\
1550 -e "END { print \\$val if defined \\$val; }"\
1551 'VERSION' $META`;
abc3ca14 1552 if test -n "$SPL_META_VERSION"; then
dd529a30 1553
1554cat >>confdefs.h <<_ACEOF
abc3ca14 1555#define SPL_META_VERSION "$SPL_META_VERSION"
dd529a30 1556_ACEOF
1557
1558
1559 fi
1560
abc3ca14 1561 SPL_META_RELEASE=`perl -n\
dd529a30 1562 -e "BEGIN { \\$key=shift @ARGV; }"\
1563 -e "next unless s/^\s*\\$key[:=]//i;"\
1564 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
1565 -e "s/^\s+//;"\
1566 -e "s/\s+$//;"\
1567 -e "s/^(['\"])(.*)\1/\\$2/;"\
1568 -e "\\$val=\\$_;"\
1569 -e "END { print \\$val if defined \\$val; }"\
1570 'RELEASE' $META`;
abc3ca14 1571 if test -n "$SPL_META_RELEASE"; then
dd529a30 1572
1573cat >>confdefs.h <<_ACEOF
abc3ca14 1574#define SPL_META_RELEASE "$SPL_META_RELEASE"
dd529a30 1575_ACEOF
1576
1577
1578 fi
1579
abc3ca14 1580 if test -n "$SPL_META_NAME" -a -n "$SPL_META_VERSION"; then
72e7de60 1581 SPL_META_ALIAS="$SPL_META_NAME-$SPL_META_VERSION"
abc3ca14 1582 test -n "$SPL_META_RELEASE" &&
72e7de60 1583 SPL_META_ALIAS="$SPL_META_ALIAS-$SPL_META_RELEASE"
dd529a30 1584
1585cat >>confdefs.h <<_ACEOF
72e7de60 1586#define SPL_META_ALIAS "$SPL_META_ALIAS"
dd529a30 1587_ACEOF
1588
1589
1590 fi
1591
abc3ca14 1592 SPL_META_DATA=`perl -n\
dd529a30 1593 -e "BEGIN { \\$key=shift @ARGV; }"\
1594 -e "next unless s/^\s*\\$key[:=]//i;"\
1595 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
1596 -e "s/^\s+//;"\
1597 -e "s/\s+$//;"\
1598 -e "s/^(['\"])(.*)\1/\\$2/;"\
1599 -e "\\$val=\\$_;"\
1600 -e "END { print \\$val if defined \\$val; }"\
1601 'DATE' $META`;
abc3ca14 1602 if test -n "$SPL_META_DATA"; then
dd529a30 1603
1604cat >>confdefs.h <<_ACEOF
abc3ca14 1605#define SPL_META_DATA "$SPL_META_DATA"
dd529a30 1606_ACEOF
1607
1608
1609 fi
1610
abc3ca14 1611 SPL_META_AUTHOR=`perl -n\
dd529a30 1612 -e "BEGIN { \\$key=shift @ARGV; }"\
1613 -e "next unless s/^\s*\\$key[:=]//i;"\
1614 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
1615 -e "s/^\s+//;"\
1616 -e "s/\s+$//;"\
1617 -e "s/^(['\"])(.*)\1/\\$2/;"\
1618 -e "\\$val=\\$_;"\
1619 -e "END { print \\$val if defined \\$val; }"\
1620 'AUTHOR' $META`;
abc3ca14 1621 if test -n "$SPL_META_AUTHOR"; then
dd529a30 1622
1623cat >>confdefs.h <<_ACEOF
abc3ca14 1624#define SPL_META_AUTHOR "$SPL_META_AUTHOR"
dd529a30 1625_ACEOF
1626
1627
1628 fi
1629
1630
abc3ca14 1631 SPL_META_LT_CURRENT=`perl -n\
dd529a30 1632 -e "BEGIN { \\$key=shift @ARGV; }"\
1633 -e "next unless s/^\s*\\$key[:=]//i;"\
1634 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
1635 -e "s/^\s+//;"\
1636 -e "s/\s+$//;"\
1637 -e "s/^(['\"])(.*)\1/\\$2/;"\
1638 -e "\\$val=\\$_;"\
1639 -e "END { print \\$val if defined \\$val; }"\
1640 'LT_CURRENT' $META`;
abc3ca14 1641 SPL_META_LT_REVISION=`perl -n\
dd529a30 1642 -e "BEGIN { \\$key=shift @ARGV; }"\
1643 -e "next unless s/^\s*\\$key[:=]//i;"\
1644 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
1645 -e "s/^\s+//;"\
1646 -e "s/\s+$//;"\
1647 -e "s/^(['\"])(.*)\1/\\$2/;"\
1648 -e "\\$val=\\$_;"\
1649 -e "END { print \\$val if defined \\$val; }"\
1650 'LT_REVISION' $META`;
abc3ca14 1651 SPL_META_LT_AGE=`perl -n\
dd529a30 1652 -e "BEGIN { \\$key=shift @ARGV; }"\
1653 -e "next unless s/^\s*\\$key[:=]//i;"\
1654 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
1655 -e "s/^\s+//;"\
1656 -e "s/\s+$//;"\
1657 -e "s/^(['\"])(.*)\1/\\$2/;"\
1658 -e "\\$val=\\$_;"\
1659 -e "END { print \\$val if defined \\$val; }"\
1660 'LT_AGE' $META`;
abc3ca14
BB
1661 if test -n "$SPL_META_LT_CURRENT" \
1662 -o -n "$SPL_META_LT_REVISION" \
1663 -o -n "$SPL_META_LT_AGE"; then
1664 test -n "$SPL_META_LT_CURRENT" || SPL_META_LT_CURRENT="0"
1665 test -n "$SPL_META_LT_REVISION" || SPL_META_LT_REVISION="0"
1666 test -n "$SPL_META_LT_AGE" || SPL_META_LT_AGE="0"
dd529a30 1667
1668cat >>confdefs.h <<_ACEOF
abc3ca14 1669#define SPL_META_LT_CURRENT "$SPL_META_LT_CURRENT"
dd529a30 1670_ACEOF
1671
1672
1673cat >>confdefs.h <<_ACEOF
abc3ca14 1674#define SPL_META_LT_REVISION "$SPL_META_LT_REVISION"
dd529a30 1675_ACEOF
1676
1677
1678cat >>confdefs.h <<_ACEOF
abc3ca14 1679#define SPL_META_LT_AGE "$SPL_META_LT_AGE"
dd529a30 1680_ACEOF
1681
1682
1683
1684
1685 fi
1686 fi
1687
1688 echo "$as_me:$LINENO: result: $_spl_ac_meta_got_file" >&5
1689echo "${ECHO_T}$_spl_ac_meta_got_file" >&6
1690
1691
bf9f3bac 1692ac_aux_dir=
1693for ac_dir in config $srcdir/config; do
1694 if test -f $ac_dir/install-sh; then
1695 ac_aux_dir=$ac_dir
1696 ac_install_sh="$ac_aux_dir/install-sh -c"
1697 break
1698 elif test -f $ac_dir/install.sh; then
1699 ac_aux_dir=$ac_dir
1700 ac_install_sh="$ac_aux_dir/install.sh -c"
1701 break
1702 elif test -f $ac_dir/shtool; then
1703 ac_aux_dir=$ac_dir
1704 ac_install_sh="$ac_aux_dir/shtool install -c"
1705 break
1706 fi
1707done
1708if test -z "$ac_aux_dir"; then
1709 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1710echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1711 { (exit 1); exit 1; }; }
1712fi
1713ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1714ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1715ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1716
1717# Make sure we can run config.sub.
1718$ac_config_sub sun4 >/dev/null 2>&1 ||
1719 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1720echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1721 { (exit 1); exit 1; }; }
1722
1723echo "$as_me:$LINENO: checking build system type" >&5
1724echo $ECHO_N "checking build system type... $ECHO_C" >&6
1725if test "${ac_cv_build+set}" = set; then
1726 echo $ECHO_N "(cached) $ECHO_C" >&6
1727else
1728 ac_cv_build_alias=$build_alias
1729test -z "$ac_cv_build_alias" &&
1730 ac_cv_build_alias=`$ac_config_guess`
1731test -z "$ac_cv_build_alias" &&
1732 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1733echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1734 { (exit 1); exit 1; }; }
1735ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1736 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1737echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1738 { (exit 1); exit 1; }; }
1739
1740fi
1741echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1742echo "${ECHO_T}$ac_cv_build" >&6
1743build=$ac_cv_build
1744build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1745build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1746build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1747
1748
1749echo "$as_me:$LINENO: checking host system type" >&5
1750echo $ECHO_N "checking host system type... $ECHO_C" >&6
1751if test "${ac_cv_host+set}" = set; then
1752 echo $ECHO_N "(cached) $ECHO_C" >&6
1753else
1754 ac_cv_host_alias=$host_alias
1755test -z "$ac_cv_host_alias" &&
1756 ac_cv_host_alias=$ac_cv_build_alias
1757ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1758 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1759echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1760 { (exit 1); exit 1; }; }
1761
1762fi
1763echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1764echo "${ECHO_T}$ac_cv_host" >&6
1765host=$ac_cv_host
1766host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1767host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1768host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1769
1770
1771echo "$as_me:$LINENO: checking target system type" >&5
1772echo $ECHO_N "checking target system type... $ECHO_C" >&6
1773if test "${ac_cv_target+set}" = set; then
1774 echo $ECHO_N "(cached) $ECHO_C" >&6
1775else
1776 ac_cv_target_alias=$target_alias
1777test "x$ac_cv_target_alias" = "x" &&
1778 ac_cv_target_alias=$ac_cv_host_alias
1779ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1780 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1781echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1782 { (exit 1); exit 1; }; }
1783
1784fi
1785echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1786echo "${ECHO_T}$ac_cv_target" >&6
1787target=$ac_cv_target
1788target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1789target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1790target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1791
1792
1793# The aliases save the names the user supplied, while $host etc.
1794# will get canonicalized.
1795test -n "$target_alias" &&
1796 test "$program_prefix$program_suffix$program_transform_name" = \
1797 NONENONEs,x,x, &&
1798 program_prefix=${target_alias}-
1799am__api_version="1.9"
1800# Find a good install program. We prefer a C program (faster),
1801# so one script is as good as another. But avoid the broken or
1802# incompatible versions:
1803# SysV /etc/install, /usr/sbin/install
1804# SunOS /usr/etc/install
1805# IRIX /sbin/install
1806# AIX /bin/install
1807# AmigaOS /C/install, which installs bootblocks on floppy discs
1808# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1809# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1810# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1811# OS/2's system install, which has a completely different semantic
1812# ./install, which can be erroneously created by make from ./install.sh.
1813echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1814echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1815if test -z "$INSTALL"; then
1816if test "${ac_cv_path_install+set}" = set; then
1817 echo $ECHO_N "(cached) $ECHO_C" >&6
1818else
1819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1820for as_dir in $PATH
1821do
1822 IFS=$as_save_IFS
1823 test -z "$as_dir" && as_dir=.
1824 # Account for people who put trailing slashes in PATH elements.
1825case $as_dir/ in
1826 ./ | .// | /cC/* | \
1827 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1828 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1829 /usr/ucb/* ) ;;
1830 *)
1831 # OSF1 and SCO ODT 3.0 have their own names for install.
1832 # Don't use installbsd from OSF since it installs stuff as root
1833 # by default.
1834 for ac_prog in ginstall scoinst install; do
1835 for ac_exec_ext in '' $ac_executable_extensions; do
1836 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1837 if test $ac_prog = install &&
1838 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1839 # AIX install. It has an incompatible calling convention.
1840 :
1841 elif test $ac_prog = install &&
1842 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1843 # program-specific install script used by HP pwplus--don't use.
1844 :
1845 else
1846 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1847 break 3
1848 fi
1849 fi
1850 done
1851 done
1852 ;;
1853esac
1854done
1855
1856
1857fi
1858 if test "${ac_cv_path_install+set}" = set; then
1859 INSTALL=$ac_cv_path_install
1860 else
1861 # As a last resort, use the slow shell script. We don't cache a
1862 # path for INSTALL within a source directory, because that will
1863 # break other packages using the cache if that directory is
1864 # removed, or if the path is relative.
1865 INSTALL=$ac_install_sh
1866 fi
1867fi
1868echo "$as_me:$LINENO: result: $INSTALL" >&5
1869echo "${ECHO_T}$INSTALL" >&6
1870
1871# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1872# It thinks the first close brace ends the variable substitution.
1873test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1874
1875test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1876
1877test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1878
1879echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1880echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1881# Just in case
1882sleep 1
1883echo timestamp > conftest.file
1884# Do `set' in a subshell so we don't clobber the current shell's
1885# arguments. Must try -L first in case configure is actually a
1886# symlink; some systems play weird games with the mod time of symlinks
1887# (eg FreeBSD returns the mod time of the symlink's containing
1888# directory).
1889if (
1890 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1891 if test "$*" = "X"; then
1892 # -L didn't work.
1893 set X `ls -t $srcdir/configure conftest.file`
1894 fi
1895 rm -f conftest.file
1896 if test "$*" != "X $srcdir/configure conftest.file" \
1897 && test "$*" != "X conftest.file $srcdir/configure"; then
1898
1899 # If neither matched, then we have a broken ls. This can happen
1900 # if, for instance, CONFIG_SHELL is bash and it inherits a
1901 # broken ls alias from the environment. This has actually
1902 # happened. Such a system could not be considered "sane".
1903 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1904alias in your environment" >&5
1905echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1906alias in your environment" >&2;}
1907 { (exit 1); exit 1; }; }
1908 fi
1909
1910 test "$2" = conftest.file
1911 )
1912then
1913 # Ok.
1914 :
1915else
1916 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1917Check your system clock" >&5
1918echo "$as_me: error: newly created file is older than distributed files!
1919Check your system clock" >&2;}
1920 { (exit 1); exit 1; }; }
1921fi
1922echo "$as_me:$LINENO: result: yes" >&5
1923echo "${ECHO_T}yes" >&6
1924test "$program_prefix" != NONE &&
1925 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1926# Use a double $ so make ignores it.
1927test "$program_suffix" != NONE &&
1928 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1929# Double any \ or $. echo might interpret backslashes.
1930# By default was `s,x,x', remove it if useless.
1931cat <<\_ACEOF >conftest.sed
1932s/[\\$]/&&/g;s/;s,x,x,$//
1933_ACEOF
1934program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1935rm conftest.sed
1936
1937# expand $ac_aux_dir to an absolute path
1938am_aux_dir=`cd $ac_aux_dir && pwd`
1939
1940test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1941# Use eval to expand $SHELL
1942if eval "$MISSING --run true"; then
1943 am_missing_run="$MISSING --run "
1944else
1945 am_missing_run=
1946 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1947echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1948fi
1949
1950if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1951 # We used to keeping the `.' as first argument, in order to
1952 # allow $(mkdir_p) to be used without argument. As in
1953 # $(mkdir_p) $(somedir)
1954 # where $(somedir) is conditionally defined. However this is wrong
1955 # for two reasons:
1956 # 1. if the package is installed by a user who cannot write `.'
1957 # make install will fail,
1958 # 2. the above comment should most certainly read
1959 # $(mkdir_p) $(DESTDIR)$(somedir)
1960 # so it does not work when $(somedir) is undefined and
1961 # $(DESTDIR) is not.
1962 # To support the latter case, we have to write
1963 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1964 # so the `.' trick is pointless.
1965 mkdir_p='mkdir -p --'
1966else
1967 # On NextStep and OpenStep, the `mkdir' command does not
1968 # recognize any option. It will interpret all options as
1969 # directories to create, and then abort because `.' already
1970 # exists.
1971 for d in ./-p ./--version;
1972 do
1973 test -d $d && rmdir $d
1974 done
1975 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1976 if test -f "$ac_aux_dir/mkinstalldirs"; then
1977 mkdir_p='$(mkinstalldirs)'
1978 else
1979 mkdir_p='$(install_sh) -d'
1980 fi
1981fi
1982
1983for ac_prog in gawk mawk nawk awk
1984do
1985 # Extract the first word of "$ac_prog", so it can be a program name with args.
1986set dummy $ac_prog; ac_word=$2
1987echo "$as_me:$LINENO: checking for $ac_word" >&5
1988echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1989if test "${ac_cv_prog_AWK+set}" = set; then
1990 echo $ECHO_N "(cached) $ECHO_C" >&6
1991else
1992 if test -n "$AWK"; then
1993 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1994else
1995as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1996for as_dir in $PATH
1997do
1998 IFS=$as_save_IFS
1999 test -z "$as_dir" && as_dir=.
2000 for ac_exec_ext in '' $ac_executable_extensions; do
2001 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2002 ac_cv_prog_AWK="$ac_prog"
2003 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2004 break 2
2005 fi
2006done
2007done
2008
2009fi
2010fi
2011AWK=$ac_cv_prog_AWK
2012if test -n "$AWK"; then
2013 echo "$as_me:$LINENO: result: $AWK" >&5
2014echo "${ECHO_T}$AWK" >&6
2015else
2016 echo "$as_me:$LINENO: result: no" >&5
2017echo "${ECHO_T}no" >&6
2018fi
2019
2020 test -n "$AWK" && break
2021done
2022
2023echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2024echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2025set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2026if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2027 echo $ECHO_N "(cached) $ECHO_C" >&6
2028else
2029 cat >conftest.make <<\_ACEOF
2030all:
2031 @echo 'ac_maketemp="$(MAKE)"'
2032_ACEOF
2033# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2034eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2035if test -n "$ac_maketemp"; then
2036 eval ac_cv_prog_make_${ac_make}_set=yes
2037else
2038 eval ac_cv_prog_make_${ac_make}_set=no
2039fi
2040rm -f conftest.make
2041fi
2042if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2043 echo "$as_me:$LINENO: result: yes" >&5
2044echo "${ECHO_T}yes" >&6
2045 SET_MAKE=
2046else
2047 echo "$as_me:$LINENO: result: no" >&5
2048echo "${ECHO_T}no" >&6
2049 SET_MAKE="MAKE=${MAKE-make}"
2050fi
2051
2052rm -rf .tst 2>/dev/null
2053mkdir .tst 2>/dev/null
2054if test -d .tst; then
2055 am__leading_dot=.
2056else
2057 am__leading_dot=_
2058fi
2059rmdir .tst 2>/dev/null
2060
2061# test to see if srcdir already configured
2062if test "`cd $srcdir && pwd`" != "`pwd`" &&
2063 test -f $srcdir/config.status; then
2064 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2065echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2066 { (exit 1); exit 1; }; }
2067fi
2068
2069# test whether we have cygpath
2070if test -z "$CYGPATH_W"; then
2071 if (cygpath --version) >/dev/null 2>/dev/null; then
2072 CYGPATH_W='cygpath -w'
2073 else
2074 CYGPATH_W=echo
2075 fi
2076fi
2077
2078
2079# Define the identity of the package.
abc3ca14
BB
2080 PACKAGE=$SPL_META_NAME
2081 VERSION=$SPL_META_VERSION
bf9f3bac 2082
2083
2084cat >>confdefs.h <<_ACEOF
2085#define PACKAGE "$PACKAGE"
2086_ACEOF
2087
2088
2089cat >>confdefs.h <<_ACEOF
2090#define VERSION "$VERSION"
2091_ACEOF
2092
2093# Some tools Automake needs.
2094
2095ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2096
2097
2098AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2099
2100
2101AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2102
2103
2104AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2105
2106
2107MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2108
2109install_sh=${install_sh-"$am_aux_dir/install-sh"}
2110
2111# Installed binaries are usually stripped using `strip' when the user
2112# run `make install-strip'. However `strip' might not be the right
2113# tool to use in cross-compilation environments, therefore Automake
2114# will honor the `STRIP' environment variable to overrule this program.
2115if test "$cross_compiling" != no; then
2116 if test -n "$ac_tool_prefix"; then
2117 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2118set dummy ${ac_tool_prefix}strip; ac_word=$2
2119echo "$as_me:$LINENO: checking for $ac_word" >&5
2120echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2121if test "${ac_cv_prog_STRIP+set}" = set; then
2122 echo $ECHO_N "(cached) $ECHO_C" >&6
2123else
2124 if test -n "$STRIP"; then
2125 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2126else
2127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2128for as_dir in $PATH
2129do
2130 IFS=$as_save_IFS
2131 test -z "$as_dir" && as_dir=.
2132 for ac_exec_ext in '' $ac_executable_extensions; do
2133 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2134 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2135 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2136 break 2
2137 fi
2138done
2139done
2140
2141fi
2142fi
2143STRIP=$ac_cv_prog_STRIP
2144if test -n "$STRIP"; then
2145 echo "$as_me:$LINENO: result: $STRIP" >&5
2146echo "${ECHO_T}$STRIP" >&6
2147else
2148 echo "$as_me:$LINENO: result: no" >&5
2149echo "${ECHO_T}no" >&6
2150fi
2151
2152fi
2153if test -z "$ac_cv_prog_STRIP"; then
2154 ac_ct_STRIP=$STRIP
2155 # Extract the first word of "strip", so it can be a program name with args.
2156set dummy strip; ac_word=$2
2157echo "$as_me:$LINENO: checking for $ac_word" >&5
2158echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2159if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2160 echo $ECHO_N "(cached) $ECHO_C" >&6
2161else
2162 if test -n "$ac_ct_STRIP"; then
2163 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2164else
2165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2166for as_dir in $PATH
2167do
2168 IFS=$as_save_IFS
2169 test -z "$as_dir" && as_dir=.
2170 for ac_exec_ext in '' $ac_executable_extensions; do
2171 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2172 ac_cv_prog_ac_ct_STRIP="strip"
2173 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2174 break 2
2175 fi
2176done
2177done
2178
2179 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2180fi
2181fi
2182ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2183if test -n "$ac_ct_STRIP"; then
2184 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2185echo "${ECHO_T}$ac_ct_STRIP" >&6
2186else
2187 echo "$as_me:$LINENO: result: no" >&5
2188echo "${ECHO_T}no" >&6
2189fi
2190
2191 STRIP=$ac_ct_STRIP
2192else
2193 STRIP="$ac_cv_prog_STRIP"
2194fi
2195
2196fi
2197INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2198
2199# We need awk for the "check" target. The system "awk" is bad on
2200# some platforms.
2201# Always define AMTAR for backward compatibility.
2202
2203AMTAR=${AMTAR-"${am_missing_run}tar"}
2204
2205am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2206
2207
2208
2209
2210
2211 ac_config_headers="$ac_config_headers spl_config.h"
2212
0cbaeb11
BB
2213
2214
bf9f3bac 2215echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2216echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
2217 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
2218if test "${enable_maintainer_mode+set}" = set; then
2219 enableval="$enable_maintainer_mode"
2220 USE_MAINTAINER_MODE=$enableval
2221else
2222 USE_MAINTAINER_MODE=no
2223fi;
2224 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2225echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
2226
2227
2228if test $USE_MAINTAINER_MODE = yes; then
2229 MAINTAINER_MODE_TRUE=
2230 MAINTAINER_MODE_FALSE='#'
2231else
2232 MAINTAINER_MODE_TRUE='#'
2233 MAINTAINER_MODE_FALSE=
2234fi
2235
2236 MAINT=$MAINTAINER_MODE_TRUE
2237
2238
2239
2240# Find a good install program. We prefer a C program (faster),
2241# so one script is as good as another. But avoid the broken or
2242# incompatible versions:
2243# SysV /etc/install, /usr/sbin/install
2244# SunOS /usr/etc/install
2245# IRIX /sbin/install
2246# AIX /bin/install
2247# AmigaOS /C/install, which installs bootblocks on floppy discs
2248# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2249# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2250# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2251# OS/2's system install, which has a completely different semantic
2252# ./install, which can be erroneously created by make from ./install.sh.
2253echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2254echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2255if test -z "$INSTALL"; then
2256if test "${ac_cv_path_install+set}" = set; then
2257 echo $ECHO_N "(cached) $ECHO_C" >&6
2258else
2259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2260for as_dir in $PATH
2261do
2262 IFS=$as_save_IFS
2263 test -z "$as_dir" && as_dir=.
2264 # Account for people who put trailing slashes in PATH elements.
2265case $as_dir/ in
2266 ./ | .// | /cC/* | \
2267 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2268 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2269 /usr/ucb/* ) ;;
2270 *)
2271 # OSF1 and SCO ODT 3.0 have their own names for install.
2272 # Don't use installbsd from OSF since it installs stuff as root
2273 # by default.
2274 for ac_prog in ginstall scoinst install; do
2275 for ac_exec_ext in '' $ac_executable_extensions; do
2276 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2277 if test $ac_prog = install &&
2278 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2279 # AIX install. It has an incompatible calling convention.
2280 :
2281 elif test $ac_prog = install &&
2282 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2283 # program-specific install script used by HP pwplus--don't use.
2284 :
2285 else
2286 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2287 break 3
2288 fi
2289 fi
2290 done
2291 done
2292 ;;
2293esac
2294done
2295
2296
2297fi
2298 if test "${ac_cv_path_install+set}" = set; then
2299 INSTALL=$ac_cv_path_install
2300 else
2301 # As a last resort, use the slow shell script. We don't cache a
2302 # path for INSTALL within a source directory, because that will
2303 # break other packages using the cache if that directory is
2304 # removed, or if the path is relative.
2305 INSTALL=$ac_install_sh
2306 fi
2307fi
2308echo "$as_me:$LINENO: result: $INSTALL" >&5
2309echo "${ECHO_T}$INSTALL" >&6
2310
2311# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2312# It thinks the first close brace ends the variable substitution.
2313test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2314
2315test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2316
2317test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2318
2319ac_ext=c
2320ac_cpp='$CPP $CPPFLAGS'
2321ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2322ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2323ac_compiler_gnu=$ac_cv_c_compiler_gnu
2324if test -n "$ac_tool_prefix"; then
2325 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2326set dummy ${ac_tool_prefix}gcc; ac_word=$2
2327echo "$as_me:$LINENO: checking for $ac_word" >&5
2328echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2329if test "${ac_cv_prog_CC+set}" = set; then
2330 echo $ECHO_N "(cached) $ECHO_C" >&6
2331else
2332 if test -n "$CC"; then
2333 ac_cv_prog_CC="$CC" # Let the user override the test.
2334else
2335as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2336for as_dir in $PATH
2337do
2338 IFS=$as_save_IFS
2339 test -z "$as_dir" && as_dir=.
2340 for ac_exec_ext in '' $ac_executable_extensions; do
2341 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2342 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2343 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2344 break 2
2345 fi
2346done
2347done
2348
2349fi
2350fi
2351CC=$ac_cv_prog_CC
2352if test -n "$CC"; then
2353 echo "$as_me:$LINENO: result: $CC" >&5
2354echo "${ECHO_T}$CC" >&6
2355else
2356 echo "$as_me:$LINENO: result: no" >&5
2357echo "${ECHO_T}no" >&6
2358fi
2359
2360fi
2361if test -z "$ac_cv_prog_CC"; then
2362 ac_ct_CC=$CC
2363 # Extract the first word of "gcc", so it can be a program name with args.
2364set dummy gcc; ac_word=$2
2365echo "$as_me:$LINENO: checking for $ac_word" >&5
2366echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2367if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2368 echo $ECHO_N "(cached) $ECHO_C" >&6
2369else
2370 if test -n "$ac_ct_CC"; then
2371 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2372else
2373as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2374for as_dir in $PATH
2375do
2376 IFS=$as_save_IFS
2377 test -z "$as_dir" && as_dir=.
2378 for ac_exec_ext in '' $ac_executable_extensions; do
2379 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2380 ac_cv_prog_ac_ct_CC="gcc"
2381 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2382 break 2
2383 fi
2384done
2385done
2386
2387fi
2388fi
2389ac_ct_CC=$ac_cv_prog_ac_ct_CC
2390if test -n "$ac_ct_CC"; then
2391 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2392echo "${ECHO_T}$ac_ct_CC" >&6
2393else
2394 echo "$as_me:$LINENO: result: no" >&5
2395echo "${ECHO_T}no" >&6
2396fi
2397
2398 CC=$ac_ct_CC
2399else
2400 CC="$ac_cv_prog_CC"
2401fi
2402
2403if test -z "$CC"; then
2404 if test -n "$ac_tool_prefix"; then
2405 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2406set dummy ${ac_tool_prefix}cc; ac_word=$2
2407echo "$as_me:$LINENO: checking for $ac_word" >&5
2408echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2409if test "${ac_cv_prog_CC+set}" = set; then
2410 echo $ECHO_N "(cached) $ECHO_C" >&6
2411else
2412 if test -n "$CC"; then
2413 ac_cv_prog_CC="$CC" # Let the user override the test.
2414else
2415as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2416for as_dir in $PATH
2417do
2418 IFS=$as_save_IFS
2419 test -z "$as_dir" && as_dir=.
2420 for ac_exec_ext in '' $ac_executable_extensions; do
2421 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2422 ac_cv_prog_CC="${ac_tool_prefix}cc"
2423 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2424 break 2
2425 fi
2426done
2427done
2428
2429fi
2430fi
2431CC=$ac_cv_prog_CC
2432if test -n "$CC"; then
2433 echo "$as_me:$LINENO: result: $CC" >&5
2434echo "${ECHO_T}$CC" >&6
2435else
2436 echo "$as_me:$LINENO: result: no" >&5
2437echo "${ECHO_T}no" >&6
2438fi
2439
2440fi
2441if test -z "$ac_cv_prog_CC"; then
2442 ac_ct_CC=$CC
2443 # Extract the first word of "cc", so it can be a program name with args.
2444set dummy cc; ac_word=$2
2445echo "$as_me:$LINENO: checking for $ac_word" >&5
2446echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2447if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2448 echo $ECHO_N "(cached) $ECHO_C" >&6
2449else
2450 if test -n "$ac_ct_CC"; then
2451 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2452else
2453as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2454for as_dir in $PATH
2455do
2456 IFS=$as_save_IFS
2457 test -z "$as_dir" && as_dir=.
2458 for ac_exec_ext in '' $ac_executable_extensions; do
2459 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2460 ac_cv_prog_ac_ct_CC="cc"
2461 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2462 break 2
2463 fi
2464done
2465done
2466
2467fi
2468fi
2469ac_ct_CC=$ac_cv_prog_ac_ct_CC
2470if test -n "$ac_ct_CC"; then
2471 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2472echo "${ECHO_T}$ac_ct_CC" >&6
2473else
2474 echo "$as_me:$LINENO: result: no" >&5
2475echo "${ECHO_T}no" >&6
2476fi
2477
2478 CC=$ac_ct_CC
2479else
2480 CC="$ac_cv_prog_CC"
2481fi
2482
2483fi
2484if test -z "$CC"; then
2485 # Extract the first word of "cc", so it can be a program name with args.
2486set dummy cc; ac_word=$2
2487echo "$as_me:$LINENO: checking for $ac_word" >&5
2488echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2489if test "${ac_cv_prog_CC+set}" = set; then
2490 echo $ECHO_N "(cached) $ECHO_C" >&6
2491else
2492 if test -n "$CC"; then
2493 ac_cv_prog_CC="$CC" # Let the user override the test.
2494else
2495 ac_prog_rejected=no
2496as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2497for as_dir in $PATH
2498do
2499 IFS=$as_save_IFS
2500 test -z "$as_dir" && as_dir=.
2501 for ac_exec_ext in '' $ac_executable_extensions; do
2502 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2503 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2504 ac_prog_rejected=yes
2505 continue
2506 fi
2507 ac_cv_prog_CC="cc"
2508 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2509 break 2
2510 fi
2511done
2512done
2513
2514if test $ac_prog_rejected = yes; then
2515 # We found a bogon in the path, so make sure we never use it.
2516 set dummy $ac_cv_prog_CC
2517 shift
2518 if test $# != 0; then
2519 # We chose a different compiler from the bogus one.
2520 # However, it has the same basename, so the bogon will be chosen
2521 # first if we set CC to just the basename; use the full file name.
2522 shift
2523 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2524 fi
2525fi
2526fi
2527fi
2528CC=$ac_cv_prog_CC
2529if test -n "$CC"; then
2530 echo "$as_me:$LINENO: result: $CC" >&5
2531echo "${ECHO_T}$CC" >&6
2532else
2533 echo "$as_me:$LINENO: result: no" >&5
2534echo "${ECHO_T}no" >&6
2535fi
2536
2537fi
2538if test -z "$CC"; then
2539 if test -n "$ac_tool_prefix"; then
2540 for ac_prog in cl
2541 do
2542 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2543set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2544echo "$as_me:$LINENO: checking for $ac_word" >&5
2545echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2546if test "${ac_cv_prog_CC+set}" = set; then
2547 echo $ECHO_N "(cached) $ECHO_C" >&6
2548else
2549 if test -n "$CC"; then
2550 ac_cv_prog_CC="$CC" # Let the user override the test.
2551else
2552as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2553for as_dir in $PATH
2554do
2555 IFS=$as_save_IFS
2556 test -z "$as_dir" && as_dir=.
2557 for ac_exec_ext in '' $ac_executable_extensions; do
2558 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2559 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2560 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2561 break 2
2562 fi
2563done
2564done
2565
2566fi
2567fi
2568CC=$ac_cv_prog_CC
2569if test -n "$CC"; then
2570 echo "$as_me:$LINENO: result: $CC" >&5
2571echo "${ECHO_T}$CC" >&6
2572else
2573 echo "$as_me:$LINENO: result: no" >&5
2574echo "${ECHO_T}no" >&6
2575fi
2576
2577 test -n "$CC" && break
2578 done
2579fi
2580if test -z "$CC"; then
2581 ac_ct_CC=$CC
2582 for ac_prog in cl
2583do
2584 # Extract the first word of "$ac_prog", so it can be a program name with args.
2585set dummy $ac_prog; ac_word=$2
2586echo "$as_me:$LINENO: checking for $ac_word" >&5
2587echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2588if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2589 echo $ECHO_N "(cached) $ECHO_C" >&6
2590else
2591 if test -n "$ac_ct_CC"; then
2592 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2593else
2594as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2595for as_dir in $PATH
2596do
2597 IFS=$as_save_IFS
2598 test -z "$as_dir" && as_dir=.
2599 for ac_exec_ext in '' $ac_executable_extensions; do
2600 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2601 ac_cv_prog_ac_ct_CC="$ac_prog"
2602 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2603 break 2
2604 fi
2605done
2606done
2607
2608fi
2609fi
2610ac_ct_CC=$ac_cv_prog_ac_ct_CC
2611if test -n "$ac_ct_CC"; then
2612 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2613echo "${ECHO_T}$ac_ct_CC" >&6
2614else
2615 echo "$as_me:$LINENO: result: no" >&5
2616echo "${ECHO_T}no" >&6
2617fi
2618
2619 test -n "$ac_ct_CC" && break
2620done
2621
2622 CC=$ac_ct_CC
2623fi
2624
2625fi
2626
2627
2628test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2629See \`config.log' for more details." >&5
2630echo "$as_me: error: no acceptable C compiler found in \$PATH
2631See \`config.log' for more details." >&2;}
2632 { (exit 1); exit 1; }; }
2633
2634# Provide some information about the compiler.
2635echo "$as_me:$LINENO:" \
2636 "checking for C compiler version" >&5
2637ac_compiler=`set X $ac_compile; echo $2`
2638{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2639 (eval $ac_compiler --version </dev/null >&5) 2>&5
2640 ac_status=$?
2641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2642 (exit $ac_status); }
2643{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2644 (eval $ac_compiler -v </dev/null >&5) 2>&5
2645 ac_status=$?
2646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2647 (exit $ac_status); }
2648{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2649 (eval $ac_compiler -V </dev/null >&5) 2>&5
2650 ac_status=$?
2651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2652 (exit $ac_status); }
2653
2654cat >conftest.$ac_ext <<_ACEOF
2655/* confdefs.h. */
2656_ACEOF
2657cat confdefs.h >>conftest.$ac_ext
2658cat >>conftest.$ac_ext <<_ACEOF
2659/* end confdefs.h. */
2660
2661int
2662main ()
2663{
2664
2665 ;
2666 return 0;
2667}
2668_ACEOF
2669ac_clean_files_save=$ac_clean_files
2670ac_clean_files="$ac_clean_files a.out a.exe b.out"
2671# Try to create an executable without -o first, disregard a.out.
2672# It will help us diagnose broken compilers, and finding out an intuition
2673# of exeext.
2674echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2675echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2676ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2677if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2678 (eval $ac_link_default) 2>&5
2679 ac_status=$?
2680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2681 (exit $ac_status); }; then
2682 # Find the output, starting from the most likely. This scheme is
2683# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2684# resort.
2685
2686# Be careful to initialize this variable, since it used to be cached.
2687# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2688ac_cv_exeext=
2689# b.out is created by i960 compilers.
2690for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2691do
2692 test -f "$ac_file" || continue
2693 case $ac_file in
2694 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2695 ;;
2696 conftest.$ac_ext )
2697 # This is the source file.
2698 ;;
2699 [ab].out )
2700 # We found the default executable, but exeext='' is most
2701 # certainly right.
2702 break;;
2703 *.* )
2704 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2705 # FIXME: I believe we export ac_cv_exeext for Libtool,
2706 # but it would be cool to find out if it's true. Does anybody
2707 # maintain Libtool? --akim.
2708 export ac_cv_exeext
2709 break;;
2710 * )
2711 break;;
2712 esac
2713done
2714else
2715 echo "$as_me: failed program was:" >&5
2716sed 's/^/| /' conftest.$ac_ext >&5
2717
2718{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2719See \`config.log' for more details." >&5
2720echo "$as_me: error: C compiler cannot create executables
2721See \`config.log' for more details." >&2;}
2722 { (exit 77); exit 77; }; }
2723fi
2724
2725ac_exeext=$ac_cv_exeext
2726echo "$as_me:$LINENO: result: $ac_file" >&5
2727echo "${ECHO_T}$ac_file" >&6
2728
2729# Check the compiler produces executables we can run. If not, either
2730# the compiler is broken, or we cross compile.
2731echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2732echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2733# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2734# If not cross compiling, check that we can run a simple program.
2735if test "$cross_compiling" != yes; then
2736 if { ac_try='./$ac_file'
2737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2738 (eval $ac_try) 2>&5
2739 ac_status=$?
2740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741 (exit $ac_status); }; }; then
2742 cross_compiling=no
2743 else
2744 if test "$cross_compiling" = maybe; then
2745 cross_compiling=yes
2746 else
2747 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2748If you meant to cross compile, use \`--host'.
2749See \`config.log' for more details." >&5
2750echo "$as_me: error: cannot run C compiled programs.
2751If you meant to cross compile, use \`--host'.
2752See \`config.log' for more details." >&2;}
2753 { (exit 1); exit 1; }; }
2754 fi
2755 fi
2756fi
2757echo "$as_me:$LINENO: result: yes" >&5
2758echo "${ECHO_T}yes" >&6
2759
2760rm -f a.out a.exe conftest$ac_cv_exeext b.out
2761ac_clean_files=$ac_clean_files_save
2762# Check the compiler produces executables we can run. If not, either
2763# the compiler is broken, or we cross compile.
2764echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2765echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2766echo "$as_me:$LINENO: result: $cross_compiling" >&5
2767echo "${ECHO_T}$cross_compiling" >&6
2768
2769echo "$as_me:$LINENO: checking for suffix of executables" >&5
2770echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2771if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2772 (eval $ac_link) 2>&5
2773 ac_status=$?
2774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2775 (exit $ac_status); }; then
2776 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2777# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2778# work properly (i.e., refer to `conftest.exe'), while it won't with
2779# `rm'.
2780for ac_file in conftest.exe conftest conftest.*; do
2781 test -f "$ac_file" || continue
2782 case $ac_file in
2783 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2784 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2785 export ac_cv_exeext
2786 break;;
2787 * ) break;;
2788 esac
2789done
2790else
2791 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2792See \`config.log' for more details." >&5
2793echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2794See \`config.log' for more details." >&2;}
2795 { (exit 1); exit 1; }; }
2796fi
2797
2798rm -f conftest$ac_cv_exeext
2799echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2800echo "${ECHO_T}$ac_cv_exeext" >&6
2801
2802rm -f conftest.$ac_ext
2803EXEEXT=$ac_cv_exeext
2804ac_exeext=$EXEEXT
2805echo "$as_me:$LINENO: checking for suffix of object files" >&5
2806echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2807if test "${ac_cv_objext+set}" = set; then
2808 echo $ECHO_N "(cached) $ECHO_C" >&6
2809else
2810 cat >conftest.$ac_ext <<_ACEOF
2811/* confdefs.h. */
2812_ACEOF
2813cat confdefs.h >>conftest.$ac_ext
2814cat >>conftest.$ac_ext <<_ACEOF
2815/* end confdefs.h. */
2816
2817int
2818main ()
2819{
2820
2821 ;
2822 return 0;
2823}
2824_ACEOF
2825rm -f conftest.o conftest.obj
2826if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2827 (eval $ac_compile) 2>&5
2828 ac_status=$?
2829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2830 (exit $ac_status); }; then
2831 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2832 case $ac_file in
2833 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2834 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2835 break;;
2836 esac
2837done
2838else
2839 echo "$as_me: failed program was:" >&5
2840sed 's/^/| /' conftest.$ac_ext >&5
2841
2842{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2843See \`config.log' for more details." >&5
2844echo "$as_me: error: cannot compute suffix of object files: cannot compile
2845See \`config.log' for more details." >&2;}
2846 { (exit 1); exit 1; }; }
2847fi
2848
2849rm -f conftest.$ac_cv_objext conftest.$ac_ext
2850fi
2851echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2852echo "${ECHO_T}$ac_cv_objext" >&6
2853OBJEXT=$ac_cv_objext
2854ac_objext=$OBJEXT
2855echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2856echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2857if test "${ac_cv_c_compiler_gnu+set}" = set; then
2858 echo $ECHO_N "(cached) $ECHO_C" >&6
2859else
2860 cat >conftest.$ac_ext <<_ACEOF
2861/* confdefs.h. */
2862_ACEOF
2863cat confdefs.h >>conftest.$ac_ext
2864cat >>conftest.$ac_ext <<_ACEOF
2865/* end confdefs.h. */
2866
2867int
2868main ()
2869{
2870#ifndef __GNUC__
2871 choke me
2872#endif
2873
2874 ;
2875 return 0;
2876}
2877_ACEOF
2878rm -f conftest.$ac_objext
2879if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2880 (eval $ac_compile) 2>conftest.er1
2881 ac_status=$?
2882 grep -v '^ *+' conftest.er1 >conftest.err
2883 rm -f conftest.er1
2884 cat conftest.err >&5
2885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2886 (exit $ac_status); } &&
2887 { ac_try='test -z "$ac_c_werror_flag"
2888 || test ! -s conftest.err'
2889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2890 (eval $ac_try) 2>&5
2891 ac_status=$?
2892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2893 (exit $ac_status); }; } &&
2894 { ac_try='test -s conftest.$ac_objext'
2895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2896 (eval $ac_try) 2>&5
2897 ac_status=$?
2898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2899 (exit $ac_status); }; }; then
2900 ac_compiler_gnu=yes
2901else
2902 echo "$as_me: failed program was:" >&5
2903sed 's/^/| /' conftest.$ac_ext >&5
2904
2905ac_compiler_gnu=no
2906fi
2907rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2908ac_cv_c_compiler_gnu=$ac_compiler_gnu
2909
2910fi
2911echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2912echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2913GCC=`test $ac_compiler_gnu = yes && echo yes`
2914ac_test_CFLAGS=${CFLAGS+set}
2915ac_save_CFLAGS=$CFLAGS
2916CFLAGS="-g"
2917echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2918echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2919if test "${ac_cv_prog_cc_g+set}" = set; then
2920 echo $ECHO_N "(cached) $ECHO_C" >&6
2921else
2922 cat >conftest.$ac_ext <<_ACEOF
2923/* confdefs.h. */
2924_ACEOF
2925cat confdefs.h >>conftest.$ac_ext
2926cat >>conftest.$ac_ext <<_ACEOF
2927/* end confdefs.h. */
2928
2929int
2930main ()
2931{
2932
2933 ;
2934 return 0;
2935}
2936_ACEOF
2937rm -f conftest.$ac_objext
2938if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2939 (eval $ac_compile) 2>conftest.er1
2940 ac_status=$?
2941 grep -v '^ *+' conftest.er1 >conftest.err
2942 rm -f conftest.er1
2943 cat conftest.err >&5
2944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2945 (exit $ac_status); } &&
2946 { ac_try='test -z "$ac_c_werror_flag"
2947 || test ! -s conftest.err'
2948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2949 (eval $ac_try) 2>&5
2950 ac_status=$?
2951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2952 (exit $ac_status); }; } &&
2953 { ac_try='test -s conftest.$ac_objext'
2954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2955 (eval $ac_try) 2>&5
2956 ac_status=$?
2957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2958 (exit $ac_status); }; }; then
2959 ac_cv_prog_cc_g=yes
2960else
2961 echo "$as_me: failed program was:" >&5
2962sed 's/^/| /' conftest.$ac_ext >&5
2963
2964ac_cv_prog_cc_g=no
2965fi
2966rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2967fi
2968echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2969echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2970if test "$ac_test_CFLAGS" = set; then
2971 CFLAGS=$ac_save_CFLAGS
2972elif test $ac_cv_prog_cc_g = yes; then
2973 if test "$GCC" = yes; then
2974 CFLAGS="-g -O2"
2975 else
2976 CFLAGS="-g"
2977 fi
2978else
2979 if test "$GCC" = yes; then
2980 CFLAGS="-O2"
2981 else
2982 CFLAGS=
2983 fi
2984fi
2985echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2986echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2987if test "${ac_cv_prog_cc_stdc+set}" = set; then
2988 echo $ECHO_N "(cached) $ECHO_C" >&6
2989else
2990 ac_cv_prog_cc_stdc=no
2991ac_save_CC=$CC
2992cat >conftest.$ac_ext <<_ACEOF
2993/* confdefs.h. */
2994_ACEOF
2995cat confdefs.h >>conftest.$ac_ext
2996cat >>conftest.$ac_ext <<_ACEOF
2997/* end confdefs.h. */
2998#include <stdarg.h>
2999#include <stdio.h>
3000#include <sys/types.h>
3001#include <sys/stat.h>
3002/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3003struct buf { int x; };
3004FILE * (*rcsopen) (struct buf *, struct stat *, int);
3005static char *e (p, i)
3006 char **p;
3007 int i;
3008{
3009 return p[i];
3010}
3011static char *f (char * (*g) (char **, int), char **p, ...)
3012{
3013 char *s;
3014 va_list v;
3015 va_start (v,p);
3016 s = g (p, va_arg (v,int));
3017 va_end (v);
3018 return s;
3019}
3020
3021/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3022 function prototypes and stuff, but not '\xHH' hex character constants.
3023 These don't provoke an error unfortunately, instead are silently treated
3024 as 'x'. The following induces an error, until -std1 is added to get
3025 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3026 array size at least. It's necessary to write '\x00'==0 to get something
3027 that's true only with -std1. */
3028int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3029
3030int test (int i, double x);
3031struct s1 {int (*f) (int a);};
3032struct s2 {int (*f) (double a);};
3033int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3034int argc;
3035char **argv;
3036int
3037main ()
3038{
3039return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3040 ;
3041 return 0;
3042}
3043_ACEOF
3044# Don't try gcc -ansi; that turns off useful extensions and
3045# breaks some systems' header files.
3046# AIX -qlanglvl=ansi
3047# Ultrix and OSF/1 -std1
3048# HP-UX 10.20 and later -Ae
3049# HP-UX older versions -Aa -D_HPUX_SOURCE
3050# SVR4 -Xc -D__EXTENSIONS__
3051for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3052do
3053 CC="$ac_save_CC $ac_arg"
3054 rm -f conftest.$ac_objext
3055if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3056 (eval $ac_compile) 2>conftest.er1
3057 ac_status=$?
3058 grep -v '^ *+' conftest.er1 >conftest.err
3059 rm -f conftest.er1
3060 cat conftest.err >&5
3061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3062 (exit $ac_status); } &&
3063 { ac_try='test -z "$ac_c_werror_flag"
3064 || test ! -s conftest.err'
3065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3066 (eval $ac_try) 2>&5
3067 ac_status=$?
3068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3069 (exit $ac_status); }; } &&
3070 { ac_try='test -s conftest.$ac_objext'
3071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3072 (eval $ac_try) 2>&5
3073 ac_status=$?
3074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3075 (exit $ac_status); }; }; then
3076 ac_cv_prog_cc_stdc=$ac_arg
3077break
3078else
3079 echo "$as_me: failed program was:" >&5
3080sed 's/^/| /' conftest.$ac_ext >&5
3081
3082fi
3083rm -f conftest.err conftest.$ac_objext
3084done
3085rm -f conftest.$ac_ext conftest.$ac_objext
3086CC=$ac_save_CC
3087
3088fi
3089
3090case "x$ac_cv_prog_cc_stdc" in
3091 x|xno)
3092 echo "$as_me:$LINENO: result: none needed" >&5
3093echo "${ECHO_T}none needed" >&6 ;;
3094 *)
3095 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3096echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3097 CC="$CC $ac_cv_prog_cc_stdc" ;;
3098esac
3099
3100# Some people use a C++ compiler to compile C. Since we use `exit',
3101# in C++ we need to declare it. In case someone uses the same compiler
3102# for both compiling C and C++ we need to have the C++ compiler decide
3103# the declaration of exit, since it's the most demanding environment.
3104cat >conftest.$ac_ext <<_ACEOF
3105#ifndef __cplusplus
3106 choke me
3107#endif
3108_ACEOF
3109rm -f conftest.$ac_objext
3110if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3111 (eval $ac_compile) 2>conftest.er1
3112 ac_status=$?
3113 grep -v '^ *+' conftest.er1 >conftest.err
3114 rm -f conftest.er1
3115 cat conftest.err >&5
3116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3117 (exit $ac_status); } &&
3118 { ac_try='test -z "$ac_c_werror_flag"
3119 || test ! -s conftest.err'
3120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3121 (eval $ac_try) 2>&5
3122 ac_status=$?
3123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3124 (exit $ac_status); }; } &&
3125 { ac_try='test -s conftest.$ac_objext'
3126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3127 (eval $ac_try) 2>&5
3128 ac_status=$?
3129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3130 (exit $ac_status); }; }; then
3131 for ac_declaration in \
3132 '' \
3133 'extern "C" void std::exit (int) throw (); using std::exit;' \
3134 'extern "C" void std::exit (int); using std::exit;' \
3135 'extern "C" void exit (int) throw ();' \
3136 'extern "C" void exit (int);' \
3137 'void exit (int);'
3138do
3139 cat >conftest.$ac_ext <<_ACEOF
3140/* confdefs.h. */
3141_ACEOF
3142cat confdefs.h >>conftest.$ac_ext
3143cat >>conftest.$ac_ext <<_ACEOF
3144/* end confdefs.h. */
3145$ac_declaration
3146#include <stdlib.h>
3147int
3148main ()
3149{
3150exit (42);
3151 ;
3152 return 0;
3153}
3154_ACEOF
3155rm -f conftest.$ac_objext
3156if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3157 (eval $ac_compile) 2>conftest.er1
3158 ac_status=$?
3159 grep -v '^ *+' conftest.er1 >conftest.err
3160 rm -f conftest.er1
3161 cat conftest.err >&5
3162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3163 (exit $ac_status); } &&
3164 { ac_try='test -z "$ac_c_werror_flag"
3165 || test ! -s conftest.err'
3166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3167 (eval $ac_try) 2>&5
3168 ac_status=$?
3169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3170 (exit $ac_status); }; } &&
3171 { ac_try='test -s conftest.$ac_objext'
3172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3173 (eval $ac_try) 2>&5
3174 ac_status=$?
3175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3176 (exit $ac_status); }; }; then
3177 :
3178else
3179 echo "$as_me: failed program was:" >&5
3180sed 's/^/| /' conftest.$ac_ext >&5
3181
3182continue
3183fi
3184rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3185 cat >conftest.$ac_ext <<_ACEOF
3186/* confdefs.h. */
3187_ACEOF
3188cat confdefs.h >>conftest.$ac_ext
3189cat >>conftest.$ac_ext <<_ACEOF
3190/* end confdefs.h. */
3191$ac_declaration
3192int
3193main ()
3194{
3195exit (42);
3196 ;
3197 return 0;
3198}
3199_ACEOF
3200rm -f conftest.$ac_objext
3201if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3202 (eval $ac_compile) 2>conftest.er1
3203 ac_status=$?
3204 grep -v '^ *+' conftest.er1 >conftest.err
3205 rm -f conftest.er1
3206 cat conftest.err >&5
3207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3208 (exit $ac_status); } &&
3209 { ac_try='test -z "$ac_c_werror_flag"
3210 || test ! -s conftest.err'
3211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3212 (eval $ac_try) 2>&5
3213 ac_status=$?
3214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3215 (exit $ac_status); }; } &&
3216 { ac_try='test -s conftest.$ac_objext'
3217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3218 (eval $ac_try) 2>&5
3219 ac_status=$?
3220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3221 (exit $ac_status); }; }; then
3222 break
3223else
3224 echo "$as_me: failed program was:" >&5
3225sed 's/^/| /' conftest.$ac_ext >&5
3226
3227fi
3228rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3229done
3230rm -f conftest*
3231if test -n "$ac_declaration"; then
3232 echo '#ifdef __cplusplus' >>confdefs.h
3233 echo $ac_declaration >>confdefs.h
3234 echo '#endif' >>confdefs.h
3235fi
3236
3237else
3238 echo "$as_me: failed program was:" >&5
3239sed 's/^/| /' conftest.$ac_ext >&5
3240
3241fi
3242rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3243ac_ext=c
3244ac_cpp='$CPP $CPPFLAGS'
3245ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3246ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3247ac_compiler_gnu=$ac_cv_c_compiler_gnu
3248DEPDIR="${am__leading_dot}deps"
3249
3250 ac_config_commands="$ac_config_commands depfiles"
3251
3252
3253am_make=${MAKE-make}
3254cat > confinc << 'END'
3255am__doit:
3256 @echo done
3257.PHONY: am__doit
3258END
3259# If we don't find an include directive, just comment out the code.
3260echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3261echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3262am__include="#"
3263am__quote=
3264_am_result=none
3265# First try GNU make style include.
3266echo "include confinc" > confmf
3267# We grep out `Entering directory' and `Leaving directory'
3268# messages which can occur if `w' ends up in MAKEFLAGS.
3269# In particular we don't look at `^make:' because GNU make might
3270# be invoked under some other name (usually "gmake"), in which
3271# case it prints its new name instead of `make'.
3272if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3273 am__include=include
3274 am__quote=
3275 _am_result=GNU
3276fi
3277# Now try BSD make style include.
3278if test "$am__include" = "#"; then
3279 echo '.include "confinc"' > confmf
3280 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3281 am__include=.include
3282 am__quote="\""
3283 _am_result=BSD
3284 fi
3285fi
3286
3287
3288echo "$as_me:$LINENO: result: $_am_result" >&5
3289echo "${ECHO_T}$_am_result" >&6
3290rm -f confinc confmf
3291
3292# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3293if test "${enable_dependency_tracking+set}" = set; then
3294 enableval="$enable_dependency_tracking"
3295
3296fi;
3297if test "x$enable_dependency_tracking" != xno; then
3298 am_depcomp="$ac_aux_dir/depcomp"
3299 AMDEPBACKSLASH='\'
3300fi
3301
3302
3303if test "x$enable_dependency_tracking" != xno; then
3304 AMDEP_TRUE=
3305 AMDEP_FALSE='#'
3306else
3307 AMDEP_TRUE='#'
3308 AMDEP_FALSE=
3309fi
3310
3311
3312
3313
3314depcc="$CC" am_compiler_list=
3315
3316echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3317echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3318if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3319 echo $ECHO_N "(cached) $ECHO_C" >&6
3320else
3321 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3322 # We make a subdir and do the tests there. Otherwise we can end up
3323 # making bogus files that we don't know about and never remove. For
3324 # instance it was reported that on HP-UX the gcc test will end up
3325 # making a dummy file named `D' -- because `-MD' means `put the output
3326 # in D'.
3327 mkdir conftest.dir
3328 # Copy depcomp to subdir because otherwise we won't find it if we're
3329 # using a relative directory.
3330 cp "$am_depcomp" conftest.dir
3331 cd conftest.dir
3332 # We will build objects and dependencies in a subdirectory because
3333 # it helps to detect inapplicable dependency modes. For instance
3334 # both Tru64's cc and ICC support -MD to output dependencies as a
3335 # side effect of compilation, but ICC will put the dependencies in
3336 # the current directory while Tru64 will put them in the object
3337 # directory.
3338 mkdir sub
3339
3340 am_cv_CC_dependencies_compiler_type=none
3341 if test "$am_compiler_list" = ""; then
3342 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3343 fi
3344 for depmode in $am_compiler_list; do
3345 # Setup a source with many dependencies, because some compilers
3346 # like to wrap large dependency lists on column 80 (with \), and
3347 # we should not choose a depcomp mode which is confused by this.
3348 #
3349 # We need to recreate these files for each test, as the compiler may
3350 # overwrite some of them when testing with obscure command lines.
3351 # This happens at least with the AIX C compiler.
3352 : > sub/conftest.c
3353 for i in 1 2 3 4 5 6; do
3354 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3355 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3356 # Solaris 8's {/usr,}/bin/sh.
3357 touch sub/conftst$i.h
3358 done
3359 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3360
3361 case $depmode in
3362 nosideeffect)
3363 # after this tag, mechanisms are not by side-effect, so they'll
3364 # only be used when explicitly requested
3365 if test "x$enable_dependency_tracking" = xyes; then
3366 continue
3367 else
3368 break
3369 fi
3370 ;;
3371 none) break ;;
3372 esac
3373 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3374 # mode. It turns out that the SunPro C++ compiler does not properly
3375 # handle `-M -o', and we need to detect this.
3376 if depmode=$depmode \
3377 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3378 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3379 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3380 >/dev/null 2>conftest.err &&
3381 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3382 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3383 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3384 # icc doesn't choke on unknown options, it will just issue warnings
3385 # or remarks (even with -Werror). So we grep stderr for any message
3386 # that says an option was ignored or not supported.
3387 # When given -MP, icc 7.0 and 7.1 complain thusly:
3388 # icc: Command line warning: ignoring option '-M'; no argument required
3389 # The diagnosis changed in icc 8.0:
3390 # icc: Command line remark: option '-MP' not supported
3391 if (grep 'ignoring option' conftest.err ||
3392 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3393 am_cv_CC_dependencies_compiler_type=$depmode
3394 break
3395 fi
3396 fi
3397 done
3398
3399 cd ..
3400 rm -rf conftest.dir
3401else
3402 am_cv_CC_dependencies_compiler_type=none
3403fi
3404
3405fi
3406echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3407echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3408CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3409
3410
3411
3412if
3413 test "x$enable_dependency_tracking" != xno \
3414 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3415 am__fastdepCC_TRUE=
3416 am__fastdepCC_FALSE='#'
3417else
3418 am__fastdepCC_TRUE='#'
3419 am__fastdepCC_FALSE=
3420fi
3421
3422
3423# Check whether --enable-shared or --disable-shared was given.
3424if test "${enable_shared+set}" = set; then
3425 enableval="$enable_shared"
3426 p=${PACKAGE-default}
3427 case $enableval in
3428 yes) enable_shared=yes ;;
3429 no) enable_shared=no ;;
3430 *)
3431 enable_shared=no
3432 # Look at the argument we got. We use all the common list separators.
3433 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3434 for pkg in $enableval; do
3435 IFS="$lt_save_ifs"
3436 if test "X$pkg" = "X$p"; then
3437 enable_shared=yes
3438 fi
3439 done
3440 IFS="$lt_save_ifs"
3441 ;;
3442 esac
3443else
3444 enable_shared=yes
3445fi;
3446
3447# Check whether --enable-static or --disable-static was given.
3448if test "${enable_static+set}" = set; then
3449 enableval="$enable_static"
3450 p=${PACKAGE-default}
3451 case $enableval in
3452 yes) enable_static=yes ;;
3453 no) enable_static=no ;;
3454 *)
3455 enable_static=no
3456 # Look at the argument we got. We use all the common list separators.
3457 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3458 for pkg in $enableval; do
3459 IFS="$lt_save_ifs"
3460 if test "X$pkg" = "X$p"; then
3461 enable_static=yes
3462 fi
3463 done
3464 IFS="$lt_save_ifs"
3465 ;;
3466 esac
3467else
3468 enable_static=yes
3469fi;
3470
3471# Check whether --enable-fast-install or --disable-fast-install was given.
3472if test "${enable_fast_install+set}" = set; then
3473 enableval="$enable_fast_install"
3474 p=${PACKAGE-default}
3475 case $enableval in
3476 yes) enable_fast_install=yes ;;
3477 no) enable_fast_install=no ;;
3478 *)
3479 enable_fast_install=no
3480 # Look at the argument we got. We use all the common list separators.
3481 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3482 for pkg in $enableval; do
3483 IFS="$lt_save_ifs"
3484 if test "X$pkg" = "X$p"; then
3485 enable_fast_install=yes
3486 fi
3487 done
3488 IFS="$lt_save_ifs"
3489 ;;
3490 esac
3491else
3492 enable_fast_install=yes
3493fi;
3494
3495echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3496echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3497if test "${lt_cv_path_SED+set}" = set; then
3498 echo $ECHO_N "(cached) $ECHO_C" >&6
3499else
3500 # Loop through the user's path and test for sed and gsed.
3501# Then use that list of sed's as ones to test for truncation.
3502as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3503for as_dir in $PATH
3504do
3505 IFS=$as_save_IFS
3506 test -z "$as_dir" && as_dir=.
3507 for lt_ac_prog in sed gsed; do
3508 for ac_exec_ext in '' $ac_executable_extensions; do
3509 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3510 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3511 fi
3512 done
3513 done
3514done
3515IFS=$as_save_IFS
3516lt_ac_max=0
3517lt_ac_count=0
3518# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3519# along with /bin/sed that truncates output.
3520for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3521 test ! -f $lt_ac_sed && continue
3522 cat /dev/null > conftest.in
3523 lt_ac_count=0
3524 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3525 # Check for GNU sed and select it if it is found.
3526 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3527 lt_cv_path_SED=$lt_ac_sed
3528 break
3529 fi
3530 while true; do
3531 cat conftest.in conftest.in >conftest.tmp
3532 mv conftest.tmp conftest.in
3533 cp conftest.in conftest.nl
3534 echo >>conftest.nl
3535 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3536 cmp -s conftest.out conftest.nl || break
3537 # 10000 chars as input seems more than enough
3538 test $lt_ac_count -gt 10 && break
3539 lt_ac_count=`expr $lt_ac_count + 1`
3540 if test $lt_ac_count -gt $lt_ac_max; then
3541 lt_ac_max=$lt_ac_count
3542 lt_cv_path_SED=$lt_ac_sed
3543 fi
3544 done
3545done
3546
3547fi
3548
3549SED=$lt_cv_path_SED
3550
3551echo "$as_me:$LINENO: result: $SED" >&5
3552echo "${ECHO_T}$SED" >&6
3553
3554echo "$as_me:$LINENO: checking for egrep" >&5
3555echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3556if test "${ac_cv_prog_egrep+set}" = set; then
3557 echo $ECHO_N "(cached) $ECHO_C" >&6
3558else
3559 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3560 then ac_cv_prog_egrep='grep -E'
3561 else ac_cv_prog_egrep='egrep'
3562 fi
3563fi
3564echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3565echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3566 EGREP=$ac_cv_prog_egrep
3567
3568
3569
3570# Check whether --with-gnu-ld or --without-gnu-ld was given.
3571if test "${with_gnu_ld+set}" = set; then
3572 withval="$with_gnu_ld"
3573 test "$withval" = no || with_gnu_ld=yes
3574else
3575 with_gnu_ld=no
3576fi;
3577ac_prog=ld
3578if test "$GCC" = yes; then
3579 # Check if gcc -print-prog-name=ld gives a path.
3580 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3581echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3582 case $host in
3583 *-*-mingw*)
3584 # gcc leaves a trailing carriage return which upsets mingw
3585 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3586 *)
3587 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3588 esac
3589 case $ac_prog in
3590 # Accept absolute paths.
3591 [\\/]* | ?:[\\/]*)
3592 re_direlt='/[^/][^/]*/\.\./'
3593 # Canonicalize the pathname of ld
3594 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3595 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3596 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3597 done
3598 test -z "$LD" && LD="$ac_prog"
3599 ;;
3600 "")
3601 # If it fails, then pretend we aren't using GCC.
3602 ac_prog=ld
3603 ;;
3604 *)
3605 # If it is relative, then search for the first ld in PATH.
3606 with_gnu_ld=unknown
3607 ;;
3608 esac
3609elif test "$with_gnu_ld" = yes; then
3610 echo "$as_me:$LINENO: checking for GNU ld" >&5
3611echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3612else
3613 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3614echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3615fi
3616if test "${lt_cv_path_LD+set}" = set; then
3617 echo $ECHO_N "(cached) $ECHO_C" >&6
3618else
3619 if test -z "$LD"; then
3620 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3621 for ac_dir in $PATH; do
3622 IFS="$lt_save_ifs"
3623 test -z "$ac_dir" && ac_dir=.
3624 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3625 lt_cv_path_LD="$ac_dir/$ac_prog"
3626 # Check to see if the program is GNU ld. I'd rather use --version,
3627 # but apparently some variants of GNU ld only accept -v.
3628 # Break only if it was the GNU/non-GNU ld that we prefer.
3629 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3630 *GNU* | *'with BFD'*)
3631 test "$with_gnu_ld" != no && break
3632 ;;
3633 *)
3634 test "$with_gnu_ld" != yes && break
3635 ;;
3636 esac
3637 fi
3638 done
3639 IFS="$lt_save_ifs"
3640else
3641 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3642fi
3643fi
3644
3645LD="$lt_cv_path_LD"
3646if test -n "$LD"; then
3647 echo "$as_me:$LINENO: result: $LD" >&5
3648echo "${ECHO_T}$LD" >&6
3649else
3650 echo "$as_me:$LINENO: result: no" >&5
3651echo "${ECHO_T}no" >&6
3652fi
3653test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3654echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3655 { (exit 1); exit 1; }; }
3656echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3657echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3658if test "${lt_cv_prog_gnu_ld+set}" = set; then
3659 echo $ECHO_N "(cached) $ECHO_C" >&6
3660else
3661 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3662case `$LD -v 2>&1 </dev/null` in
3663*GNU* | *'with BFD'*)
3664 lt_cv_prog_gnu_ld=yes
3665 ;;
3666*)
3667 lt_cv_prog_gnu_ld=no
3668 ;;
3669esac
3670fi
3671echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3672echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3673with_gnu_ld=$lt_cv_prog_gnu_ld
3674
3675
3676echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3677echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3678if test "${lt_cv_ld_reload_flag+set}" = set; then
3679 echo $ECHO_N "(cached) $ECHO_C" >&6
3680else
3681 lt_cv_ld_reload_flag='-r'
3682fi
3683echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3684echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3685reload_flag=$lt_cv_ld_reload_flag
3686case $reload_flag in
3687"" | " "*) ;;
3688*) reload_flag=" $reload_flag" ;;
3689esac
3690reload_cmds='$LD$reload_flag -o $output$reload_objs'
3691case $host_os in
3692 darwin*)
3693 if test "$GCC" = yes; then
3694 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3695 else
3696 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3697 fi
3698 ;;
3699esac
3700
3701echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3702echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3703if test "${lt_cv_path_NM+set}" = set; then
3704 echo $ECHO_N "(cached) $ECHO_C" >&6
3705else
3706 if test -n "$NM"; then
3707 # Let the user override the test.
3708 lt_cv_path_NM="$NM"
3709else
3710 lt_nm_to_check="${ac_tool_prefix}nm"
3711 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3712 lt_nm_to_check="$lt_nm_to_check nm"
3713 fi
3714 for lt_tmp_nm in $lt_nm_to_check; do
3715 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3716 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3717 IFS="$lt_save_ifs"
3718 test -z "$ac_dir" && ac_dir=.
3719 tmp_nm="$ac_dir/$lt_tmp_nm"
3720 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3721 # Check to see if the nm accepts a BSD-compat flag.
3722 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3723 # nm: unknown option "B" ignored
3724 # Tru64's nm complains that /dev/null is an invalid object file
3725 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3726 */dev/null* | *'Invalid file or object type'*)
3727 lt_cv_path_NM="$tmp_nm -B"
3728 break
3729 ;;
3730 *)
3731 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3732 */dev/null*)
3733 lt_cv_path_NM="$tmp_nm -p"
3734 break
3735 ;;
3736 *)
3737 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3738 continue # so that we can try to find one that supports BSD flags
3739 ;;
3740 esac
3741 ;;
3742 esac
3743 fi
3744 done
3745 IFS="$lt_save_ifs"
3746 done
3747 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3748fi
3749fi
3750echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3751echo "${ECHO_T}$lt_cv_path_NM" >&6
3752NM="$lt_cv_path_NM"
3753
3754echo "$as_me:$LINENO: checking whether ln -s works" >&5
3755echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3756LN_S=$as_ln_s
3757if test "$LN_S" = "ln -s"; then
3758 echo "$as_me:$LINENO: result: yes" >&5
3759echo "${ECHO_T}yes" >&6
3760else
3761 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3762echo "${ECHO_T}no, using $LN_S" >&6
3763fi
3764
3765echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3766echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3767if test "${lt_cv_deplibs_check_method+set}" = set; then
3768 echo $ECHO_N "(cached) $ECHO_C" >&6
3769else
3770 lt_cv_file_magic_cmd='$MAGIC_CMD'
3771lt_cv_file_magic_test_file=
3772lt_cv_deplibs_check_method='unknown'
3773# Need to set the preceding variable on all platforms that support
3774# interlibrary dependencies.
3775# 'none' -- dependencies not supported.
3776# `unknown' -- same as none, but documents that we really don't know.
3777# 'pass_all' -- all dependencies passed with no checks.
3778# 'test_compile' -- check by making test program.
3779# 'file_magic [[regex]]' -- check by looking for files in library path
3780# which responds to the $file_magic_cmd with a given extended regex.
3781# If you have `file' or equivalent on your system and you're not sure
3782# whether `pass_all' will *always* work, you probably want this one.
3783
3784case $host_os in
3785aix4* | aix5*)
3786 lt_cv_deplibs_check_method=pass_all
3787 ;;
3788
3789beos*)
3790 lt_cv_deplibs_check_method=pass_all
3791 ;;
3792
3793bsdi[45]*)
3794 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3795 lt_cv_file_magic_cmd='/usr/bin/file -L'
3796 lt_cv_file_magic_test_file=/shlib/libc.so
3797 ;;
3798
3799cygwin*)
3800 # func_win32_libid is a shell function defined in ltmain.sh
3801 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3802 lt_cv_file_magic_cmd='func_win32_libid'
3803 ;;
3804
3805mingw* | pw32*)
3806 # Base MSYS/MinGW do not provide the 'file' command needed by
3807 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3808 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3809 lt_cv_file_magic_cmd='$OBJDUMP -f'
3810 ;;
3811
3812darwin* | rhapsody*)
3813 lt_cv_deplibs_check_method=pass_all
3814 ;;
3815
3816freebsd* | kfreebsd*-gnu | dragonfly*)
3817 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3818 case $host_cpu in
3819 i*86 )
3820 # Not sure whether the presence of OpenBSD here was a mistake.
3821 # Let's accept both of them until this is cleared up.
3822 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3823 lt_cv_file_magic_cmd=/usr/bin/file
3824 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3825 ;;
3826 esac
3827 else
3828 lt_cv_deplibs_check_method=pass_all
3829 fi
3830 ;;
3831
3832gnu*)
3833 lt_cv_deplibs_check_method=pass_all
3834 ;;
3835
3836hpux10.20* | hpux11*)
3837 lt_cv_file_magic_cmd=/usr/bin/file
3838 case $host_cpu in
3839 ia64*)
3840 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3841 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3842 ;;
3843 hppa*64*)
3844 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
3845 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3846 ;;
3847 *)
3848 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3849 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3850 ;;
3851 esac
3852 ;;
3853
3854interix3*)
3855 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3856 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
3857 ;;
3858
3859irix5* | irix6* | nonstopux*)
3860 case $LD in
3861 *-32|*"-32 ") libmagic=32-bit;;
3862 *-n32|*"-n32 ") libmagic=N32;;
3863 *-64|*"-64 ") libmagic=64-bit;;
3864 *) libmagic=never-match;;
3865 esac
3866 lt_cv_deplibs_check_method=pass_all
3867 ;;
3868
3869# This must be Linux ELF.
3870linux*)
3871 lt_cv_deplibs_check_method=pass_all
3872 ;;
3873
3874netbsd*)
3875 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3876 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3877 else
3878 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3879 fi
3880 ;;
3881
3882newos6*)
3883 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3884 lt_cv_file_magic_cmd=/usr/bin/file
3885 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3886 ;;
3887
3888nto-qnx*)
3889 lt_cv_deplibs_check_method=unknown
3890 ;;
3891
3892openbsd*)
3893 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3894 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3895 else
3896 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3897 fi
3898 ;;
3899
3900osf3* | osf4* | osf5*)
3901 lt_cv_deplibs_check_method=pass_all
3902 ;;
3903
3904solaris*)
3905 lt_cv_deplibs_check_method=pass_all
3906 ;;
3907
3908sysv4 | sysv4.3*)
3909 case $host_vendor in
3910 motorola)
3911 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]'
3912 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3913 ;;
3914 ncr)
3915 lt_cv_deplibs_check_method=pass_all
3916 ;;
3917 sequent)
3918 lt_cv_file_magic_cmd='/bin/file'
3919 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3920 ;;
3921 sni)
3922 lt_cv_file_magic_cmd='/bin/file'
3923 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3924 lt_cv_file_magic_test_file=/lib/libc.so
3925 ;;
3926 siemens)
3927 lt_cv_deplibs_check_method=pass_all
3928 ;;
3929 pc)
3930 lt_cv_deplibs_check_method=pass_all
3931 ;;
3932 esac
3933 ;;
3934
3935sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3936 lt_cv_deplibs_check_method=pass_all
3937 ;;
3938esac
3939
3940fi
3941echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3942echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3943file_magic_cmd=$lt_cv_file_magic_cmd
3944deplibs_check_method=$lt_cv_deplibs_check_method
3945test -z "$deplibs_check_method" && deplibs_check_method=unknown
3946
3947
3948
3949
3950# If no C compiler was specified, use CC.
3951LTCC=${LTCC-"$CC"}
3952
3953# If no C compiler flags were specified, use CFLAGS.
3954LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
3955
3956# Allow CC to be a program name with arguments.
3957compiler=$CC
3958
3959
3960# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3961if test "${enable_libtool_lock+set}" = set; then
3962 enableval="$enable_libtool_lock"
3963
3964fi;
3965test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3966
3967# Some flags need to be propagated to the compiler or linker for good
3968# libtool support.
3969case $host in
3970ia64-*-hpux*)
3971 # Find out which ABI we are using.
3972 echo 'int i;' > conftest.$ac_ext
3973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3974 (eval $ac_compile) 2>&5
3975 ac_status=$?
3976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3977 (exit $ac_status); }; then
3978 case `/usr/bin/file conftest.$ac_objext` in
3979 *ELF-32*)
3980 HPUX_IA64_MODE="32"
3981 ;;
3982 *ELF-64*)
3983 HPUX_IA64_MODE="64"
3984 ;;
3985 esac
3986 fi
3987 rm -rf conftest*
3988 ;;
3989*-*-irix6*)
3990 # Find out which ABI we are using.
5e9b5d83 3991 echo '#line 3991 "configure"' > conftest.$ac_ext
bf9f3bac 3992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3993 (eval $ac_compile) 2>&5
3994 ac_status=$?
3995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3996 (exit $ac_status); }; then
3997 if test "$lt_cv_prog_gnu_ld" = yes; then
3998 case `/usr/bin/file conftest.$ac_objext` in
3999 *32-bit*)
4000 LD="${LD-ld} -melf32bsmip"
4001 ;;
4002 *N32*)
4003 LD="${LD-ld} -melf32bmipn32"
4004 ;;
4005 *64-bit*)
4006 LD="${LD-ld} -melf64bmip"
4007 ;;
4008 esac
4009 else
4010 case `/usr/bin/file conftest.$ac_objext` in
4011 *32-bit*)
4012 LD="${LD-ld} -32"
4013 ;;
4014 *N32*)
4015 LD="${LD-ld} -n32"
4016 ;;
4017 *64-bit*)
4018 LD="${LD-ld} -64"
4019 ;;
4020 esac
4021 fi
4022 fi
4023 rm -rf conftest*
4024 ;;
4025
4026x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4027 # Find out which ABI we are using.
4028 echo 'int i;' > conftest.$ac_ext
4029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4030 (eval $ac_compile) 2>&5
4031 ac_status=$?
4032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4033 (exit $ac_status); }; then
4034 case `/usr/bin/file conftest.o` in
4035 *32-bit*)
4036 case $host in
4037 x86_64-*linux*)
4038 LD="${LD-ld} -m elf_i386"
4039 ;;
4040 ppc64-*linux*|powerpc64-*linux*)
4041 LD="${LD-ld} -m elf32ppclinux"
4042 ;;
4043 s390x-*linux*)
4044 LD="${LD-ld} -m elf_s390"
4045 ;;
4046 sparc64-*linux*)
4047 LD="${LD-ld} -m elf32_sparc"
4048 ;;
4049 esac
4050 ;;
4051 *64-bit*)
4052 case $host in
4053 x86_64-*linux*)
4054 LD="${LD-ld} -m elf_x86_64"
4055 ;;
4056 ppc*-*linux*|powerpc*-*linux*)
4057 LD="${LD-ld} -m elf64ppc"
4058 ;;
4059 s390*-*linux*)
4060 LD="${LD-ld} -m elf64_s390"
4061 ;;
4062 sparc*-*linux*)
4063 LD="${LD-ld} -m elf64_sparc"
4064 ;;
4065 esac
4066 ;;
4067 esac
4068 fi
4069 rm -rf conftest*
4070 ;;
4071
4072*-*-sco3.2v5*)
4073 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4074 SAVE_CFLAGS="$CFLAGS"
4075 CFLAGS="$CFLAGS -belf"
4076 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4077echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4078if test "${lt_cv_cc_needs_belf+set}" = set; then
4079 echo $ECHO_N "(cached) $ECHO_C" >&6
4080else
4081 ac_ext=c
4082ac_cpp='$CPP $CPPFLAGS'
4083ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4084ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4085ac_compiler_gnu=$ac_cv_c_compiler_gnu
4086
4087 cat >conftest.$ac_ext <<_ACEOF
4088/* confdefs.h. */
4089_ACEOF
4090cat confdefs.h >>conftest.$ac_ext
4091cat >>conftest.$ac_ext <<_ACEOF
4092/* end confdefs.h. */
4093
4094int
4095main ()
4096{
4097
4098 ;
4099 return 0;
4100}
4101_ACEOF
4102rm -f conftest.$ac_objext conftest$ac_exeext
4103if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4104 (eval $ac_link) 2>conftest.er1
4105 ac_status=$?
4106 grep -v '^ *+' conftest.er1 >conftest.err
4107 rm -f conftest.er1
4108 cat conftest.err >&5
4109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4110 (exit $ac_status); } &&
4111 { ac_try='test -z "$ac_c_werror_flag"
4112 || test ! -s conftest.err'
4113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4114 (eval $ac_try) 2>&5
4115 ac_status=$?
4116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4117 (exit $ac_status); }; } &&
4118 { ac_try='test -s conftest$ac_exeext'
4119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4120 (eval $ac_try) 2>&5
4121 ac_status=$?
4122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4123 (exit $ac_status); }; }; then
4124 lt_cv_cc_needs_belf=yes
4125else
4126 echo "$as_me: failed program was:" >&5
4127sed 's/^/| /' conftest.$ac_ext >&5
4128
4129lt_cv_cc_needs_belf=no
4130fi
4131rm -f conftest.err conftest.$ac_objext \
4132 conftest$ac_exeext conftest.$ac_ext
4133 ac_ext=c
4134ac_cpp='$CPP $CPPFLAGS'
4135ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4136ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4137ac_compiler_gnu=$ac_cv_c_compiler_gnu
4138
4139fi
4140echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4141echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4142 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4143 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4144 CFLAGS="$SAVE_CFLAGS"
4145 fi
4146 ;;
4147sparc*-*solaris*)
4148 # Find out which ABI we are using.
4149 echo 'int i;' > conftest.$ac_ext
4150 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4151 (eval $ac_compile) 2>&5
4152 ac_status=$?
4153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4154 (exit $ac_status); }; then
4155 case `/usr/bin/file conftest.o` in
4156 *64-bit*)
4157 case $lt_cv_prog_gnu_ld in
4158 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4159 *) LD="${LD-ld} -64" ;;
4160 esac
4161 ;;
4162 esac
4163 fi
4164 rm -rf conftest*
4165 ;;
4166
4167
4168esac
4169
4170need_locks="$enable_libtool_lock"
4171
4172
4173ac_ext=c
4174ac_cpp='$CPP $CPPFLAGS'
4175ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4176ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4177ac_compiler_gnu=$ac_cv_c_compiler_gnu
4178echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4179echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4180# On Suns, sometimes $CPP names a directory.
4181if test -n "$CPP" && test -d "$CPP"; then
4182 CPP=
4183fi
4184if test -z "$CPP"; then
4185 if test "${ac_cv_prog_CPP+set}" = set; then
4186 echo $ECHO_N "(cached) $ECHO_C" >&6
4187else
4188 # Double quotes because CPP needs to be expanded
4189 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4190 do
4191 ac_preproc_ok=false
4192for ac_c_preproc_warn_flag in '' yes
4193do
4194 # Use a header file that comes with gcc, so configuring glibc
4195 # with a fresh cross-compiler works.
4196 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4197 # <limits.h> exists even on freestanding compilers.
4198 # On the NeXT, cc -E runs the code through the compiler's parser,
4199 # not just through cpp. "Syntax error" is here to catch this case.
4200 cat >conftest.$ac_ext <<_ACEOF
4201/* confdefs.h. */
4202_ACEOF
4203cat confdefs.h >>conftest.$ac_ext
4204cat >>conftest.$ac_ext <<_ACEOF
4205/* end confdefs.h. */
4206#ifdef __STDC__
4207# include <limits.h>
4208#else
4209# include <assert.h>
4210#endif
4211 Syntax error
4212_ACEOF
4213if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4214 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4215 ac_status=$?
4216 grep -v '^ *+' conftest.er1 >conftest.err
4217 rm -f conftest.er1
4218 cat conftest.err >&5
4219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4220 (exit $ac_status); } >/dev/null; then
4221 if test -s conftest.err; then
4222 ac_cpp_err=$ac_c_preproc_warn_flag
4223 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4224 else
4225 ac_cpp_err=
4226 fi
4227else
4228 ac_cpp_err=yes
4229fi
4230if test -z "$ac_cpp_err"; then
4231 :
4232else
4233 echo "$as_me: failed program was:" >&5
4234sed 's/^/| /' conftest.$ac_ext >&5
4235
4236 # Broken: fails on valid input.
4237continue
4238fi
4239rm -f conftest.err conftest.$ac_ext
4240
4241 # OK, works on sane cases. Now check whether non-existent headers
4242 # can be detected and how.
4243 cat >conftest.$ac_ext <<_ACEOF
4244/* confdefs.h. */
4245_ACEOF
4246cat confdefs.h >>conftest.$ac_ext
4247cat >>conftest.$ac_ext <<_ACEOF
4248/* end confdefs.h. */
4249#include <ac_nonexistent.h>
4250_ACEOF
4251if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4252 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4253 ac_status=$?
4254 grep -v '^ *+' conftest.er1 >conftest.err
4255 rm -f conftest.er1
4256 cat conftest.err >&5
4257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4258 (exit $ac_status); } >/dev/null; then
4259 if test -s conftest.err; then
4260 ac_cpp_err=$ac_c_preproc_warn_flag
4261 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4262 else
4263 ac_cpp_err=
4264 fi
4265else
4266 ac_cpp_err=yes
4267fi
4268if test -z "$ac_cpp_err"; then
4269 # Broken: success on invalid input.
4270continue
4271else
4272 echo "$as_me: failed program was:" >&5
4273sed 's/^/| /' conftest.$ac_ext >&5
4274
4275 # Passes both tests.
4276ac_preproc_ok=:
4277break
4278fi
4279rm -f conftest.err conftest.$ac_ext
4280
4281done
4282# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4283rm -f conftest.err conftest.$ac_ext
4284if $ac_preproc_ok; then
4285 break
4286fi
4287
4288 done
4289 ac_cv_prog_CPP=$CPP
4290
4291fi
4292 CPP=$ac_cv_prog_CPP
4293else
4294 ac_cv_prog_CPP=$CPP
4295fi
4296echo "$as_me:$LINENO: result: $CPP" >&5
4297echo "${ECHO_T}$CPP" >&6
4298ac_preproc_ok=false
4299for ac_c_preproc_warn_flag in '' yes
4300do
4301 # Use a header file that comes with gcc, so configuring glibc
4302 # with a fresh cross-compiler works.
4303 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4304 # <limits.h> exists even on freestanding compilers.
4305 # On the NeXT, cc -E runs the code through the compiler's parser,
4306 # not just through cpp. "Syntax error" is here to catch this case.
4307 cat >conftest.$ac_ext <<_ACEOF
4308/* confdefs.h. */
4309_ACEOF
4310cat confdefs.h >>conftest.$ac_ext
4311cat >>conftest.$ac_ext <<_ACEOF
4312/* end confdefs.h. */
4313#ifdef __STDC__
4314# include <limits.h>
4315#else
4316# include <assert.h>
4317#endif
4318 Syntax error
4319_ACEOF
4320if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4321 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4322 ac_status=$?
4323 grep -v '^ *+' conftest.er1 >conftest.err
4324 rm -f conftest.er1
4325 cat conftest.err >&5
4326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4327 (exit $ac_status); } >/dev/null; then
4328 if test -s conftest.err; then
4329 ac_cpp_err=$ac_c_preproc_warn_flag
4330 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4331 else
4332 ac_cpp_err=
4333 fi
4334else
4335 ac_cpp_err=yes
4336fi
4337if test -z "$ac_cpp_err"; then
4338 :
4339else
4340 echo "$as_me: failed program was:" >&5
4341sed 's/^/| /' conftest.$ac_ext >&5
4342
4343 # Broken: fails on valid input.
4344continue
4345fi
4346rm -f conftest.err conftest.$ac_ext
4347
4348 # OK, works on sane cases. Now check whether non-existent headers
4349 # can be detected and how.
4350 cat >conftest.$ac_ext <<_ACEOF
4351/* confdefs.h. */
4352_ACEOF
4353cat confdefs.h >>conftest.$ac_ext
4354cat >>conftest.$ac_ext <<_ACEOF
4355/* end confdefs.h. */
4356#include <ac_nonexistent.h>
4357_ACEOF
4358if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4359 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4360 ac_status=$?
4361 grep -v '^ *+' conftest.er1 >conftest.err
4362 rm -f conftest.er1
4363 cat conftest.err >&5
4364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4365 (exit $ac_status); } >/dev/null; then
4366 if test -s conftest.err; then
4367 ac_cpp_err=$ac_c_preproc_warn_flag
4368 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4369 else
4370 ac_cpp_err=
4371 fi
4372else
4373 ac_cpp_err=yes
4374fi
4375if test -z "$ac_cpp_err"; then
4376 # Broken: success on invalid input.
4377continue
4378else
4379 echo "$as_me: failed program was:" >&5
4380sed 's/^/| /' conftest.$ac_ext >&5
4381
4382 # Passes both tests.
4383ac_preproc_ok=:
4384break
4385fi
4386rm -f conftest.err conftest.$ac_ext
4387
4388done
4389# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4390rm -f conftest.err conftest.$ac_ext
4391if $ac_preproc_ok; then
4392 :
4393else
4394 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4395See \`config.log' for more details." >&5
4396echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4397See \`config.log' for more details." >&2;}
4398 { (exit 1); exit 1; }; }
4399fi
4400
4401ac_ext=c
4402ac_cpp='$CPP $CPPFLAGS'
4403ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4404ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4405ac_compiler_gnu=$ac_cv_c_compiler_gnu
4406
4407
4408echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4409echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4410if test "${ac_cv_header_stdc+set}" = set; then
4411 echo $ECHO_N "(cached) $ECHO_C" >&6
4412else
4413 cat >conftest.$ac_ext <<_ACEOF
4414/* confdefs.h. */
4415_ACEOF
4416cat confdefs.h >>conftest.$ac_ext
4417cat >>conftest.$ac_ext <<_ACEOF
4418/* end confdefs.h. */
4419#include <stdlib.h>
4420#include <stdarg.h>
4421#include <string.h>
4422#include <float.h>
4423
4424int
4425main ()
4426{
4427
4428 ;
4429 return 0;
4430}
4431_ACEOF
4432rm -f conftest.$ac_objext
4433if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4434 (eval $ac_compile) 2>conftest.er1
4435 ac_status=$?
4436 grep -v '^ *+' conftest.er1 >conftest.err
4437 rm -f conftest.er1
4438 cat conftest.err >&5
4439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4440 (exit $ac_status); } &&
4441 { ac_try='test -z "$ac_c_werror_flag"
4442 || test ! -s conftest.err'
4443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4444 (eval $ac_try) 2>&5
4445 ac_status=$?
4446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4447 (exit $ac_status); }; } &&
4448 { ac_try='test -s conftest.$ac_objext'
4449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4450 (eval $ac_try) 2>&5
4451 ac_status=$?
4452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4453 (exit $ac_status); }; }; then
4454 ac_cv_header_stdc=yes
4455else
4456 echo "$as_me: failed program was:" >&5
4457sed 's/^/| /' conftest.$ac_ext >&5
4458
4459ac_cv_header_stdc=no
4460fi
4461rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4462
4463if test $ac_cv_header_stdc = yes; then
4464 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4465 cat >conftest.$ac_ext <<_ACEOF
4466/* confdefs.h. */
4467_ACEOF
4468cat confdefs.h >>conftest.$ac_ext
4469cat >>conftest.$ac_ext <<_ACEOF
4470/* end confdefs.h. */
4471#include <string.h>
4472
4473_ACEOF
4474if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4475 $EGREP "memchr" >/dev/null 2>&1; then
4476 :
4477else
4478 ac_cv_header_stdc=no
4479fi
4480rm -f conftest*
4481
4482fi
4483
4484if test $ac_cv_header_stdc = yes; then
4485 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4486 cat >conftest.$ac_ext <<_ACEOF
4487/* confdefs.h. */
4488_ACEOF
4489cat confdefs.h >>conftest.$ac_ext
4490cat >>conftest.$ac_ext <<_ACEOF
4491/* end confdefs.h. */
4492#include <stdlib.h>
4493
4494_ACEOF
4495if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4496 $EGREP "free" >/dev/null 2>&1; then
4497 :
4498else
4499 ac_cv_header_stdc=no
4500fi
4501rm -f conftest*
4502
4503fi
4504
4505if test $ac_cv_header_stdc = yes; then
4506 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4507 if test "$cross_compiling" = yes; then
4508 :
4509else
4510 cat >conftest.$ac_ext <<_ACEOF
4511/* confdefs.h. */
4512_ACEOF
4513cat confdefs.h >>conftest.$ac_ext
4514cat >>conftest.$ac_ext <<_ACEOF
4515/* end confdefs.h. */
4516#include <ctype.h>
4517#if ((' ' & 0x0FF) == 0x020)
4518# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4519# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4520#else
4521# define ISLOWER(c) \
4522 (('a' <= (c) && (c) <= 'i') \
4523 || ('j' <= (c) && (c) <= 'r') \
4524 || ('s' <= (c) && (c) <= 'z'))
4525# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4526#endif
4527
4528#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4529int
4530main ()
4531{
4532 int i;
4533 for (i = 0; i < 256; i++)
4534 if (XOR (islower (i), ISLOWER (i))
4535 || toupper (i) != TOUPPER (i))
4536 exit(2);
4537 exit (0);
4538}
4539_ACEOF
4540rm -f conftest$ac_exeext
4541if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4542 (eval $ac_link) 2>&5
4543 ac_status=$?
4544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4545 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4547 (eval $ac_try) 2>&5
4548 ac_status=$?
4549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4550 (exit $ac_status); }; }; then
4551 :
4552else
4553 echo "$as_me: program exited with status $ac_status" >&5
4554echo "$as_me: failed program was:" >&5
4555sed 's/^/| /' conftest.$ac_ext >&5
4556
4557( exit $ac_status )
4558ac_cv_header_stdc=no
4559fi
4560rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4561fi
4562fi
4563fi
4564echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4565echo "${ECHO_T}$ac_cv_header_stdc" >&6
4566if test $ac_cv_header_stdc = yes; then
4567
4568cat >>confdefs.h <<\_ACEOF
4569#define STDC_HEADERS 1
4570_ACEOF
4571
4572fi
4573
4574# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4585 inttypes.h stdint.h unistd.h
4586do
4587as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4588echo "$as_me:$LINENO: checking for $ac_header" >&5
4589echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4590if eval "test \"\${$as_ac_Header+set}\" = set"; then
4591 echo $ECHO_N "(cached) $ECHO_C" >&6
4592else
4593 cat >conftest.$ac_ext <<_ACEOF
4594/* confdefs.h. */
4595_ACEOF
4596cat confdefs.h >>conftest.$ac_ext
4597cat >>conftest.$ac_ext <<_ACEOF
4598/* end confdefs.h. */
4599$ac_includes_default
4600
4601#include <$ac_header>
4602_ACEOF
4603rm -f conftest.$ac_objext
4604if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4605 (eval $ac_compile) 2>conftest.er1
4606 ac_status=$?
4607 grep -v '^ *+' conftest.er1 >conftest.err
4608 rm -f conftest.er1
4609 cat conftest.err >&5
4610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4611 (exit $ac_status); } &&
4612 { ac_try='test -z "$ac_c_werror_flag"
4613 || test ! -s conftest.err'
4614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4615 (eval $ac_try) 2>&5
4616 ac_status=$?
4617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4618 (exit $ac_status); }; } &&
4619 { ac_try='test -s conftest.$ac_objext'
4620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4621 (eval $ac_try) 2>&5
4622 ac_status=$?
4623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4624 (exit $ac_status); }; }; then
4625 eval "$as_ac_Header=yes"
4626else
4627 echo "$as_me: failed program was:" >&5
4628sed 's/^/| /' conftest.$ac_ext >&5
4629
4630eval "$as_ac_Header=no"
4631fi
4632rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4633fi
4634echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4635echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4636if test `eval echo '${'$as_ac_Header'}'` = yes; then
4637 cat >>confdefs.h <<_ACEOF
4638#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4639_ACEOF
4640
4641fi
4642
4643done
4644
4645
4646
4647for ac_header in dlfcn.h
4648do
4649as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4650if eval "test \"\${$as_ac_Header+set}\" = set"; then
4651 echo "$as_me:$LINENO: checking for $ac_header" >&5
4652echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4653if eval "test \"\${$as_ac_Header+set}\" = set"; then
4654 echo $ECHO_N "(cached) $ECHO_C" >&6
4655fi
4656echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4657echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4658else
4659 # Is the header compilable?
4660echo "$as_me:$LINENO: checking $ac_header usability" >&5
4661echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4662cat >conftest.$ac_ext <<_ACEOF
4663/* confdefs.h. */
4664_ACEOF
4665cat confdefs.h >>conftest.$ac_ext
4666cat >>conftest.$ac_ext <<_ACEOF
4667/* end confdefs.h. */
4668$ac_includes_default
4669#include <$ac_header>
4670_ACEOF
4671rm -f conftest.$ac_objext
4672if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4673 (eval $ac_compile) 2>conftest.er1
4674 ac_status=$?
4675 grep -v '^ *+' conftest.er1 >conftest.err
4676 rm -f conftest.er1
4677 cat conftest.err >&5
4678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4679 (exit $ac_status); } &&
4680 { ac_try='test -z "$ac_c_werror_flag"
4681 || test ! -s conftest.err'
4682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4683 (eval $ac_try) 2>&5
4684 ac_status=$?
4685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4686 (exit $ac_status); }; } &&
4687 { ac_try='test -s conftest.$ac_objext'
4688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4689 (eval $ac_try) 2>&5
4690 ac_status=$?
4691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4692 (exit $ac_status); }; }; then
4693 ac_header_compiler=yes
4694else
4695 echo "$as_me: failed program was:" >&5
4696sed 's/^/| /' conftest.$ac_ext >&5
4697
4698ac_header_compiler=no
4699fi
4700rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4701echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4702echo "${ECHO_T}$ac_header_compiler" >&6
4703
4704# Is the header present?
4705echo "$as_me:$LINENO: checking $ac_header presence" >&5
4706echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4707cat >conftest.$ac_ext <<_ACEOF
4708/* confdefs.h. */
4709_ACEOF
4710cat confdefs.h >>conftest.$ac_ext
4711cat >>conftest.$ac_ext <<_ACEOF
4712/* end confdefs.h. */
4713#include <$ac_header>
4714_ACEOF
4715if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4716 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4717 ac_status=$?
4718 grep -v '^ *+' conftest.er1 >conftest.err
4719 rm -f conftest.er1
4720 cat conftest.err >&5
4721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4722 (exit $ac_status); } >/dev/null; then
4723 if test -s conftest.err; then
4724 ac_cpp_err=$ac_c_preproc_warn_flag
4725 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4726 else
4727 ac_cpp_err=
4728 fi
4729else
4730 ac_cpp_err=yes
4731fi
4732if test -z "$ac_cpp_err"; then
4733 ac_header_preproc=yes
4734else
4735 echo "$as_me: failed program was:" >&5
4736sed 's/^/| /' conftest.$ac_ext >&5
4737
4738 ac_header_preproc=no
4739fi
4740rm -f conftest.err conftest.$ac_ext
4741echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4742echo "${ECHO_T}$ac_header_preproc" >&6
4743
4744# So? What about this header?
4745case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4746 yes:no: )
4747 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4748echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4749 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4750echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4751 ac_header_preproc=yes
4752 ;;
4753 no:yes:* )
4754 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4755echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4756 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4757echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4758 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4759echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4760 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4761echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4762 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4763echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4764 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4765echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4766 (
4767 cat <<\_ASBOX
4768## ------------------------------------------ ##
4769## Report this to the AC_PACKAGE_NAME lists. ##
4770## ------------------------------------------ ##
4771_ASBOX
4772 ) |
4773 sed "s/^/$as_me: WARNING: /" >&2
4774 ;;
4775esac
4776echo "$as_me:$LINENO: checking for $ac_header" >&5
4777echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4778if eval "test \"\${$as_ac_Header+set}\" = set"; then
4779 echo $ECHO_N "(cached) $ECHO_C" >&6
4780else
4781 eval "$as_ac_Header=\$ac_header_preproc"
4782fi
4783echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4784echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4785
4786fi
4787if test `eval echo '${'$as_ac_Header'}'` = yes; then
4788 cat >>confdefs.h <<_ACEOF
4789#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4790_ACEOF
4791
4792fi
4793
4794done
4795
4796ac_ext=cc
4797ac_cpp='$CXXCPP $CPPFLAGS'
4798ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4799ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4800ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4801if test -n "$ac_tool_prefix"; then
4802 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4803 do
4804 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4805set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4806echo "$as_me:$LINENO: checking for $ac_word" >&5
4807echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4808if test "${ac_cv_prog_CXX+set}" = set; then
4809 echo $ECHO_N "(cached) $ECHO_C" >&6
4810else
4811 if test -n "$CXX"; then
4812 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4813else
4814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4815for as_dir in $PATH
4816do
4817 IFS=$as_save_IFS
4818 test -z "$as_dir" && as_dir=.
4819 for ac_exec_ext in '' $ac_executable_extensions; do
4820 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4821 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4822 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4823 break 2
4824 fi
4825done
4826done
4827
4828fi
4829fi
4830CXX=$ac_cv_prog_CXX
4831if test -n "$CXX"; then
4832 echo "$as_me:$LINENO: result: $CXX" >&5
4833echo "${ECHO_T}$CXX" >&6
4834else
4835 echo "$as_me:$LINENO: result: no" >&5
4836echo "${ECHO_T}no" >&6
4837fi
4838
4839 test -n "$CXX" && break
4840 done
4841fi
4842if test -z "$CXX"; then
4843 ac_ct_CXX=$CXX
4844 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4845do
4846 # Extract the first word of "$ac_prog", so it can be a program name with args.
4847set dummy $ac_prog; ac_word=$2
4848echo "$as_me:$LINENO: checking for $ac_word" >&5
4849echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4850if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4851 echo $ECHO_N "(cached) $ECHO_C" >&6
4852else
4853 if test -n "$ac_ct_CXX"; then
4854 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4855else
4856as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4857for as_dir in $PATH
4858do
4859 IFS=$as_save_IFS
4860 test -z "$as_dir" && as_dir=.
4861 for ac_exec_ext in '' $ac_executable_extensions; do
4862 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4863 ac_cv_prog_ac_ct_CXX="$ac_prog"
4864 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4865 break 2
4866 fi
4867done
4868done
4869
4870fi
4871fi
4872ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4873if test -n "$ac_ct_CXX"; then
4874 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4875echo "${ECHO_T}$ac_ct_CXX" >&6
4876else
4877 echo "$as_me:$LINENO: result: no" >&5
4878echo "${ECHO_T}no" >&6
4879fi
4880
4881 test -n "$ac_ct_CXX" && break
4882done
4883test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4884
4885 CXX=$ac_ct_CXX
4886fi
4887
4888
4889# Provide some information about the compiler.
4890echo "$as_me:$LINENO:" \
4891 "checking for C++ compiler version" >&5
4892ac_compiler=`set X $ac_compile; echo $2`
4893{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4894 (eval $ac_compiler --version </dev/null >&5) 2>&5
4895 ac_status=$?
4896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4897 (exit $ac_status); }
4898{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4899 (eval $ac_compiler -v </dev/null >&5) 2>&5
4900 ac_status=$?
4901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4902 (exit $ac_status); }
4903{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4904 (eval $ac_compiler -V </dev/null >&5) 2>&5
4905 ac_status=$?
4906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4907 (exit $ac_status); }
4908
4909echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4910echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4911if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4912 echo $ECHO_N "(cached) $ECHO_C" >&6
4913else
4914 cat >conftest.$ac_ext <<_ACEOF
4915/* confdefs.h. */
4916_ACEOF
4917cat confdefs.h >>conftest.$ac_ext
4918cat >>conftest.$ac_ext <<_ACEOF
4919/* end confdefs.h. */
4920
4921int
4922main ()
4923{
4924#ifndef __GNUC__
4925 choke me
4926#endif
4927
4928 ;
4929 return 0;
4930}
4931_ACEOF
4932rm -f conftest.$ac_objext
4933if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4934 (eval $ac_compile) 2>conftest.er1
4935 ac_status=$?
4936 grep -v '^ *+' conftest.er1 >conftest.err
4937 rm -f conftest.er1
4938 cat conftest.err >&5
4939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4940 (exit $ac_status); } &&
4941 { ac_try='test -z "$ac_cxx_werror_flag"
4942 || test ! -s conftest.err'
4943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4944 (eval $ac_try) 2>&5
4945 ac_status=$?
4946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4947 (exit $ac_status); }; } &&
4948 { ac_try='test -s conftest.$ac_objext'
4949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4950 (eval $ac_try) 2>&5
4951 ac_status=$?
4952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4953 (exit $ac_status); }; }; then
4954 ac_compiler_gnu=yes
4955else
4956 echo "$as_me: failed program was:" >&5
4957sed 's/^/| /' conftest.$ac_ext >&5
4958
4959ac_compiler_gnu=no
4960fi
4961rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4962ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4963
4964fi
4965echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4966echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4967GXX=`test $ac_compiler_gnu = yes && echo yes`
4968ac_test_CXXFLAGS=${CXXFLAGS+set}
4969ac_save_CXXFLAGS=$CXXFLAGS
4970CXXFLAGS="-g"
4971echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4972echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4973if test "${ac_cv_prog_cxx_g+set}" = set; then
4974 echo $ECHO_N "(cached) $ECHO_C" >&6
4975else
4976 cat >conftest.$ac_ext <<_ACEOF
4977/* confdefs.h. */
4978_ACEOF
4979cat confdefs.h >>conftest.$ac_ext
4980cat >>conftest.$ac_ext <<_ACEOF
4981/* end confdefs.h. */
4982
4983int
4984main ()
4985{
4986
4987 ;
4988 return 0;
4989}
4990_ACEOF
4991rm -f conftest.$ac_objext
4992if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4993 (eval $ac_compile) 2>conftest.er1
4994 ac_status=$?
4995 grep -v '^ *+' conftest.er1 >conftest.err
4996 rm -f conftest.er1
4997 cat conftest.err >&5
4998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4999 (exit $ac_status); } &&
5000 { ac_try='test -z "$ac_cxx_werror_flag"
5001 || test ! -s conftest.err'
5002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5003 (eval $ac_try) 2>&5
5004 ac_status=$?
5005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5006 (exit $ac_status); }; } &&
5007 { ac_try='test -s conftest.$ac_objext'
5008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5009 (eval $ac_try) 2>&5
5010 ac_status=$?
5011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5012 (exit $ac_status); }; }; then
5013 ac_cv_prog_cxx_g=yes
5014else
5015 echo "$as_me: failed program was:" >&5
5016sed 's/^/| /' conftest.$ac_ext >&5
5017
5018ac_cv_prog_cxx_g=no
5019fi
5020rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5021fi
5022echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5023echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
5024if test "$ac_test_CXXFLAGS" = set; then
5025 CXXFLAGS=$ac_save_CXXFLAGS
5026elif test $ac_cv_prog_cxx_g = yes; then
5027 if test "$GXX" = yes; then
5028 CXXFLAGS="-g -O2"
5029 else
5030 CXXFLAGS="-g"
5031 fi
5032else
5033 if test "$GXX" = yes; then
5034 CXXFLAGS="-O2"
5035 else
5036 CXXFLAGS=
5037 fi
5038fi
5039for ac_declaration in \
5040 '' \
5041 'extern "C" void std::exit (int) throw (); using std::exit;' \
5042 'extern "C" void std::exit (int); using std::exit;' \
5043 'extern "C" void exit (int) throw ();' \
5044 'extern "C" void exit (int);' \
5045 'void exit (int);'
5046do
5047 cat >conftest.$ac_ext <<_ACEOF
5048/* confdefs.h. */
5049_ACEOF
5050cat confdefs.h >>conftest.$ac_ext
5051cat >>conftest.$ac_ext <<_ACEOF
5052/* end confdefs.h. */
5053$ac_declaration
5054#include <stdlib.h>
5055int
5056main ()
5057{
5058exit (42);
5059 ;
5060 return 0;
5061}
5062_ACEOF
5063rm -f conftest.$ac_objext
5064if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5065 (eval $ac_compile) 2>conftest.er1
5066 ac_status=$?
5067 grep -v '^ *+' conftest.er1 >conftest.err
5068 rm -f conftest.er1
5069 cat conftest.err >&5
5070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5071 (exit $ac_status); } &&
5072 { ac_try='test -z "$ac_cxx_werror_flag"
5073 || test ! -s conftest.err'
5074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5075 (eval $ac_try) 2>&5
5076 ac_status=$?
5077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5078 (exit $ac_status); }; } &&
5079 { ac_try='test -s conftest.$ac_objext'
5080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5081 (eval $ac_try) 2>&5
5082 ac_status=$?
5083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5084 (exit $ac_status); }; }; then
5085 :
5086else
5087 echo "$as_me: failed program was:" >&5
5088sed 's/^/| /' conftest.$ac_ext >&5
5089
5090continue
5091fi
5092rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5093 cat >conftest.$ac_ext <<_ACEOF
5094/* confdefs.h. */
5095_ACEOF
5096cat confdefs.h >>conftest.$ac_ext
5097cat >>conftest.$ac_ext <<_ACEOF
5098/* end confdefs.h. */
5099$ac_declaration
5100int
5101main ()
5102{
5103exit (42);
5104 ;
5105 return 0;
5106}
5107_ACEOF
5108rm -f conftest.$ac_objext
5109if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5110 (eval $ac_compile) 2>conftest.er1
5111 ac_status=$?
5112 grep -v '^ *+' conftest.er1 >conftest.err
5113 rm -f conftest.er1
5114 cat conftest.err >&5
5115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5116 (exit $ac_status); } &&
5117 { ac_try='test -z "$ac_cxx_werror_flag"
5118 || test ! -s conftest.err'
5119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5120 (eval $ac_try) 2>&5
5121 ac_status=$?
5122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5123 (exit $ac_status); }; } &&
5124 { ac_try='test -s conftest.$ac_objext'
5125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5126 (eval $ac_try) 2>&5
5127 ac_status=$?
5128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5129 (exit $ac_status); }; }; then
5130 break
5131else
5132 echo "$as_me: failed program was:" >&5
5133sed 's/^/| /' conftest.$ac_ext >&5
5134
5135fi
5136rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5137done
5138rm -f conftest*
5139if test -n "$ac_declaration"; then
5140 echo '#ifdef __cplusplus' >>confdefs.h
5141 echo $ac_declaration >>confdefs.h
5142 echo '#endif' >>confdefs.h
5143fi
5144
5145ac_ext=cc
5146ac_cpp='$CXXCPP $CPPFLAGS'
5147ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5148ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5149ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5150
5151depcc="$CXX" am_compiler_list=
5152
5153echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5154echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5155if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5156 echo $ECHO_N "(cached) $ECHO_C" >&6
5157else
5158 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5159 # We make a subdir and do the tests there. Otherwise we can end up
5160 # making bogus files that we don't know about and never remove. For
5161 # instance it was reported that on HP-UX the gcc test will end up
5162 # making a dummy file named `D' -- because `-MD' means `put the output
5163 # in D'.
5164 mkdir conftest.dir
5165 # Copy depcomp to subdir because otherwise we won't find it if we're
5166 # using a relative directory.
5167 cp "$am_depcomp" conftest.dir
5168 cd conftest.dir
5169 # We will build objects and dependencies in a subdirectory because
5170 # it helps to detect inapplicable dependency modes. For instance
5171 # both Tru64's cc and ICC support -MD to output dependencies as a
5172 # side effect of compilation, but ICC will put the dependencies in
5173 # the current directory while Tru64 will put them in the object
5174 # directory.
5175 mkdir sub
5176
5177 am_cv_CXX_dependencies_compiler_type=none
5178 if test "$am_compiler_list" = ""; then
5179 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5180 fi
5181 for depmode in $am_compiler_list; do
5182 # Setup a source with many dependencies, because some compilers
5183 # like to wrap large dependency lists on column 80 (with \), and
5184 # we should not choose a depcomp mode which is confused by this.
5185 #
5186 # We need to recreate these files for each test, as the compiler may
5187 # overwrite some of them when testing with obscure command lines.
5188 # This happens at least with the AIX C compiler.
5189 : > sub/conftest.c
5190 for i in 1 2 3 4 5 6; do
5191 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5192 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5193 # Solaris 8's {/usr,}/bin/sh.
5194 touch sub/conftst$i.h
5195 done
5196 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5197
5198 case $depmode in
5199 nosideeffect)
5200 # after this tag, mechanisms are not by side-effect, so they'll
5201 # only be used when explicitly requested
5202 if test "x$enable_dependency_tracking" = xyes; then
5203 continue
5204 else
5205 break
5206 fi
5207 ;;
5208 none) break ;;
5209 esac
5210 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5211 # mode. It turns out that the SunPro C++ compiler does not properly
5212 # handle `-M -o', and we need to detect this.
5213 if depmode=$depmode \
5214 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5215 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5216 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5217 >/dev/null 2>conftest.err &&
5218 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5219 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5220 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5221 # icc doesn't choke on unknown options, it will just issue warnings
5222 # or remarks (even with -Werror). So we grep stderr for any message
5223 # that says an option was ignored or not supported.
5224 # When given -MP, icc 7.0 and 7.1 complain thusly:
5225 # icc: Command line warning: ignoring option '-M'; no argument required
5226 # The diagnosis changed in icc 8.0:
5227 # icc: Command line remark: option '-MP' not supported
5228 if (grep 'ignoring option' conftest.err ||
5229 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5230 am_cv_CXX_dependencies_compiler_type=$depmode
5231 break
5232 fi
5233 fi
5234 done
5235
5236 cd ..
5237 rm -rf conftest.dir
5238else
5239 am_cv_CXX_dependencies_compiler_type=none
5240fi
5241
5242fi
5243echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5244echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5245CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5246
5247
5248
5249if
5250 test "x$enable_dependency_tracking" != xno \
5251 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5252 am__fastdepCXX_TRUE=
5253 am__fastdepCXX_FALSE='#'
5254else
5255 am__fastdepCXX_TRUE='#'
5256 am__fastdepCXX_FALSE=
5257fi
5258
5259
5260
5261
5262if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5263 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5264 (test "X$CXX" != "Xg++"))) ; then
5265 ac_ext=cc
5266ac_cpp='$CXXCPP $CPPFLAGS'
5267ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5268ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5269ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5270echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5271echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5272if test -z "$CXXCPP"; then
5273 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5274 echo $ECHO_N "(cached) $ECHO_C" >&6
5275else
5276 # Double quotes because CXXCPP needs to be expanded
5277 for CXXCPP in "$CXX -E" "/lib/cpp"
5278 do
5279 ac_preproc_ok=false
5280for ac_cxx_preproc_warn_flag in '' yes
5281do
5282 # Use a header file that comes with gcc, so configuring glibc
5283 # with a fresh cross-compiler works.
5284 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5285 # <limits.h> exists even on freestanding compilers.
5286 # On the NeXT, cc -E runs the code through the compiler's parser,
5287 # not just through cpp. "Syntax error" is here to catch this case.
5288 cat >conftest.$ac_ext <<_ACEOF
5289/* confdefs.h. */
5290_ACEOF
5291cat confdefs.h >>conftest.$ac_ext
5292cat >>conftest.$ac_ext <<_ACEOF
5293/* end confdefs.h. */
5294#ifdef __STDC__
5295# include <limits.h>
5296#else
5297# include <assert.h>
5298#endif
5299 Syntax error
5300_ACEOF
5301if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5302 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5303 ac_status=$?
5304 grep -v '^ *+' conftest.er1 >conftest.err
5305 rm -f conftest.er1
5306 cat conftest.err >&5
5307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5308 (exit $ac_status); } >/dev/null; then
5309 if test -s conftest.err; then
5310 ac_cpp_err=$ac_cxx_preproc_warn_flag
5311 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5312 else
5313 ac_cpp_err=
5314 fi
5315else
5316 ac_cpp_err=yes
5317fi
5318if test -z "$ac_cpp_err"; then
5319 :
5320else
5321 echo "$as_me: failed program was:" >&5
5322sed 's/^/| /' conftest.$ac_ext >&5
5323
5324 # Broken: fails on valid input.
5325continue
5326fi
5327rm -f conftest.err conftest.$ac_ext
5328
5329 # OK, works on sane cases. Now check whether non-existent headers
5330 # can be detected and how.
5331 cat >conftest.$ac_ext <<_ACEOF
5332/* confdefs.h. */
5333_ACEOF
5334cat confdefs.h >>conftest.$ac_ext
5335cat >>conftest.$ac_ext <<_ACEOF
5336/* end confdefs.h. */
5337#include <ac_nonexistent.h>
5338_ACEOF
5339if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5340 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5341 ac_status=$?
5342 grep -v '^ *+' conftest.er1 >conftest.err
5343 rm -f conftest.er1
5344 cat conftest.err >&5
5345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5346 (exit $ac_status); } >/dev/null; then
5347 if test -s conftest.err; then
5348 ac_cpp_err=$ac_cxx_preproc_warn_flag
5349 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5350 else
5351 ac_cpp_err=
5352 fi
5353else
5354 ac_cpp_err=yes
5355fi
5356if test -z "$ac_cpp_err"; then
5357 # Broken: success on invalid input.
5358continue
5359else
5360 echo "$as_me: failed program was:" >&5
5361sed 's/^/| /' conftest.$ac_ext >&5
5362
5363 # Passes both tests.
5364ac_preproc_ok=:
5365break
5366fi
5367rm -f conftest.err conftest.$ac_ext
5368
5369done
5370# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5371rm -f conftest.err conftest.$ac_ext
5372if $ac_preproc_ok; then
5373 break
5374fi
5375
5376 done
5377 ac_cv_prog_CXXCPP=$CXXCPP
5378
5379fi
5380 CXXCPP=$ac_cv_prog_CXXCPP
5381else
5382 ac_cv_prog_CXXCPP=$CXXCPP
5383fi
5384echo "$as_me:$LINENO: result: $CXXCPP" >&5
5385echo "${ECHO_T}$CXXCPP" >&6
5386ac_preproc_ok=false
5387for ac_cxx_preproc_warn_flag in '' yes
5388do
5389 # Use a header file that comes with gcc, so configuring glibc
5390 # with a fresh cross-compiler works.
5391 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5392 # <limits.h> exists even on freestanding compilers.
5393 # On the NeXT, cc -E runs the code through the compiler's parser,
5394 # not just through cpp. "Syntax error" is here to catch this case.
5395 cat >conftest.$ac_ext <<_ACEOF
5396/* confdefs.h. */
5397_ACEOF
5398cat confdefs.h >>conftest.$ac_ext
5399cat >>conftest.$ac_ext <<_ACEOF
5400/* end confdefs.h. */
5401#ifdef __STDC__
5402# include <limits.h>
5403#else
5404# include <assert.h>
5405#endif
5406 Syntax error
5407_ACEOF
5408if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5409 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5410 ac_status=$?
5411 grep -v '^ *+' conftest.er1 >conftest.err
5412 rm -f conftest.er1
5413 cat conftest.err >&5
5414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5415 (exit $ac_status); } >/dev/null; then
5416 if test -s conftest.err; then
5417 ac_cpp_err=$ac_cxx_preproc_warn_flag
5418 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5419 else
5420 ac_cpp_err=
5421 fi
5422else
5423 ac_cpp_err=yes
5424fi
5425if test -z "$ac_cpp_err"; then
5426 :
5427else
5428 echo "$as_me: failed program was:" >&5
5429sed 's/^/| /' conftest.$ac_ext >&5
5430
5431 # Broken: fails on valid input.
5432continue
5433fi
5434rm -f conftest.err conftest.$ac_ext
5435
5436 # OK, works on sane cases. Now check whether non-existent headers
5437 # can be detected and how.
5438 cat >conftest.$ac_ext <<_ACEOF
5439/* confdefs.h. */
5440_ACEOF
5441cat confdefs.h >>conftest.$ac_ext
5442cat >>conftest.$ac_ext <<_ACEOF
5443/* end confdefs.h. */
5444#include <ac_nonexistent.h>
5445_ACEOF
5446if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5447 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5448 ac_status=$?
5449 grep -v '^ *+' conftest.er1 >conftest.err
5450 rm -f conftest.er1
5451 cat conftest.err >&5
5452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5453 (exit $ac_status); } >/dev/null; then
5454 if test -s conftest.err; then
5455 ac_cpp_err=$ac_cxx_preproc_warn_flag
5456 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5457 else
5458 ac_cpp_err=
5459 fi
5460else
5461 ac_cpp_err=yes
5462fi
5463if test -z "$ac_cpp_err"; then
5464 # Broken: success on invalid input.
5465continue
5466else
5467 echo "$as_me: failed program was:" >&5
5468sed 's/^/| /' conftest.$ac_ext >&5
5469
5470 # Passes both tests.
5471ac_preproc_ok=:
5472break
5473fi
5474rm -f conftest.err conftest.$ac_ext
5475
5476done
5477# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5478rm -f conftest.err conftest.$ac_ext
5479if $ac_preproc_ok; then
5480 :
5481else
5482 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5483See \`config.log' for more details." >&5
5484echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5485See \`config.log' for more details." >&2;}
5486 { (exit 1); exit 1; }; }
5487fi
5488
5489ac_ext=cc
5490ac_cpp='$CXXCPP $CPPFLAGS'
5491ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5492ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5493ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5494
5495fi
5496
5497
5498ac_ext=f
5499ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5500ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5501ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5502if test -n "$ac_tool_prefix"; then
5503 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5504 do
5505 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5506set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5507echo "$as_me:$LINENO: checking for $ac_word" >&5
5508echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5509if test "${ac_cv_prog_F77+set}" = set; then
5510 echo $ECHO_N "(cached) $ECHO_C" >&6
5511else
5512 if test -n "$F77"; then
5513 ac_cv_prog_F77="$F77" # Let the user override the test.
5514else
5515as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5516for as_dir in $PATH
5517do
5518 IFS=$as_save_IFS
5519 test -z "$as_dir" && as_dir=.
5520 for ac_exec_ext in '' $ac_executable_extensions; do
5521 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5522 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5523 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5524 break 2
5525 fi
5526done
5527done
5528
5529fi
5530fi
5531F77=$ac_cv_prog_F77
5532if test -n "$F77"; then
5533 echo "$as_me:$LINENO: result: $F77" >&5
5534echo "${ECHO_T}$F77" >&6
5535else
5536 echo "$as_me:$LINENO: result: no" >&5
5537echo "${ECHO_T}no" >&6
5538fi
5539
5540 test -n "$F77" && break
5541 done
5542fi
5543if test -z "$F77"; then
5544 ac_ct_F77=$F77
5545 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5546do
5547 # Extract the first word of "$ac_prog", so it can be a program name with args.
5548set dummy $ac_prog; ac_word=$2
5549echo "$as_me:$LINENO: checking for $ac_word" >&5
5550echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5551if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5552 echo $ECHO_N "(cached) $ECHO_C" >&6
5553else
5554 if test -n "$ac_ct_F77"; then
5555 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5556else
5557as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5558for as_dir in $PATH
5559do
5560 IFS=$as_save_IFS
5561 test -z "$as_dir" && as_dir=.
5562 for ac_exec_ext in '' $ac_executable_extensions; do
5563 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5564 ac_cv_prog_ac_ct_F77="$ac_prog"
5565 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5566 break 2
5567 fi
5568done
5569done
5570
5571fi
5572fi
5573ac_ct_F77=$ac_cv_prog_ac_ct_F77
5574if test -n "$ac_ct_F77"; then
5575 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5576echo "${ECHO_T}$ac_ct_F77" >&6
5577else
5578 echo "$as_me:$LINENO: result: no" >&5
5579echo "${ECHO_T}no" >&6
5580fi
5581
5582 test -n "$ac_ct_F77" && break
5583done
5584
5585 F77=$ac_ct_F77
5586fi
5587
5588
5589# Provide some information about the compiler.
5e9b5d83 5590echo "$as_me:5590:" \
bf9f3bac 5591 "checking for Fortran 77 compiler version" >&5
5592ac_compiler=`set X $ac_compile; echo $2`
5593{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5594 (eval $ac_compiler --version </dev/null >&5) 2>&5
5595 ac_status=$?
5596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5597 (exit $ac_status); }
5598{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5599 (eval $ac_compiler -v </dev/null >&5) 2>&5
5600 ac_status=$?
5601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5602 (exit $ac_status); }
5603{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5604 (eval $ac_compiler -V </dev/null >&5) 2>&5
5605 ac_status=$?
5606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5607 (exit $ac_status); }
5608rm -f a.out
5609
5610# If we don't use `.F' as extension, the preprocessor is not run on the
5611# input file. (Note that this only needs to work for GNU compilers.)
5612ac_save_ext=$ac_ext
5613ac_ext=F
5614echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5615echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5616if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5617 echo $ECHO_N "(cached) $ECHO_C" >&6
5618else
5619 cat >conftest.$ac_ext <<_ACEOF
5620 program main
5621#ifndef __GNUC__
5622 choke me
5623#endif
5624
5625 end
5626_ACEOF
5627rm -f conftest.$ac_objext
5628if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5629 (eval $ac_compile) 2>conftest.er1
5630 ac_status=$?
5631 grep -v '^ *+' conftest.er1 >conftest.err
5632 rm -f conftest.er1
5633 cat conftest.err >&5
5634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5635 (exit $ac_status); } &&
5636 { ac_try='test -z "$ac_f77_werror_flag"
5637 || test ! -s conftest.err'
5638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5639 (eval $ac_try) 2>&5
5640 ac_status=$?
5641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5642 (exit $ac_status); }; } &&
5643 { ac_try='test -s conftest.$ac_objext'
5644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5645 (eval $ac_try) 2>&5
5646 ac_status=$?
5647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5648 (exit $ac_status); }; }; then
5649 ac_compiler_gnu=yes
5650else
5651 echo "$as_me: failed program was:" >&5
5652sed 's/^/| /' conftest.$ac_ext >&5
5653
5654ac_compiler_gnu=no
5655fi
5656rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5657ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5658
5659fi
5660echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5661echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5662ac_ext=$ac_save_ext
5663ac_test_FFLAGS=${FFLAGS+set}
5664ac_save_FFLAGS=$FFLAGS
5665FFLAGS=
5666echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5667echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5668if test "${ac_cv_prog_f77_g+set}" = set; then
5669 echo $ECHO_N "(cached) $ECHO_C" >&6
5670else
5671 FFLAGS=-g
5672cat >conftest.$ac_ext <<_ACEOF
5673 program main
5674
5675 end
5676_ACEOF
5677rm -f conftest.$ac_objext
5678if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5679 (eval $ac_compile) 2>conftest.er1
5680 ac_status=$?
5681 grep -v '^ *+' conftest.er1 >conftest.err
5682 rm -f conftest.er1
5683 cat conftest.err >&5
5684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5685 (exit $ac_status); } &&
5686 { ac_try='test -z "$ac_f77_werror_flag"
5687 || test ! -s conftest.err'
5688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5689 (eval $ac_try) 2>&5
5690 ac_status=$?
5691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5692 (exit $ac_status); }; } &&
5693 { ac_try='test -s conftest.$ac_objext'
5694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5695 (eval $ac_try) 2>&5
5696 ac_status=$?
5697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5698 (exit $ac_status); }; }; then
5699 ac_cv_prog_f77_g=yes
5700else
5701 echo "$as_me: failed program was:" >&5
5702sed 's/^/| /' conftest.$ac_ext >&5
5703
5704ac_cv_prog_f77_g=no
5705fi
5706rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5707
5708fi
5709echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5710echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5711if test "$ac_test_FFLAGS" = set; then
5712 FFLAGS=$ac_save_FFLAGS
5713elif test $ac_cv_prog_f77_g = yes; then
5714 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5715 FFLAGS="-g -O2"
5716 else
5717 FFLAGS="-g"
5718 fi
5719else
5720 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5721 FFLAGS="-O2"
5722 else
5723 FFLAGS=
5724 fi
5725fi
5726
5727G77=`test $ac_compiler_gnu = yes && echo yes`
5728ac_ext=c
5729ac_cpp='$CPP $CPPFLAGS'
5730ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5731ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5732ac_compiler_gnu=$ac_cv_c_compiler_gnu
5733
5734
5735
5736# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5737
5738# find the maximum length of command line arguments
5739echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5740echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5741if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5742 echo $ECHO_N "(cached) $ECHO_C" >&6
5743else
5744 i=0
5745 teststring="ABCD"
5746
5747 case $build_os in
5748 msdosdjgpp*)
5749 # On DJGPP, this test can blow up pretty badly due to problems in libc
5750 # (any single argument exceeding 2000 bytes causes a buffer overrun
5751 # during glob expansion). Even if it were fixed, the result of this
5752 # check would be larger than it should be.
5753 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5754 ;;
5755
5756 gnu*)
5757 # Under GNU Hurd, this test is not required because there is
5758 # no limit to the length of command line arguments.
5759 # Libtool will interpret -1 as no limit whatsoever
5760 lt_cv_sys_max_cmd_len=-1;
5761 ;;
5762
5763 cygwin* | mingw*)
5764 # On Win9x/ME, this test blows up -- it succeeds, but takes
5765 # about 5 minutes as the teststring grows exponentially.
5766 # Worse, since 9x/ME are not pre-emptively multitasking,
5767 # you end up with a "frozen" computer, even though with patience
5768 # the test eventually succeeds (with a max line length of 256k).
5769 # Instead, let's just punt: use the minimum linelength reported by
5770 # all of the supported platforms: 8192 (on NT/2K/XP).
5771 lt_cv_sys_max_cmd_len=8192;
5772 ;;
5773
5774 amigaos*)
5775 # On AmigaOS with pdksh, this test takes hours, literally.
5776 # So we just punt and use a minimum line length of 8192.
5777 lt_cv_sys_max_cmd_len=8192;
5778 ;;
5779
5780 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5781 # This has been around since 386BSD, at least. Likely further.
5782 if test -x /sbin/sysctl; then
5783 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5784 elif test -x /usr/sbin/sysctl; then
5785 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5786 else
5787 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5788 fi
5789 # And add a safety zone
5790 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5791 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5792 ;;
5793
5794 interix*)
5795 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5796 lt_cv_sys_max_cmd_len=196608
5797 ;;
5798
5799 osf*)
5800 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5801 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5802 # nice to cause kernel panics so lets avoid the loop below.
5803 # First set a reasonable default.
5804 lt_cv_sys_max_cmd_len=16384
5805 #
5806 if test -x /sbin/sysconfig; then
5807 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5808 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5809 esac
5810 fi
5811 ;;
5812 sco3.2v5*)
5813 lt_cv_sys_max_cmd_len=102400
5814 ;;
5815 sysv5* | sco5v6* | sysv4.2uw2*)
5816 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5817 if test -n "$kargmax"; then
5818 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5819 else
5820 lt_cv_sys_max_cmd_len=32768
5821 fi
5822 ;;
5823 *)
5824 # If test is not a shell built-in, we'll probably end up computing a
5825 # maximum length that is only half of the actual maximum length, but
5826 # we can't tell.
5827 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5828 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5829 = "XX$teststring") >/dev/null 2>&1 &&
5830 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5831 lt_cv_sys_max_cmd_len=$new_result &&
5832 test $i != 17 # 1/2 MB should be enough
5833 do
5834 i=`expr $i + 1`
5835 teststring=$teststring$teststring
5836 done
5837 teststring=
5838 # Add a significant safety factor because C++ compilers can tack on massive
5839 # amounts of additional arguments before passing them to the linker.
5840 # It appears as though 1/2 is a usable value.
5841 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5842 ;;
5843 esac
5844
5845fi
5846
5847if test -n $lt_cv_sys_max_cmd_len ; then
5848 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5849echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5850else
5851 echo "$as_me:$LINENO: result: none" >&5
5852echo "${ECHO_T}none" >&6
5853fi
5854
5855
5856
5857
5858# Check for command to grab the raw symbol name followed by C symbol from nm.
5859echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5860echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5861if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5862 echo $ECHO_N "(cached) $ECHO_C" >&6
5863else
5864
5865# These are sane defaults that work on at least a few old systems.
5866# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5867
5868# Character class describing NM global symbol codes.
5869symcode='[BCDEGRST]'
5870
5871# Regexp to match symbols that can be accessed directly from C.
5872sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5873
5874# Transform an extracted symbol line into a proper C declaration
5875lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5876
5877# Transform an extracted symbol line into symbol name and symbol address
5878lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
5879
5880# Define system-specific variables.
5881case $host_os in
5882aix*)
5883 symcode='[BCDT]'
5884 ;;
5885cygwin* | mingw* | pw32*)
5886 symcode='[ABCDGISTW]'
5887 ;;
5888hpux*) # Its linker distinguishes data from code symbols
5889 if test "$host_cpu" = ia64; then
5890 symcode='[ABCDEGRST]'
5891 fi
5892 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5893 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
5894 ;;
5895linux*)
5896 if test "$host_cpu" = ia64; then
5897 symcode='[ABCDGIRSTW]'
5898 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5899 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
5900 fi
5901 ;;
5902irix* | nonstopux*)
5903 symcode='[BCDEGRST]'
5904 ;;
5905osf*)
5906 symcode='[BCDEGQRST]'
5907 ;;
5908solaris*)
5909 symcode='[BDRT]'
5910 ;;
5911sco3.2v5*)
5912 symcode='[DT]'
5913 ;;
5914sysv4.2uw2*)
5915 symcode='[DT]'
5916 ;;
5917sysv5* | sco5v6* | unixware* | OpenUNIX*)
5918 symcode='[ABDT]'
5919 ;;
5920sysv4)
5921 symcode='[DFNSTU]'
5922 ;;
5923esac
5924
5925# Handle CRLF in mingw tool chain
5926opt_cr=
5927case $build_os in
5928mingw*)
5929 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5930 ;;
5931esac
5932
5933# If we're using GNU nm, then use its standard symbol codes.
5934case `$NM -V 2>&1` in
5935*GNU* | *'with BFD'*)
5936 symcode='[ABCDGIRSTW]' ;;
5937esac
5938
5939# Try without a prefix undercore, then with it.
5940for ac_symprfx in "" "_"; do
5941
5942 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5943 symxfrm="\\1 $ac_symprfx\\2 \\2"
5944
5945 # Write the raw and C identifiers.
5946 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5947
5948 # Check to see that the pipe works correctly.
5949 pipe_works=no
5950
5951 rm -f conftest*
5952 cat > conftest.$ac_ext <<EOF
5953#ifdef __cplusplus
5954extern "C" {
5955#endif
5956char nm_test_var;
5957void nm_test_func(){}
5958#ifdef __cplusplus
5959}
5960#endif
5961int main(){nm_test_var='a';nm_test_func();return(0);}
5962EOF
5963
5964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5965 (eval $ac_compile) 2>&5
5966 ac_status=$?
5967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5968 (exit $ac_status); }; then
5969 # Now try to grab the symbols.
5970 nlist=conftest.nm
5971 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5972 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5973 ac_status=$?
5974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5975 (exit $ac_status); } && test -s "$nlist"; then
5976 # Try sorting and uniquifying the output.
5977 if sort "$nlist" | uniq > "$nlist"T; then
5978 mv -f "$nlist"T "$nlist"
5979 else
5980 rm -f "$nlist"T
5981 fi
5982
5983 # Make sure that we snagged all the symbols we need.
5984 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5985 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5986 cat <<EOF > conftest.$ac_ext
5987#ifdef __cplusplus
5988extern "C" {
5989#endif
5990
5991EOF
5992 # Now generate the symbol file.
5993 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5994
5995 cat <<EOF >> conftest.$ac_ext
5996#if defined (__STDC__) && __STDC__
5997# define lt_ptr_t void *
5998#else
5999# define lt_ptr_t char *
6000# define const
6001#endif
6002
6003/* The mapping between symbol names and symbols. */
6004const struct {
6005 const char *name;
6006 lt_ptr_t address;
6007}
6008lt_preloaded_symbols[] =
6009{
6010EOF
6011 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6012 cat <<\EOF >> conftest.$ac_ext
6013 {0, (lt_ptr_t) 0}
6014};
6015
6016#ifdef __cplusplus
6017}
6018#endif
6019EOF
6020 # Now try linking the two files.
6021 mv conftest.$ac_objext conftstm.$ac_objext
6022 lt_save_LIBS="$LIBS"
6023 lt_save_CFLAGS="$CFLAGS"
6024 LIBS="conftstm.$ac_objext"
6025 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6027 (eval $ac_link) 2>&5
6028 ac_status=$?
6029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6030 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6031 pipe_works=yes
6032 fi
6033 LIBS="$lt_save_LIBS"
6034 CFLAGS="$lt_save_CFLAGS"
6035 else
6036 echo "cannot find nm_test_func in $nlist" >&5
6037 fi
6038 else
6039 echo "cannot find nm_test_var in $nlist" >&5
6040 fi
6041 else
6042 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6043 fi
6044 else
6045 echo "$progname: failed program was:" >&5
6046 cat conftest.$ac_ext >&5
6047 fi
6048 rm -f conftest* conftst*
6049
6050 # Do not use the global_symbol_pipe unless it works.
6051 if test "$pipe_works" = yes; then
6052 break
6053 else
6054 lt_cv_sys_global_symbol_pipe=
6055 fi
6056done
6057
6058fi
6059
6060if test -z "$lt_cv_sys_global_symbol_pipe"; then
6061 lt_cv_sys_global_symbol_to_cdecl=
6062fi
6063if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6064 echo "$as_me:$LINENO: result: failed" >&5
6065echo "${ECHO_T}failed" >&6
6066else
6067 echo "$as_me:$LINENO: result: ok" >&5
6068echo "${ECHO_T}ok" >&6
6069fi
6070
6071echo "$as_me:$LINENO: checking for objdir" >&5
6072echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6073if test "${lt_cv_objdir+set}" = set; then
6074 echo $ECHO_N "(cached) $ECHO_C" >&6
6075else
6076 rm -f .libs 2>/dev/null
6077mkdir .libs 2>/dev/null
6078if test -d .libs; then
6079 lt_cv_objdir=.libs
6080else
6081 # MS-DOS does not allow filenames that begin with a dot.
6082 lt_cv_objdir=_libs
6083fi
6084rmdir .libs 2>/dev/null
6085fi
6086echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6087echo "${ECHO_T}$lt_cv_objdir" >&6
6088objdir=$lt_cv_objdir
6089
6090
6091
6092
6093
6094case $host_os in
6095aix3*)
6096 # AIX sometimes has problems with the GCC collect2 program. For some
6097 # reason, if we set the COLLECT_NAMES environment variable, the problems
6098 # vanish in a puff of smoke.
6099 if test "X${COLLECT_NAMES+set}" != Xset; then
6100 COLLECT_NAMES=
6101 export COLLECT_NAMES
6102 fi
6103 ;;
6104esac
6105
6106# Sed substitution that helps us do robust quoting. It backslashifies
6107# metacharacters that are still active within double-quoted strings.
6108Xsed='sed -e 1s/^X//'
6109sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6110
6111# Same as above, but do not quote variable references.
6112double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6113
6114# Sed substitution to delay expansion of an escaped shell variable in a
6115# double_quote_subst'ed string.
6116delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6117
6118# Sed substitution to avoid accidental globbing in evaled expressions
6119no_glob_subst='s/\*/\\\*/g'
6120
6121# Constants:
6122rm="rm -f"
6123
6124# Global variables:
6125default_ofile=libtool
6126can_build_shared=yes
6127
6128# All known linkers require a `.a' archive for static linking (except MSVC,
6129# which needs '.lib').
6130libext=a
6131ltmain="$ac_aux_dir/ltmain.sh"
6132ofile="$default_ofile"
6133with_gnu_ld="$lt_cv_prog_gnu_ld"
6134
6135if test -n "$ac_tool_prefix"; then
6136 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6137set dummy ${ac_tool_prefix}ar; ac_word=$2
6138echo "$as_me:$LINENO: checking for $ac_word" >&5
6139echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6140if test "${ac_cv_prog_AR+set}" = set; then
6141 echo $ECHO_N "(cached) $ECHO_C" >&6
6142else
6143 if test -n "$AR"; then
6144 ac_cv_prog_AR="$AR" # Let the user override the test.
6145else
6146as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6147for as_dir in $PATH
6148do
6149 IFS=$as_save_IFS
6150 test -z "$as_dir" && as_dir=.
6151 for ac_exec_ext in '' $ac_executable_extensions; do
6152 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6153 ac_cv_prog_AR="${ac_tool_prefix}ar"
6154 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6155 break 2
6156 fi
6157done
6158done
6159
6160fi
6161fi
6162AR=$ac_cv_prog_AR
6163if test -n "$AR"; then
6164 echo "$as_me:$LINENO: result: $AR" >&5
6165echo "${ECHO_T}$AR" >&6
6166else
6167 echo "$as_me:$LINENO: result: no" >&5
6168echo "${ECHO_T}no" >&6
6169fi
6170
6171fi
6172if test -z "$ac_cv_prog_AR"; then
6173 ac_ct_AR=$AR
6174 # Extract the first word of "ar", so it can be a program name with args.
6175set dummy ar; ac_word=$2
6176echo "$as_me:$LINENO: checking for $ac_word" >&5
6177echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6178if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6179 echo $ECHO_N "(cached) $ECHO_C" >&6
6180else
6181 if test -n "$ac_ct_AR"; then
6182 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6183else
6184as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6185for as_dir in $PATH
6186do
6187 IFS=$as_save_IFS
6188 test -z "$as_dir" && as_dir=.
6189 for ac_exec_ext in '' $ac_executable_extensions; do
6190 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6191 ac_cv_prog_ac_ct_AR="ar"
6192 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6193 break 2
6194 fi
6195done
6196done
6197
6198 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6199fi
6200fi
6201ac_ct_AR=$ac_cv_prog_ac_ct_AR
6202if test -n "$ac_ct_AR"; then
6203 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6204echo "${ECHO_T}$ac_ct_AR" >&6
6205else
6206 echo "$as_me:$LINENO: result: no" >&5
6207echo "${ECHO_T}no" >&6
6208fi
6209
6210 AR=$ac_ct_AR
6211else
6212 AR="$ac_cv_prog_AR"
6213fi
6214
6215if test -n "$ac_tool_prefix"; then
6216 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6217set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6218echo "$as_me:$LINENO: checking for $ac_word" >&5
6219echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6220if test "${ac_cv_prog_RANLIB+set}" = set; then
6221 echo $ECHO_N "(cached) $ECHO_C" >&6
6222else
6223 if test -n "$RANLIB"; then
6224 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6225else
6226as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6227for as_dir in $PATH
6228do
6229 IFS=$as_save_IFS
6230 test -z "$as_dir" && as_dir=.
6231 for ac_exec_ext in '' $ac_executable_extensions; do
6232 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6233 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6234 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6235 break 2
6236 fi
6237done
6238done
6239
6240fi
6241fi
6242RANLIB=$ac_cv_prog_RANLIB
6243if test -n "$RANLIB"; then
6244 echo "$as_me:$LINENO: result: $RANLIB" >&5
6245echo "${ECHO_T}$RANLIB" >&6
6246else
6247 echo "$as_me:$LINENO: result: no" >&5
6248echo "${ECHO_T}no" >&6
6249fi
6250
6251fi
6252if test -z "$ac_cv_prog_RANLIB"; then
6253 ac_ct_RANLIB=$RANLIB
6254 # Extract the first word of "ranlib", so it can be a program name with args.
6255set dummy ranlib; ac_word=$2
6256echo "$as_me:$LINENO: checking for $ac_word" >&5
6257echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6258if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6259 echo $ECHO_N "(cached) $ECHO_C" >&6
6260else
6261 if test -n "$ac_ct_RANLIB"; then
6262 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6263else
6264as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6265for as_dir in $PATH
6266do
6267 IFS=$as_save_IFS
6268 test -z "$as_dir" && as_dir=.
6269 for ac_exec_ext in '' $ac_executable_extensions; do
6270 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6271 ac_cv_prog_ac_ct_RANLIB="ranlib"
6272 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6273 break 2
6274 fi
6275done
6276done
6277
6278 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6279fi
6280fi
6281ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6282if test -n "$ac_ct_RANLIB"; then
6283 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6284echo "${ECHO_T}$ac_ct_RANLIB" >&6
6285else
6286 echo "$as_me:$LINENO: result: no" >&5
6287echo "${ECHO_T}no" >&6
6288fi
6289
6290 RANLIB=$ac_ct_RANLIB
6291else
6292 RANLIB="$ac_cv_prog_RANLIB"
6293fi
6294
6295if test -n "$ac_tool_prefix"; then
6296 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6297set dummy ${ac_tool_prefix}strip; ac_word=$2
6298echo "$as_me:$LINENO: checking for $ac_word" >&5
6299echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6300if test "${ac_cv_prog_STRIP+set}" = set; then
6301 echo $ECHO_N "(cached) $ECHO_C" >&6
6302else
6303 if test -n "$STRIP"; then
6304 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6305else
6306as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6307for as_dir in $PATH
6308do
6309 IFS=$as_save_IFS
6310 test -z "$as_dir" && as_dir=.
6311 for ac_exec_ext in '' $ac_executable_extensions; do
6312 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6313 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6314 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6315 break 2
6316 fi
6317done
6318done
6319
6320fi
6321fi
6322STRIP=$ac_cv_prog_STRIP
6323if test -n "$STRIP"; then
6324 echo "$as_me:$LINENO: result: $STRIP" >&5
6325echo "${ECHO_T}$STRIP" >&6
6326else
6327 echo "$as_me:$LINENO: result: no" >&5
6328echo "${ECHO_T}no" >&6
6329fi
6330
6331fi
6332if test -z "$ac_cv_prog_STRIP"; then
6333 ac_ct_STRIP=$STRIP
6334 # Extract the first word of "strip", so it can be a program name with args.
6335set dummy strip; ac_word=$2
6336echo "$as_me:$LINENO: checking for $ac_word" >&5
6337echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6338if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6339 echo $ECHO_N "(cached) $ECHO_C" >&6
6340else
6341 if test -n "$ac_ct_STRIP"; then
6342 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6343else
6344as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6345for as_dir in $PATH
6346do
6347 IFS=$as_save_IFS
6348 test -z "$as_dir" && as_dir=.
6349 for ac_exec_ext in '' $ac_executable_extensions; do
6350 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6351 ac_cv_prog_ac_ct_STRIP="strip"
6352 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6353 break 2
6354 fi
6355done
6356done
6357
6358 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6359fi
6360fi
6361ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6362if test -n "$ac_ct_STRIP"; then
6363 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6364echo "${ECHO_T}$ac_ct_STRIP" >&6
6365else
6366 echo "$as_me:$LINENO: result: no" >&5
6367echo "${ECHO_T}no" >&6
6368fi
6369
6370 STRIP=$ac_ct_STRIP
6371else
6372 STRIP="$ac_cv_prog_STRIP"
6373fi
6374
6375
6376old_CC="$CC"
6377old_CFLAGS="$CFLAGS"
6378
6379# Set sane defaults for various variables
6380test -z "$AR" && AR=ar
6381test -z "$AR_FLAGS" && AR_FLAGS=cru
6382test -z "$AS" && AS=as
6383test -z "$CC" && CC=cc
6384test -z "$LTCC" && LTCC=$CC
6385test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6386test -z "$DLLTOOL" && DLLTOOL=dlltool
6387test -z "$LD" && LD=ld
6388test -z "$LN_S" && LN_S="ln -s"
6389test -z "$MAGIC_CMD" && MAGIC_CMD=file
6390test -z "$NM" && NM=nm
6391test -z "$SED" && SED=sed
6392test -z "$OBJDUMP" && OBJDUMP=objdump
6393test -z "$RANLIB" && RANLIB=:
6394test -z "$STRIP" && STRIP=:
6395test -z "$ac_objext" && ac_objext=o
6396
6397# Determine commands to create old-style static archives.
6398old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6399old_postinstall_cmds='chmod 644 $oldlib'
6400old_postuninstall_cmds=
6401
6402if test -n "$RANLIB"; then
6403 case $host_os in
6404 openbsd*)
6405 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6406 ;;
6407 *)
6408 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6409 ;;
6410 esac
6411 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6412fi
6413
6414for cc_temp in $compiler""; do
6415 case $cc_temp in
6416 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6417 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6418 \-*) ;;
6419 *) break;;
6420 esac
6421done
6422cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6423
6424
6425# Only perform the check for file, if the check method requires it
6426case $deplibs_check_method in
6427file_magic*)
6428 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6429 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6430echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6431if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6432 echo $ECHO_N "(cached) $ECHO_C" >&6
6433else
6434 case $MAGIC_CMD in
6435[\\/*] | ?:[\\/]*)
6436 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6437 ;;
6438*)
6439 lt_save_MAGIC_CMD="$MAGIC_CMD"
6440 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6441 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6442 for ac_dir in $ac_dummy; do
6443 IFS="$lt_save_ifs"
6444 test -z "$ac_dir" && ac_dir=.
6445 if test -f $ac_dir/${ac_tool_prefix}file; then
6446 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6447 if test -n "$file_magic_test_file"; then
6448 case $deplibs_check_method in
6449 "file_magic "*)
6450 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6451 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6452 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6453 $EGREP "$file_magic_regex" > /dev/null; then
6454 :
6455 else
6456 cat <<EOF 1>&2
6457
6458*** Warning: the command libtool uses to detect shared libraries,
6459*** $file_magic_cmd, produces output that libtool cannot recognize.
6460*** The result is that libtool may fail to recognize shared libraries
6461*** as such. This will affect the creation of libtool libraries that
6462*** depend on shared libraries, but programs linked with such libtool
6463*** libraries will work regardless of this problem. Nevertheless, you
6464*** may want to report the problem to your system manager and/or to
6465*** bug-libtool@gnu.org
6466
6467EOF
6468 fi ;;
6469 esac
6470 fi
6471 break
6472 fi
6473 done
6474 IFS="$lt_save_ifs"
6475 MAGIC_CMD="$lt_save_MAGIC_CMD"
6476 ;;
6477esac
6478fi
6479
6480MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6481if test -n "$MAGIC_CMD"; then
6482 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6483echo "${ECHO_T}$MAGIC_CMD" >&6
6484else
6485 echo "$as_me:$LINENO: result: no" >&5
6486echo "${ECHO_T}no" >&6
6487fi
6488
6489if test -z "$lt_cv_path_MAGIC_CMD"; then
6490 if test -n "$ac_tool_prefix"; then
6491 echo "$as_me:$LINENO: checking for file" >&5
6492echo $ECHO_N "checking for file... $ECHO_C" >&6
6493if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6494 echo $ECHO_N "(cached) $ECHO_C" >&6
6495else
6496 case $MAGIC_CMD in
6497[\\/*] | ?:[\\/]*)
6498 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6499 ;;
6500*)
6501 lt_save_MAGIC_CMD="$MAGIC_CMD"
6502 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6503 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6504 for ac_dir in $ac_dummy; do
6505 IFS="$lt_save_ifs"
6506 test -z "$ac_dir" && ac_dir=.
6507 if test -f $ac_dir/file; then
6508 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6509 if test -n "$file_magic_test_file"; then
6510 case $deplibs_check_method in
6511 "file_magic "*)
6512 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6513 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6514 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6515 $EGREP "$file_magic_regex" > /dev/null; then
6516 :
6517 else
6518 cat <<EOF 1>&2
6519
6520*** Warning: the command libtool uses to detect shared libraries,
6521*** $file_magic_cmd, produces output that libtool cannot recognize.
6522*** The result is that libtool may fail to recognize shared libraries
6523*** as such. This will affect the creation of libtool libraries that
6524*** depend on shared libraries, but programs linked with such libtool
6525*** libraries will work regardless of this problem. Nevertheless, you
6526*** may want to report the problem to your system manager and/or to
6527*** bug-libtool@gnu.org
6528
6529EOF
6530 fi ;;
6531 esac
6532 fi
6533 break
6534 fi
6535 done
6536 IFS="$lt_save_ifs"
6537 MAGIC_CMD="$lt_save_MAGIC_CMD"
6538 ;;
6539esac
6540fi
6541
6542MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6543if test -n "$MAGIC_CMD"; then
6544 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6545echo "${ECHO_T}$MAGIC_CMD" >&6
6546else
6547 echo "$as_me:$LINENO: result: no" >&5
6548echo "${ECHO_T}no" >&6
6549fi
6550
6551 else
6552 MAGIC_CMD=:
6553 fi
6554fi
6555
6556 fi
6557 ;;
6558esac
6559
6560enable_dlopen=no
6561enable_win32_dll=no
6562
6563# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6564if test "${enable_libtool_lock+set}" = set; then
6565 enableval="$enable_libtool_lock"
6566
6567fi;
6568test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6569
6570
6571# Check whether --with-pic or --without-pic was given.
6572if test "${with_pic+set}" = set; then
6573 withval="$with_pic"
6574 pic_mode="$withval"
6575else
6576 pic_mode=default
6577fi;
6578test -z "$pic_mode" && pic_mode=default
6579
6580# Use C for the default configuration in the libtool script
6581tagname=
6582lt_save_CC="$CC"
6583ac_ext=c
6584ac_cpp='$CPP $CPPFLAGS'
6585ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6586ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6587ac_compiler_gnu=$ac_cv_c_compiler_gnu
6588
6589
6590# Source file extension for C test sources.
6591ac_ext=c
6592
6593# Object file extension for compiled C test sources.
6594objext=o
6595objext=$objext
6596
6597# Code to be used in simple compile tests
6598lt_simple_compile_test_code="int some_variable = 0;\n"
6599
6600# Code to be used in simple link tests
6601lt_simple_link_test_code='int main(){return(0);}\n'
6602
6603
6604# If no C compiler was specified, use CC.
6605LTCC=${LTCC-"$CC"}
6606
6607# If no C compiler flags were specified, use CFLAGS.
6608LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6609
6610# Allow CC to be a program name with arguments.
6611compiler=$CC
6612
6613
6614# save warnings/boilerplate of simple test code
6615ac_outfile=conftest.$ac_objext
6616printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6617eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6618_lt_compiler_boilerplate=`cat conftest.err`
6619$rm conftest*
6620
6621ac_outfile=conftest.$ac_objext
6622printf "$lt_simple_link_test_code" >conftest.$ac_ext
6623eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6624_lt_linker_boilerplate=`cat conftest.err`
6625$rm conftest*
6626
6627
6628
6629lt_prog_compiler_no_builtin_flag=
6630
6631if test "$GCC" = yes; then
6632 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6633
6634
6635echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6636echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6637if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6638 echo $ECHO_N "(cached) $ECHO_C" >&6
6639else
6640 lt_cv_prog_compiler_rtti_exceptions=no
6641 ac_outfile=conftest.$ac_objext
6642 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6643 lt_compiler_flag="-fno-rtti -fno-exceptions"
6644 # Insert the option either (1) after the last *FLAGS variable, or
6645 # (2) before a word containing "conftest.", or (3) at the end.
6646 # Note that $ac_compile itself does not contain backslashes and begins
6647 # with a dollar sign (not a hyphen), so the echo should work correctly.
6648 # The option is referenced via a variable to avoid confusing sed.
6649 lt_compile=`echo "$ac_compile" | $SED \
6650 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6651 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6652 -e 's:$: $lt_compiler_flag:'`
5e9b5d83 6653 (eval echo "\"\$as_me:6653: $lt_compile\"" >&5)
bf9f3bac 6654 (eval "$lt_compile" 2>conftest.err)
6655 ac_status=$?
6656 cat conftest.err >&5
5e9b5d83 6657 echo "$as_me:6657: \$? = $ac_status" >&5
bf9f3bac 6658 if (exit $ac_status) && test -s "$ac_outfile"; then
6659 # The compiler can only warn and ignore the option if not recognized
6660 # So say no if there are warnings other than the usual output.
6661 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6662 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6663 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6664 lt_cv_prog_compiler_rtti_exceptions=yes
6665 fi
6666 fi
6667 $rm conftest*
6668
6669fi
6670echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6671echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6672
6673if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6674 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6675else
6676 :
6677fi
6678
6679fi
6680
6681lt_prog_compiler_wl=
6682lt_prog_compiler_pic=
6683lt_prog_compiler_static=
6684
6685echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6686echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6687
6688 if test "$GCC" = yes; then
6689 lt_prog_compiler_wl='-Wl,'
6690 lt_prog_compiler_static='-static'
6691
6692 case $host_os in
6693 aix*)
6694 # All AIX code is PIC.
6695 if test "$host_cpu" = ia64; then
6696 # AIX 5 now supports IA64 processor
6697 lt_prog_compiler_static='-Bstatic'
6698 fi
6699 ;;
6700
6701 amigaos*)
6702 # FIXME: we need at least 68020 code to build shared libraries, but
6703 # adding the `-m68020' flag to GCC prevents building anything better,
6704 # like `-m68040'.
6705 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6706 ;;
6707
6708 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6709 # PIC is the default for these OSes.
6710 ;;
6711
6712 mingw* | pw32* | os2*)
6713 # This hack is so that the source file can tell whether it is being
6714 # built for inclusion in a dll (and should export symbols for example).
6715 lt_prog_compiler_pic='-DDLL_EXPORT'
6716 ;;
6717
6718 darwin* | rhapsody*)
6719 # PIC is the default on this platform
6720 # Common symbols not allowed in MH_DYLIB files
6721 lt_prog_compiler_pic='-fno-common'
6722 ;;
6723
6724 interix3*)
6725 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6726 # Instead, we relocate shared libraries at runtime.
6727 ;;
6728
6729 msdosdjgpp*)
6730 # Just because we use GCC doesn't mean we suddenly get shared libraries
6731 # on systems that don't support them.
6732 lt_prog_compiler_can_build_shared=no
6733 enable_shared=no
6734 ;;
6735
6736 sysv4*MP*)
6737 if test -d /usr/nec; then
6738 lt_prog_compiler_pic=-Kconform_pic
6739 fi
6740 ;;
6741
6742 hpux*)
6743 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6744 # not for PA HP-UX.
6745 case $host_cpu in
6746 hppa*64*|ia64*)
6747 # +Z the default
6748 ;;
6749 *)
6750 lt_prog_compiler_pic='-fPIC'
6751 ;;
6752 esac
6753 ;;
6754
6755 *)
6756 lt_prog_compiler_pic='-fPIC'
6757 ;;
6758 esac
6759 else
6760 # PORTME Check for flag to pass linker flags through the system compiler.
6761 case $host_os in
6762 aix*)
6763 lt_prog_compiler_wl='-Wl,'
6764 if test "$host_cpu" = ia64; then
6765 # AIX 5 now supports IA64 processor
6766 lt_prog_compiler_static='-Bstatic'
6767 else
6768 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6769 fi
6770 ;;
6771 darwin*)
6772 # PIC is the default on this platform
6773 # Common symbols not allowed in MH_DYLIB files
6774 case $cc_basename in
6775 xlc*)
6776 lt_prog_compiler_pic='-qnocommon'
6777 lt_prog_compiler_wl='-Wl,'
6778 ;;
6779 esac
6780 ;;
6781
6782 mingw* | pw32* | os2*)
6783 # This hack is so that the source file can tell whether it is being
6784 # built for inclusion in a dll (and should export symbols for example).
6785 lt_prog_compiler_pic='-DDLL_EXPORT'
6786 ;;
6787
6788 hpux9* | hpux10* | hpux11*)
6789 lt_prog_compiler_wl='-Wl,'
6790 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6791 # not for PA HP-UX.
6792 case $host_cpu in
6793 hppa*64*|ia64*)
6794 # +Z the default
6795 ;;
6796 *)
6797 lt_prog_compiler_pic='+Z'
6798 ;;
6799 esac
6800 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6801 lt_prog_compiler_static='${wl}-a ${wl}archive'
6802 ;;
6803
6804 irix5* | irix6* | nonstopux*)
6805 lt_prog_compiler_wl='-Wl,'
6806 # PIC (with -KPIC) is the default.
6807 lt_prog_compiler_static='-non_shared'
6808 ;;
6809
6810 newsos6)
6811 lt_prog_compiler_pic='-KPIC'
6812 lt_prog_compiler_static='-Bstatic'
6813 ;;
6814
6815 linux*)
6816 case $cc_basename in
6817 icc* | ecc*)
6818 lt_prog_compiler_wl='-Wl,'
6819 lt_prog_compiler_pic='-KPIC'
6820 lt_prog_compiler_static='-static'
6821 ;;
6822 pgcc* | pgf77* | pgf90* | pgf95*)
6823 # Portland Group compilers (*not* the Pentium gcc compiler,
6824 # which looks to be a dead project)
6825 lt_prog_compiler_wl='-Wl,'
6826 lt_prog_compiler_pic='-fpic'
6827 lt_prog_compiler_static='-Bstatic'
6828 ;;
6829 ccc*)
6830 lt_prog_compiler_wl='-Wl,'
6831 # All Alpha code is PIC.
6832 lt_prog_compiler_static='-non_shared'
6833 ;;
6834 esac
6835 ;;
6836
6837 osf3* | osf4* | osf5*)
6838 lt_prog_compiler_wl='-Wl,'
6839 # All OSF/1 code is PIC.
6840 lt_prog_compiler_static='-non_shared'
6841 ;;
6842
6843 solaris*)
6844 lt_prog_compiler_pic='-KPIC'
6845 lt_prog_compiler_static='-Bstatic'
6846 case $cc_basename in
6847 f77* | f90* | f95*)
6848 lt_prog_compiler_wl='-Qoption ld ';;
6849 *)
6850 lt_prog_compiler_wl='-Wl,';;
6851 esac
6852 ;;
6853
6854 sunos4*)
6855 lt_prog_compiler_wl='-Qoption ld '
6856 lt_prog_compiler_pic='-PIC'
6857 lt_prog_compiler_static='-Bstatic'
6858 ;;
6859
6860 sysv4 | sysv4.2uw2* | sysv4.3*)
6861 lt_prog_compiler_wl='-Wl,'
6862 lt_prog_compiler_pic='-KPIC'
6863 lt_prog_compiler_static='-Bstatic'
6864 ;;
6865
6866 sysv4*MP*)
6867 if test -d /usr/nec ;then
6868 lt_prog_compiler_pic='-Kconform_pic'
6869 lt_prog_compiler_static='-Bstatic'
6870 fi
6871 ;;
6872
6873 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6874 lt_prog_compiler_wl='-Wl,'
6875 lt_prog_compiler_pic='-KPIC'
6876 lt_prog_compiler_static='-Bstatic'
6877 ;;
6878
6879 unicos*)
6880 lt_prog_compiler_wl='-Wl,'
6881 lt_prog_compiler_can_build_shared=no
6882 ;;
6883
6884 uts4*)
6885 lt_prog_compiler_pic='-pic'
6886 lt_prog_compiler_static='-Bstatic'
6887 ;;
6888
6889 *)
6890 lt_prog_compiler_can_build_shared=no
6891 ;;
6892 esac
6893 fi
6894
6895echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6896echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6897
6898#
6899# Check to make sure the PIC flag actually works.
6900#
6901if test -n "$lt_prog_compiler_pic"; then
6902
6903echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6904echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6905if test "${lt_prog_compiler_pic_works+set}" = set; then
6906 echo $ECHO_N "(cached) $ECHO_C" >&6
6907else
6908 lt_prog_compiler_pic_works=no
6909 ac_outfile=conftest.$ac_objext
6910 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6911 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6912 # Insert the option either (1) after the last *FLAGS variable, or
6913 # (2) before a word containing "conftest.", or (3) at the end.
6914 # Note that $ac_compile itself does not contain backslashes and begins
6915 # with a dollar sign (not a hyphen), so the echo should work correctly.
6916 # The option is referenced via a variable to avoid confusing sed.
6917 lt_compile=`echo "$ac_compile" | $SED \
6918 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6919 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6920 -e 's:$: $lt_compiler_flag:'`
5e9b5d83 6921 (eval echo "\"\$as_me:6921: $lt_compile\"" >&5)
bf9f3bac 6922 (eval "$lt_compile" 2>conftest.err)
6923 ac_status=$?
6924 cat conftest.err >&5
5e9b5d83 6925 echo "$as_me:6925: \$? = $ac_status" >&5
bf9f3bac 6926 if (exit $ac_status) && test -s "$ac_outfile"; then
6927 # The compiler can only warn and ignore the option if not recognized
6928 # So say no if there are warnings other than the usual output.
6929 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6930 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6931 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6932 lt_prog_compiler_pic_works=yes
6933 fi
6934 fi
6935 $rm conftest*
6936
6937fi
6938echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6939echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6940
6941if test x"$lt_prog_compiler_pic_works" = xyes; then
6942 case $lt_prog_compiler_pic in
6943 "" | " "*) ;;
6944 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6945 esac
6946else
6947 lt_prog_compiler_pic=
6948 lt_prog_compiler_can_build_shared=no
6949fi
6950
6951fi
6952case $host_os in
6953 # For platforms which do not support PIC, -DPIC is meaningless:
6954 *djgpp*)
6955 lt_prog_compiler_pic=
6956 ;;
6957 *)
6958 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6959 ;;
6960esac
6961
6962#
6963# Check to make sure the static flag actually works.
6964#
6965wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6966echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6967echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6968if test "${lt_prog_compiler_static_works+set}" = set; then
6969 echo $ECHO_N "(cached) $ECHO_C" >&6
6970else
6971 lt_prog_compiler_static_works=no
6972 save_LDFLAGS="$LDFLAGS"
6973 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6974 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6975 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6976 # The linker can only warn and ignore the option if not recognized
6977 # So say no if there are warnings
6978 if test -s conftest.err; then
6979 # Append any errors to the config.log.
6980 cat conftest.err 1>&5
6981 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6982 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6983 if diff conftest.exp conftest.er2 >/dev/null; then
6984 lt_prog_compiler_static_works=yes
6985 fi
6986 else
6987 lt_prog_compiler_static_works=yes
6988 fi
6989 fi
6990 $rm conftest*
6991 LDFLAGS="$save_LDFLAGS"
6992
6993fi
6994echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6995echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6996
6997if test x"$lt_prog_compiler_static_works" = xyes; then
6998 :
6999else
7000 lt_prog_compiler_static=
7001fi
7002
7003
7004echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7005echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7006if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7007 echo $ECHO_N "(cached) $ECHO_C" >&6
7008else
7009 lt_cv_prog_compiler_c_o=no
7010 $rm -r conftest 2>/dev/null
7011 mkdir conftest
7012 cd conftest
7013 mkdir out
7014 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7015
7016 lt_compiler_flag="-o out/conftest2.$ac_objext"
7017 # Insert the option either (1) after the last *FLAGS variable, or
7018 # (2) before a word containing "conftest.", or (3) at the end.
7019 # Note that $ac_compile itself does not contain backslashes and begins
7020 # with a dollar sign (not a hyphen), so the echo should work correctly.
7021 lt_compile=`echo "$ac_compile" | $SED \
7022 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7023 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7024 -e 's:$: $lt_compiler_flag:'`
5e9b5d83 7025 (eval echo "\"\$as_me:7025: $lt_compile\"" >&5)
bf9f3bac 7026 (eval "$lt_compile" 2>out/conftest.err)
7027 ac_status=$?
7028 cat out/conftest.err >&5
5e9b5d83 7029 echo "$as_me:7029: \$? = $ac_status" >&5
bf9f3bac 7030 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7031 then
7032 # The compiler can only warn and ignore the option if not recognized
7033 # So say no if there are warnings
7034 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7035 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7036 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7037 lt_cv_prog_compiler_c_o=yes
7038 fi
7039 fi
7040 chmod u+w . 2>&5
7041 $rm conftest*
7042 # SGI C++ compiler will create directory out/ii_files/ for
7043 # template instantiation
7044 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7045 $rm out/* && rmdir out
7046 cd ..
7047 rmdir conftest
7048 $rm conftest*
7049
7050fi
7051echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7052echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7053
7054
7055hard_links="nottested"
7056if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7057 # do not overwrite the value of need_locks provided by the user
7058 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7059echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7060 hard_links=yes
7061 $rm conftest*
7062 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7063 touch conftest.a
7064 ln conftest.a conftest.b 2>&5 || hard_links=no
7065 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7066 echo "$as_me:$LINENO: result: $hard_links" >&5
7067echo "${ECHO_T}$hard_links" >&6
7068 if test "$hard_links" = no; then
7069 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7070echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7071 need_locks=warn
7072 fi
7073else
7074 need_locks=no
7075fi
7076
7077echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7078echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7079
7080 runpath_var=
7081 allow_undefined_flag=
7082 enable_shared_with_static_runtimes=no
7083 archive_cmds=
7084 archive_expsym_cmds=
7085 old_archive_From_new_cmds=
7086 old_archive_from_expsyms_cmds=
7087 export_dynamic_flag_spec=
7088 whole_archive_flag_spec=
7089 thread_safe_flag_spec=
7090 hardcode_libdir_flag_spec=
7091 hardcode_libdir_flag_spec_ld=
7092 hardcode_libdir_separator=
7093 hardcode_direct=no
7094 hardcode_minus_L=no
7095 hardcode_shlibpath_var=unsupported
7096 link_all_deplibs=unknown
7097 hardcode_automatic=no
7098 module_cmds=
7099 module_expsym_cmds=
7100 always_export_symbols=no
7101 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7102 # include_expsyms should be a list of space-separated symbols to be *always*
7103 # included in the symbol list
7104 include_expsyms=
7105 # exclude_expsyms can be an extended regexp of symbols to exclude
7106 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7107 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7108 # as well as any symbol that contains `d'.
7109 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7110 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7111 # platforms (ab)use it in PIC code, but their linkers get confused if
7112 # the symbol is explicitly referenced. Since portable code cannot
7113 # rely on this symbol name, it's probably fine to never include it in
7114 # preloaded symbol tables.
7115 extract_expsyms_cmds=
7116 # Just being paranoid about ensuring that cc_basename is set.
7117 for cc_temp in $compiler""; do
7118 case $cc_temp in
7119 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7120 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7121 \-*) ;;
7122 *) break;;
7123 esac
7124done
7125cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7126
7127 case $host_os in
7128 cygwin* | mingw* | pw32*)
7129 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7130 # When not using gcc, we currently assume that we are using
7131 # Microsoft Visual C++.
7132 if test "$GCC" != yes; then
7133 with_gnu_ld=no
7134 fi
7135 ;;
7136 interix*)
7137 # we just hope/assume this is gcc and not c89 (= MSVC++)
7138 with_gnu_ld=yes
7139 ;;
7140 openbsd*)
7141 with_gnu_ld=no
7142 ;;
7143 esac
7144
7145 ld_shlibs=yes
7146 if test "$with_gnu_ld" = yes; then
7147 # If archive_cmds runs LD, not CC, wlarc should be empty
7148 wlarc='${wl}'
7149
7150 # Set some defaults for GNU ld with shared library support. These
7151 # are reset later if shared libraries are not supported. Putting them
7152 # here allows them to be overridden if necessary.
7153 runpath_var=LD_RUN_PATH
7154 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7155 export_dynamic_flag_spec='${wl}--export-dynamic'
7156 # ancient GNU ld didn't support --whole-archive et. al.
7157 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7158 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7159 else
7160 whole_archive_flag_spec=
7161 fi
7162 supports_anon_versioning=no
7163 case `$LD -v 2>/dev/null` in
7164 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7165 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7166 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7167 *\ 2.11.*) ;; # other 2.11 versions
7168 *) supports_anon_versioning=yes ;;
7169 esac
7170
7171 # See if GNU ld supports shared libraries.
7172 case $host_os in
7173 aix3* | aix4* | aix5*)
7174 # On AIX/PPC, the GNU linker is very broken
7175 if test "$host_cpu" != ia64; then
7176 ld_shlibs=no
7177 cat <<EOF 1>&2
7178
7179*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7180*** to be unable to reliably create shared libraries on AIX.
7181*** Therefore, libtool is disabling shared libraries support. If you
7182*** really care for shared libraries, you may want to modify your PATH
7183*** so that a non-GNU linker is found, and then restart.
7184
7185EOF
7186 fi
7187 ;;
7188
7189 amigaos*)
7190 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)'
7191 hardcode_libdir_flag_spec='-L$libdir'
7192 hardcode_minus_L=yes
7193
7194 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7195 # that the semantics of dynamic libraries on AmigaOS, at least up
7196 # to version 4, is to share data among multiple programs linked
7197 # with the same dynamic library. Since this doesn't match the
7198 # behavior of shared libraries on other platforms, we can't use
7199 # them.
7200 ld_shlibs=no
7201 ;;
7202
7203 beos*)
7204 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7205 allow_undefined_flag=unsupported
7206 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7207 # support --undefined. This deserves some investigation. FIXME
7208 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7209 else
7210 ld_shlibs=no
7211 fi
7212 ;;
7213
7214 cygwin* | mingw* | pw32*)
7215 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7216 # as there is no search path for DLLs.
7217 hardcode_libdir_flag_spec='-L$libdir'
7218 allow_undefined_flag=unsupported
7219 always_export_symbols=no
7220 enable_shared_with_static_runtimes=yes
7221 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7222
7223 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7224 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7225 # If the export-symbols file already is a .def file (1st line
7226 # is EXPORTS), use it as is; otherwise, prepend...
7227 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7228 cp $export_symbols $output_objdir/$soname.def;
7229 else
7230 echo EXPORTS > $output_objdir/$soname.def;
7231 cat $export_symbols >> $output_objdir/$soname.def;
7232 fi~
7233 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7234 else
7235 ld_shlibs=no
7236 fi
7237 ;;
7238
7239 interix3*)
7240 hardcode_direct=no
7241 hardcode_shlibpath_var=no
7242 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7243 export_dynamic_flag_spec='${wl}-E'
7244 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7245 # Instead, shared libraries are loaded at an image base (0x10000000 by
7246 # default) and relocated if they conflict, which is a slow very memory
7247 # consuming and fragmenting process. To avoid this, we pick a random,
7248 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7249 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7250 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7251 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'
7252 ;;
7253
7254 linux*)
7255 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7256 tmp_addflag=
7257 case $cc_basename,$host_cpu in
7258 pgcc*) # Portland Group C compiler
7259 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7260 tmp_addflag=' $pic_flag'
7261 ;;
7262 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7263 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7264 tmp_addflag=' $pic_flag -Mnomain' ;;
7265 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7266 tmp_addflag=' -i_dynamic' ;;
7267 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7268 tmp_addflag=' -i_dynamic -nofor_main' ;;
7269 ifc* | ifort*) # Intel Fortran compiler
7270 tmp_addflag=' -nofor_main' ;;
7271 esac
7272 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7273
7274 if test $supports_anon_versioning = yes; then
7275 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7276 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7277 $echo "local: *; };" >> $output_objdir/$libname.ver~
7278 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7279 fi
7280 else
7281 ld_shlibs=no
7282 fi
7283 ;;
7284
7285 netbsd*)
7286 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7287 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7288 wlarc=
7289 else
7290 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7291 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7292 fi
7293 ;;
7294
7295 solaris*)
7296 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7297 ld_shlibs=no
7298 cat <<EOF 1>&2
7299
7300*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7301*** create shared libraries on Solaris systems. Therefore, libtool
7302*** is disabling shared libraries support. We urge you to upgrade GNU
7303*** binutils to release 2.9.1 or newer. Another option is to modify
7304*** your PATH or compiler configuration so that the native linker is
7305*** used, and then restart.
7306
7307EOF
7308 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7309 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7310 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7311 else
7312 ld_shlibs=no
7313 fi
7314 ;;
7315
7316 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7317 case `$LD -v 2>&1` in
7318 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7319 ld_shlibs=no
7320 cat <<_LT_EOF 1>&2
7321
7322*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7323*** reliably create shared libraries on SCO systems. Therefore, libtool
7324*** is disabling shared libraries support. We urge you to upgrade GNU
7325*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7326*** your PATH or compiler configuration so that the native linker is
7327*** used, and then restart.
7328
7329_LT_EOF
7330 ;;
7331 *)
7332 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7333 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7334 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7335 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7336 else
7337 ld_shlibs=no
7338 fi
7339 ;;
7340 esac
7341 ;;
7342
7343 sunos4*)
7344 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7345 wlarc=
7346 hardcode_direct=yes
7347 hardcode_shlibpath_var=no
7348 ;;
7349
7350 *)
7351 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7352 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7353 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7354 else
7355 ld_shlibs=no
7356 fi
7357 ;;
7358 esac
7359
7360 if test "$ld_shlibs" = no; then
7361 runpath_var=
7362 hardcode_libdir_flag_spec=
7363 export_dynamic_flag_spec=
7364 whole_archive_flag_spec=
7365 fi
7366 else
7367 # PORTME fill in a description of your system's linker (not GNU ld)
7368 case $host_os in
7369 aix3*)
7370 allow_undefined_flag=unsupported
7371 always_export_symbols=yes
7372 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'
7373 # Note: this linker hardcodes the directories in LIBPATH if there
7374 # are no directories specified by -L.
7375 hardcode_minus_L=yes
7376 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7377 # Neither direct hardcoding nor static linking is supported with a
7378 # broken collect2.
7379 hardcode_direct=unsupported
7380 fi
7381 ;;
7382
7383 aix4* | aix5*)
7384 if test "$host_cpu" = ia64; then
7385 # On IA64, the linker does run time linking by default, so we don't
7386 # have to do anything special.
7387 aix_use_runtimelinking=no
7388 exp_sym_flag='-Bexport'
7389 no_entry_flag=""
7390 else
7391 # If we're using GNU nm, then we don't want the "-C" option.
7392 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7393 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7394 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
7395 else
7396 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
7397 fi
7398 aix_use_runtimelinking=no
7399
7400 # Test if we are trying to use run time linking or normal
7401 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7402 # need to do runtime linking.
7403 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7404 for ld_flag in $LDFLAGS; do
7405 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7406 aix_use_runtimelinking=yes
7407 break
7408 fi
7409 done
7410 ;;
7411 esac
7412
7413 exp_sym_flag='-bexport'
7414 no_entry_flag='-bnoentry'
7415 fi
7416
7417 # When large executables or shared objects are built, AIX ld can
7418 # have problems creating the table of contents. If linking a library
7419 # or program results in "error TOC overflow" add -mminimal-toc to
7420 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7421 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7422
7423 archive_cmds=''
7424 hardcode_direct=yes
7425 hardcode_libdir_separator=':'
7426 link_all_deplibs=yes
7427
7428 if test "$GCC" = yes; then
7429 case $host_os in aix4.[012]|aix4.[012].*)
7430 # We only want to do this on AIX 4.2 and lower, the check
7431 # below for broken collect2 doesn't work under 4.3+
7432 collect2name=`${CC} -print-prog-name=collect2`
7433 if test -f "$collect2name" && \
7434 strings "$collect2name" | grep resolve_lib_name >/dev/null
7435 then
7436 # We have reworked collect2
7437 hardcode_direct=yes
7438 else
7439 # We have old collect2
7440 hardcode_direct=unsupported
7441 # It fails to find uninstalled libraries when the uninstalled
7442 # path is not listed in the libpath. Setting hardcode_minus_L
7443 # to unsupported forces relinking
7444 hardcode_minus_L=yes
7445 hardcode_libdir_flag_spec='-L$libdir'
7446 hardcode_libdir_separator=
7447 fi
7448 ;;
7449 esac
7450 shared_flag='-shared'
7451 if test "$aix_use_runtimelinking" = yes; then
7452 shared_flag="$shared_flag "'${wl}-G'
7453 fi
7454 else
7455 # not using gcc
7456 if test "$host_cpu" = ia64; then
7457 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7458 # chokes on -Wl,-G. The following line is correct:
7459 shared_flag='-G'
7460 else
7461 if test "$aix_use_runtimelinking" = yes; then
7462 shared_flag='${wl}-G'
7463 else
7464 shared_flag='${wl}-bM:SRE'
7465 fi
7466 fi
7467 fi
7468
7469 # It seems that -bexpall does not export symbols beginning with
7470 # underscore (_), so it is better to generate a list of symbols to export.
7471 always_export_symbols=yes
7472 if test "$aix_use_runtimelinking" = yes; then
7473 # Warning - without using the other runtime loading flags (-brtl),
7474 # -berok will link without error, but may produce a broken library.
7475 allow_undefined_flag='-berok'
7476 # Determine the default libpath from the value encoded in an empty executable.
7477 cat >conftest.$ac_ext <<_ACEOF
7478/* confdefs.h. */
7479_ACEOF
7480cat confdefs.h >>conftest.$ac_ext
7481cat >>conftest.$ac_ext <<_ACEOF
7482/* end confdefs.h. */
7483
7484int
7485main ()
7486{
7487
7488 ;
7489 return 0;
7490}
7491_ACEOF
7492rm -f conftest.$ac_objext conftest$ac_exeext
7493if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7494 (eval $ac_link) 2>conftest.er1
7495 ac_status=$?
7496 grep -v '^ *+' conftest.er1 >conftest.err
7497 rm -f conftest.er1
7498 cat conftest.err >&5
7499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7500 (exit $ac_status); } &&
7501 { ac_try='test -z "$ac_c_werror_flag"
7502 || test ! -s conftest.err'
7503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7504 (eval $ac_try) 2>&5
7505 ac_status=$?
7506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7507 (exit $ac_status); }; } &&
7508 { ac_try='test -s conftest$ac_exeext'
7509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7510 (eval $ac_try) 2>&5
7511 ac_status=$?
7512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7513 (exit $ac_status); }; }; then
7514
7515aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7516}'`
7517# Check for a 64-bit object if we didn't find anything.
7518if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7519}'`; fi
7520else
7521 echo "$as_me: failed program was:" >&5
7522sed 's/^/| /' conftest.$ac_ext >&5
7523
7524fi
7525rm -f conftest.err conftest.$ac_objext \
7526 conftest$ac_exeext conftest.$ac_ext
7527if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7528
7529 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7530 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7531 else
7532 if test "$host_cpu" = ia64; then
7533 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7534 allow_undefined_flag="-z nodefs"
7535 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"
7536 else
7537 # Determine the default libpath from the value encoded in an empty executable.
7538 cat >conftest.$ac_ext <<_ACEOF
7539/* confdefs.h. */
7540_ACEOF
7541cat confdefs.h >>conftest.$ac_ext
7542cat >>conftest.$ac_ext <<_ACEOF
7543/* end confdefs.h. */
7544
7545int
7546main ()
7547{
7548
7549 ;
7550 return 0;
7551}
7552_ACEOF
7553rm -f conftest.$ac_objext conftest$ac_exeext
7554if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7555 (eval $ac_link) 2>conftest.er1
7556 ac_status=$?
7557 grep -v '^ *+' conftest.er1 >conftest.err
7558 rm -f conftest.er1
7559 cat conftest.err >&5
7560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7561 (exit $ac_status); } &&
7562 { ac_try='test -z "$ac_c_werror_flag"
7563 || test ! -s conftest.err'
7564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7565 (eval $ac_try) 2>&5
7566 ac_status=$?
7567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7568 (exit $ac_status); }; } &&
7569 { ac_try='test -s conftest$ac_exeext'
7570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7571 (eval $ac_try) 2>&5
7572 ac_status=$?
7573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7574 (exit $ac_status); }; }; then
7575
7576aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7577}'`
7578# Check for a 64-bit object if we didn't find anything.
7579if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7580}'`; fi
7581else
7582 echo "$as_me: failed program was:" >&5
7583sed 's/^/| /' conftest.$ac_ext >&5
7584
7585fi
7586rm -f conftest.err conftest.$ac_objext \
7587 conftest$ac_exeext conftest.$ac_ext
7588if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7589
7590 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7591 # Warning - without using the other run time loading flags,
7592 # -berok will link without error, but may produce a broken library.
7593 no_undefined_flag=' ${wl}-bernotok'
7594 allow_undefined_flag=' ${wl}-berok'
7595 # Exported symbols can be pulled into shared objects from archives
7596 whole_archive_flag_spec='$convenience'
7597 archive_cmds_need_lc=yes
7598 # This is similar to how AIX traditionally builds its shared libraries.
7599 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7600 fi
7601 fi
7602 ;;
7603
7604 amigaos*)
7605 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)'
7606 hardcode_libdir_flag_spec='-L$libdir'
7607 hardcode_minus_L=yes
7608 # see comment about different semantics on the GNU ld section
7609 ld_shlibs=no
7610 ;;
7611
7612 bsdi[45]*)
7613 export_dynamic_flag_spec=-rdynamic
7614 ;;
7615
7616 cygwin* | mingw* | pw32*)
7617 # When not using gcc, we currently assume that we are using
7618 # Microsoft Visual C++.
7619 # hardcode_libdir_flag_spec is actually meaningless, as there is
7620 # no search path for DLLs.
7621 hardcode_libdir_flag_spec=' '
7622 allow_undefined_flag=unsupported
7623 # Tell ltmain to make .lib files, not .a files.
7624 libext=lib
7625 # Tell ltmain to make .dll files, not .so files.
7626 shrext_cmds=".dll"
7627 # FIXME: Setting linknames here is a bad hack.
7628 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7629 # The linker will automatically build a .lib file if we build a DLL.
7630 old_archive_From_new_cmds='true'
7631 # FIXME: Should let the user specify the lib program.
7632 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7633 fix_srcfile_path='`cygpath -w "$srcfile"`'
7634 enable_shared_with_static_runtimes=yes
7635 ;;
7636
7637 darwin* | rhapsody*)
7638 case $host_os in
7639 rhapsody* | darwin1.[012])
7640 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7641 ;;
7642 *) # Darwin 1.3 on
7643 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7644 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7645 else
7646 case ${MACOSX_DEPLOYMENT_TARGET} in
7647 10.[012])
7648 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7649 ;;
7650 10.*)
7651 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7652 ;;
7653 esac
7654 fi
7655 ;;
7656 esac
7657 archive_cmds_need_lc=no
7658 hardcode_direct=no
7659 hardcode_automatic=yes
7660 hardcode_shlibpath_var=unsupported
7661 whole_archive_flag_spec=''
7662 link_all_deplibs=yes
7663 if test "$GCC" = yes ; then
7664 output_verbose_link_cmd='echo'
7665 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7666 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7667 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7668 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7669 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7670 else
7671 case $cc_basename in
7672 xlc*)
7673 output_verbose_link_cmd='echo'
7674 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7675 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7676 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7677 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7678 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7679 ;;
7680 *)
7681 ld_shlibs=no
7682 ;;
7683 esac
7684 fi
7685 ;;
7686
7687 dgux*)
7688 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7689 hardcode_libdir_flag_spec='-L$libdir'
7690 hardcode_shlibpath_var=no
7691 ;;
7692
7693 freebsd1*)
7694 ld_shlibs=no
7695 ;;
7696
7697 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7698 # support. Future versions do this automatically, but an explicit c++rt0.o
7699 # does not break anything, and helps significantly (at the cost of a little
7700 # extra space).
7701 freebsd2.2*)
7702 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7703 hardcode_libdir_flag_spec='-R$libdir'
7704 hardcode_direct=yes
7705 hardcode_shlibpath_var=no
7706 ;;
7707
7708 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7709 freebsd2*)
7710 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7711 hardcode_direct=yes
7712 hardcode_minus_L=yes
7713 hardcode_shlibpath_var=no
7714 ;;
7715
7716 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7717 freebsd* | kfreebsd*-gnu | dragonfly*)
7718 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7719 hardcode_libdir_flag_spec='-R$libdir'
7720 hardcode_direct=yes
7721 hardcode_shlibpath_var=no
7722 ;;
7723
7724 hpux9*)
7725 if test "$GCC" = yes; then
7726 archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
7727 else
7728 archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
7729 fi
7730 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7731 hardcode_libdir_separator=:
7732 hardcode_direct=yes
7733
7734 # hardcode_minus_L: Not really in the search PATH,
7735 # but as the default location of the library.
7736 hardcode_minus_L=yes
7737 export_dynamic_flag_spec='${wl}-E'
7738 ;;
7739
7740 hpux10*)
7741 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7742 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7743 else
7744 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7745 fi
7746 if test "$with_gnu_ld" = no; then
7747 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7748 hardcode_libdir_separator=:
7749
7750 hardcode_direct=yes
7751 export_dynamic_flag_spec='${wl}-E'
7752
7753 # hardcode_minus_L: Not really in the search PATH,
7754 # but as the default location of the library.
7755 hardcode_minus_L=yes
7756 fi
7757 ;;
7758
7759 hpux11*)
7760 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7761 case $host_cpu in
7762 hppa*64*)
7763 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7764 ;;
7765 ia64*)
7766 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7767 ;;
7768 *)
7769 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7770 ;;
7771 esac
7772 else
7773 case $host_cpu in
7774 hppa*64*)
7775 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7776 ;;
7777 ia64*)
7778 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7779 ;;
7780 *)
7781 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7782 ;;
7783 esac
7784 fi
7785 if test "$with_gnu_ld" = no; then
7786 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7787 hardcode_libdir_separator=:
7788
7789 case $host_cpu in
7790 hppa*64*|ia64*)
7791 hardcode_libdir_flag_spec_ld='+b $libdir'
7792 hardcode_direct=no
7793 hardcode_shlibpath_var=no
7794 ;;
7795 *)
7796 hardcode_direct=yes
7797 export_dynamic_flag_spec='${wl}-E'
7798
7799 # hardcode_minus_L: Not really in the search PATH,
7800 # but as the default location of the library.
7801 hardcode_minus_L=yes
7802 ;;
7803 esac
7804 fi
7805 ;;
7806
7807 irix5* | irix6* | nonstopux*)
7808 if test "$GCC" = yes; then
7809 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7810 else
7811 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7812 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7813 fi
7814 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7815 hardcode_libdir_separator=:
7816 link_all_deplibs=yes
7817 ;;
7818
7819 netbsd*)
7820 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7821 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7822 else
7823 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7824 fi
7825 hardcode_libdir_flag_spec='-R$libdir'
7826 hardcode_direct=yes
7827 hardcode_shlibpath_var=no
7828 ;;
7829
7830 newsos6)
7831 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7832 hardcode_direct=yes
7833 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7834 hardcode_libdir_separator=:
7835 hardcode_shlibpath_var=no
7836 ;;
7837
7838 openbsd*)
7839 hardcode_direct=yes
7840 hardcode_shlibpath_var=no
7841 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7842 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7843 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7844 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7845 export_dynamic_flag_spec='${wl}-E'
7846 else
7847 case $host_os in
7848 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7849 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7850 hardcode_libdir_flag_spec='-R$libdir'
7851 ;;
7852 *)
7853 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7854 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7855 ;;
7856 esac
7857 fi
7858 ;;
7859
7860 os2*)
7861 hardcode_libdir_flag_spec='-L$libdir'
7862 hardcode_minus_L=yes
7863 allow_undefined_flag=unsupported
7864 archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
7865 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7866 ;;
7867
7868 osf3*)
7869 if test "$GCC" = yes; then
7870 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7871 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7872 else
7873 allow_undefined_flag=' -expect_unresolved \*'
7874 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7875 fi
7876 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7877 hardcode_libdir_separator=:
7878 ;;
7879
7880 osf4* | osf5*) # as osf3* with the addition of -msym flag
7881 if test "$GCC" = yes; then
7882 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7883 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7884 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7885 else
7886 allow_undefined_flag=' -expect_unresolved \*'
7887 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7888 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7889 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
7890
7891 # Both c and cxx compiler support -rpath directly
7892 hardcode_libdir_flag_spec='-rpath $libdir'
7893 fi
7894 hardcode_libdir_separator=:
7895 ;;
7896
7897 solaris*)
7898 no_undefined_flag=' -z text'
7899 if test "$GCC" = yes; then
7900 wlarc='${wl}'
7901 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7902 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7903 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7904 else
7905 wlarc=''
7906 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7907 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7908 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7909 fi
7910 hardcode_libdir_flag_spec='-R$libdir'
7911 hardcode_shlibpath_var=no
7912 case $host_os in
7913 solaris2.[0-5] | solaris2.[0-5].*) ;;
7914 *)
7915 # The compiler driver will combine linker options so we
7916 # cannot just pass the convience library names through
7917 # without $wl, iff we do not link with $LD.
7918 # Luckily, gcc supports the same syntax we need for Sun Studio.
7919 # Supported since Solaris 2.6 (maybe 2.5.1?)
7920 case $wlarc in
7921 '')
7922 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7923 *)
7924 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
7925 esac ;;
7926 esac
7927 link_all_deplibs=yes
7928 ;;
7929
7930 sunos4*)
7931 if test "x$host_vendor" = xsequent; then
7932 # Use $CC to link under sequent, because it throws in some extra .o
7933 # files that make .init and .fini sections work.
7934 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7935 else
7936 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7937 fi
7938 hardcode_libdir_flag_spec='-L$libdir'
7939 hardcode_direct=yes
7940 hardcode_minus_L=yes
7941 hardcode_shlibpath_var=no
7942 ;;
7943
7944 sysv4)
7945 case $host_vendor in
7946 sni)
7947 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7948 hardcode_direct=yes # is this really true???
7949 ;;
7950 siemens)
7951 ## LD is ld it makes a PLAMLIB
7952 ## CC just makes a GrossModule.
7953 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7954 reload_cmds='$CC -r -o $output$reload_objs'
7955 hardcode_direct=no
7956 ;;
7957 motorola)
7958 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7959 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7960 ;;
7961 esac
7962 runpath_var='LD_RUN_PATH'
7963 hardcode_shlibpath_var=no
7964 ;;
7965
7966 sysv4.3*)
7967 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7968 hardcode_shlibpath_var=no
7969 export_dynamic_flag_spec='-Bexport'
7970 ;;
7971
7972 sysv4*MP*)
7973 if test -d /usr/nec; then
7974 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7975 hardcode_shlibpath_var=no
7976 runpath_var=LD_RUN_PATH
7977 hardcode_runpath_var=yes
7978 ld_shlibs=yes
7979 fi
7980 ;;
7981
7982 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
7983 no_undefined_flag='${wl}-z,text'
7984 archive_cmds_need_lc=no
7985 hardcode_shlibpath_var=no
7986 runpath_var='LD_RUN_PATH'
7987
7988 if test "$GCC" = yes; then
7989 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7990 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7991 else
7992 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7993 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7994 fi
7995 ;;
7996
7997 sysv5* | sco3.2v5* | sco5v6*)
7998 # Note: We can NOT use -z defs as we might desire, because we do not
7999 # link with -lc, and that would cause any symbols used from libc to
8000 # always be unresolved, which means just about no library would
8001 # ever link correctly. If we're not using GNU ld we use -z text
8002 # though, which does catch some bad symbols but isn't as heavy-handed
8003 # as -z defs.
8004 no_undefined_flag='${wl}-z,text'
8005 allow_undefined_flag='${wl}-z,nodefs'
8006 archive_cmds_need_lc=no
8007 hardcode_shlibpath_var=no
8008 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8009 hardcode_libdir_separator=':'
8010 link_all_deplibs=yes
8011 export_dynamic_flag_spec='${wl}-Bexport'
8012 runpath_var='LD_RUN_PATH'
8013
8014 if test "$GCC" = yes; then
8015 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8016 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8017 else
8018 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8019 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8020 fi
8021 ;;
8022
8023 uts4*)
8024 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8025 hardcode_libdir_flag_spec='-L$libdir'
8026 hardcode_shlibpath_var=no
8027 ;;
8028
8029 *)
8030 ld_shlibs=no
8031 ;;
8032 esac
8033 fi
8034
8035echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8036echo "${ECHO_T}$ld_shlibs" >&6
8037test "$ld_shlibs" = no && can_build_shared=no
8038
8039#
8040# Do we need to explicitly link libc?
8041#
8042case "x$archive_cmds_need_lc" in
8043x|xyes)
8044 # Assume -lc should be added
8045 archive_cmds_need_lc=yes
8046
8047 if test "$enable_shared" = yes && test "$GCC" = yes; then
8048 case $archive_cmds in
8049 *'~'*)
8050 # FIXME: we may have to deal with multi-command sequences.
8051 ;;
8052 '$CC '*)
8053 # Test whether the compiler implicitly links with -lc since on some
8054 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8055 # to ld, don't add -lc before -lgcc.
8056 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8057echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8058 $rm conftest*
8059 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8060
8061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8062 (eval $ac_compile) 2>&5
8063 ac_status=$?
8064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8065 (exit $ac_status); } 2>conftest.err; then
8066 soname=conftest
8067 lib=conftest
8068 libobjs=conftest.$ac_objext
8069 deplibs=
8070 wl=$lt_prog_compiler_wl
8071 pic_flag=$lt_prog_compiler_pic
8072 compiler_flags=-v
8073 linker_flags=-v
8074 verstring=
8075 output_objdir=.
8076 libname=conftest
8077 lt_save_allow_undefined_flag=$allow_undefined_flag
8078 allow_undefined_flag=
8079 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8080 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8081 ac_status=$?
8082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8083 (exit $ac_status); }
8084 then
8085 archive_cmds_need_lc=no
8086 else
8087 archive_cmds_need_lc=yes
8088 fi
8089 allow_undefined_flag=$lt_save_allow_undefined_flag
8090 else
8091 cat conftest.err 1>&5
8092 fi
8093 $rm conftest*
8094 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8095echo "${ECHO_T}$archive_cmds_need_lc" >&6
8096 ;;
8097 esac
8098 fi
8099 ;;
8100esac
8101
8102echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8103echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8104library_names_spec=
8105libname_spec='lib$name'
8106soname_spec=
8107shrext_cmds=".so"
8108postinstall_cmds=
8109postuninstall_cmds=
8110finish_cmds=
8111finish_eval=
8112shlibpath_var=
8113shlibpath_overrides_runpath=unknown
8114version_type=none
8115dynamic_linker="$host_os ld.so"
8116sys_lib_dlsearch_path_spec="/lib /usr/lib"
8117if test "$GCC" = yes; then
8118 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8119 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8120 # if the path contains ";" then we assume it to be the separator
8121 # otherwise default to the standard path separator (i.e. ":") - it is
8122 # assumed that no part of a normal pathname contains ";" but that should
8123 # okay in the real world where ";" in dirpaths is itself problematic.
8124 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8125 else
8126 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8127 fi
8128else
8129 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8130fi
8131need_lib_prefix=unknown
8132hardcode_into_libs=no
8133
8134# when you set need_version to no, make sure it does not cause -set_version
8135# flags to be left without arguments
8136need_version=unknown
8137
8138case $host_os in
8139aix3*)
8140 version_type=linux
8141 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8142 shlibpath_var=LIBPATH
8143
8144 # AIX 3 has no versioning support, so we append a major version to the name.
8145 soname_spec='${libname}${release}${shared_ext}$major'
8146 ;;
8147
8148aix4* | aix5*)
8149 version_type=linux
8150 need_lib_prefix=no
8151 need_version=no
8152 hardcode_into_libs=yes
8153 if test "$host_cpu" = ia64; then
8154 # AIX 5 supports IA64
8155 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8156 shlibpath_var=LD_LIBRARY_PATH
8157 else
8158 # With GCC up to 2.95.x, collect2 would create an import file
8159 # for dependence libraries. The import file would start with
8160 # the line `#! .'. This would cause the generated library to
8161 # depend on `.', always an invalid library. This was fixed in
8162 # development snapshots of GCC prior to 3.0.
8163 case $host_os in
8164 aix4 | aix4.[01] | aix4.[01].*)
8165 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8166 echo ' yes '
8167 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8168 :
8169 else
8170 can_build_shared=no
8171 fi
8172 ;;
8173 esac
8174 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8175 # soname into executable. Probably we can add versioning support to
8176 # collect2, so additional links can be useful in future.
8177 if test "$aix_use_runtimelinking" = yes; then
8178 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8179 # instead of lib<name>.a to let people know that these are not
8180 # typical AIX shared libraries.
8181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8182 else
8183 # We preserve .a as extension for shared libraries through AIX4.2
8184 # and later when we are not doing run time linking.
8185 library_names_spec='${libname}${release}.a $libname.a'
8186 soname_spec='${libname}${release}${shared_ext}$major'
8187 fi
8188 shlibpath_var=LIBPATH
8189 fi
8190 ;;
8191
8192amigaos*)
8193 library_names_spec='$libname.ixlibrary $libname.a'
8194 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8195 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
8196 ;;
8197
8198beos*)
8199 library_names_spec='${libname}${shared_ext}'
8200 dynamic_linker="$host_os ld.so"
8201 shlibpath_var=LIBRARY_PATH
8202 ;;
8203
8204bsdi[45]*)
8205 version_type=linux
8206 need_version=no
8207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8208 soname_spec='${libname}${release}${shared_ext}$major'
8209 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8210 shlibpath_var=LD_LIBRARY_PATH
8211 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8212 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8213 # the default ld.so.conf also contains /usr/contrib/lib and
8214 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8215 # libtool to hard-code these into programs
8216 ;;
8217
8218cygwin* | mingw* | pw32*)
8219 version_type=windows
8220 shrext_cmds=".dll"
8221 need_version=no
8222 need_lib_prefix=no
8223
8224 case $GCC,$host_os in
8225 yes,cygwin* | yes,mingw* | yes,pw32*)
8226 library_names_spec='$libname.dll.a'
8227 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8228 postinstall_cmds='base_file=`basename \${file}`~
8229 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8230 dldir=$destdir/`dirname \$dlpath`~
8231 test -d \$dldir || mkdir -p \$dldir~
8232 $install_prog $dir/$dlname \$dldir/$dlname~
8233 chmod a+x \$dldir/$dlname'
8234 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8235 dlpath=$dir/\$dldll~
8236 $rm \$dlpath'
8237 shlibpath_overrides_runpath=yes
8238
8239 case $host_os in
8240 cygwin*)
8241 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8242 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8243 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8244 ;;
8245 mingw*)
8246 # MinGW DLLs use traditional 'lib' prefix
8247 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8248 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8249 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8250 # It is most probably a Windows format PATH printed by
8251 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8252 # path with ; separators, and with drive letters. We can handle the
8253 # drive letters (cygwin fileutils understands them), so leave them,
8254 # especially as we might pass files found there to a mingw objdump,
8255 # which wouldn't understand a cygwinified path. Ahh.
8256 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8257 else
8258 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8259 fi
8260 ;;
8261 pw32*)
8262 # pw32 DLLs use 'pw' prefix rather than 'lib'
8263 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8264 ;;
8265 esac
8266 ;;
8267
8268 *)
8269 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8270 ;;
8271 esac
8272 dynamic_linker='Win32 ld.exe'
8273 # FIXME: first we should search . and the directory the executable is in
8274 shlibpath_var=PATH
8275 ;;
8276
8277darwin* | rhapsody*)
8278 dynamic_linker="$host_os dyld"
8279 version_type=darwin
8280 need_lib_prefix=no
8281 need_version=no
8282 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8283 soname_spec='${libname}${release}${major}$shared_ext'
8284 shlibpath_overrides_runpath=yes
8285 shlibpath_var=DYLD_LIBRARY_PATH
8286 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8287 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8288 if test "$GCC" = yes; then
8289 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
8290 else
8291 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8292 fi
8293 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8294 ;;
8295
8296dgux*)
8297 version_type=linux
8298 need_lib_prefix=no
8299 need_version=no
8300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8301 soname_spec='${libname}${release}${shared_ext}$major'
8302 shlibpath_var=LD_LIBRARY_PATH
8303 ;;
8304
8305freebsd1*)
8306 dynamic_linker=no
8307 ;;
8308
8309kfreebsd*-gnu)
8310 version_type=linux
8311 need_lib_prefix=no
8312 need_version=no
8313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8314 soname_spec='${libname}${release}${shared_ext}$major'
8315 shlibpath_var=LD_LIBRARY_PATH
8316 shlibpath_overrides_runpath=no
8317 hardcode_into_libs=yes
8318 dynamic_linker='GNU ld.so'
8319 ;;
8320
8321freebsd* | dragonfly*)
8322 # DragonFly does not have aout. When/if they implement a new
8323 # versioning mechanism, adjust this.
8324 if test -x /usr/bin/objformat; then
8325 objformat=`/usr/bin/objformat`
8326 else
8327 case $host_os in
8328 freebsd[123]*) objformat=aout ;;
8329 *) objformat=elf ;;
8330 esac
8331 fi
8332 version_type=freebsd-$objformat
8333 case $version_type in
8334 freebsd-elf*)
8335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8336 need_version=no
8337 need_lib_prefix=no
8338 ;;
8339 freebsd-*)
8340 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8341 need_version=yes
8342 ;;
8343 esac
8344 shlibpath_var=LD_LIBRARY_PATH
8345 case $host_os in
8346 freebsd2*)
8347 shlibpath_overrides_runpath=yes
8348 ;;
8349 freebsd3.[01]* | freebsdelf3.[01]*)
8350 shlibpath_overrides_runpath=yes
8351 hardcode_into_libs=yes
8352 ;;
8353 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8354 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8355 shlibpath_overrides_runpath=no
8356 hardcode_into_libs=yes
8357 ;;
8358 freebsd*) # from 4.6 on
8359 shlibpath_overrides_runpath=yes
8360 hardcode_into_libs=yes
8361 ;;
8362 esac
8363 ;;
8364
8365gnu*)
8366 version_type=linux
8367 need_lib_prefix=no
8368 need_version=no
8369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8370 soname_spec='${libname}${release}${shared_ext}$major'
8371 shlibpath_var=LD_LIBRARY_PATH
8372 hardcode_into_libs=yes
8373 ;;
8374
8375hpux9* | hpux10* | hpux11*)
8376 # Give a soname corresponding to the major version so that dld.sl refuses to
8377 # link against other versions.
8378 version_type=sunos
8379 need_lib_prefix=no
8380 need_version=no
8381 case $host_cpu in
8382 ia64*)
8383 shrext_cmds='.so'
8384 hardcode_into_libs=yes
8385 dynamic_linker="$host_os dld.so"
8386 shlibpath_var=LD_LIBRARY_PATH
8387 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8389 soname_spec='${libname}${release}${shared_ext}$major'
8390 if test "X$HPUX_IA64_MODE" = X32; then
8391 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8392 else
8393 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8394 fi
8395 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8396 ;;
8397 hppa*64*)
8398 shrext_cmds='.sl'
8399 hardcode_into_libs=yes
8400 dynamic_linker="$host_os dld.sl"
8401 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8402 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8404 soname_spec='${libname}${release}${shared_ext}$major'
8405 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8406 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8407 ;;
8408 *)
8409 shrext_cmds='.sl'
8410 dynamic_linker="$host_os dld.sl"
8411 shlibpath_var=SHLIB_PATH
8412 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8414 soname_spec='${libname}${release}${shared_ext}$major'
8415 ;;
8416 esac
8417 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8418 postinstall_cmds='chmod 555 $lib'
8419 ;;
8420
8421interix3*)
8422 version_type=linux
8423 need_lib_prefix=no
8424 need_version=no
8425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8426 soname_spec='${libname}${release}${shared_ext}$major'
8427 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8428 shlibpath_var=LD_LIBRARY_PATH
8429 shlibpath_overrides_runpath=no
8430 hardcode_into_libs=yes
8431 ;;
8432
8433irix5* | irix6* | nonstopux*)
8434 case $host_os in
8435 nonstopux*) version_type=nonstopux ;;
8436 *)
8437 if test "$lt_cv_prog_gnu_ld" = yes; then
8438 version_type=linux
8439 else
8440 version_type=irix
8441 fi ;;
8442 esac
8443 need_lib_prefix=no
8444 need_version=no
8445 soname_spec='${libname}${release}${shared_ext}$major'
8446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8447 case $host_os in
8448 irix5* | nonstopux*)
8449 libsuff= shlibsuff=
8450 ;;
8451 *)
8452 case $LD in # libtool.m4 will add one of these switches to LD
8453 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8454 libsuff= shlibsuff= libmagic=32-bit;;
8455 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8456 libsuff=32 shlibsuff=N32 libmagic=N32;;
8457 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8458 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8459 *) libsuff= shlibsuff= libmagic=never-match;;
8460 esac
8461 ;;
8462 esac
8463 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8464 shlibpath_overrides_runpath=no
8465 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8466 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8467 hardcode_into_libs=yes
8468 ;;
8469
8470# No shared lib support for Linux oldld, aout, or coff.
8471linux*oldld* | linux*aout* | linux*coff*)
8472 dynamic_linker=no
8473 ;;
8474
8475# This must be Linux ELF.
8476linux*)
8477 version_type=linux
8478 need_lib_prefix=no
8479 need_version=no
8480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8481 soname_spec='${libname}${release}${shared_ext}$major'
8482 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8483 shlibpath_var=LD_LIBRARY_PATH
8484 shlibpath_overrides_runpath=no
8485 # This implies no fast_install, which is unacceptable.
8486 # Some rework will be needed to allow for fast_install
8487 # before this can be enabled.
8488 hardcode_into_libs=yes
8489
8490 # find out which ABI we are using
8491 libsuff=
8492 case "$host_cpu" in
8493 x86_64*|s390x*|powerpc64*)
5e9b5d83 8494 echo '#line 8494 "configure"' > conftest.$ac_ext
bf9f3bac 8495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8496 (eval $ac_compile) 2>&5
8497 ac_status=$?
8498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8499 (exit $ac_status); }; then
8500 case `/usr/bin/file conftest.$ac_objext` in
8501 *64-bit*)
8502 libsuff=64
8503 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
8504 ;;
8505 esac
8506 fi
8507 rm -rf conftest*
8508 ;;
8509 esac
8510
8511 # Append ld.so.conf contents to the search path
8512 if test -f /etc/ld.so.conf; then
8513 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/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8514 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
8515 fi
8516
8517 # We used to test for /lib/ld.so.1 and disable shared libraries on
8518 # powerpc, because MkLinux only supported shared libraries with the
8519 # GNU dynamic linker. Since this was broken with cross compilers,
8520 # most powerpc-linux boxes support dynamic linking these days and
8521 # people can always --disable-shared, the test was removed, and we
8522 # assume the GNU/Linux dynamic linker is in use.
8523 dynamic_linker='GNU/Linux ld.so'
8524 ;;
8525
8526knetbsd*-gnu)
8527 version_type=linux
8528 need_lib_prefix=no
8529 need_version=no
8530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8531 soname_spec='${libname}${release}${shared_ext}$major'
8532 shlibpath_var=LD_LIBRARY_PATH
8533 shlibpath_overrides_runpath=no
8534 hardcode_into_libs=yes
8535 dynamic_linker='GNU ld.so'
8536 ;;
8537
8538netbsd*)
8539 version_type=sunos
8540 need_lib_prefix=no
8541 need_version=no
8542 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8544 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8545 dynamic_linker='NetBSD (a.out) ld.so'
8546 else
8547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8548 soname_spec='${libname}${release}${shared_ext}$major'
8549 dynamic_linker='NetBSD ld.elf_so'
8550 fi
8551 shlibpath_var=LD_LIBRARY_PATH
8552 shlibpath_overrides_runpath=yes
8553 hardcode_into_libs=yes
8554 ;;
8555
8556newsos6)
8557 version_type=linux
8558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8559 shlibpath_var=LD_LIBRARY_PATH
8560 shlibpath_overrides_runpath=yes
8561 ;;
8562
8563nto-qnx*)
8564 version_type=linux
8565 need_lib_prefix=no
8566 need_version=no
8567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8568 soname_spec='${libname}${release}${shared_ext}$major'
8569 shlibpath_var=LD_LIBRARY_PATH
8570 shlibpath_overrides_runpath=yes
8571 ;;
8572
8573openbsd*)
8574 version_type=sunos
8575 sys_lib_dlsearch_path_spec="/usr/lib"
8576 need_lib_prefix=no
8577 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8578 case $host_os in
8579 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8580 *) need_version=no ;;
8581 esac
8582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8583 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8584 shlibpath_var=LD_LIBRARY_PATH
8585 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8586 case $host_os in
8587 openbsd2.[89] | openbsd2.[89].*)
8588 shlibpath_overrides_runpath=no
8589 ;;
8590 *)
8591 shlibpath_overrides_runpath=yes
8592 ;;
8593 esac
8594 else
8595 shlibpath_overrides_runpath=yes
8596 fi
8597 ;;
8598
8599os2*)
8600 libname_spec='$name'
8601 shrext_cmds=".dll"
8602 need_lib_prefix=no
8603 library_names_spec='$libname${shared_ext} $libname.a'
8604 dynamic_linker='OS/2 ld.exe'
8605 shlibpath_var=LIBPATH
8606 ;;
8607
8608osf3* | osf4* | osf5*)
8609 version_type=osf
8610 need_lib_prefix=no
8611 need_version=no
8612 soname_spec='${libname}${release}${shared_ext}$major'
8613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8614 shlibpath_var=LD_LIBRARY_PATH
8615 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8616 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8617 ;;
8618
8619solaris*)
8620 version_type=linux
8621 need_lib_prefix=no
8622 need_version=no
8623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8624 soname_spec='${libname}${release}${shared_ext}$major'
8625 shlibpath_var=LD_LIBRARY_PATH
8626 shlibpath_overrides_runpath=yes
8627 hardcode_into_libs=yes
8628 # ldd complains unless libraries are executable
8629 postinstall_cmds='chmod +x $lib'
8630 ;;
8631
8632sunos4*)
8633 version_type=sunos
8634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8635 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8636 shlibpath_var=LD_LIBRARY_PATH
8637 shlibpath_overrides_runpath=yes
8638 if test "$with_gnu_ld" = yes; then
8639 need_lib_prefix=no
8640 fi
8641 need_version=yes
8642 ;;
8643
8644sysv4 | sysv4.3*)
8645 version_type=linux
8646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8647 soname_spec='${libname}${release}${shared_ext}$major'
8648 shlibpath_var=LD_LIBRARY_PATH
8649 case $host_vendor in
8650 sni)
8651 shlibpath_overrides_runpath=no
8652 need_lib_prefix=no
8653 export_dynamic_flag_spec='${wl}-Blargedynsym'
8654 runpath_var=LD_RUN_PATH
8655 ;;
8656 siemens)
8657 need_lib_prefix=no
8658 ;;
8659 motorola)
8660 need_lib_prefix=no
8661 need_version=no
8662 shlibpath_overrides_runpath=no
8663 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8664 ;;
8665 esac
8666 ;;
8667
8668sysv4*MP*)
8669 if test -d /usr/nec ;then
8670 version_type=linux
8671 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8672 soname_spec='$libname${shared_ext}.$major'
8673 shlibpath_var=LD_LIBRARY_PATH
8674 fi
8675 ;;
8676
8677sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8678 version_type=freebsd-elf
8679 need_lib_prefix=no
8680 need_version=no
8681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8682 soname_spec='${libname}${release}${shared_ext}$major'
8683 shlibpath_var=LD_LIBRARY_PATH
8684 hardcode_into_libs=yes
8685 if test "$with_gnu_ld" = yes; then
8686 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8687 shlibpath_overrides_runpath=no
8688 else
8689 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8690 shlibpath_overrides_runpath=yes
8691 case $host_os in
8692 sco3.2v5*)
8693 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8694 ;;
8695 esac
8696 fi
8697 sys_lib_dlsearch_path_spec='/usr/lib'
8698 ;;
8699
8700uts4*)
8701 version_type=linux
8702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8703 soname_spec='${libname}${release}${shared_ext}$major'
8704 shlibpath_var=LD_LIBRARY_PATH
8705 ;;
8706
8707*)
8708 dynamic_linker=no
8709 ;;
8710esac
8711echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8712echo "${ECHO_T}$dynamic_linker" >&6
8713test "$dynamic_linker" = no && can_build_shared=no
8714
8715variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8716if test "$GCC" = yes; then
8717 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8718fi
8719
8720echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8721echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8722hardcode_action=
8723if test -n "$hardcode_libdir_flag_spec" || \
8724 test -n "$runpath_var" || \
8725 test "X$hardcode_automatic" = "Xyes" ; then
8726
8727 # We can hardcode non-existant directories.
8728 if test "$hardcode_direct" != no &&
8729 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8730 # have to relink, otherwise we might link with an installed library
8731 # when we should be linking with a yet-to-be-installed one
8732 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8733 test "$hardcode_minus_L" != no; then
8734 # Linking always hardcodes the temporary library directory.
8735 hardcode_action=relink
8736 else
8737 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8738 hardcode_action=immediate
8739 fi
8740else
8741 # We cannot hardcode anything, or else we can only hardcode existing
8742 # directories.
8743 hardcode_action=unsupported
8744fi
8745echo "$as_me:$LINENO: result: $hardcode_action" >&5
8746echo "${ECHO_T}$hardcode_action" >&6
8747
8748if test "$hardcode_action" = relink; then
8749 # Fast installation is not supported
8750 enable_fast_install=no
8751elif test "$shlibpath_overrides_runpath" = yes ||
8752 test "$enable_shared" = no; then
8753 # Fast installation is not necessary
8754 enable_fast_install=needless
8755fi
8756
8757striplib=
8758old_striplib=
8759echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8760echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8761if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8762 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8763 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8764 echo "$as_me:$LINENO: result: yes" >&5
8765echo "${ECHO_T}yes" >&6
8766else
8767# FIXME - insert some real tests, host_os isn't really good enough
8768 case $host_os in
8769 darwin*)
8770 if test -n "$STRIP" ; then
8771 striplib="$STRIP -x"
8772 echo "$as_me:$LINENO: result: yes" >&5
8773echo "${ECHO_T}yes" >&6
8774 else
8775 echo "$as_me:$LINENO: result: no" >&5
8776echo "${ECHO_T}no" >&6
8777fi
8778 ;;
8779 *)
8780 echo "$as_me:$LINENO: result: no" >&5
8781echo "${ECHO_T}no" >&6
8782 ;;
8783 esac
8784fi
8785
8786if test "x$enable_dlopen" != xyes; then
8787 enable_dlopen=unknown
8788 enable_dlopen_self=unknown
8789 enable_dlopen_self_static=unknown
8790else
8791 lt_cv_dlopen=no
8792 lt_cv_dlopen_libs=
8793
8794 case $host_os in
8795 beos*)
8796 lt_cv_dlopen="load_add_on"
8797 lt_cv_dlopen_libs=
8798 lt_cv_dlopen_self=yes
8799 ;;
8800
8801 mingw* | pw32*)
8802 lt_cv_dlopen="LoadLibrary"
8803 lt_cv_dlopen_libs=
8804 ;;
8805
8806 cygwin*)
8807 lt_cv_dlopen="dlopen"
8808 lt_cv_dlopen_libs=
8809 ;;
8810
8811 darwin*)
8812 # if libdl is installed we need to link against it
8813 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8814echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8815if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8816 echo $ECHO_N "(cached) $ECHO_C" >&6
8817else
8818 ac_check_lib_save_LIBS=$LIBS
8819LIBS="-ldl $LIBS"
8820cat >conftest.$ac_ext <<_ACEOF
8821/* confdefs.h. */
8822_ACEOF
8823cat confdefs.h >>conftest.$ac_ext
8824cat >>conftest.$ac_ext <<_ACEOF
8825/* end confdefs.h. */
8826
8827/* Override any gcc2 internal prototype to avoid an error. */
8828#ifdef __cplusplus
8829extern "C"
8830#endif
8831/* We use char because int might match the return type of a gcc2
8832 builtin and then its argument prototype would still apply. */
8833char dlopen ();
8834int
8835main ()
8836{
8837dlopen ();
8838 ;
8839 return 0;
8840}
8841_ACEOF
8842rm -f conftest.$ac_objext conftest$ac_exeext
8843if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8844 (eval $ac_link) 2>conftest.er1
8845 ac_status=$?
8846 grep -v '^ *+' conftest.er1 >conftest.err
8847 rm -f conftest.er1
8848 cat conftest.err >&5
8849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8850 (exit $ac_status); } &&
8851 { ac_try='test -z "$ac_c_werror_flag"
8852 || test ! -s conftest.err'
8853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8854 (eval $ac_try) 2>&5
8855 ac_status=$?
8856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8857 (exit $ac_status); }; } &&
8858 { ac_try='test -s conftest$ac_exeext'
8859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8860 (eval $ac_try) 2>&5
8861 ac_status=$?
8862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8863 (exit $ac_status); }; }; then
8864 ac_cv_lib_dl_dlopen=yes
8865else
8866 echo "$as_me: failed program was:" >&5
8867sed 's/^/| /' conftest.$ac_ext >&5
8868
8869ac_cv_lib_dl_dlopen=no
8870fi
8871rm -f conftest.err conftest.$ac_objext \
8872 conftest$ac_exeext conftest.$ac_ext
8873LIBS=$ac_check_lib_save_LIBS
8874fi
8875echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8876echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8877if test $ac_cv_lib_dl_dlopen = yes; then
8878 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8879else
8880
8881 lt_cv_dlopen="dyld"
8882 lt_cv_dlopen_libs=
8883 lt_cv_dlopen_self=yes
8884
8885fi
8886
8887 ;;
8888
8889 *)
8890 echo "$as_me:$LINENO: checking for shl_load" >&5
8891echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8892if test "${ac_cv_func_shl_load+set}" = set; then
8893 echo $ECHO_N "(cached) $ECHO_C" >&6
8894else
8895 cat >conftest.$ac_ext <<_ACEOF
8896/* confdefs.h. */
8897_ACEOF
8898cat confdefs.h >>conftest.$ac_ext
8899cat >>conftest.$ac_ext <<_ACEOF
8900/* end confdefs.h. */
8901/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8902 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8903#define shl_load innocuous_shl_load
8904
8905/* System header to define __stub macros and hopefully few prototypes,
8906 which can conflict with char shl_load (); below.
8907 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8908 <limits.h> exists even on freestanding compilers. */
8909
8910#ifdef __STDC__
8911# include <limits.h>
8912#else
8913# include <assert.h>
8914#endif
8915
8916#undef shl_load
8917
8918/* Override any gcc2 internal prototype to avoid an error. */
8919#ifdef __cplusplus
8920extern "C"
8921{
8922#endif
8923/* We use char because int might match the return type of a gcc2
8924 builtin and then its argument prototype would still apply. */
8925char shl_load ();
8926/* The GNU C library defines this for functions which it implements
8927 to always fail with ENOSYS. Some functions are actually named
8928 something starting with __ and the normal name is an alias. */
8929#if defined (__stub_shl_load) || defined (__stub___shl_load)
8930choke me
8931#else
8932char (*f) () = shl_load;
8933#endif
8934#ifdef __cplusplus
8935}
8936#endif
8937
8938int
8939main ()
8940{
8941return f != shl_load;
8942 ;
8943 return 0;
8944}
8945_ACEOF
8946rm -f conftest.$ac_objext conftest$ac_exeext
8947if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8948 (eval $ac_link) 2>conftest.er1
8949 ac_status=$?
8950 grep -v '^ *+' conftest.er1 >conftest.err
8951 rm -f conftest.er1
8952 cat conftest.err >&5
8953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8954 (exit $ac_status); } &&
8955 { ac_try='test -z "$ac_c_werror_flag"
8956 || test ! -s conftest.err'
8957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8958 (eval $ac_try) 2>&5
8959 ac_status=$?
8960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8961 (exit $ac_status); }; } &&
8962 { ac_try='test -s conftest$ac_exeext'
8963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8964 (eval $ac_try) 2>&5
8965 ac_status=$?
8966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8967 (exit $ac_status); }; }; then
8968 ac_cv_func_shl_load=yes
8969else
8970 echo "$as_me: failed program was:" >&5
8971sed 's/^/| /' conftest.$ac_ext >&5
8972
8973ac_cv_func_shl_load=no
8974fi
8975rm -f conftest.err conftest.$ac_objext \
8976 conftest$ac_exeext conftest.$ac_ext
8977fi
8978echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8979echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8980if test $ac_cv_func_shl_load = yes; then
8981 lt_cv_dlopen="shl_load"
8982else
8983 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8984echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8985if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8986 echo $ECHO_N "(cached) $ECHO_C" >&6
8987else
8988 ac_check_lib_save_LIBS=$LIBS
8989LIBS="-ldld $LIBS"
8990cat >conftest.$ac_ext <<_ACEOF
8991/* confdefs.h. */
8992_ACEOF
8993cat confdefs.h >>conftest.$ac_ext
8994cat >>conftest.$ac_ext <<_ACEOF
8995/* end confdefs.h. */
8996
8997/* Override any gcc2 internal prototype to avoid an error. */
8998#ifdef __cplusplus
8999extern "C"
9000#endif
9001/* We use char because int might match the return type of a gcc2
9002 builtin and then its argument prototype would still apply. */
9003char shl_load ();
9004int
9005main ()
9006{
9007shl_load ();
9008 ;
9009 return 0;
9010}
9011_ACEOF
9012rm -f conftest.$ac_objext conftest$ac_exeext
9013if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9014 (eval $ac_link) 2>conftest.er1
9015 ac_status=$?
9016 grep -v '^ *+' conftest.er1 >conftest.err
9017 rm -f conftest.er1
9018 cat conftest.err >&5
9019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9020 (exit $ac_status); } &&
9021 { ac_try='test -z "$ac_c_werror_flag"
9022 || test ! -s conftest.err'
9023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9024 (eval $ac_try) 2>&5
9025 ac_status=$?
9026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9027 (exit $ac_status); }; } &&
9028 { ac_try='test -s conftest$ac_exeext'
9029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9030 (eval $ac_try) 2>&5
9031 ac_status=$?
9032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9033 (exit $ac_status); }; }; then
9034 ac_cv_lib_dld_shl_load=yes
9035else
9036 echo "$as_me: failed program was:" >&5
9037sed 's/^/| /' conftest.$ac_ext >&5
9038
9039ac_cv_lib_dld_shl_load=no
9040fi
9041rm -f conftest.err conftest.$ac_objext \
9042 conftest$ac_exeext conftest.$ac_ext
9043LIBS=$ac_check_lib_save_LIBS
9044fi
9045echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9046echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9047if test $ac_cv_lib_dld_shl_load = yes; then
9048 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9049else
9050 echo "$as_me:$LINENO: checking for dlopen" >&5
9051echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9052if test "${ac_cv_func_dlopen+set}" = set; then
9053 echo $ECHO_N "(cached) $ECHO_C" >&6
9054else
9055 cat >conftest.$ac_ext <<_ACEOF
9056/* confdefs.h. */
9057_ACEOF
9058cat confdefs.h >>conftest.$ac_ext
9059cat >>conftest.$ac_ext <<_ACEOF
9060/* end confdefs.h. */
9061/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9062 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9063#define dlopen innocuous_dlopen
9064
9065/* System header to define __stub macros and hopefully few prototypes,
9066 which can conflict with char dlopen (); below.
9067 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9068 <limits.h> exists even on freestanding compilers. */
9069
9070#ifdef __STDC__
9071# include <limits.h>
9072#else
9073# include <assert.h>
9074#endif
9075
9076#undef dlopen
9077
9078/* Override any gcc2 internal prototype to avoid an error. */
9079#ifdef __cplusplus
9080extern "C"
9081{
9082#endif
9083/* We use char because int might match the return type of a gcc2
9084 builtin and then its argument prototype would still apply. */
9085char dlopen ();
9086/* The GNU C library defines this for functions which it implements
9087 to always fail with ENOSYS. Some functions are actually named
9088 something starting with __ and the normal name is an alias. */
9089#if defined (__stub_dlopen) || defined (__stub___dlopen)
9090choke me
9091#else
9092char (*f) () = dlopen;
9093#endif
9094#ifdef __cplusplus
9095}
9096#endif
9097
9098int
9099main ()
9100{
9101return f != dlopen;
9102 ;
9103 return 0;
9104}
9105_ACEOF
9106rm -f conftest.$ac_objext conftest$ac_exeext
9107if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9108 (eval $ac_link) 2>conftest.er1
9109 ac_status=$?
9110 grep -v '^ *+' conftest.er1 >conftest.err
9111 rm -f conftest.er1
9112 cat conftest.err >&5
9113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9114 (exit $ac_status); } &&
9115 { ac_try='test -z "$ac_c_werror_flag"
9116 || test ! -s conftest.err'
9117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9118 (eval $ac_try) 2>&5
9119 ac_status=$?
9120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9121 (exit $ac_status); }; } &&
9122 { ac_try='test -s conftest$ac_exeext'
9123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9124 (eval $ac_try) 2>&5
9125 ac_status=$?
9126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9127 (exit $ac_status); }; }; then
9128 ac_cv_func_dlopen=yes
9129else
9130 echo "$as_me: failed program was:" >&5
9131sed 's/^/| /' conftest.$ac_ext >&5
9132
9133ac_cv_func_dlopen=no
9134fi
9135rm -f conftest.err conftest.$ac_objext \
9136 conftest$ac_exeext conftest.$ac_ext
9137fi
9138echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9139echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9140if test $ac_cv_func_dlopen = yes; then
9141 lt_cv_dlopen="dlopen"
9142else
9143 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9144echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9145if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9146 echo $ECHO_N "(cached) $ECHO_C" >&6
9147else
9148 ac_check_lib_save_LIBS=$LIBS
9149LIBS="-ldl $LIBS"
9150cat >conftest.$ac_ext <<_ACEOF
9151/* confdefs.h. */
9152_ACEOF
9153cat confdefs.h >>conftest.$ac_ext
9154cat >>conftest.$ac_ext <<_ACEOF
9155/* end confdefs.h. */
9156
9157/* Override any gcc2 internal prototype to avoid an error. */
9158#ifdef __cplusplus
9159extern "C"
9160#endif
9161/* We use char because int might match the return type of a gcc2
9162 builtin and then its argument prototype would still apply. */
9163char dlopen ();
9164int
9165main ()
9166{
9167dlopen ();
9168 ;
9169 return 0;
9170}
9171_ACEOF
9172rm -f conftest.$ac_objext conftest$ac_exeext
9173if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9174 (eval $ac_link) 2>conftest.er1
9175 ac_status=$?
9176 grep -v '^ *+' conftest.er1 >conftest.err
9177 rm -f conftest.er1
9178 cat conftest.err >&5
9179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9180 (exit $ac_status); } &&
9181 { ac_try='test -z "$ac_c_werror_flag"
9182 || test ! -s conftest.err'
9183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9184 (eval $ac_try) 2>&5
9185 ac_status=$?
9186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9187 (exit $ac_status); }; } &&
9188 { ac_try='test -s conftest$ac_exeext'
9189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9190 (eval $ac_try) 2>&5
9191 ac_status=$?
9192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9193 (exit $ac_status); }; }; then
9194 ac_cv_lib_dl_dlopen=yes
9195else
9196 echo "$as_me: failed program was:" >&5
9197sed 's/^/| /' conftest.$ac_ext >&5
9198
9199ac_cv_lib_dl_dlopen=no
9200fi
9201rm -f conftest.err conftest.$ac_objext \
9202 conftest$ac_exeext conftest.$ac_ext
9203LIBS=$ac_check_lib_save_LIBS
9204fi
9205echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9206echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9207if test $ac_cv_lib_dl_dlopen = yes; then
9208 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9209else
9210 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9211echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9212if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9213 echo $ECHO_N "(cached) $ECHO_C" >&6
9214else
9215 ac_check_lib_save_LIBS=$LIBS
9216LIBS="-lsvld $LIBS"
9217cat >conftest.$ac_ext <<_ACEOF
9218/* confdefs.h. */
9219_ACEOF
9220cat confdefs.h >>conftest.$ac_ext
9221cat >>conftest.$ac_ext <<_ACEOF
9222/* end confdefs.h. */
9223
9224/* Override any gcc2 internal prototype to avoid an error. */
9225#ifdef __cplusplus
9226extern "C"
9227#endif
9228/* We use char because int might match the return type of a gcc2
9229 builtin and then its argument prototype would still apply. */
9230char dlopen ();
9231int
9232main ()
9233{
9234dlopen ();
9235 ;
9236 return 0;
9237}
9238_ACEOF
9239rm -f conftest.$ac_objext conftest$ac_exeext
9240if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9241 (eval $ac_link) 2>conftest.er1
9242 ac_status=$?
9243 grep -v '^ *+' conftest.er1 >conftest.err
9244 rm -f conftest.er1
9245 cat conftest.err >&5
9246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9247 (exit $ac_status); } &&
9248 { ac_try='test -z "$ac_c_werror_flag"
9249 || test ! -s conftest.err'
9250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9251 (eval $ac_try) 2>&5
9252 ac_status=$?
9253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9254 (exit $ac_status); }; } &&
9255 { ac_try='test -s conftest$ac_exeext'
9256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9257 (eval $ac_try) 2>&5
9258 ac_status=$?
9259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9260 (exit $ac_status); }; }; then
9261 ac_cv_lib_svld_dlopen=yes
9262else
9263 echo "$as_me: failed program was:" >&5
9264sed 's/^/| /' conftest.$ac_ext >&5
9265
9266ac_cv_lib_svld_dlopen=no
9267fi
9268rm -f conftest.err conftest.$ac_objext \
9269 conftest$ac_exeext conftest.$ac_ext
9270LIBS=$ac_check_lib_save_LIBS
9271fi
9272echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9273echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9274if test $ac_cv_lib_svld_dlopen = yes; then
9275 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9276else
9277 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9278echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9279if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9280 echo $ECHO_N "(cached) $ECHO_C" >&6
9281else
9282 ac_check_lib_save_LIBS=$LIBS
9283LIBS="-ldld $LIBS"
9284cat >conftest.$ac_ext <<_ACEOF
9285/* confdefs.h. */
9286_ACEOF
9287cat confdefs.h >>conftest.$ac_ext
9288cat >>conftest.$ac_ext <<_ACEOF
9289/* end confdefs.h. */
9290
9291/* Override any gcc2 internal prototype to avoid an error. */
9292#ifdef __cplusplus
9293extern "C"
9294#endif
9295/* We use char because int might match the return type of a gcc2
9296 builtin and then its argument prototype would still apply. */
9297char dld_link ();
9298int
9299main ()
9300{
9301dld_link ();
9302 ;
9303 return 0;
9304}
9305_ACEOF
9306rm -f conftest.$ac_objext conftest$ac_exeext
9307if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9308 (eval $ac_link) 2>conftest.er1
9309 ac_status=$?
9310 grep -v '^ *+' conftest.er1 >conftest.err
9311 rm -f conftest.er1
9312 cat conftest.err >&5
9313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9314 (exit $ac_status); } &&
9315 { ac_try='test -z "$ac_c_werror_flag"
9316 || test ! -s conftest.err'
9317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9318 (eval $ac_try) 2>&5
9319 ac_status=$?
9320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9321 (exit $ac_status); }; } &&
9322 { ac_try='test -s conftest$ac_exeext'
9323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9324 (eval $ac_try) 2>&5
9325 ac_status=$?
9326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9327 (exit $ac_status); }; }; then
9328 ac_cv_lib_dld_dld_link=yes
9329else
9330 echo "$as_me: failed program was:" >&5
9331sed 's/^/| /' conftest.$ac_ext >&5
9332
9333ac_cv_lib_dld_dld_link=no
9334fi
9335rm -f conftest.err conftest.$ac_objext \
9336 conftest$ac_exeext conftest.$ac_ext
9337LIBS=$ac_check_lib_save_LIBS
9338fi
9339echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9340echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9341if test $ac_cv_lib_dld_dld_link = yes; then
9342 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9343fi
9344
9345
9346fi
9347
9348
9349fi
9350
9351
9352fi
9353
9354
9355fi
9356
9357
9358fi
9359
9360 ;;
9361 esac
9362
9363 if test "x$lt_cv_dlopen" != xno; then
9364 enable_dlopen=yes
9365 else
9366 enable_dlopen=no
9367 fi
9368
9369 case $lt_cv_dlopen in
9370 dlopen)
9371 save_CPPFLAGS="$CPPFLAGS"
9372 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9373
9374 save_LDFLAGS="$LDFLAGS"
9375 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9376
9377 save_LIBS="$LIBS"
9378 LIBS="$lt_cv_dlopen_libs $LIBS"
9379
9380 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9381echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9382if test "${lt_cv_dlopen_self+set}" = set; then
9383 echo $ECHO_N "(cached) $ECHO_C" >&6
9384else
9385 if test "$cross_compiling" = yes; then :
9386 lt_cv_dlopen_self=cross
9387else
9388 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9389 lt_status=$lt_dlunknown
9390 cat > conftest.$ac_ext <<EOF
5e9b5d83 9391#line 9391 "configure"
bf9f3bac 9392#include "confdefs.h"
9393
9394#if HAVE_DLFCN_H
9395#include <dlfcn.h>
9396#endif
9397
9398#include <stdio.h>
9399
9400#ifdef RTLD_GLOBAL
9401# define LT_DLGLOBAL RTLD_GLOBAL
9402#else
9403# ifdef DL_GLOBAL
9404# define LT_DLGLOBAL DL_GLOBAL
9405# else
9406# define LT_DLGLOBAL 0
9407# endif
9408#endif
9409
9410/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9411 find out it does not work in some platform. */
9412#ifndef LT_DLLAZY_OR_NOW
9413# ifdef RTLD_LAZY
9414# define LT_DLLAZY_OR_NOW RTLD_LAZY
9415# else
9416# ifdef DL_LAZY
9417# define LT_DLLAZY_OR_NOW DL_LAZY
9418# else
9419# ifdef RTLD_NOW
9420# define LT_DLLAZY_OR_NOW RTLD_NOW
9421# else
9422# ifdef DL_NOW
9423# define LT_DLLAZY_OR_NOW DL_NOW
9424# else
9425# define LT_DLLAZY_OR_NOW 0
9426# endif
9427# endif
9428# endif
9429# endif
9430#endif
9431
9432#ifdef __cplusplus
9433extern "C" void exit (int);
9434#endif
9435
9436void fnord() { int i=42;}
9437int main ()
9438{
9439 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9440 int status = $lt_dlunknown;
9441
9442 if (self)
9443 {
9444 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9445 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9446 /* dlclose (self); */
9447 }
9448 else
9449 puts (dlerror ());
9450
9451 exit (status);
9452}
9453EOF
9454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9455 (eval $ac_link) 2>&5
9456 ac_status=$?
9457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9458 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9459 (./conftest; exit; ) >&5 2>/dev/null
9460 lt_status=$?
9461 case x$lt_status in
9462 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9463 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9464 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9465 esac
9466 else :
9467 # compilation failed
9468 lt_cv_dlopen_self=no
9469 fi
9470fi
9471rm -fr conftest*
9472
9473
9474fi
9475echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9476echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9477
9478 if test "x$lt_cv_dlopen_self" = xyes; then
9479 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9480 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9481echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9482if test "${lt_cv_dlopen_self_static+set}" = set; then
9483 echo $ECHO_N "(cached) $ECHO_C" >&6
9484else
9485 if test "$cross_compiling" = yes; then :
9486 lt_cv_dlopen_self_static=cross
9487else
9488 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9489 lt_status=$lt_dlunknown
9490 cat > conftest.$ac_ext <<EOF
5e9b5d83 9491#line 9491 "configure"
bf9f3bac 9492#include "confdefs.h"
9493
9494#if HAVE_DLFCN_H
9495#include <dlfcn.h>
9496#endif
9497
9498#include <stdio.h>
9499
9500#ifdef RTLD_GLOBAL
9501# define LT_DLGLOBAL RTLD_GLOBAL
9502#else
9503# ifdef DL_GLOBAL
9504# define LT_DLGLOBAL DL_GLOBAL
9505# else
9506# define LT_DLGLOBAL 0
9507# endif
9508#endif
9509
9510/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9511 find out it does not work in some platform. */
9512#ifndef LT_DLLAZY_OR_NOW
9513# ifdef RTLD_LAZY
9514# define LT_DLLAZY_OR_NOW RTLD_LAZY
9515# else
9516# ifdef DL_LAZY
9517# define LT_DLLAZY_OR_NOW DL_LAZY
9518# else
9519# ifdef RTLD_NOW
9520# define LT_DLLAZY_OR_NOW RTLD_NOW
9521# else
9522# ifdef DL_NOW
9523# define LT_DLLAZY_OR_NOW DL_NOW
9524# else
9525# define LT_DLLAZY_OR_NOW 0
9526# endif
9527# endif
9528# endif
9529# endif
9530#endif
9531
9532#ifdef __cplusplus
9533extern "C" void exit (int);
9534#endif
9535
9536void fnord() { int i=42;}
9537int main ()
9538{
9539 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9540 int status = $lt_dlunknown;
9541
9542 if (self)
9543 {
9544 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9545 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9546 /* dlclose (self); */
9547 }
9548 else
9549 puts (dlerror ());
9550
9551 exit (status);
9552}
9553EOF
9554 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9555 (eval $ac_link) 2>&5
9556 ac_status=$?
9557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9558 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9559 (./conftest; exit; ) >&5 2>/dev/null
9560 lt_status=$?
9561 case x$lt_status in
9562 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9563 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9564 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9565 esac
9566 else :
9567 # compilation failed
9568 lt_cv_dlopen_self_static=no
9569 fi
9570fi
9571rm -fr conftest*
9572
9573
9574fi
9575echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9576echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9577 fi
9578
9579 CPPFLAGS="$save_CPPFLAGS"
9580 LDFLAGS="$save_LDFLAGS"
9581 LIBS="$save_LIBS"
9582 ;;
9583 esac
9584
9585 case $lt_cv_dlopen_self in
9586 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9587 *) enable_dlopen_self=unknown ;;
9588 esac
9589
9590 case $lt_cv_dlopen_self_static in
9591 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9592 *) enable_dlopen_self_static=unknown ;;
9593 esac
9594fi
9595
9596
9597# Report which library types will actually be built
9598echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9599echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9600echo "$as_me:$LINENO: result: $can_build_shared" >&5
9601echo "${ECHO_T}$can_build_shared" >&6
9602
9603echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9604echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9605test "$can_build_shared" = "no" && enable_shared=no
9606
9607# On AIX, shared libraries and static libraries use the same namespace, and
9608# are all built from PIC.
9609case $host_os in
9610aix3*)
9611 test "$enable_shared" = yes && enable_static=no
9612 if test -n "$RANLIB"; then
9613 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9614 postinstall_cmds='$RANLIB $lib'
9615 fi
9616 ;;
9617
9618aix4* | aix5*)
9619 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9620 test "$enable_shared" = yes && enable_static=no
9621 fi
9622 ;;
9623esac
9624echo "$as_me:$LINENO: result: $enable_shared" >&5
9625echo "${ECHO_T}$enable_shared" >&6
9626
9627echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9628echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9629# Make sure either enable_shared or enable_static is yes.
9630test "$enable_shared" = yes || enable_static=yes
9631echo "$as_me:$LINENO: result: $enable_static" >&5
9632echo "${ECHO_T}$enable_static" >&6
9633
9634# The else clause should only fire when bootstrapping the
9635# libtool distribution, otherwise you forgot to ship ltmain.sh
9636# with your package, and you will get complaints that there are
9637# no rules to generate ltmain.sh.
9638if test -f "$ltmain"; then
9639 # See if we are running on zsh, and set the options which allow our commands through
9640 # without removal of \ escapes.
9641 if test -n "${ZSH_VERSION+set}" ; then
9642 setopt NO_GLOB_SUBST
9643 fi
9644 # Now quote all the things that may contain metacharacters while being
9645 # careful not to overquote the AC_SUBSTed values. We take copies of the
9646 # variables and quote the copies for generation of the libtool script.
9647 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9648 SED SHELL STRIP \
9649 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9650 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9651 deplibs_check_method reload_flag reload_cmds need_locks \
9652 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9653 lt_cv_sys_global_symbol_to_c_name_address \
9654 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9655 old_postinstall_cmds old_postuninstall_cmds \
9656 compiler \
9657 CC \
9658 LD \
9659 lt_prog_compiler_wl \
9660 lt_prog_compiler_pic \
9661 lt_prog_compiler_static \
9662 lt_prog_compiler_no_builtin_flag \
9663 export_dynamic_flag_spec \
9664 thread_safe_flag_spec \
9665 whole_archive_flag_spec \
9666 enable_shared_with_static_runtimes \
9667 old_archive_cmds \
9668 old_archive_from_new_cmds \
9669 predep_objects \
9670 postdep_objects \
9671 predeps \
9672 postdeps \
9673 compiler_lib_search_path \
9674 archive_cmds \
9675 archive_expsym_cmds \
9676 postinstall_cmds \
9677 postuninstall_cmds \
9678 old_archive_from_expsyms_cmds \
9679 allow_undefined_flag \
9680 no_undefined_flag \
9681 export_symbols_cmds \
9682 hardcode_libdir_flag_spec \
9683 hardcode_libdir_flag_spec_ld \
9684 hardcode_libdir_separator \
9685 hardcode_automatic \
9686 module_cmds \
9687 module_expsym_cmds \
9688 lt_cv_prog_compiler_c_o \
9689 exclude_expsyms \
9690 include_expsyms; do
9691
9692 case $var in
9693 old_archive_cmds | \
9694 old_archive_from_new_cmds | \
9695 archive_cmds | \
9696 archive_expsym_cmds | \
9697 module_cmds | \
9698 module_expsym_cmds | \
9699 old_archive_from_expsyms_cmds | \
9700 export_symbols_cmds | \
9701 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9702 postinstall_cmds | postuninstall_cmds | \
9703 old_postinstall_cmds | old_postuninstall_cmds | \
9704 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9705 # Double-quote double-evaled strings.
9706 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9707 ;;
9708 *)
9709 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9710 ;;
9711 esac
9712 done
9713
9714 case $lt_echo in
9715 *'\$0 --fallback-echo"')
9716 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9717 ;;
9718 esac
9719
9720cfgfile="${ofile}T"
9721 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9722 $rm -f "$cfgfile"
9723 { echo "$as_me:$LINENO: creating $ofile" >&5
9724echo "$as_me: creating $ofile" >&6;}
9725
9726 cat <<__EOF__ >> "$cfgfile"
9727#! $SHELL
9728
9729# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9730# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9731# NOTE: Changes made to this file will be lost: look at ltmain.sh.
9732#
9733# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9734# Free Software Foundation, Inc.
9735#
9736# This file is part of GNU Libtool:
9737# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9738#
9739# This program is free software; you can redistribute it and/or modify
9740# it under the terms of the GNU General Public License as published by
9741# the Free Software Foundation; either version 2 of the License, or
9742# (at your option) any later version.
9743#
9744# This program is distributed in the hope that it will be useful, but
9745# WITHOUT ANY WARRANTY; without even the implied warranty of
9746# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9747# General Public License for more details.
9748#
9749# You should have received a copy of the GNU General Public License
9750# along with this program; if not, write to the Free Software
9751# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9752#
9753# As a special exception to the GNU General Public License, if you
9754# distribute this file as part of a program that contains a
9755# configuration script generated by Autoconf, you may include it under
9756# the same distribution terms that you use for the rest of that program.
9757
9758# A sed program that does not truncate output.
9759SED=$lt_SED
9760
9761# Sed that helps us avoid accidentally triggering echo(1) options like -n.
9762Xsed="$SED -e 1s/^X//"
9763
9764# The HP-UX ksh and POSIX shell print the target directory to stdout
9765# if CDPATH is set.
9766(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9767
9768# The names of the tagged configurations supported by this script.
9769available_tags=
9770
9771# ### BEGIN LIBTOOL CONFIG
9772
9773# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9774
9775# Shell to use when invoking shell scripts.
9776SHELL=$lt_SHELL
9777
9778# Whether or not to build shared libraries.
9779build_libtool_libs=$enable_shared
9780
9781# Whether or not to build static libraries.
9782build_old_libs=$enable_static
9783
9784# Whether or not to add -lc for building shared libraries.
9785build_libtool_need_lc=$archive_cmds_need_lc
9786
9787# Whether or not to disallow shared libs when runtime libs are static
9788allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9789
9790# Whether or not to optimize for fast installation.
9791fast_install=$enable_fast_install
9792
9793# The host system.
9794host_alias=$host_alias
9795host=$host
9796host_os=$host_os
9797
9798# The build system.
9799build_alias=$build_alias
9800build=$build
9801build_os=$build_os
9802
9803# An echo program that does not interpret backslashes.
9804echo=$lt_echo
9805
9806# The archiver.
9807AR=$lt_AR
9808AR_FLAGS=$lt_AR_FLAGS
9809
9810# A C compiler.
9811LTCC=$lt_LTCC
9812
9813# LTCC compiler flags.
9814LTCFLAGS=$lt_LTCFLAGS
9815
9816# A language-specific compiler.
9817CC=$lt_compiler
9818
9819# Is the compiler the GNU C compiler?
9820with_gcc=$GCC
9821
9822gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
9823gcc_ver=\`gcc -dumpversion\`
9824
9825# An ERE matcher.
9826EGREP=$lt_EGREP
9827
9828# The linker used to build libraries.
9829LD=$lt_LD
9830
9831# Whether we need hard or soft links.
9832LN_S=$lt_LN_S
9833
9834# A BSD-compatible nm program.
9835NM=$lt_NM
9836
9837# A symbol stripping program
9838STRIP=$lt_STRIP
9839
9840# Used to examine libraries when file_magic_cmd begins "file"
9841MAGIC_CMD=$MAGIC_CMD
9842
9843# Used on cygwin: DLL creation program.
9844DLLTOOL="$DLLTOOL"
9845
9846# Used on cygwin: object dumper.
9847OBJDUMP="$OBJDUMP"
9848
9849# Used on cygwin: assembler.
9850AS="$AS"
9851
9852# The name of the directory that contains temporary libtool files.
9853objdir=$objdir
9854
9855# How to create reloadable object files.
9856reload_flag=$lt_reload_flag
9857reload_cmds=$lt_reload_cmds
9858
9859# How to pass a linker flag through the compiler.
9860wl=$lt_lt_prog_compiler_wl
9861
9862# Object file suffix (normally "o").
9863objext="$ac_objext"
9864
9865# Old archive suffix (normally "a").
9866libext="$libext"
9867
9868# Shared library suffix (normally ".so").
9869shrext_cmds='$shrext_cmds'
9870
9871# Executable file suffix (normally "").
9872exeext="$exeext"
9873
9874# Additional compiler flags for building library objects.
9875pic_flag=$lt_lt_prog_compiler_pic
9876pic_mode=$pic_mode
9877
9878# What is the maximum length of a command?
9879max_cmd_len=$lt_cv_sys_max_cmd_len
9880
9881# Does compiler simultaneously support -c and -o options?
9882compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9883
9884# Must we lock files when doing compilation?
9885need_locks=$lt_need_locks
9886
9887# Do we need the lib prefix for modules?
9888need_lib_prefix=$need_lib_prefix
9889
9890# Do we need a version for libraries?
9891need_version=$need_version
9892
9893# Whether dlopen is supported.
9894dlopen_support=$enable_dlopen
9895
9896# Whether dlopen of programs is supported.
9897dlopen_self=$enable_dlopen_self
9898
9899# Whether dlopen of statically linked programs is supported.
9900dlopen_self_static=$enable_dlopen_self_static
9901
9902# Compiler flag to prevent dynamic linking.
9903link_static_flag=$lt_lt_prog_compiler_static
9904
9905# Compiler flag to turn off builtin functions.
9906no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9907
9908# Compiler flag to allow reflexive dlopens.
9909export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9910
9911# Compiler flag to generate shared objects directly from archives.
9912whole_archive_flag_spec=$lt_whole_archive_flag_spec
9913
9914# Compiler flag to generate thread-safe objects.
9915thread_safe_flag_spec=$lt_thread_safe_flag_spec
9916
9917# Library versioning type.
9918version_type=$version_type
9919
9920# Format of library name prefix.
9921libname_spec=$lt_libname_spec
9922
9923# List of archive names. First name is the real one, the rest are links.
9924# The last name is the one that the linker finds with -lNAME.
9925library_names_spec=$lt_library_names_spec
9926
9927# The coded name of the library, if different from the real name.
9928soname_spec=$lt_soname_spec
9929
9930# Commands used to build and install an old-style archive.
9931RANLIB=$lt_RANLIB
9932old_archive_cmds=$lt_old_archive_cmds
9933old_postinstall_cmds=$lt_old_postinstall_cmds
9934old_postuninstall_cmds=$lt_old_postuninstall_cmds
9935
9936# Create an old-style archive from a shared archive.
9937old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9938
9939# Create a temporary old-style archive to link instead of a shared archive.
9940old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9941
9942# Commands used to build and install a shared archive.
9943archive_cmds=$lt_archive_cmds
9944archive_expsym_cmds=$lt_archive_expsym_cmds
9945postinstall_cmds=$lt_postinstall_cmds
9946postuninstall_cmds=$lt_postuninstall_cmds
9947
9948# Commands used to build a loadable module (assumed same as above if empty)
9949module_cmds=$lt_module_cmds
9950module_expsym_cmds=$lt_module_expsym_cmds
9951
9952# Commands to strip libraries.
9953old_striplib=$lt_old_striplib
9954striplib=$lt_striplib
9955
9956# Dependencies to place before the objects being linked to create a
9957# shared library.
9958predep_objects=\`echo $lt_predep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
9959
9960# Dependencies to place after the objects being linked to create a
9961# shared library.
9962postdep_objects=\`echo $lt_postdep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
9963
9964# Dependencies to place before the objects being linked to create a
9965# shared library.
9966predeps=$lt_predeps
9967
9968# Dependencies to place after the objects being linked to create a
9969# shared library.
9970postdeps=$lt_postdeps
9971
9972# The library search path used internally by the compiler when linking
9973# a shared library.
9974compiler_lib_search_path=\`echo $lt_compiler_lib_search_path | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
9975
9976# Method to check whether dependent libraries are shared objects.
9977deplibs_check_method=$lt_deplibs_check_method
9978
9979# Command to use when deplibs_check_method == file_magic.
9980file_magic_cmd=$lt_file_magic_cmd
9981
9982# Flag that allows shared libraries with undefined symbols to be built.
9983allow_undefined_flag=$lt_allow_undefined_flag
9984
9985# Flag that forces no undefined symbols.
9986no_undefined_flag=$lt_no_undefined_flag
9987
9988# Commands used to finish a libtool library installation in a directory.
9989finish_cmds=$lt_finish_cmds
9990
9991# Same as above, but a single script fragment to be evaled but not shown.
9992finish_eval=$lt_finish_eval
9993
9994# Take the output of nm and produce a listing of raw symbols and C names.
9995global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9996
9997# Transform the output of nm in a proper C declaration
9998global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9999
10000# Transform the output of nm in a C name address pair
10001global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10002
10003# This is the shared library runtime path variable.
10004runpath_var=$runpath_var
10005
10006# This is the shared library path variable.
10007shlibpath_var=$shlibpath_var
10008
10009# Is shlibpath searched before the hard-coded library search path?
10010shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10011
10012# How to hardcode a shared library path into an executable.
10013hardcode_action=$hardcode_action
10014
10015# Whether we should hardcode library paths into libraries.
10016hardcode_into_libs=$hardcode_into_libs
10017
10018# Flag to hardcode \$libdir into a binary during linking.
10019# This must work even if \$libdir does not exist.
10020hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10021
10022# If ld is used when linking, flag to hardcode \$libdir into
10023# a binary during linking. This must work even if \$libdir does
10024# not exist.
10025hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10026
10027# Whether we need a single -rpath flag with a separated argument.
10028hardcode_libdir_separator=$lt_hardcode_libdir_separator
10029
10030# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10031# resulting binary.
10032hardcode_direct=$hardcode_direct
10033
10034# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10035# resulting binary.
10036hardcode_minus_L=$hardcode_minus_L
10037
10038# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10039# the resulting binary.
10040hardcode_shlibpath_var=$hardcode_shlibpath_var
10041
10042# Set to yes if building a shared library automatically hardcodes DIR into the library
10043# and all subsequent libraries and executables linked against it.
10044hardcode_automatic=$hardcode_automatic
10045
10046# Variables whose values should be saved in libtool wrapper scripts and
10047# restored at relink time.
10048variables_saved_for_relink="$variables_saved_for_relink"
10049
10050# Whether libtool must link a program against all its dependency libraries.
10051link_all_deplibs=$link_all_deplibs
10052
10053# Compile-time system search path for libraries
10054sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
10055
10056# Run-time system search path for libraries
10057sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10058
10059# Fix the shell variable \$srcfile for the compiler.
10060fix_srcfile_path="$fix_srcfile_path"
10061
10062# Set to yes if exported symbols are required.
10063always_export_symbols=$always_export_symbols
10064
10065# The commands to list exported symbols.
10066export_symbols_cmds=$lt_export_symbols_cmds
10067
10068# The commands to extract the exported symbol list from a shared archive.
10069extract_expsyms_cmds=$lt_extract_expsyms_cmds
10070
10071# Symbols that should not be listed in the preloaded symbols.
10072exclude_expsyms=$lt_exclude_expsyms
10073
10074# Symbols that must always be exported.
10075include_expsyms=$lt_include_expsyms
10076
10077# ### END LIBTOOL CONFIG
10078
10079__EOF__
10080
10081
10082 case $host_os in
10083 aix3*)
10084 cat <<\EOF >> "$cfgfile"
10085
10086# AIX sometimes has problems with the GCC collect2 program. For some
10087# reason, if we set the COLLECT_NAMES environment variable, the problems
10088# vanish in a puff of smoke.
10089if test "X${COLLECT_NAMES+set}" != Xset; then
10090 COLLECT_NAMES=
10091 export COLLECT_NAMES
10092fi
10093EOF
10094 ;;
10095 esac
10096
10097 # We use sed instead of cat because bash on DJGPP gets confused if
10098 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10099 # text mode, it properly converts lines to CR/LF. This bash problem
10100 # is reportedly fixed, but why not run on old versions too?
10101 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10102
10103 mv -f "$cfgfile" "$ofile" || \
10104 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10105 chmod +x "$ofile"
10106
10107else
10108 # If there is no Makefile yet, we rely on a make rule to execute
10109 # `config.status --recheck' to rerun these tests and create the
10110 # libtool script then.
10111 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10112 if test -f "$ltmain_in"; then
10113 test -f Makefile && make "$ltmain"
10114 fi
10115fi
10116
10117
10118ac_ext=c
10119ac_cpp='$CPP $CPPFLAGS'
10120ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10121ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10122ac_compiler_gnu=$ac_cv_c_compiler_gnu
10123
10124CC="$lt_save_CC"
10125
10126
10127# Check whether --with-tags or --without-tags was given.
10128if test "${with_tags+set}" = set; then
10129 withval="$with_tags"
10130 tagnames="$withval"
10131fi;
10132
10133if test -f "$ltmain" && test -n "$tagnames"; then
10134 if test ! -f "${ofile}"; then
10135 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10136echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10137 fi
10138
10139 if test -z "$LTCC"; then
10140 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10141 if test -z "$LTCC"; then
10142 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10143echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10144 else
10145 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10146echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10147 fi
10148 fi
10149 if test -z "$LTCFLAGS"; then
10150 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10151 fi
10152
10153 # Extract list of available tagged configurations in $ofile.
10154 # Note that this assumes the entire list is on one line.
10155 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10156
10157 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10158 for tagname in $tagnames; do
10159 IFS="$lt_save_ifs"
10160 # Check whether tagname contains only valid characters
10161 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10162 "") ;;
10163 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10164echo "$as_me: error: invalid tag name: $tagname" >&2;}
10165 { (exit 1); exit 1; }; }
10166 ;;
10167 esac
10168
10169 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10170 then
10171 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10172echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10173 { (exit 1); exit 1; }; }
10174 fi
10175
10176 # Update the list of available tags.
10177 if test -n "$tagname"; then
10178 echo appending configuration tag \"$tagname\" to $ofile
10179
10180 case $tagname in
10181 CXX)
10182 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10183 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10184 (test "X$CXX" != "Xg++"))) ; then
10185 ac_ext=cc
10186ac_cpp='$CXXCPP $CPPFLAGS'
10187ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10188ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10189ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10190
10191
10192
10193
10194archive_cmds_need_lc_CXX=no
10195allow_undefined_flag_CXX=
10196always_export_symbols_CXX=no
10197archive_expsym_cmds_CXX=
10198export_dynamic_flag_spec_CXX=
10199hardcode_direct_CXX=no
10200hardcode_libdir_flag_spec_CXX=
10201hardcode_libdir_flag_spec_ld_CXX=
10202hardcode_libdir_separator_CXX=
10203hardcode_minus_L_CXX=no
10204hardcode_shlibpath_var_CXX=unsupported
10205hardcode_automatic_CXX=no
10206module_cmds_CXX=
10207module_expsym_cmds_CXX=
10208link_all_deplibs_CXX=unknown
10209old_archive_cmds_CXX=$old_archive_cmds
10210no_undefined_flag_CXX=
10211whole_archive_flag_spec_CXX=
10212enable_shared_with_static_runtimes_CXX=no
10213
10214# Dependencies to place before and after the object being linked:
10215predep_objects_CXX=
10216postdep_objects_CXX=
10217predeps_CXX=
10218postdeps_CXX=
10219compiler_lib_search_path_CXX=
10220
10221# Source file extension for C++ test sources.
10222ac_ext=cpp
10223
10224# Object file extension for compiled C++ test sources.
10225objext=o
10226objext_CXX=$objext
10227
10228# Code to be used in simple compile tests
10229lt_simple_compile_test_code="int some_variable = 0;\n"
10230
10231# Code to be used in simple link tests
10232lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10233
10234# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10235
10236# If no C compiler was specified, use CC.
10237LTCC=${LTCC-"$CC"}
10238
10239# If no C compiler flags were specified, use CFLAGS.
10240LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10241
10242# Allow CC to be a program name with arguments.
10243compiler=$CC
10244
10245
10246# save warnings/boilerplate of simple test code
10247ac_outfile=conftest.$ac_objext
10248printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10249eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10250_lt_compiler_boilerplate=`cat conftest.err`
10251$rm conftest*
10252
10253ac_outfile=conftest.$ac_objext
10254printf "$lt_simple_link_test_code" >conftest.$ac_ext
10255eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10256_lt_linker_boilerplate=`cat conftest.err`
10257$rm conftest*
10258
10259
10260# Allow CC to be a program name with arguments.
10261lt_save_CC=$CC
10262lt_save_LD=$LD
10263lt_save_GCC=$GCC
10264GCC=$GXX
10265lt_save_with_gnu_ld=$with_gnu_ld
10266lt_save_path_LD=$lt_cv_path_LD
10267if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10268 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10269else
10270 $as_unset lt_cv_prog_gnu_ld
10271fi
10272if test -n "${lt_cv_path_LDCXX+set}"; then
10273 lt_cv_path_LD=$lt_cv_path_LDCXX
10274else
10275 $as_unset lt_cv_path_LD
10276fi
10277test -z "${LDCXX+set}" || LD=$LDCXX
10278CC=${CXX-"c++"}
10279compiler=$CC
10280compiler_CXX=$CC
10281for cc_temp in $compiler""; do
10282 case $cc_temp in
10283 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10284 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10285 \-*) ;;
10286 *) break;;
10287 esac
10288done
10289cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10290
10291
10292# We don't want -fno-exception wen compiling C++ code, so set the
10293# no_builtin_flag separately
10294if test "$GXX" = yes; then
10295 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10296else
10297 lt_prog_compiler_no_builtin_flag_CXX=
10298fi
10299
10300if test "$GXX" = yes; then
10301 # Set up default GNU C++ configuration
10302
10303
10304# Check whether --with-gnu-ld or --without-gnu-ld was given.
10305if test "${with_gnu_ld+set}" = set; then
10306 withval="$with_gnu_ld"
10307 test "$withval" = no || with_gnu_ld=yes
10308else
10309 with_gnu_ld=no
10310fi;
10311ac_prog=ld
10312if test "$GCC" = yes; then
10313 # Check if gcc -print-prog-name=ld gives a path.
10314 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10315echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10316 case $host in
10317 *-*-mingw*)
10318 # gcc leaves a trailing carriage return which upsets mingw
10319 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10320 *)
10321 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10322 esac
10323 case $ac_prog in
10324 # Accept absolute paths.
10325 [\\/]* | ?:[\\/]*)
10326 re_direlt='/[^/][^/]*/\.\./'
10327 # Canonicalize the pathname of ld
10328 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10329 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10330 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10331 done
10332 test -z "$LD" && LD="$ac_prog"
10333 ;;
10334 "")
10335 # If it fails, then pretend we aren't using GCC.
10336 ac_prog=ld
10337 ;;
10338 *)
10339 # If it is relative, then search for the first ld in PATH.
10340 with_gnu_ld=unknown
10341 ;;
10342 esac
10343elif test "$with_gnu_ld" = yes; then
10344 echo "$as_me:$LINENO: checking for GNU ld" >&5
10345echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10346else
10347 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10348echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10349fi
10350if test "${lt_cv_path_LD+set}" = set; then
10351 echo $ECHO_N "(cached) $ECHO_C" >&6
10352else
10353 if test -z "$LD"; then
10354 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10355 for ac_dir in $PATH; do
10356 IFS="$lt_save_ifs"
10357 test -z "$ac_dir" && ac_dir=.
10358 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10359 lt_cv_path_LD="$ac_dir/$ac_prog"
10360 # Check to see if the program is GNU ld. I'd rather use --version,
10361 # but apparently some variants of GNU ld only accept -v.
10362 # Break only if it was the GNU/non-GNU ld that we prefer.
10363 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10364 *GNU* | *'with BFD'*)
10365 test "$with_gnu_ld" != no && break
10366 ;;
10367 *)
10368 test "$with_gnu_ld" != yes && break
10369 ;;
10370 esac
10371 fi
10372 done
10373 IFS="$lt_save_ifs"
10374else
10375 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10376fi
10377fi
10378
10379LD="$lt_cv_path_LD"
10380if test -n "$LD"; then
10381 echo "$as_me:$LINENO: result: $LD" >&5
10382echo "${ECHO_T}$LD" >&6
10383else
10384 echo "$as_me:$LINENO: result: no" >&5
10385echo "${ECHO_T}no" >&6
10386fi
10387test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10388echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10389 { (exit 1); exit 1; }; }
10390echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10391echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10392if test "${lt_cv_prog_gnu_ld+set}" = set; then
10393 echo $ECHO_N "(cached) $ECHO_C" >&6
10394else
10395 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10396case `$LD -v 2>&1 </dev/null` in
10397*GNU* | *'with BFD'*)
10398 lt_cv_prog_gnu_ld=yes
10399 ;;
10400*)
10401 lt_cv_prog_gnu_ld=no
10402 ;;
10403esac
10404fi
10405echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10406echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10407with_gnu_ld=$lt_cv_prog_gnu_ld
10408
10409
10410
10411 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10412 # archiving commands below assume that GNU ld is being used.
10413 if test "$with_gnu_ld" = yes; then
10414 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10415 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10416
10417 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10418 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10419
10420 # If archive_cmds runs LD, not CC, wlarc should be empty
10421 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10422 # investigate it a little bit more. (MM)
10423 wlarc='${wl}'
10424
10425 # ancient GNU ld didn't support --whole-archive et. al.
10426 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10427 grep 'no-whole-archive' > /dev/null; then
10428 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10429 else
10430 whole_archive_flag_spec_CXX=
10431 fi
10432 else
10433 with_gnu_ld=no
10434 wlarc=
10435
10436 # A generic and very simple default shared library creation
10437 # command for GNU C++ for the case where it uses the native
10438 # linker, instead of GNU ld. If possible, this setting should
10439 # overridden to take advantage of the native linker features on
10440 # the platform it is being used on.
10441 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10442 fi
10443
10444 # Commands to make compiler produce verbose output that lists
10445 # what "hidden" libraries, object files and flags are used when
10446 # linking a shared library.
10447 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10448
10449else
10450 GXX=no
10451 with_gnu_ld=no
10452 wlarc=
10453fi
10454
10455# PORTME: fill in a description of your system's C++ link characteristics
10456echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10457echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10458ld_shlibs_CXX=yes
10459case $host_os in
10460 aix3*)
10461 # FIXME: insert proper C++ library support
10462 ld_shlibs_CXX=no
10463 ;;
10464 aix4* | aix5*)
10465 if test "$host_cpu" = ia64; then
10466 # On IA64, the linker does run time linking by default, so we don't
10467 # have to do anything special.
10468 aix_use_runtimelinking=no
10469 exp_sym_flag='-Bexport'
10470 no_entry_flag=""
10471 else
10472 aix_use_runtimelinking=no
10473
10474 # Test if we are trying to use run time linking or normal
10475 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10476 # need to do runtime linking.
10477 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10478 for ld_flag in $LDFLAGS; do
10479 case $ld_flag in
10480 *-brtl*)
10481 aix_use_runtimelinking=yes
10482 break
10483 ;;
10484 esac
10485 done
10486 ;;
10487 esac
10488
10489 exp_sym_flag='-bexport'
10490 no_entry_flag='-bnoentry'
10491 fi
10492
10493 # When large executables or shared objects are built, AIX ld can
10494 # have problems creating the table of contents. If linking a library
10495 # or program results in "error TOC overflow" add -mminimal-toc to
10496 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10497 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10498
10499 archive_cmds_CXX=''
10500 hardcode_direct_CXX=yes
10501 hardcode_libdir_separator_CXX=':'
10502 link_all_deplibs_CXX=yes
10503
10504 if test "$GXX" = yes; then
10505 case $host_os in aix4.[012]|aix4.[012].*)
10506 # We only want to do this on AIX 4.2 and lower, the check
10507 # below for broken collect2 doesn't work under 4.3+
10508 collect2name=`${CC} -print-prog-name=collect2`
10509 if test -f "$collect2name" && \
10510 strings "$collect2name" | grep resolve_lib_name >/dev/null
10511 then
10512 # We have reworked collect2
10513 hardcode_direct_CXX=yes
10514 else
10515 # We have old collect2
10516 hardcode_direct_CXX=unsupported
10517 # It fails to find uninstalled libraries when the uninstalled
10518 # path is not listed in the libpath. Setting hardcode_minus_L
10519 # to unsupported forces relinking
10520 hardcode_minus_L_CXX=yes
10521 hardcode_libdir_flag_spec_CXX='-L$libdir'
10522 hardcode_libdir_separator_CXX=
10523 fi
10524 ;;
10525 esac
10526 shared_flag='-shared'
10527 if test "$aix_use_runtimelinking" = yes; then
10528 shared_flag="$shared_flag "'${wl}-G'
10529 fi
10530 else
10531 # not using gcc
10532 if test "$host_cpu" = ia64; then
10533 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10534 # chokes on -Wl,-G. The following line is correct:
10535 shared_flag='-G'
10536 else
10537 if test "$aix_use_runtimelinking" = yes; then
10538 shared_flag='${wl}-G'
10539 else
10540 shared_flag='${wl}-bM:SRE'
10541 fi
10542 fi
10543 fi
10544
10545 # It seems that -bexpall does not export symbols beginning with
10546 # underscore (_), so it is better to generate a list of symbols to export.
10547 always_export_symbols_CXX=yes
10548 if test "$aix_use_runtimelinking" = yes; then
10549 # Warning - without using the other runtime loading flags (-brtl),
10550 # -berok will link without error, but may produce a broken library.
10551 allow_undefined_flag_CXX='-berok'
10552 # Determine the default libpath from the value encoded in an empty executable.
10553 cat >conftest.$ac_ext <<_ACEOF
10554/* confdefs.h. */
10555_ACEOF
10556cat confdefs.h >>conftest.$ac_ext
10557cat >>conftest.$ac_ext <<_ACEOF
10558/* end confdefs.h. */
10559
10560int
10561main ()
10562{
10563
10564 ;
10565 return 0;
10566}
10567_ACEOF
10568rm -f conftest.$ac_objext conftest$ac_exeext
10569if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10570 (eval $ac_link) 2>conftest.er1
10571 ac_status=$?
10572 grep -v '^ *+' conftest.er1 >conftest.err
10573 rm -f conftest.er1
10574 cat conftest.err >&5
10575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10576 (exit $ac_status); } &&
10577 { ac_try='test -z "$ac_cxx_werror_flag"
10578 || test ! -s conftest.err'
10579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10580 (eval $ac_try) 2>&5
10581 ac_status=$?
10582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10583 (exit $ac_status); }; } &&
10584 { ac_try='test -s conftest$ac_exeext'
10585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10586 (eval $ac_try) 2>&5
10587 ac_status=$?
10588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10589 (exit $ac_status); }; }; then
10590
10591aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10592}'`
10593# Check for a 64-bit object if we didn't find anything.
10594if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10595}'`; fi
10596else
10597 echo "$as_me: failed program was:" >&5
10598sed 's/^/| /' conftest.$ac_ext >&5
10599
10600fi
10601rm -f conftest.err conftest.$ac_objext \
10602 conftest$ac_exeext conftest.$ac_ext
10603if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10604
10605 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10606
10607 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10608 else
10609 if test "$host_cpu" = ia64; then
10610 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10611 allow_undefined_flag_CXX="-z nodefs"
10612 archive_expsym_cmds_CXX="\$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"
10613 else
10614 # Determine the default libpath from the value encoded in an empty executable.
10615 cat >conftest.$ac_ext <<_ACEOF
10616/* confdefs.h. */
10617_ACEOF
10618cat confdefs.h >>conftest.$ac_ext
10619cat >>conftest.$ac_ext <<_ACEOF
10620/* end confdefs.h. */
10621
10622int
10623main ()
10624{
10625
10626 ;
10627 return 0;
10628}
10629_ACEOF
10630rm -f conftest.$ac_objext conftest$ac_exeext
10631if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10632 (eval $ac_link) 2>conftest.er1
10633 ac_status=$?
10634 grep -v '^ *+' conftest.er1 >conftest.err
10635 rm -f conftest.er1
10636 cat conftest.err >&5
10637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10638 (exit $ac_status); } &&
10639 { ac_try='test -z "$ac_cxx_werror_flag"
10640 || test ! -s conftest.err'
10641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10642 (eval $ac_try) 2>&5
10643 ac_status=$?
10644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10645 (exit $ac_status); }; } &&
10646 { ac_try='test -s conftest$ac_exeext'
10647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10648 (eval $ac_try) 2>&5
10649 ac_status=$?
10650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10651 (exit $ac_status); }; }; then
10652
10653aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10654}'`
10655# Check for a 64-bit object if we didn't find anything.
10656if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10657}'`; fi
10658else
10659 echo "$as_me: failed program was:" >&5
10660sed 's/^/| /' conftest.$ac_ext >&5
10661
10662fi
10663rm -f conftest.err conftest.$ac_objext \
10664 conftest$ac_exeext conftest.$ac_ext
10665if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10666
10667 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10668 # Warning - without using the other run time loading flags,
10669 # -berok will link without error, but may produce a broken library.
10670 no_undefined_flag_CXX=' ${wl}-bernotok'
10671 allow_undefined_flag_CXX=' ${wl}-berok'
10672 # Exported symbols can be pulled into shared objects from archives
10673 whole_archive_flag_spec_CXX='$convenience'
10674 archive_cmds_need_lc_CXX=yes
10675 # This is similar to how AIX traditionally builds its shared libraries.
10676 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10677 fi
10678 fi
10679 ;;
10680
10681 beos*)
10682 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10683 allow_undefined_flag_CXX=unsupported
10684 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10685 # support --undefined. This deserves some investigation. FIXME
10686 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10687 else
10688 ld_shlibs_CXX=no
10689 fi
10690 ;;
10691
10692 chorus*)
10693 case $cc_basename in
10694 *)
10695 # FIXME: insert proper C++ library support
10696 ld_shlibs_CXX=no
10697 ;;
10698 esac
10699 ;;
10700
10701 cygwin* | mingw* | pw32*)
10702 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10703 # as there is no search path for DLLs.
10704 hardcode_libdir_flag_spec_CXX='-L$libdir'
10705 allow_undefined_flag_CXX=unsupported
10706 always_export_symbols_CXX=no
10707 enable_shared_with_static_runtimes_CXX=yes
10708
10709 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10710 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10711 # If the export-symbols file already is a .def file (1st line
10712 # is EXPORTS), use it as is; otherwise, prepend...
10713 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10714 cp $export_symbols $output_objdir/$soname.def;
10715 else
10716 echo EXPORTS > $output_objdir/$soname.def;
10717 cat $export_symbols >> $output_objdir/$soname.def;
10718 fi~
10719 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10720 else
10721 ld_shlibs_CXX=no
10722 fi
10723 ;;
10724 darwin* | rhapsody*)
10725 case $host_os in
10726 rhapsody* | darwin1.[012])
10727 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10728 ;;
10729 *) # Darwin 1.3 on
10730 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10731 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10732 else
10733 case ${MACOSX_DEPLOYMENT_TARGET} in
10734 10.[012])
10735 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10736 ;;
10737 10.*)
10738 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10739 ;;
10740 esac
10741 fi
10742 ;;
10743 esac
10744 archive_cmds_need_lc_CXX=no
10745 hardcode_direct_CXX=no
10746 hardcode_automatic_CXX=yes
10747 hardcode_shlibpath_var_CXX=unsupported
10748 whole_archive_flag_spec_CXX=''
10749 link_all_deplibs_CXX=yes
10750
10751 if test "$GXX" = yes ; then
10752 lt_int_apple_cc_single_mod=no
10753 output_verbose_link_cmd='echo'
10754 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10755 lt_int_apple_cc_single_mod=yes
10756 fi
10757 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10758 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10759 else
10760 archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10761 fi
10762 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10763 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10764 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10765 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10766 else
10767 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10768 fi
10769 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10770 else
10771 case $cc_basename in
10772 xlc*)
10773 output_verbose_link_cmd='echo'
10774 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
10775 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10776 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10777 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10778 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10779 ;;
10780 *)
10781 ld_shlibs_CXX=no
10782 ;;
10783 esac
10784 fi
10785 ;;
10786
10787 dgux*)
10788 case $cc_basename in
10789 ec++*)
10790 # FIXME: insert proper C++ library support
10791 ld_shlibs_CXX=no
10792 ;;
10793 ghcx*)
10794 # Green Hills C++ Compiler
10795 # FIXME: insert proper C++ library support
10796 ld_shlibs_CXX=no
10797 ;;
10798 *)
10799 # FIXME: insert proper C++ library support
10800 ld_shlibs_CXX=no
10801 ;;
10802 esac
10803 ;;
10804 freebsd[12]*)
10805 # C++ shared libraries reported to be fairly broken before switch to ELF
10806 ld_shlibs_CXX=no
10807 ;;
10808 freebsd-elf*)
10809 archive_cmds_need_lc_CXX=no
10810 ;;
10811 freebsd* | kfreebsd*-gnu | dragonfly*)
10812 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10813 # conventions
10814 ld_shlibs_CXX=yes
10815 ;;
10816 gnu*)
10817 ;;
10818 hpux9*)
10819 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10820 hardcode_libdir_separator_CXX=:
10821 export_dynamic_flag_spec_CXX='${wl}-E'
10822 hardcode_direct_CXX=yes
10823 hardcode_minus_L_CXX=yes # Not in the search PATH,
10824 # but as the default
10825 # location of the library.
10826
10827 case $cc_basename in
10828 CC*)
10829 # FIXME: insert proper C++ library support
10830 ld_shlibs_CXX=no
10831 ;;
10832 aCC*)
10833 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10834 # Commands to make compiler produce verbose output that lists
10835 # what "hidden" libraries, object files and flags are used when
10836 # linking a shared library.
10837 #
10838 # There doesn't appear to be a way to prevent this compiler from
10839 # explicitly linking system object files so we need to strip them
10840 # from the output so that they don't get included in the library
10841 # dependencies.
10842 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10843 ;;
10844 *)
10845 if test "$GXX" = yes; then
10846 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10847 else
10848 # FIXME: insert proper C++ library support
10849 ld_shlibs_CXX=no
10850 fi
10851 ;;
10852 esac
10853 ;;
10854 hpux10*|hpux11*)
10855 if test $with_gnu_ld = no; then
10856 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10857 hardcode_libdir_separator_CXX=:
10858
10859 case $host_cpu in
10860 hppa*64*|ia64*)
10861 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10862 ;;
10863 *)
10864 export_dynamic_flag_spec_CXX='${wl}-E'
10865 ;;
10866 esac
10867 fi
10868 case $host_cpu in
10869 hppa*64*|ia64*)
10870 hardcode_direct_CXX=no
10871 hardcode_shlibpath_var_CXX=no
10872 ;;
10873 *)
10874 hardcode_direct_CXX=yes
10875 hardcode_minus_L_CXX=yes # Not in the search PATH,
10876 # but as the default
10877 # location of the library.
10878 ;;
10879 esac
10880
10881 case $cc_basename in
10882 CC*)
10883 # FIXME: insert proper C++ library support
10884 ld_shlibs_CXX=no
10885 ;;
10886 aCC*)
10887 case $host_cpu in
10888 hppa*64*)
10889 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10890 ;;
10891 ia64*)
10892 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10893 ;;
10894 *)
10895 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10896 ;;
10897 esac
10898 # Commands to make compiler produce verbose output that lists
10899 # what "hidden" libraries, object files and flags are used when
10900 # linking a shared library.
10901 #
10902 # There doesn't appear to be a way to prevent this compiler from
10903 # explicitly linking system object files so we need to strip them
10904 # from the output so that they don't get included in the library
10905 # dependencies.
10906 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10907 ;;
10908 *)
10909 if test "$GXX" = yes; then
10910 if test $with_gnu_ld = no; then
10911 case $host_cpu in
10912 hppa*64*)
10913 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10914 ;;
10915 ia64*)
10916 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10917 ;;
10918 *)
10919 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10920 ;;
10921 esac
10922 fi
10923 else
10924 # FIXME: insert proper C++ library support
10925 ld_shlibs_CXX=no
10926 fi
10927 ;;
10928 esac
10929 ;;
10930 interix3*)
10931 hardcode_direct_CXX=no
10932 hardcode_shlibpath_var_CXX=no
10933 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10934 export_dynamic_flag_spec_CXX='${wl}-E'
10935 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10936 # Instead, shared libraries are loaded at an image base (0x10000000 by
10937 # default) and relocated if they conflict, which is a slow very memory
10938 # consuming and fragmenting process. To avoid this, we pick a random,
10939 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10940 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10941 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10942 archive_expsym_cmds_CXX='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'
10943 ;;
10944 irix5* | irix6*)
10945 case $cc_basename in
10946 CC*)
10947 # SGI C++
10948 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10949
10950 # Archives containing C++ object files must be created using
10951 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10952 # necessary to make sure instantiated templates are included
10953 # in the archive.
10954 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10955 ;;
10956 *)
10957 if test "$GXX" = yes; then
10958 if test "$with_gnu_ld" = no; then
10959 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10960 else
10961 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
10962 fi
10963 fi
10964 link_all_deplibs_CXX=yes
10965 ;;
10966 esac
10967 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10968 hardcode_libdir_separator_CXX=:
10969 ;;
10970 linux*)
10971 case $cc_basename in
10972 KCC*)
10973 # Kuck and Associates, Inc. (KAI) C++ Compiler
10974
10975 # KCC will only create a shared library if the output file
10976 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10977 # to its proper name (with version) after linking.
10978 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
10979 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
10980 # Commands to make compiler produce verbose output that lists
10981 # what "hidden" libraries, object files and flags are used when
10982 # linking a shared library.
10983 #
10984 # There doesn't appear to be a way to prevent this compiler from
10985 # explicitly linking system object files so we need to strip them
10986 # from the output so that they don't get included in the library
10987 # dependencies.
10988 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10989
10990 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10991 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10992
10993 # Archives containing C++ object files must be created using
10994 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10995 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10996 ;;
10997 icpc*)
10998 # Intel C++
10999 with_gnu_ld=yes
11000 # version 8.0 and above of icpc choke on multiply defined symbols
11001 # if we add $predep_objects and $postdep_objects, however 7.1 and
11002 # earlier do not add the objects themselves.
11003 case `$CC -V 2>&1` in
11004 *"Version 7."*)
11005 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11006 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11007 ;;
11008 *) # Version 8.0 or newer
11009 tmp_idyn=
11010 case $host_cpu in
11011 ia64*) tmp_idyn=' -i_dynamic';;
11012 esac
11013 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11014 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11015 ;;
11016 esac
11017 archive_cmds_need_lc_CXX=no
11018 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11019 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11020 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11021 ;;
11022 pgCC*)
11023 # Portland Group C++ compiler
11024 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11025 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
11026
11027 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11028 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11029 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11030 ;;
11031 cxx*)
11032 # Compaq C++
11033 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11034 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
11035
11036 runpath_var=LD_RUN_PATH
11037 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11038 hardcode_libdir_separator_CXX=:
11039
11040 # Commands to make compiler produce verbose output that lists
11041 # what "hidden" libraries, object files and flags are used when
11042 # linking a shared library.
11043 #
11044 # There doesn't appear to be a way to prevent this compiler from
11045 # explicitly linking system object files so we need to strip them
11046 # from the output so that they don't get included in the library
11047 # dependencies.
11048 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11049 ;;
11050 esac
11051 ;;
11052 lynxos*)
11053 # FIXME: insert proper C++ library support
11054 ld_shlibs_CXX=no
11055 ;;
11056 m88k*)
11057 # FIXME: insert proper C++ library support
11058 ld_shlibs_CXX=no
11059 ;;
11060 mvs*)
11061 case $cc_basename in
11062 cxx*)
11063 # FIXME: insert proper C++ library support
11064 ld_shlibs_CXX=no
11065 ;;
11066 *)
11067 # FIXME: insert proper C++ library support
11068 ld_shlibs_CXX=no
11069 ;;
11070 esac
11071 ;;
11072 netbsd*)
11073 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11074 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11075 wlarc=
11076 hardcode_libdir_flag_spec_CXX='-R$libdir'
11077 hardcode_direct_CXX=yes
11078 hardcode_shlibpath_var_CXX=no
11079 fi
11080 # Workaround some broken pre-1.5 toolchains
11081 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11082 ;;
11083 openbsd2*)
11084 # C++ shared libraries are fairly broken
11085 ld_shlibs_CXX=no
11086 ;;
11087 openbsd*)
11088 hardcode_direct_CXX=yes
11089 hardcode_shlibpath_var_CXX=no
11090 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11091 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11092 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11093 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11094 export_dynamic_flag_spec_CXX='${wl}-E'
11095 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11096 fi
11097 output_verbose_link_cmd='echo'
11098 ;;
11099 osf3*)
11100 case $cc_basename in
11101 KCC*)
11102 # Kuck and Associates, Inc. (KAI) C++ Compiler
11103
11104 # KCC will only create a shared library if the output file
11105 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11106 # to its proper name (with version) after linking.
11107 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11108
11109 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11110 hardcode_libdir_separator_CXX=:
11111
11112 # Archives containing C++ object files must be created using
11113 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11114 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11115
11116 ;;
11117 RCC*)
11118 # Rational C++ 2.4.1
11119 # FIXME: insert proper C++ library support
11120 ld_shlibs_CXX=no
11121 ;;
11122 cxx*)
11123 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11124 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11125
11126 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11127 hardcode_libdir_separator_CXX=:
11128
11129 # Commands to make compiler produce verbose output that lists
11130 # what "hidden" libraries, object files and flags are used when
11131 # linking a shared library.
11132 #
11133 # There doesn't appear to be a way to prevent this compiler from
11134 # explicitly linking system object files so we need to strip them
11135 # from the output so that they don't get included in the library
11136 # dependencies.
11137 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11138 ;;
11139 *)
11140 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11141 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11142 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11143
11144 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11145 hardcode_libdir_separator_CXX=:
11146
11147 # Commands to make compiler produce verbose output that lists
11148 # what "hidden" libraries, object files and flags are used when
11149 # linking a shared library.
11150 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11151
11152 else
11153 # FIXME: insert proper C++ library support
11154 ld_shlibs_CXX=no
11155 fi
11156 ;;
11157 esac
11158 ;;
11159 osf4* | osf5*)
11160 case $cc_basename in
11161 KCC*)
11162 # Kuck and Associates, Inc. (KAI) C++ Compiler
11163
11164 # KCC will only create a shared library if the output file
11165 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11166 # to its proper name (with version) after linking.
11167 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11168
11169 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11170 hardcode_libdir_separator_CXX=:
11171
11172 # Archives containing C++ object files must be created using
11173 # the KAI C++ compiler.
11174 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11175 ;;
11176 RCC*)
11177 # Rational C++ 2.4.1
11178 # FIXME: insert proper C++ library support
11179 ld_shlibs_CXX=no
11180 ;;
11181 cxx*)
11182 allow_undefined_flag_CXX=' -expect_unresolved \*'
11183 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11184 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11185 echo "-hidden">> $lib.exp~
11186 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
11187 $rm $lib.exp'
11188
11189 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11190 hardcode_libdir_separator_CXX=:
11191
11192 # Commands to make compiler produce verbose output that lists
11193 # what "hidden" libraries, object files and flags are used when
11194 # linking a shared library.
11195 #
11196 # There doesn't appear to be a way to prevent this compiler from
11197 # explicitly linking system object files so we need to strip them
11198 # from the output so that they don't get included in the library
11199 # dependencies.
11200 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11201 ;;
11202 *)
11203 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11204 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11205 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11206
11207 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11208 hardcode_libdir_separator_CXX=:
11209
11210 # Commands to make compiler produce verbose output that lists
11211 # what "hidden" libraries, object files and flags are used when
11212 # linking a shared library.
11213 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11214
11215 else
11216 # FIXME: insert proper C++ library support
11217 ld_shlibs_CXX=no
11218 fi
11219 ;;
11220 esac
11221 ;;
11222 psos*)
11223 # FIXME: insert proper C++ library support
11224 ld_shlibs_CXX=no
11225 ;;
11226 sunos4*)
11227 case $cc_basename in
11228 CC*)
11229 # Sun C++ 4.x
11230 # FIXME: insert proper C++ library support
11231 ld_shlibs_CXX=no
11232 ;;
11233 lcc*)
11234 # Lucid
11235 # FIXME: insert proper C++ library support
11236 ld_shlibs_CXX=no
11237 ;;
11238 *)
11239 # FIXME: insert proper C++ library support
11240 ld_shlibs_CXX=no
11241 ;;
11242 esac
11243 ;;
11244 solaris*)
11245 case $cc_basename in
11246 CC*)
11247 # Sun C++ 4.2, 5.x and Centerline C++
11248 archive_cmds_need_lc_CXX=yes
11249 no_undefined_flag_CXX=' -zdefs'
11250 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11251 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11252 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11253
11254 hardcode_libdir_flag_spec_CXX='-R$libdir'
11255 hardcode_shlibpath_var_CXX=no
11256 case $host_os in
11257 solaris2.[0-5] | solaris2.[0-5].*) ;;
11258 *)
11259 # The C++ compiler is used as linker so we must use $wl
11260 # flag to pass the commands to the underlying system
11261 # linker. We must also pass each convience library through
11262 # to the system linker between allextract/defaultextract.
11263 # The C++ compiler will combine linker options so we
11264 # cannot just pass the convience library names through
11265 # without $wl.
11266 # Supported since Solaris 2.6 (maybe 2.5.1?)
11267 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
11268 ;;
11269 esac
11270 link_all_deplibs_CXX=yes
11271
11272 output_verbose_link_cmd='echo'
11273
11274 # Archives containing C++ object files must be created using
11275 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11276 # necessary to make sure instantiated templates are included
11277 # in the archive.
11278 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11279 ;;
11280 gcx*)
11281 # Green Hills C++ Compiler
11282 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11283
11284 # The C++ compiler must be used to create the archive.
11285 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11286 ;;
11287 *)
11288 # GNU C++ compiler with Solaris linker
11289 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11290 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11291 if $CC --version | grep -v '^2\.7' > /dev/null; then
11292 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11293 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11294 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11295
11296 # Commands to make compiler produce verbose output that lists
11297 # what "hidden" libraries, object files and flags are used when
11298 # linking a shared library.
11299 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11300 else
11301 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11302 # platform.
11303 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11304 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11305 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11306
11307 # Commands to make compiler produce verbose output that lists
11308 # what "hidden" libraries, object files and flags are used when
11309 # linking a shared library.
11310 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11311 fi
11312
11313 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11314 fi
11315 ;;
11316 esac
11317 ;;
11318 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11319 no_undefined_flag_CXX='${wl}-z,text'
11320 archive_cmds_need_lc_CXX=no
11321 hardcode_shlibpath_var_CXX=no
11322 runpath_var='LD_RUN_PATH'
11323
11324 case $cc_basename in
11325 CC*)
11326 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11327 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11328 ;;
11329 *)
11330 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11331 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11332 ;;
11333 esac
11334 ;;
11335 sysv5* | sco3.2v5* | sco5v6*)
11336 # Note: We can NOT use -z defs as we might desire, because we do not
11337 # link with -lc, and that would cause any symbols used from libc to
11338 # always be unresolved, which means just about no library would
11339 # ever link correctly. If we're not using GNU ld we use -z text
11340 # though, which does catch some bad symbols but isn't as heavy-handed
11341 # as -z defs.
11342 # For security reasons, it is highly recommended that you always
11343 # use absolute paths for naming shared libraries, and exclude the
11344 # DT_RUNPATH tag from executables and libraries. But doing so
11345 # requires that you compile everything twice, which is a pain.
11346 # So that behaviour is only enabled if SCOABSPATH is set to a
11347 # non-empty value in the environment. Most likely only useful for
11348 # creating official distributions of packages.
11349 # This is a hack until libtool officially supports absolute path
11350 # names for shared libraries.
11351 no_undefined_flag_CXX='${wl}-z,text'
11352 allow_undefined_flag_CXX='${wl}-z,nodefs'
11353 archive_cmds_need_lc_CXX=no
11354 hardcode_shlibpath_var_CXX=no
11355 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11356 hardcode_libdir_separator_CXX=':'
11357 link_all_deplibs_CXX=yes
11358 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11359 runpath_var='LD_RUN_PATH'
11360
11361 case $cc_basename in
11362 CC*)
11363 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11364 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11365 ;;
11366 *)
11367 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11368 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11369 ;;
11370 esac
11371 ;;
11372 tandem*)
11373 case $cc_basename in
11374 NCC*)
11375 # NonStop-UX NCC 3.20
11376 # FIXME: insert proper C++ library support
11377 ld_shlibs_CXX=no
11378 ;;
11379 *)
11380 # FIXME: insert proper C++ library support
11381 ld_shlibs_CXX=no
11382 ;;
11383 esac
11384 ;;
11385 vxworks*)
11386 # FIXME: insert proper C++ library support
11387 ld_shlibs_CXX=no
11388 ;;
11389 *)
11390 # FIXME: insert proper C++ library support
11391 ld_shlibs_CXX=no
11392 ;;
11393esac
11394echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11395echo "${ECHO_T}$ld_shlibs_CXX" >&6
11396test "$ld_shlibs_CXX" = no && can_build_shared=no
11397
11398GCC_CXX="$GXX"
11399LD_CXX="$LD"
11400
11401
11402cat > conftest.$ac_ext <<EOF
11403class Foo
11404{
11405public:
11406 Foo (void) { a = 0; }
11407private:
11408 int a;
11409};
11410EOF
11411
11412if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11413 (eval $ac_compile) 2>&5
11414 ac_status=$?
11415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11416 (exit $ac_status); }; then
11417 # Parse the compiler output and extract the necessary
11418 # objects, libraries and library flags.
11419
11420 # Sentinel used to keep track of whether or not we are before
11421 # the conftest object file.
11422 pre_test_object_deps_done=no
11423
11424 # The `*' in the case matches for architectures that use `case' in
11425 # $output_verbose_cmd can trigger glob expansion during the loop
11426 # eval without this substitution.
11427 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11428
11429 for p in `eval $output_verbose_link_cmd`; do
11430 case $p in
11431
11432 -L* | -R* | -l*)
11433 # Some compilers place space between "-{L,R}" and the path.
11434 # Remove the space.
11435 if test $p = "-L" \
11436 || test $p = "-R"; then
11437 prev=$p
11438 continue
11439 else
11440 prev=
11441 fi
11442
11443 if test "$pre_test_object_deps_done" = no; then
11444 case $p in
11445 -L* | -R*)
11446 # Internal compiler library paths should come after those
11447 # provided the user. The postdeps already come after the
11448 # user supplied libs so there is no need to process them.
11449 if test -z "$compiler_lib_search_path_CXX"; then
11450 compiler_lib_search_path_CXX="${prev}${p}"
11451 else
11452 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11453 fi
11454 ;;
11455 # The "-l" case would never come before the object being
11456 # linked, so don't bother handling this case.
11457 esac
11458 else
11459 if test -z "$postdeps_CXX"; then
11460 postdeps_CXX="${prev}${p}"
11461 else
11462 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11463 fi
11464 fi
11465 ;;
11466
11467 *.$objext)
11468 # This assumes that the test object file only shows up
11469 # once in the compiler output.
11470 if test "$p" = "conftest.$objext"; then
11471 pre_test_object_deps_done=yes
11472 continue
11473 fi
11474
11475 if test "$pre_test_object_deps_done" = no; then
11476 if test -z "$predep_objects_CXX"; then
11477 predep_objects_CXX="$p"
11478 else
11479 predep_objects_CXX="$predep_objects_CXX $p"
11480 fi
11481 else
11482 if test -z "$postdep_objects_CXX"; then
11483 postdep_objects_CXX="$p"
11484 else
11485 postdep_objects_CXX="$postdep_objects_CXX $p"
11486 fi
11487 fi
11488 ;;
11489
11490 *) ;; # Ignore the rest.
11491
11492 esac
11493 done
11494
11495 # Clean up.
11496 rm -f a.out a.exe
11497else
11498 echo "libtool.m4: error: problem compiling CXX test program"
11499fi
11500
11501$rm -f confest.$objext
11502
11503# PORTME: override above test on systems where it is broken
11504case $host_os in
11505interix3*)
11506 # Interix 3.5 installs completely hosed .la files for C++, so rather than
11507 # hack all around it, let's just trust "g++" to DTRT.
11508 predep_objects_CXX=
11509 postdep_objects_CXX=
11510 postdeps_CXX=
11511 ;;
11512
11513solaris*)
11514 case $cc_basename in
11515 CC*)
11516 # Adding this requires a known-good setup of shared libraries for
11517 # Sun compiler versions before 5.6, else PIC objects from an old
11518 # archive will be linked into the output, leading to subtle bugs.
11519 postdeps_CXX='-lCstd -lCrun'
11520 ;;
11521 esac
11522 ;;
11523esac
11524
11525
11526case " $postdeps_CXX " in
11527*" -lc "*) archive_cmds_need_lc_CXX=no ;;
11528esac
11529
11530lt_prog_compiler_wl_CXX=
11531lt_prog_compiler_pic_CXX=
11532lt_prog_compiler_static_CXX=
11533
11534echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11535echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11536
11537 # C++ specific cases for pic, static, wl, etc.
11538 if test "$GXX" = yes; then
11539 lt_prog_compiler_wl_CXX='-Wl,'
11540 lt_prog_compiler_static_CXX='-static'
11541
11542 case $host_os in
11543 aix*)
11544 # All AIX code is PIC.
11545 if test "$host_cpu" = ia64; then
11546 # AIX 5 now supports IA64 processor
11547 lt_prog_compiler_static_CXX='-Bstatic'
11548 fi
11549 ;;
11550 amigaos*)
11551 # FIXME: we need at least 68020 code to build shared libraries, but
11552 # adding the `-m68020' flag to GCC prevents building anything better,
11553 # like `-m68040'.
11554 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11555 ;;
11556 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11557 # PIC is the default for these OSes.
11558 ;;
11559 mingw* | os2* | pw32*)
11560 # This hack is so that the source file can tell whether it is being
11561 # built for inclusion in a dll (and should export symbols for example).
11562 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11563 ;;
11564 darwin* | rhapsody*)
11565 # PIC is the default on this platform
11566 # Common symbols not allowed in MH_DYLIB files
11567 lt_prog_compiler_pic_CXX='-fno-common'
11568 ;;
11569 *djgpp*)
11570 # DJGPP does not support shared libraries at all
11571 lt_prog_compiler_pic_CXX=
11572 ;;
11573 interix3*)
11574 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11575 # Instead, we relocate shared libraries at runtime.
11576 ;;
11577 sysv4*MP*)
11578 if test -d /usr/nec; then
11579 lt_prog_compiler_pic_CXX=-Kconform_pic
11580 fi
11581 ;;
11582 hpux*)
11583 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11584 # not for PA HP-UX.
11585 case $host_cpu in
11586 hppa*64*|ia64*)
11587 ;;
11588 *)
11589 lt_prog_compiler_pic_CXX='-fPIC'
11590 ;;
11591 esac
11592 ;;
11593 *)
11594 lt_prog_compiler_pic_CXX='-fPIC'
11595 ;;
11596 esac
11597 else
11598 case $host_os in
11599 aix4* | aix5*)
11600 # All AIX code is PIC.
11601 if test "$host_cpu" = ia64; then
11602 # AIX 5 now supports IA64 processor
11603 lt_prog_compiler_static_CXX='-Bstatic'
11604 else
11605 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11606 fi
11607 ;;
11608 chorus*)
11609 case $cc_basename in
11610 cxch68*)
11611 # Green Hills C++ Compiler
11612 # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
11613 ;;
11614 esac
11615 ;;
11616 darwin*)
11617 # PIC is the default on this platform
11618 # Common symbols not allowed in MH_DYLIB files
11619 case $cc_basename in
11620 xlc*)
11621 lt_prog_compiler_pic_CXX='-qnocommon'
11622 lt_prog_compiler_wl_CXX='-Wl,'
11623 ;;
11624 esac
11625 ;;
11626 dgux*)
11627 case $cc_basename in
11628 ec++*)
11629 lt_prog_compiler_pic_CXX='-KPIC'
11630 ;;
11631 ghcx*)
11632 # Green Hills C++ Compiler
11633 lt_prog_compiler_pic_CXX='-pic'
11634 ;;
11635 *)
11636 ;;
11637 esac
11638 ;;
11639 freebsd* | kfreebsd*-gnu | dragonfly*)
11640 # FreeBSD uses GNU C++
11641 ;;
11642 hpux9* | hpux10* | hpux11*)
11643 case $cc_basename in
11644 CC*)
11645 lt_prog_compiler_wl_CXX='-Wl,'
11646 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11647 if test "$host_cpu" != ia64; then
11648 lt_prog_compiler_pic_CXX='+Z'
11649 fi
11650 ;;
11651 aCC*)
11652 lt_prog_compiler_wl_CXX='-Wl,'
11653 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11654 case $host_cpu in
11655 hppa*64*|ia64*)
11656 # +Z the default
11657 ;;
11658 *)
11659 lt_prog_compiler_pic_CXX='+Z'
11660 ;;
11661 esac
11662 ;;
11663 *)
11664 ;;
11665 esac
11666 ;;
11667 interix*)
11668 # This is c89, which is MS Visual C++ (no shared libs)
11669 # Anyone wants to do a port?
11670 ;;
11671 irix5* | irix6* | nonstopux*)
11672 case $cc_basename in
11673 CC*)
11674 lt_prog_compiler_wl_CXX='-Wl,'
11675 lt_prog_compiler_static_CXX='-non_shared'
11676 # CC pic flag -KPIC is the default.
11677 ;;
11678 *)
11679 ;;
11680 esac
11681 ;;
11682 linux*)
11683 case $cc_basename in
11684 KCC*)
11685 # KAI C++ Compiler
11686 lt_prog_compiler_wl_CXX='--backend -Wl,'
11687 lt_prog_compiler_pic_CXX='-fPIC'
11688 ;;
11689 icpc* | ecpc*)
11690 # Intel C++
11691 lt_prog_compiler_wl_CXX='-Wl,'
11692 lt_prog_compiler_pic_CXX='-KPIC'
11693 lt_prog_compiler_static_CXX='-static'
11694 ;;
11695 pgCC*)
11696 # Portland Group C++ compiler.
11697 lt_prog_compiler_wl_CXX='-Wl,'
11698 lt_prog_compiler_pic_CXX='-fpic'
11699 lt_prog_compiler_static_CXX='-Bstatic'
11700 ;;
11701 cxx*)
11702 # Compaq C++
11703 # Make sure the PIC flag is empty. It appears that all Alpha
11704 # Linux and Compaq Tru64 Unix objects are PIC.
11705 lt_prog_compiler_pic_CXX=
11706 lt_prog_compiler_static_CXX='-non_shared'
11707 ;;
11708 *)
11709 ;;
11710 esac
11711 ;;
11712 lynxos*)
11713 ;;
11714 m88k*)
11715 ;;
11716 mvs*)
11717 case $cc_basename in
11718 cxx*)
11719 lt_prog_compiler_pic_CXX='-W c,exportall'
11720 ;;
11721 *)
11722 ;;
11723 esac
11724 ;;
11725 netbsd*)
11726 ;;
11727 osf3* | osf4* | osf5*)
11728 case $cc_basename in
11729 KCC*)
11730 lt_prog_compiler_wl_CXX='--backend -Wl,'
11731 ;;
11732 RCC*)
11733 # Rational C++ 2.4.1
11734 lt_prog_compiler_pic_CXX='-pic'
11735 ;;
11736 cxx*)
11737 # Digital/Compaq C++
11738 lt_prog_compiler_wl_CXX='-Wl,'
11739 # Make sure the PIC flag is empty. It appears that all Alpha
11740 # Linux and Compaq Tru64 Unix objects are PIC.
11741 lt_prog_compiler_pic_CXX=
11742 lt_prog_compiler_static_CXX='-non_shared'
11743 ;;
11744 *)
11745 ;;
11746 esac
11747 ;;
11748 psos*)
11749 ;;
11750 solaris*)
11751 case $cc_basename in
11752 CC*)
11753 # Sun C++ 4.2, 5.x and Centerline C++
11754 lt_prog_compiler_pic_CXX='-KPIC'
11755 lt_prog_compiler_static_CXX='-Bstatic'
11756 lt_prog_compiler_wl_CXX='-Qoption ld '
11757 ;;
11758 gcx*)
11759 # Green Hills C++ Compiler
11760 lt_prog_compiler_pic_CXX='-PIC'
11761 ;;
11762 *)
11763 ;;
11764 esac
11765 ;;
11766 sunos4*)
11767 case $cc_basename in
11768 CC*)
11769 # Sun C++ 4.x
11770 lt_prog_compiler_pic_CXX='-pic'
11771 lt_prog_compiler_static_CXX='-Bstatic'
11772 ;;
11773 lcc*)
11774 # Lucid
11775 lt_prog_compiler_pic_CXX='-pic'
11776 ;;
11777 *)
11778 ;;
11779 esac
11780 ;;
11781 tandem*)
11782 case $cc_basename in
11783 NCC*)
11784 # NonStop-UX NCC 3.20
11785 lt_prog_compiler_pic_CXX='-KPIC'
11786 ;;
11787 *)
11788 ;;
11789 esac
11790 ;;
11791 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11792 case $cc_basename in
11793 CC*)
11794 lt_prog_compiler_wl_CXX='-Wl,'
11795 lt_prog_compiler_pic_CXX='-KPIC'
11796 lt_prog_compiler_static_CXX='-Bstatic'
11797 ;;
11798 esac
11799 ;;
11800 vxworks*)
11801 ;;
11802 *)
11803 lt_prog_compiler_can_build_shared_CXX=no
11804 ;;
11805 esac
11806 fi
11807
11808echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11809echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11810
11811#
11812# Check to make sure the PIC flag actually works.
11813#
11814if test -n "$lt_prog_compiler_pic_CXX"; then
11815
11816echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11817echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11818if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11819 echo $ECHO_N "(cached) $ECHO_C" >&6
11820else
11821 lt_prog_compiler_pic_works_CXX=no
11822 ac_outfile=conftest.$ac_objext
11823 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11824 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11825 # Insert the option either (1) after the last *FLAGS variable, or
11826 # (2) before a word containing "conftest.", or (3) at the end.
11827 # Note that $ac_compile itself does not contain backslashes and begins
11828 # with a dollar sign (not a hyphen), so the echo should work correctly.
11829 # The option is referenced via a variable to avoid confusing sed.
11830 lt_compile=`echo "$ac_compile" | $SED \
11831 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11832 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11833 -e 's:$: $lt_compiler_flag:'`
5e9b5d83 11834 (eval echo "\"\$as_me:11834: $lt_compile\"" >&5)
bf9f3bac 11835 (eval "$lt_compile" 2>conftest.err)
11836 ac_status=$?
11837 cat conftest.err >&5
5e9b5d83 11838 echo "$as_me:11838: \$? = $ac_status" >&5
bf9f3bac 11839 if (exit $ac_status) && test -s "$ac_outfile"; then
11840 # The compiler can only warn and ignore the option if not recognized
11841 # So say no if there are warnings other than the usual output.
11842 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11843 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11844 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11845 lt_prog_compiler_pic_works_CXX=yes
11846 fi
11847 fi
11848 $rm conftest*
11849
11850fi
11851echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11852echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11853
11854if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11855 case $lt_prog_compiler_pic_CXX in
11856 "" | " "*) ;;
11857 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11858 esac
11859else
11860 lt_prog_compiler_pic_CXX=
11861 lt_prog_compiler_can_build_shared_CXX=no
11862fi
11863
11864fi
11865case $host_os in
11866 # For platforms which do not support PIC, -DPIC is meaningless:
11867 *djgpp*)
11868 lt_prog_compiler_pic_CXX=
11869 ;;
11870 *)
11871 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11872 ;;
11873esac
11874
11875#
11876# Check to make sure the static flag actually works.
11877#
11878wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
11879echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11880echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
11881if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
11882 echo $ECHO_N "(cached) $ECHO_C" >&6
11883else
11884 lt_prog_compiler_static_works_CXX=no
11885 save_LDFLAGS="$LDFLAGS"
11886 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11887 printf "$lt_simple_link_test_code" > conftest.$ac_ext
11888 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11889 # The linker can only warn and ignore the option if not recognized
11890 # So say no if there are warnings
11891 if test -s conftest.err; then
11892 # Append any errors to the config.log.
11893 cat conftest.err 1>&5
11894 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11895 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11896 if diff conftest.exp conftest.er2 >/dev/null; then
11897 lt_prog_compiler_static_works_CXX=yes
11898 fi
11899 else
11900 lt_prog_compiler_static_works_CXX=yes
11901 fi
11902 fi
11903 $rm conftest*
11904 LDFLAGS="$save_LDFLAGS"
11905
11906fi
11907echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
11908echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
11909
11910if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
11911 :
11912else
11913 lt_prog_compiler_static_CXX=
11914fi
11915
11916
11917echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11918echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11919if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11920 echo $ECHO_N "(cached) $ECHO_C" >&6
11921else
11922 lt_cv_prog_compiler_c_o_CXX=no
11923 $rm -r conftest 2>/dev/null
11924 mkdir conftest
11925 cd conftest
11926 mkdir out
11927 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11928
11929 lt_compiler_flag="-o out/conftest2.$ac_objext"
11930 # Insert the option either (1) after the last *FLAGS variable, or
11931 # (2) before a word containing "conftest.", or (3) at the end.
11932 # Note that $ac_compile itself does not contain backslashes and begins
11933 # with a dollar sign (not a hyphen), so the echo should work correctly.
11934 lt_compile=`echo "$ac_compile" | $SED \
11935 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11936 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11937 -e 's:$: $lt_compiler_flag:'`
5e9b5d83 11938 (eval echo "\"\$as_me:11938: $lt_compile\"" >&5)
bf9f3bac 11939 (eval "$lt_compile" 2>out/conftest.err)
11940 ac_status=$?
11941 cat out/conftest.err >&5
5e9b5d83 11942 echo "$as_me:11942: \$? = $ac_status" >&5
bf9f3bac 11943 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11944 then
11945 # The compiler can only warn and ignore the option if not recognized
11946 # So say no if there are warnings
11947 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11948 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11949 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11950 lt_cv_prog_compiler_c_o_CXX=yes
11951 fi
11952 fi
11953 chmod u+w . 2>&5
11954 $rm conftest*
11955 # SGI C++ compiler will create directory out/ii_files/ for
11956 # template instantiation
11957 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11958 $rm out/* && rmdir out
11959 cd ..
11960 rmdir conftest
11961 $rm conftest*
11962
11963fi
11964echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11965echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11966
11967
11968hard_links="nottested"
11969if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11970 # do not overwrite the value of need_locks provided by the user
11971 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11972echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11973 hard_links=yes
11974 $rm conftest*
11975 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11976 touch conftest.a
11977 ln conftest.a conftest.b 2>&5 || hard_links=no
11978 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11979 echo "$as_me:$LINENO: result: $hard_links" >&5
11980echo "${ECHO_T}$hard_links" >&6
11981 if test "$hard_links" = no; then
11982 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11983echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11984 need_locks=warn
11985 fi
11986else
11987 need_locks=no
11988fi
11989
11990echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11991echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11992
11993 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11994 case $host_os in
11995 aix4* | aix5*)
11996 # If we're using GNU nm, then we don't want the "-C" option.
11997 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11998 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11999 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
12000 else
12001 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
12002 fi
12003 ;;
12004 pw32*)
12005 export_symbols_cmds_CXX="$ltdll_cmds"
12006 ;;
12007 cygwin* | mingw*)
12008 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12009 ;;
12010 *)
12011 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12012 ;;
12013 esac
12014
12015echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12016echo "${ECHO_T}$ld_shlibs_CXX" >&6
12017test "$ld_shlibs_CXX" = no && can_build_shared=no
12018
12019#
12020# Do we need to explicitly link libc?
12021#
12022case "x$archive_cmds_need_lc_CXX" in
12023x|xyes)
12024 # Assume -lc should be added
12025 archive_cmds_need_lc_CXX=yes
12026
12027 if test "$enable_shared" = yes && test "$GCC" = yes; then
12028 case $archive_cmds_CXX in
12029 *'~'*)
12030 # FIXME: we may have to deal with multi-command sequences.
12031 ;;
12032 '$CC '*)
12033 # Test whether the compiler implicitly links with -lc since on some
12034 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12035 # to ld, don't add -lc before -lgcc.
12036 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12037echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12038 $rm conftest*
12039 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12040
12041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12042 (eval $ac_compile) 2>&5
12043 ac_status=$?
12044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12045 (exit $ac_status); } 2>conftest.err; then
12046 soname=conftest
12047 lib=conftest
12048 libobjs=conftest.$ac_objext
12049 deplibs=
12050 wl=$lt_prog_compiler_wl_CXX
12051 pic_flag=$lt_prog_compiler_pic_CXX
12052 compiler_flags=-v
12053 linker_flags=-v
12054 verstring=
12055 output_objdir=.
12056 libname=conftest
12057 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12058 allow_undefined_flag_CXX=
12059 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12060 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12061 ac_status=$?
12062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12063 (exit $ac_status); }
12064 then
12065 archive_cmds_need_lc_CXX=no
12066 else
12067 archive_cmds_need_lc_CXX=yes
12068 fi
12069 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12070 else
12071 cat conftest.err 1>&5
12072 fi
12073 $rm conftest*
12074 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12075echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
12076 ;;
12077 esac
12078 fi
12079 ;;
12080esac
12081
12082echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12083echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
12084library_names_spec=
12085libname_spec='lib$name'
12086soname_spec=
12087shrext_cmds=".so"
12088postinstall_cmds=
12089postuninstall_cmds=
12090finish_cmds=
12091finish_eval=
12092shlibpath_var=
12093shlibpath_overrides_runpath=unknown
12094version_type=none
12095dynamic_linker="$host_os ld.so"
12096sys_lib_dlsearch_path_spec="/lib /usr/lib"
12097if test "$GCC" = yes; then
12098 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12099 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12100 # if the path contains ";" then we assume it to be the separator
12101 # otherwise default to the standard path separator (i.e. ":") - it is
12102 # assumed that no part of a normal pathname contains ";" but that should
12103 # okay in the real world where ";" in dirpaths is itself problematic.
12104 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12105 else
12106 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12107 fi
12108else
12109 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12110fi
12111need_lib_prefix=unknown
12112hardcode_into_libs=no
12113
12114# when you set need_version to no, make sure it does not cause -set_version
12115# flags to be left without arguments
12116need_version=unknown
12117
12118case $host_os in
12119aix3*)
12120 version_type=linux
12121 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12122 shlibpath_var=LIBPATH
12123
12124 # AIX 3 has no versioning support, so we append a major version to the name.
12125 soname_spec='${libname}${release}${shared_ext}$major'
12126 ;;
12127
12128aix4* | aix5*)
12129 version_type=linux
12130 need_lib_prefix=no
12131 need_version=no
12132 hardcode_into_libs=yes
12133 if test "$host_cpu" = ia64; then
12134 # AIX 5 supports IA64
12135 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12136 shlibpath_var=LD_LIBRARY_PATH
12137 else
12138 # With GCC up to 2.95.x, collect2 would create an import file
12139 # for dependence libraries. The import file would start with
12140 # the line `#! .'. This would cause the generated library to
12141 # depend on `.', always an invalid library. This was fixed in
12142 # development snapshots of GCC prior to 3.0.
12143 case $host_os in
12144 aix4 | aix4.[01] | aix4.[01].*)
12145 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12146 echo ' yes '
12147 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12148 :
12149 else
12150 can_build_shared=no
12151 fi
12152 ;;
12153 esac
12154 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12155 # soname into executable. Probably we can add versioning support to
12156 # collect2, so additional links can be useful in future.
12157 if test "$aix_use_runtimelinking" = yes; then
12158 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12159 # instead of lib<name>.a to let people know that these are not
12160 # typical AIX shared libraries.
12161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12162 else
12163 # We preserve .a as extension for shared libraries through AIX4.2
12164 # and later when we are not doing run time linking.
12165 library_names_spec='${libname}${release}.a $libname.a'
12166 soname_spec='${libname}${release}${shared_ext}$major'
12167 fi
12168 shlibpath_var=LIBPATH
12169 fi
12170 ;;
12171
12172amigaos*)
12173 library_names_spec='$libname.ixlibrary $libname.a'
12174 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12175 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
12176 ;;
12177
12178beos*)
12179 library_names_spec='${libname}${shared_ext}'
12180 dynamic_linker="$host_os ld.so"
12181 shlibpath_var=LIBRARY_PATH
12182 ;;
12183
12184bsdi[45]*)
12185 version_type=linux
12186 need_version=no
12187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12188 soname_spec='${libname}${release}${shared_ext}$major'
12189 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12190 shlibpath_var=LD_LIBRARY_PATH
12191 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12192 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12193 # the default ld.so.conf also contains /usr/contrib/lib and
12194 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12195 # libtool to hard-code these into programs
12196 ;;
12197
12198cygwin* | mingw* | pw32*)
12199 version_type=windows
12200 shrext_cmds=".dll"
12201 need_version=no
12202 need_lib_prefix=no
12203
12204 case $GCC,$host_os in
12205 yes,cygwin* | yes,mingw* | yes,pw32*)
12206 library_names_spec='$libname.dll.a'
12207 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12208 postinstall_cmds='base_file=`basename \${file}`~
12209 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12210 dldir=$destdir/`dirname \$dlpath`~
12211 test -d \$dldir || mkdir -p \$dldir~
12212 $install_prog $dir/$dlname \$dldir/$dlname~
12213 chmod a+x \$dldir/$dlname'
12214 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12215 dlpath=$dir/\$dldll~
12216 $rm \$dlpath'
12217 shlibpath_overrides_runpath=yes
12218
12219 case $host_os in
12220 cygwin*)
12221 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12222 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12223 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12224 ;;
12225 mingw*)
12226 # MinGW DLLs use traditional 'lib' prefix
12227 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12228 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12229 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12230 # It is most probably a Windows format PATH printed by
12231 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12232 # path with ; separators, and with drive letters. We can handle the
12233 # drive letters (cygwin fileutils understands them), so leave them,
12234 # especially as we might pass files found there to a mingw objdump,
12235 # which wouldn't understand a cygwinified path. Ahh.
12236 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12237 else
12238 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12239 fi
12240 ;;
12241 pw32*)
12242 # pw32 DLLs use 'pw' prefix rather than 'lib'
12243 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12244 ;;
12245 esac
12246 ;;
12247
12248 *)
12249 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12250 ;;
12251 esac
12252 dynamic_linker='Win32 ld.exe'
12253 # FIXME: first we should search . and the directory the executable is in
12254 shlibpath_var=PATH
12255 ;;
12256
12257darwin* | rhapsody*)
12258 dynamic_linker="$host_os dyld"
12259 version_type=darwin
12260 need_lib_prefix=no
12261 need_version=no
12262 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12263 soname_spec='${libname}${release}${major}$shared_ext'
12264 shlibpath_overrides_runpath=yes
12265 shlibpath_var=DYLD_LIBRARY_PATH
12266 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12267 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12268 if test "$GCC" = yes; then
12269 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
12270 else
12271 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12272 fi
12273 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12274 ;;
12275
12276dgux*)
12277 version_type=linux
12278 need_lib_prefix=no
12279 need_version=no
12280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12281 soname_spec='${libname}${release}${shared_ext}$major'
12282 shlibpath_var=LD_LIBRARY_PATH
12283 ;;
12284
12285freebsd1*)
12286 dynamic_linker=no
12287 ;;
12288
12289kfreebsd*-gnu)
12290 version_type=linux
12291 need_lib_prefix=no
12292 need_version=no
12293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12294 soname_spec='${libname}${release}${shared_ext}$major'
12295 shlibpath_var=LD_LIBRARY_PATH
12296 shlibpath_overrides_runpath=no
12297 hardcode_into_libs=yes
12298 dynamic_linker='GNU ld.so'
12299 ;;
12300
12301freebsd* | dragonfly*)
12302 # DragonFly does not have aout. When/if they implement a new
12303 # versioning mechanism, adjust this.
12304 if test -x /usr/bin/objformat; then
12305 objformat=`/usr/bin/objformat`
12306 else
12307 case $host_os in
12308 freebsd[123]*) objformat=aout ;;
12309 *) objformat=elf ;;
12310 esac
12311 fi
12312 version_type=freebsd-$objformat
12313 case $version_type in
12314 freebsd-elf*)
12315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12316 need_version=no
12317 need_lib_prefix=no
12318 ;;
12319 freebsd-*)
12320 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12321 need_version=yes
12322 ;;
12323 esac
12324 shlibpath_var=LD_LIBRARY_PATH
12325 case $host_os in
12326 freebsd2*)
12327 shlibpath_overrides_runpath=yes
12328 ;;
12329 freebsd3.[01]* | freebsdelf3.[01]*)
12330 shlibpath_overrides_runpath=yes
12331 hardcode_into_libs=yes
12332 ;;
12333 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12334 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12335 shlibpath_overrides_runpath=no
12336 hardcode_into_libs=yes
12337 ;;
12338 freebsd*) # from 4.6 on
12339 shlibpath_overrides_runpath=yes
12340 hardcode_into_libs=yes
12341 ;;
12342 esac
12343 ;;
12344
12345gnu*)
12346 version_type=linux
12347 need_lib_prefix=no
12348 need_version=no
12349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12350 soname_spec='${libname}${release}${shared_ext}$major'
12351 shlibpath_var=LD_LIBRARY_PATH
12352 hardcode_into_libs=yes
12353 ;;
12354
12355hpux9* | hpux10* | hpux11*)
12356 # Give a soname corresponding to the major version so that dld.sl refuses to
12357 # link against other versions.
12358 version_type=sunos
12359 need_lib_prefix=no
12360 need_version=no
12361 case $host_cpu in
12362 ia64*)
12363 shrext_cmds='.so'
12364 hardcode_into_libs=yes
12365 dynamic_linker="$host_os dld.so"
12366 shlibpath_var=LD_LIBRARY_PATH
12367 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12369 soname_spec='${libname}${release}${shared_ext}$major'
12370 if test "X$HPUX_IA64_MODE" = X32; then
12371 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12372 else
12373 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12374 fi
12375 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12376 ;;
12377 hppa*64*)
12378 shrext_cmds='.sl'
12379 hardcode_into_libs=yes
12380 dynamic_linker="$host_os dld.sl"
12381 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12382 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12384 soname_spec='${libname}${release}${shared_ext}$major'
12385 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12386 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12387 ;;
12388 *)
12389 shrext_cmds='.sl'
12390 dynamic_linker="$host_os dld.sl"
12391 shlibpath_var=SHLIB_PATH
12392 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12394 soname_spec='${libname}${release}${shared_ext}$major'
12395 ;;
12396 esac
12397 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12398 postinstall_cmds='chmod 555 $lib'
12399 ;;
12400
12401interix3*)
12402 version_type=linux
12403 need_lib_prefix=no
12404 need_version=no
12405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12406 soname_spec='${libname}${release}${shared_ext}$major'
12407 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12408 shlibpath_var=LD_LIBRARY_PATH
12409 shlibpath_overrides_runpath=no
12410 hardcode_into_libs=yes
12411 ;;
12412
12413irix5* | irix6* | nonstopux*)
12414 case $host_os in
12415 nonstopux*) version_type=nonstopux ;;
12416 *)
12417 if test "$lt_cv_prog_gnu_ld" = yes; then
12418 version_type=linux
12419 else
12420 version_type=irix
12421 fi ;;
12422 esac
12423 need_lib_prefix=no
12424 need_version=no
12425 soname_spec='${libname}${release}${shared_ext}$major'
12426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12427 case $host_os in
12428 irix5* | nonstopux*)
12429 libsuff= shlibsuff=
12430 ;;
12431 *)
12432 case $LD in # libtool.m4 will add one of these switches to LD
12433 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12434 libsuff= shlibsuff= libmagic=32-bit;;
12435 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12436 libsuff=32 shlibsuff=N32 libmagic=N32;;
12437 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12438 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12439 *) libsuff= shlibsuff= libmagic=never-match;;
12440 esac
12441 ;;
12442 esac
12443 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12444 shlibpath_overrides_runpath=no
12445 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12446 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12447 hardcode_into_libs=yes
12448 ;;
12449
12450# No shared lib support for Linux oldld, aout, or coff.
12451linux*oldld* | linux*aout* | linux*coff*)
12452 dynamic_linker=no
12453 ;;
12454
12455# This must be Linux ELF.
12456linux*)
12457 version_type=linux
12458 need_lib_prefix=no
12459 need_version=no
12460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12461 soname_spec='${libname}${release}${shared_ext}$major'
12462 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12463 shlibpath_var=LD_LIBRARY_PATH
12464 shlibpath_overrides_runpath=no
12465 # This implies no fast_install, which is unacceptable.
12466 # Some rework will be needed to allow for fast_install
12467 # before this can be enabled.
12468 hardcode_into_libs=yes
12469
12470 # find out which ABI we are using
12471 libsuff=
12472 case "$host_cpu" in
12473 x86_64*|s390x*|powerpc64*)
5e9b5d83 12474 echo '#line 12474 "configure"' > conftest.$ac_ext
bf9f3bac 12475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12476 (eval $ac_compile) 2>&5
12477 ac_status=$?
12478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12479 (exit $ac_status); }; then
12480 case `/usr/bin/file conftest.$ac_objext` in
12481 *64-bit*)
12482 libsuff=64
12483 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
12484 ;;
12485 esac
12486 fi
12487 rm -rf conftest*
12488 ;;
12489 esac
12490
12491 # Append ld.so.conf contents to the search path
12492 if test -f /etc/ld.so.conf; then
12493 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/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12494 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
12495 fi
12496
12497 # We used to test for /lib/ld.so.1 and disable shared libraries on
12498 # powerpc, because MkLinux only supported shared libraries with the
12499 # GNU dynamic linker. Since this was broken with cross compilers,
12500 # most powerpc-linux boxes support dynamic linking these days and
12501 # people can always --disable-shared, the test was removed, and we
12502 # assume the GNU/Linux dynamic linker is in use.
12503 dynamic_linker='GNU/Linux ld.so'
12504 ;;
12505
12506knetbsd*-gnu)
12507 version_type=linux
12508 need_lib_prefix=no
12509 need_version=no
12510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12511 soname_spec='${libname}${release}${shared_ext}$major'
12512 shlibpath_var=LD_LIBRARY_PATH
12513 shlibpath_overrides_runpath=no
12514 hardcode_into_libs=yes
12515 dynamic_linker='GNU ld.so'
12516 ;;
12517
12518netbsd*)
12519 version_type=sunos
12520 need_lib_prefix=no
12521 need_version=no
12522 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12524 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12525 dynamic_linker='NetBSD (a.out) ld.so'
12526 else
12527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12528 soname_spec='${libname}${release}${shared_ext}$major'
12529 dynamic_linker='NetBSD ld.elf_so'
12530 fi
12531 shlibpath_var=LD_LIBRARY_PATH
12532 shlibpath_overrides_runpath=yes
12533 hardcode_into_libs=yes
12534 ;;
12535
12536newsos6)
12537 version_type=linux
12538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12539 shlibpath_var=LD_LIBRARY_PATH
12540 shlibpath_overrides_runpath=yes
12541 ;;
12542
12543nto-qnx*)
12544 version_type=linux
12545 need_lib_prefix=no
12546 need_version=no
12547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12548 soname_spec='${libname}${release}${shared_ext}$major'
12549 shlibpath_var=LD_LIBRARY_PATH
12550 shlibpath_overrides_runpath=yes
12551 ;;
12552
12553openbsd*)
12554 version_type=sunos
12555 sys_lib_dlsearch_path_spec="/usr/lib"
12556 need_lib_prefix=no
12557 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12558 case $host_os in
12559 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12560 *) need_version=no ;;
12561 esac
12562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12563 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12564 shlibpath_var=LD_LIBRARY_PATH
12565 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12566 case $host_os in
12567 openbsd2.[89] | openbsd2.[89].*)
12568 shlibpath_overrides_runpath=no
12569 ;;
12570 *)
12571 shlibpath_overrides_runpath=yes
12572 ;;
12573 esac
12574 else
12575 shlibpath_overrides_runpath=yes
12576 fi
12577 ;;
12578
12579os2*)
12580 libname_spec='$name'
12581 shrext_cmds=".dll"
12582 need_lib_prefix=no
12583 library_names_spec='$libname${shared_ext} $libname.a'
12584 dynamic_linker='OS/2 ld.exe'
12585 shlibpath_var=LIBPATH
12586 ;;
12587
12588osf3* | osf4* | osf5*)
12589 version_type=osf
12590 need_lib_prefix=no
12591 need_version=no
12592 soname_spec='${libname}${release}${shared_ext}$major'
12593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12594 shlibpath_var=LD_LIBRARY_PATH
12595 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12596 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12597 ;;
12598
12599solaris*)
12600 version_type=linux
12601 need_lib_prefix=no
12602 need_version=no
12603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12604 soname_spec='${libname}${release}${shared_ext}$major'
12605 shlibpath_var=LD_LIBRARY_PATH
12606 shlibpath_overrides_runpath=yes
12607 hardcode_into_libs=yes
12608 # ldd complains unless libraries are executable
12609 postinstall_cmds='chmod +x $lib'
12610 ;;
12611
12612sunos4*)
12613 version_type=sunos
12614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12615 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12616 shlibpath_var=LD_LIBRARY_PATH
12617 shlibpath_overrides_runpath=yes
12618 if test "$with_gnu_ld" = yes; then
12619 need_lib_prefix=no
12620 fi
12621 need_version=yes
12622 ;;
12623
12624sysv4 | sysv4.3*)
12625 version_type=linux
12626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12627 soname_spec='${libname}${release}${shared_ext}$major'
12628 shlibpath_var=LD_LIBRARY_PATH
12629 case $host_vendor in
12630 sni)
12631 shlibpath_overrides_runpath=no
12632 need_lib_prefix=no
12633 export_dynamic_flag_spec='${wl}-Blargedynsym'
12634 runpath_var=LD_RUN_PATH
12635 ;;
12636 siemens)
12637 need_lib_prefix=no
12638 ;;
12639 motorola)
12640 need_lib_prefix=no
12641 need_version=no
12642 shlibpath_overrides_runpath=no
12643 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12644 ;;
12645 esac
12646 ;;
12647
12648sysv4*MP*)
12649 if test -d /usr/nec ;then
12650 version_type=linux
12651 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12652 soname_spec='$libname${shared_ext}.$major'
12653 shlibpath_var=LD_LIBRARY_PATH
12654 fi
12655 ;;
12656
12657sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12658 version_type=freebsd-elf
12659 need_lib_prefix=no
12660 need_version=no
12661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12662 soname_spec='${libname}${release}${shared_ext}$major'
12663 shlibpath_var=LD_LIBRARY_PATH
12664 hardcode_into_libs=yes
12665 if test "$with_gnu_ld" = yes; then
12666 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12667 shlibpath_overrides_runpath=no
12668 else
12669 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12670 shlibpath_overrides_runpath=yes
12671 case $host_os in
12672 sco3.2v5*)
12673 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12674 ;;
12675 esac
12676 fi
12677 sys_lib_dlsearch_path_spec='/usr/lib'
12678 ;;
12679
12680uts4*)
12681 version_type=linux
12682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12683 soname_spec='${libname}${release}${shared_ext}$major'
12684 shlibpath_var=LD_LIBRARY_PATH
12685 ;;
12686
12687*)
12688 dynamic_linker=no
12689 ;;
12690esac
12691echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12692echo "${ECHO_T}$dynamic_linker" >&6
12693test "$dynamic_linker" = no && can_build_shared=no
12694
12695variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12696if test "$GCC" = yes; then
12697 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12698fi
12699
12700echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12701echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12702hardcode_action_CXX=
12703if test -n "$hardcode_libdir_flag_spec_CXX" || \
12704 test -n "$runpath_var_CXX" || \
12705 test "X$hardcode_automatic_CXX" = "Xyes" ; then
12706
12707 # We can hardcode non-existant directories.
12708 if test "$hardcode_direct_CXX" != no &&
12709 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12710 # have to relink, otherwise we might link with an installed library
12711 # when we should be linking with a yet-to-be-installed one
12712 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12713 test "$hardcode_minus_L_CXX" != no; then
12714 # Linking always hardcodes the temporary library directory.
12715 hardcode_action_CXX=relink
12716 else
12717 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12718 hardcode_action_CXX=immediate
12719 fi
12720else
12721 # We cannot hardcode anything, or else we can only hardcode existing
12722 # directories.
12723 hardcode_action_CXX=unsupported
12724fi
12725echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12726echo "${ECHO_T}$hardcode_action_CXX" >&6
12727
12728if test "$hardcode_action_CXX" = relink; then
12729 # Fast installation is not supported
12730 enable_fast_install=no
12731elif test "$shlibpath_overrides_runpath" = yes ||
12732 test "$enable_shared" = no; then
12733 # Fast installation is not necessary
12734 enable_fast_install=needless
12735fi
12736
12737
12738# The else clause should only fire when bootstrapping the
12739# libtool distribution, otherwise you forgot to ship ltmain.sh
12740# with your package, and you will get complaints that there are
12741# no rules to generate ltmain.sh.
12742if test -f "$ltmain"; then
12743 # See if we are running on zsh, and set the options which allow our commands through
12744 # without removal of \ escapes.
12745 if test -n "${ZSH_VERSION+set}" ; then
12746 setopt NO_GLOB_SUBST
12747 fi
12748 # Now quote all the things that may contain metacharacters while being
12749 # careful not to overquote the AC_SUBSTed values. We take copies of the
12750 # variables and quote the copies for generation of the libtool script.
12751 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12752 SED SHELL STRIP \
12753 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12754 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12755 deplibs_check_method reload_flag reload_cmds need_locks \
12756 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12757 lt_cv_sys_global_symbol_to_c_name_address \
12758 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12759 old_postinstall_cmds old_postuninstall_cmds \
12760 compiler_CXX \
12761 CC_CXX \
12762 LD_CXX \
12763 lt_prog_compiler_wl_CXX \
12764 lt_prog_compiler_pic_CXX \
12765 lt_prog_compiler_static_CXX \
12766 lt_prog_compiler_no_builtin_flag_CXX \
12767 export_dynamic_flag_spec_CXX \
12768 thread_safe_flag_spec_CXX \
12769 whole_archive_flag_spec_CXX \
12770 enable_shared_with_static_runtimes_CXX \
12771 old_archive_cmds_CXX \
12772 old_archive_from_new_cmds_CXX \
12773 predep_objects_CXX \
12774 postdep_objects_CXX \
12775 predeps_CXX \
12776 postdeps_CXX \
12777 compiler_lib_search_path_CXX \
12778 archive_cmds_CXX \
12779 archive_expsym_cmds_CXX \
12780 postinstall_cmds_CXX \
12781 postuninstall_cmds_CXX \
12782 old_archive_from_expsyms_cmds_CXX \
12783 allow_undefined_flag_CXX \
12784 no_undefined_flag_CXX \
12785 export_symbols_cmds_CXX \
12786 hardcode_libdir_flag_spec_CXX \
12787 hardcode_libdir_flag_spec_ld_CXX \
12788 hardcode_libdir_separator_CXX \
12789 hardcode_automatic_CXX \
12790 module_cmds_CXX \
12791 module_expsym_cmds_CXX \
12792 lt_cv_prog_compiler_c_o_CXX \
12793 exclude_expsyms_CXX \
12794 include_expsyms_CXX; do
12795
12796 case $var in
12797 old_archive_cmds_CXX | \
12798 old_archive_from_new_cmds_CXX | \
12799 archive_cmds_CXX | \
12800 archive_expsym_cmds_CXX | \
12801 module_cmds_CXX | \
12802 module_expsym_cmds_CXX | \
12803 old_archive_from_expsyms_cmds_CXX | \
12804 export_symbols_cmds_CXX | \
12805 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12806 postinstall_cmds | postuninstall_cmds | \
12807 old_postinstall_cmds | old_postuninstall_cmds | \
12808 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12809 # Double-quote double-evaled strings.
12810 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12811 ;;
12812 *)
12813 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12814 ;;
12815 esac
12816 done
12817
12818 case $lt_echo in
12819 *'\$0 --fallback-echo"')
12820 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12821 ;;
12822 esac
12823
12824cfgfile="$ofile"
12825
12826 cat <<__EOF__ >> "$cfgfile"
12827# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12828
12829# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12830
12831# Shell to use when invoking shell scripts.
12832SHELL=$lt_SHELL
12833
12834# Whether or not to build shared libraries.
12835build_libtool_libs=$enable_shared
12836
12837# Whether or not to build static libraries.
12838build_old_libs=$enable_static
12839
12840# Whether or not to add -lc for building shared libraries.
12841build_libtool_need_lc=$archive_cmds_need_lc_CXX
12842
12843# Whether or not to disallow shared libs when runtime libs are static
12844allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12845
12846# Whether or not to optimize for fast installation.
12847fast_install=$enable_fast_install
12848
12849# The host system.
12850host_alias=$host_alias
12851host=$host
12852host_os=$host_os
12853
12854# The build system.
12855build_alias=$build_alias
12856build=$build
12857build_os=$build_os
12858
12859# An echo program that does not interpret backslashes.
12860echo=$lt_echo
12861
12862# The archiver.
12863AR=$lt_AR
12864AR_FLAGS=$lt_AR_FLAGS
12865
12866# A C compiler.
12867LTCC=$lt_LTCC
12868
12869# LTCC compiler flags.
12870LTCFLAGS=$lt_LTCFLAGS
12871
12872# A language-specific compiler.
12873CC=$lt_compiler_CXX
12874
12875# Is the compiler the GNU C compiler?
12876with_gcc=$GCC_CXX
12877
12878gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
12879gcc_ver=\`gcc -dumpversion\`
12880
12881# An ERE matcher.
12882EGREP=$lt_EGREP
12883
12884# The linker used to build libraries.
12885LD=$lt_LD_CXX
12886
12887# Whether we need hard or soft links.
12888LN_S=$lt_LN_S
12889
12890# A BSD-compatible nm program.
12891NM=$lt_NM
12892
12893# A symbol stripping program
12894STRIP=$lt_STRIP
12895
12896# Used to examine libraries when file_magic_cmd begins "file"
12897MAGIC_CMD=$MAGIC_CMD
12898
12899# Used on cygwin: DLL creation program.
12900DLLTOOL="$DLLTOOL"
12901
12902# Used on cygwin: object dumper.
12903OBJDUMP="$OBJDUMP"
12904
12905# Used on cygwin: assembler.
12906AS="$AS"
12907
12908# The name of the directory that contains temporary libtool files.
12909objdir=$objdir
12910
12911# How to create reloadable object files.
12912reload_flag=$lt_reload_flag
12913reload_cmds=$lt_reload_cmds
12914
12915# How to pass a linker flag through the compiler.
12916wl=$lt_lt_prog_compiler_wl_CXX
12917
12918# Object file suffix (normally "o").
12919objext="$ac_objext"
12920
12921# Old archive suffix (normally "a").
12922libext="$libext"
12923
12924# Shared library suffix (normally ".so").
12925shrext_cmds='$shrext_cmds'
12926
12927# Executable file suffix (normally "").
12928exeext="$exeext"
12929
12930# Additional compiler flags for building library objects.
12931pic_flag=$lt_lt_prog_compiler_pic_CXX
12932pic_mode=$pic_mode
12933
12934# What is the maximum length of a command?
12935max_cmd_len=$lt_cv_sys_max_cmd_len
12936
12937# Does compiler simultaneously support -c and -o options?
12938compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12939
12940# Must we lock files when doing compilation?
12941need_locks=$lt_need_locks
12942
12943# Do we need the lib prefix for modules?
12944need_lib_prefix=$need_lib_prefix
12945
12946# Do we need a version for libraries?
12947need_version=$need_version
12948
12949# Whether dlopen is supported.
12950dlopen_support=$enable_dlopen
12951
12952# Whether dlopen of programs is supported.
12953dlopen_self=$enable_dlopen_self
12954
12955# Whether dlopen of statically linked programs is supported.
12956dlopen_self_static=$enable_dlopen_self_static
12957
12958# Compiler flag to prevent dynamic linking.
12959link_static_flag=$lt_lt_prog_compiler_static_CXX
12960
12961# Compiler flag to turn off builtin functions.
12962no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12963
12964# Compiler flag to allow reflexive dlopens.
12965export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12966
12967# Compiler flag to generate shared objects directly from archives.
12968whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12969
12970# Compiler flag to generate thread-safe objects.
12971thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12972
12973# Library versioning type.
12974version_type=$version_type
12975
12976# Format of library name prefix.
12977libname_spec=$lt_libname_spec
12978
12979# List of archive names. First name is the real one, the rest are links.
12980# The last name is the one that the linker finds with -lNAME.
12981library_names_spec=$lt_library_names_spec
12982
12983# The coded name of the library, if different from the real name.
12984soname_spec=$lt_soname_spec
12985
12986# Commands used to build and install an old-style archive.
12987RANLIB=$lt_RANLIB
12988old_archive_cmds=$lt_old_archive_cmds_CXX
12989old_postinstall_cmds=$lt_old_postinstall_cmds
12990old_postuninstall_cmds=$lt_old_postuninstall_cmds
12991
12992# Create an old-style archive from a shared archive.
12993old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12994
12995# Create a temporary old-style archive to link instead of a shared archive.
12996old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12997
12998# Commands used to build and install a shared archive.
12999archive_cmds=$lt_archive_cmds_CXX
13000archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13001postinstall_cmds=$lt_postinstall_cmds
13002postuninstall_cmds=$lt_postuninstall_cmds
13003
13004# Commands used to build a loadable module (assumed same as above if empty)
13005module_cmds=$lt_module_cmds_CXX
13006module_expsym_cmds=$lt_module_expsym_cmds_CXX
13007
13008# Commands to strip libraries.
13009old_striplib=$lt_old_striplib
13010striplib=$lt_striplib
13011
13012# Dependencies to place before the objects being linked to create a
13013# shared library.
13014predep_objects=\`echo $lt_predep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
13015
13016# Dependencies to place after the objects being linked to create a
13017# shared library.
13018postdep_objects=\`echo $lt_postdep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
13019
13020# Dependencies to place before the objects being linked to create a
13021# shared library.
13022predeps=$lt_predeps_CXX
13023
13024# Dependencies to place after the objects being linked to create a
13025# shared library.
13026postdeps=$lt_postdeps_CXX
13027
13028# The library search path used internally by the compiler when linking
13029# a shared library.
13030compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
13031
13032# Method to check whether dependent libraries are shared objects.
13033deplibs_check_method=$lt_deplibs_check_method
13034
13035# Command to use when deplibs_check_method == file_magic.
13036file_magic_cmd=$lt_file_magic_cmd
13037
13038# Flag that allows shared libraries with undefined symbols to be built.
13039allow_undefined_flag=$lt_allow_undefined_flag_CXX
13040
13041# Flag that forces no undefined symbols.
13042no_undefined_flag=$lt_no_undefined_flag_CXX
13043
13044# Commands used to finish a libtool library installation in a directory.
13045finish_cmds=$lt_finish_cmds
13046
13047# Same as above, but a single script fragment to be evaled but not shown.
13048finish_eval=$lt_finish_eval
13049
13050# Take the output of nm and produce a listing of raw symbols and C names.
13051global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13052
13053# Transform the output of nm in a proper C declaration
13054global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13055
13056# Transform the output of nm in a C name address pair
13057global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13058
13059# This is the shared library runtime path variable.
13060runpath_var=$runpath_var
13061
13062# This is the shared library path variable.
13063shlibpath_var=$shlibpath_var
13064
13065# Is shlibpath searched before the hard-coded library search path?
13066shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13067
13068# How to hardcode a shared library path into an executable.
13069hardcode_action=$hardcode_action_CXX
13070
13071# Whether we should hardcode library paths into libraries.
13072hardcode_into_libs=$hardcode_into_libs
13073
13074# Flag to hardcode \$libdir into a binary during linking.
13075# This must work even if \$libdir does not exist.
13076hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13077
13078# If ld is used when linking, flag to hardcode \$libdir into
13079# a binary during linking. This must work even if \$libdir does
13080# not exist.
13081hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13082
13083# Whether we need a single -rpath flag with a separated argument.
13084hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13085
13086# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13087# resulting binary.
13088hardcode_direct=$hardcode_direct_CXX
13089
13090# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13091# resulting binary.
13092hardcode_minus_L=$hardcode_minus_L_CXX
13093
13094# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13095# the resulting binary.
13096hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13097
13098# Set to yes if building a shared library automatically hardcodes DIR into the library
13099# and all subsequent libraries and executables linked against it.
13100hardcode_automatic=$hardcode_automatic_CXX
13101
13102# Variables whose values should be saved in libtool wrapper scripts and
13103# restored at relink time.
13104variables_saved_for_relink="$variables_saved_for_relink"
13105
13106# Whether libtool must link a program against all its dependency libraries.
13107link_all_deplibs=$link_all_deplibs_CXX
13108
13109# Compile-time system search path for libraries
13110sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
13111
13112# Run-time system search path for libraries
13113sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13114
13115# Fix the shell variable \$srcfile for the compiler.
13116fix_srcfile_path="$fix_srcfile_path_CXX"
13117
13118# Set to yes if exported symbols are required.
13119always_export_symbols=$always_export_symbols_CXX
13120
13121# The commands to list exported symbols.
13122export_symbols_cmds=$lt_export_symbols_cmds_CXX
13123
13124# The commands to extract the exported symbol list from a shared archive.
13125extract_expsyms_cmds=$lt_extract_expsyms_cmds
13126
13127# Symbols that should not be listed in the preloaded symbols.
13128exclude_expsyms=$lt_exclude_expsyms_CXX
13129
13130# Symbols that must always be exported.
13131include_expsyms=$lt_include_expsyms_CXX
13132
13133# ### END LIBTOOL TAG CONFIG: $tagname
13134
13135__EOF__
13136
13137
13138else
13139 # If there is no Makefile yet, we rely on a make rule to execute
13140 # `config.status --recheck' to rerun these tests and create the
13141 # libtool script then.
13142 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13143 if test -f "$ltmain_in"; then
13144 test -f Makefile && make "$ltmain"
13145 fi
13146fi
13147
13148
13149ac_ext=c
13150ac_cpp='$CPP $CPPFLAGS'
13151ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13152ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13153ac_compiler_gnu=$ac_cv_c_compiler_gnu
13154
13155CC=$lt_save_CC
13156LDCXX=$LD
13157LD=$lt_save_LD
13158GCC=$lt_save_GCC
13159with_gnu_ldcxx=$with_gnu_ld
13160with_gnu_ld=$lt_save_with_gnu_ld
13161lt_cv_path_LDCXX=$lt_cv_path_LD
13162lt_cv_path_LD=$lt_save_path_LD
13163lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13164lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13165
13166 else
13167 tagname=""
13168 fi
13169 ;;
13170
13171 F77)
13172 if test -n "$F77" && test "X$F77" != "Xno"; then
13173
13174ac_ext=f
13175ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13176ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13177ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13178
13179
13180archive_cmds_need_lc_F77=no
13181allow_undefined_flag_F77=
13182always_export_symbols_F77=no
13183archive_expsym_cmds_F77=
13184export_dynamic_flag_spec_F77=
13185hardcode_direct_F77=no
13186hardcode_libdir_flag_spec_F77=
13187hardcode_libdir_flag_spec_ld_F77=
13188hardcode_libdir_separator_F77=
13189hardcode_minus_L_F77=no
13190hardcode_automatic_F77=no
13191module_cmds_F77=
13192module_expsym_cmds_F77=
13193link_all_deplibs_F77=unknown
13194old_archive_cmds_F77=$old_archive_cmds
13195no_undefined_flag_F77=
13196whole_archive_flag_spec_F77=
13197enable_shared_with_static_runtimes_F77=no
13198
13199# Source file extension for f77 test sources.
13200ac_ext=f
13201
13202# Object file extension for compiled f77 test sources.
13203objext=o
13204objext_F77=$objext
13205
13206# Code to be used in simple compile tests
13207lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13208
13209# Code to be used in simple link tests
13210lt_simple_link_test_code=" program t\n end\n"
13211
13212# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13213
13214# If no C compiler was specified, use CC.
13215LTCC=${LTCC-"$CC"}
13216
13217# If no C compiler flags were specified, use CFLAGS.
13218LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13219
13220# Allow CC to be a program name with arguments.
13221compiler=$CC
13222
13223
13224# save warnings/boilerplate of simple test code
13225ac_outfile=conftest.$ac_objext
13226printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13227eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13228_lt_compiler_boilerplate=`cat conftest.err`
13229$rm conftest*
13230
13231ac_outfile=conftest.$ac_objext
13232printf "$lt_simple_link_test_code" >conftest.$ac_ext
13233eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13234_lt_linker_boilerplate=`cat conftest.err`
13235$rm conftest*
13236
13237
13238# Allow CC to be a program name with arguments.
13239lt_save_CC="$CC"
13240CC=${F77-"f77"}
13241compiler=$CC
13242compiler_F77=$CC
13243for cc_temp in $compiler""; do
13244 case $cc_temp in
13245 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13246 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13247 \-*) ;;
13248 *) break;;
13249 esac
13250done
13251cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13252
13253
13254echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13255echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13256echo "$as_me:$LINENO: result: $can_build_shared" >&5
13257echo "${ECHO_T}$can_build_shared" >&6
13258
13259echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13260echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13261test "$can_build_shared" = "no" && enable_shared=no
13262
13263# On AIX, shared libraries and static libraries use the same namespace, and
13264# are all built from PIC.
13265case $host_os in
13266aix3*)
13267 test "$enable_shared" = yes && enable_static=no
13268 if test -n "$RANLIB"; then
13269 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13270 postinstall_cmds='$RANLIB $lib'
13271 fi
13272 ;;
13273aix4* | aix5*)
13274 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13275 test "$enable_shared" = yes && enable_static=no
13276 fi
13277 ;;
13278esac
13279echo "$as_me:$LINENO: result: $enable_shared" >&5
13280echo "${ECHO_T}$enable_shared" >&6
13281
13282echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13283echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13284# Make sure either enable_shared or enable_static is yes.
13285test "$enable_shared" = yes || enable_static=yes
13286echo "$as_me:$LINENO: result: $enable_static" >&5
13287echo "${ECHO_T}$enable_static" >&6
13288
13289GCC_F77="$G77"
13290LD_F77="$LD"
13291
13292lt_prog_compiler_wl_F77=
13293lt_prog_compiler_pic_F77=
13294lt_prog_compiler_static_F77=
13295
13296echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13297echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13298
13299 if test "$GCC" = yes; then
13300 lt_prog_compiler_wl_F77='-Wl,'
13301 lt_prog_compiler_static_F77='-static'
13302
13303 case $host_os in
13304 aix*)
13305 # All AIX code is PIC.
13306 if test "$host_cpu" = ia64; then
13307 # AIX 5 now supports IA64 processor
13308 lt_prog_compiler_static_F77='-Bstatic'
13309 fi
13310 ;;
13311
13312 amigaos*)
13313 # FIXME: we need at least 68020 code to build shared libraries, but
13314 # adding the `-m68020' flag to GCC prevents building anything better,
13315 # like `-m68040'.
13316 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13317 ;;
13318
13319 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13320 # PIC is the default for these OSes.
13321 ;;
13322
13323 mingw* | pw32* | os2*)
13324 # This hack is so that the source file can tell whether it is being
13325 # built for inclusion in a dll (and should export symbols for example).
13326 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13327 ;;
13328
13329 darwin* | rhapsody*)
13330 # PIC is the default on this platform
13331 # Common symbols not allowed in MH_DYLIB files
13332 lt_prog_compiler_pic_F77='-fno-common'
13333 ;;
13334
13335 interix3*)
13336 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13337 # Instead, we relocate shared libraries at runtime.
13338 ;;
13339
13340 msdosdjgpp*)
13341 # Just because we use GCC doesn't mean we suddenly get shared libraries
13342 # on systems that don't support them.
13343 lt_prog_compiler_can_build_shared_F77=no
13344 enable_shared=no
13345 ;;
13346
13347 sysv4*MP*)
13348 if test -d /usr/nec; then
13349 lt_prog_compiler_pic_F77=-Kconform_pic
13350 fi
13351 ;;
13352
13353 hpux*)
13354 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13355 # not for PA HP-UX.
13356 case $host_cpu in
13357 hppa*64*|ia64*)
13358 # +Z the default
13359 ;;
13360 *)
13361 lt_prog_compiler_pic_F77='-fPIC'
13362 ;;
13363 esac
13364 ;;
13365
13366 *)
13367 lt_prog_compiler_pic_F77='-fPIC'
13368 ;;
13369 esac
13370 else
13371 # PORTME Check for flag to pass linker flags through the system compiler.
13372 case $host_os in
13373 aix*)
13374 lt_prog_compiler_wl_F77='-Wl,'
13375 if test "$host_cpu" = ia64; then
13376 # AIX 5 now supports IA64 processor
13377 lt_prog_compiler_static_F77='-Bstatic'
13378 else
13379 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13380 fi
13381 ;;
13382 darwin*)
13383 # PIC is the default on this platform
13384 # Common symbols not allowed in MH_DYLIB files
13385 case $cc_basename in
13386 xlc*)
13387 lt_prog_compiler_pic_F77='-qnocommon'
13388 lt_prog_compiler_wl_F77='-Wl,'
13389 ;;
13390 esac
13391 ;;
13392
13393 mingw* | pw32* | os2*)
13394 # This hack is so that the source file can tell whether it is being
13395 # built for inclusion in a dll (and should export symbols for example).
13396 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13397 ;;
13398
13399 hpux9* | hpux10* | hpux11*)
13400 lt_prog_compiler_wl_F77='-Wl,'
13401 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13402 # not for PA HP-UX.
13403 case $host_cpu in
13404 hppa*64*|ia64*)
13405 # +Z the default
13406 ;;
13407 *)
13408 lt_prog_compiler_pic_F77='+Z'
13409 ;;
13410 esac
13411 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13412 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13413 ;;
13414
13415 irix5* | irix6* | nonstopux*)
13416 lt_prog_compiler_wl_F77='-Wl,'
13417 # PIC (with -KPIC) is the default.
13418 lt_prog_compiler_static_F77='-non_shared'
13419 ;;
13420
13421 newsos6)
13422 lt_prog_compiler_pic_F77='-KPIC'
13423 lt_prog_compiler_static_F77='-Bstatic'
13424 ;;
13425
13426 linux*)
13427 case $cc_basename in
13428 icc* | ecc*)
13429 lt_prog_compiler_wl_F77='-Wl,'
13430 lt_prog_compiler_pic_F77='-KPIC'
13431 lt_prog_compiler_static_F77='-static'
13432 ;;
13433 pgcc* | pgf77* | pgf90* | pgf95*)
13434 # Portland Group compilers (*not* the Pentium gcc compiler,
13435 # which looks to be a dead project)
13436 lt_prog_compiler_wl_F77='-Wl,'
13437 lt_prog_compiler_pic_F77='-fpic'
13438 lt_prog_compiler_static_F77='-Bstatic'
13439 ;;
13440 ccc*)
13441 lt_prog_compiler_wl_F77='-Wl,'
13442 # All Alpha code is PIC.
13443 lt_prog_compiler_static_F77='-non_shared'
13444 ;;
13445 esac
13446 ;;
13447
13448 osf3* | osf4* | osf5*)
13449 lt_prog_compiler_wl_F77='-Wl,'
13450 # All OSF/1 code is PIC.
13451 lt_prog_compiler_static_F77='-non_shared'
13452 ;;
13453
13454 solaris*)
13455 lt_prog_compiler_pic_F77='-KPIC'
13456 lt_prog_compiler_static_F77='-Bstatic'
13457 case $cc_basename in
13458 f77* | f90* | f95*)
13459 lt_prog_compiler_wl_F77='-Qoption ld ';;
13460 *)
13461 lt_prog_compiler_wl_F77='-Wl,';;
13462 esac
13463 ;;
13464
13465 sunos4*)
13466 lt_prog_compiler_wl_F77='-Qoption ld '
13467 lt_prog_compiler_pic_F77='-PIC'
13468 lt_prog_compiler_static_F77='-Bstatic'
13469 ;;
13470
13471 sysv4 | sysv4.2uw2* | sysv4.3*)
13472 lt_prog_compiler_wl_F77='-Wl,'
13473 lt_prog_compiler_pic_F77='-KPIC'
13474 lt_prog_compiler_static_F77='-Bstatic'
13475 ;;
13476
13477 sysv4*MP*)
13478 if test -d /usr/nec ;then
13479 lt_prog_compiler_pic_F77='-Kconform_pic'
13480 lt_prog_compiler_static_F77='-Bstatic'
13481 fi
13482 ;;
13483
13484 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13485 lt_prog_compiler_wl_F77='-Wl,'
13486 lt_prog_compiler_pic_F77='-KPIC'
13487 lt_prog_compiler_static_F77='-Bstatic'
13488 ;;
13489
13490 unicos*)
13491 lt_prog_compiler_wl_F77='-Wl,'
13492 lt_prog_compiler_can_build_shared_F77=no
13493 ;;
13494
13495 uts4*)
13496 lt_prog_compiler_pic_F77='-pic'
13497 lt_prog_compiler_static_F77='-Bstatic'
13498 ;;
13499
13500 *)
13501 lt_prog_compiler_can_build_shared_F77=no
13502 ;;
13503 esac
13504 fi
13505
13506echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13507echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13508
13509#
13510# Check to make sure the PIC flag actually works.
13511#
13512if test -n "$lt_prog_compiler_pic_F77"; then
13513
13514echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13515echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13516if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13517 echo $ECHO_N "(cached) $ECHO_C" >&6
13518else
13519 lt_prog_compiler_pic_works_F77=no
13520 ac_outfile=conftest.$ac_objext
13521 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13522 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13523 # Insert the option either (1) after the last *FLAGS variable, or
13524 # (2) before a word containing "conftest.", or (3) at the end.
13525 # Note that $ac_compile itself does not contain backslashes and begins
13526 # with a dollar sign (not a hyphen), so the echo should work correctly.
13527 # The option is referenced via a variable to avoid confusing sed.
13528 lt_compile=`echo "$ac_compile" | $SED \
13529 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13530 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13531 -e 's:$: $lt_compiler_flag:'`
5e9b5d83 13532 (eval echo "\"\$as_me:13532: $lt_compile\"" >&5)
bf9f3bac 13533 (eval "$lt_compile" 2>conftest.err)
13534 ac_status=$?
13535 cat conftest.err >&5
5e9b5d83 13536 echo "$as_me:13536: \$? = $ac_status" >&5
bf9f3bac 13537 if (exit $ac_status) && test -s "$ac_outfile"; then
13538 # The compiler can only warn and ignore the option if not recognized
13539 # So say no if there are warnings other than the usual output.
13540 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13541 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13542 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13543 lt_prog_compiler_pic_works_F77=yes
13544 fi
13545 fi
13546 $rm conftest*
13547
13548fi
13549echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13550echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13551
13552if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13553 case $lt_prog_compiler_pic_F77 in
13554 "" | " "*) ;;
13555 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13556 esac
13557else
13558 lt_prog_compiler_pic_F77=
13559 lt_prog_compiler_can_build_shared_F77=no
13560fi
13561
13562fi
13563case $host_os in
13564 # For platforms which do not support PIC, -DPIC is meaningless:
13565 *djgpp*)
13566 lt_prog_compiler_pic_F77=
13567 ;;
13568 *)
13569 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13570 ;;
13571esac
13572
13573#
13574# Check to make sure the static flag actually works.
13575#
13576wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13577echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13578echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13579if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13580 echo $ECHO_N "(cached) $ECHO_C" >&6
13581else
13582 lt_prog_compiler_static_works_F77=no
13583 save_LDFLAGS="$LDFLAGS"
13584 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13585 printf "$lt_simple_link_test_code" > conftest.$ac_ext
13586 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13587 # The linker can only warn and ignore the option if not recognized
13588 # So say no if there are warnings
13589 if test -s conftest.err; then
13590 # Append any errors to the config.log.
13591 cat conftest.err 1>&5
13592 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13593 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13594 if diff conftest.exp conftest.er2 >/dev/null; then
13595 lt_prog_compiler_static_works_F77=yes
13596 fi
13597 else
13598 lt_prog_compiler_static_works_F77=yes
13599 fi
13600 fi
13601 $rm conftest*
13602 LDFLAGS="$save_LDFLAGS"
13603
13604fi
13605echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13606echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
13607
13608if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13609 :
13610else
13611 lt_prog_compiler_static_F77=
13612fi
13613
13614
13615echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13616echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13617if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13618 echo $ECHO_N "(cached) $ECHO_C" >&6
13619else
13620 lt_cv_prog_compiler_c_o_F77=no
13621 $rm -r conftest 2>/dev/null
13622 mkdir conftest
13623 cd conftest
13624 mkdir out
13625 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13626
13627 lt_compiler_flag="-o out/conftest2.$ac_objext"
13628 # Insert the option either (1) after the last *FLAGS variable, or
13629 # (2) before a word containing "conftest.", or (3) at the end.
13630 # Note that $ac_compile itself does not contain backslashes and begins
13631 # with a dollar sign (not a hyphen), so the echo should work correctly.
13632 lt_compile=`echo "$ac_compile" | $SED \
13633 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13634 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13635 -e 's:$: $lt_compiler_flag:'`
5e9b5d83 13636 (eval echo "\"\$as_me:13636: $lt_compile\"" >&5)
bf9f3bac 13637 (eval "$lt_compile" 2>out/conftest.err)
13638 ac_status=$?
13639 cat out/conftest.err >&5
5e9b5d83 13640 echo "$as_me:13640: \$? = $ac_status" >&5
bf9f3bac 13641 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13642 then
13643 # The compiler can only warn and ignore the option if not recognized
13644 # So say no if there are warnings
13645 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13646 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13647 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13648 lt_cv_prog_compiler_c_o_F77=yes
13649 fi
13650 fi
13651 chmod u+w . 2>&5
13652 $rm conftest*
13653 # SGI C++ compiler will create directory out/ii_files/ for
13654 # template instantiation
13655 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13656 $rm out/* && rmdir out
13657 cd ..
13658 rmdir conftest
13659 $rm conftest*
13660
13661fi
13662echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13663echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13664
13665
13666hard_links="nottested"
13667if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13668 # do not overwrite the value of need_locks provided by the user
13669 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13670echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13671 hard_links=yes
13672 $rm conftest*
13673 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13674 touch conftest.a
13675 ln conftest.a conftest.b 2>&5 || hard_links=no
13676 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13677 echo "$as_me:$LINENO: result: $hard_links" >&5
13678echo "${ECHO_T}$hard_links" >&6
13679 if test "$hard_links" = no; then
13680 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13681echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13682 need_locks=warn
13683 fi
13684else
13685 need_locks=no
13686fi
13687
13688echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13689echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13690
13691 runpath_var=
13692 allow_undefined_flag_F77=
13693 enable_shared_with_static_runtimes_F77=no
13694 archive_cmds_F77=
13695 archive_expsym_cmds_F77=
13696 old_archive_From_new_cmds_F77=
13697 old_archive_from_expsyms_cmds_F77=
13698 export_dynamic_flag_spec_F77=
13699 whole_archive_flag_spec_F77=
13700 thread_safe_flag_spec_F77=
13701 hardcode_libdir_flag_spec_F77=
13702 hardcode_libdir_flag_spec_ld_F77=
13703 hardcode_libdir_separator_F77=
13704 hardcode_direct_F77=no
13705 hardcode_minus_L_F77=no
13706 hardcode_shlibpath_var_F77=unsupported
13707 link_all_deplibs_F77=unknown
13708 hardcode_automatic_F77=no
13709 module_cmds_F77=
13710 module_expsym_cmds_F77=
13711 always_export_symbols_F77=no
13712 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13713 # include_expsyms should be a list of space-separated symbols to be *always*
13714 # included in the symbol list
13715 include_expsyms_F77=
13716 # exclude_expsyms can be an extended regexp of symbols to exclude
13717 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13718 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13719 # as well as any symbol that contains `d'.
13720 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13721 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13722 # platforms (ab)use it in PIC code, but their linkers get confused if
13723 # the symbol is explicitly referenced. Since portable code cannot
13724 # rely on this symbol name, it's probably fine to never include it in
13725 # preloaded symbol tables.
13726 extract_expsyms_cmds=
13727 # Just being paranoid about ensuring that cc_basename is set.
13728 for cc_temp in $compiler""; do
13729 case $cc_temp in
13730 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13731 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13732 \-*) ;;
13733 *) break;;
13734 esac
13735done
13736cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13737
13738 case $host_os in
13739 cygwin* | mingw* | pw32*)
13740 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13741 # When not using gcc, we currently assume that we are using
13742 # Microsoft Visual C++.
13743 if test "$GCC" != yes; then
13744 with_gnu_ld=no
13745 fi
13746 ;;
13747 interix*)
13748 # we just hope/assume this is gcc and not c89 (= MSVC++)
13749 with_gnu_ld=yes
13750 ;;
13751 openbsd*)
13752 with_gnu_ld=no
13753 ;;
13754 esac
13755
13756 ld_shlibs_F77=yes
13757 if test "$with_gnu_ld" = yes; then
13758 # If archive_cmds runs LD, not CC, wlarc should be empty
13759 wlarc='${wl}'
13760
13761 # Set some defaults for GNU ld with shared library support. These
13762 # are reset later if shared libraries are not supported. Putting them
13763 # here allows them to be overridden if necessary.
13764 runpath_var=LD_RUN_PATH
13765 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13766 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13767 # ancient GNU ld didn't support --whole-archive et. al.
13768 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13769 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13770 else
13771 whole_archive_flag_spec_F77=
13772 fi
13773 supports_anon_versioning=no
13774 case `$LD -v 2>/dev/null` in
13775 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13776 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13777 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13778 *\ 2.11.*) ;; # other 2.11 versions
13779 *) supports_anon_versioning=yes ;;
13780 esac
13781
13782 # See if GNU ld supports shared libraries.
13783 case $host_os in
13784 aix3* | aix4* | aix5*)
13785 # On AIX/PPC, the GNU linker is very broken
13786 if test "$host_cpu" != ia64; then
13787 ld_shlibs_F77=no
13788 cat <<EOF 1>&2
13789
13790*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13791*** to be unable to reliably create shared libraries on AIX.
13792*** Therefore, libtool is disabling shared libraries support. If you
13793*** really care for shared libraries, you may want to modify your PATH
13794*** so that a non-GNU linker is found, and then restart.
13795
13796EOF
13797 fi
13798 ;;
13799
13800 amigaos*)
13801 archive_cmds_F77='$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)'
13802 hardcode_libdir_flag_spec_F77='-L$libdir'
13803 hardcode_minus_L_F77=yes
13804
13805 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13806 # that the semantics of dynamic libraries on AmigaOS, at least up
13807 # to version 4, is to share data among multiple programs linked
13808 # with the same dynamic library. Since this doesn't match the
13809 # behavior of shared libraries on other platforms, we can't use
13810 # them.
13811 ld_shlibs_F77=no
13812 ;;
13813
13814 beos*)
13815 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13816 allow_undefined_flag_F77=unsupported
13817 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13818 # support --undefined. This deserves some investigation. FIXME
13819 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13820 else
13821 ld_shlibs_F77=no
13822 fi
13823 ;;
13824
13825 cygwin* | mingw* | pw32*)
13826 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13827 # as there is no search path for DLLs.
13828 hardcode_libdir_flag_spec_F77='-L$libdir'
13829 allow_undefined_flag_F77=unsupported
13830 always_export_symbols_F77=no
13831 enable_shared_with_static_runtimes_F77=yes
13832 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13833
13834 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13835 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13836 # If the export-symbols file already is a .def file (1st line
13837 # is EXPORTS), use it as is; otherwise, prepend...
13838 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13839 cp $export_symbols $output_objdir/$soname.def;
13840 else
13841 echo EXPORTS > $output_objdir/$soname.def;
13842 cat $export_symbols >> $output_objdir/$soname.def;
13843 fi~
13844 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13845 else
13846 ld_shlibs_F77=no
13847 fi
13848 ;;
13849
13850 interix3*)
13851 hardcode_direct_F77=no
13852 hardcode_shlibpath_var_F77=no
13853 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13854 export_dynamic_flag_spec_F77='${wl}-E'
13855 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13856 # Instead, shared libraries are loaded at an image base (0x10000000 by
13857 # default) and relocated if they conflict, which is a slow very memory
13858 # consuming and fragmenting process. To avoid this, we pick a random,
13859 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13860 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13861 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13862 archive_expsym_cmds_F77='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'
13863 ;;
13864
13865 linux*)
13866 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13867 tmp_addflag=
13868 case $cc_basename,$host_cpu in
13869 pgcc*) # Portland Group C compiler
13870 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13871 tmp_addflag=' $pic_flag'
13872 ;;
13873 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
13874 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13875 tmp_addflag=' $pic_flag -Mnomain' ;;
13876 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13877 tmp_addflag=' -i_dynamic' ;;
13878 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13879 tmp_addflag=' -i_dynamic -nofor_main' ;;
13880 ifc* | ifort*) # Intel Fortran compiler
13881 tmp_addflag=' -nofor_main' ;;
13882 esac
13883 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13884
13885 if test $supports_anon_versioning = yes; then
13886 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13887 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13888 $echo "local: *; };" >> $output_objdir/$libname.ver~
13889 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13890 fi
13891 else
13892 ld_shlibs_F77=no
13893 fi
13894 ;;
13895
13896 netbsd*)
13897 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13898 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13899 wlarc=
13900 else
13901 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13902 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13903 fi
13904 ;;
13905
13906 solaris*)
13907 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13908 ld_shlibs_F77=no
13909 cat <<EOF 1>&2
13910
13911*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13912*** create shared libraries on Solaris systems. Therefore, libtool
13913*** is disabling shared libraries support. We urge you to upgrade GNU
13914*** binutils to release 2.9.1 or newer. Another option is to modify
13915*** your PATH or compiler configuration so that the native linker is
13916*** used, and then restart.
13917
13918EOF
13919 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13920 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13921 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13922 else
13923 ld_shlibs_F77=no
13924 fi
13925 ;;
13926
13927 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13928 case `$LD -v 2>&1` in
13929 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13930 ld_shlibs_F77=no
13931 cat <<_LT_EOF 1>&2
13932
13933*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13934*** reliably create shared libraries on SCO systems. Therefore, libtool
13935*** is disabling shared libraries support. We urge you to upgrade GNU
13936*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13937*** your PATH or compiler configuration so that the native linker is
13938*** used, and then restart.
13939
13940_LT_EOF
13941 ;;
13942 *)
13943 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13944 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
13945 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
13946 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
13947 else
13948 ld_shlibs_F77=no
13949 fi
13950 ;;
13951 esac
13952 ;;
13953
13954 sunos4*)
13955 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13956 wlarc=
13957 hardcode_direct_F77=yes
13958 hardcode_shlibpath_var_F77=no
13959 ;;
13960
13961 *)
13962 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13963 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13964 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13965 else
13966 ld_shlibs_F77=no
13967 fi
13968 ;;
13969 esac
13970
13971 if test "$ld_shlibs_F77" = no; then
13972 runpath_var=
13973 hardcode_libdir_flag_spec_F77=
13974 export_dynamic_flag_spec_F77=
13975 whole_archive_flag_spec_F77=
13976 fi
13977 else
13978 # PORTME fill in a description of your system's linker (not GNU ld)
13979 case $host_os in
13980 aix3*)
13981 allow_undefined_flag_F77=unsupported
13982 always_export_symbols_F77=yes
13983 archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
13984 # Note: this linker hardcodes the directories in LIBPATH if there
13985 # are no directories specified by -L.
13986 hardcode_minus_L_F77=yes
13987 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13988 # Neither direct hardcoding nor static linking is supported with a
13989 # broken collect2.
13990 hardcode_direct_F77=unsupported
13991 fi
13992 ;;
13993
13994 aix4* | aix5*)
13995 if test "$host_cpu" = ia64; then
13996 # On IA64, the linker does run time linking by default, so we don't
13997 # have to do anything special.
13998 aix_use_runtimelinking=no
13999 exp_sym_flag='-Bexport'
14000 no_entry_flag=""
14001 else
14002 # If we're using GNU nm, then we don't want the "-C" option.
14003 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14004 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14005 export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14006 else
14007 export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14008 fi
14009 aix_use_runtimelinking=no
14010
14011 # Test if we are trying to use run time linking or normal
14012 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14013 # need to do runtime linking.
14014 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14015 for ld_flag in $LDFLAGS; do
14016 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14017 aix_use_runtimelinking=yes
14018 break
14019 fi
14020 done
14021 ;;
14022 esac
14023
14024 exp_sym_flag='-bexport'
14025 no_entry_flag='-bnoentry'
14026 fi
14027
14028 # When large executables or shared objects are built, AIX ld can
14029 # have problems creating the table of contents. If linking a library
14030 # or program results in "error TOC overflow" add -mminimal-toc to
14031 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14032 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14033
14034 archive_cmds_F77=''
14035 hardcode_direct_F77=yes
14036 hardcode_libdir_separator_F77=':'
14037 link_all_deplibs_F77=yes
14038
14039 if test "$GCC" = yes; then
14040 case $host_os in aix4.[012]|aix4.[012].*)
14041 # We only want to do this on AIX 4.2 and lower, the check
14042 # below for broken collect2 doesn't work under 4.3+
14043 collect2name=`${CC} -print-prog-name=collect2`
14044 if test -f "$collect2name" && \
14045 strings "$collect2name" | grep resolve_lib_name >/dev/null
14046 then
14047 # We have reworked collect2
14048 hardcode_direct_F77=yes
14049 else
14050 # We have old collect2
14051 hardcode_direct_F77=unsupported
14052 # It fails to find uninstalled libraries when the uninstalled
14053 # path is not listed in the libpath. Setting hardcode_minus_L
14054 # to unsupported forces relinking
14055 hardcode_minus_L_F77=yes
14056 hardcode_libdir_flag_spec_F77='-L$libdir'
14057 hardcode_libdir_separator_F77=
14058 fi
14059 ;;
14060 esac
14061 shared_flag='-shared'
14062 if test "$aix_use_runtimelinking" = yes; then
14063 shared_flag="$shared_flag "'${wl}-G'
14064 fi
14065 else
14066 # not using gcc
14067 if test "$host_cpu" = ia64; then
14068 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14069 # chokes on -Wl,-G. The following line is correct:
14070 shared_flag='-G'
14071 else
14072 if test "$aix_use_runtimelinking" = yes; then
14073 shared_flag='${wl}-G'
14074 else
14075 shared_flag='${wl}-bM:SRE'
14076 fi
14077 fi
14078 fi
14079
14080 # It seems that -bexpall does not export symbols beginning with
14081 # underscore (_), so it is better to generate a list of symbols to export.
14082 always_export_symbols_F77=yes
14083 if test "$aix_use_runtimelinking" = yes; then
14084 # Warning - without using the other runtime loading flags (-brtl),
14085 # -berok will link without error, but may produce a broken library.
14086 allow_undefined_flag_F77='-berok'
14087 # Determine the default libpath from the value encoded in an empty executable.
14088 cat >conftest.$ac_ext <<_ACEOF
14089 program main
14090
14091 end
14092_ACEOF
14093rm -f conftest.$ac_objext conftest$ac_exeext
14094if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14095 (eval $ac_link) 2>conftest.er1
14096 ac_status=$?
14097 grep -v '^ *+' conftest.er1 >conftest.err
14098 rm -f conftest.er1
14099 cat conftest.err >&5
14100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14101 (exit $ac_status); } &&
14102 { ac_try='test -z "$ac_f77_werror_flag"
14103 || test ! -s conftest.err'
14104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14105 (eval $ac_try) 2>&5
14106 ac_status=$?
14107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14108 (exit $ac_status); }; } &&
14109 { ac_try='test -s conftest$ac_exeext'
14110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14111 (eval $ac_try) 2>&5
14112 ac_status=$?
14113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14114 (exit $ac_status); }; }; then
14115
14116aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14117}'`
14118# Check for a 64-bit object if we didn't find anything.
14119if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14120}'`; fi
14121else
14122 echo "$as_me: failed program was:" >&5
14123sed 's/^/| /' conftest.$ac_ext >&5
14124
14125fi
14126rm -f conftest.err conftest.$ac_objext \
14127 conftest$ac_exeext conftest.$ac_ext
14128if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14129
14130 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14131 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14132 else
14133 if test "$host_cpu" = ia64; then
14134 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14135 allow_undefined_flag_F77="-z nodefs"
14136 archive_expsym_cmds_F77="\$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"
14137 else
14138 # Determine the default libpath from the value encoded in an empty executable.
14139 cat >conftest.$ac_ext <<_ACEOF
14140 program main
14141
14142 end
14143_ACEOF
14144rm -f conftest.$ac_objext conftest$ac_exeext
14145if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14146 (eval $ac_link) 2>conftest.er1
14147 ac_status=$?
14148 grep -v '^ *+' conftest.er1 >conftest.err
14149 rm -f conftest.er1
14150 cat conftest.err >&5
14151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14152 (exit $ac_status); } &&
14153 { ac_try='test -z "$ac_f77_werror_flag"
14154 || test ! -s conftest.err'
14155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14156 (eval $ac_try) 2>&5
14157 ac_status=$?
14158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14159 (exit $ac_status); }; } &&
14160 { ac_try='test -s conftest$ac_exeext'
14161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14162 (eval $ac_try) 2>&5
14163 ac_status=$?
14164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14165 (exit $ac_status); }; }; then
14166
14167aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14168}'`
14169# Check for a 64-bit object if we didn't find anything.
14170if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14171}'`; fi
14172else
14173 echo "$as_me: failed program was:" >&5
14174sed 's/^/| /' conftest.$ac_ext >&5
14175
14176fi
14177rm -f conftest.err conftest.$ac_objext \
14178 conftest$ac_exeext conftest.$ac_ext
14179if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14180
14181 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14182 # Warning - without using the other run time loading flags,
14183 # -berok will link without error, but may produce a broken library.
14184 no_undefined_flag_F77=' ${wl}-bernotok'
14185 allow_undefined_flag_F77=' ${wl}-berok'
14186 # Exported symbols can be pulled into shared objects from archives
14187 whole_archive_flag_spec_F77='$convenience'
14188 archive_cmds_need_lc_F77=yes
14189 # This is similar to how AIX traditionally builds its shared libraries.
14190 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14191 fi
14192 fi
14193 ;;
14194
14195 amigaos*)
14196 archive_cmds_F77='$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)'
14197 hardcode_libdir_flag_spec_F77='-L$libdir'
14198 hardcode_minus_L_F77=yes
14199 # see comment about different semantics on the GNU ld section
14200 ld_shlibs_F77=no
14201 ;;
14202
14203 bsdi[45]*)
14204 export_dynamic_flag_spec_F77=-rdynamic
14205 ;;
14206
14207 cygwin* | mingw* | pw32*)
14208 # When not using gcc, we currently assume that we are using
14209 # Microsoft Visual C++.
14210 # hardcode_libdir_flag_spec is actually meaningless, as there is
14211 # no search path for DLLs.
14212 hardcode_libdir_flag_spec_F77=' '
14213 allow_undefined_flag_F77=unsupported
14214 # Tell ltmain to make .lib files, not .a files.
14215 libext=lib
14216 # Tell ltmain to make .dll files, not .so files.
14217 shrext_cmds=".dll"
14218 # FIXME: Setting linknames here is a bad hack.
14219 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14220 # The linker will automatically build a .lib file if we build a DLL.
14221 old_archive_From_new_cmds_F77='true'
14222 # FIXME: Should let the user specify the lib program.
14223 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14224 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14225 enable_shared_with_static_runtimes_F77=yes
14226 ;;
14227
14228 darwin* | rhapsody*)
14229 case $host_os in
14230 rhapsody* | darwin1.[012])
14231 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14232 ;;
14233 *) # Darwin 1.3 on
14234 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14235 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14236 else
14237 case ${MACOSX_DEPLOYMENT_TARGET} in
14238 10.[012])
14239 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14240 ;;
14241 10.*)
14242 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14243 ;;
14244 esac
14245 fi
14246 ;;
14247 esac
14248 archive_cmds_need_lc_F77=no
14249 hardcode_direct_F77=no
14250 hardcode_automatic_F77=yes
14251 hardcode_shlibpath_var_F77=unsupported
14252 whole_archive_flag_spec_F77=''
14253 link_all_deplibs_F77=yes
14254 if test "$GCC" = yes ; then
14255 output_verbose_link_cmd='echo'
14256 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14257 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14258 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14259 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14260 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14261 else
14262 case $cc_basename in
14263 xlc*)
14264 output_verbose_link_cmd='echo'
14265 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14266 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14267 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14268 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14269 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14270 ;;
14271 *)
14272 ld_shlibs_F77=no
14273 ;;
14274 esac
14275 fi
14276 ;;
14277
14278 dgux*)
14279 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14280 hardcode_libdir_flag_spec_F77='-L$libdir'
14281 hardcode_shlibpath_var_F77=no
14282 ;;
14283
14284 freebsd1*)
14285 ld_shlibs_F77=no
14286 ;;
14287
14288 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14289 # support. Future versions do this automatically, but an explicit c++rt0.o
14290 # does not break anything, and helps significantly (at the cost of a little
14291 # extra space).
14292 freebsd2.2*)
14293 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14294 hardcode_libdir_flag_spec_F77='-R$libdir'
14295 hardcode_direct_F77=yes
14296 hardcode_shlibpath_var_F77=no
14297 ;;
14298
14299 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14300 freebsd2*)
14301 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14302 hardcode_direct_F77=yes
14303 hardcode_minus_L_F77=yes
14304 hardcode_shlibpath_var_F77=no
14305 ;;
14306
14307 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14308 freebsd* | kfreebsd*-gnu | dragonfly*)
14309 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14310 hardcode_libdir_flag_spec_F77='-R$libdir'
14311 hardcode_direct_F77=yes
14312 hardcode_shlibpath_var_F77=no
14313 ;;
14314
14315 hpux9*)
14316 if test "$GCC" = yes; then
14317 archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14318 else
14319 archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14320 fi
14321 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14322 hardcode_libdir_separator_F77=:
14323 hardcode_direct_F77=yes
14324
14325 # hardcode_minus_L: Not really in the search PATH,
14326 # but as the default location of the library.
14327 hardcode_minus_L_F77=yes
14328 export_dynamic_flag_spec_F77='${wl}-E'
14329 ;;
14330
14331 hpux10*)
14332 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14333 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14334 else
14335 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14336 fi
14337 if test "$with_gnu_ld" = no; then
14338 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14339 hardcode_libdir_separator_F77=:
14340
14341 hardcode_direct_F77=yes
14342 export_dynamic_flag_spec_F77='${wl}-E'
14343
14344 # hardcode_minus_L: Not really in the search PATH,
14345 # but as the default location of the library.
14346 hardcode_minus_L_F77=yes
14347 fi
14348 ;;
14349
14350 hpux11*)
14351 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14352 case $host_cpu in
14353 hppa*64*)
14354 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14355 ;;
14356 ia64*)
14357 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14358 ;;
14359 *)
14360 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14361 ;;
14362 esac
14363 else
14364 case $host_cpu in
14365 hppa*64*)
14366 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14367 ;;
14368 ia64*)
14369 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14370 ;;
14371 *)
14372 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14373 ;;
14374 esac
14375 fi
14376 if test "$with_gnu_ld" = no; then
14377 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14378 hardcode_libdir_separator_F77=:
14379
14380 case $host_cpu in
14381 hppa*64*|ia64*)
14382 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14383 hardcode_direct_F77=no
14384 hardcode_shlibpath_var_F77=no
14385 ;;
14386 *)
14387 hardcode_direct_F77=yes
14388 export_dynamic_flag_spec_F77='${wl}-E'
14389
14390 # hardcode_minus_L: Not really in the search PATH,
14391 # but as the default location of the library.
14392 hardcode_minus_L_F77=yes
14393 ;;
14394 esac
14395 fi
14396 ;;
14397
14398 irix5* | irix6* | nonstopux*)
14399 if test "$GCC" = yes; then
14400 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14401 else
14402 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14403 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14404 fi
14405 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14406 hardcode_libdir_separator_F77=:
14407 link_all_deplibs_F77=yes
14408 ;;
14409
14410 netbsd*)
14411 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14412 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14413 else
14414 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14415 fi
14416 hardcode_libdir_flag_spec_F77='-R$libdir'
14417 hardcode_direct_F77=yes
14418 hardcode_shlibpath_var_F77=no
14419 ;;
14420
14421 newsos6)
14422 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14423 hardcode_direct_F77=yes
14424 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14425 hardcode_libdir_separator_F77=:
14426 hardcode_shlibpath_var_F77=no
14427 ;;
14428
14429 openbsd*)
14430 hardcode_direct_F77=yes
14431 hardcode_shlibpath_var_F77=no
14432 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14433 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14434 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14435 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14436 export_dynamic_flag_spec_F77='${wl}-E'
14437 else
14438 case $host_os in
14439 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14440 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14441 hardcode_libdir_flag_spec_F77='-R$libdir'
14442 ;;
14443 *)
14444 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14445 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14446 ;;
14447 esac
14448 fi
14449 ;;
14450
14451 os2*)
14452 hardcode_libdir_flag_spec_F77='-L$libdir'
14453 hardcode_minus_L_F77=yes
14454 allow_undefined_flag_F77=unsupported
14455 archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
14456 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14457 ;;
14458
14459 osf3*)
14460 if test "$GCC" = yes; then
14461 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14462 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14463 else
14464 allow_undefined_flag_F77=' -expect_unresolved \*'
14465 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14466 fi
14467 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14468 hardcode_libdir_separator_F77=:
14469 ;;
14470
14471 osf4* | osf5*) # as osf3* with the addition of -msym flag
14472 if test "$GCC" = yes; then
14473 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14474 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14475 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14476 else
14477 allow_undefined_flag_F77=' -expect_unresolved \*'
14478 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14479 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
14480 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
14481
14482 # Both c and cxx compiler support -rpath directly
14483 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14484 fi
14485 hardcode_libdir_separator_F77=:
14486 ;;
14487
14488 solaris*)
14489 no_undefined_flag_F77=' -z text'
14490 if test "$GCC" = yes; then
14491 wlarc='${wl}'
14492 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14493 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14494 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14495 else
14496 wlarc=''
14497 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14498 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14499 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14500 fi
14501 hardcode_libdir_flag_spec_F77='-R$libdir'
14502 hardcode_shlibpath_var_F77=no
14503 case $host_os in
14504 solaris2.[0-5] | solaris2.[0-5].*) ;;
14505 *)
14506 # The compiler driver will combine linker options so we
14507 # cannot just pass the convience library names through
14508 # without $wl, iff we do not link with $LD.
14509 # Luckily, gcc supports the same syntax we need for Sun Studio.
14510 # Supported since Solaris 2.6 (maybe 2.5.1?)
14511 case $wlarc in
14512 '')
14513 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14514 *)
14515 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
14516 esac ;;
14517 esac
14518 link_all_deplibs_F77=yes
14519 ;;
14520
14521 sunos4*)
14522 if test "x$host_vendor" = xsequent; then
14523 # Use $CC to link under sequent, because it throws in some extra .o
14524 # files that make .init and .fini sections work.
14525 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14526 else
14527 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14528 fi
14529 hardcode_libdir_flag_spec_F77='-L$libdir'
14530 hardcode_direct_F77=yes
14531 hardcode_minus_L_F77=yes
14532 hardcode_shlibpath_var_F77=no
14533 ;;
14534
14535 sysv4)
14536 case $host_vendor in
14537 sni)
14538 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14539 hardcode_direct_F77=yes # is this really true???
14540 ;;
14541 siemens)
14542 ## LD is ld it makes a PLAMLIB
14543 ## CC just makes a GrossModule.
14544 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14545 reload_cmds_F77='$CC -r -o $output$reload_objs'
14546 hardcode_direct_F77=no
14547 ;;
14548 motorola)
14549 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14550 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14551 ;;
14552 esac
14553 runpath_var='LD_RUN_PATH'
14554 hardcode_shlibpath_var_F77=no
14555 ;;
14556
14557 sysv4.3*)
14558 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14559 hardcode_shlibpath_var_F77=no
14560 export_dynamic_flag_spec_F77='-Bexport'
14561 ;;
14562
14563 sysv4*MP*)
14564 if test -d /usr/nec; then
14565 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14566 hardcode_shlibpath_var_F77=no
14567 runpath_var=LD_RUN_PATH
14568 hardcode_runpath_var=yes
14569 ld_shlibs_F77=yes
14570 fi
14571 ;;
14572
14573 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14574 no_undefined_flag_F77='${wl}-z,text'
14575 archive_cmds_need_lc_F77=no
14576 hardcode_shlibpath_var_F77=no
14577 runpath_var='LD_RUN_PATH'
14578
14579 if test "$GCC" = yes; then
14580 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14581 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14582 else
14583 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14584 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14585 fi
14586 ;;
14587
14588 sysv5* | sco3.2v5* | sco5v6*)
14589 # Note: We can NOT use -z defs as we might desire, because we do not
14590 # link with -lc, and that would cause any symbols used from libc to
14591 # always be unresolved, which means just about no library would
14592 # ever link correctly. If we're not using GNU ld we use -z text
14593 # though, which does catch some bad symbols but isn't as heavy-handed
14594 # as -z defs.
14595 no_undefined_flag_F77='${wl}-z,text'
14596 allow_undefined_flag_F77='${wl}-z,nodefs'
14597 archive_cmds_need_lc_F77=no
14598 hardcode_shlibpath_var_F77=no
14599 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14600 hardcode_libdir_separator_F77=':'
14601 link_all_deplibs_F77=yes
14602 export_dynamic_flag_spec_F77='${wl}-Bexport'
14603 runpath_var='LD_RUN_PATH'
14604
14605 if test "$GCC" = yes; then
14606 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14607 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14608 else
14609 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14610 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14611 fi
14612 ;;
14613
14614 uts4*)
14615 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14616 hardcode_libdir_flag_spec_F77='-L$libdir'
14617 hardcode_shlibpath_var_F77=no
14618 ;;
14619
14620 *)
14621 ld_shlibs_F77=no
14622 ;;
14623 esac
14624 fi
14625
14626echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14627echo "${ECHO_T}$ld_shlibs_F77" >&6
14628test "$ld_shlibs_F77" = no && can_build_shared=no
14629
14630#
14631# Do we need to explicitly link libc?
14632#
14633case "x$archive_cmds_need_lc_F77" in
14634x|xyes)
14635 # Assume -lc should be added
14636 archive_cmds_need_lc_F77=yes
14637
14638 if test "$enable_shared" = yes && test "$GCC" = yes; then
14639 case $archive_cmds_F77 in
14640 *'~'*)
14641 # FIXME: we may have to deal with multi-command sequences.
14642 ;;
14643 '$CC '*)
14644 # Test whether the compiler implicitly links with -lc since on some
14645 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14646 # to ld, don't add -lc before -lgcc.
14647 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14648echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14649 $rm conftest*
14650 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14651
14652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14653 (eval $ac_compile) 2>&5
14654 ac_status=$?
14655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14656 (exit $ac_status); } 2>conftest.err; then
14657 soname=conftest
14658 lib=conftest
14659 libobjs=conftest.$ac_objext
14660 deplibs=
14661 wl=$lt_prog_compiler_wl_F77
14662 pic_flag=$lt_prog_compiler_pic_F77
14663 compiler_flags=-v
14664 linker_flags=-v
14665 verstring=
14666 output_objdir=.
14667 libname=conftest
14668 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14669 allow_undefined_flag_F77=
14670 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14671 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14672 ac_status=$?
14673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14674 (exit $ac_status); }
14675 then
14676 archive_cmds_need_lc_F77=no
14677 else
14678 archive_cmds_need_lc_F77=yes
14679 fi
14680 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14681 else
14682 cat conftest.err 1>&5
14683 fi
14684 $rm conftest*
14685 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14686echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14687 ;;
14688 esac
14689 fi
14690 ;;
14691esac
14692
14693echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14694echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14695library_names_spec=
14696libname_spec='lib$name'
14697soname_spec=
14698shrext_cmds=".so"
14699postinstall_cmds=
14700postuninstall_cmds=
14701finish_cmds=
14702finish_eval=
14703shlibpath_var=
14704shlibpath_overrides_runpath=unknown
14705version_type=none
14706dynamic_linker="$host_os ld.so"
14707sys_lib_dlsearch_path_spec="/lib /usr/lib"
14708if test "$GCC" = yes; then
14709 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14710 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14711 # if the path contains ";" then we assume it to be the separator
14712 # otherwise default to the standard path separator (i.e. ":") - it is
14713 # assumed that no part of a normal pathname contains ";" but that should
14714 # okay in the real world where ";" in dirpaths is itself problematic.
14715 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14716 else
14717 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14718 fi
14719else
14720 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14721fi
14722need_lib_prefix=unknown
14723hardcode_into_libs=no
14724
14725# when you set need_version to no, make sure it does not cause -set_version
14726# flags to be left without arguments
14727need_version=unknown
14728
14729case $host_os in
14730aix3*)
14731 version_type=linux
14732 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14733 shlibpath_var=LIBPATH
14734
14735 # AIX 3 has no versioning support, so we append a major version to the name.
14736 soname_spec='${libname}${release}${shared_ext}$major'
14737 ;;
14738
14739aix4* | aix5*)
14740 version_type=linux
14741 need_lib_prefix=no
14742 need_version=no
14743 hardcode_into_libs=yes
14744 if test "$host_cpu" = ia64; then
14745 # AIX 5 supports IA64
14746 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14747 shlibpath_var=LD_LIBRARY_PATH
14748 else
14749 # With GCC up to 2.95.x, collect2 would create an import file
14750 # for dependence libraries. The import file would start with
14751 # the line `#! .'. This would cause the generated library to
14752 # depend on `.', always an invalid library. This was fixed in
14753 # development snapshots of GCC prior to 3.0.
14754 case $host_os in
14755 aix4 | aix4.[01] | aix4.[01].*)
14756 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14757 echo ' yes '
14758 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14759 :
14760 else
14761 can_build_shared=no
14762 fi
14763 ;;
14764 esac
14765 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14766 # soname into executable. Probably we can add versioning support to
14767 # collect2, so additional links can be useful in future.
14768 if test "$aix_use_runtimelinking" = yes; then
14769 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14770 # instead of lib<name>.a to let people know that these are not
14771 # typical AIX shared libraries.
14772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14773 else
14774 # We preserve .a as extension for shared libraries through AIX4.2
14775 # and later when we are not doing run time linking.
14776 library_names_spec='${libname}${release}.a $libname.a'
14777 soname_spec='${libname}${release}${shared_ext}$major'
14778 fi
14779 shlibpath_var=LIBPATH
14780 fi
14781 ;;
14782
14783amigaos*)
14784 library_names_spec='$libname.ixlibrary $libname.a'
14785 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14786 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
14787 ;;
14788
14789beos*)
14790 library_names_spec='${libname}${shared_ext}'
14791 dynamic_linker="$host_os ld.so"
14792 shlibpath_var=LIBRARY_PATH
14793 ;;
14794
14795bsdi[45]*)
14796 version_type=linux
14797 need_version=no
14798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14799 soname_spec='${libname}${release}${shared_ext}$major'
14800 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14801 shlibpath_var=LD_LIBRARY_PATH
14802 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14803 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14804 # the default ld.so.conf also contains /usr/contrib/lib and
14805 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14806 # libtool to hard-code these into programs
14807 ;;
14808
14809cygwin* | mingw* | pw32*)
14810 version_type=windows
14811 shrext_cmds=".dll"
14812 need_version=no
14813 need_lib_prefix=no
14814
14815 case $GCC,$host_os in
14816 yes,cygwin* | yes,mingw* | yes,pw32*)
14817 library_names_spec='$libname.dll.a'
14818 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14819 postinstall_cmds='base_file=`basename \${file}`~
14820 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14821 dldir=$destdir/`dirname \$dlpath`~
14822 test -d \$dldir || mkdir -p \$dldir~
14823 $install_prog $dir/$dlname \$dldir/$dlname~
14824 chmod a+x \$dldir/$dlname'
14825 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14826 dlpath=$dir/\$dldll~
14827 $rm \$dlpath'
14828 shlibpath_overrides_runpath=yes
14829
14830 case $host_os in
14831 cygwin*)
14832 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14833 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14834 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14835 ;;
14836 mingw*)
14837 # MinGW DLLs use traditional 'lib' prefix
14838 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14839 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14840 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14841 # It is most probably a Windows format PATH printed by
14842 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14843 # path with ; separators, and with drive letters. We can handle the
14844 # drive letters (cygwin fileutils understands them), so leave them,
14845 # especially as we might pass files found there to a mingw objdump,
14846 # which wouldn't understand a cygwinified path. Ahh.
14847 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14848 else
14849 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14850 fi
14851 ;;
14852 pw32*)
14853 # pw32 DLLs use 'pw' prefix rather than 'lib'
14854 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14855 ;;
14856 esac
14857 ;;
14858
14859 *)
14860 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14861 ;;
14862 esac
14863 dynamic_linker='Win32 ld.exe'
14864 # FIXME: first we should search . and the directory the executable is in
14865 shlibpath_var=PATH
14866 ;;
14867
14868darwin* | rhapsody*)
14869 dynamic_linker="$host_os dyld"
14870 version_type=darwin
14871 need_lib_prefix=no
14872 need_version=no
14873 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14874 soname_spec='${libname}${release}${major}$shared_ext'
14875 shlibpath_overrides_runpath=yes
14876 shlibpath_var=DYLD_LIBRARY_PATH
14877 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14878 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14879 if test "$GCC" = yes; then
14880 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
14881 else
14882 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14883 fi
14884 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14885 ;;
14886
14887dgux*)
14888 version_type=linux
14889 need_lib_prefix=no
14890 need_version=no
14891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14892 soname_spec='${libname}${release}${shared_ext}$major'
14893 shlibpath_var=LD_LIBRARY_PATH
14894 ;;
14895
14896freebsd1*)
14897 dynamic_linker=no
14898 ;;
14899
14900kfreebsd*-gnu)
14901 version_type=linux
14902 need_lib_prefix=no
14903 need_version=no
14904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14905 soname_spec='${libname}${release}${shared_ext}$major'
14906 shlibpath_var=LD_LIBRARY_PATH
14907 shlibpath_overrides_runpath=no
14908 hardcode_into_libs=yes
14909 dynamic_linker='GNU ld.so'
14910 ;;
14911
14912freebsd* | dragonfly*)
14913 # DragonFly does not have aout. When/if they implement a new
14914 # versioning mechanism, adjust this.
14915 if test -x /usr/bin/objformat; then
14916 objformat=`/usr/bin/objformat`
14917 else
14918 case $host_os in
14919 freebsd[123]*) objformat=aout ;;
14920 *) objformat=elf ;;
14921 esac
14922 fi
14923 version_type=freebsd-$objformat
14924 case $version_type in
14925 freebsd-elf*)
14926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14927 need_version=no
14928 need_lib_prefix=no
14929 ;;
14930 freebsd-*)
14931 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14932 need_version=yes
14933 ;;
14934 esac
14935 shlibpath_var=LD_LIBRARY_PATH
14936 case $host_os in
14937 freebsd2*)
14938 shlibpath_overrides_runpath=yes
14939 ;;
14940 freebsd3.[01]* | freebsdelf3.[01]*)
14941 shlibpath_overrides_runpath=yes
14942 hardcode_into_libs=yes
14943 ;;
14944 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14945 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14946 shlibpath_overrides_runpath=no
14947 hardcode_into_libs=yes
14948 ;;
14949 freebsd*) # from 4.6 on
14950 shlibpath_overrides_runpath=yes
14951 hardcode_into_libs=yes
14952 ;;
14953 esac
14954 ;;
14955
14956gnu*)
14957 version_type=linux
14958 need_lib_prefix=no
14959 need_version=no
14960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14961 soname_spec='${libname}${release}${shared_ext}$major'
14962 shlibpath_var=LD_LIBRARY_PATH
14963 hardcode_into_libs=yes
14964 ;;
14965
14966hpux9* | hpux10* | hpux11*)
14967 # Give a soname corresponding to the major version so that dld.sl refuses to
14968 # link against other versions.
14969 version_type=sunos
14970 need_lib_prefix=no
14971 need_version=no
14972 case $host_cpu in
14973 ia64*)
14974 shrext_cmds='.so'
14975 hardcode_into_libs=yes
14976 dynamic_linker="$host_os dld.so"
14977 shlibpath_var=LD_LIBRARY_PATH
14978 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14980 soname_spec='${libname}${release}${shared_ext}$major'
14981 if test "X$HPUX_IA64_MODE" = X32; then
14982 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14983 else
14984 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14985 fi
14986 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14987 ;;
14988 hppa*64*)
14989 shrext_cmds='.sl'
14990 hardcode_into_libs=yes
14991 dynamic_linker="$host_os dld.sl"
14992 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14993 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14995 soname_spec='${libname}${release}${shared_ext}$major'
14996 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14997 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14998 ;;
14999 *)
15000 shrext_cmds='.sl'
15001 dynamic_linker="$host_os dld.sl"
15002 shlibpath_var=SHLIB_PATH
15003 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15005 soname_spec='${libname}${release}${shared_ext}$major'
15006 ;;
15007 esac
15008 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15009 postinstall_cmds='chmod 555 $lib'
15010 ;;
15011
15012interix3*)
15013 version_type=linux
15014 need_lib_prefix=no
15015 need_version=no
15016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15017 soname_spec='${libname}${release}${shared_ext}$major'
15018 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15019 shlibpath_var=LD_LIBRARY_PATH
15020 shlibpath_overrides_runpath=no
15021 hardcode_into_libs=yes
15022 ;;
15023
15024irix5* | irix6* | nonstopux*)
15025 case $host_os in
15026 nonstopux*) version_type=nonstopux ;;
15027 *)
15028 if test "$lt_cv_prog_gnu_ld" = yes; then
15029 version_type=linux
15030 else
15031 version_type=irix
15032 fi ;;
15033 esac
15034 need_lib_prefix=no
15035 need_version=no
15036 soname_spec='${libname}${release}${shared_ext}$major'
15037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15038 case $host_os in
15039 irix5* | nonstopux*)
15040 libsuff= shlibsuff=
15041 ;;
15042 *)
15043 case $LD in # libtool.m4 will add one of these switches to LD
15044 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15045 libsuff= shlibsuff= libmagic=32-bit;;
15046 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15047 libsuff=32 shlibsuff=N32 libmagic=N32;;
15048 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15049 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15050 *) libsuff= shlibsuff= libmagic=never-match;;
15051 esac
15052 ;;
15053 esac
15054 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15055 shlibpath_overrides_runpath=no
15056 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15057 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15058 hardcode_into_libs=yes
15059 ;;
15060
15061# No shared lib support for Linux oldld, aout, or coff.
15062linux*oldld* | linux*aout* | linux*coff*)
15063 dynamic_linker=no
15064 ;;
15065
15066# This must be Linux ELF.
15067linux*)
15068 version_type=linux
15069 need_lib_prefix=no
15070 need_version=no
15071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15072 soname_spec='${libname}${release}${shared_ext}$major'
15073 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15074 shlibpath_var=LD_LIBRARY_PATH
15075 shlibpath_overrides_runpath=no
15076 # This implies no fast_install, which is unacceptable.
15077 # Some rework will be needed to allow for fast_install
15078 # before this can be enabled.
15079 hardcode_into_libs=yes
15080
15081 # find out which ABI we are using
15082 libsuff=
15083 case "$host_cpu" in
15084 x86_64*|s390x*|powerpc64*)
5e9b5d83 15085 echo '#line 15085 "configure"' > conftest.$ac_ext
bf9f3bac 15086 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15087 (eval $ac_compile) 2>&5
15088 ac_status=$?
15089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15090 (exit $ac_status); }; then
15091 case `/usr/bin/file conftest.$ac_objext` in
15092 *64-bit*)
15093 libsuff=64
15094 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
15095 ;;
15096 esac
15097 fi
15098 rm -rf conftest*
15099 ;;
15100 esac
15101
15102 # Append ld.so.conf contents to the search path
15103 if test -f /etc/ld.so.conf; then
15104 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/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15105 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
15106 fi
15107
15108 # We used to test for /lib/ld.so.1 and disable shared libraries on
15109 # powerpc, because MkLinux only supported shared libraries with the
15110 # GNU dynamic linker. Since this was broken with cross compilers,
15111 # most powerpc-linux boxes support dynamic linking these days and
15112 # people can always --disable-shared, the test was removed, and we
15113 # assume the GNU/Linux dynamic linker is in use.
15114 dynamic_linker='GNU/Linux ld.so'
15115 ;;
15116
15117knetbsd*-gnu)
15118 version_type=linux
15119 need_lib_prefix=no
15120 need_version=no
15121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15122 soname_spec='${libname}${release}${shared_ext}$major'
15123 shlibpath_var=LD_LIBRARY_PATH
15124 shlibpath_overrides_runpath=no
15125 hardcode_into_libs=yes
15126 dynamic_linker='GNU ld.so'
15127 ;;
15128
15129netbsd*)
15130 version_type=sunos
15131 need_lib_prefix=no
15132 need_version=no
15133 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15135 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15136 dynamic_linker='NetBSD (a.out) ld.so'
15137 else
15138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15139 soname_spec='${libname}${release}${shared_ext}$major'
15140 dynamic_linker='NetBSD ld.elf_so'
15141 fi
15142 shlibpath_var=LD_LIBRARY_PATH
15143 shlibpath_overrides_runpath=yes
15144 hardcode_into_libs=yes
15145 ;;
15146
15147newsos6)
15148 version_type=linux
15149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15150 shlibpath_var=LD_LIBRARY_PATH
15151 shlibpath_overrides_runpath=yes
15152 ;;
15153
15154nto-qnx*)
15155 version_type=linux
15156 need_lib_prefix=no
15157 need_version=no
15158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15159 soname_spec='${libname}${release}${shared_ext}$major'
15160 shlibpath_var=LD_LIBRARY_PATH
15161 shlibpath_overrides_runpath=yes
15162 ;;
15163
15164openbsd*)
15165 version_type=sunos
15166 sys_lib_dlsearch_path_spec="/usr/lib"
15167 need_lib_prefix=no
15168 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15169 case $host_os in
15170 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15171 *) need_version=no ;;
15172 esac
15173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15174 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15175 shlibpath_var=LD_LIBRARY_PATH
15176 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15177 case $host_os in
15178 openbsd2.[89] | openbsd2.[89].*)
15179 shlibpath_overrides_runpath=no
15180 ;;
15181 *)
15182 shlibpath_overrides_runpath=yes
15183 ;;
15184 esac
15185 else
15186 shlibpath_overrides_runpath=yes
15187 fi
15188 ;;
15189
15190os2*)
15191 libname_spec='$name'
15192 shrext_cmds=".dll"
15193 need_lib_prefix=no
15194 library_names_spec='$libname${shared_ext} $libname.a'
15195 dynamic_linker='OS/2 ld.exe'
15196 shlibpath_var=LIBPATH
15197 ;;
15198
15199osf3* | osf4* | osf5*)
15200 version_type=osf
15201 need_lib_prefix=no
15202 need_version=no
15203 soname_spec='${libname}${release}${shared_ext}$major'
15204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15205 shlibpath_var=LD_LIBRARY_PATH
15206 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15207 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15208 ;;
15209
15210solaris*)
15211 version_type=linux
15212 need_lib_prefix=no
15213 need_version=no
15214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15215 soname_spec='${libname}${release}${shared_ext}$major'
15216 shlibpath_var=LD_LIBRARY_PATH
15217 shlibpath_overrides_runpath=yes
15218 hardcode_into_libs=yes
15219 # ldd complains unless libraries are executable
15220 postinstall_cmds='chmod +x $lib'
15221 ;;
15222
15223sunos4*)
15224 version_type=sunos
15225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15226 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15227 shlibpath_var=LD_LIBRARY_PATH
15228 shlibpath_overrides_runpath=yes
15229 if test "$with_gnu_ld" = yes; then
15230 need_lib_prefix=no
15231 fi
15232 need_version=yes
15233 ;;
15234
15235sysv4 | sysv4.3*)
15236 version_type=linux
15237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15238 soname_spec='${libname}${release}${shared_ext}$major'
15239 shlibpath_var=LD_LIBRARY_PATH
15240 case $host_vendor in
15241 sni)
15242 shlibpath_overrides_runpath=no
15243 need_lib_prefix=no
15244 export_dynamic_flag_spec='${wl}-Blargedynsym'
15245 runpath_var=LD_RUN_PATH
15246 ;;
15247 siemens)
15248 need_lib_prefix=no
15249 ;;
15250 motorola)
15251 need_lib_prefix=no
15252 need_version=no
15253 shlibpath_overrides_runpath=no
15254 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15255 ;;
15256 esac
15257 ;;
15258
15259sysv4*MP*)
15260 if test -d /usr/nec ;then
15261 version_type=linux
15262 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15263 soname_spec='$libname${shared_ext}.$major'
15264 shlibpath_var=LD_LIBRARY_PATH
15265 fi
15266 ;;
15267
15268sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15269 version_type=freebsd-elf
15270 need_lib_prefix=no
15271 need_version=no
15272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15273 soname_spec='${libname}${release}${shared_ext}$major'
15274 shlibpath_var=LD_LIBRARY_PATH
15275 hardcode_into_libs=yes
15276 if test "$with_gnu_ld" = yes; then
15277 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15278 shlibpath_overrides_runpath=no
15279 else
15280 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15281 shlibpath_overrides_runpath=yes
15282 case $host_os in
15283 sco3.2v5*)
15284 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15285 ;;
15286 esac
15287 fi
15288 sys_lib_dlsearch_path_spec='/usr/lib'
15289 ;;
15290
15291uts4*)
15292 version_type=linux
15293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15294 soname_spec='${libname}${release}${shared_ext}$major'
15295 shlibpath_var=LD_LIBRARY_PATH
15296 ;;
15297
15298*)
15299 dynamic_linker=no
15300 ;;
15301esac
15302echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15303echo "${ECHO_T}$dynamic_linker" >&6
15304test "$dynamic_linker" = no && can_build_shared=no
15305
15306variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15307if test "$GCC" = yes; then
15308 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15309fi
15310
15311echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15312echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15313hardcode_action_F77=
15314if test -n "$hardcode_libdir_flag_spec_F77" || \
15315 test -n "$runpath_var_F77" || \
15316 test "X$hardcode_automatic_F77" = "Xyes" ; then
15317
15318 # We can hardcode non-existant directories.
15319 if test "$hardcode_direct_F77" != no &&
15320 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15321 # have to relink, otherwise we might link with an installed library
15322 # when we should be linking with a yet-to-be-installed one
15323 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15324 test "$hardcode_minus_L_F77" != no; then
15325 # Linking always hardcodes the temporary library directory.
15326 hardcode_action_F77=relink
15327 else
15328 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15329 hardcode_action_F77=immediate
15330 fi
15331else
15332 # We cannot hardcode anything, or else we can only hardcode existing
15333 # directories.
15334 hardcode_action_F77=unsupported
15335fi
15336echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15337echo "${ECHO_T}$hardcode_action_F77" >&6
15338
15339if test "$hardcode_action_F77" = relink; then
15340 # Fast installation is not supported
15341 enable_fast_install=no
15342elif test "$shlibpath_overrides_runpath" = yes ||
15343 test "$enable_shared" = no; then
15344 # Fast installation is not necessary
15345 enable_fast_install=needless
15346fi
15347
15348
15349# The else clause should only fire when bootstrapping the
15350# libtool distribution, otherwise you forgot to ship ltmain.sh
15351# with your package, and you will get complaints that there are
15352# no rules to generate ltmain.sh.
15353if test -f "$ltmain"; then
15354 # See if we are running on zsh, and set the options which allow our commands through
15355 # without removal of \ escapes.
15356 if test -n "${ZSH_VERSION+set}" ; then
15357 setopt NO_GLOB_SUBST
15358 fi
15359 # Now quote all the things that may contain metacharacters while being
15360 # careful not to overquote the AC_SUBSTed values. We take copies of the
15361 # variables and quote the copies for generation of the libtool script.
15362 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15363 SED SHELL STRIP \
15364 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15365 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15366 deplibs_check_method reload_flag reload_cmds need_locks \
15367 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15368 lt_cv_sys_global_symbol_to_c_name_address \
15369 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15370 old_postinstall_cmds old_postuninstall_cmds \
15371 compiler_F77 \
15372 CC_F77 \
15373 LD_F77 \
15374 lt_prog_compiler_wl_F77 \
15375 lt_prog_compiler_pic_F77 \
15376 lt_prog_compiler_static_F77 \
15377 lt_prog_compiler_no_builtin_flag_F77 \
15378 export_dynamic_flag_spec_F77 \
15379 thread_safe_flag_spec_F77 \
15380 whole_archive_flag_spec_F77 \
15381 enable_shared_with_static_runtimes_F77 \
15382 old_archive_cmds_F77 \
15383 old_archive_from_new_cmds_F77 \
15384 predep_objects_F77 \
15385 postdep_objects_F77 \
15386 predeps_F77 \
15387 postdeps_F77 \
15388 compiler_lib_search_path_F77 \
15389 archive_cmds_F77 \
15390 archive_expsym_cmds_F77 \
15391 postinstall_cmds_F77 \
15392 postuninstall_cmds_F77 \
15393 old_archive_from_expsyms_cmds_F77 \
15394 allow_undefined_flag_F77 \
15395 no_undefined_flag_F77 \
15396 export_symbols_cmds_F77 \
15397 hardcode_libdir_flag_spec_F77 \
15398 hardcode_libdir_flag_spec_ld_F77 \
15399 hardcode_libdir_separator_F77 \
15400 hardcode_automatic_F77 \
15401 module_cmds_F77 \
15402 module_expsym_cmds_F77 \
15403 lt_cv_prog_compiler_c_o_F77 \
15404 exclude_expsyms_F77 \
15405 include_expsyms_F77; do
15406
15407 case $var in
15408 old_archive_cmds_F77 | \
15409 old_archive_from_new_cmds_F77 | \
15410 archive_cmds_F77 | \
15411 archive_expsym_cmds_F77 | \
15412 module_cmds_F77 | \
15413 module_expsym_cmds_F77 | \
15414 old_archive_from_expsyms_cmds_F77 | \
15415 export_symbols_cmds_F77 | \
15416 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15417 postinstall_cmds | postuninstall_cmds | \
15418 old_postinstall_cmds | old_postuninstall_cmds | \
15419 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15420 # Double-quote double-evaled strings.
15421 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15422 ;;
15423 *)
15424 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15425 ;;
15426 esac
15427 done
15428
15429 case $lt_echo in
15430 *'\$0 --fallback-echo"')
15431 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15432 ;;
15433 esac
15434
15435cfgfile="$ofile"
15436
15437 cat <<__EOF__ >> "$cfgfile"
15438# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15439
15440# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15441
15442# Shell to use when invoking shell scripts.
15443SHELL=$lt_SHELL
15444
15445# Whether or not to build shared libraries.
15446build_libtool_libs=$enable_shared
15447
15448# Whether or not to build static libraries.
15449build_old_libs=$enable_static
15450
15451# Whether or not to add -lc for building shared libraries.
15452build_libtool_need_lc=$archive_cmds_need_lc_F77
15453
15454# Whether or not to disallow shared libs when runtime libs are static
15455allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15456
15457# Whether or not to optimize for fast installation.
15458fast_install=$enable_fast_install
15459
15460# The host system.
15461host_alias=$host_alias
15462host=$host
15463host_os=$host_os
15464
15465# The build system.
15466build_alias=$build_alias
15467build=$build
15468build_os=$build_os
15469
15470# An echo program that does not interpret backslashes.
15471echo=$lt_echo
15472
15473# The archiver.
15474AR=$lt_AR
15475AR_FLAGS=$lt_AR_FLAGS
15476
15477# A C compiler.
15478LTCC=$lt_LTCC
15479
15480# LTCC compiler flags.
15481LTCFLAGS=$lt_LTCFLAGS
15482
15483# A language-specific compiler.
15484CC=$lt_compiler_F77
15485
15486# Is the compiler the GNU C compiler?
15487with_gcc=$GCC_F77
15488
15489gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
15490gcc_ver=\`gcc -dumpversion\`
15491
15492# An ERE matcher.
15493EGREP=$lt_EGREP
15494
15495# The linker used to build libraries.
15496LD=$lt_LD_F77
15497
15498# Whether we need hard or soft links.
15499LN_S=$lt_LN_S
15500
15501# A BSD-compatible nm program.
15502NM=$lt_NM
15503
15504# A symbol stripping program
15505STRIP=$lt_STRIP
15506
15507# Used to examine libraries when file_magic_cmd begins "file"
15508MAGIC_CMD=$MAGIC_CMD
15509
15510# Used on cygwin: DLL creation program.
15511DLLTOOL="$DLLTOOL"
15512
15513# Used on cygwin: object dumper.
15514OBJDUMP="$OBJDUMP"
15515
15516# Used on cygwin: assembler.
15517AS="$AS"
15518
15519# The name of the directory that contains temporary libtool files.
15520objdir=$objdir
15521
15522# How to create reloadable object files.
15523reload_flag=$lt_reload_flag
15524reload_cmds=$lt_reload_cmds
15525
15526# How to pass a linker flag through the compiler.
15527wl=$lt_lt_prog_compiler_wl_F77
15528
15529# Object file suffix (normally "o").
15530objext="$ac_objext"
15531
15532# Old archive suffix (normally "a").
15533libext="$libext"
15534
15535# Shared library suffix (normally ".so").
15536shrext_cmds='$shrext_cmds'
15537
15538# Executable file suffix (normally "").
15539exeext="$exeext"
15540
15541# Additional compiler flags for building library objects.
15542pic_flag=$lt_lt_prog_compiler_pic_F77
15543pic_mode=$pic_mode
15544
15545# What is the maximum length of a command?
15546max_cmd_len=$lt_cv_sys_max_cmd_len
15547
15548# Does compiler simultaneously support -c and -o options?
15549compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15550
15551# Must we lock files when doing compilation?
15552need_locks=$lt_need_locks
15553
15554# Do we need the lib prefix for modules?
15555need_lib_prefix=$need_lib_prefix
15556
15557# Do we need a version for libraries?
15558need_version=$need_version
15559
15560# Whether dlopen is supported.
15561dlopen_support=$enable_dlopen
15562
15563# Whether dlopen of programs is supported.
15564dlopen_self=$enable_dlopen_self
15565
15566# Whether dlopen of statically linked programs is supported.
15567dlopen_self_static=$enable_dlopen_self_static
15568
15569# Compiler flag to prevent dynamic linking.
15570link_static_flag=$lt_lt_prog_compiler_static_F77
15571
15572# Compiler flag to turn off builtin functions.
15573no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15574
15575# Compiler flag to allow reflexive dlopens.
15576export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15577
15578# Compiler flag to generate shared objects directly from archives.
15579whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15580
15581# Compiler flag to generate thread-safe objects.
15582thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15583
15584# Library versioning type.
15585version_type=$version_type
15586
15587# Format of library name prefix.
15588libname_spec=$lt_libname_spec
15589
15590# List of archive names. First name is the real one, the rest are links.
15591# The last name is the one that the linker finds with -lNAME.
15592library_names_spec=$lt_library_names_spec
15593
15594# The coded name of the library, if different from the real name.
15595soname_spec=$lt_soname_spec
15596
15597# Commands used to build and install an old-style archive.
15598RANLIB=$lt_RANLIB
15599old_archive_cmds=$lt_old_archive_cmds_F77
15600old_postinstall_cmds=$lt_old_postinstall_cmds
15601old_postuninstall_cmds=$lt_old_postuninstall_cmds
15602
15603# Create an old-style archive from a shared archive.
15604old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15605
15606# Create a temporary old-style archive to link instead of a shared archive.
15607old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15608
15609# Commands used to build and install a shared archive.
15610archive_cmds=$lt_archive_cmds_F77
15611archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15612postinstall_cmds=$lt_postinstall_cmds
15613postuninstall_cmds=$lt_postuninstall_cmds
15614
15615# Commands used to build a loadable module (assumed same as above if empty)
15616module_cmds=$lt_module_cmds_F77
15617module_expsym_cmds=$lt_module_expsym_cmds_F77
15618
15619# Commands to strip libraries.
15620old_striplib=$lt_old_striplib
15621striplib=$lt_striplib
15622
15623# Dependencies to place before the objects being linked to create a
15624# shared library.
15625predep_objects=\`echo $lt_predep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
15626
15627# Dependencies to place after the objects being linked to create a
15628# shared library.
15629postdep_objects=\`echo $lt_postdep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
15630
15631# Dependencies to place before the objects being linked to create a
15632# shared library.
15633predeps=$lt_predeps_F77
15634
15635# Dependencies to place after the objects being linked to create a
15636# shared library.
15637postdeps=$lt_postdeps_F77
15638
15639# The library search path used internally by the compiler when linking
15640# a shared library.
15641compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
15642
15643# Method to check whether dependent libraries are shared objects.
15644deplibs_check_method=$lt_deplibs_check_method
15645
15646# Command to use when deplibs_check_method == file_magic.
15647file_magic_cmd=$lt_file_magic_cmd
15648
15649# Flag that allows shared libraries with undefined symbols to be built.
15650allow_undefined_flag=$lt_allow_undefined_flag_F77
15651
15652# Flag that forces no undefined symbols.
15653no_undefined_flag=$lt_no_undefined_flag_F77
15654
15655# Commands used to finish a libtool library installation in a directory.
15656finish_cmds=$lt_finish_cmds
15657
15658# Same as above, but a single script fragment to be evaled but not shown.
15659finish_eval=$lt_finish_eval
15660
15661# Take the output of nm and produce a listing of raw symbols and C names.
15662global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15663
15664# Transform the output of nm in a proper C declaration
15665global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15666
15667# Transform the output of nm in a C name address pair
15668global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15669
15670# This is the shared library runtime path variable.
15671runpath_var=$runpath_var
15672
15673# This is the shared library path variable.
15674shlibpath_var=$shlibpath_var
15675
15676# Is shlibpath searched before the hard-coded library search path?
15677shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15678
15679# How to hardcode a shared library path into an executable.
15680hardcode_action=$hardcode_action_F77
15681
15682# Whether we should hardcode library paths into libraries.
15683hardcode_into_libs=$hardcode_into_libs
15684
15685# Flag to hardcode \$libdir into a binary during linking.
15686# This must work even if \$libdir does not exist.
15687hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15688
15689# If ld is used when linking, flag to hardcode \$libdir into
15690# a binary during linking. This must work even if \$libdir does
15691# not exist.
15692hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15693
15694# Whether we need a single -rpath flag with a separated argument.
15695hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15696
15697# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15698# resulting binary.
15699hardcode_direct=$hardcode_direct_F77
15700
15701# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15702# resulting binary.
15703hardcode_minus_L=$hardcode_minus_L_F77
15704
15705# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15706# the resulting binary.
15707hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15708
15709# Set to yes if building a shared library automatically hardcodes DIR into the library
15710# and all subsequent libraries and executables linked against it.
15711hardcode_automatic=$hardcode_automatic_F77
15712
15713# Variables whose values should be saved in libtool wrapper scripts and
15714# restored at relink time.
15715variables_saved_for_relink="$variables_saved_for_relink"
15716
15717# Whether libtool must link a program against all its dependency libraries.
15718link_all_deplibs=$link_all_deplibs_F77
15719
15720# Compile-time system search path for libraries
15721sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
15722
15723# Run-time system search path for libraries
15724sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15725
15726# Fix the shell variable \$srcfile for the compiler.
15727fix_srcfile_path="$fix_srcfile_path_F77"
15728
15729# Set to yes if exported symbols are required.
15730always_export_symbols=$always_export_symbols_F77
15731
15732# The commands to list exported symbols.
15733export_symbols_cmds=$lt_export_symbols_cmds_F77
15734
15735# The commands to extract the exported symbol list from a shared archive.
15736extract_expsyms_cmds=$lt_extract_expsyms_cmds
15737
15738# Symbols that should not be listed in the preloaded symbols.
15739exclude_expsyms=$lt_exclude_expsyms_F77
15740
15741# Symbols that must always be exported.
15742include_expsyms=$lt_include_expsyms_F77
15743
15744# ### END LIBTOOL TAG CONFIG: $tagname
15745
15746__EOF__
15747
15748
15749else
15750 # If there is no Makefile yet, we rely on a make rule to execute
15751 # `config.status --recheck' to rerun these tests and create the
15752 # libtool script then.
15753 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15754 if test -f "$ltmain_in"; then
15755 test -f Makefile && make "$ltmain"
15756 fi
15757fi
15758
15759
15760ac_ext=c
15761ac_cpp='$CPP $CPPFLAGS'
15762ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15763ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15764ac_compiler_gnu=$ac_cv_c_compiler_gnu
15765
15766CC="$lt_save_CC"
15767
15768 else
15769 tagname=""
15770 fi
15771 ;;
15772
15773 GCJ)
15774 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15775
15776
15777
15778# Source file extension for Java test sources.
15779ac_ext=java
15780
15781# Object file extension for compiled Java test sources.
15782objext=o
15783objext_GCJ=$objext
15784
15785# Code to be used in simple compile tests
15786lt_simple_compile_test_code="class foo {}\n"
15787
15788# Code to be used in simple link tests
15789lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15790
15791# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15792
15793# If no C compiler was specified, use CC.
15794LTCC=${LTCC-"$CC"}
15795
15796# If no C compiler flags were specified, use CFLAGS.
15797LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15798
15799# Allow CC to be a program name with arguments.
15800compiler=$CC
15801
15802
15803# save warnings/boilerplate of simple test code
15804ac_outfile=conftest.$ac_objext
15805printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15806eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15807_lt_compiler_boilerplate=`cat conftest.err`
15808$rm conftest*
15809
15810ac_outfile=conftest.$ac_objext
15811printf "$lt_simple_link_test_code" >conftest.$ac_ext
15812eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15813_lt_linker_boilerplate=`cat conftest.err`
15814$rm conftest*
15815
15816
15817# Allow CC to be a program name with arguments.
15818lt_save_CC="$CC"
15819CC=${GCJ-"gcj"}
15820compiler=$CC
15821compiler_GCJ=$CC
15822for cc_temp in $compiler""; do
15823 case $cc_temp in
15824 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15825 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15826 \-*) ;;
15827 *) break;;
15828 esac
15829done
15830cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15831
15832
15833# GCJ did not exist at the time GCC didn't implicitly link libc in.
15834archive_cmds_need_lc_GCJ=no
15835
15836old_archive_cmds_GCJ=$old_archive_cmds
15837
15838
15839lt_prog_compiler_no_builtin_flag_GCJ=
15840
15841if test "$GCC" = yes; then
15842 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15843
15844
15845echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15846echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15847if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15848 echo $ECHO_N "(cached) $ECHO_C" >&6
15849else
15850 lt_cv_prog_compiler_rtti_exceptions=no
15851 ac_outfile=conftest.$ac_objext
15852 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15853 lt_compiler_flag="-fno-rtti -fno-exceptions"
15854 # Insert the option either (1) after the last *FLAGS variable, or
15855 # (2) before a word containing "conftest.", or (3) at the end.
15856 # Note that $ac_compile itself does not contain backslashes and begins
15857 # with a dollar sign (not a hyphen), so the echo should work correctly.
15858 # The option is referenced via a variable to avoid confusing sed.
15859 lt_compile=`echo "$ac_compile" | $SED \
15860 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15861 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15862 -e 's:$: $lt_compiler_flag:'`
5e9b5d83 15863 (eval echo "\"\$as_me:15863: $lt_compile\"" >&5)
bf9f3bac 15864 (eval "$lt_compile" 2>conftest.err)
15865 ac_status=$?
15866 cat conftest.err >&5
5e9b5d83 15867 echo "$as_me:15867: \$? = $ac_status" >&5
bf9f3bac 15868 if (exit $ac_status) && test -s "$ac_outfile"; then
15869 # The compiler can only warn and ignore the option if not recognized
15870 # So say no if there are warnings other than the usual output.
15871 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15872 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15873 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15874 lt_cv_prog_compiler_rtti_exceptions=yes
15875 fi
15876 fi
15877 $rm conftest*
15878
15879fi
15880echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15881echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15882
15883if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15884 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15885else
15886 :
15887fi
15888
15889fi
15890
15891lt_prog_compiler_wl_GCJ=
15892lt_prog_compiler_pic_GCJ=
15893lt_prog_compiler_static_GCJ=
15894
15895echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15896echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15897
15898 if test "$GCC" = yes; then
15899 lt_prog_compiler_wl_GCJ='-Wl,'
15900 lt_prog_compiler_static_GCJ='-static'
15901
15902 case $host_os in
15903 aix*)
15904 # All AIX code is PIC.
15905 if test "$host_cpu" = ia64; then
15906 # AIX 5 now supports IA64 processor
15907 lt_prog_compiler_static_GCJ='-Bstatic'
15908 fi
15909 ;;
15910
15911 amigaos*)
15912 # FIXME: we need at least 68020 code to build shared libraries, but
15913 # adding the `-m68020' flag to GCC prevents building anything better,
15914 # like `-m68040'.
15915 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15916 ;;
15917
15918 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15919 # PIC is the default for these OSes.
15920 ;;
15921
15922 mingw* | pw32* | os2*)
15923 # This hack is so that the source file can tell whether it is being
15924 # built for inclusion in a dll (and should export symbols for example).
15925 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15926 ;;
15927
15928 darwin* | rhapsody*)
15929 # PIC is the default on this platform
15930 # Common symbols not allowed in MH_DYLIB files
15931 lt_prog_compiler_pic_GCJ='-fno-common'
15932 ;;
15933
15934 interix3*)
15935 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15936 # Instead, we relocate shared libraries at runtime.
15937 ;;
15938
15939 msdosdjgpp*)
15940 # Just because we use GCC doesn't mean we suddenly get shared libraries
15941 # on systems that don't support them.
15942 lt_prog_compiler_can_build_shared_GCJ=no
15943 enable_shared=no
15944 ;;
15945
15946 sysv4*MP*)
15947 if test -d /usr/nec; then
15948 lt_prog_compiler_pic_GCJ=-Kconform_pic
15949 fi
15950 ;;
15951
15952 hpux*)
15953 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15954 # not for PA HP-UX.
15955 case $host_cpu in
15956 hppa*64*|ia64*)
15957 # +Z the default
15958 ;;
15959 *)
15960 lt_prog_compiler_pic_GCJ='-fPIC'
15961 ;;
15962 esac
15963 ;;
15964
15965 *)
15966 lt_prog_compiler_pic_GCJ='-fPIC'
15967 ;;
15968 esac
15969 else
15970 # PORTME Check for flag to pass linker flags through the system compiler.
15971 case $host_os in
15972 aix*)
15973 lt_prog_compiler_wl_GCJ='-Wl,'
15974 if test "$host_cpu" = ia64; then
15975 # AIX 5 now supports IA64 processor
15976 lt_prog_compiler_static_GCJ='-Bstatic'
15977 else
15978 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15979 fi
15980 ;;
15981 darwin*)
15982 # PIC is the default on this platform
15983 # Common symbols not allowed in MH_DYLIB files
15984 case $cc_basename in
15985 xlc*)
15986 lt_prog_compiler_pic_GCJ='-qnocommon'
15987 lt_prog_compiler_wl_GCJ='-Wl,'
15988 ;;
15989 esac
15990 ;;
15991
15992 mingw* | pw32* | os2*)
15993 # This hack is so that the source file can tell whether it is being
15994 # built for inclusion in a dll (and should export symbols for example).
15995 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15996 ;;
15997
15998 hpux9* | hpux10* | hpux11*)
15999 lt_prog_compiler_wl_GCJ='-Wl,'
16000 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16001 # not for PA HP-UX.
16002 case $host_cpu in
16003 hppa*64*|ia64*)
16004 # +Z the default
16005 ;;
16006 *)
16007 lt_prog_compiler_pic_GCJ='+Z'
16008 ;;
16009 esac
16010 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16011 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16012 ;;
16013
16014 irix5* | irix6* | nonstopux*)
16015 lt_prog_compiler_wl_GCJ='-Wl,'
16016 # PIC (with -KPIC) is the default.
16017 lt_prog_compiler_static_GCJ='-non_shared'
16018 ;;
16019
16020 newsos6)
16021 lt_prog_compiler_pic_GCJ='-KPIC'
16022 lt_prog_compiler_static_GCJ='-Bstatic'
16023 ;;
16024
16025 linux*)
16026 case $cc_basename in
16027 icc* | ecc*)
16028 lt_prog_compiler_wl_GCJ='-Wl,'
16029 lt_prog_compiler_pic_GCJ='-KPIC'
16030 lt_prog_compiler_static_GCJ='-static'
16031 ;;
16032 pgcc* | pgf77* | pgf90* | pgf95*)
16033 # Portland Group compilers (*not* the Pentium gcc compiler,
16034 # which looks to be a dead project)
16035 lt_prog_compiler_wl_GCJ='-Wl,'
16036 lt_prog_compiler_pic_GCJ='-fpic'
16037 lt_prog_compiler_static_GCJ='-Bstatic'
16038 ;;
16039 ccc*)
16040 lt_prog_compiler_wl_GCJ='-Wl,'
16041 # All Alpha code is PIC.
16042 lt_prog_compiler_static_GCJ='-non_shared'
16043 ;;
16044 esac
16045 ;;
16046
16047 osf3* | osf4* | osf5*)
16048 lt_prog_compiler_wl_GCJ='-Wl,'
16049 # All OSF/1 code is PIC.
16050 lt_prog_compiler_static_GCJ='-non_shared'
16051 ;;
16052
16053 solaris*)
16054 lt_prog_compiler_pic_GCJ='-KPIC'
16055 lt_prog_compiler_static_GCJ='-Bstatic'
16056 case $cc_basename in
16057 f77* | f90* | f95*)
16058 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16059 *)
16060 lt_prog_compiler_wl_GCJ='-Wl,';;
16061 esac
16062 ;;
16063
16064 sunos4*)
16065 lt_prog_compiler_wl_GCJ='-Qoption ld '
16066 lt_prog_compiler_pic_GCJ='-PIC'
16067 lt_prog_compiler_static_GCJ='-Bstatic'
16068 ;;
16069
16070 sysv4 | sysv4.2uw2* | sysv4.3*)
16071 lt_prog_compiler_wl_GCJ='-Wl,'
16072 lt_prog_compiler_pic_GCJ='-KPIC'
16073 lt_prog_compiler_static_GCJ='-Bstatic'
16074 ;;
16075
16076 sysv4*MP*)
16077 if test -d /usr/nec ;then
16078 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16079 lt_prog_compiler_static_GCJ='-Bstatic'
16080 fi
16081 ;;
16082
16083 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16084 lt_prog_compiler_wl_GCJ='-Wl,'
16085 lt_prog_compiler_pic_GCJ='-KPIC'
16086 lt_prog_compiler_static_GCJ='-Bstatic'
16087 ;;
16088
16089 unicos*)
16090 lt_prog_compiler_wl_GCJ='-Wl,'
16091 lt_prog_compiler_can_build_shared_GCJ=no
16092 ;;
16093
16094 uts4*)
16095 lt_prog_compiler_pic_GCJ='-pic'
16096 lt_prog_compiler_static_GCJ='-Bstatic'
16097 ;;
16098
16099 *)
16100 lt_prog_compiler_can_build_shared_GCJ=no
16101 ;;
16102 esac
16103 fi
16104
16105echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16106echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16107
16108#
16109# Check to make sure the PIC flag actually works.
16110#
16111if test -n "$lt_prog_compiler_pic_GCJ"; then
16112
16113echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16114echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16115if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16116 echo $ECHO_N "(cached) $ECHO_C" >&6
16117else
16118 lt_prog_compiler_pic_works_GCJ=no
16119 ac_outfile=conftest.$ac_objext
16120 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16121 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16122 # Insert the option either (1) after the last *FLAGS variable, or
16123 # (2) before a word containing "conftest.", or (3) at the end.
16124 # Note that $ac_compile itself does not contain backslashes and begins
16125 # with a dollar sign (not a hyphen), so the echo should work correctly.
16126 # The option is referenced via a variable to avoid confusing sed.
16127 lt_compile=`echo "$ac_compile" | $SED \
16128 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16129 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16130 -e 's:$: $lt_compiler_flag:'`
5e9b5d83 16131 (eval echo "\"\$as_me:16131: $lt_compile\"" >&5)
bf9f3bac 16132 (eval "$lt_compile" 2>conftest.err)
16133 ac_status=$?
16134 cat conftest.err >&5
5e9b5d83 16135 echo "$as_me:16135: \$? = $ac_status" >&5
bf9f3bac 16136 if (exit $ac_status) && test -s "$ac_outfile"; then
16137 # The compiler can only warn and ignore the option if not recognized
16138 # So say no if there are warnings other than the usual output.
16139 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16140 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16141 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16142 lt_prog_compiler_pic_works_GCJ=yes
16143 fi
16144 fi
16145 $rm conftest*
16146
16147fi
16148echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16149echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16150
16151if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16152 case $lt_prog_compiler_pic_GCJ in
16153 "" | " "*) ;;
16154 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16155 esac
16156else
16157 lt_prog_compiler_pic_GCJ=
16158 lt_prog_compiler_can_build_shared_GCJ=no
16159fi
16160
16161fi
16162case $host_os in
16163 # For platforms which do not support PIC, -DPIC is meaningless:
16164 *djgpp*)
16165 lt_prog_compiler_pic_GCJ=
16166 ;;
16167 *)
16168 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16169 ;;
16170esac
16171
16172#
16173# Check to make sure the static flag actually works.
16174#
16175wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16176echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16177echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
16178if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16179 echo $ECHO_N "(cached) $ECHO_C" >&6
16180else
16181 lt_prog_compiler_static_works_GCJ=no
16182 save_LDFLAGS="$LDFLAGS"
16183 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16184 printf "$lt_simple_link_test_code" > conftest.$ac_ext
16185 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16186 # The linker can only warn and ignore the option if not recognized
16187 # So say no if there are warnings
16188 if test -s conftest.err; then
16189 # Append any errors to the config.log.
16190 cat conftest.err 1>&5
16191 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16192 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16193 if diff conftest.exp conftest.er2 >/dev/null; then
16194 lt_prog_compiler_static_works_GCJ=yes
16195 fi
16196 else
16197 lt_prog_compiler_static_works_GCJ=yes
16198 fi
16199 fi
16200 $rm conftest*
16201 LDFLAGS="$save_LDFLAGS"
16202
16203fi
16204echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16205echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
16206
16207if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16208 :
16209else
16210 lt_prog_compiler_static_GCJ=
16211fi
16212
16213
16214echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16215echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16216if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16217 echo $ECHO_N "(cached) $ECHO_C" >&6
16218else
16219 lt_cv_prog_compiler_c_o_GCJ=no
16220 $rm -r conftest 2>/dev/null
16221 mkdir conftest
16222 cd conftest
16223 mkdir out
16224 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16225
16226 lt_compiler_flag="-o out/conftest2.$ac_objext"
16227 # Insert the option either (1) after the last *FLAGS variable, or
16228 # (2) before a word containing "conftest.", or (3) at the end.
16229 # Note that $ac_compile itself does not contain backslashes and begins
16230 # with a dollar sign (not a hyphen), so the echo should work correctly.
16231 lt_compile=`echo "$ac_compile" | $SED \
16232 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16233 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16234 -e 's:$: $lt_compiler_flag:'`
5e9b5d83 16235 (eval echo "\"\$as_me:16235: $lt_compile\"" >&5)
bf9f3bac 16236 (eval "$lt_compile" 2>out/conftest.err)
16237 ac_status=$?
16238 cat out/conftest.err >&5
5e9b5d83 16239 echo "$as_me:16239: \$? = $ac_status" >&5
bf9f3bac 16240 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16241 then
16242 # The compiler can only warn and ignore the option if not recognized
16243 # So say no if there are warnings
16244 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16245 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16246 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16247 lt_cv_prog_compiler_c_o_GCJ=yes
16248 fi
16249 fi
16250 chmod u+w . 2>&5
16251 $rm conftest*
16252 # SGI C++ compiler will create directory out/ii_files/ for
16253 # template instantiation
16254 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16255 $rm out/* && rmdir out
16256 cd ..
16257 rmdir conftest
16258 $rm conftest*
16259
16260fi
16261echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16262echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16263
16264
16265hard_links="nottested"
16266if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16267 # do not overwrite the value of need_locks provided by the user
16268 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16269echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16270 hard_links=yes
16271 $rm conftest*
16272 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16273 touch conftest.a
16274 ln conftest.a conftest.b 2>&5 || hard_links=no
16275 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16276 echo "$as_me:$LINENO: result: $hard_links" >&5
16277echo "${ECHO_T}$hard_links" >&6
16278 if test "$hard_links" = no; then
16279 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16280echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16281 need_locks=warn
16282 fi
16283else
16284 need_locks=no
16285fi
16286
16287echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16288echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16289
16290 runpath_var=
16291 allow_undefined_flag_GCJ=
16292 enable_shared_with_static_runtimes_GCJ=no
16293 archive_cmds_GCJ=
16294 archive_expsym_cmds_GCJ=
16295 old_archive_From_new_cmds_GCJ=
16296 old_archive_from_expsyms_cmds_GCJ=
16297 export_dynamic_flag_spec_GCJ=
16298 whole_archive_flag_spec_GCJ=
16299 thread_safe_flag_spec_GCJ=
16300 hardcode_libdir_flag_spec_GCJ=
16301 hardcode_libdir_flag_spec_ld_GCJ=
16302 hardcode_libdir_separator_GCJ=
16303 hardcode_direct_GCJ=no
16304 hardcode_minus_L_GCJ=no
16305 hardcode_shlibpath_var_GCJ=unsupported
16306 link_all_deplibs_GCJ=unknown
16307 hardcode_automatic_GCJ=no
16308 module_cmds_GCJ=
16309 module_expsym_cmds_GCJ=
16310 always_export_symbols_GCJ=no
16311 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16312 # include_expsyms should be a list of space-separated symbols to be *always*
16313 # included in the symbol list
16314 include_expsyms_GCJ=
16315 # exclude_expsyms can be an extended regexp of symbols to exclude
16316 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16317 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16318 # as well as any symbol that contains `d'.
16319 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16320 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16321 # platforms (ab)use it in PIC code, but their linkers get confused if
16322 # the symbol is explicitly referenced. Since portable code cannot
16323 # rely on this symbol name, it's probably fine to never include it in
16324 # preloaded symbol tables.
16325 extract_expsyms_cmds=
16326 # Just being paranoid about ensuring that cc_basename is set.
16327 for cc_temp in $compiler""; do
16328 case $cc_temp in
16329 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16330 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16331 \-*) ;;
16332 *) break;;
16333 esac
16334done
16335cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16336
16337 case $host_os in
16338 cygwin* | mingw* | pw32*)
16339 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16340 # When not using gcc, we currently assume that we are using
16341 # Microsoft Visual C++.
16342 if test "$GCC" != yes; then
16343 with_gnu_ld=no
16344 fi
16345 ;;
16346 interix*)
16347 # we just hope/assume this is gcc and not c89 (= MSVC++)
16348 with_gnu_ld=yes
16349 ;;
16350 openbsd*)
16351 with_gnu_ld=no
16352 ;;
16353 esac
16354
16355 ld_shlibs_GCJ=yes
16356 if test "$with_gnu_ld" = yes; then
16357 # If archive_cmds runs LD, not CC, wlarc should be empty
16358 wlarc='${wl}'
16359
16360 # Set some defaults for GNU ld with shared library support. These
16361 # are reset later if shared libraries are not supported. Putting them
16362 # here allows them to be overridden if necessary.
16363 runpath_var=LD_RUN_PATH
16364 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16365 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16366 # ancient GNU ld didn't support --whole-archive et. al.
16367 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16368 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16369 else
16370 whole_archive_flag_spec_GCJ=
16371 fi
16372 supports_anon_versioning=no
16373 case `$LD -v 2>/dev/null` in
16374 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16375 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16376 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16377 *\ 2.11.*) ;; # other 2.11 versions
16378 *) supports_anon_versioning=yes ;;
16379 esac
16380
16381 # See if GNU ld supports shared libraries.
16382 case $host_os in
16383 aix3* | aix4* | aix5*)
16384 # On AIX/PPC, the GNU linker is very broken
16385 if test "$host_cpu" != ia64; then
16386 ld_shlibs_GCJ=no
16387 cat <<EOF 1>&2
16388
16389*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16390*** to be unable to reliably create shared libraries on AIX.
16391*** Therefore, libtool is disabling shared libraries support. If you
16392*** really care for shared libraries, you may want to modify your PATH
16393*** so that a non-GNU linker is found, and then restart.
16394
16395EOF
16396 fi
16397 ;;
16398
16399 amigaos*)
16400 archive_cmds_GCJ='$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)'
16401 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16402 hardcode_minus_L_GCJ=yes
16403
16404 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16405 # that the semantics of dynamic libraries on AmigaOS, at least up
16406 # to version 4, is to share data among multiple programs linked
16407 # with the same dynamic library. Since this doesn't match the
16408 # behavior of shared libraries on other platforms, we can't use
16409 # them.
16410 ld_shlibs_GCJ=no
16411 ;;
16412
16413 beos*)
16414 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16415 allow_undefined_flag_GCJ=unsupported
16416 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16417 # support --undefined. This deserves some investigation. FIXME
16418 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16419 else
16420 ld_shlibs_GCJ=no
16421 fi
16422 ;;
16423
16424 cygwin* | mingw* | pw32*)
16425 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16426 # as there is no search path for DLLs.
16427 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16428 allow_undefined_flag_GCJ=unsupported
16429 always_export_symbols_GCJ=no
16430 enable_shared_with_static_runtimes_GCJ=yes
16431 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16432
16433 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16434 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16435 # If the export-symbols file already is a .def file (1st line
16436 # is EXPORTS), use it as is; otherwise, prepend...
16437 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16438 cp $export_symbols $output_objdir/$soname.def;
16439 else
16440 echo EXPORTS > $output_objdir/$soname.def;
16441 cat $export_symbols >> $output_objdir/$soname.def;
16442 fi~
16443 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16444 else
16445 ld_shlibs_GCJ=no
16446 fi
16447 ;;
16448
16449 interix3*)
16450 hardcode_direct_GCJ=no
16451 hardcode_shlibpath_var_GCJ=no
16452 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16453 export_dynamic_flag_spec_GCJ='${wl}-E'
16454 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16455 # Instead, shared libraries are loaded at an image base (0x10000000 by
16456 # default) and relocated if they conflict, which is a slow very memory
16457 # consuming and fragmenting process. To avoid this, we pick a random,
16458 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16459 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16460 archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16461 archive_expsym_cmds_GCJ='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'
16462 ;;
16463
16464 linux*)
16465 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16466 tmp_addflag=
16467 case $cc_basename,$host_cpu in
16468 pgcc*) # Portland Group C compiler
16469 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16470 tmp_addflag=' $pic_flag'
16471 ;;
16472 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16473 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16474 tmp_addflag=' $pic_flag -Mnomain' ;;
16475 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16476 tmp_addflag=' -i_dynamic' ;;
16477 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16478 tmp_addflag=' -i_dynamic -nofor_main' ;;
16479 ifc* | ifort*) # Intel Fortran compiler
16480 tmp_addflag=' -nofor_main' ;;
16481 esac
16482 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16483
16484 if test $supports_anon_versioning = yes; then
16485 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16486 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16487 $echo "local: *; };" >> $output_objdir/$libname.ver~
16488 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16489 fi
16490 else
16491 ld_shlibs_GCJ=no
16492 fi
16493 ;;
16494
16495 netbsd*)
16496 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16497 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16498 wlarc=
16499 else
16500 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16501 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16502 fi
16503 ;;
16504
16505 solaris*)
16506 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16507 ld_shlibs_GCJ=no
16508 cat <<EOF 1>&2
16509
16510*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16511*** create shared libraries on Solaris systems. Therefore, libtool
16512*** is disabling shared libraries support. We urge you to upgrade GNU
16513*** binutils to release 2.9.1 or newer. Another option is to modify
16514*** your PATH or compiler configuration so that the native linker is
16515*** used, and then restart.
16516
16517EOF
16518 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16519 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16520 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16521 else
16522 ld_shlibs_GCJ=no
16523 fi
16524 ;;
16525
16526 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16527 case `$LD -v 2>&1` in
16528 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16529 ld_shlibs_GCJ=no
16530 cat <<_LT_EOF 1>&2
16531
16532*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16533*** reliably create shared libraries on SCO systems. Therefore, libtool
16534*** is disabling shared libraries support. We urge you to upgrade GNU
16535*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16536*** your PATH or compiler configuration so that the native linker is
16537*** used, and then restart.
16538
16539_LT_EOF
16540 ;;
16541 *)
16542 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16543 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16544 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16545 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16546 else
16547 ld_shlibs_GCJ=no
16548 fi
16549 ;;
16550 esac
16551 ;;
16552
16553 sunos4*)
16554 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16555 wlarc=
16556 hardcode_direct_GCJ=yes
16557 hardcode_shlibpath_var_GCJ=no
16558 ;;
16559
16560 *)
16561 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16562 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16563 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16564 else
16565 ld_shlibs_GCJ=no
16566 fi
16567 ;;
16568 esac
16569
16570 if test "$ld_shlibs_GCJ" = no; then
16571 runpath_var=
16572 hardcode_libdir_flag_spec_GCJ=
16573 export_dynamic_flag_spec_GCJ=
16574 whole_archive_flag_spec_GCJ=
16575 fi
16576 else
16577 # PORTME fill in a description of your system's linker (not GNU ld)
16578 case $host_os in
16579 aix3*)
16580 allow_undefined_flag_GCJ=unsupported
16581 always_export_symbols_GCJ=yes
16582 archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
16583 # Note: this linker hardcodes the directories in LIBPATH if there
16584 # are no directories specified by -L.
16585 hardcode_minus_L_GCJ=yes
16586 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16587 # Neither direct hardcoding nor static linking is supported with a
16588 # broken collect2.
16589 hardcode_direct_GCJ=unsupported
16590 fi
16591 ;;
16592
16593 aix4* | aix5*)
16594 if test "$host_cpu" = ia64; then
16595 # On IA64, the linker does run time linking by default, so we don't
16596 # have to do anything special.
16597 aix_use_runtimelinking=no
16598 exp_sym_flag='-Bexport'
16599 no_entry_flag=""
16600 else
16601 # If we're using GNU nm, then we don't want the "-C" option.
16602 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16603 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16604 export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16605 else
16606 export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16607 fi
16608 aix_use_runtimelinking=no
16609
16610 # Test if we are trying to use run time linking or normal
16611 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16612 # need to do runtime linking.
16613 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16614 for ld_flag in $LDFLAGS; do
16615 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16616 aix_use_runtimelinking=yes
16617 break
16618 fi
16619 done
16620 ;;
16621 esac
16622
16623 exp_sym_flag='-bexport'
16624 no_entry_flag='-bnoentry'
16625 fi
16626
16627 # When large executables or shared objects are built, AIX ld can
16628 # have problems creating the table of contents. If linking a library
16629 # or program results in "error TOC overflow" add -mminimal-toc to
16630 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16631 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16632
16633 archive_cmds_GCJ=''
16634 hardcode_direct_GCJ=yes
16635 hardcode_libdir_separator_GCJ=':'
16636 link_all_deplibs_GCJ=yes
16637
16638 if test "$GCC" = yes; then
16639 case $host_os in aix4.[012]|aix4.[012].*)
16640 # We only want to do this on AIX 4.2 and lower, the check
16641 # below for broken collect2 doesn't work under 4.3+
16642 collect2name=`${CC} -print-prog-name=collect2`
16643 if test -f "$collect2name" && \
16644 strings "$collect2name" | grep resolve_lib_name >/dev/null
16645 then
16646 # We have reworked collect2
16647 hardcode_direct_GCJ=yes
16648 else
16649 # We have old collect2
16650 hardcode_direct_GCJ=unsupported
16651 # It fails to find uninstalled libraries when the uninstalled
16652 # path is not listed in the libpath. Setting hardcode_minus_L
16653 # to unsupported forces relinking
16654 hardcode_minus_L_GCJ=yes
16655 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16656 hardcode_libdir_separator_GCJ=
16657 fi
16658 ;;
16659 esac
16660 shared_flag='-shared'
16661 if test "$aix_use_runtimelinking" = yes; then
16662 shared_flag="$shared_flag "'${wl}-G'
16663 fi
16664 else
16665 # not using gcc
16666 if test "$host_cpu" = ia64; then
16667 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16668 # chokes on -Wl,-G. The following line is correct:
16669 shared_flag='-G'
16670 else
16671 if test "$aix_use_runtimelinking" = yes; then
16672 shared_flag='${wl}-G'
16673 else
16674 shared_flag='${wl}-bM:SRE'
16675 fi
16676 fi
16677 fi
16678
16679 # It seems that -bexpall does not export symbols beginning with
16680 # underscore (_), so it is better to generate a list of symbols to export.
16681 always_export_symbols_GCJ=yes
16682 if test "$aix_use_runtimelinking" = yes; then
16683 # Warning - without using the other runtime loading flags (-brtl),
16684 # -berok will link without error, but may produce a broken library.
16685 allow_undefined_flag_GCJ='-berok'
16686 # Determine the default libpath from the value encoded in an empty executable.
16687 cat >conftest.$ac_ext <<_ACEOF
16688/* confdefs.h. */
16689_ACEOF
16690cat confdefs.h >>conftest.$ac_ext
16691cat >>conftest.$ac_ext <<_ACEOF
16692/* end confdefs.h. */
16693
16694int
16695main ()
16696{
16697
16698 ;
16699 return 0;
16700}
16701_ACEOF
16702rm -f conftest.$ac_objext conftest$ac_exeext
16703if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16704 (eval $ac_link) 2>conftest.er1
16705 ac_status=$?
16706 grep -v '^ *+' conftest.er1 >conftest.err
16707 rm -f conftest.er1
16708 cat conftest.err >&5
16709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16710 (exit $ac_status); } &&
16711 { ac_try='test -z "$ac_c_werror_flag"
16712 || test ! -s conftest.err'
16713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16714 (eval $ac_try) 2>&5
16715 ac_status=$?
16716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16717 (exit $ac_status); }; } &&
16718 { ac_try='test -s conftest$ac_exeext'
16719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16720 (eval $ac_try) 2>&5
16721 ac_status=$?
16722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16723 (exit $ac_status); }; }; then
16724
16725aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16726}'`
16727# Check for a 64-bit object if we didn't find anything.
16728if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16729}'`; fi
16730else
16731 echo "$as_me: failed program was:" >&5
16732sed 's/^/| /' conftest.$ac_ext >&5
16733
16734fi
16735rm -f conftest.err conftest.$ac_objext \
16736 conftest$ac_exeext conftest.$ac_ext
16737if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16738
16739 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16740 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16741 else
16742 if test "$host_cpu" = ia64; then
16743 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16744 allow_undefined_flag_GCJ="-z nodefs"
16745 archive_expsym_cmds_GCJ="\$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"
16746 else
16747 # Determine the default libpath from the value encoded in an empty executable.
16748 cat >conftest.$ac_ext <<_ACEOF
16749/* confdefs.h. */
16750_ACEOF
16751cat confdefs.h >>conftest.$ac_ext
16752cat >>conftest.$ac_ext <<_ACEOF
16753/* end confdefs.h. */
16754
16755int
16756main ()
16757{
16758
16759 ;
16760 return 0;
16761}
16762_ACEOF
16763rm -f conftest.$ac_objext conftest$ac_exeext
16764if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16765 (eval $ac_link) 2>conftest.er1
16766 ac_status=$?
16767 grep -v '^ *+' conftest.er1 >conftest.err
16768 rm -f conftest.er1
16769 cat conftest.err >&5
16770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16771 (exit $ac_status); } &&
16772 { ac_try='test -z "$ac_c_werror_flag"
16773 || test ! -s conftest.err'
16774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16775 (eval $ac_try) 2>&5
16776 ac_status=$?
16777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16778 (exit $ac_status); }; } &&
16779 { ac_try='test -s conftest$ac_exeext'
16780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16781 (eval $ac_try) 2>&5
16782 ac_status=$?
16783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16784 (exit $ac_status); }; }; then
16785
16786aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16787}'`
16788# Check for a 64-bit object if we didn't find anything.
16789if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16790}'`; fi
16791else
16792 echo "$as_me: failed program was:" >&5
16793sed 's/^/| /' conftest.$ac_ext >&5
16794
16795fi
16796rm -f conftest.err conftest.$ac_objext \
16797 conftest$ac_exeext conftest.$ac_ext
16798if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16799
16800 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16801 # Warning - without using the other run time loading flags,
16802 # -berok will link without error, but may produce a broken library.
16803 no_undefined_flag_GCJ=' ${wl}-bernotok'
16804 allow_undefined_flag_GCJ=' ${wl}-berok'
16805 # Exported symbols can be pulled into shared objects from archives
16806 whole_archive_flag_spec_GCJ='$convenience'
16807 archive_cmds_need_lc_GCJ=yes
16808 # This is similar to how AIX traditionally builds its shared libraries.
16809 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16810 fi
16811 fi
16812 ;;
16813
16814 amigaos*)
16815 archive_cmds_GCJ='$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)'
16816 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16817 hardcode_minus_L_GCJ=yes
16818 # see comment about different semantics on the GNU ld section
16819 ld_shlibs_GCJ=no
16820 ;;
16821
16822 bsdi[45]*)
16823 export_dynamic_flag_spec_GCJ=-rdynamic
16824 ;;
16825
16826 cygwin* | mingw* | pw32*)
16827 # When not using gcc, we currently assume that we are using
16828 # Microsoft Visual C++.
16829 # hardcode_libdir_flag_spec is actually meaningless, as there is
16830 # no search path for DLLs.
16831 hardcode_libdir_flag_spec_GCJ=' '
16832 allow_undefined_flag_GCJ=unsupported
16833 # Tell ltmain to make .lib files, not .a files.
16834 libext=lib
16835 # Tell ltmain to make .dll files, not .so files.
16836 shrext_cmds=".dll"
16837 # FIXME: Setting linknames here is a bad hack.
16838 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16839 # The linker will automatically build a .lib file if we build a DLL.
16840 old_archive_From_new_cmds_GCJ='true'
16841 # FIXME: Should let the user specify the lib program.
16842 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16843 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16844 enable_shared_with_static_runtimes_GCJ=yes
16845 ;;
16846
16847 darwin* | rhapsody*)
16848 case $host_os in
16849 rhapsody* | darwin1.[012])
16850 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16851 ;;
16852 *) # Darwin 1.3 on
16853 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16854 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16855 else
16856 case ${MACOSX_DEPLOYMENT_TARGET} in
16857 10.[012])
16858 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16859 ;;
16860 10.*)
16861 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16862 ;;
16863 esac
16864 fi
16865 ;;
16866 esac
16867 archive_cmds_need_lc_GCJ=no
16868 hardcode_direct_GCJ=no
16869 hardcode_automatic_GCJ=yes
16870 hardcode_shlibpath_var_GCJ=unsupported
16871 whole_archive_flag_spec_GCJ=''
16872 link_all_deplibs_GCJ=yes
16873 if test "$GCC" = yes ; then
16874 output_verbose_link_cmd='echo'
16875 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16876 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16877 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16878 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16879 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16880 else
16881 case $cc_basename in
16882 xlc*)
16883 output_verbose_link_cmd='echo'
16884 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16885 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16886 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16887 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16888 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16889 ;;
16890 *)
16891 ld_shlibs_GCJ=no
16892 ;;
16893 esac
16894 fi
16895 ;;
16896
16897 dgux*)
16898 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16899 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16900 hardcode_shlibpath_var_GCJ=no
16901 ;;
16902
16903 freebsd1*)
16904 ld_shlibs_GCJ=no
16905 ;;
16906
16907 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16908 # support. Future versions do this automatically, but an explicit c++rt0.o
16909 # does not break anything, and helps significantly (at the cost of a little
16910 # extra space).
16911 freebsd2.2*)
16912 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16913 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16914 hardcode_direct_GCJ=yes
16915 hardcode_shlibpath_var_GCJ=no
16916 ;;
16917
16918 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16919 freebsd2*)
16920 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16921 hardcode_direct_GCJ=yes
16922 hardcode_minus_L_GCJ=yes
16923 hardcode_shlibpath_var_GCJ=no
16924 ;;
16925
16926 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16927 freebsd* | kfreebsd*-gnu | dragonfly*)
16928 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16929 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16930 hardcode_direct_GCJ=yes
16931 hardcode_shlibpath_var_GCJ=no
16932 ;;
16933
16934 hpux9*)
16935 if test "$GCC" = yes; then
16936 archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
16937 else
16938 archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
16939 fi
16940 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16941 hardcode_libdir_separator_GCJ=:
16942 hardcode_direct_GCJ=yes
16943
16944 # hardcode_minus_L: Not really in the search PATH,
16945 # but as the default location of the library.
16946 hardcode_minus_L_GCJ=yes
16947 export_dynamic_flag_spec_GCJ='${wl}-E'
16948 ;;
16949
16950 hpux10*)
16951 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16952 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16953 else
16954 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16955 fi
16956 if test "$with_gnu_ld" = no; then
16957 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16958 hardcode_libdir_separator_GCJ=:
16959
16960 hardcode_direct_GCJ=yes
16961 export_dynamic_flag_spec_GCJ='${wl}-E'
16962
16963 # hardcode_minus_L: Not really in the search PATH,
16964 # but as the default location of the library.
16965 hardcode_minus_L_GCJ=yes
16966 fi
16967 ;;
16968
16969 hpux11*)
16970 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16971 case $host_cpu in
16972 hppa*64*)
16973 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16974 ;;
16975 ia64*)
16976 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16977 ;;
16978 *)
16979 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16980 ;;
16981 esac
16982 else
16983 case $host_cpu in
16984 hppa*64*)
16985 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16986 ;;
16987 ia64*)
16988 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16989 ;;
16990 *)
16991 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16992 ;;
16993 esac
16994 fi
16995 if test "$with_gnu_ld" = no; then
16996 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16997 hardcode_libdir_separator_GCJ=:
16998
16999 case $host_cpu in
17000 hppa*64*|ia64*)
17001 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17002 hardcode_direct_GCJ=no
17003 hardcode_shlibpath_var_GCJ=no
17004 ;;
17005 *)
17006 hardcode_direct_GCJ=yes
17007 export_dynamic_flag_spec_GCJ='${wl}-E'
17008
17009 # hardcode_minus_L: Not really in the search PATH,
17010 # but as the default location of the library.
17011 hardcode_minus_L_GCJ=yes
17012 ;;
17013 esac
17014 fi
17015 ;;
17016
17017 irix5* | irix6* | nonstopux*)
17018 if test "$GCC" = yes; then
17019 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17020 else
17021 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17022 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17023 fi
17024 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17025 hardcode_libdir_separator_GCJ=:
17026 link_all_deplibs_GCJ=yes
17027 ;;
17028
17029 netbsd*)
17030 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17031 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17032 else
17033 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17034 fi
17035 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17036 hardcode_direct_GCJ=yes
17037 hardcode_shlibpath_var_GCJ=no
17038 ;;
17039
17040 newsos6)
17041 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17042 hardcode_direct_GCJ=yes
17043 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17044 hardcode_libdir_separator_GCJ=:
17045 hardcode_shlibpath_var_GCJ=no
17046 ;;
17047
17048 openbsd*)
17049 hardcode_direct_GCJ=yes
17050 hardcode_shlibpath_var_GCJ=no
17051 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17052 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17053 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17054 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17055 export_dynamic_flag_spec_GCJ='${wl}-E'
17056 else
17057 case $host_os in
17058 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17059 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17060 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17061 ;;
17062 *)
17063 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17064 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17065 ;;
17066 esac
17067 fi
17068 ;;
17069
17070 os2*)
17071 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17072 hardcode_minus_L_GCJ=yes
17073 allow_undefined_flag_GCJ=unsupported
17074 archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
17075 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17076 ;;
17077
17078 osf3*)
17079 if test "$GCC" = yes; then
17080 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17081 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17082 else
17083 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17084 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17085 fi
17086 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17087 hardcode_libdir_separator_GCJ=:
17088 ;;
17089
17090 osf4* | osf5*) # as osf3* with the addition of -msym flag
17091 if test "$GCC" = yes; then
17092 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17093 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17094 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17095 else
17096 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17097 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17098 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
17099 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
17100
17101 # Both c and cxx compiler support -rpath directly
17102 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17103 fi
17104 hardcode_libdir_separator_GCJ=:
17105 ;;
17106
17107 solaris*)
17108 no_undefined_flag_GCJ=' -z text'
17109 if test "$GCC" = yes; then
17110 wlarc='${wl}'
17111 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17112 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17113 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17114 else
17115 wlarc=''
17116 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17117 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17118 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17119 fi
17120 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17121 hardcode_shlibpath_var_GCJ=no
17122 case $host_os in
17123 solaris2.[0-5] | solaris2.[0-5].*) ;;
17124 *)
17125 # The compiler driver will combine linker options so we
17126 # cannot just pass the convience library names through
17127 # without $wl, iff we do not link with $LD.
17128 # Luckily, gcc supports the same syntax we need for Sun Studio.
17129 # Supported since Solaris 2.6 (maybe 2.5.1?)
17130 case $wlarc in
17131 '')
17132 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17133 *)
17134 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
17135 esac ;;
17136 esac
17137 link_all_deplibs_GCJ=yes
17138 ;;
17139
17140 sunos4*)
17141 if test "x$host_vendor" = xsequent; then
17142 # Use $CC to link under sequent, because it throws in some extra .o
17143 # files that make .init and .fini sections work.
17144 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17145 else
17146 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17147 fi
17148 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17149 hardcode_direct_GCJ=yes
17150 hardcode_minus_L_GCJ=yes
17151 hardcode_shlibpath_var_GCJ=no
17152 ;;
17153
17154 sysv4)
17155 case $host_vendor in
17156 sni)
17157 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17158 hardcode_direct_GCJ=yes # is this really true???
17159 ;;
17160 siemens)
17161 ## LD is ld it makes a PLAMLIB
17162 ## CC just makes a GrossModule.
17163 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17164 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17165 hardcode_direct_GCJ=no
17166 ;;
17167 motorola)
17168 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17169 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17170 ;;
17171 esac
17172 runpath_var='LD_RUN_PATH'
17173 hardcode_shlibpath_var_GCJ=no
17174 ;;
17175
17176 sysv4.3*)
17177 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17178 hardcode_shlibpath_var_GCJ=no
17179 export_dynamic_flag_spec_GCJ='-Bexport'
17180 ;;
17181
17182 sysv4*MP*)
17183 if test -d /usr/nec; then
17184 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17185 hardcode_shlibpath_var_GCJ=no
17186 runpath_var=LD_RUN_PATH
17187 hardcode_runpath_var=yes
17188 ld_shlibs_GCJ=yes
17189 fi
17190 ;;
17191
17192 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17193 no_undefined_flag_GCJ='${wl}-z,text'
17194 archive_cmds_need_lc_GCJ=no
17195 hardcode_shlibpath_var_GCJ=no
17196 runpath_var='LD_RUN_PATH'
17197
17198 if test "$GCC" = yes; then
17199 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17200 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17201 else
17202 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17203 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17204 fi
17205 ;;
17206
17207 sysv5* | sco3.2v5* | sco5v6*)
17208 # Note: We can NOT use -z defs as we might desire, because we do not
17209 # link with -lc, and that would cause any symbols used from libc to
17210 # always be unresolved, which means just about no library would
17211 # ever link correctly. If we're not using GNU ld we use -z text
17212 # though, which does catch some bad symbols but isn't as heavy-handed
17213 # as -z defs.
17214 no_undefined_flag_GCJ='${wl}-z,text'
17215 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17216 archive_cmds_need_lc_GCJ=no
17217 hardcode_shlibpath_var_GCJ=no
17218 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17219 hardcode_libdir_separator_GCJ=':'
17220 link_all_deplibs_GCJ=yes
17221 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17222 runpath_var='LD_RUN_PATH'
17223
17224 if test "$GCC" = yes; then
17225 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17226 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17227 else
17228 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17229 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17230 fi
17231 ;;
17232
17233 uts4*)
17234 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17235 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17236 hardcode_shlibpath_var_GCJ=no
17237 ;;
17238
17239 *)
17240 ld_shlibs_GCJ=no
17241 ;;
17242 esac
17243 fi
17244
17245echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17246echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17247test "$ld_shlibs_GCJ" = no && can_build_shared=no
17248
17249#
17250# Do we need to explicitly link libc?
17251#
17252case "x$archive_cmds_need_lc_GCJ" in
17253x|xyes)
17254 # Assume -lc should be added
17255 archive_cmds_need_lc_GCJ=yes
17256
17257 if test "$enable_shared" = yes && test "$GCC" = yes; then
17258 case $archive_cmds_GCJ in
17259 *'~'*)
17260 # FIXME: we may have to deal with multi-command sequences.
17261 ;;
17262 '$CC '*)
17263 # Test whether the compiler implicitly links with -lc since on some
17264 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17265 # to ld, don't add -lc before -lgcc.
17266 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17267echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17268 $rm conftest*
17269 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17270
17271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17272 (eval $ac_compile) 2>&5
17273 ac_status=$?
17274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17275 (exit $ac_status); } 2>conftest.err; then
17276 soname=conftest
17277 lib=conftest
17278 libobjs=conftest.$ac_objext
17279 deplibs=
17280 wl=$lt_prog_compiler_wl_GCJ
17281 pic_flag=$lt_prog_compiler_pic_GCJ
17282 compiler_flags=-v
17283 linker_flags=-v
17284 verstring=
17285 output_objdir=.
17286 libname=conftest
17287 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17288 allow_undefined_flag_GCJ=
17289 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17290 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17291 ac_status=$?
17292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17293 (exit $ac_status); }
17294 then
17295 archive_cmds_need_lc_GCJ=no
17296 else
17297 archive_cmds_need_lc_GCJ=yes
17298 fi
17299 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17300 else
17301 cat conftest.err 1>&5
17302 fi
17303 $rm conftest*
17304 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17305echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17306 ;;
17307 esac
17308 fi
17309 ;;
17310esac
17311
17312echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17313echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17314library_names_spec=
17315libname_spec='lib$name'
17316soname_spec=
17317shrext_cmds=".so"
17318postinstall_cmds=
17319postuninstall_cmds=
17320finish_cmds=
17321finish_eval=
17322shlibpath_var=
17323shlibpath_overrides_runpath=unknown
17324version_type=none
17325dynamic_linker="$host_os ld.so"
17326sys_lib_dlsearch_path_spec="/lib /usr/lib"
17327if test "$GCC" = yes; then
17328 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17329 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17330 # if the path contains ";" then we assume it to be the separator
17331 # otherwise default to the standard path separator (i.e. ":") - it is
17332 # assumed that no part of a normal pathname contains ";" but that should
17333 # okay in the real world where ";" in dirpaths is itself problematic.
17334 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17335 else
17336 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17337 fi
17338else
17339 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17340fi
17341need_lib_prefix=unknown
17342hardcode_into_libs=no
17343
17344# when you set need_version to no, make sure it does not cause -set_version
17345# flags to be left without arguments
17346need_version=unknown
17347
17348case $host_os in
17349aix3*)
17350 version_type=linux
17351 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17352 shlibpath_var=LIBPATH
17353
17354 # AIX 3 has no versioning support, so we append a major version to the name.
17355 soname_spec='${libname}${release}${shared_ext}$major'
17356 ;;
17357
17358aix4* | aix5*)
17359 version_type=linux
17360 need_lib_prefix=no
17361 need_version=no
17362 hardcode_into_libs=yes
17363 if test "$host_cpu" = ia64; then
17364 # AIX 5 supports IA64
17365 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17366 shlibpath_var=LD_LIBRARY_PATH
17367 else
17368 # With GCC up to 2.95.x, collect2 would create an import file
17369 # for dependence libraries. The import file would start with
17370 # the line `#! .'. This would cause the generated library to
17371 # depend on `.', always an invalid library. This was fixed in
17372 # development snapshots of GCC prior to 3.0.
17373 case $host_os in
17374 aix4 | aix4.[01] | aix4.[01].*)
17375 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17376 echo ' yes '
17377 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17378 :
17379 else
17380 can_build_shared=no
17381 fi
17382 ;;
17383 esac
17384 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17385 # soname into executable. Probably we can add versioning support to
17386 # collect2, so additional links can be useful in future.
17387 if test "$aix_use_runtimelinking" = yes; then
17388 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17389 # instead of lib<name>.a to let people know that these are not
17390 # typical AIX shared libraries.
17391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17392 else
17393 # We preserve .a as extension for shared libraries through AIX4.2
17394 # and later when we are not doing run time linking.
17395 library_names_spec='${libname}${release}.a $libname.a'
17396 soname_spec='${libname}${release}${shared_ext}$major'
17397 fi
17398 shlibpath_var=LIBPATH
17399 fi
17400 ;;
17401
17402amigaos*)
17403 library_names_spec='$libname.ixlibrary $libname.a'
17404 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17405 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
17406 ;;
17407
17408beos*)
17409 library_names_spec='${libname}${shared_ext}'
17410 dynamic_linker="$host_os ld.so"
17411 shlibpath_var=LIBRARY_PATH
17412 ;;
17413
17414bsdi[45]*)
17415 version_type=linux
17416 need_version=no
17417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17418 soname_spec='${libname}${release}${shared_ext}$major'
17419 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17420 shlibpath_var=LD_LIBRARY_PATH
17421 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17422 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17423 # the default ld.so.conf also contains /usr/contrib/lib and
17424 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17425 # libtool to hard-code these into programs
17426 ;;
17427
17428cygwin* | mingw* | pw32*)
17429 version_type=windows
17430 shrext_cmds=".dll"
17431 need_version=no
17432 need_lib_prefix=no
17433
17434 case $GCC,$host_os in
17435 yes,cygwin* | yes,mingw* | yes,pw32*)
17436 library_names_spec='$libname.dll.a'
17437 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17438 postinstall_cmds='base_file=`basename \${file}`~
17439 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17440 dldir=$destdir/`dirname \$dlpath`~
17441 test -d \$dldir || mkdir -p \$dldir~
17442 $install_prog $dir/$dlname \$dldir/$dlname~
17443 chmod a+x \$dldir/$dlname'
17444 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17445 dlpath=$dir/\$dldll~
17446 $rm \$dlpath'
17447 shlibpath_overrides_runpath=yes
17448
17449 case $host_os in
17450 cygwin*)
17451 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17452 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17453 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17454 ;;
17455 mingw*)
17456 # MinGW DLLs use traditional 'lib' prefix
17457 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17458 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17459 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17460 # It is most probably a Windows format PATH printed by
17461 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17462 # path with ; separators, and with drive letters. We can handle the
17463 # drive letters (cygwin fileutils understands them), so leave them,
17464 # especially as we might pass files found there to a mingw objdump,
17465 # which wouldn't understand a cygwinified path. Ahh.
17466 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17467 else
17468 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17469 fi
17470 ;;
17471 pw32*)
17472 # pw32 DLLs use 'pw' prefix rather than 'lib'
17473 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17474 ;;
17475 esac
17476 ;;
17477
17478 *)
17479 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17480 ;;
17481 esac
17482 dynamic_linker='Win32 ld.exe'
17483 # FIXME: first we should search . and the directory the executable is in
17484 shlibpath_var=PATH
17485 ;;
17486
17487darwin* | rhapsody*)
17488 dynamic_linker="$host_os dyld"
17489 version_type=darwin
17490 need_lib_prefix=no
17491 need_version=no
17492 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17493 soname_spec='${libname}${release}${major}$shared_ext'
17494 shlibpath_overrides_runpath=yes
17495 shlibpath_var=DYLD_LIBRARY_PATH
17496 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17497 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17498 if test "$GCC" = yes; then
17499 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
17500 else
17501 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17502 fi
17503 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17504 ;;
17505
17506dgux*)
17507 version_type=linux
17508 need_lib_prefix=no
17509 need_version=no
17510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17511 soname_spec='${libname}${release}${shared_ext}$major'
17512 shlibpath_var=LD_LIBRARY_PATH
17513 ;;
17514
17515freebsd1*)
17516 dynamic_linker=no
17517 ;;
17518
17519kfreebsd*-gnu)
17520 version_type=linux
17521 need_lib_prefix=no
17522 need_version=no
17523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17524 soname_spec='${libname}${release}${shared_ext}$major'
17525 shlibpath_var=LD_LIBRARY_PATH
17526 shlibpath_overrides_runpath=no
17527 hardcode_into_libs=yes
17528 dynamic_linker='GNU ld.so'
17529 ;;
17530
17531freebsd* | dragonfly*)
17532 # DragonFly does not have aout. When/if they implement a new
17533 # versioning mechanism, adjust this.
17534 if test -x /usr/bin/objformat; then
17535 objformat=`/usr/bin/objformat`
17536 else
17537 case $host_os in
17538 freebsd[123]*) objformat=aout ;;
17539 *) objformat=elf ;;
17540 esac
17541 fi
17542 version_type=freebsd-$objformat
17543 case $version_type in
17544 freebsd-elf*)
17545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17546 need_version=no
17547 need_lib_prefix=no
17548 ;;
17549 freebsd-*)
17550 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17551 need_version=yes
17552 ;;
17553 esac
17554 shlibpath_var=LD_LIBRARY_PATH
17555 case $host_os in
17556 freebsd2*)
17557 shlibpath_overrides_runpath=yes
17558 ;;
17559 freebsd3.[01]* | freebsdelf3.[01]*)
17560 shlibpath_overrides_runpath=yes
17561 hardcode_into_libs=yes
17562 ;;
17563 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17564 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17565 shlibpath_overrides_runpath=no
17566 hardcode_into_libs=yes
17567 ;;
17568 freebsd*) # from 4.6 on
17569 shlibpath_overrides_runpath=yes
17570 hardcode_into_libs=yes
17571 ;;
17572 esac
17573 ;;
17574
17575gnu*)
17576 version_type=linux
17577 need_lib_prefix=no
17578 need_version=no
17579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17580 soname_spec='${libname}${release}${shared_ext}$major'
17581 shlibpath_var=LD_LIBRARY_PATH
17582 hardcode_into_libs=yes
17583 ;;
17584
17585hpux9* | hpux10* | hpux11*)
17586 # Give a soname corresponding to the major version so that dld.sl refuses to
17587 # link against other versions.
17588 version_type=sunos
17589 need_lib_prefix=no
17590 need_version=no
17591 case $host_cpu in
17592 ia64*)
17593 shrext_cmds='.so'
17594 hardcode_into_libs=yes
17595 dynamic_linker="$host_os dld.so"
17596 shlibpath_var=LD_LIBRARY_PATH
17597 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17599 soname_spec='${libname}${release}${shared_ext}$major'
17600 if test "X$HPUX_IA64_MODE" = X32; then
17601 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17602 else
17603 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17604 fi
17605 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17606 ;;
17607 hppa*64*)
17608 shrext_cmds='.sl'
17609 hardcode_into_libs=yes
17610 dynamic_linker="$host_os dld.sl"
17611 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17612 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17614 soname_spec='${libname}${release}${shared_ext}$major'
17615 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17616 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17617 ;;
17618 *)
17619 shrext_cmds='.sl'
17620 dynamic_linker="$host_os dld.sl"
17621 shlibpath_var=SHLIB_PATH
17622 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17624 soname_spec='${libname}${release}${shared_ext}$major'
17625 ;;
17626 esac
17627 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17628 postinstall_cmds='chmod 555 $lib'
17629 ;;
17630
17631interix3*)
17632 version_type=linux
17633 need_lib_prefix=no
17634 need_version=no
17635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17636 soname_spec='${libname}${release}${shared_ext}$major'
17637 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17638 shlibpath_var=LD_LIBRARY_PATH
17639 shlibpath_overrides_runpath=no
17640 hardcode_into_libs=yes
17641 ;;
17642
17643irix5* | irix6* | nonstopux*)
17644 case $host_os in
17645 nonstopux*) version_type=nonstopux ;;
17646 *)
17647 if test "$lt_cv_prog_gnu_ld" = yes; then
17648 version_type=linux
17649 else
17650 version_type=irix
17651 fi ;;
17652 esac
17653 need_lib_prefix=no
17654 need_version=no
17655 soname_spec='${libname}${release}${shared_ext}$major'
17656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17657 case $host_os in
17658 irix5* | nonstopux*)
17659 libsuff= shlibsuff=
17660 ;;
17661 *)
17662 case $LD in # libtool.m4 will add one of these switches to LD
17663 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17664 libsuff= shlibsuff= libmagic=32-bit;;
17665 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17666 libsuff=32 shlibsuff=N32 libmagic=N32;;
17667 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17668 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17669 *) libsuff= shlibsuff= libmagic=never-match;;
17670 esac
17671 ;;
17672 esac
17673 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17674 shlibpath_overrides_runpath=no
17675 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17676 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17677 hardcode_into_libs=yes
17678 ;;
17679
17680# No shared lib support for Linux oldld, aout, or coff.
17681linux*oldld* | linux*aout* | linux*coff*)
17682 dynamic_linker=no
17683 ;;
17684
17685# This must be Linux ELF.
17686linux*)
17687 version_type=linux
17688 need_lib_prefix=no
17689 need_version=no
17690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17691 soname_spec='${libname}${release}${shared_ext}$major'
17692 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17693 shlibpath_var=LD_LIBRARY_PATH
17694 shlibpath_overrides_runpath=no
17695 # This implies no fast_install, which is unacceptable.
17696 # Some rework will be needed to allow for fast_install
17697 # before this can be enabled.
17698 hardcode_into_libs=yes
17699
17700 # find out which ABI we are using
17701 libsuff=
17702 case "$host_cpu" in
17703 x86_64*|s390x*|powerpc64*)
5e9b5d83 17704 echo '#line 17704 "configure"' > conftest.$ac_ext
bf9f3bac 17705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17706 (eval $ac_compile) 2>&5
17707 ac_status=$?
17708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17709 (exit $ac_status); }; then
17710 case `/usr/bin/file conftest.$ac_objext` in
17711 *64-bit*)
17712 libsuff=64
17713 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
17714 ;;
17715 esac
17716 fi
17717 rm -rf conftest*
17718 ;;
17719 esac
17720
17721 # Append ld.so.conf contents to the search path
17722 if test -f /etc/ld.so.conf; then
17723 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/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17724 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
17725 fi
17726
17727 # We used to test for /lib/ld.so.1 and disable shared libraries on
17728 # powerpc, because MkLinux only supported shared libraries with the
17729 # GNU dynamic linker. Since this was broken with cross compilers,
17730 # most powerpc-linux boxes support dynamic linking these days and
17731 # people can always --disable-shared, the test was removed, and we
17732 # assume the GNU/Linux dynamic linker is in use.
17733 dynamic_linker='GNU/Linux ld.so'
17734 ;;
17735
17736knetbsd*-gnu)
17737 version_type=linux
17738 need_lib_prefix=no
17739 need_version=no
17740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17741 soname_spec='${libname}${release}${shared_ext}$major'
17742 shlibpath_var=LD_LIBRARY_PATH
17743 shlibpath_overrides_runpath=no
17744 hardcode_into_libs=yes
17745 dynamic_linker='GNU ld.so'
17746 ;;
17747
17748netbsd*)
17749 version_type=sunos
17750 need_lib_prefix=no
17751 need_version=no
17752 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17754 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17755 dynamic_linker='NetBSD (a.out) ld.so'
17756 else
17757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17758 soname_spec='${libname}${release}${shared_ext}$major'
17759 dynamic_linker='NetBSD ld.elf_so'
17760 fi
17761 shlibpath_var=LD_LIBRARY_PATH
17762 shlibpath_overrides_runpath=yes
17763 hardcode_into_libs=yes
17764 ;;
17765
17766newsos6)
17767 version_type=linux
17768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17769 shlibpath_var=LD_LIBRARY_PATH
17770 shlibpath_overrides_runpath=yes
17771 ;;
17772
17773nto-qnx*)
17774 version_type=linux
17775 need_lib_prefix=no
17776 need_version=no
17777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17778 soname_spec='${libname}${release}${shared_ext}$major'
17779 shlibpath_var=LD_LIBRARY_PATH
17780 shlibpath_overrides_runpath=yes
17781 ;;
17782
17783openbsd*)
17784 version_type=sunos
17785 sys_lib_dlsearch_path_spec="/usr/lib"
17786 need_lib_prefix=no
17787 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17788 case $host_os in
17789 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17790 *) need_version=no ;;
17791 esac
17792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17793 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17794 shlibpath_var=LD_LIBRARY_PATH
17795 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17796 case $host_os in
17797 openbsd2.[89] | openbsd2.[89].*)
17798 shlibpath_overrides_runpath=no
17799 ;;
17800 *)
17801 shlibpath_overrides_runpath=yes
17802 ;;
17803 esac
17804 else
17805 shlibpath_overrides_runpath=yes
17806 fi
17807 ;;
17808
17809os2*)
17810 libname_spec='$name'
17811 shrext_cmds=".dll"
17812 need_lib_prefix=no
17813 library_names_spec='$libname${shared_ext} $libname.a'
17814 dynamic_linker='OS/2 ld.exe'
17815 shlibpath_var=LIBPATH
17816 ;;
17817
17818osf3* | osf4* | osf5*)
17819 version_type=osf
17820 need_lib_prefix=no
17821 need_version=no
17822 soname_spec='${libname}${release}${shared_ext}$major'
17823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17824 shlibpath_var=LD_LIBRARY_PATH
17825 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17826 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17827 ;;
17828
17829solaris*)
17830 version_type=linux
17831 need_lib_prefix=no
17832 need_version=no
17833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17834 soname_spec='${libname}${release}${shared_ext}$major'
17835 shlibpath_var=LD_LIBRARY_PATH
17836 shlibpath_overrides_runpath=yes
17837 hardcode_into_libs=yes
17838 # ldd complains unless libraries are executable
17839 postinstall_cmds='chmod +x $lib'
17840 ;;
17841
17842sunos4*)
17843 version_type=sunos
17844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17845 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17846 shlibpath_var=LD_LIBRARY_PATH
17847 shlibpath_overrides_runpath=yes
17848 if test "$with_gnu_ld" = yes; then
17849 need_lib_prefix=no
17850 fi
17851 need_version=yes
17852 ;;
17853
17854sysv4 | sysv4.3*)
17855 version_type=linux
17856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17857 soname_spec='${libname}${release}${shared_ext}$major'
17858 shlibpath_var=LD_LIBRARY_PATH
17859 case $host_vendor in
17860 sni)
17861 shlibpath_overrides_runpath=no
17862 need_lib_prefix=no
17863 export_dynamic_flag_spec='${wl}-Blargedynsym'
17864 runpath_var=LD_RUN_PATH
17865 ;;
17866 siemens)
17867 need_lib_prefix=no
17868 ;;
17869 motorola)
17870 need_lib_prefix=no
17871 need_version=no
17872 shlibpath_overrides_runpath=no
17873 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17874 ;;
17875 esac
17876 ;;
17877
17878sysv4*MP*)
17879 if test -d /usr/nec ;then
17880 version_type=linux
17881 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17882 soname_spec='$libname${shared_ext}.$major'
17883 shlibpath_var=LD_LIBRARY_PATH
17884 fi
17885 ;;
17886
17887sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17888 version_type=freebsd-elf
17889 need_lib_prefix=no
17890 need_version=no
17891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17892 soname_spec='${libname}${release}${shared_ext}$major'
17893 shlibpath_var=LD_LIBRARY_PATH
17894 hardcode_into_libs=yes
17895 if test "$with_gnu_ld" = yes; then
17896 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17897 shlibpath_overrides_runpath=no
17898 else
17899 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17900 shlibpath_overrides_runpath=yes
17901 case $host_os in
17902 sco3.2v5*)
17903 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17904 ;;
17905 esac
17906 fi
17907 sys_lib_dlsearch_path_spec='/usr/lib'
17908 ;;
17909
17910uts4*)
17911 version_type=linux
17912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17913 soname_spec='${libname}${release}${shared_ext}$major'
17914 shlibpath_var=LD_LIBRARY_PATH
17915 ;;
17916
17917*)
17918 dynamic_linker=no
17919 ;;
17920esac
17921echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17922echo "${ECHO_T}$dynamic_linker" >&6
17923test "$dynamic_linker" = no && can_build_shared=no
17924
17925variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17926if test "$GCC" = yes; then
17927 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17928fi
17929
17930echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17931echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17932hardcode_action_GCJ=
17933if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17934 test -n "$runpath_var_GCJ" || \
17935 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17936
17937 # We can hardcode non-existant directories.
17938 if test "$hardcode_direct_GCJ" != no &&
17939 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17940 # have to relink, otherwise we might link with an installed library
17941 # when we should be linking with a yet-to-be-installed one
17942 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17943 test "$hardcode_minus_L_GCJ" != no; then
17944 # Linking always hardcodes the temporary library directory.
17945 hardcode_action_GCJ=relink
17946 else
17947 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17948 hardcode_action_GCJ=immediate
17949 fi
17950else
17951 # We cannot hardcode anything, or else we can only hardcode existing
17952 # directories.
17953 hardcode_action_GCJ=unsupported
17954fi
17955echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17956echo "${ECHO_T}$hardcode_action_GCJ" >&6
17957
17958if test "$hardcode_action_GCJ" = relink; then
17959 # Fast installation is not supported
17960 enable_fast_install=no
17961elif test "$shlibpath_overrides_runpath" = yes ||
17962 test "$enable_shared" = no; then
17963 # Fast installation is not necessary
17964 enable_fast_install=needless
17965fi
17966
17967
17968# The else clause should only fire when bootstrapping the
17969# libtool distribution, otherwise you forgot to ship ltmain.sh
17970# with your package, and you will get complaints that there are
17971# no rules to generate ltmain.sh.
17972if test -f "$ltmain"; then
17973 # See if we are running on zsh, and set the options which allow our commands through
17974 # without removal of \ escapes.
17975 if test -n "${ZSH_VERSION+set}" ; then
17976 setopt NO_GLOB_SUBST
17977 fi
17978 # Now quote all the things that may contain metacharacters while being
17979 # careful not to overquote the AC_SUBSTed values. We take copies of the
17980 # variables and quote the copies for generation of the libtool script.
17981 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17982 SED SHELL STRIP \
17983 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17984 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17985 deplibs_check_method reload_flag reload_cmds need_locks \
17986 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17987 lt_cv_sys_global_symbol_to_c_name_address \
17988 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17989 old_postinstall_cmds old_postuninstall_cmds \
17990 compiler_GCJ \
17991 CC_GCJ \
17992 LD_GCJ \
17993 lt_prog_compiler_wl_GCJ \
17994 lt_prog_compiler_pic_GCJ \
17995 lt_prog_compiler_static_GCJ \
17996 lt_prog_compiler_no_builtin_flag_GCJ \
17997 export_dynamic_flag_spec_GCJ \
17998 thread_safe_flag_spec_GCJ \
17999 whole_archive_flag_spec_GCJ \
18000 enable_shared_with_static_runtimes_GCJ \
18001 old_archive_cmds_GCJ \
18002 old_archive_from_new_cmds_GCJ \
18003 predep_objects_GCJ \
18004 postdep_objects_GCJ \
18005 predeps_GCJ \
18006 postdeps_GCJ \
18007 compiler_lib_search_path_GCJ \
18008 archive_cmds_GCJ \
18009 archive_expsym_cmds_GCJ \
18010 postinstall_cmds_GCJ \
18011 postuninstall_cmds_GCJ \
18012 old_archive_from_expsyms_cmds_GCJ \
18013 allow_undefined_flag_GCJ \
18014 no_undefined_flag_GCJ \
18015 export_symbols_cmds_GCJ \
18016 hardcode_libdir_flag_spec_GCJ \
18017 hardcode_libdir_flag_spec_ld_GCJ \
18018 hardcode_libdir_separator_GCJ \
18019 hardcode_automatic_GCJ \
18020 module_cmds_GCJ \
18021 module_expsym_cmds_GCJ \
18022 lt_cv_prog_compiler_c_o_GCJ \
18023 exclude_expsyms_GCJ \
18024 include_expsyms_GCJ; do
18025
18026 case $var in
18027 old_archive_cmds_GCJ | \
18028 old_archive_from_new_cmds_GCJ | \
18029 archive_cmds_GCJ | \
18030 archive_expsym_cmds_GCJ | \
18031 module_cmds_GCJ | \
18032 module_expsym_cmds_GCJ | \
18033 old_archive_from_expsyms_cmds_GCJ | \
18034 export_symbols_cmds_GCJ | \
18035 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18036 postinstall_cmds | postuninstall_cmds | \
18037 old_postinstall_cmds | old_postuninstall_cmds | \
18038 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18039 # Double-quote double-evaled strings.
18040 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18041 ;;
18042 *)
18043 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18044 ;;
18045 esac
18046 done
18047
18048 case $lt_echo in
18049 *'\$0 --fallback-echo"')
18050 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18051 ;;
18052 esac
18053
18054cfgfile="$ofile"
18055
18056 cat <<__EOF__ >> "$cfgfile"
18057# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18058
18059# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18060
18061# Shell to use when invoking shell scripts.
18062SHELL=$lt_SHELL
18063
18064# Whether or not to build shared libraries.
18065build_libtool_libs=$enable_shared
18066
18067# Whether or not to build static libraries.
18068build_old_libs=$enable_static
18069
18070# Whether or not to add -lc for building shared libraries.
18071build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18072
18073# Whether or not to disallow shared libs when runtime libs are static
18074allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18075
18076# Whether or not to optimize for fast installation.
18077fast_install=$enable_fast_install
18078
18079# The host system.
18080host_alias=$host_alias
18081host=$host
18082host_os=$host_os
18083
18084# The build system.
18085build_alias=$build_alias
18086build=$build
18087build_os=$build_os
18088
18089# An echo program that does not interpret backslashes.
18090echo=$lt_echo
18091
18092# The archiver.
18093AR=$lt_AR
18094AR_FLAGS=$lt_AR_FLAGS
18095
18096# A C compiler.
18097LTCC=$lt_LTCC
18098
18099# LTCC compiler flags.
18100LTCFLAGS=$lt_LTCFLAGS
18101
18102# A language-specific compiler.
18103CC=$lt_compiler_GCJ
18104
18105# Is the compiler the GNU C compiler?
18106with_gcc=$GCC_GCJ
18107
18108gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
18109gcc_ver=\`gcc -dumpversion\`
18110
18111# An ERE matcher.
18112EGREP=$lt_EGREP
18113
18114# The linker used to build libraries.
18115LD=$lt_LD_GCJ
18116
18117# Whether we need hard or soft links.
18118LN_S=$lt_LN_S
18119
18120# A BSD-compatible nm program.
18121NM=$lt_NM
18122
18123# A symbol stripping program
18124STRIP=$lt_STRIP
18125
18126# Used to examine libraries when file_magic_cmd begins "file"
18127MAGIC_CMD=$MAGIC_CMD
18128
18129# Used on cygwin: DLL creation program.
18130DLLTOOL="$DLLTOOL"
18131
18132# Used on cygwin: object dumper.
18133OBJDUMP="$OBJDUMP"
18134
18135# Used on cygwin: assembler.
18136AS="$AS"
18137
18138# The name of the directory that contains temporary libtool files.
18139objdir=$objdir
18140
18141# How to create reloadable object files.
18142reload_flag=$lt_reload_flag
18143reload_cmds=$lt_reload_cmds
18144
18145# How to pass a linker flag through the compiler.
18146wl=$lt_lt_prog_compiler_wl_GCJ
18147
18148# Object file suffix (normally "o").
18149objext="$ac_objext"
18150
18151# Old archive suffix (normally "a").
18152libext="$libext"
18153
18154# Shared library suffix (normally ".so").
18155shrext_cmds='$shrext_cmds'
18156
18157# Executable file suffix (normally "").
18158exeext="$exeext"
18159
18160# Additional compiler flags for building library objects.
18161pic_flag=$lt_lt_prog_compiler_pic_GCJ
18162pic_mode=$pic_mode
18163
18164# What is the maximum length of a command?
18165max_cmd_len=$lt_cv_sys_max_cmd_len
18166
18167# Does compiler simultaneously support -c and -o options?
18168compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18169
18170# Must we lock files when doing compilation?
18171need_locks=$lt_need_locks
18172
18173# Do we need the lib prefix for modules?
18174need_lib_prefix=$need_lib_prefix
18175
18176# Do we need a version for libraries?
18177need_version=$need_version
18178
18179# Whether dlopen is supported.
18180dlopen_support=$enable_dlopen
18181
18182# Whether dlopen of programs is supported.
18183dlopen_self=$enable_dlopen_self
18184
18185# Whether dlopen of statically linked programs is supported.
18186dlopen_self_static=$enable_dlopen_self_static
18187
18188# Compiler flag to prevent dynamic linking.
18189link_static_flag=$lt_lt_prog_compiler_static_GCJ
18190
18191# Compiler flag to turn off builtin functions.
18192no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18193
18194# Compiler flag to allow reflexive dlopens.
18195export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18196
18197# Compiler flag to generate shared objects directly from archives.
18198whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18199
18200# Compiler flag to generate thread-safe objects.
18201thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18202
18203# Library versioning type.
18204version_type=$version_type
18205
18206# Format of library name prefix.
18207libname_spec=$lt_libname_spec
18208
18209# List of archive names. First name is the real one, the rest are links.
18210# The last name is the one that the linker finds with -lNAME.
18211library_names_spec=$lt_library_names_spec
18212
18213# The coded name of the library, if different from the real name.
18214soname_spec=$lt_soname_spec
18215
18216# Commands used to build and install an old-style archive.
18217RANLIB=$lt_RANLIB
18218old_archive_cmds=$lt_old_archive_cmds_GCJ
18219old_postinstall_cmds=$lt_old_postinstall_cmds
18220old_postuninstall_cmds=$lt_old_postuninstall_cmds
18221
18222# Create an old-style archive from a shared archive.
18223old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18224
18225# Create a temporary old-style archive to link instead of a shared archive.
18226old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18227
18228# Commands used to build and install a shared archive.
18229archive_cmds=$lt_archive_cmds_GCJ
18230archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18231postinstall_cmds=$lt_postinstall_cmds
18232postuninstall_cmds=$lt_postuninstall_cmds
18233
18234# Commands used to build a loadable module (assumed same as above if empty)
18235module_cmds=$lt_module_cmds_GCJ
18236module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18237
18238# Commands to strip libraries.
18239old_striplib=$lt_old_striplib
18240striplib=$lt_striplib
18241
18242# Dependencies to place before the objects being linked to create a
18243# shared library.
18244predep_objects=\`echo $lt_predep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18245
18246# Dependencies to place after the objects being linked to create a
18247# shared library.
18248postdep_objects=\`echo $lt_postdep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18249
18250# Dependencies to place before the objects being linked to create a
18251# shared library.
18252predeps=$lt_predeps_GCJ
18253
18254# Dependencies to place after the objects being linked to create a
18255# shared library.
18256postdeps=$lt_postdeps_GCJ
18257
18258# The library search path used internally by the compiler when linking
18259# a shared library.
18260compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18261
18262# Method to check whether dependent libraries are shared objects.
18263deplibs_check_method=$lt_deplibs_check_method
18264
18265# Command to use when deplibs_check_method == file_magic.
18266file_magic_cmd=$lt_file_magic_cmd
18267
18268# Flag that allows shared libraries with undefined symbols to be built.
18269allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18270
18271# Flag that forces no undefined symbols.
18272no_undefined_flag=$lt_no_undefined_flag_GCJ
18273
18274# Commands used to finish a libtool library installation in a directory.
18275finish_cmds=$lt_finish_cmds
18276
18277# Same as above, but a single script fragment to be evaled but not shown.
18278finish_eval=$lt_finish_eval
18279
18280# Take the output of nm and produce a listing of raw symbols and C names.
18281global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18282
18283# Transform the output of nm in a proper C declaration
18284global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18285
18286# Transform the output of nm in a C name address pair
18287global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18288
18289# This is the shared library runtime path variable.
18290runpath_var=$runpath_var
18291
18292# This is the shared library path variable.
18293shlibpath_var=$shlibpath_var
18294
18295# Is shlibpath searched before the hard-coded library search path?
18296shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18297
18298# How to hardcode a shared library path into an executable.
18299hardcode_action=$hardcode_action_GCJ
18300
18301# Whether we should hardcode library paths into libraries.
18302hardcode_into_libs=$hardcode_into_libs
18303
18304# Flag to hardcode \$libdir into a binary during linking.
18305# This must work even if \$libdir does not exist.
18306hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18307
18308# If ld is used when linking, flag to hardcode \$libdir into
18309# a binary during linking. This must work even if \$libdir does
18310# not exist.
18311hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18312
18313# Whether we need a single -rpath flag with a separated argument.
18314hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18315
18316# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18317# resulting binary.
18318hardcode_direct=$hardcode_direct_GCJ
18319
18320# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18321# resulting binary.
18322hardcode_minus_L=$hardcode_minus_L_GCJ
18323
18324# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18325# the resulting binary.
18326hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18327
18328# Set to yes if building a shared library automatically hardcodes DIR into the library
18329# and all subsequent libraries and executables linked against it.
18330hardcode_automatic=$hardcode_automatic_GCJ
18331
18332# Variables whose values should be saved in libtool wrapper scripts and
18333# restored at relink time.
18334variables_saved_for_relink="$variables_saved_for_relink"
18335
18336# Whether libtool must link a program against all its dependency libraries.
18337link_all_deplibs=$link_all_deplibs_GCJ
18338
18339# Compile-time system search path for libraries
18340sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18341
18342# Run-time system search path for libraries
18343sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18344
18345# Fix the shell variable \$srcfile for the compiler.
18346fix_srcfile_path="$fix_srcfile_path_GCJ"
18347
18348# Set to yes if exported symbols are required.
18349always_export_symbols=$always_export_symbols_GCJ
18350
18351# The commands to list exported symbols.
18352export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18353
18354# The commands to extract the exported symbol list from a shared archive.
18355extract_expsyms_cmds=$lt_extract_expsyms_cmds
18356
18357# Symbols that should not be listed in the preloaded symbols.
18358exclude_expsyms=$lt_exclude_expsyms_GCJ
18359
18360# Symbols that must always be exported.
18361include_expsyms=$lt_include_expsyms_GCJ
18362
18363# ### END LIBTOOL TAG CONFIG: $tagname
18364
18365__EOF__
18366
18367
18368else
18369 # If there is no Makefile yet, we rely on a make rule to execute
18370 # `config.status --recheck' to rerun these tests and create the
18371 # libtool script then.
18372 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18373 if test -f "$ltmain_in"; then
18374 test -f Makefile && make "$ltmain"
18375 fi
18376fi
18377
18378
18379ac_ext=c
18380ac_cpp='$CPP $CPPFLAGS'
18381ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18382ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18383ac_compiler_gnu=$ac_cv_c_compiler_gnu
18384
18385CC="$lt_save_CC"
18386
18387 else
18388 tagname=""
18389 fi
18390 ;;
18391
18392 RC)
18393
18394
18395
18396# Source file extension for RC test sources.
18397ac_ext=rc
18398
18399# Object file extension for compiled RC test sources.
18400objext=o
18401objext_RC=$objext
18402
18403# Code to be used in simple compile tests
18404lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18405
18406# Code to be used in simple link tests
18407lt_simple_link_test_code="$lt_simple_compile_test_code"
18408
18409# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18410
18411# If no C compiler was specified, use CC.
18412LTCC=${LTCC-"$CC"}
18413
18414# If no C compiler flags were specified, use CFLAGS.
18415LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18416
18417# Allow CC to be a program name with arguments.
18418compiler=$CC
18419
18420
18421# save warnings/boilerplate of simple test code
18422ac_outfile=conftest.$ac_objext
18423printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18424eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18425_lt_compiler_boilerplate=`cat conftest.err`
18426$rm conftest*
18427
18428ac_outfile=conftest.$ac_objext
18429printf "$lt_simple_link_test_code" >conftest.$ac_ext
18430eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18431_lt_linker_boilerplate=`cat conftest.err`
18432$rm conftest*
18433
18434
18435# Allow CC to be a program name with arguments.
18436lt_save_CC="$CC"
18437CC=${RC-"windres"}
18438compiler=$CC
18439compiler_RC=$CC
18440for cc_temp in $compiler""; do
18441 case $cc_temp in
18442 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18443 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18444 \-*) ;;
18445 *) break;;
18446 esac
18447done
18448cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18449
18450lt_cv_prog_compiler_c_o_RC=yes
18451
18452# The else clause should only fire when bootstrapping the
18453# libtool distribution, otherwise you forgot to ship ltmain.sh
18454# with your package, and you will get complaints that there are
18455# no rules to generate ltmain.sh.
18456if test -f "$ltmain"; then
18457 # See if we are running on zsh, and set the options which allow our commands through
18458 # without removal of \ escapes.
18459 if test -n "${ZSH_VERSION+set}" ; then
18460 setopt NO_GLOB_SUBST
18461 fi
18462 # Now quote all the things that may contain metacharacters while being
18463 # careful not to overquote the AC_SUBSTed values. We take copies of the
18464 # variables and quote the copies for generation of the libtool script.
18465 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18466 SED SHELL STRIP \
18467 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18468 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18469 deplibs_check_method reload_flag reload_cmds need_locks \
18470 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18471 lt_cv_sys_global_symbol_to_c_name_address \
18472 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18473 old_postinstall_cmds old_postuninstall_cmds \
18474 compiler_RC \
18475 CC_RC \
18476 LD_RC \
18477 lt_prog_compiler_wl_RC \
18478 lt_prog_compiler_pic_RC \
18479 lt_prog_compiler_static_RC \
18480 lt_prog_compiler_no_builtin_flag_RC \
18481 export_dynamic_flag_spec_RC \
18482 thread_safe_flag_spec_RC \
18483 whole_archive_flag_spec_RC \
18484 enable_shared_with_static_runtimes_RC \
18485 old_archive_cmds_RC \
18486 old_archive_from_new_cmds_RC \
18487 predep_objects_RC \
18488 postdep_objects_RC \
18489 predeps_RC \
18490 postdeps_RC \
18491 compiler_lib_search_path_RC \
18492 archive_cmds_RC \
18493 archive_expsym_cmds_RC \
18494 postinstall_cmds_RC \
18495 postuninstall_cmds_RC \
18496 old_archive_from_expsyms_cmds_RC \
18497 allow_undefined_flag_RC \
18498 no_undefined_flag_RC \
18499 export_symbols_cmds_RC \
18500 hardcode_libdir_flag_spec_RC \
18501 hardcode_libdir_flag_spec_ld_RC \
18502 hardcode_libdir_separator_RC \
18503 hardcode_automatic_RC \
18504 module_cmds_RC \
18505 module_expsym_cmds_RC \
18506 lt_cv_prog_compiler_c_o_RC \
18507 exclude_expsyms_RC \
18508 include_expsyms_RC; do
18509
18510 case $var in
18511 old_archive_cmds_RC | \
18512 old_archive_from_new_cmds_RC | \
18513 archive_cmds_RC | \
18514 archive_expsym_cmds_RC | \
18515 module_cmds_RC | \
18516 module_expsym_cmds_RC | \
18517 old_archive_from_expsyms_cmds_RC | \
18518 export_symbols_cmds_RC | \
18519 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18520 postinstall_cmds | postuninstall_cmds | \
18521 old_postinstall_cmds | old_postuninstall_cmds | \
18522 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18523 # Double-quote double-evaled strings.
18524 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18525 ;;
18526 *)
18527 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18528 ;;
18529 esac
18530 done
18531
18532 case $lt_echo in
18533 *'\$0 --fallback-echo"')
18534 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18535 ;;
18536 esac
18537
18538cfgfile="$ofile"
18539
18540 cat <<__EOF__ >> "$cfgfile"
18541# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18542
18543# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18544
18545# Shell to use when invoking shell scripts.
18546SHELL=$lt_SHELL
18547
18548# Whether or not to build shared libraries.
18549build_libtool_libs=$enable_shared
18550
18551# Whether or not to build static libraries.
18552build_old_libs=$enable_static
18553
18554# Whether or not to add -lc for building shared libraries.
18555build_libtool_need_lc=$archive_cmds_need_lc_RC
18556
18557# Whether or not to disallow shared libs when runtime libs are static
18558allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18559
18560# Whether or not to optimize for fast installation.
18561fast_install=$enable_fast_install
18562
18563# The host system.
18564host_alias=$host_alias
18565host=$host
18566host_os=$host_os
18567
18568# The build system.
18569build_alias=$build_alias
18570build=$build
18571build_os=$build_os
18572
18573# An echo program that does not interpret backslashes.
18574echo=$lt_echo
18575
18576# The archiver.
18577AR=$lt_AR
18578AR_FLAGS=$lt_AR_FLAGS
18579
18580# A C compiler.
18581LTCC=$lt_LTCC
18582
18583# LTCC compiler flags.
18584LTCFLAGS=$lt_LTCFLAGS
18585
18586# A language-specific compiler.
18587CC=$lt_compiler_RC
18588
18589# Is the compiler the GNU C compiler?
18590with_gcc=$GCC_RC
18591
18592gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
18593gcc_ver=\`gcc -dumpversion\`
18594
18595# An ERE matcher.
18596EGREP=$lt_EGREP
18597
18598# The linker used to build libraries.
18599LD=$lt_LD_RC
18600
18601# Whether we need hard or soft links.
18602LN_S=$lt_LN_S
18603
18604# A BSD-compatible nm program.
18605NM=$lt_NM
18606
18607# A symbol stripping program
18608STRIP=$lt_STRIP
18609
18610# Used to examine libraries when file_magic_cmd begins "file"
18611MAGIC_CMD=$MAGIC_CMD
18612
18613# Used on cygwin: DLL creation program.
18614DLLTOOL="$DLLTOOL"
18615
18616# Used on cygwin: object dumper.
18617OBJDUMP="$OBJDUMP"
18618
18619# Used on cygwin: assembler.
18620AS="$AS"
18621
18622# The name of the directory that contains temporary libtool files.
18623objdir=$objdir
18624
18625# How to create reloadable object files.
18626reload_flag=$lt_reload_flag
18627reload_cmds=$lt_reload_cmds
18628
18629# How to pass a linker flag through the compiler.
18630wl=$lt_lt_prog_compiler_wl_RC
18631
18632# Object file suffix (normally "o").
18633objext="$ac_objext"
18634
18635# Old archive suffix (normally "a").
18636libext="$libext"
18637
18638# Shared library suffix (normally ".so").
18639shrext_cmds='$shrext_cmds'
18640
18641# Executable file suffix (normally "").
18642exeext="$exeext"
18643
18644# Additional compiler flags for building library objects.
18645pic_flag=$lt_lt_prog_compiler_pic_RC
18646pic_mode=$pic_mode
18647
18648# What is the maximum length of a command?
18649max_cmd_len=$lt_cv_sys_max_cmd_len
18650
18651# Does compiler simultaneously support -c and -o options?
18652compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18653
18654# Must we lock files when doing compilation?
18655need_locks=$lt_need_locks
18656
18657# Do we need the lib prefix for modules?
18658need_lib_prefix=$need_lib_prefix
18659
18660# Do we need a version for libraries?
18661need_version=$need_version
18662
18663# Whether dlopen is supported.
18664dlopen_support=$enable_dlopen
18665
18666# Whether dlopen of programs is supported.
18667dlopen_self=$enable_dlopen_self
18668
18669# Whether dlopen of statically linked programs is supported.
18670dlopen_self_static=$enable_dlopen_self_static
18671
18672# Compiler flag to prevent dynamic linking.
18673link_static_flag=$lt_lt_prog_compiler_static_RC
18674
18675# Compiler flag to turn off builtin functions.
18676no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18677
18678# Compiler flag to allow reflexive dlopens.
18679export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18680
18681# Compiler flag to generate shared objects directly from archives.
18682whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18683
18684# Compiler flag to generate thread-safe objects.
18685thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18686
18687# Library versioning type.
18688version_type=$version_type
18689
18690# Format of library name prefix.
18691libname_spec=$lt_libname_spec
18692
18693# List of archive names. First name is the real one, the rest are links.
18694# The last name is the one that the linker finds with -lNAME.
18695library_names_spec=$lt_library_names_spec
18696
18697# The coded name of the library, if different from the real name.
18698soname_spec=$lt_soname_spec
18699
18700# Commands used to build and install an old-style archive.
18701RANLIB=$lt_RANLIB
18702old_archive_cmds=$lt_old_archive_cmds_RC
18703old_postinstall_cmds=$lt_old_postinstall_cmds
18704old_postuninstall_cmds=$lt_old_postuninstall_cmds
18705
18706# Create an old-style archive from a shared archive.
18707old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18708
18709# Create a temporary old-style archive to link instead of a shared archive.
18710old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18711
18712# Commands used to build and install a shared archive.
18713archive_cmds=$lt_archive_cmds_RC
18714archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18715postinstall_cmds=$lt_postinstall_cmds
18716postuninstall_cmds=$lt_postuninstall_cmds
18717
18718# Commands used to build a loadable module (assumed same as above if empty)
18719module_cmds=$lt_module_cmds_RC
18720module_expsym_cmds=$lt_module_expsym_cmds_RC
18721
18722# Commands to strip libraries.
18723old_striplib=$lt_old_striplib
18724striplib=$lt_striplib
18725
18726# Dependencies to place before the objects being linked to create a
18727# shared library.
18728predep_objects=\`echo $lt_predep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18729
18730# Dependencies to place after the objects being linked to create a
18731# shared library.
18732postdep_objects=\`echo $lt_postdep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18733
18734# Dependencies to place before the objects being linked to create a
18735# shared library.
18736predeps=$lt_predeps_RC
18737
18738# Dependencies to place after the objects being linked to create a
18739# shared library.
18740postdeps=$lt_postdeps_RC
18741
18742# The library search path used internally by the compiler when linking
18743# a shared library.
18744compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18745
18746# Method to check whether dependent libraries are shared objects.
18747deplibs_check_method=$lt_deplibs_check_method
18748
18749# Command to use when deplibs_check_method == file_magic.
18750file_magic_cmd=$lt_file_magic_cmd
18751
18752# Flag that allows shared libraries with undefined symbols to be built.
18753allow_undefined_flag=$lt_allow_undefined_flag_RC
18754
18755# Flag that forces no undefined symbols.
18756no_undefined_flag=$lt_no_undefined_flag_RC
18757
18758# Commands used to finish a libtool library installation in a directory.
18759finish_cmds=$lt_finish_cmds
18760
18761# Same as above, but a single script fragment to be evaled but not shown.
18762finish_eval=$lt_finish_eval
18763
18764# Take the output of nm and produce a listing of raw symbols and C names.
18765global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18766
18767# Transform the output of nm in a proper C declaration
18768global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18769
18770# Transform the output of nm in a C name address pair
18771global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18772
18773# This is the shared library runtime path variable.
18774runpath_var=$runpath_var
18775
18776# This is the shared library path variable.
18777shlibpath_var=$shlibpath_var
18778
18779# Is shlibpath searched before the hard-coded library search path?
18780shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18781
18782# How to hardcode a shared library path into an executable.
18783hardcode_action=$hardcode_action_RC
18784
18785# Whether we should hardcode library paths into libraries.
18786hardcode_into_libs=$hardcode_into_libs
18787
18788# Flag to hardcode \$libdir into a binary during linking.
18789# This must work even if \$libdir does not exist.
18790hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18791
18792# If ld is used when linking, flag to hardcode \$libdir into
18793# a binary during linking. This must work even if \$libdir does
18794# not exist.
18795hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18796
18797# Whether we need a single -rpath flag with a separated argument.
18798hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18799
18800# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18801# resulting binary.
18802hardcode_direct=$hardcode_direct_RC
18803
18804# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18805# resulting binary.
18806hardcode_minus_L=$hardcode_minus_L_RC
18807
18808# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18809# the resulting binary.
18810hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18811
18812# Set to yes if building a shared library automatically hardcodes DIR into the library
18813# and all subsequent libraries and executables linked against it.
18814hardcode_automatic=$hardcode_automatic_RC
18815
18816# Variables whose values should be saved in libtool wrapper scripts and
18817# restored at relink time.
18818variables_saved_for_relink="$variables_saved_for_relink"
18819
18820# Whether libtool must link a program against all its dependency libraries.
18821link_all_deplibs=$link_all_deplibs_RC
18822
18823# Compile-time system search path for libraries
18824sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18825
18826# Run-time system search path for libraries
18827sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18828
18829# Fix the shell variable \$srcfile for the compiler.
18830fix_srcfile_path="$fix_srcfile_path_RC"
18831
18832# Set to yes if exported symbols are required.
18833always_export_symbols=$always_export_symbols_RC
18834
18835# The commands to list exported symbols.
18836export_symbols_cmds=$lt_export_symbols_cmds_RC
18837
18838# The commands to extract the exported symbol list from a shared archive.
18839extract_expsyms_cmds=$lt_extract_expsyms_cmds
18840
18841# Symbols that should not be listed in the preloaded symbols.
18842exclude_expsyms=$lt_exclude_expsyms_RC
18843
18844# Symbols that must always be exported.
18845include_expsyms=$lt_include_expsyms_RC
18846
18847# ### END LIBTOOL TAG CONFIG: $tagname
18848
18849__EOF__
18850
18851
18852else
18853 # If there is no Makefile yet, we rely on a make rule to execute
18854 # `config.status --recheck' to rerun these tests and create the
18855 # libtool script then.
18856 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18857 if test -f "$ltmain_in"; then
18858 test -f Makefile && make "$ltmain"
18859 fi
18860fi
18861
18862
18863ac_ext=c
18864ac_cpp='$CPP $CPPFLAGS'
18865ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18866ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18867ac_compiler_gnu=$ac_cv_c_compiler_gnu
18868
18869CC="$lt_save_CC"
18870
18871 ;;
18872
18873 *)
18874 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18875echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18876 { (exit 1); exit 1; }; }
18877 ;;
18878 esac
18879
18880 # Append the new tag name to the list of available tags.
18881 if test -n "$tagname" ; then
18882 available_tags="$available_tags $tagname"
18883 fi
18884 fi
18885 done
18886 IFS="$lt_save_ifs"
18887
18888 # Now substitute the updated list of available tags.
18889 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18890 mv "${ofile}T" "$ofile"
18891 chmod +x "$ofile"
18892 else
18893 rm -f "${ofile}T"
18894 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18895echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18896 { (exit 1); exit 1; }; }
18897 fi
18898fi
18899
18900
18901
18902# This can be used to rebuild libtool when needed
18903LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18904
18905# Always use our own libtool.
18906LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18907
18908# Prevent multiple expansion
18909
18910
18911
18912
18913
18914
18915
18916
18917
18918
18919
18920
18921
18922
18923
18924
18925
18926
18927
18928
bf9f3bac 18929
86933a6e
BB
18930
18931 echo "$as_me:$LINENO: checking spl license" >&5
18932echo $ECHO_N "checking spl license... $ECHO_C" >&6
18933 LICENSE=GPL
18934 echo "$as_me:$LINENO: result: $LICENSE" >&5
18935echo "${ECHO_T}$LICENSE" >&6
18936 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DHAVE_GPL_ONLY_SYMBOLS"
18937
18938
18939
18940 SPL_CONFIG=all
18941
18942# Check whether --with-config or --without-config was given.
18943if test "${with_config+set}" = set; then
18944 withval="$with_config"
18945 SPL_CONFIG="$withval"
18946fi;
18947
18948 echo "$as_me:$LINENO: checking spl config" >&5
18949echo $ECHO_N "checking spl config... $ECHO_C" >&6
18950 echo "$as_me:$LINENO: result: $SPL_CONFIG" >&5
18951echo "${ECHO_T}$SPL_CONFIG" >&6;
18952
18953
18954 case "$SPL_CONFIG" in
18955 kernel)
18956
18957
18958# Check whether --with-linux or --without-linux was given.
18959if test "${with_linux+set}" = set; then
18960 withval="$with_linux"
18961 kernelsrc="$withval"
18962fi;
18963
18964
18965# Check whether --with-linux-obj or --without-linux-obj was given.
18966if test "${with_linux_obj+set}" = set; then
18967 withval="$with_linux_obj"
18968 kernelbuild="$withval"
18969fi;
18970
18971 echo "$as_me:$LINENO: checking kernel source directory" >&5
18972echo $ECHO_N "checking kernel source directory... $ECHO_C" >&6
18973 if test -z "$kernelsrc"; then
534c4e38
BM
18974 headersdir="/lib/modules/$(uname -r)/build"
18975 if test -e "$headersdir"; then
18976 sourcelink=$(readlink -f "$headersdir")
18977 else
18978 sourcelink=$(ls -1d /usr/src/kernels/* \
18979 /usr/src/linux-* \
18980 2>/dev/null | grep -v obj | tail -1)
18981 fi
86933a6e
BB
18982
18983 if test -e ${sourcelink}; then
18984 kernelsrc=`readlink -f ${sourcelink}`
18985 else
18986 echo "$as_me:$LINENO: result: Not found" >&5
18987echo "${ECHO_T}Not found" >&6
18988 { { echo "$as_me:$LINENO: error:
18989 *** Please specify the location of the kernel source
18990 *** with the '--with-linux=PATH' option" >&5
18991echo "$as_me: error:
18992 *** Please specify the location of the kernel source
18993 *** with the '--with-linux=PATH' option" >&2;}
18994 { (exit 1); exit 1; }; }
18995 fi
18996 else
18997 if test "$kernelsrc" = "NONE"; then
18998 kernsrcver=NONE
18999 fi
19000 fi
19001
19002 echo "$as_me:$LINENO: result: $kernelsrc" >&5
19003echo "${ECHO_T}$kernelsrc" >&6
19004 echo "$as_me:$LINENO: checking kernel build directory" >&5
19005echo $ECHO_N "checking kernel build directory... $ECHO_C" >&6
19006 if test -z "$kernelbuild"; then
749e5eb1 19007 if test -d ${kernelsrc}-obj/`arch`/`arch`; then
86933a6e 19008 kernelbuild=${kernelsrc}-obj/`arch`/`arch`
749e5eb1
BB
19009 elif test -d ${kernelsrc}-obj/`arch`/default; then
19010 kernelbuild=${kernelsrc}-obj/`arch`/default
86933a6e
BB
19011 elif test -d `dirname ${kernelsrc}`/build-`arch`; then
19012 kernelbuild=`dirname ${kernelsrc}`/build-`arch`
19013 else
19014 kernelbuild=${kernelsrc}
19015 fi
19016 fi
19017 echo "$as_me:$LINENO: result: $kernelbuild" >&5
19018echo "${ECHO_T}$kernelbuild" >&6
19019
19020 echo "$as_me:$LINENO: checking kernel source version" >&5
19021echo $ECHO_N "checking kernel source version... $ECHO_C" >&6
19022 if test -r $kernelbuild/include/linux/version.h &&
19023 fgrep -q UTS_RELEASE $kernelbuild/include/linux/version.h; then
19024
19025 kernsrcver=`(echo "#include <linux/version.h>";
19026 echo "kernsrcver=UTS_RELEASE") |
19027 cpp -I $kernelbuild/include |
19028 grep "^kernsrcver=" | cut -d \" -f 2`
19029
19030 elif test -r $kernelbuild/include/linux/utsrelease.h &&
19031 fgrep -q UTS_RELEASE $kernelbuild/include/linux/utsrelease.h; then
19032
19033 kernsrcver=`(echo "#include <linux/utsrelease.h>";
19034 echo "kernsrcver=UTS_RELEASE") |
19035 cpp -I $kernelbuild/include |
19036 grep "^kernsrcver=" | cut -d \" -f 2`
19037 fi
19038
19039 if test -z "$kernsrcver"; then
19040 echo "$as_me:$LINENO: result: Not found" >&5
19041echo "${ECHO_T}Not found" >&6
19042 { { echo "$as_me:$LINENO: error:
19043 *** Cannot determine the version of the linux kernel source.
19044 *** Please prepare the kernel before running this script" >&5
19045echo "$as_me: error:
19046 *** Cannot determine the version of the linux kernel source.
19047 *** Please prepare the kernel before running this script" >&2;}
19048 { (exit 1); exit 1; }; }
19049 fi
19050
19051 echo "$as_me:$LINENO: result: $kernsrcver" >&5
19052echo "${ECHO_T}$kernsrcver" >&6
19053
19054 LINUX=${kernelsrc}
19055 LINUX_OBJ=${kernelbuild}
19056 LINUX_VERSION=${kernsrcver}
19057
19058
19059
19060
19061
19062
bb339d06 19063 modpost=$LINUX/scripts/Makefile.modpost
86933a6e
BB
19064 echo "$as_me:$LINENO: checking kernel file name for module symbols" >&5
19065echo $ECHO_N "checking kernel file name for module symbols... $ECHO_C" >&6
bb339d06
BB
19066 if test -f "$modpost"; then
19067 if grep -q Modules.symvers $modpost; then
19068 LINUX_SYMBOLS=Modules.symvers
19069 else
19070 LINUX_SYMBOLS=Module.symvers
19071 fi
86933a6e 19072 else
bb339d06 19073 LINUX_SYMBOLS=NONE
86933a6e
BB
19074 fi
19075 echo "$as_me:$LINENO: result: $LINUX_SYMBOLS" >&5
19076echo "${ECHO_T}$LINUX_SYMBOLS" >&6
19077
19078
19079
19080
19081 KERNELMAKE_PARAMS="V=1"
19082
19083 abs_srcdir=`readlink -f ${srcdir}`
19084 KERNELCPPFLAGS="$KERNELCPPFLAGS -Wstrict-prototypes -Werror"
19085 KERNELCPPFLAGS="$KERNELCPPFLAGS -I${abs_srcdir} -I${abs_srcdir}/include"
19086
19087 if test "${LINUX_OBJ}" != "${LINUX}"; then
19088 KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
19089 fi
19090
19091
19092
19093
19094
86933a6e
BB
19095 # Check whether --enable-debug or --disable-debug was given.
19096if test "${enable_debug+set}" = set; then
19097 enableval="$enable_debug"
86933a6e 19098
055ffd98
BB
19099else
19100 enable_debug=no
86933a6e 19101fi;
055ffd98
BB
19102
19103 if test "x$enable_debug" = xyes; then
19104 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG"
19105else
19106 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DNDEBUG"
19107fi
19108
19109
19110 echo "$as_me:$LINENO: checking whether debugging is enabled" >&5
19111echo $ECHO_N "checking whether debugging is enabled... $ECHO_C" >&6
19112 echo "$as_me:$LINENO: result: $enable_debug" >&5
19113echo "${ECHO_T}$enable_debug" >&6
86933a6e
BB
19114
19115
86933a6e
BB
19116 # Check whether --enable-debug-kmem or --disable-debug-kmem was given.
19117if test "${enable_debug_kmem+set}" = set; then
19118 enableval="$enable_debug_kmem"
86933a6e 19119
055ffd98
BB
19120else
19121 enable_debug_kmem=yes
86933a6e 19122fi;
055ffd98
BB
19123
19124 if test "x$enable_debug_kmem" = xyes; then
86933a6e
BB
19125
19126cat >>confdefs.h <<\_ACEOF
19127#define DEBUG_KMEM 1
19128_ACEOF
19129
19130 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_KMEM"
055ffd98 19131fi
86933a6e 19132
86933a6e 19133
055ffd98
BB
19134 echo "$as_me:$LINENO: checking whether basic kmem accounting is enabled" >&5
19135echo $ECHO_N "checking whether basic kmem accounting is enabled... $ECHO_C" >&6
19136 echo "$as_me:$LINENO: result: $enable_debug_kmem" >&5
19137echo "${ECHO_T}$enable_debug_kmem" >&6
86933a6e
BB
19138
19139
055ffd98
BB
19140 # Check whether --enable-debug-kmem-tracking or --disable-debug-kmem-tracking was given.
19141if test "${enable_debug_kmem_tracking+set}" = set; then
19142 enableval="$enable_debug_kmem_tracking"
86933a6e 19143
055ffd98
BB
19144else
19145 enable_debug_kmem_tracking=no
86933a6e 19146fi;
055ffd98
BB
19147
19148 if test "x$enable_debug_kmem_tracking" = xyes; then
86933a6e
BB
19149
19150cat >>confdefs.h <<\_ACEOF
055ffd98 19151#define DEBUG_KMEM_TRACKING 1
86933a6e
BB
19152_ACEOF
19153
055ffd98
BB
19154 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_KMEM_TRACKING"
19155fi
19156
19157
19158 echo "$as_me:$LINENO: checking whether detailed kmem tracking is enabled" >&5
19159echo $ECHO_N "checking whether detailed kmem tracking is enabled... $ECHO_C" >&6
19160 echo "$as_me:$LINENO: result: $enable_debug_kmem_tracking" >&5
19161echo "${ECHO_T}$enable_debug_kmem_tracking" >&6
86933a6e 19162
5e9b5d83
BB
19163
19164 # Check whether --enable-atomic-spinlocks or --disable-atomic-spinlocks was given.
19165if test "${enable_atomic_spinlocks+set}" = set; then
19166 enableval="$enable_atomic_spinlocks"
19167
19168else
d04c8a56 19169 enable_atomic_spinlocks=check
5e9b5d83
BB
19170fi;
19171
86933a6e
BB
19172
19173
19174cat >conftest.c <<_ACEOF
19175/* confdefs.h. */
19176_ACEOF
19177cat confdefs.h >>conftest.$ac_ext
19178cat >>conftest.$ac_ext <<_ACEOF
19179/* end confdefs.h. */
19180
19181
d04c8a56 19182 #include <asm/atomic.h>
86933a6e
BB
19183
19184int
19185main (void)
19186{
19187
d04c8a56 19188 atomic64_t *ptr;
86933a6e
BB
19189
19190 ;
19191 return 0;
19192}
19193
19194_ACEOF
19195
19196
19197 rm -Rf build && mkdir -p build
19198 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 19199 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
86933a6e
BB
19200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19201 (eval $ac_try) 2>&5
19202 ac_status=$?
19203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19204 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19206 (eval $ac_try) 2>&5
19207 ac_status=$?
19208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19209 (exit $ac_status); }; }; then
19210
d04c8a56 19211 have_atomic64_t=yes
86933a6e
BB
19212
19213cat >>confdefs.h <<\_ACEOF
d04c8a56 19214#define HAVE_ATOMIC64_T 1
86933a6e
BB
19215_ACEOF
19216
19217
19218else
19219 echo "$as_me: failed program was:" >&5
19220sed 's/^/| /' conftest.$ac_ext >&5
19221
d04c8a56 19222 have_atomic64_t=no
86933a6e
BB
19223
19224
19225
19226fi
19227
19228 rm -Rf build
19229
19230
19231
d04c8a56
BB
19232 if test "x$enable_atomic_spinlocks" = xcheck; then
19233
19234 if test "x$have_atomic64_t" = xyes; then
19235
19236 enable_atomic_spinlocks=no
19237
19238else
19239
19240 enable_atomic_spinlocks=yes
19241
19242fi
19243
19244
19245fi
19246
19247
19248 if test "x$enable_atomic_spinlocks" = xyes; then
19249
19250
19251cat >>confdefs.h <<\_ACEOF
19252#define ATOMIC_SPINLOCK 1
19253_ACEOF
19254
19255
19256else
19257
19258 if test "x$have_atomic64_t" = xno; then
19259
19260 { { echo "$as_me:$LINENO: error: --disable-atomic-spinlocks given but required atomic64 support is unavailable
19261See \`config.log' for more details." >&5
19262echo "$as_me: error: --disable-atomic-spinlocks given but required atomic64 support is unavailable
19263See \`config.log' for more details." >&2;}
19264 { (exit 1); exit 1; }; }
19265
19266fi
19267
19268
19269fi
19270
19271
19272 echo "$as_me:$LINENO: checking whether atomic types use spinlocks" >&5
19273echo $ECHO_N "checking whether atomic types use spinlocks... $ECHO_C" >&6
19274 echo "$as_me:$LINENO: result: $enable_atomic_spinlocks" >&5
19275echo "${ECHO_T}$enable_atomic_spinlocks" >&6
19276
86933a6e
BB
19277 echo "$as_me:$LINENO: checking whether kernel defines atomic64_t" >&5
19278echo $ECHO_N "checking whether kernel defines atomic64_t... $ECHO_C" >&6
d04c8a56
BB
19279 echo "$as_me:$LINENO: result: $have_atomic64_t" >&5
19280echo "${ECHO_T}$have_atomic64_t" >&6
19281
19282 echo "$as_me:$LINENO: checking whether kernel defines atomic64_cmpxchg" >&5
19283echo $ECHO_N "checking whether kernel defines atomic64_cmpxchg... $ECHO_C" >&6
86933a6e
BB
19284
19285
19286cat >conftest.c <<_ACEOF
19287/* confdefs.h. */
19288_ACEOF
19289cat confdefs.h >>conftest.$ac_ext
19290cat >>conftest.$ac_ext <<_ACEOF
19291/* end confdefs.h. */
19292
19293
19294 #include <asm/atomic.h>
19295
19296int
19297main (void)
19298{
19299
d04c8a56 19300 atomic64_cmpxchg((atomic64_t *)NULL, 0, 0);
86933a6e
BB
19301
19302 ;
19303 return 0;
19304}
19305
19306_ACEOF
19307
19308
19309 rm -Rf build && mkdir -p build
19310 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 19311 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
86933a6e
BB
19312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19313 (eval $ac_try) 2>&5
19314 ac_status=$?
19315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19316 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19318 (eval $ac_try) 2>&5
19319 ac_status=$?
19320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19321 (exit $ac_status); }; }; then
19322
19323 echo "$as_me:$LINENO: result: yes" >&5
19324echo "${ECHO_T}yes" >&6
19325
19326cat >>confdefs.h <<\_ACEOF
d04c8a56 19327#define HAVE_ATOMIC64_CMPXCHG 1
86933a6e
BB
19328_ACEOF
19329
19330
19331else
19332 echo "$as_me: failed program was:" >&5
19333sed 's/^/| /' conftest.$ac_ext >&5
19334
19335 echo "$as_me:$LINENO: result: no" >&5
19336echo "${ECHO_T}no" >&6
19337
19338
19339
302b88e6
BB
19340fi
19341
19342 rm -Rf build
19343
19344
19345
d04c8a56
BB
19346 echo "$as_me:$LINENO: checking whether kernel defines atomic64_xchg" >&5
19347echo $ECHO_N "checking whether kernel defines atomic64_xchg... $ECHO_C" >&6
302b88e6
BB
19348
19349
19350cat >conftest.c <<_ACEOF
19351/* confdefs.h. */
19352_ACEOF
19353cat confdefs.h >>conftest.$ac_ext
19354cat >>conftest.$ac_ext <<_ACEOF
19355/* end confdefs.h. */
19356
19357
19358 #include <asm/atomic.h>
19359
19360int
19361main (void)
19362{
19363
d04c8a56 19364 atomic64_xchg((atomic64_t *)NULL, 0);
302b88e6
BB
19365
19366 ;
19367 return 0;
19368}
19369
19370_ACEOF
19371
19372
19373 rm -Rf build && mkdir -p build
19374 echo "obj-m := conftest.o" >build/Makefile
19375 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19377 (eval $ac_try) 2>&5
19378 ac_status=$?
19379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19380 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19382 (eval $ac_try) 2>&5
19383 ac_status=$?
19384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19385 (exit $ac_status); }; }; then
19386
19387 echo "$as_me:$LINENO: result: yes" >&5
19388echo "${ECHO_T}yes" >&6
19389
19390cat >>confdefs.h <<\_ACEOF
d04c8a56 19391#define HAVE_ATOMIC64_XCHG 1
302b88e6
BB
19392_ACEOF
19393
19394
19395else
19396 echo "$as_me: failed program was:" >&5
19397sed 's/^/| /' conftest.$ac_ext >&5
19398
19399 echo "$as_me:$LINENO: result: no" >&5
19400echo "${ECHO_T}no" >&6
19401
19402
19403
19404fi
19405
19406 rm -Rf build
19407
19408
19409
d04c8a56
BB
19410 echo "$as_me:$LINENO: checking whether kernel defines uintptr_t" >&5
19411echo $ECHO_N "checking whether kernel defines uintptr_t... $ECHO_C" >&6
302b88e6
BB
19412
19413
19414cat >conftest.c <<_ACEOF
19415/* confdefs.h. */
19416_ACEOF
19417cat confdefs.h >>conftest.$ac_ext
19418cat >>conftest.$ac_ext <<_ACEOF
19419/* end confdefs.h. */
19420
19421
d04c8a56 19422 #include <linux/types.h>
302b88e6
BB
19423
19424int
19425main (void)
19426{
19427
d04c8a56 19428 uintptr_t *ptr;
302b88e6
BB
19429
19430 ;
19431 return 0;
19432}
19433
19434_ACEOF
19435
19436
19437 rm -Rf build && mkdir -p build
19438 echo "obj-m := conftest.o" >build/Makefile
19439 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19441 (eval $ac_try) 2>&5
19442 ac_status=$?
19443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19444 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19446 (eval $ac_try) 2>&5
19447 ac_status=$?
19448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19449 (exit $ac_status); }; }; then
19450
19451 echo "$as_me:$LINENO: result: yes" >&5
19452echo "${ECHO_T}yes" >&6
19453
19454cat >>confdefs.h <<\_ACEOF
d04c8a56 19455#define HAVE_UINTPTR_T 1
302b88e6
BB
19456_ACEOF
19457
19458
19459else
19460 echo "$as_me: failed program was:" >&5
19461sed 's/^/| /' conftest.$ac_ext >&5
19462
19463 echo "$as_me:$LINENO: result: no" >&5
19464echo "${ECHO_T}no" >&6
19465
19466
19467
86933a6e
BB
19468fi
19469
19470 rm -Rf build
19471
19472
19473
19474 echo "$as_me:$LINENO: checking whether INIT_WORK wants 3 args" >&5
19475echo $ECHO_N "checking whether INIT_WORK wants 3 args... $ECHO_C" >&6
19476
19477
19478cat >conftest.c <<_ACEOF
19479/* confdefs.h. */
19480_ACEOF
19481cat confdefs.h >>conftest.$ac_ext
19482cat >>conftest.$ac_ext <<_ACEOF
19483/* end confdefs.h. */
19484
19485
19486 #include <linux/workqueue.h>
19487
19488int
19489main (void)
19490{
19491
19492 struct work_struct work;
19493 INIT_WORK(&work, NULL, NULL);
19494
19495 ;
19496 return 0;
19497}
19498
19499_ACEOF
19500
19501
19502 rm -Rf build && mkdir -p build
19503 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 19504 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
86933a6e
BB
19505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19506 (eval $ac_try) 2>&5
19507 ac_status=$?
19508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19509 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19511 (eval $ac_try) 2>&5
19512 ac_status=$?
19513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19514 (exit $ac_status); }; }; then
19515
19516 echo "$as_me:$LINENO: result: yes" >&5
19517echo "${ECHO_T}yes" >&6
19518
19519cat >>confdefs.h <<\_ACEOF
19520#define HAVE_3ARGS_INIT_WORK 1
19521_ACEOF
19522
19523
19524else
19525 echo "$as_me: failed program was:" >&5
19526sed 's/^/| /' conftest.$ac_ext >&5
19527
19528 echo "$as_me:$LINENO: result: no" >&5
19529echo "${ECHO_T}no" >&6
19530
19531
19532
19533fi
19534
19535 rm -Rf build
19536
19537
19538
19539 echo "$as_me:$LINENO: checking whether register_sysctl_table() wants 2 args" >&5
19540echo $ECHO_N "checking whether register_sysctl_table() wants 2 args... $ECHO_C" >&6
19541
19542
19543cat >conftest.c <<_ACEOF
19544/* confdefs.h. */
19545_ACEOF
19546cat confdefs.h >>conftest.$ac_ext
19547cat >>conftest.$ac_ext <<_ACEOF
19548/* end confdefs.h. */
19549
19550
19551 #include <linux/sysctl.h>
19552
19553int
19554main (void)
19555{
19556
19557 return register_sysctl_table(NULL,0);
19558
19559 ;
19560 return 0;
19561}
19562
19563_ACEOF
19564
19565
19566 rm -Rf build && mkdir -p build
19567 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 19568 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
86933a6e
BB
19569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19570 (eval $ac_try) 2>&5
19571 ac_status=$?
19572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19573 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19575 (eval $ac_try) 2>&5
19576 ac_status=$?
19577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19578 (exit $ac_status); }; }; then
19579
19580 echo "$as_me:$LINENO: result: yes" >&5
19581echo "${ECHO_T}yes" >&6
19582
19583cat >>confdefs.h <<\_ACEOF
19584#define HAVE_2ARGS_REGISTER_SYSCTL 1
19585_ACEOF
19586
19587
19588else
19589 echo "$as_me: failed program was:" >&5
19590sed 's/^/| /' conftest.$ac_ext >&5
19591
19592 echo "$as_me:$LINENO: result: no" >&5
19593echo "${ECHO_T}no" >&6
19594
19595
19596
19597fi
19598
19599 rm -Rf build
19600
19601
19602
19603
19604 echo "$as_me:$LINENO: checking whether set_shrinker() available" >&5
19605echo $ECHO_N "checking whether set_shrinker() available... $ECHO_C" >&6
19606
19607
19608cat >conftest.c <<_ACEOF
19609/* confdefs.h. */
19610_ACEOF
19611cat confdefs.h >>conftest.$ac_ext
19612cat >>conftest.$ac_ext <<_ACEOF
19613/* end confdefs.h. */
19614
19615
19616 #include <linux/mm.h>
19617
19618int
19619main (void)
19620{
19621
19622 return set_shrinker(DEFAULT_SEEKS, NULL);
19623
19624 ;
19625 return 0;
19626}
19627
19628_ACEOF
19629
19630
19631 rm -Rf build && mkdir -p build
19632 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 19633 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
86933a6e
BB
19634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19635 (eval $ac_try) 2>&5
19636 ac_status=$?
19637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19638 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19640 (eval $ac_try) 2>&5
19641 ac_status=$?
19642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19643 (exit $ac_status); }; }; then
19644
19645 echo "$as_me:$LINENO: result: yes" >&5
19646echo "${ECHO_T}yes" >&6
19647
19648cat >>confdefs.h <<\_ACEOF
19649#define HAVE_SET_SHRINKER 1
19650_ACEOF
19651
19652
19653else
19654 echo "$as_me: failed program was:" >&5
19655sed 's/^/| /' conftest.$ac_ext >&5
19656
19657 echo "$as_me:$LINENO: result: no" >&5
19658echo "${ECHO_T}no" >&6
19659
19660
19661
19662fi
19663
19664 rm -Rf build
19665
19666
19667
19668 echo "$as_me:$LINENO: checking whether struct path used in struct nameidata" >&5
19669echo $ECHO_N "checking whether struct path used in struct nameidata... $ECHO_C" >&6
19670
19671
19672cat >conftest.c <<_ACEOF
19673/* confdefs.h. */
19674_ACEOF
19675cat confdefs.h >>conftest.$ac_ext
19676cat >>conftest.$ac_ext <<_ACEOF
19677/* end confdefs.h. */
19678
19679
19680 #include <linux/namei.h>
19681
19682int
19683main (void)
19684{
19685
19686 struct nameidata nd;
19687
19688 nd.path.mnt = NULL;
19689 nd.path.dentry = NULL;
19690
19691 ;
19692 return 0;
19693}
19694
19695_ACEOF
19696
19697
19698 rm -Rf build && mkdir -p build
19699 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 19700 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
86933a6e
BB
19701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19702 (eval $ac_try) 2>&5
19703 ac_status=$?
19704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19705 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19707 (eval $ac_try) 2>&5
19708 ac_status=$?
19709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19710 (exit $ac_status); }; }; then
19711
19712 echo "$as_me:$LINENO: result: yes" >&5
19713echo "${ECHO_T}yes" >&6
19714
19715cat >>confdefs.h <<\_ACEOF
19716#define HAVE_PATH_IN_NAMEIDATA 1
19717_ACEOF
19718
19719
19720else
19721 echo "$as_me: failed program was:" >&5
19722sed 's/^/| /' conftest.$ac_ext >&5
19723
19724 echo "$as_me:$LINENO: result: no" >&5
19725echo "${ECHO_T}no" >&6
19726
19727
19728
19729fi
19730
19731 rm -Rf build
19732
19733
19734
19735
19736 echo "$as_me:$LINENO: checking whether symbol task_curr is exported" >&5
19737echo $ECHO_N "checking whether symbol task_curr is exported... $ECHO_C" >&6
19738 grep -q -E '[[:space:]]task_curr[[:space:]]' \
19739 $LINUX_OBJ/Module*.symvers 2>/dev/null
19740 rc=$?
19741 if test $rc -ne 0; then
19742 export=0
19743 for file in kernel/sched.c; do
19744 grep -q -E "EXPORT_SYMBOL.*(task_curr)" \
19745 "$LINUX_OBJ/$file" 2>/dev/null
19746 rc=$?
19747 if test $rc -eq 0; then
19748 export=1
19749 break;
19750 fi
19751 done
19752 if test $export -eq 0; then
19753 echo "$as_me:$LINENO: result: no" >&5
19754echo "${ECHO_T}no" >&6
19755
19756 else
19757 echo "$as_me:$LINENO: result: yes" >&5
19758echo "${ECHO_T}yes" >&6
19759
19760cat >>confdefs.h <<\_ACEOF
19761#define HAVE_TASK_CURR 1
19762_ACEOF
19763
19764 fi
19765 else
19766 echo "$as_me:$LINENO: result: yes" >&5
19767echo "${ECHO_T}yes" >&6
19768
19769cat >>confdefs.h <<\_ACEOF
19770#define HAVE_TASK_CURR 1
19771_ACEOF
19772
19773 fi
19774
19775
19776 echo "$as_me:$LINENO: checking whether unnumbered sysctl support exists" >&5
19777echo $ECHO_N "checking whether unnumbered sysctl support exists... $ECHO_C" >&6
19778
19779
19780cat >conftest.c <<_ACEOF
19781/* confdefs.h. */
19782_ACEOF
19783cat confdefs.h >>conftest.$ac_ext
19784cat >>conftest.$ac_ext <<_ACEOF
19785/* end confdefs.h. */
19786
19787
19788 #include <linux/sysctl.h>
19789
19790int
19791main (void)
19792{
19793
19794 #ifndef CTL_UNNUMBERED
19795 #error CTL_UNNUMBERED undefined
19796 #endif
19797
19798 ;
19799 return 0;
19800}
19801
19802_ACEOF
19803
19804
19805 rm -Rf build && mkdir -p build
19806 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 19807 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
86933a6e
BB
19808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19809 (eval $ac_try) 2>&5
19810 ac_status=$?
19811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19812 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19814 (eval $ac_try) 2>&5
19815 ac_status=$?
19816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19817 (exit $ac_status); }; }; then
19818
19819 echo "$as_me:$LINENO: result: yes" >&5
19820echo "${ECHO_T}yes" >&6
19821
19822cat >>confdefs.h <<\_ACEOF
19823#define HAVE_CTL_UNNUMBERED 1
19824_ACEOF
19825
19826
19827else
19828 echo "$as_me: failed program was:" >&5
19829sed 's/^/| /' conftest.$ac_ext >&5
19830
19831 echo "$as_me:$LINENO: result: no" >&5
19832echo "${ECHO_T}no" >&6
19833
19834
19835
19836fi
19837
19838 rm -Rf build
19839
19840
19841
19842 echo "$as_me:$LINENO: checking whether fls64() is available" >&5
19843echo $ECHO_N "checking whether fls64() is available... $ECHO_C" >&6
19844
19845
19846cat >conftest.c <<_ACEOF
19847/* confdefs.h. */
19848_ACEOF
19849cat confdefs.h >>conftest.$ac_ext
19850cat >>conftest.$ac_ext <<_ACEOF
19851/* end confdefs.h. */
19852
19853
19854 #include <linux/bitops.h>
19855
19856int
19857main (void)
19858{
19859
19860 return fls64(0);
19861
19862 ;
19863 return 0;
19864}
19865
19866_ACEOF
19867
19868
19869 rm -Rf build && mkdir -p build
19870 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 19871 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
86933a6e
BB
19872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19873 (eval $ac_try) 2>&5
19874 ac_status=$?
19875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19876 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19878 (eval $ac_try) 2>&5
19879 ac_status=$?
19880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19881 (exit $ac_status); }; }; then
19882
19883 echo "$as_me:$LINENO: result: yes" >&5
19884echo "${ECHO_T}yes" >&6
19885
19886cat >>confdefs.h <<\_ACEOF
19887#define HAVE_FLS64 1
19888_ACEOF
19889
19890
19891else
19892 echo "$as_me: failed program was:" >&5
19893sed 's/^/| /' conftest.$ac_ext >&5
19894
19895 echo "$as_me:$LINENO: result: no" >&5
19896echo "${ECHO_T}no" >&6
19897
19898
19899
19900fi
19901
19902 rm -Rf build
19903
19904
19905
19906
19907 echo "$as_me:$LINENO: checking whether symbol device_create is exported" >&5
19908echo $ECHO_N "checking whether symbol device_create is exported... $ECHO_C" >&6
19909 grep -q -E '[[:space:]]device_create[[:space:]]' \
19910 $LINUX_OBJ/Module*.symvers 2>/dev/null
19911 rc=$?
19912 if test $rc -ne 0; then
19913 export=0
19914 for file in drivers/base/core.c; do
19915 grep -q -E "EXPORT_SYMBOL.*(device_create)" \
19916 "$LINUX_OBJ/$file" 2>/dev/null
19917 rc=$?
19918 if test $rc -eq 0; then
19919 export=1
19920 break;
19921 fi
19922 done
19923 if test $export -eq 0; then
19924 echo "$as_me:$LINENO: result: no" >&5
19925echo "${ECHO_T}no" >&6
19926
19927 else
19928 echo "$as_me:$LINENO: result: yes" >&5
19929echo "${ECHO_T}yes" >&6
19930
19931cat >>confdefs.h <<\_ACEOF
19932#define HAVE_DEVICE_CREATE 1
19933_ACEOF
19934
19935 fi
19936 else
19937 echo "$as_me:$LINENO: result: yes" >&5
19938echo "${ECHO_T}yes" >&6
19939
19940cat >>confdefs.h <<\_ACEOF
19941#define HAVE_DEVICE_CREATE 1
19942_ACEOF
19943
19944 fi
19945
19946
19947
19948 echo "$as_me:$LINENO: checking whether device_create() wants 5 args" >&5
19949echo $ECHO_N "checking whether device_create() wants 5 args... $ECHO_C" >&6
19950 tmp_flags="$EXTRA_KCFLAGS"
19951 EXTRA_KCFLAGS="-Werror"
19952
19953
19954cat >conftest.c <<_ACEOF
19955/* confdefs.h. */
19956_ACEOF
19957cat confdefs.h >>conftest.$ac_ext
19958cat >>conftest.$ac_ext <<_ACEOF
19959/* end confdefs.h. */
19960
19961
19962 #include <linux/device.h>
19963
19964int
19965main (void)
19966{
19967
19968 device_create(NULL, NULL, 0, NULL, "%d", 1);
19969
19970 ;
19971 return 0;
19972}
19973
19974_ACEOF
19975
19976
19977 rm -Rf build && mkdir -p build
19978 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 19979 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
86933a6e
BB
19980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19981 (eval $ac_try) 2>&5
19982 ac_status=$?
19983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19984 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19986 (eval $ac_try) 2>&5
19987 ac_status=$?
19988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19989 (exit $ac_status); }; }; then
19990
19991 echo "$as_me:$LINENO: result: yes" >&5
19992echo "${ECHO_T}yes" >&6
19993
19994cat >>confdefs.h <<\_ACEOF
19995#define HAVE_5ARGS_DEVICE_CREATE 1
19996_ACEOF
19997
19998
19999else
20000 echo "$as_me: failed program was:" >&5
20001sed 's/^/| /' conftest.$ac_ext >&5
20002
20003 echo "$as_me:$LINENO: result: no" >&5
20004echo "${ECHO_T}no" >&6
20005
20006
20007
20008fi
20009
20010 rm -Rf build
20011
20012
20013 EXTRA_KCFLAGS="$tmp_flags"
20014
20015
20016 echo "$as_me:$LINENO: checking whether symbol class_device_create is exported" >&5
20017echo $ECHO_N "checking whether symbol class_device_create is exported... $ECHO_C" >&6
20018 grep -q -E '[[:space:]]class_device_create[[:space:]]' \
20019 $LINUX_OBJ/Module*.symvers 2>/dev/null
20020 rc=$?
20021 if test $rc -ne 0; then
20022 export=0
20023 for file in drivers/base/class.c; do
20024 grep -q -E "EXPORT_SYMBOL.*(class_device_create)" \
20025 "$LINUX_OBJ/$file" 2>/dev/null
20026 rc=$?
20027 if test $rc -eq 0; then
20028 export=1
20029 break;
20030 fi
20031 done
20032 if test $export -eq 0; then
20033 echo "$as_me:$LINENO: result: no" >&5
20034echo "${ECHO_T}no" >&6
20035
20036 else
20037 echo "$as_me:$LINENO: result: yes" >&5
20038echo "${ECHO_T}yes" >&6
20039
20040cat >>confdefs.h <<\_ACEOF
20041#define HAVE_CLASS_DEVICE_CREATE 1
20042_ACEOF
20043
20044 fi
20045 else
20046 echo "$as_me:$LINENO: result: yes" >&5
20047echo "${ECHO_T}yes" >&6
20048
20049cat >>confdefs.h <<\_ACEOF
20050#define HAVE_CLASS_DEVICE_CREATE 1
20051_ACEOF
20052
20053 fi
20054
20055
20056
20057 echo "$as_me:$LINENO: checking whether symbol set_normalized_timespec is exported" >&5
20058echo $ECHO_N "checking whether symbol set_normalized_timespec is exported... $ECHO_C" >&6
20059 grep -q -E '[[:space:]]set_normalized_timespec[[:space:]]' \
20060 $LINUX_OBJ/Module*.symvers 2>/dev/null
20061 rc=$?
20062 if test $rc -ne 0; then
20063 export=0
20064 for file in kernel/time.c; do
20065 grep -q -E "EXPORT_SYMBOL.*(set_normalized_timespec)" \
20066 "$LINUX_OBJ/$file" 2>/dev/null
20067 rc=$?
20068 if test $rc -eq 0; then
20069 export=1
20070 break;
20071 fi
20072 done
20073 if test $export -eq 0; then
20074 echo "$as_me:$LINENO: result: no" >&5
20075echo "${ECHO_T}no" >&6
20076
20077 else
20078 echo "$as_me:$LINENO: result: yes" >&5
20079echo "${ECHO_T}yes" >&6
20080
20081cat >>confdefs.h <<\_ACEOF
20082#define HAVE_SET_NORMALIZED_TIMESPEC_EXPORT 1
20083_ACEOF
20084
20085 fi
20086 else
20087 echo "$as_me:$LINENO: result: yes" >&5
20088echo "${ECHO_T}yes" >&6
20089
20090cat >>confdefs.h <<\_ACEOF
20091#define HAVE_SET_NORMALIZED_TIMESPEC_EXPORT 1
20092_ACEOF
20093
20094 fi
20095
20096
20097
20098 echo "$as_me:$LINENO: checking whether set_normalized_timespec() is an inline" >&5
20099echo $ECHO_N "checking whether set_normalized_timespec() is an inline... $ECHO_C" >&6
20100
20101
20102cat >conftest.c <<_ACEOF
20103/* confdefs.h. */
20104_ACEOF
20105cat confdefs.h >>conftest.$ac_ext
20106cat >>conftest.$ac_ext <<_ACEOF
20107/* end confdefs.h. */
20108
20109
20110 #include <linux/time.h>
20111 void set_normalized_timespec(struct timespec *ts,
20112 time_t sec, long nsec) { }
20113
20114int
20115main (void)
20116{
20117
20118 ;
20119 return 0;
20120}
20121
20122_ACEOF
20123
20124
20125 rm -Rf build && mkdir -p build
20126 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 20127 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
86933a6e
BB
20128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20129 (eval $ac_try) 2>&5
20130 ac_status=$?
20131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20132 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20134 (eval $ac_try) 2>&5
20135 ac_status=$?
20136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20137 (exit $ac_status); }; }; then
20138
20139 echo "$as_me:$LINENO: result: no" >&5
20140echo "${ECHO_T}no" >&6
20141
20142else
20143 echo "$as_me: failed program was:" >&5
20144sed 's/^/| /' conftest.$ac_ext >&5
20145
20146 echo "$as_me:$LINENO: result: yes" >&5
20147echo "${ECHO_T}yes" >&6
20148
20149cat >>confdefs.h <<\_ACEOF
20150#define HAVE_SET_NORMALIZED_TIMESPEC_INLINE 1
20151_ACEOF
20152
20153
20154
20155
20156fi
20157
20158 rm -Rf build
20159
20160
20161
20162
20163 echo "$as_me:$LINENO: checking whether timespec_sub() is available" >&5
20164echo $ECHO_N "checking whether timespec_sub() is available... $ECHO_C" >&6
20165
20166
20167cat >conftest.c <<_ACEOF
20168/* confdefs.h. */
20169_ACEOF
20170cat confdefs.h >>conftest.$ac_ext
20171cat >>conftest.$ac_ext <<_ACEOF
20172/* end confdefs.h. */
20173
20174
20175 #include <linux/time.h>
20176
20177int
20178main (void)
20179{
20180
20181 struct timespec a, b, c = { 0 };
20182 c = timespec_sub(a, b);
20183
20184 ;
20185 return 0;
20186}
20187
20188_ACEOF
20189
20190
20191 rm -Rf build && mkdir -p build
20192 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 20193 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
86933a6e
BB
20194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20195 (eval $ac_try) 2>&5
20196 ac_status=$?
20197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20198 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20200 (eval $ac_try) 2>&5
20201 ac_status=$?
20202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20203 (exit $ac_status); }; }; then
20204
20205 echo "$as_me:$LINENO: result: yes" >&5
20206echo "${ECHO_T}yes" >&6
20207
20208cat >>confdefs.h <<\_ACEOF
20209#define HAVE_TIMESPEC_SUB 1
20210_ACEOF
20211
20212
20213else
20214 echo "$as_me: failed program was:" >&5
20215sed 's/^/| /' conftest.$ac_ext >&5
20216
20217 echo "$as_me:$LINENO: result: no" >&5
20218echo "${ECHO_T}no" >&6
20219
20220
20221
20222fi
20223
20224 rm -Rf build
20225
20226
20227
20228
20229 echo "$as_me:$LINENO: checking whether init_utsname() is available" >&5
20230echo $ECHO_N "checking whether init_utsname() is available... $ECHO_C" >&6
20231
20232
20233cat >conftest.c <<_ACEOF
20234/* confdefs.h. */
20235_ACEOF
20236cat confdefs.h >>conftest.$ac_ext
20237cat >>conftest.$ac_ext <<_ACEOF
20238/* end confdefs.h. */
20239
20240
20241 #include <linux/utsname.h>
20242
20243int
20244main (void)
20245{
20246
20247 struct new_utsname *a = init_utsname();
20248
20249 ;
20250 return 0;
20251}
20252
20253_ACEOF
20254
20255
20256 rm -Rf build && mkdir -p build
20257 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 20258 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
86933a6e
BB
20259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20260 (eval $ac_try) 2>&5
20261 ac_status=$?
20262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20263 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20265 (eval $ac_try) 2>&5
20266 ac_status=$?
20267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20268 (exit $ac_status); }; }; then
20269
20270 echo "$as_me:$LINENO: result: yes" >&5
20271echo "${ECHO_T}yes" >&6
20272
20273cat >>confdefs.h <<\_ACEOF
20274#define HAVE_INIT_UTSNAME 1
20275_ACEOF
20276
20277
20278else
20279 echo "$as_me: failed program was:" >&5
20280sed 's/^/| /' conftest.$ac_ext >&5
20281
20282 echo "$as_me:$LINENO: result: no" >&5
20283echo "${ECHO_T}no" >&6
20284
20285
20286
20287fi
20288
20289 rm -Rf build
20290
20291
20292
20293
20294 echo "$as_me:$LINENO: checking whether header linux/fdtable.h exists" >&5
20295echo $ECHO_N "checking whether header linux/fdtable.h exists... $ECHO_C" >&6
20296
20297
20298cat >conftest.c <<_ACEOF
20299/* confdefs.h. */
20300_ACEOF
20301cat confdefs.h >>conftest.$ac_ext
20302cat >>conftest.$ac_ext <<_ACEOF
20303/* end confdefs.h. */
20304
20305
20306 #include <linux/fdtable.h>
20307
20308int
20309main (void)
20310{
20311
20312 return 0;
20313
20314 ;
20315 return 0;
20316}
20317
20318_ACEOF
20319
20320
20321 rm -Rf build && mkdir -p build
20322 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 20323 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
86933a6e
BB
20324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20325 (eval $ac_try) 2>&5
20326 ac_status=$?
20327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20328 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20330 (eval $ac_try) 2>&5
20331 ac_status=$?
20332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20333 (exit $ac_status); }; }; then
20334
20335
20336cat >>confdefs.h <<\_ACEOF
20337#define HAVE_FDTABLE_HEADER 1
20338_ACEOF
20339
20340 echo "$as_me:$LINENO: result: yes" >&5
20341echo "${ECHO_T}yes" >&6
20342
20343
20344else
20345 echo "$as_me: failed program was:" >&5
20346sed 's/^/| /' conftest.$ac_ext >&5
20347
20348 echo "$as_me:$LINENO: result: no" >&5
20349echo "${ECHO_T}no" >&6
20350
20351
20352
20353
20354fi
20355
20356 rm -Rf build
20357
20358
20359
20360
20361
20362 echo "$as_me:$LINENO: checking whether files_fdtable() is available" >&5
20363echo $ECHO_N "checking whether files_fdtable() is available... $ECHO_C" >&6
20364
20365
20366cat >conftest.c <<_ACEOF
20367/* confdefs.h. */
20368_ACEOF
20369cat confdefs.h >>conftest.$ac_ext
20370cat >>conftest.$ac_ext <<_ACEOF
20371/* end confdefs.h. */
20372
20373
20374 #include <linux/sched.h>
20375 #include <linux/file.h>
20376 #ifdef HAVE_FDTABLE_HEADER
20377 #include <linux/fdtable.h>
20378 #endif
20379
20380int
20381main (void)
20382{
20383
20384 struct files_struct *files = current->files;
20385 struct fdtable *fdt = files_fdtable(files);
20386
20387 ;
20388 return 0;
20389}
20390
20391_ACEOF
20392
20393
20394 rm -Rf build && mkdir -p build
20395 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 20396 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
86933a6e
BB
20397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20398 (eval $ac_try) 2>&5
20399 ac_status=$?
20400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20401 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20403 (eval $ac_try) 2>&5
20404 ac_status=$?
20405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20406 (exit $ac_status); }; }; then
20407
20408 echo "$as_me:$LINENO: result: yes" >&5
20409echo "${ECHO_T}yes" >&6
20410
20411cat >>confdefs.h <<\_ACEOF
20412#define HAVE_FILES_FDTABLE 1
20413_ACEOF
20414
20415
20416else
20417 echo "$as_me: failed program was:" >&5
20418sed 's/^/| /' conftest.$ac_ext >&5
20419
20420 echo "$as_me:$LINENO: result: no" >&5
20421echo "${ECHO_T}no" >&6
20422
20423
20424
20425fi
20426
20427 rm -Rf build
20428
20429
20430
20431
20432 echo "$as_me:$LINENO: checking whether header linux/uaccess.h exists" >&5
20433echo $ECHO_N "checking whether header linux/uaccess.h exists... $ECHO_C" >&6
20434
20435
20436cat >conftest.c <<_ACEOF
20437/* confdefs.h. */
20438_ACEOF
20439cat confdefs.h >>conftest.$ac_ext
20440cat >>conftest.$ac_ext <<_ACEOF
20441/* end confdefs.h. */
20442
20443
20444 #include <linux/uaccess.h>
20445
20446int
20447main (void)
20448{
20449
20450 return 0;
20451
20452 ;
20453 return 0;
20454}
20455
20456_ACEOF
20457
20458
20459 rm -Rf build && mkdir -p build
20460 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 20461 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
86933a6e
BB
20462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20463 (eval $ac_try) 2>&5
20464 ac_status=$?
20465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20466 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20468 (eval $ac_try) 2>&5
20469 ac_status=$?
20470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20471 (exit $ac_status); }; }; then
20472
20473
20474cat >>confdefs.h <<\_ACEOF
20475#define HAVE_UACCESS_HEADER 1
20476_ACEOF
20477
20478 echo "$as_me:$LINENO: result: yes" >&5
20479echo "${ECHO_T}yes" >&6
20480
20481
20482else
20483 echo "$as_me: failed program was:" >&5
20484sed 's/^/| /' conftest.$ac_ext >&5
20485
20486 echo "$as_me:$LINENO: result: no" >&5
20487echo "${ECHO_T}no" >&6
20488
20489
20490
20491
20492fi
20493
20494 rm -Rf build
20495
20496
20497
20498
20499
20500 echo "$as_me:$LINENO: checking whether kmalloc_node() is available" >&5
20501echo $ECHO_N "checking whether kmalloc_node() is available... $ECHO_C" >&6
20502
20503
20504cat >conftest.c <<_ACEOF
20505/* confdefs.h. */
20506_ACEOF
20507cat confdefs.h >>conftest.$ac_ext
20508cat >>conftest.$ac_ext <<_ACEOF
20509/* end confdefs.h. */
20510
20511
20512 #include <linux/slab.h>
20513
20514int
20515main (void)
20516{
20517
20518 void *a = kmalloc_node(1, GFP_KERNEL, 0);
20519
20520 ;
20521 return 0;
20522}
20523
20524_ACEOF
20525
20526
20527 rm -Rf build && mkdir -p build
20528 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 20529 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
86933a6e
BB
20530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20531 (eval $ac_try) 2>&5
20532 ac_status=$?
20533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20534 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20536 (eval $ac_try) 2>&5
20537 ac_status=$?
20538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20539 (exit $ac_status); }; }; then
20540
20541 echo "$as_me:$LINENO: result: yes" >&5
20542echo "${ECHO_T}yes" >&6
20543
20544cat >>confdefs.h <<\_ACEOF
20545#define HAVE_KMALLOC_NODE 1
20546_ACEOF
20547
20548
20549else
20550 echo "$as_me: failed program was:" >&5
20551sed 's/^/| /' conftest.$ac_ext >&5
20552
20553 echo "$as_me:$LINENO: result: no" >&5
20554echo "${ECHO_T}no" >&6
20555
20556
20557
20558fi
20559
20560 rm -Rf build
20561
20562
20563
20564
20565 echo "$as_me:$LINENO: checking whether symbol monotonic_clock is exported" >&5
20566echo $ECHO_N "checking whether symbol monotonic_clock is exported... $ECHO_C" >&6
20567 grep -q -E '[[:space:]]monotonic_clock[[:space:]]' \
20568 $LINUX_OBJ/Module*.symvers 2>/dev/null
20569 rc=$?
20570 if test $rc -ne 0; then
20571 export=0
20572 for file in ; do
20573 grep -q -E "EXPORT_SYMBOL.*(monotonic_clock)" \
20574 "$LINUX_OBJ/$file" 2>/dev/null
20575 rc=$?
20576 if test $rc -eq 0; then
20577 export=1
20578 break;
20579 fi
20580 done
20581 if test $export -eq 0; then
20582 echo "$as_me:$LINENO: result: no" >&5
20583echo "${ECHO_T}no" >&6
20584
20585 else
20586 echo "$as_me:$LINENO: result: yes" >&5
20587echo "${ECHO_T}yes" >&6
20588
20589cat >>confdefs.h <<\_ACEOF
20590#define HAVE_MONOTONIC_CLOCK 1
20591_ACEOF
20592
20593 fi
20594 else
20595 echo "$as_me:$LINENO: result: yes" >&5
20596echo "${ECHO_T}yes" >&6
20597
20598cat >>confdefs.h <<\_ACEOF
20599#define HAVE_MONOTONIC_CLOCK 1
20600_ACEOF
20601
20602 fi
20603
20604
20605
20606 echo "$as_me:$LINENO: checking whether struct inode has i_mutex" >&5
20607echo $ECHO_N "checking whether struct inode has i_mutex... $ECHO_C" >&6
20608
20609
20610cat >conftest.c <<_ACEOF
20611/* confdefs.h. */
20612_ACEOF
20613cat confdefs.h >>conftest.$ac_ext
20614cat >>conftest.$ac_ext <<_ACEOF
20615/* end confdefs.h. */
20616
20617
20618 #include <linux/fs.h>
20619 #include <linux/mutex.h>
20620
20621int
20622main (void)
20623{
20624
20625 struct inode i;
20626 mutex_init(&i.i_mutex);
20627
20628 ;
20629 return 0;
20630}
20631
20632_ACEOF
20633
20634
20635 rm -Rf build && mkdir -p build
20636 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 20637 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
86933a6e
BB
20638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20639 (eval $ac_try) 2>&5
20640 ac_status=$?
20641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20642 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20644 (eval $ac_try) 2>&5
20645 ac_status=$?
20646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20647 (exit $ac_status); }; }; then
20648
20649 echo "$as_me:$LINENO: result: yes" >&5
20650echo "${ECHO_T}yes" >&6
20651
20652cat >>confdefs.h <<\_ACEOF
20653#define HAVE_INODE_I_MUTEX 1
20654_ACEOF
20655
20656
20657else
20658 echo "$as_me: failed program was:" >&5
20659sed 's/^/| /' conftest.$ac_ext >&5
20660
20661 echo "$as_me:$LINENO: result: no" >&5
20662echo "${ECHO_T}no" >&6
20663
20664
20665
20666fi
20667
20668 rm -Rf build
20669
20670
20671
20672
4d54fdee
BB
20673 echo "$as_me:$LINENO: checking whether struct mutex has owner" >&5
20674echo $ECHO_N "checking whether struct mutex has owner... $ECHO_C" >&6
20675
20676
20677cat >conftest.c <<_ACEOF
20678/* confdefs.h. */
20679_ACEOF
20680cat confdefs.h >>conftest.$ac_ext
20681cat >>conftest.$ac_ext <<_ACEOF
20682/* end confdefs.h. */
20683
20684
20685 #include <linux/mutex.h>
20686
20687int
20688main (void)
20689{
20690
20691 struct mutex mtx;
20692 mtx.owner = NULL;
20693
20694 ;
20695 return 0;
20696}
20697
20698_ACEOF
20699
20700
20701 rm -Rf build && mkdir -p build
20702 echo "obj-m := conftest.o" >build/Makefile
20703 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
20704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20705 (eval $ac_try) 2>&5
20706 ac_status=$?
20707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20708 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20710 (eval $ac_try) 2>&5
20711 ac_status=$?
20712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20713 (exit $ac_status); }; }; then
20714
20715 echo "$as_me:$LINENO: result: yes" >&5
20716echo "${ECHO_T}yes" >&6
20717
20718cat >>confdefs.h <<\_ACEOF
20719#define HAVE_MUTEX_OWNER 1
20720_ACEOF
20721
20722
20723else
20724 echo "$as_me: failed program was:" >&5
20725sed 's/^/| /' conftest.$ac_ext >&5
20726
20727 echo "$as_me:$LINENO: result: no" >&5
20728echo "${ECHO_T}no" >&6
20729
20730
20731
20732fi
20733
20734 rm -Rf build
20735
20736
20737
20738
86933a6e
BB
20739 echo "$as_me:$LINENO: checking whether mutex_lock_nested() is available" >&5
20740echo $ECHO_N "checking whether mutex_lock_nested() is available... $ECHO_C" >&6
20741
20742
20743cat >conftest.c <<_ACEOF
20744/* confdefs.h. */
20745_ACEOF
20746cat confdefs.h >>conftest.$ac_ext
20747cat >>conftest.$ac_ext <<_ACEOF
20748/* end confdefs.h. */
20749
20750
20751 #include <linux/mutex.h>
20752
20753int
20754main (void)
20755{
20756
20757 struct mutex mutex;
20758 mutex_init(&mutex);
20759 mutex_lock_nested(&mutex, 0);
20760
20761 ;
20762 return 0;
20763}
20764
20765_ACEOF
20766
20767
20768 rm -Rf build && mkdir -p build
20769 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 20770 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
86933a6e
BB
20771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20772 (eval $ac_try) 2>&5
20773 ac_status=$?
20774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20775 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20777 (eval $ac_try) 2>&5
20778 ac_status=$?
20779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20780 (exit $ac_status); }; }; then
20781
20782 echo "$as_me:$LINENO: result: yes" >&5
20783echo "${ECHO_T}yes" >&6
20784
20785cat >>confdefs.h <<\_ACEOF
20786#define HAVE_MUTEX_LOCK_NESTED 1
20787_ACEOF
20788
20789
20790else
20791 echo "$as_me: failed program was:" >&5
20792sed 's/^/| /' conftest.$ac_ext >&5
20793
20794 echo "$as_me:$LINENO: result: no" >&5
20795echo "${ECHO_T}no" >&6
20796
20797
20798
20799fi
20800
20801 rm -Rf build
20802
20803
20804
20805
20806 echo "$as_me:$LINENO: checking whether symbol div64_64 is exported" >&5
20807echo $ECHO_N "checking whether symbol div64_64 is exported... $ECHO_C" >&6
20808 grep -q -E '[[:space:]]div64_64[[:space:]]' \
20809 $LINUX_OBJ/Module*.symvers 2>/dev/null
20810 rc=$?
20811 if test $rc -ne 0; then
20812 export=0
20813 for file in ; do
20814 grep -q -E "EXPORT_SYMBOL.*(div64_64)" \
20815 "$LINUX_OBJ/$file" 2>/dev/null
20816 rc=$?
20817 if test $rc -eq 0; then
20818 export=1
20819 break;
20820 fi
20821 done
20822 if test $export -eq 0; then
20823 echo "$as_me:$LINENO: result: no" >&5
20824echo "${ECHO_T}no" >&6
20825
20826 else
20827 echo "$as_me:$LINENO: result: yes" >&5
20828echo "${ECHO_T}yes" >&6
20829
20830cat >>confdefs.h <<\_ACEOF
20831#define HAVE_DIV64_64 1
20832_ACEOF
20833
20834 fi
20835 else
20836 echo "$as_me:$LINENO: result: yes" >&5
20837echo "${ECHO_T}yes" >&6
20838
20839cat >>confdefs.h <<\_ACEOF
20840#define HAVE_DIV64_64 1
20841_ACEOF
20842
20843 fi
20844
20845
20846
20847 echo "$as_me:$LINENO: checking whether symbol div64_u64 is exported" >&5
20848echo $ECHO_N "checking whether symbol div64_u64 is exported... $ECHO_C" >&6
20849 grep -q -E '[[:space:]]div64_u64[[:space:]]' \
20850 $LINUX_OBJ/Module*.symvers 2>/dev/null
20851 rc=$?
20852 if test $rc -ne 0; then
20853 export=0
20854 for file in ; do
20855 grep -q -E "EXPORT_SYMBOL.*(div64_u64)" \
20856 "$LINUX_OBJ/$file" 2>/dev/null
20857 rc=$?
20858 if test $rc -eq 0; then
20859 export=1
20860 break;
20861 fi
20862 done
20863 if test $export -eq 0; then
20864 echo "$as_me:$LINENO: result: no" >&5
20865echo "${ECHO_T}no" >&6
20866
20867 else
20868 echo "$as_me:$LINENO: result: yes" >&5
20869echo "${ECHO_T}yes" >&6
20870
20871cat >>confdefs.h <<\_ACEOF
20872#define HAVE_DIV64_U64 1
20873_ACEOF
20874
20875 fi
20876 else
20877 echo "$as_me:$LINENO: result: yes" >&5
20878echo "${ECHO_T}yes" >&6
20879
20880cat >>confdefs.h <<\_ACEOF
20881#define HAVE_DIV64_U64 1
20882_ACEOF
20883
20884 fi
20885
20886
20887
20888 echo "$as_me:$LINENO: checking whether on_each_cpu() wants 3 args" >&5
20889echo $ECHO_N "checking whether on_each_cpu() wants 3 args... $ECHO_C" >&6
20890
20891
20892cat >conftest.c <<_ACEOF
20893/* confdefs.h. */
20894_ACEOF
20895cat confdefs.h >>conftest.$ac_ext
20896cat >>conftest.$ac_ext <<_ACEOF
20897/* end confdefs.h. */
20898
20899
20900 #include <linux/smp.h>
20901
20902int
20903main (void)
20904{
20905
20906 on_each_cpu(NULL, NULL, 0);
20907
20908 ;
20909 return 0;
20910}
20911
20912_ACEOF
20913
20914
20915 rm -Rf build && mkdir -p build
20916 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 20917 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
86933a6e
BB
20918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20919 (eval $ac_try) 2>&5
20920 ac_status=$?
20921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20922 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20924 (eval $ac_try) 2>&5
20925 ac_status=$?
20926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20927 (exit $ac_status); }; }; then
20928
20929 echo "$as_me:$LINENO: result: yes" >&5
20930echo "${ECHO_T}yes" >&6
20931
20932cat >>confdefs.h <<\_ACEOF
20933#define HAVE_3ARGS_ON_EACH_CPU 1
20934_ACEOF
20935
20936
20937else
20938 echo "$as_me: failed program was:" >&5
20939sed 's/^/| /' conftest.$ac_ext >&5
20940
20941 echo "$as_me:$LINENO: result: no" >&5
20942echo "${ECHO_T}no" >&6
20943
20944
20945
20946fi
20947
20948 rm -Rf build
20949
20950
20951
20952
20953 echo "$as_me:$LINENO: checking whether symbol kallsyms_lookup_name is exported" >&5
20954echo $ECHO_N "checking whether symbol kallsyms_lookup_name is exported... $ECHO_C" >&6
20955 grep -q -E '[[:space:]]kallsyms_lookup_name[[:space:]]' \
20956 $LINUX_OBJ/Module*.symvers 2>/dev/null
20957 rc=$?
20958 if test $rc -ne 0; then
20959 export=0
20960 for file in ; do
20961 grep -q -E "EXPORT_SYMBOL.*(kallsyms_lookup_name)" \
20962 "$LINUX_OBJ/$file" 2>/dev/null
20963 rc=$?
20964 if test $rc -eq 0; then
20965 export=1
20966 break;
20967 fi
20968 done
20969 if test $export -eq 0; then
20970 echo "$as_me:$LINENO: result: no" >&5
20971echo "${ECHO_T}no" >&6
20972
20973 else
20974 echo "$as_me:$LINENO: result: yes" >&5
20975echo "${ECHO_T}yes" >&6
20976
20977cat >>confdefs.h <<\_ACEOF
20978#define HAVE_KALLSYMS_LOOKUP_NAME 1
20979_ACEOF
20980
20981 fi
20982 else
20983 echo "$as_me:$LINENO: result: yes" >&5
20984echo "${ECHO_T}yes" >&6
20985
20986cat >>confdefs.h <<\_ACEOF
20987#define HAVE_KALLSYMS_LOOKUP_NAME 1
20988_ACEOF
20989
20990 fi
20991
20992
20993
20994 echo "$as_me:$LINENO: checking whether symbol get_vmalloc_info is exported" >&5
20995echo $ECHO_N "checking whether symbol get_vmalloc_info is exported... $ECHO_C" >&6
20996 grep -q -E '[[:space:]]get_vmalloc_info[[:space:]]' \
20997 $LINUX_OBJ/Module*.symvers 2>/dev/null
20998 rc=$?
20999 if test $rc -ne 0; then
21000 export=0
21001 for file in ; do
21002 grep -q -E "EXPORT_SYMBOL.*(get_vmalloc_info)" \
21003 "$LINUX_OBJ/$file" 2>/dev/null
21004 rc=$?
21005 if test $rc -eq 0; then
21006 export=1
21007 break;
21008 fi
21009 done
21010 if test $export -eq 0; then
21011 echo "$as_me:$LINENO: result: no" >&5
21012echo "${ECHO_T}no" >&6
21013
21014 else
21015 echo "$as_me:$LINENO: result: yes" >&5
21016echo "${ECHO_T}yes" >&6
21017
21018cat >>confdefs.h <<\_ACEOF
21019#define HAVE_GET_VMALLOC_INFO 1
21020_ACEOF
21021
21022 fi
21023 else
21024 echo "$as_me:$LINENO: result: yes" >&5
21025echo "${ECHO_T}yes" >&6
21026
21027cat >>confdefs.h <<\_ACEOF
21028#define HAVE_GET_VMALLOC_INFO 1
21029_ACEOF
21030
21031 fi
21032
21033
21034
21035 echo "$as_me:$LINENO: checking whether symbol *_pgdat exist" >&5
21036echo $ECHO_N "checking whether symbol *_pgdat exist... $ECHO_C" >&6
21037 grep -q -E 'first_online_pgdat' $LINUX/include/linux/mmzone.h 2>/dev/null
21038 rc=$?
21039 if test $rc -eq 0; then
21040 echo "$as_me:$LINENO: result: yes" >&5
21041echo "${ECHO_T}yes" >&6
21042
21043cat >>confdefs.h <<\_ACEOF
21044#define HAVE_PGDAT_HELPERS 1
21045_ACEOF
21046
21047 else
21048 echo "$as_me:$LINENO: result: no" >&5
21049echo "${ECHO_T}no" >&6
21050 fi
21051
21052
21053 echo "$as_me:$LINENO: checking whether symbol first_online_pgdat is exported" >&5
21054echo $ECHO_N "checking whether symbol first_online_pgdat is exported... $ECHO_C" >&6
21055 grep -q -E '[[:space:]]first_online_pgdat[[:space:]]' \
21056 $LINUX_OBJ/Module*.symvers 2>/dev/null
21057 rc=$?
21058 if test $rc -ne 0; then
21059 export=0
21060 for file in ; do
21061 grep -q -E "EXPORT_SYMBOL.*(first_online_pgdat)" \
21062 "$LINUX_OBJ/$file" 2>/dev/null
21063 rc=$?
21064 if test $rc -eq 0; then
21065 export=1
21066 break;
21067 fi
21068 done
21069 if test $export -eq 0; then
21070 echo "$as_me:$LINENO: result: no" >&5
21071echo "${ECHO_T}no" >&6
21072
21073 else
21074 echo "$as_me:$LINENO: result: yes" >&5
21075echo "${ECHO_T}yes" >&6
21076
21077cat >>confdefs.h <<\_ACEOF
21078#define HAVE_FIRST_ONLINE_PGDAT 1
21079_ACEOF
21080
21081 fi
21082 else
21083 echo "$as_me:$LINENO: result: yes" >&5
21084echo "${ECHO_T}yes" >&6
21085
21086cat >>confdefs.h <<\_ACEOF
21087#define HAVE_FIRST_ONLINE_PGDAT 1
21088_ACEOF
21089
21090 fi
21091
21092
21093
21094 echo "$as_me:$LINENO: checking whether symbol next_online_pgdat is exported" >&5
21095echo $ECHO_N "checking whether symbol next_online_pgdat is exported... $ECHO_C" >&6
21096 grep -q -E '[[:space:]]next_online_pgdat[[:space:]]' \
21097 $LINUX_OBJ/Module*.symvers 2>/dev/null
21098 rc=$?
21099 if test $rc -ne 0; then
21100 export=0
21101 for file in ; do
21102 grep -q -E "EXPORT_SYMBOL.*(next_online_pgdat)" \
21103 "$LINUX_OBJ/$file" 2>/dev/null
21104 rc=$?
21105 if test $rc -eq 0; then
21106 export=1
21107 break;
21108 fi
21109 done
21110 if test $export -eq 0; then
21111 echo "$as_me:$LINENO: result: no" >&5
21112echo "${ECHO_T}no" >&6
21113
21114 else
21115 echo "$as_me:$LINENO: result: yes" >&5
21116echo "${ECHO_T}yes" >&6
21117
21118cat >>confdefs.h <<\_ACEOF
21119#define HAVE_NEXT_ONLINE_PGDAT 1
21120_ACEOF
21121
21122 fi
21123 else
21124 echo "$as_me:$LINENO: result: yes" >&5
21125echo "${ECHO_T}yes" >&6
21126
21127cat >>confdefs.h <<\_ACEOF
21128#define HAVE_NEXT_ONLINE_PGDAT 1
21129_ACEOF
21130
21131 fi
21132
21133
21134
21135 echo "$as_me:$LINENO: checking whether symbol next_zone is exported" >&5
21136echo $ECHO_N "checking whether symbol next_zone is exported... $ECHO_C" >&6
21137 grep -q -E '[[:space:]]next_zone[[:space:]]' \
21138 $LINUX_OBJ/Module*.symvers 2>/dev/null
21139 rc=$?
21140 if test $rc -ne 0; then
21141 export=0
21142 for file in ; do
21143 grep -q -E "EXPORT_SYMBOL.*(next_zone)" \
21144 "$LINUX_OBJ/$file" 2>/dev/null
21145 rc=$?
21146 if test $rc -eq 0; then
21147 export=1
21148 break;
21149 fi
21150 done
21151 if test $export -eq 0; then
21152 echo "$as_me:$LINENO: result: no" >&5
21153echo "${ECHO_T}no" >&6
21154
21155 else
21156 echo "$as_me:$LINENO: result: yes" >&5
21157echo "${ECHO_T}yes" >&6
21158
21159cat >>confdefs.h <<\_ACEOF
21160#define HAVE_NEXT_ZONE 1
21161_ACEOF
21162
21163 fi
21164 else
21165 echo "$as_me:$LINENO: result: yes" >&5
21166echo "${ECHO_T}yes" >&6
21167
21168cat >>confdefs.h <<\_ACEOF
21169#define HAVE_NEXT_ZONE 1
21170_ACEOF
21171
21172 fi
21173
21174
21175
21176 echo "$as_me:$LINENO: checking whether symbol pgdat_list is exported" >&5
21177echo $ECHO_N "checking whether symbol pgdat_list is exported... $ECHO_C" >&6
21178 grep -q -E '[[:space:]]pgdat_list[[:space:]]' \
21179 $LINUX_OBJ/Module*.symvers 2>/dev/null
21180 rc=$?
21181 if test $rc -ne 0; then
21182 export=0
21183 for file in ; do
21184 grep -q -E "EXPORT_SYMBOL.*(pgdat_list)" \
21185 "$LINUX_OBJ/$file" 2>/dev/null
21186 rc=$?
21187 if test $rc -eq 0; then
21188 export=1
21189 break;
21190 fi
21191 done
21192 if test $export -eq 0; then
21193 echo "$as_me:$LINENO: result: no" >&5
21194echo "${ECHO_T}no" >&6
21195
21196 else
21197 echo "$as_me:$LINENO: result: yes" >&5
21198echo "${ECHO_T}yes" >&6
21199
21200cat >>confdefs.h <<\_ACEOF
21201#define HAVE_PGDAT_LIST 1
21202_ACEOF
21203
21204 fi
21205 else
21206 echo "$as_me:$LINENO: result: yes" >&5
21207echo "${ECHO_T}yes" >&6
21208
21209cat >>confdefs.h <<\_ACEOF
21210#define HAVE_PGDAT_LIST 1
21211_ACEOF
21212
21213 fi
21214
21215
21216
6ae7fef5
BB
21217 echo "$as_me:$LINENO: checking whether global_page_state() is available" >&5
21218echo $ECHO_N "checking whether global_page_state() is available... $ECHO_C" >&6
86933a6e 21219
86933a6e 21220
6ae7fef5
BB
21221cat >conftest.c <<_ACEOF
21222/* confdefs.h. */
86933a6e 21223_ACEOF
6ae7fef5
BB
21224cat confdefs.h >>conftest.$ac_ext
21225cat >>conftest.$ac_ext <<_ACEOF
21226/* end confdefs.h. */
21227
21228
21229 #include <linux/mm.h>
21230
21231int
21232main (void)
21233{
21234
21235 unsigned long state;
21236 state = global_page_state(0);
21237
21238 ;
21239 return 0;
21240}
21241
21242_ACEOF
21243
21244
21245 rm -Rf build && mkdir -p build
21246 echo "obj-m := conftest.o" >build/Makefile
21247 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
21248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21249 (eval $ac_try) 2>&5
21250 ac_status=$?
21251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21252 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21254 (eval $ac_try) 2>&5
21255 ac_status=$?
21256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21257 (exit $ac_status); }; }; then
86933a6e 21258
86933a6e
BB
21259 echo "$as_me:$LINENO: result: yes" >&5
21260echo "${ECHO_T}yes" >&6
21261
21262cat >>confdefs.h <<\_ACEOF
6ae7fef5 21263#define HAVE_GLOBAL_PAGE_STATE 1
86933a6e
BB
21264_ACEOF
21265
6ae7fef5
BB
21266
21267else
21268 echo "$as_me: failed program was:" >&5
21269sed 's/^/| /' conftest.$ac_ext >&5
21270
21271 echo "$as_me:$LINENO: result: no" >&5
21272echo "${ECHO_T}no" >&6
21273
21274
21275
21276fi
21277
21278 rm -Rf build
86933a6e
BB
21279
21280
21281
6ae7fef5
BB
21282
21283 echo "$as_me:$LINENO: checking whether page state NR_FREE_PAGES is available" >&5
21284echo $ECHO_N "checking whether page state NR_FREE_PAGES is available... $ECHO_C" >&6
86933a6e
BB
21285
21286
21287cat >conftest.c <<_ACEOF
21288/* confdefs.h. */
21289_ACEOF
21290cat confdefs.h >>conftest.$ac_ext
21291cat >>conftest.$ac_ext <<_ACEOF
21292/* end confdefs.h. */
21293
21294
6ae7fef5 21295 #include <linux/mm.h>
86933a6e
BB
21296
21297int
21298main (void)
21299{
21300
6ae7fef5
BB
21301 enum zone_stat_item zsi;
21302 zsi = NR_FREE_PAGES;
86933a6e
BB
21303
21304 ;
21305 return 0;
21306}
21307
21308_ACEOF
21309
21310
21311 rm -Rf build && mkdir -p build
21312 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 21313 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
86933a6e
BB
21314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21315 (eval $ac_try) 2>&5
21316 ac_status=$?
21317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21318 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21320 (eval $ac_try) 2>&5
21321 ac_status=$?
21322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21323 (exit $ac_status); }; }; then
21324
21325 echo "$as_me:$LINENO: result: yes" >&5
21326echo "${ECHO_T}yes" >&6
21327
21328cat >>confdefs.h <<\_ACEOF
6ae7fef5 21329#define HAVE_ZONE_STAT_ITEM_NR_FREE_PAGES 1
86933a6e
BB
21330_ACEOF
21331
21332
21333else
21334 echo "$as_me: failed program was:" >&5
21335sed 's/^/| /' conftest.$ac_ext >&5
21336
21337 echo "$as_me:$LINENO: result: no" >&5
21338echo "${ECHO_T}no" >&6
21339
21340
21341
21342fi
21343
21344 rm -Rf build
21345
21346
21347
21348
6ae7fef5
BB
21349 echo "$as_me:$LINENO: checking whether page state NR_INACTIVE is available" >&5
21350echo $ECHO_N "checking whether page state NR_INACTIVE is available... $ECHO_C" >&6
86933a6e
BB
21351
21352
21353cat >conftest.c <<_ACEOF
21354/* confdefs.h. */
21355_ACEOF
21356cat confdefs.h >>conftest.$ac_ext
21357cat >>conftest.$ac_ext <<_ACEOF
21358/* end confdefs.h. */
21359
21360
6ae7fef5 21361 #include <linux/mm.h>
86933a6e
BB
21362
21363int
21364main (void)
21365{
21366
6ae7fef5
BB
21367 enum zone_stat_item zsi;
21368 zsi = NR_INACTIVE;
86933a6e
BB
21369
21370 ;
21371 return 0;
21372}
21373
21374_ACEOF
21375
21376
21377 rm -Rf build && mkdir -p build
21378 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 21379 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
86933a6e
BB
21380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21381 (eval $ac_try) 2>&5
21382 ac_status=$?
21383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21384 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21386 (eval $ac_try) 2>&5
21387 ac_status=$?
21388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21389 (exit $ac_status); }; }; then
21390
21391 echo "$as_me:$LINENO: result: yes" >&5
21392echo "${ECHO_T}yes" >&6
21393
21394cat >>confdefs.h <<\_ACEOF
6ae7fef5 21395#define HAVE_ZONE_STAT_ITEM_NR_INACTIVE 1
86933a6e
BB
21396_ACEOF
21397
21398
21399else
21400 echo "$as_me: failed program was:" >&5
21401sed 's/^/| /' conftest.$ac_ext >&5
21402
21403 echo "$as_me:$LINENO: result: no" >&5
21404echo "${ECHO_T}no" >&6
21405
21406
21407
21408fi
21409
21410 rm -Rf build
21411
21412
21413
6ae7fef5
BB
21414 echo "$as_me:$LINENO: checking whether page state NR_INACTIVE_ANON is available" >&5
21415echo $ECHO_N "checking whether page state NR_INACTIVE_ANON is available... $ECHO_C" >&6
86933a6e
BB
21416
21417
21418cat >conftest.c <<_ACEOF
21419/* confdefs.h. */
21420_ACEOF
21421cat confdefs.h >>conftest.$ac_ext
21422cat >>conftest.$ac_ext <<_ACEOF
21423/* end confdefs.h. */
21424
21425
6ae7fef5 21426 #include <linux/mm.h>
86933a6e
BB
21427
21428int
21429main (void)
21430{
21431
6ae7fef5
BB
21432 enum zone_stat_item zsi;
21433 zsi = NR_INACTIVE_ANON;
86933a6e
BB
21434
21435 ;
21436 return 0;
21437}
21438
21439_ACEOF
21440
21441
21442 rm -Rf build && mkdir -p build
21443 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 21444 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
86933a6e
BB
21445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21446 (eval $ac_try) 2>&5
21447 ac_status=$?
21448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21449 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21451 (eval $ac_try) 2>&5
21452 ac_status=$?
21453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21454 (exit $ac_status); }; }; then
21455
21456 echo "$as_me:$LINENO: result: yes" >&5
21457echo "${ECHO_T}yes" >&6
21458
21459cat >>confdefs.h <<\_ACEOF
6ae7fef5 21460#define HAVE_ZONE_STAT_ITEM_NR_INACTIVE_ANON 1
86933a6e
BB
21461_ACEOF
21462
21463
21464else
21465 echo "$as_me: failed program was:" >&5
21466sed 's/^/| /' conftest.$ac_ext >&5
21467
21468 echo "$as_me:$LINENO: result: no" >&5
21469echo "${ECHO_T}no" >&6
21470
21471
21472
21473fi
21474
21475 rm -Rf build
21476
21477
21478
6ae7fef5
BB
21479 echo "$as_me:$LINENO: checking whether page state NR_INACTIVE_FILE is available" >&5
21480echo $ECHO_N "checking whether page state NR_INACTIVE_FILE is available... $ECHO_C" >&6
86933a6e
BB
21481
21482
21483cat >conftest.c <<_ACEOF
21484/* confdefs.h. */
21485_ACEOF
21486cat confdefs.h >>conftest.$ac_ext
21487cat >>conftest.$ac_ext <<_ACEOF
21488/* end confdefs.h. */
21489
21490
6ae7fef5 21491 #include <linux/mm.h>
86933a6e
BB
21492
21493int
21494main (void)
21495{
21496
6ae7fef5
BB
21497 enum zone_stat_item zsi;
21498 zsi = NR_INACTIVE_FILE;
86933a6e
BB
21499
21500 ;
21501 return 0;
21502}
21503
21504_ACEOF
21505
21506
21507 rm -Rf build && mkdir -p build
21508 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 21509 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
86933a6e
BB
21510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21511 (eval $ac_try) 2>&5
21512 ac_status=$?
21513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21514 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21516 (eval $ac_try) 2>&5
21517 ac_status=$?
21518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21519 (exit $ac_status); }; }; then
21520
21521 echo "$as_me:$LINENO: result: yes" >&5
21522echo "${ECHO_T}yes" >&6
21523
21524cat >>confdefs.h <<\_ACEOF
6ae7fef5 21525#define HAVE_ZONE_STAT_ITEM_NR_INACTIVE_FILE 1
86933a6e
BB
21526_ACEOF
21527
21528
21529else
21530 echo "$as_me: failed program was:" >&5
21531sed 's/^/| /' conftest.$ac_ext >&5
21532
21533 echo "$as_me:$LINENO: result: no" >&5
21534echo "${ECHO_T}no" >&6
21535
21536
21537
21538fi
21539
21540 rm -Rf build
21541
21542
21543
ec7d53e9 21544
6ae7fef5
BB
21545 echo "$as_me:$LINENO: checking whether page state NR_ACTIVE is available" >&5
21546echo $ECHO_N "checking whether page state NR_ACTIVE is available... $ECHO_C" >&6
ec7d53e9
BB
21547
21548
21549cat >conftest.c <<_ACEOF
21550/* confdefs.h. */
21551_ACEOF
21552cat confdefs.h >>conftest.$ac_ext
21553cat >>conftest.$ac_ext <<_ACEOF
21554/* end confdefs.h. */
21555
21556
6ae7fef5 21557 #include <linux/mm.h>
ec7d53e9
BB
21558
21559int
21560main (void)
21561{
21562
6ae7fef5
BB
21563 enum zone_stat_item zsi;
21564 zsi = NR_ACTIVE;
ec7d53e9
BB
21565
21566 ;
21567 return 0;
21568}
21569
21570_ACEOF
21571
21572
21573 rm -Rf build && mkdir -p build
21574 echo "obj-m := conftest.o" >build/Makefile
21575 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
21576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21577 (eval $ac_try) 2>&5
21578 ac_status=$?
21579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21580 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21582 (eval $ac_try) 2>&5
21583 ac_status=$?
21584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21585 (exit $ac_status); }; }; then
21586
21587 echo "$as_me:$LINENO: result: yes" >&5
21588echo "${ECHO_T}yes" >&6
21589
21590cat >>confdefs.h <<\_ACEOF
6ae7fef5 21591#define HAVE_ZONE_STAT_ITEM_NR_ACTIVE 1
ec7d53e9
BB
21592_ACEOF
21593
21594
21595else
21596 echo "$as_me: failed program was:" >&5
21597sed 's/^/| /' conftest.$ac_ext >&5
21598
21599 echo "$as_me:$LINENO: result: no" >&5
21600echo "${ECHO_T}no" >&6
21601
21602
21603
21604fi
21605
21606 rm -Rf build
21607
21608
21609
6ae7fef5
BB
21610 echo "$as_me:$LINENO: checking whether page state NR_ACTIVE_ANON is available" >&5
21611echo $ECHO_N "checking whether page state NR_ACTIVE_ANON is available... $ECHO_C" >&6
ec7d53e9 21612
ec7d53e9 21613
6ae7fef5
BB
21614cat >conftest.c <<_ACEOF
21615/* confdefs.h. */
21616_ACEOF
21617cat confdefs.h >>conftest.$ac_ext
21618cat >>conftest.$ac_ext <<_ACEOF
21619/* end confdefs.h. */
21620
21621
21622 #include <linux/mm.h>
21623
21624int
21625main (void)
21626{
21627
21628 enum zone_stat_item zsi;
21629 zsi = NR_ACTIVE_ANON;
21630
21631 ;
21632 return 0;
21633}
ec7d53e9 21634
ec7d53e9
BB
21635_ACEOF
21636
6ae7fef5
BB
21637
21638 rm -Rf build && mkdir -p build
21639 echo "obj-m := conftest.o" >build/Makefile
21640 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
21641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21642 (eval $ac_try) 2>&5
21643 ac_status=$?
21644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21645 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21647 (eval $ac_try) 2>&5
21648 ac_status=$?
21649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21650 (exit $ac_status); }; }; then
21651
ec7d53e9
BB
21652 echo "$as_me:$LINENO: result: yes" >&5
21653echo "${ECHO_T}yes" >&6
21654
21655cat >>confdefs.h <<\_ACEOF
6ae7fef5 21656#define HAVE_ZONE_STAT_ITEM_NR_ACTIVE_ANON 1
ec7d53e9
BB
21657_ACEOF
21658
ec7d53e9 21659
6ae7fef5
BB
21660else
21661 echo "$as_me: failed program was:" >&5
21662sed 's/^/| /' conftest.$ac_ext >&5
ec7d53e9 21663
6ae7fef5
BB
21664 echo "$as_me:$LINENO: result: no" >&5
21665echo "${ECHO_T}no" >&6
bf9f3bac 21666
bf9f3bac 21667
bf9f3bac 21668
6ae7fef5 21669fi
bf9f3bac 21670
6ae7fef5 21671 rm -Rf build
bf9f3bac 21672
bf9f3bac 21673
bf9f3bac 21674
6ae7fef5
BB
21675 echo "$as_me:$LINENO: checking whether page state NR_ACTIVE_FILE is available" >&5
21676echo $ECHO_N "checking whether page state NR_ACTIVE_FILE is available... $ECHO_C" >&6
bf9f3bac 21677
bf9f3bac 21678
6ae7fef5
BB
21679cat >conftest.c <<_ACEOF
21680/* confdefs.h. */
21681_ACEOF
21682cat confdefs.h >>conftest.$ac_ext
21683cat >>conftest.$ac_ext <<_ACEOF
21684/* end confdefs.h. */
bf9f3bac 21685
bf9f3bac 21686
6ae7fef5 21687 #include <linux/mm.h>
bf9f3bac 21688
6ae7fef5
BB
21689int
21690main (void)
21691{
21692
21693 enum zone_stat_item zsi;
21694 zsi = NR_ACTIVE_FILE;
21695
21696 ;
21697 return 0;
21698}
21699
21700_ACEOF
21701
21702
21703 rm -Rf build && mkdir -p build
21704 echo "obj-m := conftest.o" >build/Makefile
21705 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
21706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21707 (eval $ac_try) 2>&5
21708 ac_status=$?
21709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21710 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21712 (eval $ac_try) 2>&5
21713 ac_status=$?
21714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21715 (exit $ac_status); }; }; then
21716
21717 echo "$as_me:$LINENO: result: yes" >&5
21718echo "${ECHO_T}yes" >&6
21719
21720cat >>confdefs.h <<\_ACEOF
21721#define HAVE_ZONE_STAT_ITEM_NR_ACTIVE_FILE 1
21722_ACEOF
21723
21724
21725else
21726 echo "$as_me: failed program was:" >&5
21727sed 's/^/| /' conftest.$ac_ext >&5
21728
21729 echo "$as_me:$LINENO: result: no" >&5
21730echo "${ECHO_T}no" >&6
21731
21732
21733
21734fi
21735
21736 rm -Rf build
21737
21738
21739
21740
21741 echo "$as_me:$LINENO: checking whether symbol get_zone_counts is needed" >&5
21742echo $ECHO_N "checking whether symbol get_zone_counts is needed... $ECHO_C" >&6
21743
21744
21745cat >conftest.c <<_ACEOF
21746/* confdefs.h. */
21747_ACEOF
21748cat confdefs.h >>conftest.$ac_ext
21749cat >>conftest.$ac_ext <<_ACEOF
21750/* end confdefs.h. */
21751
21752
21753
21754int
21755main (void)
21756{
21757
21758 #if !defined(HAVE_ZONE_STAT_ITEM_NR_FREE_PAGES)
21759 #error "global_page_state needs NR_FREE_PAGES"
21760 #endif
21761
21762 #if !defined(HAVE_ZONE_STAT_ITEM_NR_ACTIVE) && \
21763 !defined(HAVE_ZONE_STAT_ITEM_NR_ACTIVE_ANON) && \
21764 !defined(HAVE_ZONE_STAT_ITEM_NR_ACTIVE_FILE)
21765 #error "global_page_state needs NR_ACTIVE*"
21766 #endif
21767
21768 #if !defined(HAVE_ZONE_STAT_ITEM_NR_INACTIVE) && \
21769 !defined(HAVE_ZONE_STAT_ITEM_NR_INACTIVE_ANON) && \
21770 !defined(HAVE_ZONE_STAT_ITEM_NR_INACTIVE_FILE)
21771 #error "global_page_state needs NR_INACTIVE*"
21772 #endif
21773
21774 ;
21775 return 0;
21776}
21777
21778_ACEOF
21779
21780
21781 rm -Rf build && mkdir -p build
21782 echo "obj-m := conftest.o" >build/Makefile
21783 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
21784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21785 (eval $ac_try) 2>&5
21786 ac_status=$?
21787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21788 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21790 (eval $ac_try) 2>&5
21791 ac_status=$?
21792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21793 (exit $ac_status); }; }; then
21794
21795 echo "$as_me:$LINENO: result: no" >&5
21796echo "${ECHO_T}no" >&6
21797
21798else
21799 echo "$as_me: failed program was:" >&5
21800sed 's/^/| /' conftest.$ac_ext >&5
21801
21802 echo "$as_me:$LINENO: result: yes" >&5
21803echo "${ECHO_T}yes" >&6
21804
21805cat >>confdefs.h <<\_ACEOF
21806#define NEED_GET_ZONE_COUNTS 1
21807_ACEOF
21808
21809
21810 echo "$as_me:$LINENO: checking whether symbol get_zone_counts is exported" >&5
21811echo $ECHO_N "checking whether symbol get_zone_counts is exported... $ECHO_C" >&6
21812 grep -q -E '[[:space:]]get_zone_counts[[:space:]]' \
21813 $LINUX_OBJ/Module*.symvers 2>/dev/null
21814 rc=$?
21815 if test $rc -ne 0; then
21816 export=0
21817 for file in ; do
21818 grep -q -E "EXPORT_SYMBOL.*(get_zone_counts)" \
21819 "$LINUX_OBJ/$file" 2>/dev/null
21820 rc=$?
21821 if test $rc -eq 0; then
21822 export=1
21823 break;
21824 fi
21825 done
21826 if test $export -eq 0; then
21827 echo "$as_me:$LINENO: result: no" >&5
21828echo "${ECHO_T}no" >&6
21829
21830 else
21831 echo "$as_me:$LINENO: result: yes" >&5
21832echo "${ECHO_T}yes" >&6
21833
21834cat >>confdefs.h <<\_ACEOF
21835#define HAVE_GET_ZONE_COUNTS 1
21836_ACEOF
21837
21838 fi
21839 else
21840 echo "$as_me:$LINENO: result: yes" >&5
21841echo "${ECHO_T}yes" >&6
21842
21843cat >>confdefs.h <<\_ACEOF
21844#define HAVE_GET_ZONE_COUNTS 1
21845_ACEOF
21846
21847 fi
21848
21849
21850
21851
51a727e9
BB
21852fi
21853
21854 rm -Rf build
21855
21856
21857
21858
21859 echo "$as_me:$LINENO: checking whether symbol set_fs_pwd is exported" >&5
21860echo $ECHO_N "checking whether symbol set_fs_pwd is exported... $ECHO_C" >&6
21861 grep -q -E '[[:space:]]set_fs_pwd[[:space:]]' \
21862 $LINUX_OBJ/Module*.symvers 2>/dev/null
21863 rc=$?
21864 if test $rc -ne 0; then
21865 export=0
21866 for file in ; do
21867 grep -q -E "EXPORT_SYMBOL.*(set_fs_pwd)" \
21868 "$LINUX_OBJ/$file" 2>/dev/null
21869 rc=$?
21870 if test $rc -eq 0; then
21871 export=1
21872 break;
21873 fi
21874 done
21875 if test $export -eq 0; then
21876 echo "$as_me:$LINENO: result: no" >&5
21877echo "${ECHO_T}no" >&6
21878
21879 else
21880 echo "$as_me:$LINENO: result: yes" >&5
21881echo "${ECHO_T}yes" >&6
21882
21883cat >>confdefs.h <<\_ACEOF
21884#define HAVE_SET_FS_PWD 1
21885_ACEOF
21886
21887 fi
21888 else
21889 echo "$as_me:$LINENO: result: yes" >&5
21890echo "${ECHO_T}yes" >&6
21891
21892cat >>confdefs.h <<\_ACEOF
21893#define HAVE_SET_FS_PWD 1
21894_ACEOF
21895
21896 fi
21897
21898
21899 echo "$as_me:$LINENO: checking whether set_fs_pwd() wants 2 args" >&5
21900echo $ECHO_N "checking whether set_fs_pwd() wants 2 args... $ECHO_C" >&6
21901
21902
21903cat >conftest.c <<_ACEOF
21904/* confdefs.h. */
21905_ACEOF
21906cat confdefs.h >>conftest.$ac_ext
21907cat >>conftest.$ac_ext <<_ACEOF
21908/* end confdefs.h. */
21909
21910
21911 #include <linux/sched.h>
baf2979e 21912 #include <linux/fs_struct.h>
51a727e9
BB
21913
21914int
21915main (void)
21916{
21917
21918 set_fs_pwd(NULL, NULL);
21919
21920 ;
21921 return 0;
21922}
21923
21924_ACEOF
21925
21926
21927 rm -Rf build && mkdir -p build
21928 echo "obj-m := conftest.o" >build/Makefile
21929 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
21930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21931 (eval $ac_try) 2>&5
21932 ac_status=$?
21933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21934 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21936 (eval $ac_try) 2>&5
21937 ac_status=$?
21938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21939 (exit $ac_status); }; }; then
21940
21941 echo "$as_me:$LINENO: result: yes" >&5
21942echo "${ECHO_T}yes" >&6
21943
21944cat >>confdefs.h <<\_ACEOF
21945#define HAVE_2ARGS_SET_FS_PWD 1
21946_ACEOF
21947
21948
21949else
21950 echo "$as_me: failed program was:" >&5
21951sed 's/^/| /' conftest.$ac_ext >&5
21952
21953 echo "$as_me:$LINENO: result: no" >&5
21954echo "${ECHO_T}no" >&6
21955
21956
21957
6ae7fef5
BB
21958fi
21959
21960 rm -Rf build
21961
21962
21963
21964 echo "$as_me:$LINENO: checking whether vfs_unlink() wants 2 args" >&5
21965echo $ECHO_N "checking whether vfs_unlink() wants 2 args... $ECHO_C" >&6
21966
21967
21968cat >conftest.c <<_ACEOF
21969/* confdefs.h. */
21970_ACEOF
21971cat confdefs.h >>conftest.$ac_ext
21972cat >>conftest.$ac_ext <<_ACEOF
21973/* end confdefs.h. */
21974
21975
21976 #include <linux/fs.h>
21977
21978int
21979main (void)
21980{
21981
21982 vfs_unlink(NULL, NULL);
21983
21984 ;
21985 return 0;
21986}
21987
21988_ACEOF
21989
21990
21991 rm -Rf build && mkdir -p build
21992 echo "obj-m := conftest.o" >build/Makefile
21993 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
21994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21995 (eval $ac_try) 2>&5
21996 ac_status=$?
21997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21998 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22000 (eval $ac_try) 2>&5
22001 ac_status=$?
22002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22003 (exit $ac_status); }; }; then
22004
22005 echo "$as_me:$LINENO: result: yes" >&5
22006echo "${ECHO_T}yes" >&6
22007
22008cat >>confdefs.h <<\_ACEOF
22009#define HAVE_2ARGS_VFS_UNLINK 1
22010_ACEOF
22011
22012
22013else
22014 echo "$as_me: failed program was:" >&5
22015sed 's/^/| /' conftest.$ac_ext >&5
22016
22017 echo "$as_me:$LINENO: result: no" >&5
22018echo "${ECHO_T}no" >&6
22019
22020
22021
22022fi
22023
22024 rm -Rf build
22025
22026
22027
22028 echo "$as_me:$LINENO: checking whether vfs_rename() wants 4 args" >&5
22029echo $ECHO_N "checking whether vfs_rename() wants 4 args... $ECHO_C" >&6
22030
22031
22032cat >conftest.c <<_ACEOF
22033/* confdefs.h. */
22034_ACEOF
22035cat confdefs.h >>conftest.$ac_ext
22036cat >>conftest.$ac_ext <<_ACEOF
22037/* end confdefs.h. */
22038
22039
22040 #include <linux/fs.h>
22041
22042int
22043main (void)
22044{
22045
22046 vfs_rename(NULL, NULL, NULL, NULL);
22047
22048 ;
22049 return 0;
22050}
22051
22052_ACEOF
22053
22054
22055 rm -Rf build && mkdir -p build
22056 echo "obj-m := conftest.o" >build/Makefile
22057 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
22058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22059 (eval $ac_try) 2>&5
22060 ac_status=$?
22061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22062 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
22063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22064 (eval $ac_try) 2>&5
22065 ac_status=$?
22066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22067 (exit $ac_status); }; }; then
22068
22069 echo "$as_me:$LINENO: result: yes" >&5
22070echo "${ECHO_T}yes" >&6
22071
22072cat >>confdefs.h <<\_ACEOF
22073#define HAVE_4ARGS_VFS_RENAME 1
22074_ACEOF
22075
22076
22077else
22078 echo "$as_me: failed program was:" >&5
22079sed 's/^/| /' conftest.$ac_ext >&5
22080
22081 echo "$as_me:$LINENO: result: no" >&5
22082echo "${ECHO_T}no" >&6
22083
22084
22085
22086fi
22087
22088 rm -Rf build
22089
22090
22091
22092
22093 echo "$as_me:$LINENO: checking whether struct cred exists" >&5
22094echo $ECHO_N "checking whether struct cred exists... $ECHO_C" >&6
22095
22096
22097cat >conftest.c <<_ACEOF
22098/* confdefs.h. */
22099_ACEOF
22100cat confdefs.h >>conftest.$ac_ext
22101cat >>conftest.$ac_ext <<_ACEOF
22102/* end confdefs.h. */
22103
22104
22105 #include <linux/cred.h>
22106
22107int
22108main (void)
22109{
22110
22111 struct cred *cr;
22112 cr = NULL;
22113
22114 ;
22115 return 0;
22116}
22117
22118_ACEOF
22119
22120
22121 rm -Rf build && mkdir -p build
22122 echo "obj-m := conftest.o" >build/Makefile
22123 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
22124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22125 (eval $ac_try) 2>&5
22126 ac_status=$?
22127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22128 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
22129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22130 (eval $ac_try) 2>&5
22131 ac_status=$?
22132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22133 (exit $ac_status); }; }; then
22134
22135 echo "$as_me:$LINENO: result: yes" >&5
22136echo "${ECHO_T}yes" >&6
22137
22138cat >>confdefs.h <<\_ACEOF
22139#define HAVE_CRED_STRUCT 1
22140_ACEOF
22141
22142
22143else
22144 echo "$as_me: failed program was:" >&5
22145sed 's/^/| /' conftest.$ac_ext >&5
22146
22147 echo "$as_me:$LINENO: result: no" >&5
22148echo "${ECHO_T}no" >&6
22149
22150
22151
22152fi
22153
22154 rm -Rf build
22155
22156
22157
22158
22159 echo "$as_me:$LINENO: checking whether symbol groups_search is exported" >&5
22160echo $ECHO_N "checking whether symbol groups_search is exported... $ECHO_C" >&6
22161 grep -q -E '[[:space:]]groups_search[[:space:]]' \
22162 $LINUX_OBJ/Module*.symvers 2>/dev/null
22163 rc=$?
22164 if test $rc -ne 0; then
22165 export=0
22166 for file in ; do
22167 grep -q -E "EXPORT_SYMBOL.*(groups_search)" \
22168 "$LINUX_OBJ/$file" 2>/dev/null
22169 rc=$?
22170 if test $rc -eq 0; then
22171 export=1
22172 break;
22173 fi
22174 done
22175 if test $export -eq 0; then
22176 echo "$as_me:$LINENO: result: no" >&5
22177echo "${ECHO_T}no" >&6
22178
22179 else
22180 echo "$as_me:$LINENO: result: yes" >&5
22181echo "${ECHO_T}yes" >&6
22182
22183cat >>confdefs.h <<\_ACEOF
22184#define HAVE_GROUPS_SEARCH 1
22185_ACEOF
22186
22187 fi
22188 else
22189 echo "$as_me:$LINENO: result: yes" >&5
22190echo "${ECHO_T}yes" >&6
22191
22192cat >>confdefs.h <<\_ACEOF
22193#define HAVE_GROUPS_SEARCH 1
22194_ACEOF
22195
22196 fi
22197
22198
e811949a
BB
22199
22200 echo "$as_me:$LINENO: checking whether symbol __put_task_struct is exported" >&5
22201echo $ECHO_N "checking whether symbol __put_task_struct is exported... $ECHO_C" >&6
22202 grep -q -E '[[:space:]]__put_task_struct[[:space:]]' \
22203 $LINUX_OBJ/Module*.symvers 2>/dev/null
22204 rc=$?
22205 if test $rc -ne 0; then
22206 export=0
22207 for file in ; do
22208 grep -q -E "EXPORT_SYMBOL.*(__put_task_struct)" \
22209 "$LINUX_OBJ/$file" 2>/dev/null
22210 rc=$?
22211 if test $rc -eq 0; then
22212 export=1
22213 break;
22214 fi
22215 done
22216 if test $export -eq 0; then
22217 echo "$as_me:$LINENO: result: no" >&5
22218echo "${ECHO_T}no" >&6
22219
22220 else
22221 echo "$as_me:$LINENO: result: yes" >&5
22222echo "${ECHO_T}yes" >&6
22223
22224cat >>confdefs.h <<\_ACEOF
22225#define HAVE_PUT_TASK_STRUCT 1
22226_ACEOF
22227
22228 fi
22229 else
22230 echo "$as_me:$LINENO: result: yes" >&5
22231echo "${ECHO_T}yes" >&6
22232
22233cat >>confdefs.h <<\_ACEOF
22234#define HAVE_PUT_TASK_STRUCT 1
22235_ACEOF
22236
22237 fi
22238
22239
3977f837
BB
22240
22241 echo "$as_me:$LINENO: checking whether proc_handler() wants 5 args" >&5
22242echo $ECHO_N "checking whether proc_handler() wants 5 args... $ECHO_C" >&6
22243
22244
22245cat >conftest.c <<_ACEOF
22246/* confdefs.h. */
22247_ACEOF
22248cat confdefs.h >>conftest.$ac_ext
22249cat >>conftest.$ac_ext <<_ACEOF
22250/* end confdefs.h. */
22251
22252
22253 #include <linux/sysctl.h>
22254
22255int
22256main (void)
22257{
22258
22259 proc_dostring(NULL, 0, NULL, NULL, NULL);
22260
22261 ;
22262 return 0;
22263}
22264
22265_ACEOF
22266
22267
22268 rm -Rf build && mkdir -p build
22269 echo "obj-m := conftest.o" >build/Makefile
22270 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
22271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22272 (eval $ac_try) 2>&5
22273 ac_status=$?
22274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22275 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
22276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22277 (eval $ac_try) 2>&5
22278 ac_status=$?
22279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22280 (exit $ac_status); }; }; then
22281
22282 echo "$as_me:$LINENO: result: yes" >&5
22283echo "${ECHO_T}yes" >&6
22284
22285cat >>confdefs.h <<\_ACEOF
22286#define HAVE_5ARGS_PROC_HANDLER 1
22287_ACEOF
22288
22289
22290else
22291 echo "$as_me: failed program was:" >&5
22292sed 's/^/| /' conftest.$ac_ext >&5
22293
22294 echo "$as_me:$LINENO: result: no" >&5
22295echo "${ECHO_T}no" >&6
22296
22297
22298
22299fi
22300
22301 rm -Rf build
22302
22303
22304
6ae7fef5
BB
22305 ;;
22306 user) ;;
22307 all)
22308
22309
22310# Check whether --with-linux or --without-linux was given.
22311if test "${with_linux+set}" = set; then
22312 withval="$with_linux"
22313 kernelsrc="$withval"
22314fi;
22315
22316
22317# Check whether --with-linux-obj or --without-linux-obj was given.
22318if test "${with_linux_obj+set}" = set; then
22319 withval="$with_linux_obj"
22320 kernelbuild="$withval"
22321fi;
22322
22323 echo "$as_me:$LINENO: checking kernel source directory" >&5
22324echo $ECHO_N "checking kernel source directory... $ECHO_C" >&6
22325 if test -z "$kernelsrc"; then
534c4e38
BM
22326 headersdir="/lib/modules/$(uname -r)/build"
22327 if test -e "$headersdir"; then
22328 sourcelink=$(readlink -f "$headersdir")
22329 else
22330 sourcelink=$(ls -1d /usr/src/kernels/* \
22331 /usr/src/linux-* \
22332 2>/dev/null | grep -v obj | tail -1)
22333 fi
6ae7fef5
BB
22334
22335 if test -e ${sourcelink}; then
22336 kernelsrc=`readlink -f ${sourcelink}`
22337 else
22338 echo "$as_me:$LINENO: result: Not found" >&5
22339echo "${ECHO_T}Not found" >&6
22340 { { echo "$as_me:$LINENO: error:
22341 *** Please specify the location of the kernel source
22342 *** with the '--with-linux=PATH' option" >&5
22343echo "$as_me: error:
22344 *** Please specify the location of the kernel source
22345 *** with the '--with-linux=PATH' option" >&2;}
22346 { (exit 1); exit 1; }; }
22347 fi
22348 else
22349 if test "$kernelsrc" = "NONE"; then
22350 kernsrcver=NONE
22351 fi
22352 fi
22353
22354 echo "$as_me:$LINENO: result: $kernelsrc" >&5
22355echo "${ECHO_T}$kernelsrc" >&6
22356 echo "$as_me:$LINENO: checking kernel build directory" >&5
22357echo $ECHO_N "checking kernel build directory... $ECHO_C" >&6
22358 if test -z "$kernelbuild"; then
22359 if test -d ${kernelsrc}-obj/`arch`/`arch`; then
22360 kernelbuild=${kernelsrc}-obj/`arch`/`arch`
22361 elif test -d ${kernelsrc}-obj/`arch`/default; then
22362 kernelbuild=${kernelsrc}-obj/`arch`/default
22363 elif test -d `dirname ${kernelsrc}`/build-`arch`; then
22364 kernelbuild=`dirname ${kernelsrc}`/build-`arch`
22365 else
22366 kernelbuild=${kernelsrc}
22367 fi
22368 fi
22369 echo "$as_me:$LINENO: result: $kernelbuild" >&5
22370echo "${ECHO_T}$kernelbuild" >&6
22371
22372 echo "$as_me:$LINENO: checking kernel source version" >&5
22373echo $ECHO_N "checking kernel source version... $ECHO_C" >&6
22374 if test -r $kernelbuild/include/linux/version.h &&
22375 fgrep -q UTS_RELEASE $kernelbuild/include/linux/version.h; then
22376
22377 kernsrcver=`(echo "#include <linux/version.h>";
22378 echo "kernsrcver=UTS_RELEASE") |
22379 cpp -I $kernelbuild/include |
22380 grep "^kernsrcver=" | cut -d \" -f 2`
22381
22382 elif test -r $kernelbuild/include/linux/utsrelease.h &&
22383 fgrep -q UTS_RELEASE $kernelbuild/include/linux/utsrelease.h; then
22384
22385 kernsrcver=`(echo "#include <linux/utsrelease.h>";
22386 echo "kernsrcver=UTS_RELEASE") |
22387 cpp -I $kernelbuild/include |
22388 grep "^kernsrcver=" | cut -d \" -f 2`
22389 fi
22390
22391 if test -z "$kernsrcver"; then
22392 echo "$as_me:$LINENO: result: Not found" >&5
22393echo "${ECHO_T}Not found" >&6
22394 { { echo "$as_me:$LINENO: error:
22395 *** Cannot determine the version of the linux kernel source.
22396 *** Please prepare the kernel before running this script" >&5
22397echo "$as_me: error:
22398 *** Cannot determine the version of the linux kernel source.
22399 *** Please prepare the kernel before running this script" >&2;}
bf9f3bac 22400 { (exit 1); exit 1; }; }
22401 fi
22402
22403 echo "$as_me:$LINENO: result: $kernsrcver" >&5
22404echo "${ECHO_T}$kernsrcver" >&6
22405
bf9f3bac 22406 LINUX=${kernelsrc}
22407 LINUX_OBJ=${kernelbuild}
c5f70460
BB
22408 LINUX_VERSION=${kernsrcver}
22409
bf9f3bac 22410
22411
22412
22413
22414
bb339d06 22415 modpost=$LINUX/scripts/Makefile.modpost
2e0e7e69
BB
22416 echo "$as_me:$LINENO: checking kernel file name for module symbols" >&5
22417echo $ECHO_N "checking kernel file name for module symbols... $ECHO_C" >&6
bb339d06
BB
22418 if test -f "$modpost"; then
22419 if grep -q Modules.symvers $modpost; then
22420 LINUX_SYMBOLS=Modules.symvers
22421 else
22422 LINUX_SYMBOLS=Module.symvers
22423 fi
2e0e7e69 22424 else
bb339d06 22425 LINUX_SYMBOLS=NONE
2e0e7e69
BB
22426 fi
22427 echo "$as_me:$LINENO: result: $LINUX_SYMBOLS" >&5
22428echo "${ECHO_T}$LINUX_SYMBOLS" >&6
22429
22430
22431
86933a6e
BB
22432
22433 KERNELMAKE_PARAMS="V=1"
22434
22435 abs_srcdir=`readlink -f ${srcdir}`
22436 KERNELCPPFLAGS="$KERNELCPPFLAGS -Wstrict-prototypes -Werror"
22437 KERNELCPPFLAGS="$KERNELCPPFLAGS -I${abs_srcdir} -I${abs_srcdir}/include"
22438
22439 if test "${LINUX_OBJ}" != "${LINUX}"; then
22440 KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
22441 fi
22442
22443
22444
bf9f3bac 22445
22446
bf9f3bac 22447 # Check whether --enable-debug or --disable-debug was given.
22448if test "${enable_debug+set}" = set; then
22449 enableval="$enable_debug"
bf9f3bac 22450
055ffd98
BB
22451else
22452 enable_debug=no
bf9f3bac 22453fi;
055ffd98
BB
22454
22455 if test "x$enable_debug" = xyes; then
22456 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG"
22457else
22458 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DNDEBUG"
22459fi
22460
22461
22462 echo "$as_me:$LINENO: checking whether debugging is enabled" >&5
22463echo $ECHO_N "checking whether debugging is enabled... $ECHO_C" >&6
22464 echo "$as_me:$LINENO: result: $enable_debug" >&5
22465echo "${ECHO_T}$enable_debug" >&6
bf9f3bac 22466
22467
bf9f3bac 22468 # Check whether --enable-debug-kmem or --disable-debug-kmem was given.
22469if test "${enable_debug_kmem+set}" = set; then
22470 enableval="$enable_debug_kmem"
bf9f3bac 22471
055ffd98
BB
22472else
22473 enable_debug_kmem=yes
bf9f3bac 22474fi;
055ffd98
BB
22475
22476 if test "x$enable_debug_kmem" = xyes; then
bf9f3bac 22477
22478cat >>confdefs.h <<\_ACEOF
22479#define DEBUG_KMEM 1
22480_ACEOF
22481
22482 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_KMEM"
055ffd98 22483fi
bf9f3bac 22484
bf9f3bac 22485
055ffd98
BB
22486 echo "$as_me:$LINENO: checking whether basic kmem accounting is enabled" >&5
22487echo $ECHO_N "checking whether basic kmem accounting is enabled... $ECHO_C" >&6
22488 echo "$as_me:$LINENO: result: $enable_debug_kmem" >&5
22489echo "${ECHO_T}$enable_debug_kmem" >&6
bf9f3bac 22490
22491
055ffd98
BB
22492 # Check whether --enable-debug-kmem-tracking or --disable-debug-kmem-tracking was given.
22493if test "${enable_debug_kmem_tracking+set}" = set; then
22494 enableval="$enable_debug_kmem_tracking"
bf9f3bac 22495
055ffd98
BB
22496else
22497 enable_debug_kmem_tracking=no
bf9f3bac 22498fi;
055ffd98
BB
22499
22500 if test "x$enable_debug_kmem_tracking" = xyes; then
bf9f3bac 22501
22502cat >>confdefs.h <<\_ACEOF
055ffd98 22503#define DEBUG_KMEM_TRACKING 1
bf9f3bac 22504_ACEOF
22505
055ffd98
BB
22506 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_KMEM_TRACKING"
22507fi
22508
22509
22510 echo "$as_me:$LINENO: checking whether detailed kmem tracking is enabled" >&5
22511echo $ECHO_N "checking whether detailed kmem tracking is enabled... $ECHO_C" >&6
22512 echo "$as_me:$LINENO: result: $enable_debug_kmem_tracking" >&5
22513echo "${ECHO_T}$enable_debug_kmem_tracking" >&6
bf9f3bac 22514
5e9b5d83
BB
22515
22516 # Check whether --enable-atomic-spinlocks or --disable-atomic-spinlocks was given.
22517if test "${enable_atomic_spinlocks+set}" = set; then
22518 enableval="$enable_atomic_spinlocks"
22519
22520else
d04c8a56 22521 enable_atomic_spinlocks=check
5e9b5d83
BB
22522fi;
22523
bf9f3bac 22524
22525
22526cat >conftest.c <<_ACEOF
22527/* confdefs.h. */
22528_ACEOF
22529cat confdefs.h >>conftest.$ac_ext
22530cat >>conftest.$ac_ext <<_ACEOF
22531/* end confdefs.h. */
22532
22533
d04c8a56 22534 #include <asm/atomic.h>
bf9f3bac 22535
22536int
22537main (void)
22538{
22539
d04c8a56 22540 atomic64_t *ptr;
bf9f3bac 22541
22542 ;
22543 return 0;
22544}
22545
22546_ACEOF
22547
c5f70460
BB
22548
22549 rm -Rf build && mkdir -p build
22550 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 22551 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
bf9f3bac 22552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22553 (eval $ac_try) 2>&5
22554 ac_status=$?
22555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22556 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
22557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22558 (eval $ac_try) 2>&5
22559 ac_status=$?
22560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22561 (exit $ac_status); }; }; then
22562
d04c8a56 22563 have_atomic64_t=yes
bf9f3bac 22564
22565cat >>confdefs.h <<\_ACEOF
d04c8a56 22566#define HAVE_ATOMIC64_T 1
bf9f3bac 22567_ACEOF
22568
22569
22570else
22571 echo "$as_me: failed program was:" >&5
22572sed 's/^/| /' conftest.$ac_ext >&5
22573
d04c8a56 22574 have_atomic64_t=no
bf9f3bac 22575
c5f70460
BB
22576
22577
bf9f3bac 22578fi
c5f70460
BB
22579
22580 rm -Rf build
22581
bf9f3bac 22582
22583
d04c8a56
BB
22584 if test "x$enable_atomic_spinlocks" = xcheck; then
22585
22586 if test "x$have_atomic64_t" = xyes; then
22587
22588 enable_atomic_spinlocks=no
22589
22590else
22591
22592 enable_atomic_spinlocks=yes
22593
22594fi
22595
22596
22597fi
22598
22599
22600 if test "x$enable_atomic_spinlocks" = xyes; then
22601
22602
22603cat >>confdefs.h <<\_ACEOF
22604#define ATOMIC_SPINLOCK 1
22605_ACEOF
22606
22607
22608else
22609
22610 if test "x$have_atomic64_t" = xno; then
22611
22612 { { echo "$as_me:$LINENO: error: --disable-atomic-spinlocks given but required atomic64 support is unavailable
22613See \`config.log' for more details." >&5
22614echo "$as_me: error: --disable-atomic-spinlocks given but required atomic64 support is unavailable
22615See \`config.log' for more details." >&2;}
22616 { (exit 1); exit 1; }; }
22617
22618fi
22619
22620
22621fi
22622
22623
22624 echo "$as_me:$LINENO: checking whether atomic types use spinlocks" >&5
22625echo $ECHO_N "checking whether atomic types use spinlocks... $ECHO_C" >&6
22626 echo "$as_me:$LINENO: result: $enable_atomic_spinlocks" >&5
22627echo "${ECHO_T}$enable_atomic_spinlocks" >&6
22628
86933a6e 22629 echo "$as_me:$LINENO: checking whether kernel defines atomic64_t" >&5
bf9f3bac 22630echo $ECHO_N "checking whether kernel defines atomic64_t... $ECHO_C" >&6
d04c8a56
BB
22631 echo "$as_me:$LINENO: result: $have_atomic64_t" >&5
22632echo "${ECHO_T}$have_atomic64_t" >&6
22633
22634 echo "$as_me:$LINENO: checking whether kernel defines atomic64_cmpxchg" >&5
22635echo $ECHO_N "checking whether kernel defines atomic64_cmpxchg... $ECHO_C" >&6
bf9f3bac 22636
22637
22638cat >conftest.c <<_ACEOF
22639/* confdefs.h. */
22640_ACEOF
22641cat confdefs.h >>conftest.$ac_ext
22642cat >>conftest.$ac_ext <<_ACEOF
22643/* end confdefs.h. */
22644
22645
22646 #include <asm/atomic.h>
22647
22648int
22649main (void)
22650{
22651
d04c8a56 22652 atomic64_cmpxchg((atomic64_t *)NULL, 0, 0);
bf9f3bac 22653
22654 ;
22655 return 0;
22656}
22657
22658_ACEOF
22659
c5f70460
BB
22660
22661 rm -Rf build && mkdir -p build
22662 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 22663 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
bf9f3bac 22664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22665 (eval $ac_try) 2>&5
22666 ac_status=$?
22667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22668 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
22669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22670 (eval $ac_try) 2>&5
22671 ac_status=$?
22672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22673 (exit $ac_status); }; }; then
22674
22675 echo "$as_me:$LINENO: result: yes" >&5
22676echo "${ECHO_T}yes" >&6
22677
22678cat >>confdefs.h <<\_ACEOF
d04c8a56 22679#define HAVE_ATOMIC64_CMPXCHG 1
bf9f3bac 22680_ACEOF
22681
22682
302b88e6
BB
22683else
22684 echo "$as_me: failed program was:" >&5
22685sed 's/^/| /' conftest.$ac_ext >&5
22686
22687 echo "$as_me:$LINENO: result: no" >&5
22688echo "${ECHO_T}no" >&6
22689
22690
22691
22692fi
22693
22694 rm -Rf build
22695
22696
22697
d04c8a56
BB
22698 echo "$as_me:$LINENO: checking whether kernel defines atomic64_xchg" >&5
22699echo $ECHO_N "checking whether kernel defines atomic64_xchg... $ECHO_C" >&6
302b88e6
BB
22700
22701
22702cat >conftest.c <<_ACEOF
22703/* confdefs.h. */
22704_ACEOF
22705cat confdefs.h >>conftest.$ac_ext
22706cat >>conftest.$ac_ext <<_ACEOF
22707/* end confdefs.h. */
22708
22709
22710 #include <asm/atomic.h>
22711
22712int
22713main (void)
22714{
22715
d04c8a56 22716 atomic64_xchg((atomic64_t *)NULL, 0);
302b88e6
BB
22717
22718 ;
22719 return 0;
22720}
22721
22722_ACEOF
22723
22724
22725 rm -Rf build && mkdir -p build
22726 echo "obj-m := conftest.o" >build/Makefile
22727 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
22728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22729 (eval $ac_try) 2>&5
22730 ac_status=$?
22731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22732 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
22733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22734 (eval $ac_try) 2>&5
22735 ac_status=$?
22736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22737 (exit $ac_status); }; }; then
22738
22739 echo "$as_me:$LINENO: result: yes" >&5
22740echo "${ECHO_T}yes" >&6
22741
22742cat >>confdefs.h <<\_ACEOF
d04c8a56 22743#define HAVE_ATOMIC64_XCHG 1
302b88e6
BB
22744_ACEOF
22745
22746
22747else
22748 echo "$as_me: failed program was:" >&5
22749sed 's/^/| /' conftest.$ac_ext >&5
22750
22751 echo "$as_me:$LINENO: result: no" >&5
22752echo "${ECHO_T}no" >&6
22753
22754
22755
22756fi
22757
22758 rm -Rf build
22759
22760
22761
d04c8a56
BB
22762 echo "$as_me:$LINENO: checking whether kernel defines uintptr_t" >&5
22763echo $ECHO_N "checking whether kernel defines uintptr_t... $ECHO_C" >&6
302b88e6
BB
22764
22765
22766cat >conftest.c <<_ACEOF
22767/* confdefs.h. */
22768_ACEOF
22769cat confdefs.h >>conftest.$ac_ext
22770cat >>conftest.$ac_ext <<_ACEOF
22771/* end confdefs.h. */
22772
22773
d04c8a56 22774 #include <linux/types.h>
302b88e6
BB
22775
22776int
22777main (void)
22778{
22779
d04c8a56 22780 uintptr_t *ptr;
302b88e6
BB
22781
22782 ;
22783 return 0;
22784}
22785
22786_ACEOF
22787
22788
22789 rm -Rf build && mkdir -p build
22790 echo "obj-m := conftest.o" >build/Makefile
22791 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
22792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22793 (eval $ac_try) 2>&5
22794 ac_status=$?
22795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22796 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
22797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22798 (eval $ac_try) 2>&5
22799 ac_status=$?
22800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22801 (exit $ac_status); }; }; then
22802
22803 echo "$as_me:$LINENO: result: yes" >&5
22804echo "${ECHO_T}yes" >&6
22805
22806cat >>confdefs.h <<\_ACEOF
d04c8a56 22807#define HAVE_UINTPTR_T 1
302b88e6
BB
22808_ACEOF
22809
22810
bf9f3bac 22811else
22812 echo "$as_me: failed program was:" >&5
22813sed 's/^/| /' conftest.$ac_ext >&5
22814
bf9f3bac 22815 echo "$as_me:$LINENO: result: no" >&5
22816echo "${ECHO_T}no" >&6
22817
c5f70460
BB
22818
22819
bf9f3bac 22820fi
c5f70460
BB
22821
22822 rm -Rf build
22823
bf9f3bac 22824
22825
86933a6e 22826 echo "$as_me:$LINENO: checking whether INIT_WORK wants 3 args" >&5
bf9f3bac 22827echo $ECHO_N "checking whether INIT_WORK wants 3 args... $ECHO_C" >&6
22828
22829
22830cat >conftest.c <<_ACEOF
22831/* confdefs.h. */
22832_ACEOF
22833cat confdefs.h >>conftest.$ac_ext
22834cat >>conftest.$ac_ext <<_ACEOF
22835/* end confdefs.h. */
22836
22837
22838 #include <linux/workqueue.h>
22839
22840int
22841main (void)
22842{
22843
22844 struct work_struct work;
22845 INIT_WORK(&work, NULL, NULL);
22846
22847 ;
22848 return 0;
22849}
22850
22851_ACEOF
22852
c5f70460
BB
22853
22854 rm -Rf build && mkdir -p build
22855 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 22856 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
bf9f3bac 22857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22858 (eval $ac_try) 2>&5
22859 ac_status=$?
22860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22861 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
22862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22863 (eval $ac_try) 2>&5
22864 ac_status=$?
22865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22866 (exit $ac_status); }; }; then
22867
22868 echo "$as_me:$LINENO: result: yes" >&5
22869echo "${ECHO_T}yes" >&6
22870
22871cat >>confdefs.h <<\_ACEOF
22872#define HAVE_3ARGS_INIT_WORK 1
22873_ACEOF
22874
22875
22876else
22877 echo "$as_me: failed program was:" >&5
22878sed 's/^/| /' conftest.$ac_ext >&5
22879
bf9f3bac 22880 echo "$as_me:$LINENO: result: no" >&5
22881echo "${ECHO_T}no" >&6
22882
c5f70460
BB
22883
22884
bf9f3bac 22885fi
c5f70460
BB
22886
22887 rm -Rf build
22888
bf9f3bac 22889
22890
86933a6e 22891 echo "$as_me:$LINENO: checking whether register_sysctl_table() wants 2 args" >&5
bf9f3bac 22892echo $ECHO_N "checking whether register_sysctl_table() wants 2 args... $ECHO_C" >&6
22893
22894
22895cat >conftest.c <<_ACEOF
22896/* confdefs.h. */
22897_ACEOF
22898cat confdefs.h >>conftest.$ac_ext
22899cat >>conftest.$ac_ext <<_ACEOF
22900/* end confdefs.h. */
22901
22902
22903 #include <linux/sysctl.h>
22904
22905int
22906main (void)
22907{
22908
22909 return register_sysctl_table(NULL,0);
22910
22911 ;
22912 return 0;
22913}
22914
22915_ACEOF
22916
c5f70460
BB
22917
22918 rm -Rf build && mkdir -p build
22919 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 22920 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
bf9f3bac 22921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22922 (eval $ac_try) 2>&5
22923 ac_status=$?
22924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22925 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
22926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22927 (eval $ac_try) 2>&5
22928 ac_status=$?
22929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22930 (exit $ac_status); }; }; then
22931
22932 echo "$as_me:$LINENO: result: yes" >&5
22933echo "${ECHO_T}yes" >&6
22934
22935cat >>confdefs.h <<\_ACEOF
22936#define HAVE_2ARGS_REGISTER_SYSCTL 1
22937_ACEOF
22938
22939
22940else
22941 echo "$as_me: failed program was:" >&5
22942sed 's/^/| /' conftest.$ac_ext >&5
22943
bf9f3bac 22944 echo "$as_me:$LINENO: result: no" >&5
22945echo "${ECHO_T}no" >&6
22946
c5f70460
BB
22947
22948
bf9f3bac 22949fi
c5f70460
BB
22950
22951 rm -Rf build
22952
bf9f3bac 22953
22954
22955
22956 echo "$as_me:$LINENO: checking whether set_shrinker() available" >&5
22957echo $ECHO_N "checking whether set_shrinker() available... $ECHO_C" >&6
22958
22959
22960cat >conftest.c <<_ACEOF
22961/* confdefs.h. */
22962_ACEOF
22963cat confdefs.h >>conftest.$ac_ext
22964cat >>conftest.$ac_ext <<_ACEOF
22965/* end confdefs.h. */
22966
22967
22968 #include <linux/mm.h>
22969
22970int
22971main (void)
22972{
22973
22974 return set_shrinker(DEFAULT_SEEKS, NULL);
22975
22976 ;
22977 return 0;
22978}
22979
22980_ACEOF
22981
c5f70460
BB
22982
22983 rm -Rf build && mkdir -p build
22984 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 22985 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
bf9f3bac 22986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22987 (eval $ac_try) 2>&5
22988 ac_status=$?
22989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22990 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
22991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22992 (eval $ac_try) 2>&5
22993 ac_status=$?
22994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22995 (exit $ac_status); }; }; then
22996
22997 echo "$as_me:$LINENO: result: yes" >&5
22998echo "${ECHO_T}yes" >&6
22999
23000cat >>confdefs.h <<\_ACEOF
23001#define HAVE_SET_SHRINKER 1
23002_ACEOF
23003
23004
23005else
23006 echo "$as_me: failed program was:" >&5
23007sed 's/^/| /' conftest.$ac_ext >&5
23008
bf9f3bac 23009 echo "$as_me:$LINENO: result: no" >&5
23010echo "${ECHO_T}no" >&6
23011
c5f70460
BB
23012
23013
bf9f3bac 23014fi
c5f70460
BB
23015
23016 rm -Rf build
23017
bf9f3bac 23018
23019
86933a6e 23020 echo "$as_me:$LINENO: checking whether struct path used in struct nameidata" >&5
bf9f3bac 23021echo $ECHO_N "checking whether struct path used in struct nameidata... $ECHO_C" >&6
23022
23023
23024cat >conftest.c <<_ACEOF
23025/* confdefs.h. */
23026_ACEOF
23027cat confdefs.h >>conftest.$ac_ext
23028cat >>conftest.$ac_ext <<_ACEOF
23029/* end confdefs.h. */
23030
23031
23032 #include <linux/namei.h>
23033
23034int
23035main (void)
23036{
23037
23038 struct nameidata nd;
23039
23040 nd.path.mnt = NULL;
23041 nd.path.dentry = NULL;
23042
23043 ;
23044 return 0;
23045}
23046
23047_ACEOF
23048
c5f70460
BB
23049
23050 rm -Rf build && mkdir -p build
23051 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 23052 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
bf9f3bac 23053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23054 (eval $ac_try) 2>&5
23055 ac_status=$?
23056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23057 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
23058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23059 (eval $ac_try) 2>&5
23060 ac_status=$?
23061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23062 (exit $ac_status); }; }; then
23063
23064 echo "$as_me:$LINENO: result: yes" >&5
23065echo "${ECHO_T}yes" >&6
23066
23067cat >>confdefs.h <<\_ACEOF
23068#define HAVE_PATH_IN_NAMEIDATA 1
23069_ACEOF
23070
23071
23072else
23073 echo "$as_me: failed program was:" >&5
23074sed 's/^/| /' conftest.$ac_ext >&5
23075
bf9f3bac 23076 echo "$as_me:$LINENO: result: no" >&5
23077echo "${ECHO_T}no" >&6
23078
c5f70460
BB
23079
23080
bf9f3bac 23081fi
c5f70460
BB
23082
23083 rm -Rf build
23084
bf9f3bac 23085
23086
23087
23088 echo "$as_me:$LINENO: checking whether symbol task_curr is exported" >&5
23089echo $ECHO_N "checking whether symbol task_curr is exported... $ECHO_C" >&6
2e0e7e69
BB
23090 grep -q -E '[[:space:]]task_curr[[:space:]]' \
23091 $LINUX_OBJ/Module*.symvers 2>/dev/null
bf9f3bac 23092 rc=$?
23093 if test $rc -ne 0; then
23094 export=0
23095 for file in kernel/sched.c; do
2e0e7e69
BB
23096 grep -q -E "EXPORT_SYMBOL.*(task_curr)" \
23097 "$LINUX_OBJ/$file" 2>/dev/null
bf9f3bac 23098 rc=$?
23099 if test $rc -eq 0; then
23100 export=1
23101 break;
23102 fi
23103 done
23104 if test $export -eq 0; then
23105 echo "$as_me:$LINENO: result: no" >&5
23106echo "${ECHO_T}no" >&6
23107
23108 else
23109 echo "$as_me:$LINENO: result: yes" >&5
23110echo "${ECHO_T}yes" >&6
23111
23112cat >>confdefs.h <<\_ACEOF
23113#define HAVE_TASK_CURR 1
23114_ACEOF
23115
23116 fi
23117 else
23118 echo "$as_me:$LINENO: result: yes" >&5
23119echo "${ECHO_T}yes" >&6
23120
23121cat >>confdefs.h <<\_ACEOF
23122#define HAVE_TASK_CURR 1
23123_ACEOF
23124
23125 fi
23126
23127
86933a6e 23128 echo "$as_me:$LINENO: checking whether unnumbered sysctl support exists" >&5
bf9f3bac 23129echo $ECHO_N "checking whether unnumbered sysctl support exists... $ECHO_C" >&6
23130
23131
23132cat >conftest.c <<_ACEOF
23133/* confdefs.h. */
23134_ACEOF
23135cat confdefs.h >>conftest.$ac_ext
23136cat >>conftest.$ac_ext <<_ACEOF
23137/* end confdefs.h. */
23138
23139
23140 #include <linux/sysctl.h>
23141
23142int
23143main (void)
23144{
23145
23146 #ifndef CTL_UNNUMBERED
23147 #error CTL_UNNUMBERED undefined
23148 #endif
23149
23150 ;
23151 return 0;
23152}
23153
23154_ACEOF
23155
c5f70460
BB
23156
23157 rm -Rf build && mkdir -p build
23158 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 23159 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
bf9f3bac 23160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23161 (eval $ac_try) 2>&5
23162 ac_status=$?
23163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23164 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
23165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23166 (eval $ac_try) 2>&5
23167 ac_status=$?
23168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23169 (exit $ac_status); }; }; then
23170
23171 echo "$as_me:$LINENO: result: yes" >&5
23172echo "${ECHO_T}yes" >&6
23173
23174cat >>confdefs.h <<\_ACEOF
23175#define HAVE_CTL_UNNUMBERED 1
23176_ACEOF
23177
23178
23179else
23180 echo "$as_me: failed program was:" >&5
23181sed 's/^/| /' conftest.$ac_ext >&5
23182
bf9f3bac 23183 echo "$as_me:$LINENO: result: no" >&5
23184echo "${ECHO_T}no" >&6
23185
c5f70460
BB
23186
23187
bf9f3bac 23188fi
c5f70460
BB
23189
23190 rm -Rf build
23191
bf9f3bac 23192
23193
86933a6e 23194 echo "$as_me:$LINENO: checking whether fls64() is available" >&5
bf9f3bac 23195echo $ECHO_N "checking whether fls64() is available... $ECHO_C" >&6
23196
23197
23198cat >conftest.c <<_ACEOF
23199/* confdefs.h. */
23200_ACEOF
23201cat confdefs.h >>conftest.$ac_ext
23202cat >>conftest.$ac_ext <<_ACEOF
23203/* end confdefs.h. */
23204
23205
23206 #include <linux/bitops.h>
23207
23208int
23209main (void)
23210{
23211
23212 return fls64(0);
23213
23214 ;
23215 return 0;
23216}
23217
23218_ACEOF
23219
c5f70460
BB
23220
23221 rm -Rf build && mkdir -p build
23222 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 23223 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
bf9f3bac 23224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23225 (eval $ac_try) 2>&5
23226 ac_status=$?
23227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23228 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
23229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23230 (eval $ac_try) 2>&5
23231 ac_status=$?
23232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23233 (exit $ac_status); }; }; then
23234
23235 echo "$as_me:$LINENO: result: yes" >&5
23236echo "${ECHO_T}yes" >&6
23237
23238cat >>confdefs.h <<\_ACEOF
23239#define HAVE_FLS64 1
23240_ACEOF
23241
23242
23243else
23244 echo "$as_me: failed program was:" >&5
23245sed 's/^/| /' conftest.$ac_ext >&5
23246
bf9f3bac 23247 echo "$as_me:$LINENO: result: no" >&5
23248echo "${ECHO_T}no" >&6
23249
c5f70460
BB
23250
23251
bf9f3bac 23252fi
c5f70460
BB
23253
23254 rm -Rf build
23255
bf9f3bac 23256
23257
23258
23259 echo "$as_me:$LINENO: checking whether symbol device_create is exported" >&5
23260echo $ECHO_N "checking whether symbol device_create is exported... $ECHO_C" >&6
2e0e7e69
BB
23261 grep -q -E '[[:space:]]device_create[[:space:]]' \
23262 $LINUX_OBJ/Module*.symvers 2>/dev/null
bf9f3bac 23263 rc=$?
23264 if test $rc -ne 0; then
23265 export=0
23266 for file in drivers/base/core.c; do
2e0e7e69
BB
23267 grep -q -E "EXPORT_SYMBOL.*(device_create)" \
23268 "$LINUX_OBJ/$file" 2>/dev/null
bf9f3bac 23269 rc=$?
23270 if test $rc -eq 0; then
23271 export=1
23272 break;
23273 fi
23274 done
23275 if test $export -eq 0; then
23276 echo "$as_me:$LINENO: result: no" >&5
23277echo "${ECHO_T}no" >&6
23278
23279 else
23280 echo "$as_me:$LINENO: result: yes" >&5
23281echo "${ECHO_T}yes" >&6
23282
23283cat >>confdefs.h <<\_ACEOF
23284#define HAVE_DEVICE_CREATE 1
23285_ACEOF
23286
23287 fi
23288 else
23289 echo "$as_me:$LINENO: result: yes" >&5
23290echo "${ECHO_T}yes" >&6
23291
23292cat >>confdefs.h <<\_ACEOF
23293#define HAVE_DEVICE_CREATE 1
23294_ACEOF
23295
23296 fi
23297
23298
23299
8123ac4f
BB
23300 echo "$as_me:$LINENO: checking whether device_create() wants 5 args" >&5
23301echo $ECHO_N "checking whether device_create() wants 5 args... $ECHO_C" >&6
23302 tmp_flags="$EXTRA_KCFLAGS"
23303 EXTRA_KCFLAGS="-Werror"
23304
23305
23306cat >conftest.c <<_ACEOF
23307/* confdefs.h. */
23308_ACEOF
23309cat confdefs.h >>conftest.$ac_ext
23310cat >>conftest.$ac_ext <<_ACEOF
23311/* end confdefs.h. */
23312
23313
23314 #include <linux/device.h>
23315
23316int
23317main (void)
23318{
23319
23320 device_create(NULL, NULL, 0, NULL, "%d", 1);
23321
23322 ;
23323 return 0;
23324}
23325
23326_ACEOF
23327
23328
23329 rm -Rf build && mkdir -p build
23330 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 23331 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
8123ac4f
BB
23332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23333 (eval $ac_try) 2>&5
23334 ac_status=$?
23335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23336 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
23337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23338 (eval $ac_try) 2>&5
23339 ac_status=$?
23340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23341 (exit $ac_status); }; }; then
23342
23343 echo "$as_me:$LINENO: result: yes" >&5
23344echo "${ECHO_T}yes" >&6
23345
23346cat >>confdefs.h <<\_ACEOF
23347#define HAVE_5ARGS_DEVICE_CREATE 1
23348_ACEOF
23349
23350
23351else
23352 echo "$as_me: failed program was:" >&5
23353sed 's/^/| /' conftest.$ac_ext >&5
23354
23355 echo "$as_me:$LINENO: result: no" >&5
23356echo "${ECHO_T}no" >&6
23357
23358
23359
23360fi
23361
23362 rm -Rf build
23363
23364
23365 EXTRA_KCFLAGS="$tmp_flags"
23366
23367
bf9f3bac 23368 echo "$as_me:$LINENO: checking whether symbol class_device_create is exported" >&5
23369echo $ECHO_N "checking whether symbol class_device_create is exported... $ECHO_C" >&6
2e0e7e69
BB
23370 grep -q -E '[[:space:]]class_device_create[[:space:]]' \
23371 $LINUX_OBJ/Module*.symvers 2>/dev/null
bf9f3bac 23372 rc=$?
23373 if test $rc -ne 0; then
23374 export=0
23375 for file in drivers/base/class.c; do
2e0e7e69
BB
23376 grep -q -E "EXPORT_SYMBOL.*(class_device_create)" \
23377 "$LINUX_OBJ/$file" 2>/dev/null
bf9f3bac 23378 rc=$?
23379 if test $rc -eq 0; then
23380 export=1
23381 break;
23382 fi
23383 done
23384 if test $export -eq 0; then
23385 echo "$as_me:$LINENO: result: no" >&5
23386echo "${ECHO_T}no" >&6
23387
23388 else
23389 echo "$as_me:$LINENO: result: yes" >&5
23390echo "${ECHO_T}yes" >&6
23391
23392cat >>confdefs.h <<\_ACEOF
23393#define HAVE_CLASS_DEVICE_CREATE 1
23394_ACEOF
23395
23396 fi
23397 else
23398 echo "$as_me:$LINENO: result: yes" >&5
23399echo "${ECHO_T}yes" >&6
23400
23401cat >>confdefs.h <<\_ACEOF
23402#define HAVE_CLASS_DEVICE_CREATE 1
23403_ACEOF
23404
23405 fi
23406
23407
23408
23409 echo "$as_me:$LINENO: checking whether symbol set_normalized_timespec is exported" >&5
23410echo $ECHO_N "checking whether symbol set_normalized_timespec is exported... $ECHO_C" >&6
2e0e7e69
BB
23411 grep -q -E '[[:space:]]set_normalized_timespec[[:space:]]' \
23412 $LINUX_OBJ/Module*.symvers 2>/dev/null
bf9f3bac 23413 rc=$?
23414 if test $rc -ne 0; then
23415 export=0
23416 for file in kernel/time.c; do
2e0e7e69
BB
23417 grep -q -E "EXPORT_SYMBOL.*(set_normalized_timespec)" \
23418 "$LINUX_OBJ/$file" 2>/dev/null
bf9f3bac 23419 rc=$?
23420 if test $rc -eq 0; then
23421 export=1
23422 break;
23423 fi
23424 done
23425 if test $export -eq 0; then
23426 echo "$as_me:$LINENO: result: no" >&5
23427echo "${ECHO_T}no" >&6
23428
6ae7fef5
BB
23429 else
23430 echo "$as_me:$LINENO: result: yes" >&5
23431echo "${ECHO_T}yes" >&6
23432
23433cat >>confdefs.h <<\_ACEOF
23434#define HAVE_SET_NORMALIZED_TIMESPEC_EXPORT 1
23435_ACEOF
23436
23437 fi
23438 else
23439 echo "$as_me:$LINENO: result: yes" >&5
23440echo "${ECHO_T}yes" >&6
23441
23442cat >>confdefs.h <<\_ACEOF
23443#define HAVE_SET_NORMALIZED_TIMESPEC_EXPORT 1
23444_ACEOF
23445
23446 fi
23447
23448
23449
23450 echo "$as_me:$LINENO: checking whether set_normalized_timespec() is an inline" >&5
23451echo $ECHO_N "checking whether set_normalized_timespec() is an inline... $ECHO_C" >&6
23452
23453
23454cat >conftest.c <<_ACEOF
23455/* confdefs.h. */
23456_ACEOF
23457cat confdefs.h >>conftest.$ac_ext
23458cat >>conftest.$ac_ext <<_ACEOF
23459/* end confdefs.h. */
23460
23461
23462 #include <linux/time.h>
23463 void set_normalized_timespec(struct timespec *ts,
23464 time_t sec, long nsec) { }
23465
23466int
23467main (void)
23468{
23469
23470 ;
23471 return 0;
23472}
23473
23474_ACEOF
23475
23476
23477 rm -Rf build && mkdir -p build
23478 echo "obj-m := conftest.o" >build/Makefile
23479 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
23480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23481 (eval $ac_try) 2>&5
23482 ac_status=$?
23483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23484 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
23485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23486 (eval $ac_try) 2>&5
23487 ac_status=$?
23488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23489 (exit $ac_status); }; }; then
23490
23491 echo "$as_me:$LINENO: result: no" >&5
23492echo "${ECHO_T}no" >&6
23493
23494else
23495 echo "$as_me: failed program was:" >&5
23496sed 's/^/| /' conftest.$ac_ext >&5
23497
23498 echo "$as_me:$LINENO: result: yes" >&5
23499echo "${ECHO_T}yes" >&6
23500
23501cat >>confdefs.h <<\_ACEOF
23502#define HAVE_SET_NORMALIZED_TIMESPEC_INLINE 1
23503_ACEOF
23504
23505
23506
23507
23508fi
23509
23510 rm -Rf build
23511
23512
23513
23514
23515 echo "$as_me:$LINENO: checking whether timespec_sub() is available" >&5
23516echo $ECHO_N "checking whether timespec_sub() is available... $ECHO_C" >&6
23517
23518
23519cat >conftest.c <<_ACEOF
23520/* confdefs.h. */
23521_ACEOF
23522cat confdefs.h >>conftest.$ac_ext
23523cat >>conftest.$ac_ext <<_ACEOF
23524/* end confdefs.h. */
23525
23526
23527 #include <linux/time.h>
23528
23529int
23530main (void)
23531{
23532
23533 struct timespec a, b, c = { 0 };
23534 c = timespec_sub(a, b);
23535
23536 ;
23537 return 0;
23538}
23539
23540_ACEOF
23541
23542
23543 rm -Rf build && mkdir -p build
23544 echo "obj-m := conftest.o" >build/Makefile
23545 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
23546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23547 (eval $ac_try) 2>&5
23548 ac_status=$?
23549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23550 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
23551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23552 (eval $ac_try) 2>&5
23553 ac_status=$?
23554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23555 (exit $ac_status); }; }; then
23556
23557 echo "$as_me:$LINENO: result: yes" >&5
23558echo "${ECHO_T}yes" >&6
23559
23560cat >>confdefs.h <<\_ACEOF
23561#define HAVE_TIMESPEC_SUB 1
23562_ACEOF
23563
23564
23565else
23566 echo "$as_me: failed program was:" >&5
23567sed 's/^/| /' conftest.$ac_ext >&5
23568
23569 echo "$as_me:$LINENO: result: no" >&5
23570echo "${ECHO_T}no" >&6
23571
23572
23573
23574fi
23575
23576 rm -Rf build
23577
23578
23579
23580
23581 echo "$as_me:$LINENO: checking whether init_utsname() is available" >&5
23582echo $ECHO_N "checking whether init_utsname() is available... $ECHO_C" >&6
23583
23584
23585cat >conftest.c <<_ACEOF
23586/* confdefs.h. */
23587_ACEOF
23588cat confdefs.h >>conftest.$ac_ext
23589cat >>conftest.$ac_ext <<_ACEOF
23590/* end confdefs.h. */
23591
23592
23593 #include <linux/utsname.h>
23594
23595int
23596main (void)
23597{
23598
23599 struct new_utsname *a = init_utsname();
23600
23601 ;
23602 return 0;
23603}
23604
23605_ACEOF
23606
23607
23608 rm -Rf build && mkdir -p build
23609 echo "obj-m := conftest.o" >build/Makefile
23610 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
23611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23612 (eval $ac_try) 2>&5
23613 ac_status=$?
23614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23615 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
23616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23617 (eval $ac_try) 2>&5
23618 ac_status=$?
23619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23620 (exit $ac_status); }; }; then
23621
23622 echo "$as_me:$LINENO: result: yes" >&5
23623echo "${ECHO_T}yes" >&6
23624
23625cat >>confdefs.h <<\_ACEOF
23626#define HAVE_INIT_UTSNAME 1
23627_ACEOF
23628
23629
23630else
23631 echo "$as_me: failed program was:" >&5
23632sed 's/^/| /' conftest.$ac_ext >&5
23633
23634 echo "$as_me:$LINENO: result: no" >&5
23635echo "${ECHO_T}no" >&6
23636
23637
23638
23639fi
23640
23641 rm -Rf build
23642
23643
23644
23645
23646 echo "$as_me:$LINENO: checking whether header linux/fdtable.h exists" >&5
23647echo $ECHO_N "checking whether header linux/fdtable.h exists... $ECHO_C" >&6
23648
23649
23650cat >conftest.c <<_ACEOF
23651/* confdefs.h. */
23652_ACEOF
23653cat confdefs.h >>conftest.$ac_ext
23654cat >>conftest.$ac_ext <<_ACEOF
23655/* end confdefs.h. */
23656
23657
23658 #include <linux/fdtable.h>
23659
23660int
23661main (void)
23662{
23663
23664 return 0;
23665
23666 ;
23667 return 0;
23668}
23669
23670_ACEOF
23671
23672
23673 rm -Rf build && mkdir -p build
23674 echo "obj-m := conftest.o" >build/Makefile
23675 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
23676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23677 (eval $ac_try) 2>&5
23678 ac_status=$?
23679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23680 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
23681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23682 (eval $ac_try) 2>&5
23683 ac_status=$?
23684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23685 (exit $ac_status); }; }; then
23686
bf9f3bac 23687
23688cat >>confdefs.h <<\_ACEOF
6ae7fef5 23689#define HAVE_FDTABLE_HEADER 1
bf9f3bac 23690_ACEOF
23691
bf9f3bac 23692 echo "$as_me:$LINENO: result: yes" >&5
23693echo "${ECHO_T}yes" >&6
23694
bf9f3bac 23695
6ae7fef5
BB
23696else
23697 echo "$as_me: failed program was:" >&5
23698sed 's/^/| /' conftest.$ac_ext >&5
23699
23700 echo "$as_me:$LINENO: result: no" >&5
23701echo "${ECHO_T}no" >&6
bf9f3bac 23702
23703
23704
6ae7fef5
BB
23705
23706fi
23707
23708 rm -Rf build
23709
23710
23711
23712
23713
23714 echo "$as_me:$LINENO: checking whether files_fdtable() is available" >&5
23715echo $ECHO_N "checking whether files_fdtable() is available... $ECHO_C" >&6
bf9f3bac 23716
23717
23718cat >conftest.c <<_ACEOF
23719/* confdefs.h. */
23720_ACEOF
23721cat confdefs.h >>conftest.$ac_ext
23722cat >>conftest.$ac_ext <<_ACEOF
23723/* end confdefs.h. */
23724
23725
6ae7fef5
BB
23726 #include <linux/sched.h>
23727 #include <linux/file.h>
23728 #ifdef HAVE_FDTABLE_HEADER
23729 #include <linux/fdtable.h>
23730 #endif
bf9f3bac 23731
23732int
23733main (void)
23734{
23735
6ae7fef5
BB
23736 struct files_struct *files = current->files;
23737 struct fdtable *fdt = files_fdtable(files);
23738
bf9f3bac 23739 ;
23740 return 0;
23741}
23742
23743_ACEOF
23744
c5f70460
BB
23745
23746 rm -Rf build && mkdir -p build
23747 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 23748 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
bf9f3bac 23749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23750 (eval $ac_try) 2>&5
23751 ac_status=$?
23752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23753 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
23754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23755 (eval $ac_try) 2>&5
23756 ac_status=$?
23757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23758 (exit $ac_status); }; }; then
23759
bf9f3bac 23760 echo "$as_me:$LINENO: result: yes" >&5
23761echo "${ECHO_T}yes" >&6
23762
23763cat >>confdefs.h <<\_ACEOF
6ae7fef5 23764#define HAVE_FILES_FDTABLE 1
bf9f3bac 23765_ACEOF
23766
23767
6ae7fef5
BB
23768else
23769 echo "$as_me: failed program was:" >&5
23770sed 's/^/| /' conftest.$ac_ext >&5
23771
23772 echo "$as_me:$LINENO: result: no" >&5
23773echo "${ECHO_T}no" >&6
23774
c5f70460
BB
23775
23776
bf9f3bac 23777fi
c5f70460
BB
23778
23779 rm -Rf build
23780
bf9f3bac 23781
23782
23783
6ae7fef5
BB
23784 echo "$as_me:$LINENO: checking whether header linux/uaccess.h exists" >&5
23785echo $ECHO_N "checking whether header linux/uaccess.h exists... $ECHO_C" >&6
bf9f3bac 23786
23787
23788cat >conftest.c <<_ACEOF
23789/* confdefs.h. */
23790_ACEOF
23791cat confdefs.h >>conftest.$ac_ext
23792cat >>conftest.$ac_ext <<_ACEOF
23793/* end confdefs.h. */
23794
23795
6ae7fef5 23796 #include <linux/uaccess.h>
bf9f3bac 23797
23798int
23799main (void)
23800{
23801
6ae7fef5 23802 return 0;
bf9f3bac 23803
23804 ;
23805 return 0;
23806}
23807
23808_ACEOF
23809
c5f70460
BB
23810
23811 rm -Rf build && mkdir -p build
23812 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 23813 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
bf9f3bac 23814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23815 (eval $ac_try) 2>&5
23816 ac_status=$?
23817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23818 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
23819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23820 (eval $ac_try) 2>&5
23821 ac_status=$?
23822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23823 (exit $ac_status); }; }; then
23824
bf9f3bac 23825
23826cat >>confdefs.h <<\_ACEOF
6ae7fef5 23827#define HAVE_UACCESS_HEADER 1
bf9f3bac 23828_ACEOF
23829
6ae7fef5
BB
23830 echo "$as_me:$LINENO: result: yes" >&5
23831echo "${ECHO_T}yes" >&6
23832
bf9f3bac 23833
23834else
23835 echo "$as_me: failed program was:" >&5
23836sed 's/^/| /' conftest.$ac_ext >&5
23837
bf9f3bac 23838 echo "$as_me:$LINENO: result: no" >&5
23839echo "${ECHO_T}no" >&6
23840
c5f70460
BB
23841
23842
6ae7fef5 23843
bf9f3bac 23844fi
c5f70460
BB
23845
23846 rm -Rf build
23847
bf9f3bac 23848
23849
23850
6ae7fef5
BB
23851
23852 echo "$as_me:$LINENO: checking whether kmalloc_node() is available" >&5
23853echo $ECHO_N "checking whether kmalloc_node() is available... $ECHO_C" >&6
bf9f3bac 23854
23855
23856cat >conftest.c <<_ACEOF
23857/* confdefs.h. */
23858_ACEOF
23859cat confdefs.h >>conftest.$ac_ext
23860cat >>conftest.$ac_ext <<_ACEOF
23861/* end confdefs.h. */
23862
23863
6ae7fef5 23864 #include <linux/slab.h>
bf9f3bac 23865
23866int
23867main (void)
23868{
23869
6ae7fef5 23870 void *a = kmalloc_node(1, GFP_KERNEL, 0);
bf9f3bac 23871
23872 ;
23873 return 0;
23874}
23875
23876_ACEOF
23877
c5f70460
BB
23878
23879 rm -Rf build && mkdir -p build
23880 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 23881 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
bf9f3bac 23882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23883 (eval $ac_try) 2>&5
23884 ac_status=$?
23885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23886 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
23887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23888 (eval $ac_try) 2>&5
23889 ac_status=$?
23890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23891 (exit $ac_status); }; }; then
23892
23893 echo "$as_me:$LINENO: result: yes" >&5
23894echo "${ECHO_T}yes" >&6
23895
23896cat >>confdefs.h <<\_ACEOF
6ae7fef5 23897#define HAVE_KMALLOC_NODE 1
bf9f3bac 23898_ACEOF
23899
23900
23901else
23902 echo "$as_me: failed program was:" >&5
23903sed 's/^/| /' conftest.$ac_ext >&5
23904
bf9f3bac 23905 echo "$as_me:$LINENO: result: no" >&5
23906echo "${ECHO_T}no" >&6
23907
c5f70460
BB
23908
23909
bf9f3bac 23910fi
c5f70460
BB
23911
23912 rm -Rf build
23913
bf9f3bac 23914
23915
23916
6ae7fef5
BB
23917 echo "$as_me:$LINENO: checking whether symbol monotonic_clock is exported" >&5
23918echo $ECHO_N "checking whether symbol monotonic_clock is exported... $ECHO_C" >&6
23919 grep -q -E '[[:space:]]monotonic_clock[[:space:]]' \
23920 $LINUX_OBJ/Module*.symvers 2>/dev/null
23921 rc=$?
23922 if test $rc -ne 0; then
23923 export=0
23924 for file in ; do
23925 grep -q -E "EXPORT_SYMBOL.*(monotonic_clock)" \
23926 "$LINUX_OBJ/$file" 2>/dev/null
23927 rc=$?
23928 if test $rc -eq 0; then
23929 export=1
23930 break;
23931 fi
23932 done
23933 if test $export -eq 0; then
23934 echo "$as_me:$LINENO: result: no" >&5
23935echo "${ECHO_T}no" >&6
23936
23937 else
23938 echo "$as_me:$LINENO: result: yes" >&5
23939echo "${ECHO_T}yes" >&6
23940
23941cat >>confdefs.h <<\_ACEOF
23942#define HAVE_MONOTONIC_CLOCK 1
23943_ACEOF
23944
23945 fi
23946 else
23947 echo "$as_me:$LINENO: result: yes" >&5
23948echo "${ECHO_T}yes" >&6
23949
23950cat >>confdefs.h <<\_ACEOF
23951#define HAVE_MONOTONIC_CLOCK 1
23952_ACEOF
23953
23954 fi
23955
23956
23957
23958 echo "$as_me:$LINENO: checking whether struct inode has i_mutex" >&5
23959echo $ECHO_N "checking whether struct inode has i_mutex... $ECHO_C" >&6
bf9f3bac 23960
23961
23962cat >conftest.c <<_ACEOF
23963/* confdefs.h. */
23964_ACEOF
23965cat confdefs.h >>conftest.$ac_ext
23966cat >>conftest.$ac_ext <<_ACEOF
23967/* end confdefs.h. */
23968
23969
6ae7fef5
BB
23970 #include <linux/fs.h>
23971 #include <linux/mutex.h>
bf9f3bac 23972
23973int
23974main (void)
23975{
23976
6ae7fef5
BB
23977 struct inode i;
23978 mutex_init(&i.i_mutex);
bf9f3bac 23979
23980 ;
23981 return 0;
23982}
23983
23984_ACEOF
23985
c5f70460
BB
23986
23987 rm -Rf build && mkdir -p build
23988 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 23989 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
bf9f3bac 23990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23991 (eval $ac_try) 2>&5
23992 ac_status=$?
23993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23994 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
23995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23996 (eval $ac_try) 2>&5
23997 ac_status=$?
23998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23999 (exit $ac_status); }; }; then
24000
6ae7fef5
BB
24001 echo "$as_me:$LINENO: result: yes" >&5
24002echo "${ECHO_T}yes" >&6
bf9f3bac 24003
24004cat >>confdefs.h <<\_ACEOF
6ae7fef5 24005#define HAVE_INODE_I_MUTEX 1
bf9f3bac 24006_ACEOF
24007
bf9f3bac 24008
24009else
24010 echo "$as_me: failed program was:" >&5
24011sed 's/^/| /' conftest.$ac_ext >&5
24012
bf9f3bac 24013 echo "$as_me:$LINENO: result: no" >&5
24014echo "${ECHO_T}no" >&6
24015
24016
c5f70460 24017
bf9f3bac 24018fi
c5f70460
BB
24019
24020 rm -Rf build
24021
bf9f3bac 24022
24023
24024
4d54fdee
BB
24025 echo "$as_me:$LINENO: checking whether struct mutex has owner" >&5
24026echo $ECHO_N "checking whether struct mutex has owner... $ECHO_C" >&6
24027
24028
24029cat >conftest.c <<_ACEOF
24030/* confdefs.h. */
24031_ACEOF
24032cat confdefs.h >>conftest.$ac_ext
24033cat >>conftest.$ac_ext <<_ACEOF
24034/* end confdefs.h. */
24035
24036
24037 #include <linux/mutex.h>
24038
24039int
24040main (void)
24041{
24042
24043 struct mutex mtx;
24044 mtx.owner = NULL;
24045
24046 ;
24047 return 0;
24048}
24049
24050_ACEOF
24051
24052
24053 rm -Rf build && mkdir -p build
24054 echo "obj-m := conftest.o" >build/Makefile
24055 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
24056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24057 (eval $ac_try) 2>&5
24058 ac_status=$?
24059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24060 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
24061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24062 (eval $ac_try) 2>&5
24063 ac_status=$?
24064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24065 (exit $ac_status); }; }; then
24066
24067 echo "$as_me:$LINENO: result: yes" >&5
24068echo "${ECHO_T}yes" >&6
24069
24070cat >>confdefs.h <<\_ACEOF
24071#define HAVE_MUTEX_OWNER 1
24072_ACEOF
24073
24074
24075else
24076 echo "$as_me: failed program was:" >&5
24077sed 's/^/| /' conftest.$ac_ext >&5
24078
24079 echo "$as_me:$LINENO: result: no" >&5
24080echo "${ECHO_T}no" >&6
24081
24082
24083
24084fi
24085
24086 rm -Rf build
24087
24088
24089
24090
6ae7fef5
BB
24091 echo "$as_me:$LINENO: checking whether mutex_lock_nested() is available" >&5
24092echo $ECHO_N "checking whether mutex_lock_nested() is available... $ECHO_C" >&6
bf9f3bac 24093
24094
24095cat >conftest.c <<_ACEOF
24096/* confdefs.h. */
24097_ACEOF
24098cat confdefs.h >>conftest.$ac_ext
24099cat >>conftest.$ac_ext <<_ACEOF
24100/* end confdefs.h. */
24101
24102
6ae7fef5 24103 #include <linux/mutex.h>
bf9f3bac 24104
24105int
24106main (void)
24107{
24108
6ae7fef5
BB
24109 struct mutex mutex;
24110 mutex_init(&mutex);
24111 mutex_lock_nested(&mutex, 0);
bf9f3bac 24112
24113 ;
24114 return 0;
24115}
24116
24117_ACEOF
24118
c5f70460
BB
24119
24120 rm -Rf build && mkdir -p build
24121 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 24122 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
bf9f3bac 24123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24124 (eval $ac_try) 2>&5
24125 ac_status=$?
24126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24127 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
24128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24129 (eval $ac_try) 2>&5
24130 ac_status=$?
24131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24132 (exit $ac_status); }; }; then
24133
24134 echo "$as_me:$LINENO: result: yes" >&5
24135echo "${ECHO_T}yes" >&6
24136
24137cat >>confdefs.h <<\_ACEOF
6ae7fef5 24138#define HAVE_MUTEX_LOCK_NESTED 1
bf9f3bac 24139_ACEOF
24140
24141
24142else
24143 echo "$as_me: failed program was:" >&5
24144sed 's/^/| /' conftest.$ac_ext >&5
24145
bf9f3bac 24146 echo "$as_me:$LINENO: result: no" >&5
24147echo "${ECHO_T}no" >&6
24148
c5f70460
BB
24149
24150
bf9f3bac 24151fi
c5f70460
BB
24152
24153 rm -Rf build
24154
bf9f3bac 24155
24156
24157
6ae7fef5
BB
24158 echo "$as_me:$LINENO: checking whether symbol div64_64 is exported" >&5
24159echo $ECHO_N "checking whether symbol div64_64 is exported... $ECHO_C" >&6
24160 grep -q -E '[[:space:]]div64_64[[:space:]]' \
24161 $LINUX_OBJ/Module*.symvers 2>/dev/null
24162 rc=$?
24163 if test $rc -ne 0; then
24164 export=0
24165 for file in ; do
24166 grep -q -E "EXPORT_SYMBOL.*(div64_64)" \
24167 "$LINUX_OBJ/$file" 2>/dev/null
24168 rc=$?
24169 if test $rc -eq 0; then
24170 export=1
24171 break;
24172 fi
24173 done
24174 if test $export -eq 0; then
24175 echo "$as_me:$LINENO: result: no" >&5
24176echo "${ECHO_T}no" >&6
24177
24178 else
24179 echo "$as_me:$LINENO: result: yes" >&5
24180echo "${ECHO_T}yes" >&6
24181
24182cat >>confdefs.h <<\_ACEOF
24183#define HAVE_DIV64_64 1
24184_ACEOF
24185
24186 fi
24187 else
24188 echo "$as_me:$LINENO: result: yes" >&5
24189echo "${ECHO_T}yes" >&6
24190
24191cat >>confdefs.h <<\_ACEOF
24192#define HAVE_DIV64_64 1
24193_ACEOF
24194
24195 fi
24196
24197
24198
24199 echo "$as_me:$LINENO: checking whether symbol div64_u64 is exported" >&5
24200echo $ECHO_N "checking whether symbol div64_u64 is exported... $ECHO_C" >&6
24201 grep -q -E '[[:space:]]div64_u64[[:space:]]' \
24202 $LINUX_OBJ/Module*.symvers 2>/dev/null
24203 rc=$?
24204 if test $rc -ne 0; then
24205 export=0
24206 for file in ; do
24207 grep -q -E "EXPORT_SYMBOL.*(div64_u64)" \
24208 "$LINUX_OBJ/$file" 2>/dev/null
24209 rc=$?
24210 if test $rc -eq 0; then
24211 export=1
24212 break;
24213 fi
24214 done
24215 if test $export -eq 0; then
24216 echo "$as_me:$LINENO: result: no" >&5
24217echo "${ECHO_T}no" >&6
24218
24219 else
24220 echo "$as_me:$LINENO: result: yes" >&5
24221echo "${ECHO_T}yes" >&6
24222
24223cat >>confdefs.h <<\_ACEOF
24224#define HAVE_DIV64_U64 1
24225_ACEOF
24226
24227 fi
24228 else
24229 echo "$as_me:$LINENO: result: yes" >&5
24230echo "${ECHO_T}yes" >&6
24231
24232cat >>confdefs.h <<\_ACEOF
24233#define HAVE_DIV64_U64 1
24234_ACEOF
24235
24236 fi
24237
24238
24239
24240 echo "$as_me:$LINENO: checking whether on_each_cpu() wants 3 args" >&5
24241echo $ECHO_N "checking whether on_each_cpu() wants 3 args... $ECHO_C" >&6
bf9f3bac 24242
24243
24244cat >conftest.c <<_ACEOF
24245/* confdefs.h. */
24246_ACEOF
24247cat confdefs.h >>conftest.$ac_ext
24248cat >>conftest.$ac_ext <<_ACEOF
24249/* end confdefs.h. */
24250
24251
6ae7fef5 24252 #include <linux/smp.h>
bf9f3bac 24253
24254int
24255main (void)
24256{
24257
6ae7fef5 24258 on_each_cpu(NULL, NULL, 0);
bf9f3bac 24259
24260 ;
24261 return 0;
24262}
24263
24264_ACEOF
24265
c5f70460
BB
24266
24267 rm -Rf build && mkdir -p build
24268 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 24269 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
bf9f3bac 24270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24271 (eval $ac_try) 2>&5
24272 ac_status=$?
24273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24274 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
24275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24276 (eval $ac_try) 2>&5
24277 ac_status=$?
24278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24279 (exit $ac_status); }; }; then
24280
6ae7fef5
BB
24281 echo "$as_me:$LINENO: result: yes" >&5
24282echo "${ECHO_T}yes" >&6
bf9f3bac 24283
24284cat >>confdefs.h <<\_ACEOF
6ae7fef5 24285#define HAVE_3ARGS_ON_EACH_CPU 1
bf9f3bac 24286_ACEOF
24287
bf9f3bac 24288
24289else
24290 echo "$as_me: failed program was:" >&5
24291sed 's/^/| /' conftest.$ac_ext >&5
24292
bf9f3bac 24293 echo "$as_me:$LINENO: result: no" >&5
24294echo "${ECHO_T}no" >&6
24295
24296
c5f70460 24297
bf9f3bac 24298fi
c5f70460
BB
24299
24300 rm -Rf build
24301
bf9f3bac 24302
24303
24304
6ae7fef5
BB
24305 echo "$as_me:$LINENO: checking whether symbol kallsyms_lookup_name is exported" >&5
24306echo $ECHO_N "checking whether symbol kallsyms_lookup_name is exported... $ECHO_C" >&6
24307 grep -q -E '[[:space:]]kallsyms_lookup_name[[:space:]]' \
24308 $LINUX_OBJ/Module*.symvers 2>/dev/null
24309 rc=$?
24310 if test $rc -ne 0; then
24311 export=0
24312 for file in ; do
24313 grep -q -E "EXPORT_SYMBOL.*(kallsyms_lookup_name)" \
24314 "$LINUX_OBJ/$file" 2>/dev/null
24315 rc=$?
24316 if test $rc -eq 0; then
24317 export=1
24318 break;
24319 fi
24320 done
24321 if test $export -eq 0; then
24322 echo "$as_me:$LINENO: result: no" >&5
24323echo "${ECHO_T}no" >&6
bf9f3bac 24324
6ae7fef5
BB
24325 else
24326 echo "$as_me:$LINENO: result: yes" >&5
24327echo "${ECHO_T}yes" >&6
bf9f3bac 24328
6ae7fef5
BB
24329cat >>confdefs.h <<\_ACEOF
24330#define HAVE_KALLSYMS_LOOKUP_NAME 1
24331_ACEOF
bf9f3bac 24332
6ae7fef5
BB
24333 fi
24334 else
24335 echo "$as_me:$LINENO: result: yes" >&5
24336echo "${ECHO_T}yes" >&6
24337
24338cat >>confdefs.h <<\_ACEOF
24339#define HAVE_KALLSYMS_LOOKUP_NAME 1
bf9f3bac 24340_ACEOF
bf9f3bac 24341
6ae7fef5 24342 fi
bf9f3bac 24343
bf9f3bac 24344
bf9f3bac 24345
6ae7fef5
BB
24346 echo "$as_me:$LINENO: checking whether symbol get_vmalloc_info is exported" >&5
24347echo $ECHO_N "checking whether symbol get_vmalloc_info is exported... $ECHO_C" >&6
24348 grep -q -E '[[:space:]]get_vmalloc_info[[:space:]]' \
24349 $LINUX_OBJ/Module*.symvers 2>/dev/null
24350 rc=$?
24351 if test $rc -ne 0; then
24352 export=0
24353 for file in ; do
24354 grep -q -E "EXPORT_SYMBOL.*(get_vmalloc_info)" \
24355 "$LINUX_OBJ/$file" 2>/dev/null
24356 rc=$?
24357 if test $rc -eq 0; then
24358 export=1
24359 break;
24360 fi
24361 done
24362 if test $export -eq 0; then
24363 echo "$as_me:$LINENO: result: no" >&5
24364echo "${ECHO_T}no" >&6
bf9f3bac 24365
6ae7fef5
BB
24366 else
24367 echo "$as_me:$LINENO: result: yes" >&5
24368echo "${ECHO_T}yes" >&6
bf9f3bac 24369
6ae7fef5
BB
24370cat >>confdefs.h <<\_ACEOF
24371#define HAVE_GET_VMALLOC_INFO 1
bf9f3bac 24372_ACEOF
24373
6ae7fef5
BB
24374 fi
24375 else
24376 echo "$as_me:$LINENO: result: yes" >&5
24377echo "${ECHO_T}yes" >&6
24378
24379cat >>confdefs.h <<\_ACEOF
24380#define HAVE_GET_VMALLOC_INFO 1
24381_ACEOF
24382
24383 fi
24384
c5f70460 24385
bf9f3bac 24386
6ae7fef5
BB
24387 echo "$as_me:$LINENO: checking whether symbol *_pgdat exist" >&5
24388echo $ECHO_N "checking whether symbol *_pgdat exist... $ECHO_C" >&6
24389 grep -q -E 'first_online_pgdat' $LINUX/include/linux/mmzone.h 2>/dev/null
24390 rc=$?
24391 if test $rc -eq 0; then
bf9f3bac 24392 echo "$as_me:$LINENO: result: yes" >&5
24393echo "${ECHO_T}yes" >&6
24394
24395cat >>confdefs.h <<\_ACEOF
6ae7fef5 24396#define HAVE_PGDAT_HELPERS 1
bf9f3bac 24397_ACEOF
24398
6ae7fef5
BB
24399 else
24400 echo "$as_me:$LINENO: result: no" >&5
24401echo "${ECHO_T}no" >&6
24402 fi
bf9f3bac 24403
bf9f3bac 24404
6ae7fef5
BB
24405 echo "$as_me:$LINENO: checking whether symbol first_online_pgdat is exported" >&5
24406echo $ECHO_N "checking whether symbol first_online_pgdat is exported... $ECHO_C" >&6
24407 grep -q -E '[[:space:]]first_online_pgdat[[:space:]]' \
24408 $LINUX_OBJ/Module*.symvers 2>/dev/null
24409 rc=$?
24410 if test $rc -ne 0; then
24411 export=0
24412 for file in ; do
24413 grep -q -E "EXPORT_SYMBOL.*(first_online_pgdat)" \
24414 "$LINUX_OBJ/$file" 2>/dev/null
24415 rc=$?
24416 if test $rc -eq 0; then
24417 export=1
24418 break;
24419 fi
24420 done
24421 if test $export -eq 0; then
24422 echo "$as_me:$LINENO: result: no" >&5
bf9f3bac 24423echo "${ECHO_T}no" >&6
24424
6ae7fef5
BB
24425 else
24426 echo "$as_me:$LINENO: result: yes" >&5
24427echo "${ECHO_T}yes" >&6
c5f70460 24428
6ae7fef5
BB
24429cat >>confdefs.h <<\_ACEOF
24430#define HAVE_FIRST_ONLINE_PGDAT 1
24431_ACEOF
c5f70460 24432
6ae7fef5
BB
24433 fi
24434 else
24435 echo "$as_me:$LINENO: result: yes" >&5
24436echo "${ECHO_T}yes" >&6
c5f70460 24437
6ae7fef5
BB
24438cat >>confdefs.h <<\_ACEOF
24439#define HAVE_FIRST_ONLINE_PGDAT 1
24440_ACEOF
c5f70460 24441
6ae7fef5 24442 fi
bf9f3bac 24443
24444
24445
6ae7fef5
BB
24446 echo "$as_me:$LINENO: checking whether symbol next_online_pgdat is exported" >&5
24447echo $ECHO_N "checking whether symbol next_online_pgdat is exported... $ECHO_C" >&6
24448 grep -q -E '[[:space:]]next_online_pgdat[[:space:]]' \
2e0e7e69 24449 $LINUX_OBJ/Module*.symvers 2>/dev/null
bf9f3bac 24450 rc=$?
24451 if test $rc -ne 0; then
24452 export=0
24453 for file in ; do
6ae7fef5 24454 grep -q -E "EXPORT_SYMBOL.*(next_online_pgdat)" \
2e0e7e69 24455 "$LINUX_OBJ/$file" 2>/dev/null
bf9f3bac 24456 rc=$?
24457 if test $rc -eq 0; then
24458 export=1
24459 break;
24460 fi
24461 done
24462 if test $export -eq 0; then
24463 echo "$as_me:$LINENO: result: no" >&5
24464echo "${ECHO_T}no" >&6
24465
24466 else
24467 echo "$as_me:$LINENO: result: yes" >&5
24468echo "${ECHO_T}yes" >&6
24469
24470cat >>confdefs.h <<\_ACEOF
6ae7fef5 24471#define HAVE_NEXT_ONLINE_PGDAT 1
bf9f3bac 24472_ACEOF
24473
24474 fi
24475 else
24476 echo "$as_me:$LINENO: result: yes" >&5
24477echo "${ECHO_T}yes" >&6
24478
24479cat >>confdefs.h <<\_ACEOF
6ae7fef5 24480#define HAVE_NEXT_ONLINE_PGDAT 1
bf9f3bac 24481_ACEOF
24482
24483 fi
24484
24485
24486
6ae7fef5
BB
24487 echo "$as_me:$LINENO: checking whether symbol next_zone is exported" >&5
24488echo $ECHO_N "checking whether symbol next_zone is exported... $ECHO_C" >&6
24489 grep -q -E '[[:space:]]next_zone[[:space:]]' \
24490 $LINUX_OBJ/Module*.symvers 2>/dev/null
24491 rc=$?
24492 if test $rc -ne 0; then
24493 export=0
24494 for file in ; do
24495 grep -q -E "EXPORT_SYMBOL.*(next_zone)" \
24496 "$LINUX_OBJ/$file" 2>/dev/null
24497 rc=$?
24498 if test $rc -eq 0; then
24499 export=1
24500 break;
24501 fi
24502 done
24503 if test $export -eq 0; then
24504 echo "$as_me:$LINENO: result: no" >&5
24505echo "${ECHO_T}no" >&6
24506
24507 else
24508 echo "$as_me:$LINENO: result: yes" >&5
24509echo "${ECHO_T}yes" >&6
24510
24511cat >>confdefs.h <<\_ACEOF
24512#define HAVE_NEXT_ZONE 1
24513_ACEOF
24514
24515 fi
24516 else
24517 echo "$as_me:$LINENO: result: yes" >&5
24518echo "${ECHO_T}yes" >&6
24519
24520cat >>confdefs.h <<\_ACEOF
24521#define HAVE_NEXT_ZONE 1
24522_ACEOF
24523
24524 fi
24525
24526
24527
24528 echo "$as_me:$LINENO: checking whether symbol pgdat_list is exported" >&5
24529echo $ECHO_N "checking whether symbol pgdat_list is exported... $ECHO_C" >&6
24530 grep -q -E '[[:space:]]pgdat_list[[:space:]]' \
24531 $LINUX_OBJ/Module*.symvers 2>/dev/null
24532 rc=$?
24533 if test $rc -ne 0; then
24534 export=0
24535 for file in ; do
24536 grep -q -E "EXPORT_SYMBOL.*(pgdat_list)" \
24537 "$LINUX_OBJ/$file" 2>/dev/null
24538 rc=$?
24539 if test $rc -eq 0; then
24540 export=1
24541 break;
24542 fi
24543 done
24544 if test $export -eq 0; then
24545 echo "$as_me:$LINENO: result: no" >&5
24546echo "${ECHO_T}no" >&6
24547
24548 else
24549 echo "$as_me:$LINENO: result: yes" >&5
24550echo "${ECHO_T}yes" >&6
24551
24552cat >>confdefs.h <<\_ACEOF
24553#define HAVE_PGDAT_LIST 1
24554_ACEOF
24555
24556 fi
24557 else
24558 echo "$as_me:$LINENO: result: yes" >&5
24559echo "${ECHO_T}yes" >&6
24560
24561cat >>confdefs.h <<\_ACEOF
24562#define HAVE_PGDAT_LIST 1
24563_ACEOF
24564
24565 fi
24566
24567
24568
24569 echo "$as_me:$LINENO: checking whether global_page_state() is available" >&5
24570echo $ECHO_N "checking whether global_page_state() is available... $ECHO_C" >&6
bf9f3bac 24571
24572
24573cat >conftest.c <<_ACEOF
24574/* confdefs.h. */
24575_ACEOF
24576cat confdefs.h >>conftest.$ac_ext
24577cat >>conftest.$ac_ext <<_ACEOF
24578/* end confdefs.h. */
24579
24580
6ae7fef5 24581 #include <linux/mm.h>
bf9f3bac 24582
24583int
24584main (void)
24585{
24586
6ae7fef5
BB
24587 unsigned long state;
24588 state = global_page_state(0);
bf9f3bac 24589
24590 ;
24591 return 0;
24592}
24593
24594_ACEOF
24595
c5f70460
BB
24596
24597 rm -Rf build && mkdir -p build
24598 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 24599 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
bf9f3bac 24600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24601 (eval $ac_try) 2>&5
24602 ac_status=$?
24603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24604 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
24605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24606 (eval $ac_try) 2>&5
24607 ac_status=$?
24608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24609 (exit $ac_status); }; }; then
24610
24611 echo "$as_me:$LINENO: result: yes" >&5
24612echo "${ECHO_T}yes" >&6
24613
24614cat >>confdefs.h <<\_ACEOF
6ae7fef5 24615#define HAVE_GLOBAL_PAGE_STATE 1
bf9f3bac 24616_ACEOF
24617
24618
24619else
24620 echo "$as_me: failed program was:" >&5
24621sed 's/^/| /' conftest.$ac_ext >&5
24622
bf9f3bac 24623 echo "$as_me:$LINENO: result: no" >&5
24624echo "${ECHO_T}no" >&6
24625
c5f70460
BB
24626
24627
bf9f3bac 24628fi
c5f70460
BB
24629
24630 rm -Rf build
24631
bf9f3bac 24632
24633
24634
6ae7fef5
BB
24635 echo "$as_me:$LINENO: checking whether page state NR_FREE_PAGES is available" >&5
24636echo $ECHO_N "checking whether page state NR_FREE_PAGES is available... $ECHO_C" >&6
6c9433c1
BB
24637
24638
24639cat >conftest.c <<_ACEOF
24640/* confdefs.h. */
24641_ACEOF
24642cat confdefs.h >>conftest.$ac_ext
24643cat >>conftest.$ac_ext <<_ACEOF
24644/* end confdefs.h. */
24645
24646
6ae7fef5 24647 #include <linux/mm.h>
6c9433c1
BB
24648
24649int
24650main (void)
24651{
24652
6ae7fef5
BB
24653 enum zone_stat_item zsi;
24654 zsi = NR_FREE_PAGES;
6c9433c1
BB
24655
24656 ;
24657 return 0;
24658}
24659
24660_ACEOF
24661
24662
24663 rm -Rf build && mkdir -p build
24664 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 24665 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
6c9433c1
BB
24666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24667 (eval $ac_try) 2>&5
24668 ac_status=$?
24669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24670 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
24671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24672 (eval $ac_try) 2>&5
24673 ac_status=$?
24674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24675 (exit $ac_status); }; }; then
24676
24677 echo "$as_me:$LINENO: result: yes" >&5
24678echo "${ECHO_T}yes" >&6
24679
24680cat >>confdefs.h <<\_ACEOF
6ae7fef5 24681#define HAVE_ZONE_STAT_ITEM_NR_FREE_PAGES 1
6c9433c1
BB
24682_ACEOF
24683
24684
24685else
24686 echo "$as_me: failed program was:" >&5
24687sed 's/^/| /' conftest.$ac_ext >&5
24688
24689 echo "$as_me:$LINENO: result: no" >&5
24690echo "${ECHO_T}no" >&6
24691
24692
24693
24694fi
24695
24696 rm -Rf build
24697
24698
24699
24700
6ae7fef5
BB
24701 echo "$as_me:$LINENO: checking whether page state NR_INACTIVE is available" >&5
24702echo $ECHO_N "checking whether page state NR_INACTIVE is available... $ECHO_C" >&6
bf9f3bac 24703
bf9f3bac 24704
6ae7fef5
BB
24705cat >conftest.c <<_ACEOF
24706/* confdefs.h. */
bf9f3bac 24707_ACEOF
6ae7fef5
BB
24708cat confdefs.h >>conftest.$ac_ext
24709cat >>conftest.$ac_ext <<_ACEOF
24710/* end confdefs.h. */
bf9f3bac 24711
bf9f3bac 24712
6ae7fef5 24713 #include <linux/mm.h>
bf9f3bac 24714
6ae7fef5
BB
24715int
24716main (void)
24717{
96dded38 24718
6ae7fef5
BB
24719 enum zone_stat_item zsi;
24720 zsi = NR_INACTIVE;
bf9f3bac 24721
6ae7fef5
BB
24722 ;
24723 return 0;
24724}
31a033ec 24725
6ae7fef5 24726_ACEOF
31a033ec 24727
c5f70460 24728
6ae7fef5
BB
24729 rm -Rf build && mkdir -p build
24730 echo "obj-m := conftest.o" >build/Makefile
24731 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
24732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24733 (eval $ac_try) 2>&5
24734 ac_status=$?
24735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24736 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
24737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24738 (eval $ac_try) 2>&5
24739 ac_status=$?
24740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24741 (exit $ac_status); }; }; then
c5f70460 24742
96dded38
BB
24743 echo "$as_me:$LINENO: result: yes" >&5
24744echo "${ECHO_T}yes" >&6
c5f70460 24745
96dded38 24746cat >>confdefs.h <<\_ACEOF
6ae7fef5 24747#define HAVE_ZONE_STAT_ITEM_NR_INACTIVE 1
96dded38 24748_ACEOF
c5f70460 24749
31a033ec 24750
6ae7fef5
BB
24751else
24752 echo "$as_me: failed program was:" >&5
24753sed 's/^/| /' conftest.$ac_ext >&5
24754
24755 echo "$as_me:$LINENO: result: no" >&5
24756echo "${ECHO_T}no" >&6
24757
24758
24759
24760fi
24761
24762 rm -Rf build
31a033ec
BB
24763
24764
6ae7fef5
BB
24765
24766 echo "$as_me:$LINENO: checking whether page state NR_INACTIVE_ANON is available" >&5
24767echo $ECHO_N "checking whether page state NR_INACTIVE_ANON is available... $ECHO_C" >&6
31a033ec
BB
24768
24769
24770cat >conftest.c <<_ACEOF
24771/* confdefs.h. */
24772_ACEOF
24773cat confdefs.h >>conftest.$ac_ext
24774cat >>conftest.$ac_ext <<_ACEOF
24775/* end confdefs.h. */
24776
24777
6ae7fef5 24778 #include <linux/mm.h>
31a033ec
BB
24779
24780int
24781main (void)
24782{
24783
6ae7fef5
BB
24784 enum zone_stat_item zsi;
24785 zsi = NR_INACTIVE_ANON;
31a033ec
BB
24786
24787 ;
24788 return 0;
24789}
24790
24791_ACEOF
24792
c5f70460
BB
24793
24794 rm -Rf build && mkdir -p build
24795 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 24796 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
31a033ec
BB
24797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24798 (eval $ac_try) 2>&5
24799 ac_status=$?
24800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24801 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
24802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24803 (eval $ac_try) 2>&5
24804 ac_status=$?
24805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24806 (exit $ac_status); }; }; then
24807
24808 echo "$as_me:$LINENO: result: yes" >&5
24809echo "${ECHO_T}yes" >&6
24810
24811cat >>confdefs.h <<\_ACEOF
6ae7fef5 24812#define HAVE_ZONE_STAT_ITEM_NR_INACTIVE_ANON 1
31a033ec
BB
24813_ACEOF
24814
24815
bf9f3bac 24816else
24817 echo "$as_me: failed program was:" >&5
24818sed 's/^/| /' conftest.$ac_ext >&5
24819
bf9f3bac 24820 echo "$as_me:$LINENO: result: no" >&5
24821echo "${ECHO_T}no" >&6
24822
c5f70460
BB
24823
24824
bf9f3bac 24825fi
c5f70460
BB
24826
24827 rm -Rf build
24828
bf9f3bac 24829
24830
6ae7fef5
BB
24831 echo "$as_me:$LINENO: checking whether page state NR_INACTIVE_FILE is available" >&5
24832echo $ECHO_N "checking whether page state NR_INACTIVE_FILE is available... $ECHO_C" >&6
bf9f3bac 24833
d1ff2312 24834
6ae7fef5
BB
24835cat >conftest.c <<_ACEOF
24836/* confdefs.h. */
d1ff2312 24837_ACEOF
6ae7fef5
BB
24838cat confdefs.h >>conftest.$ac_ext
24839cat >>conftest.$ac_ext <<_ACEOF
24840/* end confdefs.h. */
d1ff2312 24841
d1ff2312 24842
6ae7fef5 24843 #include <linux/mm.h>
d1ff2312 24844
6ae7fef5
BB
24845int
24846main (void)
24847{
d1ff2312 24848
6ae7fef5
BB
24849 enum zone_stat_item zsi;
24850 zsi = NR_INACTIVE_FILE;
d1ff2312 24851
6ae7fef5
BB
24852 ;
24853 return 0;
24854}
d1ff2312 24855
6ae7fef5 24856_ACEOF
d1ff2312 24857
d1ff2312 24858
6ae7fef5
BB
24859 rm -Rf build && mkdir -p build
24860 echo "obj-m := conftest.o" >build/Makefile
24861 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
24862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24863 (eval $ac_try) 2>&5
24864 ac_status=$?
24865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24866 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
24867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24868 (eval $ac_try) 2>&5
24869 ac_status=$?
24870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24871 (exit $ac_status); }; }; then
d1ff2312 24872
d1ff2312
BB
24873 echo "$as_me:$LINENO: result: yes" >&5
24874echo "${ECHO_T}yes" >&6
24875
24876cat >>confdefs.h <<\_ACEOF
6ae7fef5 24877#define HAVE_ZONE_STAT_ITEM_NR_INACTIVE_FILE 1
d1ff2312
BB
24878_ACEOF
24879
5232d256 24880
6ae7fef5
BB
24881else
24882 echo "$as_me: failed program was:" >&5
24883sed 's/^/| /' conftest.$ac_ext >&5
5232d256 24884
5232d256
BB
24885 echo "$as_me:$LINENO: result: no" >&5
24886echo "${ECHO_T}no" >&6
5232d256
BB
24887
24888
36b313da 24889
6ae7fef5
BB
24890fi
24891
24892 rm -Rf build
24893
36b313da 24894
36b313da 24895
36b313da 24896
6ae7fef5
BB
24897 echo "$as_me:$LINENO: checking whether page state NR_ACTIVE is available" >&5
24898echo $ECHO_N "checking whether page state NR_ACTIVE is available... $ECHO_C" >&6
24899
24900
24901cat >conftest.c <<_ACEOF
24902/* confdefs.h. */
36b313da 24903_ACEOF
6ae7fef5
BB
24904cat confdefs.h >>conftest.$ac_ext
24905cat >>conftest.$ac_ext <<_ACEOF
24906/* end confdefs.h. */
36b313da 24907
36b313da 24908
6ae7fef5 24909 #include <linux/mm.h>
36b313da 24910
6ae7fef5
BB
24911int
24912main (void)
24913{
36b313da 24914
6ae7fef5
BB
24915 enum zone_stat_item zsi;
24916 zsi = NR_ACTIVE;
36b313da 24917
6ae7fef5
BB
24918 ;
24919 return 0;
24920}
36b313da 24921
36b313da
BB
24922_ACEOF
24923
6ae7fef5
BB
24924
24925 rm -Rf build && mkdir -p build
24926 echo "obj-m := conftest.o" >build/Makefile
24927 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
24928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24929 (eval $ac_try) 2>&5
24930 ac_status=$?
24931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24932 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
24933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24934 (eval $ac_try) 2>&5
24935 ac_status=$?
24936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24937 (exit $ac_status); }; }; then
24938
36b313da
BB
24939 echo "$as_me:$LINENO: result: yes" >&5
24940echo "${ECHO_T}yes" >&6
24941
24942cat >>confdefs.h <<\_ACEOF
6ae7fef5 24943#define HAVE_ZONE_STAT_ITEM_NR_ACTIVE 1
36b313da
BB
24944_ACEOF
24945
36b313da 24946
6ae7fef5
BB
24947else
24948 echo "$as_me: failed program was:" >&5
24949sed 's/^/| /' conftest.$ac_ext >&5
36b313da 24950
6ae7fef5 24951 echo "$as_me:$LINENO: result: no" >&5
36b313da
BB
24952echo "${ECHO_T}no" >&6
24953
36b313da 24954
36b313da 24955
6ae7fef5 24956fi
36b313da 24957
6ae7fef5
BB
24958 rm -Rf build
24959
24960
24961
24962 echo "$as_me:$LINENO: checking whether page state NR_ACTIVE_ANON is available" >&5
24963echo $ECHO_N "checking whether page state NR_ACTIVE_ANON is available... $ECHO_C" >&6
24964
24965
24966cat >conftest.c <<_ACEOF
24967/* confdefs.h. */
36b313da 24968_ACEOF
6ae7fef5
BB
24969cat confdefs.h >>conftest.$ac_ext
24970cat >>conftest.$ac_ext <<_ACEOF
24971/* end confdefs.h. */
36b313da 24972
36b313da 24973
6ae7fef5 24974 #include <linux/mm.h>
36b313da 24975
6ae7fef5
BB
24976int
24977main (void)
24978{
36b313da 24979
6ae7fef5
BB
24980 enum zone_stat_item zsi;
24981 zsi = NR_ACTIVE_ANON;
5232d256 24982
6ae7fef5
BB
24983 ;
24984 return 0;
24985}
5232d256 24986
5232d256
BB
24987_ACEOF
24988
6ae7fef5
BB
24989
24990 rm -Rf build && mkdir -p build
24991 echo "obj-m := conftest.o" >build/Makefile
24992 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
24993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24994 (eval $ac_try) 2>&5
24995 ac_status=$?
24996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24997 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
24998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24999 (eval $ac_try) 2>&5
25000 ac_status=$?
25001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25002 (exit $ac_status); }; }; then
25003
5232d256
BB
25004 echo "$as_me:$LINENO: result: yes" >&5
25005echo "${ECHO_T}yes" >&6
25006
25007cat >>confdefs.h <<\_ACEOF
6ae7fef5 25008#define HAVE_ZONE_STAT_ITEM_NR_ACTIVE_ANON 1
5232d256
BB
25009_ACEOF
25010
5232d256 25011
6ae7fef5
BB
25012else
25013 echo "$as_me: failed program was:" >&5
25014sed 's/^/| /' conftest.$ac_ext >&5
5232d256 25015
6ae7fef5 25016 echo "$as_me:$LINENO: result: no" >&5
4ab13d3b
BB
25017echo "${ECHO_T}no" >&6
25018
4ab13d3b 25019
4ab13d3b 25020
6ae7fef5 25021fi
4ab13d3b 25022
6ae7fef5 25023 rm -Rf build
96dded38
BB
25024
25025
25026
6ae7fef5
BB
25027 echo "$as_me:$LINENO: checking whether page state NR_ACTIVE_FILE is available" >&5
25028echo $ECHO_N "checking whether page state NR_ACTIVE_FILE is available... $ECHO_C" >&6
96dded38
BB
25029
25030
25031cat >conftest.c <<_ACEOF
25032/* confdefs.h. */
25033_ACEOF
25034cat confdefs.h >>conftest.$ac_ext
25035cat >>conftest.$ac_ext <<_ACEOF
25036/* end confdefs.h. */
25037
25038
6ae7fef5 25039 #include <linux/mm.h>
96dded38
BB
25040
25041int
25042main (void)
25043{
25044
6ae7fef5
BB
25045 enum zone_stat_item zsi;
25046 zsi = NR_ACTIVE_FILE;
96dded38
BB
25047
25048 ;
25049 return 0;
25050}
25051
25052_ACEOF
25053
25054
25055 rm -Rf build && mkdir -p build
25056 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 25057 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
96dded38
BB
25058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25059 (eval $ac_try) 2>&5
25060 ac_status=$?
25061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25062 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
25063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25064 (eval $ac_try) 2>&5
25065 ac_status=$?
25066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25067 (exit $ac_status); }; }; then
25068
25069 echo "$as_me:$LINENO: result: yes" >&5
25070echo "${ECHO_T}yes" >&6
25071
25072cat >>confdefs.h <<\_ACEOF
6ae7fef5 25073#define HAVE_ZONE_STAT_ITEM_NR_ACTIVE_FILE 1
96dded38
BB
25074_ACEOF
25075
25076
25077else
25078 echo "$as_me: failed program was:" >&5
25079sed 's/^/| /' conftest.$ac_ext >&5
25080
25081 echo "$as_me:$LINENO: result: no" >&5
25082echo "${ECHO_T}no" >&6
25083
25084
25085
25086fi
25087
25088 rm -Rf build
25089
4ab13d3b
BB
25090
25091
25092
6ae7fef5
BB
25093 echo "$as_me:$LINENO: checking whether symbol get_zone_counts is needed" >&5
25094echo $ECHO_N "checking whether symbol get_zone_counts is needed... $ECHO_C" >&6
e11d6c5f
BB
25095
25096
25097cat >conftest.c <<_ACEOF
25098/* confdefs.h. */
25099_ACEOF
25100cat confdefs.h >>conftest.$ac_ext
25101cat >>conftest.$ac_ext <<_ACEOF
25102/* end confdefs.h. */
25103
25104
e11d6c5f
BB
25105
25106int
25107main (void)
25108{
25109
6ae7fef5
BB
25110 #if !defined(HAVE_ZONE_STAT_ITEM_NR_FREE_PAGES)
25111 #error "global_page_state needs NR_FREE_PAGES"
25112 #endif
25113
25114 #if !defined(HAVE_ZONE_STAT_ITEM_NR_ACTIVE) && \
25115 !defined(HAVE_ZONE_STAT_ITEM_NR_ACTIVE_ANON) && \
25116 !defined(HAVE_ZONE_STAT_ITEM_NR_ACTIVE_FILE)
25117 #error "global_page_state needs NR_ACTIVE*"
25118 #endif
25119
25120 #if !defined(HAVE_ZONE_STAT_ITEM_NR_INACTIVE) && \
25121 !defined(HAVE_ZONE_STAT_ITEM_NR_INACTIVE_ANON) && \
25122 !defined(HAVE_ZONE_STAT_ITEM_NR_INACTIVE_FILE)
25123 #error "global_page_state needs NR_INACTIVE*"
25124 #endif
e11d6c5f
BB
25125
25126 ;
25127 return 0;
25128}
25129
25130_ACEOF
25131
25132
25133 rm -Rf build && mkdir -p build
25134 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 25135 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
e11d6c5f
BB
25136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25137 (eval $ac_try) 2>&5
25138 ac_status=$?
25139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25140 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
25141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25142 (eval $ac_try) 2>&5
25143 ac_status=$?
25144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25145 (exit $ac_status); }; }; then
25146
6ae7fef5
BB
25147 echo "$as_me:$LINENO: result: no" >&5
25148echo "${ECHO_T}no" >&6
25149
25150else
25151 echo "$as_me: failed program was:" >&5
25152sed 's/^/| /' conftest.$ac_ext >&5
25153
e11d6c5f
BB
25154 echo "$as_me:$LINENO: result: yes" >&5
25155echo "${ECHO_T}yes" >&6
25156
25157cat >>confdefs.h <<\_ACEOF
6ae7fef5 25158#define NEED_GET_ZONE_COUNTS 1
e11d6c5f
BB
25159_ACEOF
25160
25161
6ae7fef5
BB
25162 echo "$as_me:$LINENO: checking whether symbol get_zone_counts is exported" >&5
25163echo $ECHO_N "checking whether symbol get_zone_counts is exported... $ECHO_C" >&6
25164 grep -q -E '[[:space:]]get_zone_counts[[:space:]]' \
25165 $LINUX_OBJ/Module*.symvers 2>/dev/null
25166 rc=$?
25167 if test $rc -ne 0; then
25168 export=0
25169 for file in ; do
25170 grep -q -E "EXPORT_SYMBOL.*(get_zone_counts)" \
25171 "$LINUX_OBJ/$file" 2>/dev/null
25172 rc=$?
25173 if test $rc -eq 0; then
25174 export=1
25175 break;
25176 fi
25177 done
25178 if test $export -eq 0; then
25179 echo "$as_me:$LINENO: result: no" >&5
e11d6c5f
BB
25180echo "${ECHO_T}no" >&6
25181
6ae7fef5
BB
25182 else
25183 echo "$as_me:$LINENO: result: yes" >&5
25184echo "${ECHO_T}yes" >&6
25185
25186cat >>confdefs.h <<\_ACEOF
25187#define HAVE_GET_ZONE_COUNTS 1
25188_ACEOF
25189
25190 fi
25191 else
25192 echo "$as_me:$LINENO: result: yes" >&5
25193echo "${ECHO_T}yes" >&6
25194
25195cat >>confdefs.h <<\_ACEOF
25196#define HAVE_GET_ZONE_COUNTS 1
25197_ACEOF
25198
25199 fi
25200
25201
e11d6c5f
BB
25202
25203
51a727e9
BB
25204fi
25205
25206 rm -Rf build
25207
25208
25209
25210
25211 echo "$as_me:$LINENO: checking whether symbol set_fs_pwd is exported" >&5
25212echo $ECHO_N "checking whether symbol set_fs_pwd is exported... $ECHO_C" >&6
25213 grep -q -E '[[:space:]]set_fs_pwd[[:space:]]' \
25214 $LINUX_OBJ/Module*.symvers 2>/dev/null
25215 rc=$?
25216 if test $rc -ne 0; then
25217 export=0
25218 for file in ; do
25219 grep -q -E "EXPORT_SYMBOL.*(set_fs_pwd)" \
25220 "$LINUX_OBJ/$file" 2>/dev/null
25221 rc=$?
25222 if test $rc -eq 0; then
25223 export=1
25224 break;
25225 fi
25226 done
25227 if test $export -eq 0; then
25228 echo "$as_me:$LINENO: result: no" >&5
25229echo "${ECHO_T}no" >&6
25230
25231 else
25232 echo "$as_me:$LINENO: result: yes" >&5
25233echo "${ECHO_T}yes" >&6
25234
25235cat >>confdefs.h <<\_ACEOF
25236#define HAVE_SET_FS_PWD 1
25237_ACEOF
25238
25239 fi
25240 else
25241 echo "$as_me:$LINENO: result: yes" >&5
25242echo "${ECHO_T}yes" >&6
25243
25244cat >>confdefs.h <<\_ACEOF
25245#define HAVE_SET_FS_PWD 1
25246_ACEOF
25247
25248 fi
25249
25250
25251 echo "$as_me:$LINENO: checking whether set_fs_pwd() wants 2 args" >&5
25252echo $ECHO_N "checking whether set_fs_pwd() wants 2 args... $ECHO_C" >&6
25253
25254
25255cat >conftest.c <<_ACEOF
25256/* confdefs.h. */
25257_ACEOF
25258cat confdefs.h >>conftest.$ac_ext
25259cat >>conftest.$ac_ext <<_ACEOF
25260/* end confdefs.h. */
25261
25262
25263 #include <linux/sched.h>
baf2979e 25264 #include <linux/fs_struct.h>
51a727e9
BB
25265
25266int
25267main (void)
25268{
25269
25270 set_fs_pwd(NULL, NULL);
25271
25272 ;
25273 return 0;
25274}
25275
25276_ACEOF
25277
25278
25279 rm -Rf build && mkdir -p build
25280 echo "obj-m := conftest.o" >build/Makefile
25281 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
25282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25283 (eval $ac_try) 2>&5
25284 ac_status=$?
25285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25286 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
25287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25288 (eval $ac_try) 2>&5
25289 ac_status=$?
25290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25291 (exit $ac_status); }; }; then
25292
25293 echo "$as_me:$LINENO: result: yes" >&5
25294echo "${ECHO_T}yes" >&6
25295
25296cat >>confdefs.h <<\_ACEOF
25297#define HAVE_2ARGS_SET_FS_PWD 1
25298_ACEOF
25299
25300
25301else
25302 echo "$as_me: failed program was:" >&5
25303sed 's/^/| /' conftest.$ac_ext >&5
25304
25305 echo "$as_me:$LINENO: result: no" >&5
25306echo "${ECHO_T}no" >&6
25307
25308
25309
a093c6a4
BB
25310fi
25311
25312 rm -Rf build
25313
25314
25315
86933a6e 25316 echo "$as_me:$LINENO: checking whether vfs_unlink() wants 2 args" >&5
a093c6a4
BB
25317echo $ECHO_N "checking whether vfs_unlink() wants 2 args... $ECHO_C" >&6
25318
25319
25320cat >conftest.c <<_ACEOF
25321/* confdefs.h. */
25322_ACEOF
25323cat confdefs.h >>conftest.$ac_ext
25324cat >>conftest.$ac_ext <<_ACEOF
25325/* end confdefs.h. */
25326
25327
25328 #include <linux/fs.h>
25329
25330int
25331main (void)
25332{
25333
25334 vfs_unlink(NULL, NULL);
25335
25336 ;
25337 return 0;
25338}
25339
25340_ACEOF
25341
25342
25343 rm -Rf build && mkdir -p build
25344 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 25345 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
a093c6a4
BB
25346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25347 (eval $ac_try) 2>&5
25348 ac_status=$?
25349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25350 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
25351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25352 (eval $ac_try) 2>&5
25353 ac_status=$?
25354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25355 (exit $ac_status); }; }; then
25356
25357 echo "$as_me:$LINENO: result: yes" >&5
25358echo "${ECHO_T}yes" >&6
25359
25360cat >>confdefs.h <<\_ACEOF
25361#define HAVE_2ARGS_VFS_UNLINK 1
25362_ACEOF
25363
25364
25365else
25366 echo "$as_me: failed program was:" >&5
25367sed 's/^/| /' conftest.$ac_ext >&5
25368
25369 echo "$as_me:$LINENO: result: no" >&5
25370echo "${ECHO_T}no" >&6
25371
25372
25373
25374fi
25375
25376 rm -Rf build
25377
25378
25379
86933a6e 25380 echo "$as_me:$LINENO: checking whether vfs_rename() wants 4 args" >&5
a093c6a4
BB
25381echo $ECHO_N "checking whether vfs_rename() wants 4 args... $ECHO_C" >&6
25382
25383
25384cat >conftest.c <<_ACEOF
25385/* confdefs.h. */
25386_ACEOF
25387cat confdefs.h >>conftest.$ac_ext
25388cat >>conftest.$ac_ext <<_ACEOF
25389/* end confdefs.h. */
25390
25391
25392 #include <linux/fs.h>
25393
25394int
25395main (void)
25396{
25397
25398 vfs_rename(NULL, NULL, NULL, NULL);
25399
25400 ;
25401 return 0;
25402}
25403
25404_ACEOF
25405
25406
25407 rm -Rf build && mkdir -p build
25408 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 25409 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
a093c6a4
BB
25410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25411 (eval $ac_try) 2>&5
25412 ac_status=$?
25413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25414 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
25415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25416 (eval $ac_try) 2>&5
25417 ac_status=$?
25418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25419 (exit $ac_status); }; }; then
25420
25421 echo "$as_me:$LINENO: result: yes" >&5
25422echo "${ECHO_T}yes" >&6
25423
25424cat >>confdefs.h <<\_ACEOF
25425#define HAVE_4ARGS_VFS_RENAME 1
25426_ACEOF
25427
25428
25429else
25430 echo "$as_me: failed program was:" >&5
25431sed 's/^/| /' conftest.$ac_ext >&5
25432
25433 echo "$as_me:$LINENO: result: no" >&5
25434echo "${ECHO_T}no" >&6
25435
25436
25437
e11d6c5f
BB
25438fi
25439
25440 rm -Rf build
25441
25442
25443
25444
ec7d53e9
BB
25445 echo "$as_me:$LINENO: checking whether struct cred exists" >&5
25446echo $ECHO_N "checking whether struct cred exists... $ECHO_C" >&6
25447
25448
25449cat >conftest.c <<_ACEOF
25450/* confdefs.h. */
25451_ACEOF
25452cat confdefs.h >>conftest.$ac_ext
25453cat >>conftest.$ac_ext <<_ACEOF
25454/* end confdefs.h. */
25455
25456
25457 #include <linux/cred.h>
25458
25459int
25460main (void)
25461{
25462
25463 struct cred *cr;
25464 cr = NULL;
25465
25466 ;
25467 return 0;
25468}
25469
25470_ACEOF
25471
25472
25473 rm -Rf build && mkdir -p build
25474 echo "obj-m := conftest.o" >build/Makefile
25475 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
25476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25477 (eval $ac_try) 2>&5
25478 ac_status=$?
25479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25480 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
25481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25482 (eval $ac_try) 2>&5
25483 ac_status=$?
25484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25485 (exit $ac_status); }; }; then
25486
25487 echo "$as_me:$LINENO: result: yes" >&5
25488echo "${ECHO_T}yes" >&6
25489
25490cat >>confdefs.h <<\_ACEOF
25491#define HAVE_CRED_STRUCT 1
25492_ACEOF
25493
25494
25495else
25496 echo "$as_me: failed program was:" >&5
25497sed 's/^/| /' conftest.$ac_ext >&5
25498
25499 echo "$as_me:$LINENO: result: no" >&5
25500echo "${ECHO_T}no" >&6
25501
25502
25503
25504fi
25505
25506 rm -Rf build
25507
25508
25509
25510
25511 echo "$as_me:$LINENO: checking whether symbol groups_search is exported" >&5
25512echo $ECHO_N "checking whether symbol groups_search is exported... $ECHO_C" >&6
25513 grep -q -E '[[:space:]]groups_search[[:space:]]' \
25514 $LINUX_OBJ/Module*.symvers 2>/dev/null
25515 rc=$?
25516 if test $rc -ne 0; then
25517 export=0
25518 for file in ; do
25519 grep -q -E "EXPORT_SYMBOL.*(groups_search)" \
25520 "$LINUX_OBJ/$file" 2>/dev/null
25521 rc=$?
25522 if test $rc -eq 0; then
25523 export=1
25524 break;
25525 fi
25526 done
25527 if test $export -eq 0; then
25528 echo "$as_me:$LINENO: result: no" >&5
25529echo "${ECHO_T}no" >&6
25530
25531 else
25532 echo "$as_me:$LINENO: result: yes" >&5
25533echo "${ECHO_T}yes" >&6
25534
25535cat >>confdefs.h <<\_ACEOF
25536#define HAVE_GROUPS_SEARCH 1
25537_ACEOF
25538
25539 fi
25540 else
25541 echo "$as_me:$LINENO: result: yes" >&5
25542echo "${ECHO_T}yes" >&6
25543
25544cat >>confdefs.h <<\_ACEOF
25545#define HAVE_GROUPS_SEARCH 1
25546_ACEOF
25547
25548 fi
25549
25550
25551
e811949a
BB
25552 echo "$as_me:$LINENO: checking whether symbol __put_task_struct is exported" >&5
25553echo $ECHO_N "checking whether symbol __put_task_struct is exported... $ECHO_C" >&6
25554 grep -q -E '[[:space:]]__put_task_struct[[:space:]]' \
25555 $LINUX_OBJ/Module*.symvers 2>/dev/null
25556 rc=$?
25557 if test $rc -ne 0; then
25558 export=0
25559 for file in ; do
25560 grep -q -E "EXPORT_SYMBOL.*(__put_task_struct)" \
25561 "$LINUX_OBJ/$file" 2>/dev/null
25562 rc=$?
25563 if test $rc -eq 0; then
25564 export=1
25565 break;
25566 fi
25567 done
25568 if test $export -eq 0; then
25569 echo "$as_me:$LINENO: result: no" >&5
25570echo "${ECHO_T}no" >&6
25571
25572 else
25573 echo "$as_me:$LINENO: result: yes" >&5
25574echo "${ECHO_T}yes" >&6
25575
25576cat >>confdefs.h <<\_ACEOF
25577#define HAVE_PUT_TASK_STRUCT 1
25578_ACEOF
25579
25580 fi
25581 else
25582 echo "$as_me:$LINENO: result: yes" >&5
25583echo "${ECHO_T}yes" >&6
25584
25585cat >>confdefs.h <<\_ACEOF
25586#define HAVE_PUT_TASK_STRUCT 1
25587_ACEOF
25588
25589 fi
25590
25591
25592
3977f837
BB
25593 echo "$as_me:$LINENO: checking whether proc_handler() wants 5 args" >&5
25594echo $ECHO_N "checking whether proc_handler() wants 5 args... $ECHO_C" >&6
25595
25596
25597cat >conftest.c <<_ACEOF
25598/* confdefs.h. */
25599_ACEOF
25600cat confdefs.h >>conftest.$ac_ext
25601cat >>conftest.$ac_ext <<_ACEOF
25602/* end confdefs.h. */
25603
25604
25605 #include <linux/sysctl.h>
25606
25607int
25608main (void)
25609{
25610
25611 proc_dostring(NULL, 0, NULL, NULL, NULL);
25612
25613 ;
25614 return 0;
25615}
25616
25617_ACEOF
25618
25619
25620 rm -Rf build && mkdir -p build
25621 echo "obj-m := conftest.o" >build/Makefile
25622 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
25623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25624 (eval $ac_try) 2>&5
25625 ac_status=$?
25626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25627 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
25628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25629 (eval $ac_try) 2>&5
25630 ac_status=$?
25631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25632 (exit $ac_status); }; }; then
25633
25634 echo "$as_me:$LINENO: result: yes" >&5
25635echo "${ECHO_T}yes" >&6
25636
25637cat >>confdefs.h <<\_ACEOF
25638#define HAVE_5ARGS_PROC_HANDLER 1
25639_ACEOF
25640
25641
25642else
25643 echo "$as_me: failed program was:" >&5
25644sed 's/^/| /' conftest.$ac_ext >&5
25645
25646 echo "$as_me:$LINENO: result: no" >&5
25647echo "${ECHO_T}no" >&6
25648
25649
25650
25651fi
25652
25653 rm -Rf build
25654
25655
25656
25657
86933a6e 25658 ;;
c1541dfe 25659 srpm) ;;
86933a6e
BB
25660 *)
25661 echo "$as_me:$LINENO: result: Error!" >&5
25662echo "${ECHO_T}Error!" >&6
25663 { { echo "$as_me:$LINENO: error: Bad value \"$SPL_CONFIG\" for --with-config,
c1541dfe 25664 user kernel|user|all|srpm" >&5
86933a6e 25665echo "$as_me: error: Bad value \"$SPL_CONFIG\" for --with-config,
c1541dfe 25666 user kernel|user|all|srpm" >&2;}
86933a6e
BB
25667 { (exit 1); exit 1; }; } ;;
25668 esac
25669
25670
25671
25672if test "$SPL_CONFIG" = user ||
25673 test "$SPL_CONFIG" = all; then
25674 CONFIG_USER_TRUE=
25675 CONFIG_USER_FALSE='#'
25676else
25677 CONFIG_USER_TRUE='#'
25678 CONFIG_USER_FALSE=
25679fi
25680
25681
25682
25683if test "$SPL_CONFIG" = kernel ||
25684 test "$SPL_CONFIG" = all; then
25685 CONFIG_KERNEL_TRUE=
25686 CONFIG_KERNEL_FALSE='#'
25687else
25688 CONFIG_KERNEL_TRUE='#'
25689 CONFIG_KERNEL_FALSE=
25690fi
25691
25692
25693
25694 ac_config_files="$ac_config_files Makefile lib/Makefile cmd/Makefile module/Makefile module/spl/Makefile module/splat/Makefile include/Makefile scripts/Makefile spl.spec spl-modules.spec"
bf9f3bac 25695
25696
25697cat >confcache <<\_ACEOF
25698# This file is a shell script that caches the results of configure
25699# tests run on this system so they can be shared between configure
25700# scripts and configure runs, see configure's option --config-cache.
25701# It is not useful on other systems. If it contains results you don't
25702# want to keep, you may remove or edit it.
25703#
25704# config.status only pays attention to the cache file if you give it
25705# the --recheck option to rerun configure.
25706#
25707# `ac_cv_env_foo' variables (set or unset) will be overridden when
25708# loading this file, other *unset* `ac_cv_foo' will be assigned the
25709# following values.
25710
25711_ACEOF
25712
25713# The following way of writing the cache mishandles newlines in values,
25714# but we know of no workaround that is simple, portable, and efficient.
25715# So, don't put newlines in cache variables' values.
25716# Ultrix sh set writes to stderr and can't be redirected directly,
25717# and sets the high bit in the cache file unless we assign to the vars.
25718{
25719 (set) 2>&1 |
25720 case `(ac_space=' '; set | grep ac_space) 2>&1` in
25721 *ac_space=\ *)
25722 # `set' does not quote correctly, so add quotes (double-quote
25723 # substitution turns \\\\ into \\, and sed turns \\ into \).
25724 sed -n \
25725 "s/'/'\\\\''/g;
25726 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25727 ;;
25728 *)
25729 # `set' quotes correctly as required by POSIX, so do not add quotes.
25730 sed -n \
25731 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
25732 ;;
25733 esac;
25734} |
25735 sed '
25736 t clear
25737 : clear
25738 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25739 t end
25740 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25741 : end' >>confcache
25742if diff $cache_file confcache >/dev/null 2>&1; then :; else
25743 if test -w $cache_file; then
25744 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
25745 cat confcache >$cache_file
25746 else
25747 echo "not updating unwritable cache $cache_file"
25748 fi
25749fi
25750rm -f confcache
25751
25752test "x$prefix" = xNONE && prefix=$ac_default_prefix
25753# Let make expand exec_prefix.
25754test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25755
25756# VPATH may cause trouble with some makes, so we remove $(srcdir),
25757# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25758# trailing colons and then remove the whole line if VPATH becomes empty
25759# (actually we leave an empty line to preserve line numbers).
25760if test "x$srcdir" = x.; then
25761 ac_vpsub='/^[ ]*VPATH[ ]*=/{
25762s/:*\$(srcdir):*/:/;
25763s/:*\${srcdir}:*/:/;
25764s/:*@srcdir@:*/:/;
25765s/^\([^=]*=[ ]*\):*/\1/;
25766s/:*$//;
25767s/^[^=]*=[ ]*$//;
25768}'
25769fi
25770
25771DEFS=-DHAVE_CONFIG_H
25772
25773ac_libobjs=
25774ac_ltlibobjs=
25775for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25776 # 1. Remove the extension, and $U if already installed.
25777 ac_i=`echo "$ac_i" |
25778 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
25779 # 2. Add them.
25780 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
25781 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
25782done
25783LIBOBJS=$ac_libobjs
25784
25785LTLIBOBJS=$ac_ltlibobjs
25786
25787
25788if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
25789 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
25790Usually this means the macro was only invoked conditionally." >&5
25791echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
25792Usually this means the macro was only invoked conditionally." >&2;}
25793 { (exit 1); exit 1; }; }
25794fi
25795if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
25796 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
25797Usually this means the macro was only invoked conditionally." >&5
25798echo "$as_me: error: conditional \"AMDEP\" was never defined.
25799Usually this means the macro was only invoked conditionally." >&2;}
25800 { (exit 1); exit 1; }; }
25801fi
25802if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
25803 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
25804Usually this means the macro was only invoked conditionally." >&5
25805echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
25806Usually this means the macro was only invoked conditionally." >&2;}
25807 { (exit 1); exit 1; }; }
25808fi
25809if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
25810 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
25811Usually this means the macro was only invoked conditionally." >&5
25812echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
25813Usually this means the macro was only invoked conditionally." >&2;}
25814 { (exit 1); exit 1; }; }
25815fi
86933a6e
BB
25816if test -z "${CONFIG_USER_TRUE}" && test -z "${CONFIG_USER_FALSE}"; then
25817 { { echo "$as_me:$LINENO: error: conditional \"CONFIG_USER\" was never defined.
25818Usually this means the macro was only invoked conditionally." >&5
25819echo "$as_me: error: conditional \"CONFIG_USER\" was never defined.
25820Usually this means the macro was only invoked conditionally." >&2;}
25821 { (exit 1); exit 1; }; }
25822fi
25823if test -z "${CONFIG_KERNEL_TRUE}" && test -z "${CONFIG_KERNEL_FALSE}"; then
25824 { { echo "$as_me:$LINENO: error: conditional \"CONFIG_KERNEL\" was never defined.
25825Usually this means the macro was only invoked conditionally." >&5
25826echo "$as_me: error: conditional \"CONFIG_KERNEL\" was never defined.
25827Usually this means the macro was only invoked conditionally." >&2;}
25828 { (exit 1); exit 1; }; }
25829fi
bf9f3bac 25830
25831: ${CONFIG_STATUS=./config.status}
25832ac_clean_files_save=$ac_clean_files
25833ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25834{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
25835echo "$as_me: creating $CONFIG_STATUS" >&6;}
25836cat >$CONFIG_STATUS <<_ACEOF
25837#! $SHELL
25838# Generated by $as_me.
25839# Run this file to recreate the current configuration.
25840# Compiler output produced by configure, useful for debugging
25841# configure, is in config.log if it exists.
25842
25843debug=false
25844ac_cs_recheck=false
25845ac_cs_silent=false
25846SHELL=\${CONFIG_SHELL-$SHELL}
25847_ACEOF
25848
25849cat >>$CONFIG_STATUS <<\_ACEOF
25850## --------------------- ##
25851## M4sh Initialization. ##
25852## --------------------- ##
25853
25854# Be Bourne compatible
25855if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25856 emulate sh
25857 NULLCMD=:
25858 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25859 # is contrary to our usage. Disable this feature.
25860 alias -g '${1+"$@"}'='"$@"'
25861elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
25862 set -o posix
25863fi
25864DUALCASE=1; export DUALCASE # for MKS sh
25865
25866# Support unset when possible.
25867if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
25868 as_unset=unset
25869else
25870 as_unset=false
25871fi
25872
25873
25874# Work around bugs in pre-3.0 UWIN ksh.
25875$as_unset ENV MAIL MAILPATH
25876PS1='$ '
25877PS2='> '
25878PS4='+ '
25879
25880# NLS nuisances.
25881for as_var in \
25882 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
25883 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
25884 LC_TELEPHONE LC_TIME
25885do
25886 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
25887 eval $as_var=C; export $as_var
25888 else
25889 $as_unset $as_var
25890 fi
25891done
25892
25893# Required to use basename.
25894if expr a : '\(a\)' >/dev/null 2>&1; then
25895 as_expr=expr
25896else
25897 as_expr=false
25898fi
25899
25900if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
25901 as_basename=basename
25902else
25903 as_basename=false
25904fi
25905
25906
25907# Name of the executable.
25908as_me=`$as_basename "$0" ||
25909$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25910 X"$0" : 'X\(//\)$' \| \
25911 X"$0" : 'X\(/\)$' \| \
25912 . : '\(.\)' 2>/dev/null ||
25913echo X/"$0" |
25914 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
25915 /^X\/\(\/\/\)$/{ s//\1/; q; }
25916 /^X\/\(\/\).*/{ s//\1/; q; }
25917 s/.*/./; q'`
25918
25919
25920# PATH needs CR, and LINENO needs CR and PATH.
25921# Avoid depending upon Character Ranges.
25922as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25923as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25924as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25925as_cr_digits='0123456789'
25926as_cr_alnum=$as_cr_Letters$as_cr_digits
25927
25928# The user is always right.
25929if test "${PATH_SEPARATOR+set}" != set; then
25930 echo "#! /bin/sh" >conf$$.sh
25931 echo "exit 0" >>conf$$.sh
25932 chmod +x conf$$.sh
25933 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
25934 PATH_SEPARATOR=';'
25935 else
25936 PATH_SEPARATOR=:
25937 fi
25938 rm -f conf$$.sh
25939fi
25940
25941
25942 as_lineno_1=$LINENO
25943 as_lineno_2=$LINENO
25944 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
25945 test "x$as_lineno_1" != "x$as_lineno_2" &&
25946 test "x$as_lineno_3" = "x$as_lineno_2" || {
25947 # Find who we are. Look in the path if we contain no path at all
25948 # relative or not.
25949 case $0 in
25950 *[\\/]* ) as_myself=$0 ;;
25951 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25952for as_dir in $PATH
25953do
25954 IFS=$as_save_IFS
25955 test -z "$as_dir" && as_dir=.
25956 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25957done
25958
25959 ;;
25960 esac
25961 # We did not find ourselves, most probably we were run as `sh COMMAND'
25962 # in which case we are not to be found in the path.
25963 if test "x$as_myself" = x; then
25964 as_myself=$0
25965 fi
25966 if test ! -f "$as_myself"; then
25967 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
25968echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
25969 { (exit 1); exit 1; }; }
25970 fi
25971 case $CONFIG_SHELL in
25972 '')
25973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25974for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
25975do
25976 IFS=$as_save_IFS
25977 test -z "$as_dir" && as_dir=.
25978 for as_base in sh bash ksh sh5; do
25979 case $as_dir in
25980 /*)
25981 if ("$as_dir/$as_base" -c '
25982 as_lineno_1=$LINENO
25983 as_lineno_2=$LINENO
25984 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
25985 test "x$as_lineno_1" != "x$as_lineno_2" &&
25986 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
25987 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
25988 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
25989 CONFIG_SHELL=$as_dir/$as_base
25990 export CONFIG_SHELL
25991 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
25992 fi;;
25993 esac
25994 done
25995done
25996;;
25997 esac
25998
25999 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26000 # uniformly replaced by the line number. The first 'sed' inserts a
26001 # line-number line before each line; the second 'sed' does the real
26002 # work. The second script uses 'N' to pair each line-number line
26003 # with the numbered line, and appends trailing '-' during
26004 # substitution so that $LINENO is not a special case at line end.
26005 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26006 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
26007 sed '=' <$as_myself |
26008 sed '
26009 N
26010 s,$,-,
26011 : loop
26012 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
26013 t loop
26014 s,-$,,
26015 s,^['$as_cr_digits']*\n,,
26016 ' >$as_me.lineno &&
26017 chmod +x $as_me.lineno ||
26018 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
26019echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
26020 { (exit 1); exit 1; }; }
26021
26022 # Don't try to exec as it changes $[0], causing all sort of problems
26023 # (the dirname of $[0] is not the place where we might find the
26024 # original and so on. Autoconf is especially sensible to this).
26025 . ./$as_me.lineno
26026 # Exit status is that of the last command.
26027 exit
26028}
26029
26030
26031case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
26032 *c*,-n*) ECHO_N= ECHO_C='
26033' ECHO_T=' ' ;;
26034 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
26035 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
26036esac
26037
26038if expr a : '\(a\)' >/dev/null 2>&1; then
26039 as_expr=expr
26040else
26041 as_expr=false
26042fi
26043
26044rm -f conf$$ conf$$.exe conf$$.file
26045echo >conf$$.file
26046if ln -s conf$$.file conf$$ 2>/dev/null; then
26047 # We could just check for DJGPP; but this test a) works b) is more generic
26048 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
26049 if test -f conf$$.exe; then
26050 # Don't use ln at all; we don't have any links
26051 as_ln_s='cp -p'
26052 else
26053 as_ln_s='ln -s'
26054 fi
26055elif ln conf$$.file conf$$ 2>/dev/null; then
26056 as_ln_s=ln
26057else
26058 as_ln_s='cp -p'
26059fi
26060rm -f conf$$ conf$$.exe conf$$.file
26061
26062if mkdir -p . 2>/dev/null; then
26063 as_mkdir_p=:
26064else
26065 test -d ./-p && rmdir ./-p
26066 as_mkdir_p=false
26067fi
26068
26069as_executable_p="test -f"
26070
26071# Sed expression to map a string onto a valid CPP name.
26072as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26073
26074# Sed expression to map a string onto a valid variable name.
26075as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26076
26077
26078# IFS
26079# We need space, tab and new line, in precisely that order.
26080as_nl='
26081'
26082IFS=" $as_nl"
26083
26084# CDPATH.
26085$as_unset CDPATH
26086
26087exec 6>&1
26088
26089# Open the log real soon, to keep \$[0] and so on meaningful, and to
26090# report actual input values of CONFIG_FILES etc. instead of their
26091# values after options handling. Logging --version etc. is OK.
26092exec 5>>config.log
26093{
26094 echo
26095 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26096## Running $as_me. ##
26097_ASBOX
26098} >&5
26099cat >&5 <<_CSEOF
26100
26101This file was extended by $as_me, which was
26102generated by GNU Autoconf 2.59. Invocation command line was
26103
26104 CONFIG_FILES = $CONFIG_FILES
26105 CONFIG_HEADERS = $CONFIG_HEADERS
26106 CONFIG_LINKS = $CONFIG_LINKS
26107 CONFIG_COMMANDS = $CONFIG_COMMANDS
26108 $ $0 $@
26109
26110_CSEOF
26111echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
26112echo >&5
26113_ACEOF
26114
26115# Files that config.status was made for.
26116if test -n "$ac_config_files"; then
26117 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
26118fi
26119
26120if test -n "$ac_config_headers"; then
26121 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
26122fi
26123
26124if test -n "$ac_config_links"; then
26125 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
26126fi
26127
26128if test -n "$ac_config_commands"; then
26129 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
26130fi
26131
26132cat >>$CONFIG_STATUS <<\_ACEOF
26133
26134ac_cs_usage="\
26135\`$as_me' instantiates files from templates according to the
26136current configuration.
26137
26138Usage: $0 [OPTIONS] [FILE]...
26139
26140 -h, --help print this help, then exit
26141 -V, --version print version number, then exit
26142 -q, --quiet do not print progress messages
26143 -d, --debug don't remove temporary files
26144 --recheck update $as_me by reconfiguring in the same conditions
26145 --file=FILE[:TEMPLATE]
26146 instantiate the configuration file FILE
26147 --header=FILE[:TEMPLATE]
26148 instantiate the configuration header FILE
26149
26150Configuration files:
26151$config_files
26152
26153Configuration headers:
26154$config_headers
26155
26156Configuration commands:
26157$config_commands
26158
26159Report bugs to <bug-autoconf@gnu.org>."
26160_ACEOF
26161
26162cat >>$CONFIG_STATUS <<_ACEOF
26163ac_cs_version="\\
26164config.status
26165configured by $0, generated by GNU Autoconf 2.59,
26166 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
26167
26168Copyright (C) 2003 Free Software Foundation, Inc.
26169This config.status script is free software; the Free Software Foundation
26170gives unlimited permission to copy, distribute and modify it."
26171srcdir=$srcdir
26172INSTALL="$INSTALL"
26173_ACEOF
26174
26175cat >>$CONFIG_STATUS <<\_ACEOF
26176# If no file are specified by the user, then we need to provide default
26177# value. By we need to know if files were specified by the user.
26178ac_need_defaults=:
26179while test $# != 0
26180do
26181 case $1 in
26182 --*=*)
26183 ac_option=`expr "x$1" : 'x\([^=]*\)='`
26184 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
26185 ac_shift=:
26186 ;;
26187 -*)
26188 ac_option=$1
26189 ac_optarg=$2
26190 ac_shift=shift
26191 ;;
26192 *) # This is not an option, so the user has probably given explicit
26193 # arguments.
26194 ac_option=$1
26195 ac_need_defaults=false;;
26196 esac
26197
26198 case $ac_option in
26199 # Handling of the options.
26200_ACEOF
26201cat >>$CONFIG_STATUS <<\_ACEOF
26202 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26203 ac_cs_recheck=: ;;
26204 --version | --vers* | -V )
26205 echo "$ac_cs_version"; exit 0 ;;
26206 --he | --h)
26207 # Conflict between --help and --header
26208 { { echo "$as_me:$LINENO: error: ambiguous option: $1
26209Try \`$0 --help' for more information." >&5
26210echo "$as_me: error: ambiguous option: $1
26211Try \`$0 --help' for more information." >&2;}
26212 { (exit 1); exit 1; }; };;
26213 --help | --hel | -h )
26214 echo "$ac_cs_usage"; exit 0 ;;
26215 --debug | --d* | -d )
26216 debug=: ;;
26217 --file | --fil | --fi | --f )
26218 $ac_shift
26219 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
26220 ac_need_defaults=false;;
26221 --header | --heade | --head | --hea )
26222 $ac_shift
26223 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
26224 ac_need_defaults=false;;
26225 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26226 | -silent | --silent | --silen | --sile | --sil | --si | --s)
26227 ac_cs_silent=: ;;
26228
26229 # This is an error.
26230 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
26231Try \`$0 --help' for more information." >&5
26232echo "$as_me: error: unrecognized option: $1
26233Try \`$0 --help' for more information." >&2;}
26234 { (exit 1); exit 1; }; } ;;
26235
26236 *) ac_config_targets="$ac_config_targets $1" ;;
26237
26238 esac
26239 shift
26240done
26241
26242ac_configure_extra_args=
26243
26244if $ac_cs_silent; then
26245 exec 6>/dev/null
26246 ac_configure_extra_args="$ac_configure_extra_args --silent"
26247fi
26248
26249_ACEOF
26250cat >>$CONFIG_STATUS <<_ACEOF
26251if \$ac_cs_recheck; then
26252 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
26253 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26254fi
26255
26256_ACEOF
26257
26258cat >>$CONFIG_STATUS <<_ACEOF
26259#
26260# INIT-COMMANDS section.
26261#
26262
26263AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
26264
26265_ACEOF
26266
26267
26268
26269cat >>$CONFIG_STATUS <<\_ACEOF
26270for ac_config_target in $ac_config_targets
26271do
26272 case "$ac_config_target" in
26273 # Handling of arguments.
26274 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26275 "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
26276 "cmd/Makefile" ) CONFIG_FILES="$CONFIG_FILES cmd/Makefile" ;;
617d5a67
BB
26277 "module/Makefile" ) CONFIG_FILES="$CONFIG_FILES module/Makefile" ;;
26278 "module/spl/Makefile" ) CONFIG_FILES="$CONFIG_FILES module/spl/Makefile" ;;
26279 "module/splat/Makefile" ) CONFIG_FILES="$CONFIG_FILES module/splat/Makefile" ;;
bf9f3bac 26280 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
bf9f3bac 26281 "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
c5f70460 26282 "spl.spec" ) CONFIG_FILES="$CONFIG_FILES spl.spec" ;;
86933a6e 26283 "spl-modules.spec" ) CONFIG_FILES="$CONFIG_FILES spl-modules.spec" ;;
bf9f3bac 26284 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
26285 "spl_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS spl_config.h" ;;
26286 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26287echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26288 { (exit 1); exit 1; }; };;
26289 esac
26290done
26291
26292# If the user did not use the arguments to specify the items to instantiate,
26293# then the envvar interface is used. Set only those that are not.
26294# We use the long form for the default assignment because of an extremely
26295# bizarre bug on SunOS 4.1.3.
26296if $ac_need_defaults; then
26297 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26298 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26299 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26300fi
26301
26302# Have a temporary directory for convenience. Make it in the build tree
26303# simply because there is no reason to put it here, and in addition,
26304# creating and moving files from /tmp can sometimes cause problems.
26305# Create a temporary directory, and hook for its removal unless debugging.
26306$debug ||
26307{
26308 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
26309 trap '{ (exit 1); exit 1; }' 1 2 13 15
26310}
26311
26312# Create a (secure) tmp directory for tmp files.
26313
26314{
26315 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
26316 test -n "$tmp" && test -d "$tmp"
26317} ||
26318{
26319 tmp=./confstat$$-$RANDOM
26320 (umask 077 && mkdir $tmp)
26321} ||
26322{
26323 echo "$me: cannot create a temporary directory in ." >&2
26324 { (exit 1); exit 1; }
26325}
26326
26327_ACEOF
26328
26329cat >>$CONFIG_STATUS <<_ACEOF
26330
26331#
26332# CONFIG_FILES section.
26333#
26334
26335# No need to generate the scripts if there are no CONFIG_FILES.
26336# This happens for instance when ./config.status config.h
26337if test -n "\$CONFIG_FILES"; then
26338 # Protect against being on the right side of a sed subst in config.status.
26339 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
26340 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
26341s,@SHELL@,$SHELL,;t t
26342s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
26343s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
26344s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
26345s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
26346s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
26347s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
26348s,@exec_prefix@,$exec_prefix,;t t
26349s,@prefix@,$prefix,;t t
26350s,@program_transform_name@,$program_transform_name,;t t
26351s,@bindir@,$bindir,;t t
26352s,@sbindir@,$sbindir,;t t
26353s,@libexecdir@,$libexecdir,;t t
26354s,@datadir@,$datadir,;t t
26355s,@sysconfdir@,$sysconfdir,;t t
26356s,@sharedstatedir@,$sharedstatedir,;t t
26357s,@localstatedir@,$localstatedir,;t t
26358s,@libdir@,$libdir,;t t
26359s,@includedir@,$includedir,;t t
26360s,@oldincludedir@,$oldincludedir,;t t
26361s,@infodir@,$infodir,;t t
26362s,@mandir@,$mandir,;t t
26363s,@build_alias@,$build_alias,;t t
26364s,@host_alias@,$host_alias,;t t
26365s,@target_alias@,$target_alias,;t t
26366s,@DEFS@,$DEFS,;t t
26367s,@ECHO_C@,$ECHO_C,;t t
26368s,@ECHO_N@,$ECHO_N,;t t
26369s,@ECHO_T@,$ECHO_T,;t t
26370s,@LIBS@,$LIBS,;t t
abc3ca14
BB
26371s,@SPL_META_NAME@,$SPL_META_NAME,;t t
26372s,@SPL_META_VERSION@,$SPL_META_VERSION,;t t
26373s,@SPL_META_RELEASE@,$SPL_META_RELEASE,;t t
72e7de60 26374s,@SPL_META_ALIAS@,$SPL_META_ALIAS,;t t
abc3ca14
BB
26375s,@SPL_META_DATA@,$SPL_META_DATA,;t t
26376s,@SPL_META_AUTHOR@,$SPL_META_AUTHOR,;t t
26377s,@SPL_META_LT_CURRENT@,$SPL_META_LT_CURRENT,;t t
26378s,@SPL_META_LT_REVISION@,$SPL_META_LT_REVISION,;t t
26379s,@SPL_META_LT_AGE@,$SPL_META_LT_AGE,;t t
bf9f3bac 26380s,@build@,$build,;t t
26381s,@build_cpu@,$build_cpu,;t t
26382s,@build_vendor@,$build_vendor,;t t
26383s,@build_os@,$build_os,;t t
26384s,@host@,$host,;t t
26385s,@host_cpu@,$host_cpu,;t t
26386s,@host_vendor@,$host_vendor,;t t
26387s,@host_os@,$host_os,;t t
26388s,@target@,$target,;t t
26389s,@target_cpu@,$target_cpu,;t t
26390s,@target_vendor@,$target_vendor,;t t
26391s,@target_os@,$target_os,;t t
26392s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
26393s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
26394s,@INSTALL_DATA@,$INSTALL_DATA,;t t
26395s,@CYGPATH_W@,$CYGPATH_W,;t t
26396s,@PACKAGE@,$PACKAGE,;t t
26397s,@VERSION@,$VERSION,;t t
26398s,@ACLOCAL@,$ACLOCAL,;t t
26399s,@AUTOCONF@,$AUTOCONF,;t t
26400s,@AUTOMAKE@,$AUTOMAKE,;t t
26401s,@AUTOHEADER@,$AUTOHEADER,;t t
26402s,@MAKEINFO@,$MAKEINFO,;t t
26403s,@install_sh@,$install_sh,;t t
26404s,@STRIP@,$STRIP,;t t
26405s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
26406s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
26407s,@mkdir_p@,$mkdir_p,;t t
26408s,@AWK@,$AWK,;t t
26409s,@SET_MAKE@,$SET_MAKE,;t t
26410s,@am__leading_dot@,$am__leading_dot,;t t
26411s,@AMTAR@,$AMTAR,;t t
26412s,@am__tar@,$am__tar,;t t
26413s,@am__untar@,$am__untar,;t t
26414s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
26415s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
26416s,@MAINT@,$MAINT,;t t
26417s,@CC@,$CC,;t t
26418s,@CFLAGS@,$CFLAGS,;t t
26419s,@LDFLAGS@,$LDFLAGS,;t t
26420s,@CPPFLAGS@,$CPPFLAGS,;t t
26421s,@ac_ct_CC@,$ac_ct_CC,;t t
26422s,@EXEEXT@,$EXEEXT,;t t
26423s,@OBJEXT@,$OBJEXT,;t t
26424s,@DEPDIR@,$DEPDIR,;t t
26425s,@am__include@,$am__include,;t t
26426s,@am__quote@,$am__quote,;t t
26427s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
26428s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
26429s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
26430s,@CCDEPMODE@,$CCDEPMODE,;t t
26431s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
26432s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
26433s,@SED@,$SED,;t t
26434s,@EGREP@,$EGREP,;t t
26435s,@LN_S@,$LN_S,;t t
26436s,@ECHO@,$ECHO,;t t
26437s,@AR@,$AR,;t t
26438s,@ac_ct_AR@,$ac_ct_AR,;t t
26439s,@RANLIB@,$RANLIB,;t t
26440s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
26441s,@CPP@,$CPP,;t t
26442s,@CXX@,$CXX,;t t
26443s,@CXXFLAGS@,$CXXFLAGS,;t t
26444s,@ac_ct_CXX@,$ac_ct_CXX,;t t
26445s,@CXXDEPMODE@,$CXXDEPMODE,;t t
26446s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
26447s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
26448s,@CXXCPP@,$CXXCPP,;t t
26449s,@F77@,$F77,;t t
26450s,@FFLAGS@,$FFLAGS,;t t
26451s,@ac_ct_F77@,$ac_ct_F77,;t t
26452s,@LIBTOOL@,$LIBTOOL,;t t
86933a6e
BB
26453s,@LICENSE@,$LICENSE,;t t
26454s,@SPL_CONFIG@,$SPL_CONFIG,;t t
bf9f3bac 26455s,@LINUX@,$LINUX,;t t
26456s,@LINUX_OBJ@,$LINUX_OBJ,;t t
c5f70460 26457s,@LINUX_VERSION@,$LINUX_VERSION,;t t
86933a6e 26458s,@LINUX_SYMBOLS@,$LINUX_SYMBOLS,;t t
bf9f3bac 26459s,@KERNELMAKE_PARAMS@,$KERNELMAKE_PARAMS,;t t
26460s,@KERNELCPPFLAGS@,$KERNELCPPFLAGS,;t t
86933a6e
BB
26461s,@CONFIG_USER_TRUE@,$CONFIG_USER_TRUE,;t t
26462s,@CONFIG_USER_FALSE@,$CONFIG_USER_FALSE,;t t
26463s,@CONFIG_KERNEL_TRUE@,$CONFIG_KERNEL_TRUE,;t t
26464s,@CONFIG_KERNEL_FALSE@,$CONFIG_KERNEL_FALSE,;t t
bf9f3bac 26465s,@LIBOBJS@,$LIBOBJS,;t t
26466s,@LTLIBOBJS@,$LTLIBOBJS,;t t
26467CEOF
26468
26469_ACEOF
26470
26471 cat >>$CONFIG_STATUS <<\_ACEOF
26472 # Split the substitutions into bite-sized pieces for seds with
26473 # small command number limits, like on Digital OSF/1 and HP-UX.
26474 ac_max_sed_lines=48
26475 ac_sed_frag=1 # Number of current file.
26476 ac_beg=1 # First line for current file.
26477 ac_end=$ac_max_sed_lines # Line after last line for current file.
26478 ac_more_lines=:
26479 ac_sed_cmds=
26480 while $ac_more_lines; do
26481 if test $ac_beg -gt 1; then
26482 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
26483 else
26484 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
26485 fi
26486 if test ! -s $tmp/subs.frag; then
26487 ac_more_lines=false
26488 else
26489 # The purpose of the label and of the branching condition is to
26490 # speed up the sed processing (if there are no `@' at all, there
26491 # is no need to browse any of the substitutions).
26492 # These are the two extra sed commands mentioned above.
26493 (echo ':t
26494 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
26495 if test -z "$ac_sed_cmds"; then
26496 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
26497 else
26498 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
26499 fi
26500 ac_sed_frag=`expr $ac_sed_frag + 1`
26501 ac_beg=$ac_end
26502 ac_end=`expr $ac_end + $ac_max_sed_lines`
26503 fi
26504 done
26505 if test -z "$ac_sed_cmds"; then
26506 ac_sed_cmds=cat
26507 fi
26508fi # test -n "$CONFIG_FILES"
26509
26510_ACEOF
26511cat >>$CONFIG_STATUS <<\_ACEOF
26512for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
26513 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
26514 case $ac_file in
26515 - | *:- | *:-:* ) # input from stdin
26516 cat >$tmp/stdin
26517 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26518 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26519 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26520 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26521 * ) ac_file_in=$ac_file.in ;;
26522 esac
26523
26524 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
26525 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
26526$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26527 X"$ac_file" : 'X\(//\)[^/]' \| \
26528 X"$ac_file" : 'X\(//\)$' \| \
26529 X"$ac_file" : 'X\(/\)' \| \
26530 . : '\(.\)' 2>/dev/null ||
26531echo X"$ac_file" |
26532 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26533 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26534 /^X\(\/\/\)$/{ s//\1/; q; }
26535 /^X\(\/\).*/{ s//\1/; q; }
26536 s/.*/./; q'`
26537 { if $as_mkdir_p; then
26538 mkdir -p "$ac_dir"
26539 else
26540 as_dir="$ac_dir"
26541 as_dirs=
26542 while test ! -d "$as_dir"; do
26543 as_dirs="$as_dir $as_dirs"
26544 as_dir=`(dirname "$as_dir") 2>/dev/null ||
26545$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26546 X"$as_dir" : 'X\(//\)[^/]' \| \
26547 X"$as_dir" : 'X\(//\)$' \| \
26548 X"$as_dir" : 'X\(/\)' \| \
26549 . : '\(.\)' 2>/dev/null ||
26550echo X"$as_dir" |
26551 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26552 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26553 /^X\(\/\/\)$/{ s//\1/; q; }
26554 /^X\(\/\).*/{ s//\1/; q; }
26555 s/.*/./; q'`
26556 done
26557 test ! -n "$as_dirs" || mkdir $as_dirs
26558 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26559echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
26560 { (exit 1); exit 1; }; }; }
26561
26562 ac_builddir=.
26563
26564if test "$ac_dir" != .; then
26565 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26566 # A "../" for each directory in $ac_dir_suffix.
26567 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
26568else
26569 ac_dir_suffix= ac_top_builddir=
26570fi
26571
26572case $srcdir in
26573 .) # No --srcdir option. We are building in place.
26574 ac_srcdir=.
26575 if test -z "$ac_top_builddir"; then
26576 ac_top_srcdir=.
26577 else
26578 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
26579 fi ;;
26580 [\\/]* | ?:[\\/]* ) # Absolute path.
26581 ac_srcdir=$srcdir$ac_dir_suffix;
26582 ac_top_srcdir=$srcdir ;;
26583 *) # Relative path.
26584 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
26585 ac_top_srcdir=$ac_top_builddir$srcdir ;;
26586esac
26587
26588# Do not use `cd foo && pwd` to compute absolute paths, because
26589# the directories may not exist.
26590case `pwd` in
26591.) ac_abs_builddir="$ac_dir";;
26592*)
26593 case "$ac_dir" in
26594 .) ac_abs_builddir=`pwd`;;
26595 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
26596 *) ac_abs_builddir=`pwd`/"$ac_dir";;
26597 esac;;
26598esac
26599case $ac_abs_builddir in
26600.) ac_abs_top_builddir=${ac_top_builddir}.;;
26601*)
26602 case ${ac_top_builddir}. in
26603 .) ac_abs_top_builddir=$ac_abs_builddir;;
26604 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
26605 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
26606 esac;;
26607esac
26608case $ac_abs_builddir in
26609.) ac_abs_srcdir=$ac_srcdir;;
26610*)
26611 case $ac_srcdir in
26612 .) ac_abs_srcdir=$ac_abs_builddir;;
26613 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
26614 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
26615 esac;;
26616esac
26617case $ac_abs_builddir in
26618.) ac_abs_top_srcdir=$ac_top_srcdir;;
26619*)
26620 case $ac_top_srcdir in
26621 .) ac_abs_top_srcdir=$ac_abs_builddir;;
26622 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
26623 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
26624 esac;;
26625esac
26626
26627
26628 case $INSTALL in
26629 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26630 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
26631 esac
26632
26633 if test x"$ac_file" != x-; then
26634 { echo "$as_me:$LINENO: creating $ac_file" >&5
26635echo "$as_me: creating $ac_file" >&6;}
26636 rm -f "$ac_file"
26637 fi
26638 # Let's still pretend it is `configure' which instantiates (i.e., don't
26639 # use $as_me), people would be surprised to read:
26640 # /* config.h. Generated by config.status. */
26641 if test x"$ac_file" = x-; then
26642 configure_input=
26643 else
26644 configure_input="$ac_file. "
26645 fi
26646 configure_input=$configure_input"Generated from `echo $ac_file_in |
26647 sed 's,.*/,,'` by configure."
26648
26649 # First look for the input files in the build tree, otherwise in the
26650 # src tree.
26651 ac_file_inputs=`IFS=:
26652 for f in $ac_file_in; do
26653 case $f in
26654 -) echo $tmp/stdin ;;
26655 [\\/$]*)
26656 # Absolute (can't be DOS-style, as IFS=:)
26657 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26658echo "$as_me: error: cannot find input file: $f" >&2;}
26659 { (exit 1); exit 1; }; }
26660 echo "$f";;
26661 *) # Relative
26662 if test -f "$f"; then
26663 # Build tree
26664 echo "$f"
26665 elif test -f "$srcdir/$f"; then
26666 # Source tree
26667 echo "$srcdir/$f"
26668 else
26669 # /dev/null tree
26670 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26671echo "$as_me: error: cannot find input file: $f" >&2;}
26672 { (exit 1); exit 1; }; }
26673 fi;;
26674 esac
26675 done` || { (exit 1); exit 1; }
26676_ACEOF
26677cat >>$CONFIG_STATUS <<_ACEOF
26678 sed "$ac_vpsub
26679$extrasub
26680_ACEOF
26681cat >>$CONFIG_STATUS <<\_ACEOF
26682:t
26683/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26684s,@configure_input@,$configure_input,;t t
26685s,@srcdir@,$ac_srcdir,;t t
26686s,@abs_srcdir@,$ac_abs_srcdir,;t t
26687s,@top_srcdir@,$ac_top_srcdir,;t t
26688s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
26689s,@builddir@,$ac_builddir,;t t
26690s,@abs_builddir@,$ac_abs_builddir,;t t
26691s,@top_builddir@,$ac_top_builddir,;t t
26692s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
26693s,@INSTALL@,$ac_INSTALL,;t t
26694" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
26695 rm -f $tmp/stdin
26696 if test x"$ac_file" != x-; then
26697 mv $tmp/out $ac_file
26698 else
26699 cat $tmp/out
26700 rm -f $tmp/out
26701 fi
26702
26703done
26704_ACEOF
26705cat >>$CONFIG_STATUS <<\_ACEOF
26706
26707#
26708# CONFIG_HEADER section.
26709#
26710
26711# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
26712# NAME is the cpp macro being defined and VALUE is the value it is being given.
26713#
26714# ac_d sets the value in "#define NAME VALUE" lines.
26715ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
26716ac_dB='[ ].*$,\1#\2'
26717ac_dC=' '
26718ac_dD=',;t'
26719# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
26720ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
26721ac_uB='$,\1#\2define\3'
26722ac_uC=' '
26723ac_uD=',;t'
26724
26725for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
26726 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
26727 case $ac_file in
26728 - | *:- | *:-:* ) # input from stdin
26729 cat >$tmp/stdin
26730 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26731 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26732 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26733 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26734 * ) ac_file_in=$ac_file.in ;;
26735 esac
26736
26737 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
26738echo "$as_me: creating $ac_file" >&6;}
26739
26740 # First look for the input files in the build tree, otherwise in the
26741 # src tree.
26742 ac_file_inputs=`IFS=:
26743 for f in $ac_file_in; do
26744 case $f in
26745 -) echo $tmp/stdin ;;
26746 [\\/$]*)
26747 # Absolute (can't be DOS-style, as IFS=:)
26748 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26749echo "$as_me: error: cannot find input file: $f" >&2;}
26750 { (exit 1); exit 1; }; }
26751 # Do quote $f, to prevent DOS paths from being IFS'd.
26752 echo "$f";;
26753 *) # Relative
26754 if test -f "$f"; then
26755 # Build tree
26756 echo "$f"
26757 elif test -f "$srcdir/$f"; then
26758 # Source tree
26759 echo "$srcdir/$f"
26760 else
26761 # /dev/null tree
26762 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26763echo "$as_me: error: cannot find input file: $f" >&2;}
26764 { (exit 1); exit 1; }; }
26765 fi;;
26766 esac
26767 done` || { (exit 1); exit 1; }
26768 # Remove the trailing spaces.
26769 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
26770
26771_ACEOF
26772
26773# Transform confdefs.h into two sed scripts, `conftest.defines' and
26774# `conftest.undefs', that substitutes the proper values into
26775# config.h.in to produce config.h. The first handles `#define'
26776# templates, and the second `#undef' templates.
26777# And first: Protect against being on the right side of a sed subst in
26778# config.status. Protect against being in an unquoted here document
26779# in config.status.
26780rm -f conftest.defines conftest.undefs
26781# Using a here document instead of a string reduces the quoting nightmare.
26782# Putting comments in sed scripts is not portable.
26783#
26784# `end' is used to avoid that the second main sed command (meant for
26785# 0-ary CPP macros) applies to n-ary macro definitions.
26786# See the Autoconf documentation for `clear'.
26787cat >confdef2sed.sed <<\_ACEOF
26788s/[\\&,]/\\&/g
26789s,[\\$`],\\&,g
26790t clear
26791: clear
26792s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
26793t end
26794s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
26795: end
26796_ACEOF
26797# If some macros were called several times there might be several times
26798# the same #defines, which is useless. Nevertheless, we may not want to
26799# sort them, since we want the *last* AC-DEFINE to be honored.
26800uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
26801sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
26802rm -f confdef2sed.sed
26803
26804# This sed command replaces #undef with comments. This is necessary, for
26805# example, in the case of _POSIX_SOURCE, which is predefined and required
26806# on some systems where configure will not decide to define it.
26807cat >>conftest.undefs <<\_ACEOF
26808s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
26809_ACEOF
26810
26811# Break up conftest.defines because some shells have a limit on the size
26812# of here documents, and old seds have small limits too (100 cmds).
26813echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
26814echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
26815echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
26816echo ' :' >>$CONFIG_STATUS
26817rm -f conftest.tail
26818while grep . conftest.defines >/dev/null
26819do
26820 # Write a limited-size here document to $tmp/defines.sed.
26821 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
26822 # Speed up: don't consider the non `#define' lines.
26823 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
26824 # Work around the forget-to-reset-the-flag bug.
26825 echo 't clr' >>$CONFIG_STATUS
26826 echo ': clr' >>$CONFIG_STATUS
26827 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
26828 echo 'CEOF
26829 sed -f $tmp/defines.sed $tmp/in >$tmp/out
26830 rm -f $tmp/in
26831 mv $tmp/out $tmp/in
26832' >>$CONFIG_STATUS
26833 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
26834 rm -f conftest.defines
26835 mv conftest.tail conftest.defines
26836done
26837rm -f conftest.defines
26838echo ' fi # grep' >>$CONFIG_STATUS
26839echo >>$CONFIG_STATUS
26840
26841# Break up conftest.undefs because some shells have a limit on the size
26842# of here documents, and old seds have small limits too (100 cmds).
26843echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
26844rm -f conftest.tail
26845while grep . conftest.undefs >/dev/null
26846do
26847 # Write a limited-size here document to $tmp/undefs.sed.
26848 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
26849 # Speed up: don't consider the non `#undef'
26850 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
26851 # Work around the forget-to-reset-the-flag bug.
26852 echo 't clr' >>$CONFIG_STATUS
26853 echo ': clr' >>$CONFIG_STATUS
26854 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
26855 echo 'CEOF
26856 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
26857 rm -f $tmp/in
26858 mv $tmp/out $tmp/in
26859' >>$CONFIG_STATUS
26860 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
26861 rm -f conftest.undefs
26862 mv conftest.tail conftest.undefs
26863done
26864rm -f conftest.undefs
26865
26866cat >>$CONFIG_STATUS <<\_ACEOF
26867 # Let's still pretend it is `configure' which instantiates (i.e., don't
26868 # use $as_me), people would be surprised to read:
26869 # /* config.h. Generated by config.status. */
26870 if test x"$ac_file" = x-; then
26871 echo "/* Generated by configure. */" >$tmp/config.h
26872 else
26873 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
26874 fi
26875 cat $tmp/in >>$tmp/config.h
26876 rm -f $tmp/in
26877 if test x"$ac_file" != x-; then
26878 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
26879 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
26880echo "$as_me: $ac_file is unchanged" >&6;}
26881 else
26882 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
26883$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26884 X"$ac_file" : 'X\(//\)[^/]' \| \
26885 X"$ac_file" : 'X\(//\)$' \| \
26886 X"$ac_file" : 'X\(/\)' \| \
26887 . : '\(.\)' 2>/dev/null ||
26888echo X"$ac_file" |
26889 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26890 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26891 /^X\(\/\/\)$/{ s//\1/; q; }
26892 /^X\(\/\).*/{ s//\1/; q; }
26893 s/.*/./; q'`
26894 { if $as_mkdir_p; then
26895 mkdir -p "$ac_dir"
26896 else
26897 as_dir="$ac_dir"
26898 as_dirs=
26899 while test ! -d "$as_dir"; do
26900 as_dirs="$as_dir $as_dirs"
26901 as_dir=`(dirname "$as_dir") 2>/dev/null ||
26902$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26903 X"$as_dir" : 'X\(//\)[^/]' \| \
26904 X"$as_dir" : 'X\(//\)$' \| \
26905 X"$as_dir" : 'X\(/\)' \| \
26906 . : '\(.\)' 2>/dev/null ||
26907echo X"$as_dir" |
26908 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26909 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26910 /^X\(\/\/\)$/{ s//\1/; q; }
26911 /^X\(\/\).*/{ s//\1/; q; }
26912 s/.*/./; q'`
26913 done
26914 test ! -n "$as_dirs" || mkdir $as_dirs
26915 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26916echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
26917 { (exit 1); exit 1; }; }; }
26918
26919 rm -f $ac_file
26920 mv $tmp/config.h $ac_file
26921 fi
26922 else
26923 cat $tmp/config.h
26924 rm -f $tmp/config.h
26925 fi
26926# Compute $ac_file's index in $config_headers.
26927_am_stamp_count=1
26928for _am_header in $config_headers :; do
26929 case $_am_header in
26930 $ac_file | $ac_file:* )
26931 break ;;
26932 * )
26933 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
26934 esac
26935done
26936echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
26937$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26938 X$ac_file : 'X\(//\)[^/]' \| \
26939 X$ac_file : 'X\(//\)$' \| \
26940 X$ac_file : 'X\(/\)' \| \
26941 . : '\(.\)' 2>/dev/null ||
26942echo X$ac_file |
26943 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26944 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26945 /^X\(\/\/\)$/{ s//\1/; q; }
26946 /^X\(\/\).*/{ s//\1/; q; }
26947 s/.*/./; q'`/stamp-h$_am_stamp_count
26948done
26949_ACEOF
26950cat >>$CONFIG_STATUS <<\_ACEOF
26951
26952#
26953# CONFIG_COMMANDS section.
26954#
26955for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
26956 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
26957 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
26958 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
26959$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26960 X"$ac_dest" : 'X\(//\)[^/]' \| \
26961 X"$ac_dest" : 'X\(//\)$' \| \
26962 X"$ac_dest" : 'X\(/\)' \| \
26963 . : '\(.\)' 2>/dev/null ||
26964echo X"$ac_dest" |
26965 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26966 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26967 /^X\(\/\/\)$/{ s//\1/; q; }
26968 /^X\(\/\).*/{ s//\1/; q; }
26969 s/.*/./; q'`
26970 { if $as_mkdir_p; then
26971 mkdir -p "$ac_dir"
26972 else
26973 as_dir="$ac_dir"
26974 as_dirs=
26975 while test ! -d "$as_dir"; do
26976 as_dirs="$as_dir $as_dirs"
26977 as_dir=`(dirname "$as_dir") 2>/dev/null ||
26978$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26979 X"$as_dir" : 'X\(//\)[^/]' \| \
26980 X"$as_dir" : 'X\(//\)$' \| \
26981 X"$as_dir" : 'X\(/\)' \| \
26982 . : '\(.\)' 2>/dev/null ||
26983echo X"$as_dir" |
26984 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26985 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26986 /^X\(\/\/\)$/{ s//\1/; q; }
26987 /^X\(\/\).*/{ s//\1/; q; }
26988 s/.*/./; q'`
26989 done
26990 test ! -n "$as_dirs" || mkdir $as_dirs
26991 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26992echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
26993 { (exit 1); exit 1; }; }; }
26994
26995 ac_builddir=.
26996
26997if test "$ac_dir" != .; then
26998 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26999 # A "../" for each directory in $ac_dir_suffix.
27000 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
27001else
27002 ac_dir_suffix= ac_top_builddir=
27003fi
27004
27005case $srcdir in
27006 .) # No --srcdir option. We are building in place.
27007 ac_srcdir=.
27008 if test -z "$ac_top_builddir"; then
27009 ac_top_srcdir=.
27010 else
27011 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
27012 fi ;;
27013 [\\/]* | ?:[\\/]* ) # Absolute path.
27014 ac_srcdir=$srcdir$ac_dir_suffix;
27015 ac_top_srcdir=$srcdir ;;
27016 *) # Relative path.
27017 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
27018 ac_top_srcdir=$ac_top_builddir$srcdir ;;
27019esac
27020
27021# Do not use `cd foo && pwd` to compute absolute paths, because
27022# the directories may not exist.
27023case `pwd` in
27024.) ac_abs_builddir="$ac_dir";;
27025*)
27026 case "$ac_dir" in
27027 .) ac_abs_builddir=`pwd`;;
27028 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
27029 *) ac_abs_builddir=`pwd`/"$ac_dir";;
27030 esac;;
27031esac
27032case $ac_abs_builddir in
27033.) ac_abs_top_builddir=${ac_top_builddir}.;;
27034*)
27035 case ${ac_top_builddir}. in
27036 .) ac_abs_top_builddir=$ac_abs_builddir;;
27037 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
27038 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
27039 esac;;
27040esac
27041case $ac_abs_builddir in
27042.) ac_abs_srcdir=$ac_srcdir;;
27043*)
27044 case $ac_srcdir in
27045 .) ac_abs_srcdir=$ac_abs_builddir;;
27046 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
27047 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
27048 esac;;
27049esac
27050case $ac_abs_builddir in
27051.) ac_abs_top_srcdir=$ac_top_srcdir;;
27052*)
27053 case $ac_top_srcdir in
27054 .) ac_abs_top_srcdir=$ac_abs_builddir;;
27055 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
27056 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
27057 esac;;
27058esac
27059
27060
27061 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
27062echo "$as_me: executing $ac_dest commands" >&6;}
27063 case $ac_dest in
27064 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
27065 # Strip MF so we end up with the name of the file.
27066 mf=`echo "$mf" | sed -e 's/:.*$//'`
27067 # Check whether this is an Automake generated Makefile or not.
27068 # We used to match only the files named `Makefile.in', but
27069 # some people rename them; so instead we look at the file content.
27070 # Grep'ing the first line is not enough: some people post-process
27071 # each Makefile.in and add a new line on top of each file to say so.
27072 # So let's grep whole file.
27073 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
27074 dirpart=`(dirname "$mf") 2>/dev/null ||
27075$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27076 X"$mf" : 'X\(//\)[^/]' \| \
27077 X"$mf" : 'X\(//\)$' \| \
27078 X"$mf" : 'X\(/\)' \| \
27079 . : '\(.\)' 2>/dev/null ||
27080echo X"$mf" |
27081 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27082 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27083 /^X\(\/\/\)$/{ s//\1/; q; }
27084 /^X\(\/\).*/{ s//\1/; q; }
27085 s/.*/./; q'`
27086 else
27087 continue
27088 fi
27089 # Extract the definition of DEPDIR, am__include, and am__quote
27090 # from the Makefile without running `make'.
27091 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
27092 test -z "$DEPDIR" && continue
27093 am__include=`sed -n 's/^am__include = //p' < "$mf"`
27094 test -z "am__include" && continue
27095 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
27096 # When using ansi2knr, U may be empty or an underscore; expand it
27097 U=`sed -n 's/^U = //p' < "$mf"`
27098 # Find all dependency output files, they are included files with
27099 # $(DEPDIR) in their names. We invoke sed twice because it is the
27100 # simplest approach to changing $(DEPDIR) to its actual value in the
27101 # expansion.
27102 for file in `sed -n "
27103 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
27104 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
27105 # Make sure the directory exists.
27106 test -f "$dirpart/$file" && continue
27107 fdir=`(dirname "$file") 2>/dev/null ||
27108$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27109 X"$file" : 'X\(//\)[^/]' \| \
27110 X"$file" : 'X\(//\)$' \| \
27111 X"$file" : 'X\(/\)' \| \
27112 . : '\(.\)' 2>/dev/null ||
27113echo X"$file" |
27114 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27115 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27116 /^X\(\/\/\)$/{ s//\1/; q; }
27117 /^X\(\/\).*/{ s//\1/; q; }
27118 s/.*/./; q'`
27119 { if $as_mkdir_p; then
27120 mkdir -p $dirpart/$fdir
27121 else
27122 as_dir=$dirpart/$fdir
27123 as_dirs=
27124 while test ! -d "$as_dir"; do
27125 as_dirs="$as_dir $as_dirs"
27126 as_dir=`(dirname "$as_dir") 2>/dev/null ||
27127$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27128 X"$as_dir" : 'X\(//\)[^/]' \| \
27129 X"$as_dir" : 'X\(//\)$' \| \
27130 X"$as_dir" : 'X\(/\)' \| \
27131 . : '\(.\)' 2>/dev/null ||
27132echo X"$as_dir" |
27133 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27134 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27135 /^X\(\/\/\)$/{ s//\1/; q; }
27136 /^X\(\/\).*/{ s//\1/; q; }
27137 s/.*/./; q'`
27138 done
27139 test ! -n "$as_dirs" || mkdir $as_dirs
27140 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
27141echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
27142 { (exit 1); exit 1; }; }; }
27143
27144 # echo "creating $dirpart/$file"
27145 echo '# dummy' > "$dirpart/$file"
27146 done
27147done
27148 ;;
27149 esac
27150done
27151_ACEOF
27152
27153cat >>$CONFIG_STATUS <<\_ACEOF
27154
27155{ (exit 0); exit 0; }
27156_ACEOF
27157chmod +x $CONFIG_STATUS
27158ac_clean_files=$ac_clean_files_save
27159
27160
27161# configure is writing to config.log, and then calls config.status.
27162# config.status does its own redirection, appending to config.log.
27163# Unfortunately, on DOS this fails, as config.log is still kept open
27164# by configure, so config.status won't be able to write to it; its
27165# output is simply discarded. So we exec the FD to /dev/null,
27166# effectively closing config.log, so it can be properly (re)opened and
27167# appended to by config.status. When coming back to configure, we
27168# need to make the FD available again.
27169if test "$no_create" != yes; then
27170 ac_cs_success=:
27171 ac_config_status_args=
27172 test "$silent" = yes &&
27173 ac_config_status_args="$ac_config_status_args --quiet"
27174 exec 5>/dev/null
27175 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27176 exec 5>>config.log
27177 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27178 # would make configure fail if this is the last instruction.
27179 $ac_cs_success || { (exit 1); exit 1; }
27180fi
27181