]> git.proxmox.com Git - mirror_spl-debian.git/blame - configure
Simplify rpm build rules, added config/rpm.am.
[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)
1037 --enable-debug Enable generic debug support (default off)
1038 --enable-debug-kmem Enable kmem debug support (default off)
1039 --enable-debug-mutex Enable mutex debug support (default off)
1040 --enable-debug-kstat Enable kstat debug support (default off)
1041 --enable-debug-callb Enable callb debug support (default off)
1042
1043Optional Packages:
1044 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1045 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1046 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1047 --with-pic try to use only PIC/non-PIC objects [default=use
1048 both]
1049 --with-tags[=TAGS]
1050 include additional configurations [automatic]
86933a6e 1051 --with-config=CONFIG Config file 'kernel|user|all'
bf9f3bac 1052 --with-linux=PATH Path to kernel source
1053 --with-linux-obj=PATH Path to kernel build objects
1054
1055Some influential environment variables:
1056 CC C compiler command
1057 CFLAGS C compiler flags
1058 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1059 nonstandard directory <lib dir>
1060 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1061 headers in a nonstandard directory <include dir>
1062 CPP C preprocessor
1063 CXX C++ compiler command
1064 CXXFLAGS C++ compiler flags
1065 CXXCPP C++ preprocessor
1066 F77 Fortran 77 compiler command
1067 FFLAGS Fortran 77 compiler flags
1068
1069Use these variables to override the choices made by `configure' or to help
1070it to find libraries and programs with nonstandard names/locations.
1071
1072_ACEOF
1073fi
1074
1075if test "$ac_init_help" = "recursive"; then
1076 # If there are subdirs, report their specific --help.
1077 ac_popdir=`pwd`
1078 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1079 test -d $ac_dir || continue
1080 ac_builddir=.
1081
1082if test "$ac_dir" != .; then
1083 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1084 # A "../" for each directory in $ac_dir_suffix.
1085 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1086else
1087 ac_dir_suffix= ac_top_builddir=
1088fi
1089
1090case $srcdir in
1091 .) # No --srcdir option. We are building in place.
1092 ac_srcdir=.
1093 if test -z "$ac_top_builddir"; then
1094 ac_top_srcdir=.
1095 else
1096 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1097 fi ;;
1098 [\\/]* | ?:[\\/]* ) # Absolute path.
1099 ac_srcdir=$srcdir$ac_dir_suffix;
1100 ac_top_srcdir=$srcdir ;;
1101 *) # Relative path.
1102 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1103 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1104esac
1105
1106# Do not use `cd foo && pwd` to compute absolute paths, because
1107# the directories may not exist.
1108case `pwd` in
1109.) ac_abs_builddir="$ac_dir";;
1110*)
1111 case "$ac_dir" in
1112 .) ac_abs_builddir=`pwd`;;
1113 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1114 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1115 esac;;
1116esac
1117case $ac_abs_builddir in
1118.) ac_abs_top_builddir=${ac_top_builddir}.;;
1119*)
1120 case ${ac_top_builddir}. in
1121 .) ac_abs_top_builddir=$ac_abs_builddir;;
1122 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1123 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1124 esac;;
1125esac
1126case $ac_abs_builddir in
1127.) ac_abs_srcdir=$ac_srcdir;;
1128*)
1129 case $ac_srcdir in
1130 .) ac_abs_srcdir=$ac_abs_builddir;;
1131 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1132 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1133 esac;;
1134esac
1135case $ac_abs_builddir in
1136.) ac_abs_top_srcdir=$ac_top_srcdir;;
1137*)
1138 case $ac_top_srcdir in
1139 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1140 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1141 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1142 esac;;
1143esac
1144
1145 cd $ac_dir
1146 # Check for guested configure; otherwise get Cygnus style configure.
1147 if test -f $ac_srcdir/configure.gnu; then
1148 echo
1149 $SHELL $ac_srcdir/configure.gnu --help=recursive
1150 elif test -f $ac_srcdir/configure; then
1151 echo
1152 $SHELL $ac_srcdir/configure --help=recursive
1153 elif test -f $ac_srcdir/configure.ac ||
1154 test -f $ac_srcdir/configure.in; then
1155 echo
1156 $ac_configure --help
1157 else
1158 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1159 fi
1160 cd $ac_popdir
1161 done
1162fi
1163
1164test -n "$ac_init_help" && exit 0
1165if $ac_init_version; then
1166 cat <<\_ACEOF
1167
1168Copyright (C) 2003 Free Software Foundation, Inc.
1169This configure script is free software; the Free Software Foundation
1170gives unlimited permission to copy, distribute and modify it.
1171_ACEOF
1172 exit 0
1173fi
1174exec 5>config.log
1175cat >&5 <<_ACEOF
1176This file contains any messages produced by compilers while
1177running configure, to aid debugging if configure makes a mistake.
1178
1179It was created by $as_me, which was
1180generated by GNU Autoconf 2.59. Invocation command line was
1181
1182 $ $0 $@
1183
1184_ACEOF
1185{
1186cat <<_ASUNAME
1187## --------- ##
1188## Platform. ##
1189## --------- ##
1190
1191hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1192uname -m = `(uname -m) 2>/dev/null || echo unknown`
1193uname -r = `(uname -r) 2>/dev/null || echo unknown`
1194uname -s = `(uname -s) 2>/dev/null || echo unknown`
1195uname -v = `(uname -v) 2>/dev/null || echo unknown`
1196
1197/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1198/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1199
1200/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1201/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1202/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1203hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1204/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1205/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1206/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1207
1208_ASUNAME
1209
1210as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1211for as_dir in $PATH
1212do
1213 IFS=$as_save_IFS
1214 test -z "$as_dir" && as_dir=.
1215 echo "PATH: $as_dir"
1216done
1217
1218} >&5
1219
1220cat >&5 <<_ACEOF
1221
1222
1223## ----------- ##
1224## Core tests. ##
1225## ----------- ##
1226
1227_ACEOF
1228
1229
1230# Keep a trace of the command line.
1231# Strip out --no-create and --no-recursion so they do not pile up.
1232# Strip out --silent because we don't want to record it for future runs.
1233# Also quote any args containing shell meta-characters.
1234# Make two passes to allow for proper duplicate-argument suppression.
1235ac_configure_args=
1236ac_configure_args0=
1237ac_configure_args1=
1238ac_sep=
1239ac_must_keep_next=false
1240for ac_pass in 1 2
1241do
1242 for ac_arg
1243 do
1244 case $ac_arg in
1245 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1246 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1247 | -silent | --silent | --silen | --sile | --sil)
1248 continue ;;
1249 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1250 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1251 esac
1252 case $ac_pass in
1253 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1254 2)
1255 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1256 if test $ac_must_keep_next = true; then
1257 ac_must_keep_next=false # Got value, back to normal.
1258 else
1259 case $ac_arg in
1260 *=* | --config-cache | -C | -disable-* | --disable-* \
1261 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1262 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1263 | -with-* | --with-* | -without-* | --without-* | --x)
1264 case "$ac_configure_args0 " in
1265 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1266 esac
1267 ;;
1268 -* ) ac_must_keep_next=true ;;
1269 esac
1270 fi
1271 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1272 # Get rid of the leading space.
1273 ac_sep=" "
1274 ;;
1275 esac
1276 done
1277done
1278$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1279$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1280
1281# When interrupted or exit'd, cleanup temporary files, and complete
1282# config.log. We remove comments because anyway the quotes in there
1283# would cause problems or look ugly.
1284# WARNING: Be sure not to use single quotes in there, as some shells,
1285# such as our DU 5.0 friend, will then `close' the trap.
1286trap 'exit_status=$?
1287 # Save into config.log some information that might help in debugging.
1288 {
1289 echo
1290
1291 cat <<\_ASBOX
1292## ---------------- ##
1293## Cache variables. ##
1294## ---------------- ##
1295_ASBOX
1296 echo
1297 # The following way of writing the cache mishandles newlines in values,
1298{
1299 (set) 2>&1 |
1300 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1301 *ac_space=\ *)
1302 sed -n \
1303 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1304 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1305 ;;
1306 *)
1307 sed -n \
1308 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1309 ;;
1310 esac;
1311}
1312 echo
1313
1314 cat <<\_ASBOX
1315## ----------------- ##
1316## Output variables. ##
1317## ----------------- ##
1318_ASBOX
1319 echo
1320 for ac_var in $ac_subst_vars
1321 do
1322 eval ac_val=$`echo $ac_var`
1323 echo "$ac_var='"'"'$ac_val'"'"'"
1324 done | sort
1325 echo
1326
1327 if test -n "$ac_subst_files"; then
1328 cat <<\_ASBOX
1329## ------------- ##
1330## Output files. ##
1331## ------------- ##
1332_ASBOX
1333 echo
1334 for ac_var in $ac_subst_files
1335 do
1336 eval ac_val=$`echo $ac_var`
1337 echo "$ac_var='"'"'$ac_val'"'"'"
1338 done | sort
1339 echo
1340 fi
1341
1342 if test -s confdefs.h; then
1343 cat <<\_ASBOX
1344## ----------- ##
1345## confdefs.h. ##
1346## ----------- ##
1347_ASBOX
1348 echo
1349 sed "/^$/d" confdefs.h | sort
1350 echo
1351 fi
1352 test "$ac_signal" != 0 &&
1353 echo "$as_me: caught signal $ac_signal"
1354 echo "$as_me: exit $exit_status"
1355 } >&5
1356 rm -f core *.core &&
1357 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1358 exit $exit_status
1359 ' 0
1360for ac_signal in 1 2 13 15; do
1361 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1362done
1363ac_signal=0
1364
1365# confdefs.h avoids OS command line length limits that DEFS can exceed.
1366rm -rf conftest* confdefs.h
1367# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1368echo >confdefs.h
1369
1370# Predefined preprocessor variables.
1371
1372cat >>confdefs.h <<_ACEOF
1373#define PACKAGE_NAME "$PACKAGE_NAME"
1374_ACEOF
1375
1376
1377cat >>confdefs.h <<_ACEOF
1378#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1379_ACEOF
1380
1381
1382cat >>confdefs.h <<_ACEOF
1383#define PACKAGE_VERSION "$PACKAGE_VERSION"
1384_ACEOF
1385
1386
1387cat >>confdefs.h <<_ACEOF
1388#define PACKAGE_STRING "$PACKAGE_STRING"
1389_ACEOF
1390
1391
1392cat >>confdefs.h <<_ACEOF
1393#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1394_ACEOF
1395
1396
1397# Let the site file select an alternate cache file if it wants to.
1398# Prefer explicitly selected file to automatically selected ones.
1399if test -z "$CONFIG_SITE"; then
1400 if test "x$prefix" != xNONE; then
1401 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1402 else
1403 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1404 fi
1405fi
1406for ac_site_file in $CONFIG_SITE; do
1407 if test -r "$ac_site_file"; then
1408 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1409echo "$as_me: loading site script $ac_site_file" >&6;}
1410 sed 's/^/| /' "$ac_site_file" >&5
1411 . "$ac_site_file"
1412 fi
1413done
1414
1415if test -r "$cache_file"; then
1416 # Some versions of bash will fail to source /dev/null (special
1417 # files actually), so we avoid doing that.
1418 if test -f "$cache_file"; then
1419 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1420echo "$as_me: loading cache $cache_file" >&6;}
1421 case $cache_file in
1422 [\\/]* | ?:[\\/]* ) . $cache_file;;
1423 *) . ./$cache_file;;
1424 esac
1425 fi
1426else
1427 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1428echo "$as_me: creating cache $cache_file" >&6;}
1429 >$cache_file
1430fi
1431
1432# Check that the precious variables saved in the cache have kept the same
1433# value.
1434ac_cache_corrupted=false
1435for ac_var in `(set) 2>&1 |
1436 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1437 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1438 eval ac_new_set=\$ac_env_${ac_var}_set
1439 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1440 eval ac_new_val="\$ac_env_${ac_var}_value"
1441 case $ac_old_set,$ac_new_set in
1442 set,)
1443 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1444echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1445 ac_cache_corrupted=: ;;
1446 ,set)
1447 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1448echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1449 ac_cache_corrupted=: ;;
1450 ,);;
1451 *)
1452 if test "x$ac_old_val" != "x$ac_new_val"; then
1453 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1454echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1455 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1456echo "$as_me: former value: $ac_old_val" >&2;}
1457 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1458echo "$as_me: current value: $ac_new_val" >&2;}
1459 ac_cache_corrupted=:
1460 fi;;
1461 esac
1462 # Pass precious variables to config.status.
1463 if test "$ac_new_set" = set; then
1464 case $ac_new_val in
1465 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1466 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1467 *) ac_arg=$ac_var=$ac_new_val ;;
1468 esac
1469 case " $ac_configure_args " in
1470 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1471 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1472 esac
1473 fi
1474done
1475if $ac_cache_corrupted; then
1476 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1477echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1478 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1479echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1480 { (exit 1); exit 1; }; }
1481fi
1482
1483ac_ext=c
1484ac_cpp='$CPP $CPPFLAGS'
1485ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1486ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1487ac_compiler_gnu=$ac_cv_c_compiler_gnu
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
0c617c9a
BB
1507ac_ext=c
1508ac_cpp='$CPP $CPPFLAGS'
1509ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1510ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1511ac_compiler_gnu=$ac_cv_c_compiler_gnu
1512
1513
dd529a30 1514 echo "$as_me:$LINENO: checking metadata" >&5
1515echo $ECHO_N "checking metadata... $ECHO_C" >&6
1516
1517 META="$srcdir/META"
1518 _spl_ac_meta_got_file=no
1519 if test -f "$META"; then
1520 _spl_ac_meta_got_file=yes
1521
abc3ca14 1522 SPL_META_NAME=`perl -n\
dd529a30 1523 -e "BEGIN { \\$key=shift @ARGV; }"\
1524 -e "next unless s/^\s*\\$key[:=]//i;"\
1525 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
1526 -e "s/^\s+//;"\
1527 -e "s/\s+$//;"\
1528 -e "s/^(['\"])(.*)\1/\\$2/;"\
1529 -e "\\$val=\\$_;"\
1530 -e "END { print \\$val if defined \\$val; }"\
1531 '(?:NAME|PROJECT|PACKAGE)' $META`;
abc3ca14 1532 if test -n "$SPL_META_NAME"; then
dd529a30 1533
1534cat >>confdefs.h <<_ACEOF
abc3ca14 1535#define SPL_META_NAME "$SPL_META_NAME"
dd529a30 1536_ACEOF
1537
1538
1539 fi
1540
abc3ca14 1541 SPL_META_VERSION=`perl -n\
dd529a30 1542 -e "BEGIN { \\$key=shift @ARGV; }"\
1543 -e "next unless s/^\s*\\$key[:=]//i;"\
1544 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
1545 -e "s/^\s+//;"\
1546 -e "s/\s+$//;"\
1547 -e "s/^(['\"])(.*)\1/\\$2/;"\
1548 -e "\\$val=\\$_;"\
1549 -e "END { print \\$val if defined \\$val; }"\
1550 'VERSION' $META`;
abc3ca14 1551 if test -n "$SPL_META_VERSION"; then
dd529a30 1552
1553cat >>confdefs.h <<_ACEOF
abc3ca14 1554#define SPL_META_VERSION "$SPL_META_VERSION"
dd529a30 1555_ACEOF
1556
1557
1558 fi
1559
abc3ca14 1560 SPL_META_RELEASE=`perl -n\
dd529a30 1561 -e "BEGIN { \\$key=shift @ARGV; }"\
1562 -e "next unless s/^\s*\\$key[:=]//i;"\
1563 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
1564 -e "s/^\s+//;"\
1565 -e "s/\s+$//;"\
1566 -e "s/^(['\"])(.*)\1/\\$2/;"\
1567 -e "\\$val=\\$_;"\
1568 -e "END { print \\$val if defined \\$val; }"\
1569 'RELEASE' $META`;
abc3ca14 1570 if test -n "$SPL_META_RELEASE"; then
dd529a30 1571
1572cat >>confdefs.h <<_ACEOF
abc3ca14 1573#define SPL_META_RELEASE "$SPL_META_RELEASE"
dd529a30 1574_ACEOF
1575
1576
1577 fi
1578
abc3ca14 1579 if test -n "$SPL_META_NAME" -a -n "$SPL_META_VERSION"; then
72e7de60 1580 SPL_META_ALIAS="$SPL_META_NAME-$SPL_META_VERSION"
abc3ca14 1581 test -n "$SPL_META_RELEASE" &&
72e7de60 1582 SPL_META_ALIAS="$SPL_META_ALIAS-$SPL_META_RELEASE"
dd529a30 1583
1584cat >>confdefs.h <<_ACEOF
72e7de60 1585#define SPL_META_ALIAS "$SPL_META_ALIAS"
dd529a30 1586_ACEOF
1587
1588
1589 fi
1590
abc3ca14 1591 SPL_META_DATA=`perl -n\
dd529a30 1592 -e "BEGIN { \\$key=shift @ARGV; }"\
1593 -e "next unless s/^\s*\\$key[:=]//i;"\
1594 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
1595 -e "s/^\s+//;"\
1596 -e "s/\s+$//;"\
1597 -e "s/^(['\"])(.*)\1/\\$2/;"\
1598 -e "\\$val=\\$_;"\
1599 -e "END { print \\$val if defined \\$val; }"\
1600 'DATE' $META`;
abc3ca14 1601 if test -n "$SPL_META_DATA"; then
dd529a30 1602
1603cat >>confdefs.h <<_ACEOF
abc3ca14 1604#define SPL_META_DATA "$SPL_META_DATA"
dd529a30 1605_ACEOF
1606
1607
1608 fi
1609
abc3ca14 1610 SPL_META_AUTHOR=`perl -n\
dd529a30 1611 -e "BEGIN { \\$key=shift @ARGV; }"\
1612 -e "next unless s/^\s*\\$key[:=]//i;"\
1613 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
1614 -e "s/^\s+//;"\
1615 -e "s/\s+$//;"\
1616 -e "s/^(['\"])(.*)\1/\\$2/;"\
1617 -e "\\$val=\\$_;"\
1618 -e "END { print \\$val if defined \\$val; }"\
1619 'AUTHOR' $META`;
abc3ca14 1620 if test -n "$SPL_META_AUTHOR"; then
dd529a30 1621
1622cat >>confdefs.h <<_ACEOF
abc3ca14 1623#define SPL_META_AUTHOR "$SPL_META_AUTHOR"
dd529a30 1624_ACEOF
1625
1626
1627 fi
1628
1629
abc3ca14 1630 SPL_META_LT_CURRENT=`perl -n\
dd529a30 1631 -e "BEGIN { \\$key=shift @ARGV; }"\
1632 -e "next unless s/^\s*\\$key[:=]//i;"\
1633 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
1634 -e "s/^\s+//;"\
1635 -e "s/\s+$//;"\
1636 -e "s/^(['\"])(.*)\1/\\$2/;"\
1637 -e "\\$val=\\$_;"\
1638 -e "END { print \\$val if defined \\$val; }"\
1639 'LT_CURRENT' $META`;
abc3ca14 1640 SPL_META_LT_REVISION=`perl -n\
dd529a30 1641 -e "BEGIN { \\$key=shift @ARGV; }"\
1642 -e "next unless s/^\s*\\$key[:=]//i;"\
1643 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
1644 -e "s/^\s+//;"\
1645 -e "s/\s+$//;"\
1646 -e "s/^(['\"])(.*)\1/\\$2/;"\
1647 -e "\\$val=\\$_;"\
1648 -e "END { print \\$val if defined \\$val; }"\
1649 'LT_REVISION' $META`;
abc3ca14 1650 SPL_META_LT_AGE=`perl -n\
dd529a30 1651 -e "BEGIN { \\$key=shift @ARGV; }"\
1652 -e "next unless s/^\s*\\$key[:=]//i;"\
1653 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
1654 -e "s/^\s+//;"\
1655 -e "s/\s+$//;"\
1656 -e "s/^(['\"])(.*)\1/\\$2/;"\
1657 -e "\\$val=\\$_;"\
1658 -e "END { print \\$val if defined \\$val; }"\
1659 'LT_AGE' $META`;
abc3ca14
BB
1660 if test -n "$SPL_META_LT_CURRENT" \
1661 -o -n "$SPL_META_LT_REVISION" \
1662 -o -n "$SPL_META_LT_AGE"; then
1663 test -n "$SPL_META_LT_CURRENT" || SPL_META_LT_CURRENT="0"
1664 test -n "$SPL_META_LT_REVISION" || SPL_META_LT_REVISION="0"
1665 test -n "$SPL_META_LT_AGE" || SPL_META_LT_AGE="0"
dd529a30 1666
1667cat >>confdefs.h <<_ACEOF
abc3ca14 1668#define SPL_META_LT_CURRENT "$SPL_META_LT_CURRENT"
dd529a30 1669_ACEOF
1670
1671
1672cat >>confdefs.h <<_ACEOF
abc3ca14 1673#define SPL_META_LT_REVISION "$SPL_META_LT_REVISION"
dd529a30 1674_ACEOF
1675
1676
1677cat >>confdefs.h <<_ACEOF
abc3ca14 1678#define SPL_META_LT_AGE "$SPL_META_LT_AGE"
dd529a30 1679_ACEOF
1680
1681
1682
1683
1684 fi
1685 fi
1686
1687 echo "$as_me:$LINENO: result: $_spl_ac_meta_got_file" >&5
1688echo "${ECHO_T}$_spl_ac_meta_got_file" >&6
1689
1690
bf9f3bac 1691ac_aux_dir=
1692for ac_dir in config $srcdir/config; do
1693 if test -f $ac_dir/install-sh; then
1694 ac_aux_dir=$ac_dir
1695 ac_install_sh="$ac_aux_dir/install-sh -c"
1696 break
1697 elif test -f $ac_dir/install.sh; then
1698 ac_aux_dir=$ac_dir
1699 ac_install_sh="$ac_aux_dir/install.sh -c"
1700 break
1701 elif test -f $ac_dir/shtool; then
1702 ac_aux_dir=$ac_dir
1703 ac_install_sh="$ac_aux_dir/shtool install -c"
1704 break
1705 fi
1706done
1707if test -z "$ac_aux_dir"; then
1708 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1709echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1710 { (exit 1); exit 1; }; }
1711fi
1712ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1713ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1714ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1715
1716# Make sure we can run config.sub.
1717$ac_config_sub sun4 >/dev/null 2>&1 ||
1718 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1719echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1720 { (exit 1); exit 1; }; }
1721
1722echo "$as_me:$LINENO: checking build system type" >&5
1723echo $ECHO_N "checking build system type... $ECHO_C" >&6
1724if test "${ac_cv_build+set}" = set; then
1725 echo $ECHO_N "(cached) $ECHO_C" >&6
1726else
1727 ac_cv_build_alias=$build_alias
1728test -z "$ac_cv_build_alias" &&
1729 ac_cv_build_alias=`$ac_config_guess`
1730test -z "$ac_cv_build_alias" &&
1731 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1732echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1733 { (exit 1); exit 1; }; }
1734ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1735 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1736echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1737 { (exit 1); exit 1; }; }
1738
1739fi
1740echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1741echo "${ECHO_T}$ac_cv_build" >&6
1742build=$ac_cv_build
1743build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1744build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1745build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1746
1747
1748echo "$as_me:$LINENO: checking host system type" >&5
1749echo $ECHO_N "checking host system type... $ECHO_C" >&6
1750if test "${ac_cv_host+set}" = set; then
1751 echo $ECHO_N "(cached) $ECHO_C" >&6
1752else
1753 ac_cv_host_alias=$host_alias
1754test -z "$ac_cv_host_alias" &&
1755 ac_cv_host_alias=$ac_cv_build_alias
1756ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1757 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1758echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1759 { (exit 1); exit 1; }; }
1760
1761fi
1762echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1763echo "${ECHO_T}$ac_cv_host" >&6
1764host=$ac_cv_host
1765host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1766host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1767host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1768
1769
1770echo "$as_me:$LINENO: checking target system type" >&5
1771echo $ECHO_N "checking target system type... $ECHO_C" >&6
1772if test "${ac_cv_target+set}" = set; then
1773 echo $ECHO_N "(cached) $ECHO_C" >&6
1774else
1775 ac_cv_target_alias=$target_alias
1776test "x$ac_cv_target_alias" = "x" &&
1777 ac_cv_target_alias=$ac_cv_host_alias
1778ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1779 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1780echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1781 { (exit 1); exit 1; }; }
1782
1783fi
1784echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1785echo "${ECHO_T}$ac_cv_target" >&6
1786target=$ac_cv_target
1787target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1788target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1789target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1790
1791
1792# The aliases save the names the user supplied, while $host etc.
1793# will get canonicalized.
1794test -n "$target_alias" &&
1795 test "$program_prefix$program_suffix$program_transform_name" = \
1796 NONENONEs,x,x, &&
1797 program_prefix=${target_alias}-
1798am__api_version="1.9"
1799# Find a good install program. We prefer a C program (faster),
1800# so one script is as good as another. But avoid the broken or
1801# incompatible versions:
1802# SysV /etc/install, /usr/sbin/install
1803# SunOS /usr/etc/install
1804# IRIX /sbin/install
1805# AIX /bin/install
1806# AmigaOS /C/install, which installs bootblocks on floppy discs
1807# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1808# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1809# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1810# OS/2's system install, which has a completely different semantic
1811# ./install, which can be erroneously created by make from ./install.sh.
1812echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1813echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1814if test -z "$INSTALL"; then
1815if test "${ac_cv_path_install+set}" = set; then
1816 echo $ECHO_N "(cached) $ECHO_C" >&6
1817else
1818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1819for as_dir in $PATH
1820do
1821 IFS=$as_save_IFS
1822 test -z "$as_dir" && as_dir=.
1823 # Account for people who put trailing slashes in PATH elements.
1824case $as_dir/ in
1825 ./ | .// | /cC/* | \
1826 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1827 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1828 /usr/ucb/* ) ;;
1829 *)
1830 # OSF1 and SCO ODT 3.0 have their own names for install.
1831 # Don't use installbsd from OSF since it installs stuff as root
1832 # by default.
1833 for ac_prog in ginstall scoinst install; do
1834 for ac_exec_ext in '' $ac_executable_extensions; do
1835 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1836 if test $ac_prog = install &&
1837 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1838 # AIX install. It has an incompatible calling convention.
1839 :
1840 elif test $ac_prog = install &&
1841 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1842 # program-specific install script used by HP pwplus--don't use.
1843 :
1844 else
1845 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1846 break 3
1847 fi
1848 fi
1849 done
1850 done
1851 ;;
1852esac
1853done
1854
1855
1856fi
1857 if test "${ac_cv_path_install+set}" = set; then
1858 INSTALL=$ac_cv_path_install
1859 else
1860 # As a last resort, use the slow shell script. We don't cache a
1861 # path for INSTALL within a source directory, because that will
1862 # break other packages using the cache if that directory is
1863 # removed, or if the path is relative.
1864 INSTALL=$ac_install_sh
1865 fi
1866fi
1867echo "$as_me:$LINENO: result: $INSTALL" >&5
1868echo "${ECHO_T}$INSTALL" >&6
1869
1870# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1871# It thinks the first close brace ends the variable substitution.
1872test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1873
1874test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1875
1876test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1877
1878echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1879echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1880# Just in case
1881sleep 1
1882echo timestamp > conftest.file
1883# Do `set' in a subshell so we don't clobber the current shell's
1884# arguments. Must try -L first in case configure is actually a
1885# symlink; some systems play weird games with the mod time of symlinks
1886# (eg FreeBSD returns the mod time of the symlink's containing
1887# directory).
1888if (
1889 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1890 if test "$*" = "X"; then
1891 # -L didn't work.
1892 set X `ls -t $srcdir/configure conftest.file`
1893 fi
1894 rm -f conftest.file
1895 if test "$*" != "X $srcdir/configure conftest.file" \
1896 && test "$*" != "X conftest.file $srcdir/configure"; then
1897
1898 # If neither matched, then we have a broken ls. This can happen
1899 # if, for instance, CONFIG_SHELL is bash and it inherits a
1900 # broken ls alias from the environment. This has actually
1901 # happened. Such a system could not be considered "sane".
1902 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1903alias in your environment" >&5
1904echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1905alias in your environment" >&2;}
1906 { (exit 1); exit 1; }; }
1907 fi
1908
1909 test "$2" = conftest.file
1910 )
1911then
1912 # Ok.
1913 :
1914else
1915 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1916Check your system clock" >&5
1917echo "$as_me: error: newly created file is older than distributed files!
1918Check your system clock" >&2;}
1919 { (exit 1); exit 1; }; }
1920fi
1921echo "$as_me:$LINENO: result: yes" >&5
1922echo "${ECHO_T}yes" >&6
1923test "$program_prefix" != NONE &&
1924 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1925# Use a double $ so make ignores it.
1926test "$program_suffix" != NONE &&
1927 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1928# Double any \ or $. echo might interpret backslashes.
1929# By default was `s,x,x', remove it if useless.
1930cat <<\_ACEOF >conftest.sed
1931s/[\\$]/&&/g;s/;s,x,x,$//
1932_ACEOF
1933program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1934rm conftest.sed
1935
1936# expand $ac_aux_dir to an absolute path
1937am_aux_dir=`cd $ac_aux_dir && pwd`
1938
1939test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1940# Use eval to expand $SHELL
1941if eval "$MISSING --run true"; then
1942 am_missing_run="$MISSING --run "
1943else
1944 am_missing_run=
1945 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1946echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1947fi
1948
1949if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1950 # We used to keeping the `.' as first argument, in order to
1951 # allow $(mkdir_p) to be used without argument. As in
1952 # $(mkdir_p) $(somedir)
1953 # where $(somedir) is conditionally defined. However this is wrong
1954 # for two reasons:
1955 # 1. if the package is installed by a user who cannot write `.'
1956 # make install will fail,
1957 # 2. the above comment should most certainly read
1958 # $(mkdir_p) $(DESTDIR)$(somedir)
1959 # so it does not work when $(somedir) is undefined and
1960 # $(DESTDIR) is not.
1961 # To support the latter case, we have to write
1962 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1963 # so the `.' trick is pointless.
1964 mkdir_p='mkdir -p --'
1965else
1966 # On NextStep and OpenStep, the `mkdir' command does not
1967 # recognize any option. It will interpret all options as
1968 # directories to create, and then abort because `.' already
1969 # exists.
1970 for d in ./-p ./--version;
1971 do
1972 test -d $d && rmdir $d
1973 done
1974 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1975 if test -f "$ac_aux_dir/mkinstalldirs"; then
1976 mkdir_p='$(mkinstalldirs)'
1977 else
1978 mkdir_p='$(install_sh) -d'
1979 fi
1980fi
1981
1982for ac_prog in gawk mawk nawk awk
1983do
1984 # Extract the first word of "$ac_prog", so it can be a program name with args.
1985set dummy $ac_prog; ac_word=$2
1986echo "$as_me:$LINENO: checking for $ac_word" >&5
1987echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1988if test "${ac_cv_prog_AWK+set}" = set; then
1989 echo $ECHO_N "(cached) $ECHO_C" >&6
1990else
1991 if test -n "$AWK"; then
1992 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1993else
1994as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1995for as_dir in $PATH
1996do
1997 IFS=$as_save_IFS
1998 test -z "$as_dir" && as_dir=.
1999 for ac_exec_ext in '' $ac_executable_extensions; do
2000 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2001 ac_cv_prog_AWK="$ac_prog"
2002 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2003 break 2
2004 fi
2005done
2006done
2007
2008fi
2009fi
2010AWK=$ac_cv_prog_AWK
2011if test -n "$AWK"; then
2012 echo "$as_me:$LINENO: result: $AWK" >&5
2013echo "${ECHO_T}$AWK" >&6
2014else
2015 echo "$as_me:$LINENO: result: no" >&5
2016echo "${ECHO_T}no" >&6
2017fi
2018
2019 test -n "$AWK" && break
2020done
2021
2022echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2023echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2024set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2025if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2026 echo $ECHO_N "(cached) $ECHO_C" >&6
2027else
2028 cat >conftest.make <<\_ACEOF
2029all:
2030 @echo 'ac_maketemp="$(MAKE)"'
2031_ACEOF
2032# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2033eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2034if test -n "$ac_maketemp"; then
2035 eval ac_cv_prog_make_${ac_make}_set=yes
2036else
2037 eval ac_cv_prog_make_${ac_make}_set=no
2038fi
2039rm -f conftest.make
2040fi
2041if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2042 echo "$as_me:$LINENO: result: yes" >&5
2043echo "${ECHO_T}yes" >&6
2044 SET_MAKE=
2045else
2046 echo "$as_me:$LINENO: result: no" >&5
2047echo "${ECHO_T}no" >&6
2048 SET_MAKE="MAKE=${MAKE-make}"
2049fi
2050
2051rm -rf .tst 2>/dev/null
2052mkdir .tst 2>/dev/null
2053if test -d .tst; then
2054 am__leading_dot=.
2055else
2056 am__leading_dot=_
2057fi
2058rmdir .tst 2>/dev/null
2059
2060# test to see if srcdir already configured
2061if test "`cd $srcdir && pwd`" != "`pwd`" &&
2062 test -f $srcdir/config.status; then
2063 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2064echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2065 { (exit 1); exit 1; }; }
2066fi
2067
2068# test whether we have cygpath
2069if test -z "$CYGPATH_W"; then
2070 if (cygpath --version) >/dev/null 2>/dev/null; then
2071 CYGPATH_W='cygpath -w'
2072 else
2073 CYGPATH_W=echo
2074 fi
2075fi
2076
2077
2078# Define the identity of the package.
abc3ca14
BB
2079 PACKAGE=$SPL_META_NAME
2080 VERSION=$SPL_META_VERSION
bf9f3bac 2081
2082
2083cat >>confdefs.h <<_ACEOF
2084#define PACKAGE "$PACKAGE"
2085_ACEOF
2086
2087
2088cat >>confdefs.h <<_ACEOF
2089#define VERSION "$VERSION"
2090_ACEOF
2091
2092# Some tools Automake needs.
2093
2094ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2095
2096
2097AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2098
2099
2100AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2101
2102
2103AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2104
2105
2106MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2107
2108install_sh=${install_sh-"$am_aux_dir/install-sh"}
2109
2110# Installed binaries are usually stripped using `strip' when the user
2111# run `make install-strip'. However `strip' might not be the right
2112# tool to use in cross-compilation environments, therefore Automake
2113# will honor the `STRIP' environment variable to overrule this program.
2114if test "$cross_compiling" != no; then
2115 if test -n "$ac_tool_prefix"; then
2116 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2117set dummy ${ac_tool_prefix}strip; ac_word=$2
2118echo "$as_me:$LINENO: checking for $ac_word" >&5
2119echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2120if test "${ac_cv_prog_STRIP+set}" = set; then
2121 echo $ECHO_N "(cached) $ECHO_C" >&6
2122else
2123 if test -n "$STRIP"; then
2124 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2125else
2126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2127for as_dir in $PATH
2128do
2129 IFS=$as_save_IFS
2130 test -z "$as_dir" && as_dir=.
2131 for ac_exec_ext in '' $ac_executable_extensions; do
2132 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2133 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2134 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2135 break 2
2136 fi
2137done
2138done
2139
2140fi
2141fi
2142STRIP=$ac_cv_prog_STRIP
2143if test -n "$STRIP"; then
2144 echo "$as_me:$LINENO: result: $STRIP" >&5
2145echo "${ECHO_T}$STRIP" >&6
2146else
2147 echo "$as_me:$LINENO: result: no" >&5
2148echo "${ECHO_T}no" >&6
2149fi
2150
2151fi
2152if test -z "$ac_cv_prog_STRIP"; then
2153 ac_ct_STRIP=$STRIP
2154 # Extract the first word of "strip", so it can be a program name with args.
2155set dummy strip; ac_word=$2
2156echo "$as_me:$LINENO: checking for $ac_word" >&5
2157echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2158if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2159 echo $ECHO_N "(cached) $ECHO_C" >&6
2160else
2161 if test -n "$ac_ct_STRIP"; then
2162 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2163else
2164as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2165for as_dir in $PATH
2166do
2167 IFS=$as_save_IFS
2168 test -z "$as_dir" && as_dir=.
2169 for ac_exec_ext in '' $ac_executable_extensions; do
2170 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2171 ac_cv_prog_ac_ct_STRIP="strip"
2172 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2173 break 2
2174 fi
2175done
2176done
2177
2178 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2179fi
2180fi
2181ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2182if test -n "$ac_ct_STRIP"; then
2183 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2184echo "${ECHO_T}$ac_ct_STRIP" >&6
2185else
2186 echo "$as_me:$LINENO: result: no" >&5
2187echo "${ECHO_T}no" >&6
2188fi
2189
2190 STRIP=$ac_ct_STRIP
2191else
2192 STRIP="$ac_cv_prog_STRIP"
2193fi
2194
2195fi
2196INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2197
2198# We need awk for the "check" target. The system "awk" is bad on
2199# some platforms.
2200# Always define AMTAR for backward compatibility.
2201
2202AMTAR=${AMTAR-"${am_missing_run}tar"}
2203
2204am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2205
2206
2207
2208
2209
2210 ac_config_headers="$ac_config_headers spl_config.h"
2211
0cbaeb11
BB
2212
2213
bf9f3bac 2214echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2215echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
2216 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
2217if test "${enable_maintainer_mode+set}" = set; then
2218 enableval="$enable_maintainer_mode"
2219 USE_MAINTAINER_MODE=$enableval
2220else
2221 USE_MAINTAINER_MODE=no
2222fi;
2223 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2224echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
2225
2226
2227if test $USE_MAINTAINER_MODE = yes; then
2228 MAINTAINER_MODE_TRUE=
2229 MAINTAINER_MODE_FALSE='#'
2230else
2231 MAINTAINER_MODE_TRUE='#'
2232 MAINTAINER_MODE_FALSE=
2233fi
2234
2235 MAINT=$MAINTAINER_MODE_TRUE
2236
2237
2238
2239# Find a good install program. We prefer a C program (faster),
2240# so one script is as good as another. But avoid the broken or
2241# incompatible versions:
2242# SysV /etc/install, /usr/sbin/install
2243# SunOS /usr/etc/install
2244# IRIX /sbin/install
2245# AIX /bin/install
2246# AmigaOS /C/install, which installs bootblocks on floppy discs
2247# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2248# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2249# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2250# OS/2's system install, which has a completely different semantic
2251# ./install, which can be erroneously created by make from ./install.sh.
2252echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2253echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2254if test -z "$INSTALL"; then
2255if test "${ac_cv_path_install+set}" = set; then
2256 echo $ECHO_N "(cached) $ECHO_C" >&6
2257else
2258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2259for as_dir in $PATH
2260do
2261 IFS=$as_save_IFS
2262 test -z "$as_dir" && as_dir=.
2263 # Account for people who put trailing slashes in PATH elements.
2264case $as_dir/ in
2265 ./ | .// | /cC/* | \
2266 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2267 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2268 /usr/ucb/* ) ;;
2269 *)
2270 # OSF1 and SCO ODT 3.0 have their own names for install.
2271 # Don't use installbsd from OSF since it installs stuff as root
2272 # by default.
2273 for ac_prog in ginstall scoinst install; do
2274 for ac_exec_ext in '' $ac_executable_extensions; do
2275 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2276 if test $ac_prog = install &&
2277 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2278 # AIX install. It has an incompatible calling convention.
2279 :
2280 elif test $ac_prog = install &&
2281 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2282 # program-specific install script used by HP pwplus--don't use.
2283 :
2284 else
2285 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2286 break 3
2287 fi
2288 fi
2289 done
2290 done
2291 ;;
2292esac
2293done
2294
2295
2296fi
2297 if test "${ac_cv_path_install+set}" = set; then
2298 INSTALL=$ac_cv_path_install
2299 else
2300 # As a last resort, use the slow shell script. We don't cache a
2301 # path for INSTALL within a source directory, because that will
2302 # break other packages using the cache if that directory is
2303 # removed, or if the path is relative.
2304 INSTALL=$ac_install_sh
2305 fi
2306fi
2307echo "$as_me:$LINENO: result: $INSTALL" >&5
2308echo "${ECHO_T}$INSTALL" >&6
2309
2310# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2311# It thinks the first close brace ends the variable substitution.
2312test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2313
2314test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2315
2316test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2317
2318ac_ext=c
2319ac_cpp='$CPP $CPPFLAGS'
2320ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2321ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2322ac_compiler_gnu=$ac_cv_c_compiler_gnu
2323if test -n "$ac_tool_prefix"; then
2324 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2325set dummy ${ac_tool_prefix}gcc; ac_word=$2
2326echo "$as_me:$LINENO: checking for $ac_word" >&5
2327echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2328if test "${ac_cv_prog_CC+set}" = set; then
2329 echo $ECHO_N "(cached) $ECHO_C" >&6
2330else
2331 if test -n "$CC"; then
2332 ac_cv_prog_CC="$CC" # Let the user override the test.
2333else
2334as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2335for as_dir in $PATH
2336do
2337 IFS=$as_save_IFS
2338 test -z "$as_dir" && as_dir=.
2339 for ac_exec_ext in '' $ac_executable_extensions; do
2340 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2341 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2342 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2343 break 2
2344 fi
2345done
2346done
2347
2348fi
2349fi
2350CC=$ac_cv_prog_CC
2351if test -n "$CC"; then
2352 echo "$as_me:$LINENO: result: $CC" >&5
2353echo "${ECHO_T}$CC" >&6
2354else
2355 echo "$as_me:$LINENO: result: no" >&5
2356echo "${ECHO_T}no" >&6
2357fi
2358
2359fi
2360if test -z "$ac_cv_prog_CC"; then
2361 ac_ct_CC=$CC
2362 # Extract the first word of "gcc", so it can be a program name with args.
2363set dummy gcc; ac_word=$2
2364echo "$as_me:$LINENO: checking for $ac_word" >&5
2365echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2366if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2367 echo $ECHO_N "(cached) $ECHO_C" >&6
2368else
2369 if test -n "$ac_ct_CC"; then
2370 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2371else
2372as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2373for as_dir in $PATH
2374do
2375 IFS=$as_save_IFS
2376 test -z "$as_dir" && as_dir=.
2377 for ac_exec_ext in '' $ac_executable_extensions; do
2378 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2379 ac_cv_prog_ac_ct_CC="gcc"
2380 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2381 break 2
2382 fi
2383done
2384done
2385
2386fi
2387fi
2388ac_ct_CC=$ac_cv_prog_ac_ct_CC
2389if test -n "$ac_ct_CC"; then
2390 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2391echo "${ECHO_T}$ac_ct_CC" >&6
2392else
2393 echo "$as_me:$LINENO: result: no" >&5
2394echo "${ECHO_T}no" >&6
2395fi
2396
2397 CC=$ac_ct_CC
2398else
2399 CC="$ac_cv_prog_CC"
2400fi
2401
2402if test -z "$CC"; then
2403 if test -n "$ac_tool_prefix"; then
2404 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2405set dummy ${ac_tool_prefix}cc; ac_word=$2
2406echo "$as_me:$LINENO: checking for $ac_word" >&5
2407echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2408if test "${ac_cv_prog_CC+set}" = set; then
2409 echo $ECHO_N "(cached) $ECHO_C" >&6
2410else
2411 if test -n "$CC"; then
2412 ac_cv_prog_CC="$CC" # Let the user override the test.
2413else
2414as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2415for as_dir in $PATH
2416do
2417 IFS=$as_save_IFS
2418 test -z "$as_dir" && as_dir=.
2419 for ac_exec_ext in '' $ac_executable_extensions; do
2420 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2421 ac_cv_prog_CC="${ac_tool_prefix}cc"
2422 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2423 break 2
2424 fi
2425done
2426done
2427
2428fi
2429fi
2430CC=$ac_cv_prog_CC
2431if test -n "$CC"; then
2432 echo "$as_me:$LINENO: result: $CC" >&5
2433echo "${ECHO_T}$CC" >&6
2434else
2435 echo "$as_me:$LINENO: result: no" >&5
2436echo "${ECHO_T}no" >&6
2437fi
2438
2439fi
2440if test -z "$ac_cv_prog_CC"; then
2441 ac_ct_CC=$CC
2442 # Extract the first word of "cc", so it can be a program name with args.
2443set dummy cc; ac_word=$2
2444echo "$as_me:$LINENO: checking for $ac_word" >&5
2445echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2446if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2447 echo $ECHO_N "(cached) $ECHO_C" >&6
2448else
2449 if test -n "$ac_ct_CC"; then
2450 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2451else
2452as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2453for as_dir in $PATH
2454do
2455 IFS=$as_save_IFS
2456 test -z "$as_dir" && as_dir=.
2457 for ac_exec_ext in '' $ac_executable_extensions; do
2458 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2459 ac_cv_prog_ac_ct_CC="cc"
2460 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2461 break 2
2462 fi
2463done
2464done
2465
2466fi
2467fi
2468ac_ct_CC=$ac_cv_prog_ac_ct_CC
2469if test -n "$ac_ct_CC"; then
2470 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2471echo "${ECHO_T}$ac_ct_CC" >&6
2472else
2473 echo "$as_me:$LINENO: result: no" >&5
2474echo "${ECHO_T}no" >&6
2475fi
2476
2477 CC=$ac_ct_CC
2478else
2479 CC="$ac_cv_prog_CC"
2480fi
2481
2482fi
2483if test -z "$CC"; then
2484 # Extract the first word of "cc", so it can be a program name with args.
2485set dummy cc; ac_word=$2
2486echo "$as_me:$LINENO: checking for $ac_word" >&5
2487echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2488if test "${ac_cv_prog_CC+set}" = set; then
2489 echo $ECHO_N "(cached) $ECHO_C" >&6
2490else
2491 if test -n "$CC"; then
2492 ac_cv_prog_CC="$CC" # Let the user override the test.
2493else
2494 ac_prog_rejected=no
2495as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2496for as_dir in $PATH
2497do
2498 IFS=$as_save_IFS
2499 test -z "$as_dir" && as_dir=.
2500 for ac_exec_ext in '' $ac_executable_extensions; do
2501 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2502 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2503 ac_prog_rejected=yes
2504 continue
2505 fi
2506 ac_cv_prog_CC="cc"
2507 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2508 break 2
2509 fi
2510done
2511done
2512
2513if test $ac_prog_rejected = yes; then
2514 # We found a bogon in the path, so make sure we never use it.
2515 set dummy $ac_cv_prog_CC
2516 shift
2517 if test $# != 0; then
2518 # We chose a different compiler from the bogus one.
2519 # However, it has the same basename, so the bogon will be chosen
2520 # first if we set CC to just the basename; use the full file name.
2521 shift
2522 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2523 fi
2524fi
2525fi
2526fi
2527CC=$ac_cv_prog_CC
2528if test -n "$CC"; then
2529 echo "$as_me:$LINENO: result: $CC" >&5
2530echo "${ECHO_T}$CC" >&6
2531else
2532 echo "$as_me:$LINENO: result: no" >&5
2533echo "${ECHO_T}no" >&6
2534fi
2535
2536fi
2537if test -z "$CC"; then
2538 if test -n "$ac_tool_prefix"; then
2539 for ac_prog in cl
2540 do
2541 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2542set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2543echo "$as_me:$LINENO: checking for $ac_word" >&5
2544echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2545if test "${ac_cv_prog_CC+set}" = set; then
2546 echo $ECHO_N "(cached) $ECHO_C" >&6
2547else
2548 if test -n "$CC"; then
2549 ac_cv_prog_CC="$CC" # Let the user override the test.
2550else
2551as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2552for as_dir in $PATH
2553do
2554 IFS=$as_save_IFS
2555 test -z "$as_dir" && as_dir=.
2556 for ac_exec_ext in '' $ac_executable_extensions; do
2557 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2558 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2559 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2560 break 2
2561 fi
2562done
2563done
2564
2565fi
2566fi
2567CC=$ac_cv_prog_CC
2568if test -n "$CC"; then
2569 echo "$as_me:$LINENO: result: $CC" >&5
2570echo "${ECHO_T}$CC" >&6
2571else
2572 echo "$as_me:$LINENO: result: no" >&5
2573echo "${ECHO_T}no" >&6
2574fi
2575
2576 test -n "$CC" && break
2577 done
2578fi
2579if test -z "$CC"; then
2580 ac_ct_CC=$CC
2581 for ac_prog in cl
2582do
2583 # Extract the first word of "$ac_prog", so it can be a program name with args.
2584set dummy $ac_prog; ac_word=$2
2585echo "$as_me:$LINENO: checking for $ac_word" >&5
2586echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2587if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2588 echo $ECHO_N "(cached) $ECHO_C" >&6
2589else
2590 if test -n "$ac_ct_CC"; then
2591 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2592else
2593as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2594for as_dir in $PATH
2595do
2596 IFS=$as_save_IFS
2597 test -z "$as_dir" && as_dir=.
2598 for ac_exec_ext in '' $ac_executable_extensions; do
2599 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2600 ac_cv_prog_ac_ct_CC="$ac_prog"
2601 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2602 break 2
2603 fi
2604done
2605done
2606
2607fi
2608fi
2609ac_ct_CC=$ac_cv_prog_ac_ct_CC
2610if test -n "$ac_ct_CC"; then
2611 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2612echo "${ECHO_T}$ac_ct_CC" >&6
2613else
2614 echo "$as_me:$LINENO: result: no" >&5
2615echo "${ECHO_T}no" >&6
2616fi
2617
2618 test -n "$ac_ct_CC" && break
2619done
2620
2621 CC=$ac_ct_CC
2622fi
2623
2624fi
2625
2626
2627test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2628See \`config.log' for more details." >&5
2629echo "$as_me: error: no acceptable C compiler found in \$PATH
2630See \`config.log' for more details." >&2;}
2631 { (exit 1); exit 1; }; }
2632
2633# Provide some information about the compiler.
2634echo "$as_me:$LINENO:" \
2635 "checking for C compiler version" >&5
2636ac_compiler=`set X $ac_compile; echo $2`
2637{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2638 (eval $ac_compiler --version </dev/null >&5) 2>&5
2639 ac_status=$?
2640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2641 (exit $ac_status); }
2642{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2643 (eval $ac_compiler -v </dev/null >&5) 2>&5
2644 ac_status=$?
2645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2646 (exit $ac_status); }
2647{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2648 (eval $ac_compiler -V </dev/null >&5) 2>&5
2649 ac_status=$?
2650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2651 (exit $ac_status); }
2652
2653cat >conftest.$ac_ext <<_ACEOF
2654/* confdefs.h. */
2655_ACEOF
2656cat confdefs.h >>conftest.$ac_ext
2657cat >>conftest.$ac_ext <<_ACEOF
2658/* end confdefs.h. */
2659
2660int
2661main ()
2662{
2663
2664 ;
2665 return 0;
2666}
2667_ACEOF
2668ac_clean_files_save=$ac_clean_files
2669ac_clean_files="$ac_clean_files a.out a.exe b.out"
2670# Try to create an executable without -o first, disregard a.out.
2671# It will help us diagnose broken compilers, and finding out an intuition
2672# of exeext.
2673echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2674echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2675ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2676if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2677 (eval $ac_link_default) 2>&5
2678 ac_status=$?
2679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2680 (exit $ac_status); }; then
2681 # Find the output, starting from the most likely. This scheme is
2682# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2683# resort.
2684
2685# Be careful to initialize this variable, since it used to be cached.
2686# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2687ac_cv_exeext=
2688# b.out is created by i960 compilers.
2689for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2690do
2691 test -f "$ac_file" || continue
2692 case $ac_file in
2693 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2694 ;;
2695 conftest.$ac_ext )
2696 # This is the source file.
2697 ;;
2698 [ab].out )
2699 # We found the default executable, but exeext='' is most
2700 # certainly right.
2701 break;;
2702 *.* )
2703 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2704 # FIXME: I believe we export ac_cv_exeext for Libtool,
2705 # but it would be cool to find out if it's true. Does anybody
2706 # maintain Libtool? --akim.
2707 export ac_cv_exeext
2708 break;;
2709 * )
2710 break;;
2711 esac
2712done
2713else
2714 echo "$as_me: failed program was:" >&5
2715sed 's/^/| /' conftest.$ac_ext >&5
2716
2717{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2718See \`config.log' for more details." >&5
2719echo "$as_me: error: C compiler cannot create executables
2720See \`config.log' for more details." >&2;}
2721 { (exit 77); exit 77; }; }
2722fi
2723
2724ac_exeext=$ac_cv_exeext
2725echo "$as_me:$LINENO: result: $ac_file" >&5
2726echo "${ECHO_T}$ac_file" >&6
2727
2728# Check the compiler produces executables we can run. If not, either
2729# the compiler is broken, or we cross compile.
2730echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2731echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2732# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2733# If not cross compiling, check that we can run a simple program.
2734if test "$cross_compiling" != yes; then
2735 if { ac_try='./$ac_file'
2736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2737 (eval $ac_try) 2>&5
2738 ac_status=$?
2739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2740 (exit $ac_status); }; }; then
2741 cross_compiling=no
2742 else
2743 if test "$cross_compiling" = maybe; then
2744 cross_compiling=yes
2745 else
2746 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2747If you meant to cross compile, use \`--host'.
2748See \`config.log' for more details." >&5
2749echo "$as_me: error: cannot run C compiled programs.
2750If you meant to cross compile, use \`--host'.
2751See \`config.log' for more details." >&2;}
2752 { (exit 1); exit 1; }; }
2753 fi
2754 fi
2755fi
2756echo "$as_me:$LINENO: result: yes" >&5
2757echo "${ECHO_T}yes" >&6
2758
2759rm -f a.out a.exe conftest$ac_cv_exeext b.out
2760ac_clean_files=$ac_clean_files_save
2761# Check the compiler produces executables we can run. If not, either
2762# the compiler is broken, or we cross compile.
2763echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2764echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2765echo "$as_me:$LINENO: result: $cross_compiling" >&5
2766echo "${ECHO_T}$cross_compiling" >&6
2767
2768echo "$as_me:$LINENO: checking for suffix of executables" >&5
2769echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2770if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2771 (eval $ac_link) 2>&5
2772 ac_status=$?
2773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2774 (exit $ac_status); }; then
2775 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2776# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2777# work properly (i.e., refer to `conftest.exe'), while it won't with
2778# `rm'.
2779for ac_file in conftest.exe conftest conftest.*; do
2780 test -f "$ac_file" || continue
2781 case $ac_file in
2782 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2783 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2784 export ac_cv_exeext
2785 break;;
2786 * ) break;;
2787 esac
2788done
2789else
2790 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2791See \`config.log' for more details." >&5
2792echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2793See \`config.log' for more details." >&2;}
2794 { (exit 1); exit 1; }; }
2795fi
2796
2797rm -f conftest$ac_cv_exeext
2798echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2799echo "${ECHO_T}$ac_cv_exeext" >&6
2800
2801rm -f conftest.$ac_ext
2802EXEEXT=$ac_cv_exeext
2803ac_exeext=$EXEEXT
2804echo "$as_me:$LINENO: checking for suffix of object files" >&5
2805echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2806if test "${ac_cv_objext+set}" = set; then
2807 echo $ECHO_N "(cached) $ECHO_C" >&6
2808else
2809 cat >conftest.$ac_ext <<_ACEOF
2810/* confdefs.h. */
2811_ACEOF
2812cat confdefs.h >>conftest.$ac_ext
2813cat >>conftest.$ac_ext <<_ACEOF
2814/* end confdefs.h. */
2815
2816int
2817main ()
2818{
2819
2820 ;
2821 return 0;
2822}
2823_ACEOF
2824rm -f conftest.o conftest.obj
2825if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2826 (eval $ac_compile) 2>&5
2827 ac_status=$?
2828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2829 (exit $ac_status); }; then
2830 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2831 case $ac_file in
2832 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2833 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2834 break;;
2835 esac
2836done
2837else
2838 echo "$as_me: failed program was:" >&5
2839sed 's/^/| /' conftest.$ac_ext >&5
2840
2841{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2842See \`config.log' for more details." >&5
2843echo "$as_me: error: cannot compute suffix of object files: cannot compile
2844See \`config.log' for more details." >&2;}
2845 { (exit 1); exit 1; }; }
2846fi
2847
2848rm -f conftest.$ac_cv_objext conftest.$ac_ext
2849fi
2850echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2851echo "${ECHO_T}$ac_cv_objext" >&6
2852OBJEXT=$ac_cv_objext
2853ac_objext=$OBJEXT
2854echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2855echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2856if test "${ac_cv_c_compiler_gnu+set}" = set; then
2857 echo $ECHO_N "(cached) $ECHO_C" >&6
2858else
2859 cat >conftest.$ac_ext <<_ACEOF
2860/* confdefs.h. */
2861_ACEOF
2862cat confdefs.h >>conftest.$ac_ext
2863cat >>conftest.$ac_ext <<_ACEOF
2864/* end confdefs.h. */
2865
2866int
2867main ()
2868{
2869#ifndef __GNUC__
2870 choke me
2871#endif
2872
2873 ;
2874 return 0;
2875}
2876_ACEOF
2877rm -f conftest.$ac_objext
2878if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2879 (eval $ac_compile) 2>conftest.er1
2880 ac_status=$?
2881 grep -v '^ *+' conftest.er1 >conftest.err
2882 rm -f conftest.er1
2883 cat conftest.err >&5
2884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2885 (exit $ac_status); } &&
2886 { ac_try='test -z "$ac_c_werror_flag"
2887 || test ! -s conftest.err'
2888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2889 (eval $ac_try) 2>&5
2890 ac_status=$?
2891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892 (exit $ac_status); }; } &&
2893 { ac_try='test -s conftest.$ac_objext'
2894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2895 (eval $ac_try) 2>&5
2896 ac_status=$?
2897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2898 (exit $ac_status); }; }; then
2899 ac_compiler_gnu=yes
2900else
2901 echo "$as_me: failed program was:" >&5
2902sed 's/^/| /' conftest.$ac_ext >&5
2903
2904ac_compiler_gnu=no
2905fi
2906rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2907ac_cv_c_compiler_gnu=$ac_compiler_gnu
2908
2909fi
2910echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2911echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2912GCC=`test $ac_compiler_gnu = yes && echo yes`
2913ac_test_CFLAGS=${CFLAGS+set}
2914ac_save_CFLAGS=$CFLAGS
2915CFLAGS="-g"
2916echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2917echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2918if test "${ac_cv_prog_cc_g+set}" = set; then
2919 echo $ECHO_N "(cached) $ECHO_C" >&6
2920else
2921 cat >conftest.$ac_ext <<_ACEOF
2922/* confdefs.h. */
2923_ACEOF
2924cat confdefs.h >>conftest.$ac_ext
2925cat >>conftest.$ac_ext <<_ACEOF
2926/* end confdefs.h. */
2927
2928int
2929main ()
2930{
2931
2932 ;
2933 return 0;
2934}
2935_ACEOF
2936rm -f conftest.$ac_objext
2937if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2938 (eval $ac_compile) 2>conftest.er1
2939 ac_status=$?
2940 grep -v '^ *+' conftest.er1 >conftest.err
2941 rm -f conftest.er1
2942 cat conftest.err >&5
2943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2944 (exit $ac_status); } &&
2945 { ac_try='test -z "$ac_c_werror_flag"
2946 || test ! -s conftest.err'
2947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2948 (eval $ac_try) 2>&5
2949 ac_status=$?
2950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2951 (exit $ac_status); }; } &&
2952 { ac_try='test -s conftest.$ac_objext'
2953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2954 (eval $ac_try) 2>&5
2955 ac_status=$?
2956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2957 (exit $ac_status); }; }; then
2958 ac_cv_prog_cc_g=yes
2959else
2960 echo "$as_me: failed program was:" >&5
2961sed 's/^/| /' conftest.$ac_ext >&5
2962
2963ac_cv_prog_cc_g=no
2964fi
2965rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2966fi
2967echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2968echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2969if test "$ac_test_CFLAGS" = set; then
2970 CFLAGS=$ac_save_CFLAGS
2971elif test $ac_cv_prog_cc_g = yes; then
2972 if test "$GCC" = yes; then
2973 CFLAGS="-g -O2"
2974 else
2975 CFLAGS="-g"
2976 fi
2977else
2978 if test "$GCC" = yes; then
2979 CFLAGS="-O2"
2980 else
2981 CFLAGS=
2982 fi
2983fi
2984echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2985echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2986if test "${ac_cv_prog_cc_stdc+set}" = set; then
2987 echo $ECHO_N "(cached) $ECHO_C" >&6
2988else
2989 ac_cv_prog_cc_stdc=no
2990ac_save_CC=$CC
2991cat >conftest.$ac_ext <<_ACEOF
2992/* confdefs.h. */
2993_ACEOF
2994cat confdefs.h >>conftest.$ac_ext
2995cat >>conftest.$ac_ext <<_ACEOF
2996/* end confdefs.h. */
2997#include <stdarg.h>
2998#include <stdio.h>
2999#include <sys/types.h>
3000#include <sys/stat.h>
3001/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3002struct buf { int x; };
3003FILE * (*rcsopen) (struct buf *, struct stat *, int);
3004static char *e (p, i)
3005 char **p;
3006 int i;
3007{
3008 return p[i];
3009}
3010static char *f (char * (*g) (char **, int), char **p, ...)
3011{
3012 char *s;
3013 va_list v;
3014 va_start (v,p);
3015 s = g (p, va_arg (v,int));
3016 va_end (v);
3017 return s;
3018}
3019
3020/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3021 function prototypes and stuff, but not '\xHH' hex character constants.
3022 These don't provoke an error unfortunately, instead are silently treated
3023 as 'x'. The following induces an error, until -std1 is added to get
3024 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3025 array size at least. It's necessary to write '\x00'==0 to get something
3026 that's true only with -std1. */
3027int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3028
3029int test (int i, double x);
3030struct s1 {int (*f) (int a);};
3031struct s2 {int (*f) (double a);};
3032int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3033int argc;
3034char **argv;
3035int
3036main ()
3037{
3038return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3039 ;
3040 return 0;
3041}
3042_ACEOF
3043# Don't try gcc -ansi; that turns off useful extensions and
3044# breaks some systems' header files.
3045# AIX -qlanglvl=ansi
3046# Ultrix and OSF/1 -std1
3047# HP-UX 10.20 and later -Ae
3048# HP-UX older versions -Aa -D_HPUX_SOURCE
3049# SVR4 -Xc -D__EXTENSIONS__
3050for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3051do
3052 CC="$ac_save_CC $ac_arg"
3053 rm -f conftest.$ac_objext
3054if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3055 (eval $ac_compile) 2>conftest.er1
3056 ac_status=$?
3057 grep -v '^ *+' conftest.er1 >conftest.err
3058 rm -f conftest.er1
3059 cat conftest.err >&5
3060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3061 (exit $ac_status); } &&
3062 { ac_try='test -z "$ac_c_werror_flag"
3063 || test ! -s conftest.err'
3064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3065 (eval $ac_try) 2>&5
3066 ac_status=$?
3067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3068 (exit $ac_status); }; } &&
3069 { ac_try='test -s conftest.$ac_objext'
3070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3071 (eval $ac_try) 2>&5
3072 ac_status=$?
3073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3074 (exit $ac_status); }; }; then
3075 ac_cv_prog_cc_stdc=$ac_arg
3076break
3077else
3078 echo "$as_me: failed program was:" >&5
3079sed 's/^/| /' conftest.$ac_ext >&5
3080
3081fi
3082rm -f conftest.err conftest.$ac_objext
3083done
3084rm -f conftest.$ac_ext conftest.$ac_objext
3085CC=$ac_save_CC
3086
3087fi
3088
3089case "x$ac_cv_prog_cc_stdc" in
3090 x|xno)
3091 echo "$as_me:$LINENO: result: none needed" >&5
3092echo "${ECHO_T}none needed" >&6 ;;
3093 *)
3094 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3095echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3096 CC="$CC $ac_cv_prog_cc_stdc" ;;
3097esac
3098
3099# Some people use a C++ compiler to compile C. Since we use `exit',
3100# in C++ we need to declare it. In case someone uses the same compiler
3101# for both compiling C and C++ we need to have the C++ compiler decide
3102# the declaration of exit, since it's the most demanding environment.
3103cat >conftest.$ac_ext <<_ACEOF
3104#ifndef __cplusplus
3105 choke me
3106#endif
3107_ACEOF
3108rm -f conftest.$ac_objext
3109if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3110 (eval $ac_compile) 2>conftest.er1
3111 ac_status=$?
3112 grep -v '^ *+' conftest.er1 >conftest.err
3113 rm -f conftest.er1
3114 cat conftest.err >&5
3115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3116 (exit $ac_status); } &&
3117 { ac_try='test -z "$ac_c_werror_flag"
3118 || test ! -s conftest.err'
3119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3120 (eval $ac_try) 2>&5
3121 ac_status=$?
3122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3123 (exit $ac_status); }; } &&
3124 { ac_try='test -s conftest.$ac_objext'
3125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3126 (eval $ac_try) 2>&5
3127 ac_status=$?
3128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3129 (exit $ac_status); }; }; then
3130 for ac_declaration in \
3131 '' \
3132 'extern "C" void std::exit (int) throw (); using std::exit;' \
3133 'extern "C" void std::exit (int); using std::exit;' \
3134 'extern "C" void exit (int) throw ();' \
3135 'extern "C" void exit (int);' \
3136 'void exit (int);'
3137do
3138 cat >conftest.$ac_ext <<_ACEOF
3139/* confdefs.h. */
3140_ACEOF
3141cat confdefs.h >>conftest.$ac_ext
3142cat >>conftest.$ac_ext <<_ACEOF
3143/* end confdefs.h. */
3144$ac_declaration
3145#include <stdlib.h>
3146int
3147main ()
3148{
3149exit (42);
3150 ;
3151 return 0;
3152}
3153_ACEOF
3154rm -f conftest.$ac_objext
3155if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3156 (eval $ac_compile) 2>conftest.er1
3157 ac_status=$?
3158 grep -v '^ *+' conftest.er1 >conftest.err
3159 rm -f conftest.er1
3160 cat conftest.err >&5
3161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3162 (exit $ac_status); } &&
3163 { ac_try='test -z "$ac_c_werror_flag"
3164 || test ! -s conftest.err'
3165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3166 (eval $ac_try) 2>&5
3167 ac_status=$?
3168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3169 (exit $ac_status); }; } &&
3170 { ac_try='test -s conftest.$ac_objext'
3171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3172 (eval $ac_try) 2>&5
3173 ac_status=$?
3174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3175 (exit $ac_status); }; }; then
3176 :
3177else
3178 echo "$as_me: failed program was:" >&5
3179sed 's/^/| /' conftest.$ac_ext >&5
3180
3181continue
3182fi
3183rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3184 cat >conftest.$ac_ext <<_ACEOF
3185/* confdefs.h. */
3186_ACEOF
3187cat confdefs.h >>conftest.$ac_ext
3188cat >>conftest.$ac_ext <<_ACEOF
3189/* end confdefs.h. */
3190$ac_declaration
3191int
3192main ()
3193{
3194exit (42);
3195 ;
3196 return 0;
3197}
3198_ACEOF
3199rm -f conftest.$ac_objext
3200if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3201 (eval $ac_compile) 2>conftest.er1
3202 ac_status=$?
3203 grep -v '^ *+' conftest.er1 >conftest.err
3204 rm -f conftest.er1
3205 cat conftest.err >&5
3206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3207 (exit $ac_status); } &&
3208 { ac_try='test -z "$ac_c_werror_flag"
3209 || test ! -s conftest.err'
3210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3211 (eval $ac_try) 2>&5
3212 ac_status=$?
3213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3214 (exit $ac_status); }; } &&
3215 { ac_try='test -s conftest.$ac_objext'
3216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3217 (eval $ac_try) 2>&5
3218 ac_status=$?
3219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3220 (exit $ac_status); }; }; then
3221 break
3222else
3223 echo "$as_me: failed program was:" >&5
3224sed 's/^/| /' conftest.$ac_ext >&5
3225
3226fi
3227rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3228done
3229rm -f conftest*
3230if test -n "$ac_declaration"; then
3231 echo '#ifdef __cplusplus' >>confdefs.h
3232 echo $ac_declaration >>confdefs.h
3233 echo '#endif' >>confdefs.h
3234fi
3235
3236else
3237 echo "$as_me: failed program was:" >&5
3238sed 's/^/| /' conftest.$ac_ext >&5
3239
3240fi
3241rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3242ac_ext=c
3243ac_cpp='$CPP $CPPFLAGS'
3244ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3245ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3246ac_compiler_gnu=$ac_cv_c_compiler_gnu
3247DEPDIR="${am__leading_dot}deps"
3248
3249 ac_config_commands="$ac_config_commands depfiles"
3250
3251
3252am_make=${MAKE-make}
3253cat > confinc << 'END'
3254am__doit:
3255 @echo done
3256.PHONY: am__doit
3257END
3258# If we don't find an include directive, just comment out the code.
3259echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3260echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3261am__include="#"
3262am__quote=
3263_am_result=none
3264# First try GNU make style include.
3265echo "include confinc" > confmf
3266# We grep out `Entering directory' and `Leaving directory'
3267# messages which can occur if `w' ends up in MAKEFLAGS.
3268# In particular we don't look at `^make:' because GNU make might
3269# be invoked under some other name (usually "gmake"), in which
3270# case it prints its new name instead of `make'.
3271if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3272 am__include=include
3273 am__quote=
3274 _am_result=GNU
3275fi
3276# Now try BSD make style include.
3277if test "$am__include" = "#"; then
3278 echo '.include "confinc"' > confmf
3279 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3280 am__include=.include
3281 am__quote="\""
3282 _am_result=BSD
3283 fi
3284fi
3285
3286
3287echo "$as_me:$LINENO: result: $_am_result" >&5
3288echo "${ECHO_T}$_am_result" >&6
3289rm -f confinc confmf
3290
3291# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3292if test "${enable_dependency_tracking+set}" = set; then
3293 enableval="$enable_dependency_tracking"
3294
3295fi;
3296if test "x$enable_dependency_tracking" != xno; then
3297 am_depcomp="$ac_aux_dir/depcomp"
3298 AMDEPBACKSLASH='\'
3299fi
3300
3301
3302if test "x$enable_dependency_tracking" != xno; then
3303 AMDEP_TRUE=
3304 AMDEP_FALSE='#'
3305else
3306 AMDEP_TRUE='#'
3307 AMDEP_FALSE=
3308fi
3309
3310
3311
3312
3313depcc="$CC" am_compiler_list=
3314
3315echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3316echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3317if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3318 echo $ECHO_N "(cached) $ECHO_C" >&6
3319else
3320 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3321 # We make a subdir and do the tests there. Otherwise we can end up
3322 # making bogus files that we don't know about and never remove. For
3323 # instance it was reported that on HP-UX the gcc test will end up
3324 # making a dummy file named `D' -- because `-MD' means `put the output
3325 # in D'.
3326 mkdir conftest.dir
3327 # Copy depcomp to subdir because otherwise we won't find it if we're
3328 # using a relative directory.
3329 cp "$am_depcomp" conftest.dir
3330 cd conftest.dir
3331 # We will build objects and dependencies in a subdirectory because
3332 # it helps to detect inapplicable dependency modes. For instance
3333 # both Tru64's cc and ICC support -MD to output dependencies as a
3334 # side effect of compilation, but ICC will put the dependencies in
3335 # the current directory while Tru64 will put them in the object
3336 # directory.
3337 mkdir sub
3338
3339 am_cv_CC_dependencies_compiler_type=none
3340 if test "$am_compiler_list" = ""; then
3341 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3342 fi
3343 for depmode in $am_compiler_list; do
3344 # Setup a source with many dependencies, because some compilers
3345 # like to wrap large dependency lists on column 80 (with \), and
3346 # we should not choose a depcomp mode which is confused by this.
3347 #
3348 # We need to recreate these files for each test, as the compiler may
3349 # overwrite some of them when testing with obscure command lines.
3350 # This happens at least with the AIX C compiler.
3351 : > sub/conftest.c
3352 for i in 1 2 3 4 5 6; do
3353 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3354 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3355 # Solaris 8's {/usr,}/bin/sh.
3356 touch sub/conftst$i.h
3357 done
3358 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3359
3360 case $depmode in
3361 nosideeffect)
3362 # after this tag, mechanisms are not by side-effect, so they'll
3363 # only be used when explicitly requested
3364 if test "x$enable_dependency_tracking" = xyes; then
3365 continue
3366 else
3367 break
3368 fi
3369 ;;
3370 none) break ;;
3371 esac
3372 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3373 # mode. It turns out that the SunPro C++ compiler does not properly
3374 # handle `-M -o', and we need to detect this.
3375 if depmode=$depmode \
3376 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3377 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3378 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3379 >/dev/null 2>conftest.err &&
3380 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3381 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3382 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3383 # icc doesn't choke on unknown options, it will just issue warnings
3384 # or remarks (even with -Werror). So we grep stderr for any message
3385 # that says an option was ignored or not supported.
3386 # When given -MP, icc 7.0 and 7.1 complain thusly:
3387 # icc: Command line warning: ignoring option '-M'; no argument required
3388 # The diagnosis changed in icc 8.0:
3389 # icc: Command line remark: option '-MP' not supported
3390 if (grep 'ignoring option' conftest.err ||
3391 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3392 am_cv_CC_dependencies_compiler_type=$depmode
3393 break
3394 fi
3395 fi
3396 done
3397
3398 cd ..
3399 rm -rf conftest.dir
3400else
3401 am_cv_CC_dependencies_compiler_type=none
3402fi
3403
3404fi
3405echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3406echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3407CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3408
3409
3410
3411if
3412 test "x$enable_dependency_tracking" != xno \
3413 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3414 am__fastdepCC_TRUE=
3415 am__fastdepCC_FALSE='#'
3416else
3417 am__fastdepCC_TRUE='#'
3418 am__fastdepCC_FALSE=
3419fi
3420
3421
3422# Check whether --enable-shared or --disable-shared was given.
3423if test "${enable_shared+set}" = set; then
3424 enableval="$enable_shared"
3425 p=${PACKAGE-default}
3426 case $enableval in
3427 yes) enable_shared=yes ;;
3428 no) enable_shared=no ;;
3429 *)
3430 enable_shared=no
3431 # Look at the argument we got. We use all the common list separators.
3432 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3433 for pkg in $enableval; do
3434 IFS="$lt_save_ifs"
3435 if test "X$pkg" = "X$p"; then
3436 enable_shared=yes
3437 fi
3438 done
3439 IFS="$lt_save_ifs"
3440 ;;
3441 esac
3442else
3443 enable_shared=yes
3444fi;
3445
3446# Check whether --enable-static or --disable-static was given.
3447if test "${enable_static+set}" = set; then
3448 enableval="$enable_static"
3449 p=${PACKAGE-default}
3450 case $enableval in
3451 yes) enable_static=yes ;;
3452 no) enable_static=no ;;
3453 *)
3454 enable_static=no
3455 # Look at the argument we got. We use all the common list separators.
3456 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3457 for pkg in $enableval; do
3458 IFS="$lt_save_ifs"
3459 if test "X$pkg" = "X$p"; then
3460 enable_static=yes
3461 fi
3462 done
3463 IFS="$lt_save_ifs"
3464 ;;
3465 esac
3466else
3467 enable_static=yes
3468fi;
3469
3470# Check whether --enable-fast-install or --disable-fast-install was given.
3471if test "${enable_fast_install+set}" = set; then
3472 enableval="$enable_fast_install"
3473 p=${PACKAGE-default}
3474 case $enableval in
3475 yes) enable_fast_install=yes ;;
3476 no) enable_fast_install=no ;;
3477 *)
3478 enable_fast_install=no
3479 # Look at the argument we got. We use all the common list separators.
3480 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3481 for pkg in $enableval; do
3482 IFS="$lt_save_ifs"
3483 if test "X$pkg" = "X$p"; then
3484 enable_fast_install=yes
3485 fi
3486 done
3487 IFS="$lt_save_ifs"
3488 ;;
3489 esac
3490else
3491 enable_fast_install=yes
3492fi;
3493
3494echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3495echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3496if test "${lt_cv_path_SED+set}" = set; then
3497 echo $ECHO_N "(cached) $ECHO_C" >&6
3498else
3499 # Loop through the user's path and test for sed and gsed.
3500# Then use that list of sed's as ones to test for truncation.
3501as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3502for as_dir in $PATH
3503do
3504 IFS=$as_save_IFS
3505 test -z "$as_dir" && as_dir=.
3506 for lt_ac_prog in sed gsed; do
3507 for ac_exec_ext in '' $ac_executable_extensions; do
3508 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3509 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3510 fi
3511 done
3512 done
3513done
3514IFS=$as_save_IFS
3515lt_ac_max=0
3516lt_ac_count=0
3517# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3518# along with /bin/sed that truncates output.
3519for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3520 test ! -f $lt_ac_sed && continue
3521 cat /dev/null > conftest.in
3522 lt_ac_count=0
3523 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3524 # Check for GNU sed and select it if it is found.
3525 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3526 lt_cv_path_SED=$lt_ac_sed
3527 break
3528 fi
3529 while true; do
3530 cat conftest.in conftest.in >conftest.tmp
3531 mv conftest.tmp conftest.in
3532 cp conftest.in conftest.nl
3533 echo >>conftest.nl
3534 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3535 cmp -s conftest.out conftest.nl || break
3536 # 10000 chars as input seems more than enough
3537 test $lt_ac_count -gt 10 && break
3538 lt_ac_count=`expr $lt_ac_count + 1`
3539 if test $lt_ac_count -gt $lt_ac_max; then
3540 lt_ac_max=$lt_ac_count
3541 lt_cv_path_SED=$lt_ac_sed
3542 fi
3543 done
3544done
3545
3546fi
3547
3548SED=$lt_cv_path_SED
3549
3550echo "$as_me:$LINENO: result: $SED" >&5
3551echo "${ECHO_T}$SED" >&6
3552
3553echo "$as_me:$LINENO: checking for egrep" >&5
3554echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3555if test "${ac_cv_prog_egrep+set}" = set; then
3556 echo $ECHO_N "(cached) $ECHO_C" >&6
3557else
3558 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3559 then ac_cv_prog_egrep='grep -E'
3560 else ac_cv_prog_egrep='egrep'
3561 fi
3562fi
3563echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3564echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3565 EGREP=$ac_cv_prog_egrep
3566
3567
3568
3569# Check whether --with-gnu-ld or --without-gnu-ld was given.
3570if test "${with_gnu_ld+set}" = set; then
3571 withval="$with_gnu_ld"
3572 test "$withval" = no || with_gnu_ld=yes
3573else
3574 with_gnu_ld=no
3575fi;
3576ac_prog=ld
3577if test "$GCC" = yes; then
3578 # Check if gcc -print-prog-name=ld gives a path.
3579 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3580echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3581 case $host in
3582 *-*-mingw*)
3583 # gcc leaves a trailing carriage return which upsets mingw
3584 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3585 *)
3586 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3587 esac
3588 case $ac_prog in
3589 # Accept absolute paths.
3590 [\\/]* | ?:[\\/]*)
3591 re_direlt='/[^/][^/]*/\.\./'
3592 # Canonicalize the pathname of ld
3593 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3594 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3595 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3596 done
3597 test -z "$LD" && LD="$ac_prog"
3598 ;;
3599 "")
3600 # If it fails, then pretend we aren't using GCC.
3601 ac_prog=ld
3602 ;;
3603 *)
3604 # If it is relative, then search for the first ld in PATH.
3605 with_gnu_ld=unknown
3606 ;;
3607 esac
3608elif test "$with_gnu_ld" = yes; then
3609 echo "$as_me:$LINENO: checking for GNU ld" >&5
3610echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3611else
3612 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3613echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3614fi
3615if test "${lt_cv_path_LD+set}" = set; then
3616 echo $ECHO_N "(cached) $ECHO_C" >&6
3617else
3618 if test -z "$LD"; then
3619 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3620 for ac_dir in $PATH; do
3621 IFS="$lt_save_ifs"
3622 test -z "$ac_dir" && ac_dir=.
3623 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3624 lt_cv_path_LD="$ac_dir/$ac_prog"
3625 # Check to see if the program is GNU ld. I'd rather use --version,
3626 # but apparently some variants of GNU ld only accept -v.
3627 # Break only if it was the GNU/non-GNU ld that we prefer.
3628 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3629 *GNU* | *'with BFD'*)
3630 test "$with_gnu_ld" != no && break
3631 ;;
3632 *)
3633 test "$with_gnu_ld" != yes && break
3634 ;;
3635 esac
3636 fi
3637 done
3638 IFS="$lt_save_ifs"
3639else
3640 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3641fi
3642fi
3643
3644LD="$lt_cv_path_LD"
3645if test -n "$LD"; then
3646 echo "$as_me:$LINENO: result: $LD" >&5
3647echo "${ECHO_T}$LD" >&6
3648else
3649 echo "$as_me:$LINENO: result: no" >&5
3650echo "${ECHO_T}no" >&6
3651fi
3652test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3653echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3654 { (exit 1); exit 1; }; }
3655echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3656echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3657if test "${lt_cv_prog_gnu_ld+set}" = set; then
3658 echo $ECHO_N "(cached) $ECHO_C" >&6
3659else
3660 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3661case `$LD -v 2>&1 </dev/null` in
3662*GNU* | *'with BFD'*)
3663 lt_cv_prog_gnu_ld=yes
3664 ;;
3665*)
3666 lt_cv_prog_gnu_ld=no
3667 ;;
3668esac
3669fi
3670echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3671echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3672with_gnu_ld=$lt_cv_prog_gnu_ld
3673
3674
3675echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3676echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3677if test "${lt_cv_ld_reload_flag+set}" = set; then
3678 echo $ECHO_N "(cached) $ECHO_C" >&6
3679else
3680 lt_cv_ld_reload_flag='-r'
3681fi
3682echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3683echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3684reload_flag=$lt_cv_ld_reload_flag
3685case $reload_flag in
3686"" | " "*) ;;
3687*) reload_flag=" $reload_flag" ;;
3688esac
3689reload_cmds='$LD$reload_flag -o $output$reload_objs'
3690case $host_os in
3691 darwin*)
3692 if test "$GCC" = yes; then
3693 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3694 else
3695 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3696 fi
3697 ;;
3698esac
3699
3700echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3701echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3702if test "${lt_cv_path_NM+set}" = set; then
3703 echo $ECHO_N "(cached) $ECHO_C" >&6
3704else
3705 if test -n "$NM"; then
3706 # Let the user override the test.
3707 lt_cv_path_NM="$NM"
3708else
3709 lt_nm_to_check="${ac_tool_prefix}nm"
3710 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3711 lt_nm_to_check="$lt_nm_to_check nm"
3712 fi
3713 for lt_tmp_nm in $lt_nm_to_check; do
3714 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3715 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3716 IFS="$lt_save_ifs"
3717 test -z "$ac_dir" && ac_dir=.
3718 tmp_nm="$ac_dir/$lt_tmp_nm"
3719 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3720 # Check to see if the nm accepts a BSD-compat flag.
3721 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3722 # nm: unknown option "B" ignored
3723 # Tru64's nm complains that /dev/null is an invalid object file
3724 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3725 */dev/null* | *'Invalid file or object type'*)
3726 lt_cv_path_NM="$tmp_nm -B"
3727 break
3728 ;;
3729 *)
3730 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3731 */dev/null*)
3732 lt_cv_path_NM="$tmp_nm -p"
3733 break
3734 ;;
3735 *)
3736 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3737 continue # so that we can try to find one that supports BSD flags
3738 ;;
3739 esac
3740 ;;
3741 esac
3742 fi
3743 done
3744 IFS="$lt_save_ifs"
3745 done
3746 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3747fi
3748fi
3749echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3750echo "${ECHO_T}$lt_cv_path_NM" >&6
3751NM="$lt_cv_path_NM"
3752
3753echo "$as_me:$LINENO: checking whether ln -s works" >&5
3754echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3755LN_S=$as_ln_s
3756if test "$LN_S" = "ln -s"; then
3757 echo "$as_me:$LINENO: result: yes" >&5
3758echo "${ECHO_T}yes" >&6
3759else
3760 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3761echo "${ECHO_T}no, using $LN_S" >&6
3762fi
3763
3764echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3765echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3766if test "${lt_cv_deplibs_check_method+set}" = set; then
3767 echo $ECHO_N "(cached) $ECHO_C" >&6
3768else
3769 lt_cv_file_magic_cmd='$MAGIC_CMD'
3770lt_cv_file_magic_test_file=
3771lt_cv_deplibs_check_method='unknown'
3772# Need to set the preceding variable on all platforms that support
3773# interlibrary dependencies.
3774# 'none' -- dependencies not supported.
3775# `unknown' -- same as none, but documents that we really don't know.
3776# 'pass_all' -- all dependencies passed with no checks.
3777# 'test_compile' -- check by making test program.
3778# 'file_magic [[regex]]' -- check by looking for files in library path
3779# which responds to the $file_magic_cmd with a given extended regex.
3780# If you have `file' or equivalent on your system and you're not sure
3781# whether `pass_all' will *always* work, you probably want this one.
3782
3783case $host_os in
3784aix4* | aix5*)
3785 lt_cv_deplibs_check_method=pass_all
3786 ;;
3787
3788beos*)
3789 lt_cv_deplibs_check_method=pass_all
3790 ;;
3791
3792bsdi[45]*)
3793 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3794 lt_cv_file_magic_cmd='/usr/bin/file -L'
3795 lt_cv_file_magic_test_file=/shlib/libc.so
3796 ;;
3797
3798cygwin*)
3799 # func_win32_libid is a shell function defined in ltmain.sh
3800 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3801 lt_cv_file_magic_cmd='func_win32_libid'
3802 ;;
3803
3804mingw* | pw32*)
3805 # Base MSYS/MinGW do not provide the 'file' command needed by
3806 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3807 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3808 lt_cv_file_magic_cmd='$OBJDUMP -f'
3809 ;;
3810
3811darwin* | rhapsody*)
3812 lt_cv_deplibs_check_method=pass_all
3813 ;;
3814
3815freebsd* | kfreebsd*-gnu | dragonfly*)
3816 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3817 case $host_cpu in
3818 i*86 )
3819 # Not sure whether the presence of OpenBSD here was a mistake.
3820 # Let's accept both of them until this is cleared up.
3821 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3822 lt_cv_file_magic_cmd=/usr/bin/file
3823 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3824 ;;
3825 esac
3826 else
3827 lt_cv_deplibs_check_method=pass_all
3828 fi
3829 ;;
3830
3831gnu*)
3832 lt_cv_deplibs_check_method=pass_all
3833 ;;
3834
3835hpux10.20* | hpux11*)
3836 lt_cv_file_magic_cmd=/usr/bin/file
3837 case $host_cpu in
3838 ia64*)
3839 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3840 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3841 ;;
3842 hppa*64*)
3843 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]'
3844 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3845 ;;
3846 *)
3847 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3848 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3849 ;;
3850 esac
3851 ;;
3852
3853interix3*)
3854 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3855 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
3856 ;;
3857
3858irix5* | irix6* | nonstopux*)
3859 case $LD in
3860 *-32|*"-32 ") libmagic=32-bit;;
3861 *-n32|*"-n32 ") libmagic=N32;;
3862 *-64|*"-64 ") libmagic=64-bit;;
3863 *) libmagic=never-match;;
3864 esac
3865 lt_cv_deplibs_check_method=pass_all
3866 ;;
3867
3868# This must be Linux ELF.
3869linux*)
3870 lt_cv_deplibs_check_method=pass_all
3871 ;;
3872
3873netbsd*)
3874 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3875 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3876 else
3877 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3878 fi
3879 ;;
3880
3881newos6*)
3882 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3883 lt_cv_file_magic_cmd=/usr/bin/file
3884 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3885 ;;
3886
3887nto-qnx*)
3888 lt_cv_deplibs_check_method=unknown
3889 ;;
3890
3891openbsd*)
3892 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3893 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3894 else
3895 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3896 fi
3897 ;;
3898
3899osf3* | osf4* | osf5*)
3900 lt_cv_deplibs_check_method=pass_all
3901 ;;
3902
3903solaris*)
3904 lt_cv_deplibs_check_method=pass_all
3905 ;;
3906
3907sysv4 | sysv4.3*)
3908 case $host_vendor in
3909 motorola)
3910 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]'
3911 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3912 ;;
3913 ncr)
3914 lt_cv_deplibs_check_method=pass_all
3915 ;;
3916 sequent)
3917 lt_cv_file_magic_cmd='/bin/file'
3918 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3919 ;;
3920 sni)
3921 lt_cv_file_magic_cmd='/bin/file'
3922 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3923 lt_cv_file_magic_test_file=/lib/libc.so
3924 ;;
3925 siemens)
3926 lt_cv_deplibs_check_method=pass_all
3927 ;;
3928 pc)
3929 lt_cv_deplibs_check_method=pass_all
3930 ;;
3931 esac
3932 ;;
3933
3934sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3935 lt_cv_deplibs_check_method=pass_all
3936 ;;
3937esac
3938
3939fi
3940echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3941echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3942file_magic_cmd=$lt_cv_file_magic_cmd
3943deplibs_check_method=$lt_cv_deplibs_check_method
3944test -z "$deplibs_check_method" && deplibs_check_method=unknown
3945
3946
3947
3948
3949# If no C compiler was specified, use CC.
3950LTCC=${LTCC-"$CC"}
3951
3952# If no C compiler flags were specified, use CFLAGS.
3953LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
3954
3955# Allow CC to be a program name with arguments.
3956compiler=$CC
3957
3958
3959# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3960if test "${enable_libtool_lock+set}" = set; then
3961 enableval="$enable_libtool_lock"
3962
3963fi;
3964test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3965
3966# Some flags need to be propagated to the compiler or linker for good
3967# libtool support.
3968case $host in
3969ia64-*-hpux*)
3970 # Find out which ABI we are using.
3971 echo 'int i;' > conftest.$ac_ext
3972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3973 (eval $ac_compile) 2>&5
3974 ac_status=$?
3975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3976 (exit $ac_status); }; then
3977 case `/usr/bin/file conftest.$ac_objext` in
3978 *ELF-32*)
3979 HPUX_IA64_MODE="32"
3980 ;;
3981 *ELF-64*)
3982 HPUX_IA64_MODE="64"
3983 ;;
3984 esac
3985 fi
3986 rm -rf conftest*
3987 ;;
3988*-*-irix6*)
3989 # Find out which ABI we are using.
86933a6e 3990 echo '#line 3990 "configure"' > conftest.$ac_ext
bf9f3bac 3991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3992 (eval $ac_compile) 2>&5
3993 ac_status=$?
3994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3995 (exit $ac_status); }; then
3996 if test "$lt_cv_prog_gnu_ld" = yes; then
3997 case `/usr/bin/file conftest.$ac_objext` in
3998 *32-bit*)
3999 LD="${LD-ld} -melf32bsmip"
4000 ;;
4001 *N32*)
4002 LD="${LD-ld} -melf32bmipn32"
4003 ;;
4004 *64-bit*)
4005 LD="${LD-ld} -melf64bmip"
4006 ;;
4007 esac
4008 else
4009 case `/usr/bin/file conftest.$ac_objext` in
4010 *32-bit*)
4011 LD="${LD-ld} -32"
4012 ;;
4013 *N32*)
4014 LD="${LD-ld} -n32"
4015 ;;
4016 *64-bit*)
4017 LD="${LD-ld} -64"
4018 ;;
4019 esac
4020 fi
4021 fi
4022 rm -rf conftest*
4023 ;;
4024
4025x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4026 # Find out which ABI we are using.
4027 echo 'int i;' > conftest.$ac_ext
4028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4029 (eval $ac_compile) 2>&5
4030 ac_status=$?
4031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4032 (exit $ac_status); }; then
4033 case `/usr/bin/file conftest.o` in
4034 *32-bit*)
4035 case $host in
4036 x86_64-*linux*)
4037 LD="${LD-ld} -m elf_i386"
4038 ;;
4039 ppc64-*linux*|powerpc64-*linux*)
4040 LD="${LD-ld} -m elf32ppclinux"
4041 ;;
4042 s390x-*linux*)
4043 LD="${LD-ld} -m elf_s390"
4044 ;;
4045 sparc64-*linux*)
4046 LD="${LD-ld} -m elf32_sparc"
4047 ;;
4048 esac
4049 ;;
4050 *64-bit*)
4051 case $host in
4052 x86_64-*linux*)
4053 LD="${LD-ld} -m elf_x86_64"
4054 ;;
4055 ppc*-*linux*|powerpc*-*linux*)
4056 LD="${LD-ld} -m elf64ppc"
4057 ;;
4058 s390*-*linux*)
4059 LD="${LD-ld} -m elf64_s390"
4060 ;;
4061 sparc*-*linux*)
4062 LD="${LD-ld} -m elf64_sparc"
4063 ;;
4064 esac
4065 ;;
4066 esac
4067 fi
4068 rm -rf conftest*
4069 ;;
4070
4071*-*-sco3.2v5*)
4072 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4073 SAVE_CFLAGS="$CFLAGS"
4074 CFLAGS="$CFLAGS -belf"
4075 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4076echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4077if test "${lt_cv_cc_needs_belf+set}" = set; then
4078 echo $ECHO_N "(cached) $ECHO_C" >&6
4079else
4080 ac_ext=c
4081ac_cpp='$CPP $CPPFLAGS'
4082ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4083ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4084ac_compiler_gnu=$ac_cv_c_compiler_gnu
4085
4086 cat >conftest.$ac_ext <<_ACEOF
4087/* confdefs.h. */
4088_ACEOF
4089cat confdefs.h >>conftest.$ac_ext
4090cat >>conftest.$ac_ext <<_ACEOF
4091/* end confdefs.h. */
4092
4093int
4094main ()
4095{
4096
4097 ;
4098 return 0;
4099}
4100_ACEOF
4101rm -f conftest.$ac_objext conftest$ac_exeext
4102if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4103 (eval $ac_link) 2>conftest.er1
4104 ac_status=$?
4105 grep -v '^ *+' conftest.er1 >conftest.err
4106 rm -f conftest.er1
4107 cat conftest.err >&5
4108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4109 (exit $ac_status); } &&
4110 { ac_try='test -z "$ac_c_werror_flag"
4111 || test ! -s conftest.err'
4112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4113 (eval $ac_try) 2>&5
4114 ac_status=$?
4115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4116 (exit $ac_status); }; } &&
4117 { ac_try='test -s conftest$ac_exeext'
4118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4119 (eval $ac_try) 2>&5
4120 ac_status=$?
4121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4122 (exit $ac_status); }; }; then
4123 lt_cv_cc_needs_belf=yes
4124else
4125 echo "$as_me: failed program was:" >&5
4126sed 's/^/| /' conftest.$ac_ext >&5
4127
4128lt_cv_cc_needs_belf=no
4129fi
4130rm -f conftest.err conftest.$ac_objext \
4131 conftest$ac_exeext conftest.$ac_ext
4132 ac_ext=c
4133ac_cpp='$CPP $CPPFLAGS'
4134ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4135ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4136ac_compiler_gnu=$ac_cv_c_compiler_gnu
4137
4138fi
4139echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4140echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4141 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4142 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4143 CFLAGS="$SAVE_CFLAGS"
4144 fi
4145 ;;
4146sparc*-*solaris*)
4147 # Find out which ABI we are using.
4148 echo 'int i;' > conftest.$ac_ext
4149 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4150 (eval $ac_compile) 2>&5
4151 ac_status=$?
4152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4153 (exit $ac_status); }; then
4154 case `/usr/bin/file conftest.o` in
4155 *64-bit*)
4156 case $lt_cv_prog_gnu_ld in
4157 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4158 *) LD="${LD-ld} -64" ;;
4159 esac
4160 ;;
4161 esac
4162 fi
4163 rm -rf conftest*
4164 ;;
4165
4166
4167esac
4168
4169need_locks="$enable_libtool_lock"
4170
4171
4172ac_ext=c
4173ac_cpp='$CPP $CPPFLAGS'
4174ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4175ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4176ac_compiler_gnu=$ac_cv_c_compiler_gnu
4177echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4178echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4179# On Suns, sometimes $CPP names a directory.
4180if test -n "$CPP" && test -d "$CPP"; then
4181 CPP=
4182fi
4183if test -z "$CPP"; then
4184 if test "${ac_cv_prog_CPP+set}" = set; then
4185 echo $ECHO_N "(cached) $ECHO_C" >&6
4186else
4187 # Double quotes because CPP needs to be expanded
4188 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4189 do
4190 ac_preproc_ok=false
4191for ac_c_preproc_warn_flag in '' yes
4192do
4193 # Use a header file that comes with gcc, so configuring glibc
4194 # with a fresh cross-compiler works.
4195 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4196 # <limits.h> exists even on freestanding compilers.
4197 # On the NeXT, cc -E runs the code through the compiler's parser,
4198 # not just through cpp. "Syntax error" is here to catch this case.
4199 cat >conftest.$ac_ext <<_ACEOF
4200/* confdefs.h. */
4201_ACEOF
4202cat confdefs.h >>conftest.$ac_ext
4203cat >>conftest.$ac_ext <<_ACEOF
4204/* end confdefs.h. */
4205#ifdef __STDC__
4206# include <limits.h>
4207#else
4208# include <assert.h>
4209#endif
4210 Syntax error
4211_ACEOF
4212if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4213 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4214 ac_status=$?
4215 grep -v '^ *+' conftest.er1 >conftest.err
4216 rm -f conftest.er1
4217 cat conftest.err >&5
4218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4219 (exit $ac_status); } >/dev/null; then
4220 if test -s conftest.err; then
4221 ac_cpp_err=$ac_c_preproc_warn_flag
4222 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4223 else
4224 ac_cpp_err=
4225 fi
4226else
4227 ac_cpp_err=yes
4228fi
4229if test -z "$ac_cpp_err"; then
4230 :
4231else
4232 echo "$as_me: failed program was:" >&5
4233sed 's/^/| /' conftest.$ac_ext >&5
4234
4235 # Broken: fails on valid input.
4236continue
4237fi
4238rm -f conftest.err conftest.$ac_ext
4239
4240 # OK, works on sane cases. Now check whether non-existent headers
4241 # can be detected and how.
4242 cat >conftest.$ac_ext <<_ACEOF
4243/* confdefs.h. */
4244_ACEOF
4245cat confdefs.h >>conftest.$ac_ext
4246cat >>conftest.$ac_ext <<_ACEOF
4247/* end confdefs.h. */
4248#include <ac_nonexistent.h>
4249_ACEOF
4250if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4251 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4252 ac_status=$?
4253 grep -v '^ *+' conftest.er1 >conftest.err
4254 rm -f conftest.er1
4255 cat conftest.err >&5
4256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4257 (exit $ac_status); } >/dev/null; then
4258 if test -s conftest.err; then
4259 ac_cpp_err=$ac_c_preproc_warn_flag
4260 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4261 else
4262 ac_cpp_err=
4263 fi
4264else
4265 ac_cpp_err=yes
4266fi
4267if test -z "$ac_cpp_err"; then
4268 # Broken: success on invalid input.
4269continue
4270else
4271 echo "$as_me: failed program was:" >&5
4272sed 's/^/| /' conftest.$ac_ext >&5
4273
4274 # Passes both tests.
4275ac_preproc_ok=:
4276break
4277fi
4278rm -f conftest.err conftest.$ac_ext
4279
4280done
4281# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4282rm -f conftest.err conftest.$ac_ext
4283if $ac_preproc_ok; then
4284 break
4285fi
4286
4287 done
4288 ac_cv_prog_CPP=$CPP
4289
4290fi
4291 CPP=$ac_cv_prog_CPP
4292else
4293 ac_cv_prog_CPP=$CPP
4294fi
4295echo "$as_me:$LINENO: result: $CPP" >&5
4296echo "${ECHO_T}$CPP" >&6
4297ac_preproc_ok=false
4298for ac_c_preproc_warn_flag in '' yes
4299do
4300 # Use a header file that comes with gcc, so configuring glibc
4301 # with a fresh cross-compiler works.
4302 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4303 # <limits.h> exists even on freestanding compilers.
4304 # On the NeXT, cc -E runs the code through the compiler's parser,
4305 # not just through cpp. "Syntax error" is here to catch this case.
4306 cat >conftest.$ac_ext <<_ACEOF
4307/* confdefs.h. */
4308_ACEOF
4309cat confdefs.h >>conftest.$ac_ext
4310cat >>conftest.$ac_ext <<_ACEOF
4311/* end confdefs.h. */
4312#ifdef __STDC__
4313# include <limits.h>
4314#else
4315# include <assert.h>
4316#endif
4317 Syntax error
4318_ACEOF
4319if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4320 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4321 ac_status=$?
4322 grep -v '^ *+' conftest.er1 >conftest.err
4323 rm -f conftest.er1
4324 cat conftest.err >&5
4325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4326 (exit $ac_status); } >/dev/null; then
4327 if test -s conftest.err; then
4328 ac_cpp_err=$ac_c_preproc_warn_flag
4329 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4330 else
4331 ac_cpp_err=
4332 fi
4333else
4334 ac_cpp_err=yes
4335fi
4336if test -z "$ac_cpp_err"; then
4337 :
4338else
4339 echo "$as_me: failed program was:" >&5
4340sed 's/^/| /' conftest.$ac_ext >&5
4341
4342 # Broken: fails on valid input.
4343continue
4344fi
4345rm -f conftest.err conftest.$ac_ext
4346
4347 # OK, works on sane cases. Now check whether non-existent headers
4348 # can be detected and how.
4349 cat >conftest.$ac_ext <<_ACEOF
4350/* confdefs.h. */
4351_ACEOF
4352cat confdefs.h >>conftest.$ac_ext
4353cat >>conftest.$ac_ext <<_ACEOF
4354/* end confdefs.h. */
4355#include <ac_nonexistent.h>
4356_ACEOF
4357if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4358 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4359 ac_status=$?
4360 grep -v '^ *+' conftest.er1 >conftest.err
4361 rm -f conftest.er1
4362 cat conftest.err >&5
4363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4364 (exit $ac_status); } >/dev/null; then
4365 if test -s conftest.err; then
4366 ac_cpp_err=$ac_c_preproc_warn_flag
4367 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4368 else
4369 ac_cpp_err=
4370 fi
4371else
4372 ac_cpp_err=yes
4373fi
4374if test -z "$ac_cpp_err"; then
4375 # Broken: success on invalid input.
4376continue
4377else
4378 echo "$as_me: failed program was:" >&5
4379sed 's/^/| /' conftest.$ac_ext >&5
4380
4381 # Passes both tests.
4382ac_preproc_ok=:
4383break
4384fi
4385rm -f conftest.err conftest.$ac_ext
4386
4387done
4388# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4389rm -f conftest.err conftest.$ac_ext
4390if $ac_preproc_ok; then
4391 :
4392else
4393 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4394See \`config.log' for more details." >&5
4395echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4396See \`config.log' for more details." >&2;}
4397 { (exit 1); exit 1; }; }
4398fi
4399
4400ac_ext=c
4401ac_cpp='$CPP $CPPFLAGS'
4402ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4403ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4404ac_compiler_gnu=$ac_cv_c_compiler_gnu
4405
4406
4407echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4408echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4409if test "${ac_cv_header_stdc+set}" = set; then
4410 echo $ECHO_N "(cached) $ECHO_C" >&6
4411else
4412 cat >conftest.$ac_ext <<_ACEOF
4413/* confdefs.h. */
4414_ACEOF
4415cat confdefs.h >>conftest.$ac_ext
4416cat >>conftest.$ac_ext <<_ACEOF
4417/* end confdefs.h. */
4418#include <stdlib.h>
4419#include <stdarg.h>
4420#include <string.h>
4421#include <float.h>
4422
4423int
4424main ()
4425{
4426
4427 ;
4428 return 0;
4429}
4430_ACEOF
4431rm -f conftest.$ac_objext
4432if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4433 (eval $ac_compile) 2>conftest.er1
4434 ac_status=$?
4435 grep -v '^ *+' conftest.er1 >conftest.err
4436 rm -f conftest.er1
4437 cat conftest.err >&5
4438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4439 (exit $ac_status); } &&
4440 { ac_try='test -z "$ac_c_werror_flag"
4441 || test ! -s conftest.err'
4442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4443 (eval $ac_try) 2>&5
4444 ac_status=$?
4445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4446 (exit $ac_status); }; } &&
4447 { ac_try='test -s conftest.$ac_objext'
4448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4449 (eval $ac_try) 2>&5
4450 ac_status=$?
4451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4452 (exit $ac_status); }; }; then
4453 ac_cv_header_stdc=yes
4454else
4455 echo "$as_me: failed program was:" >&5
4456sed 's/^/| /' conftest.$ac_ext >&5
4457
4458ac_cv_header_stdc=no
4459fi
4460rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4461
4462if test $ac_cv_header_stdc = yes; then
4463 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4464 cat >conftest.$ac_ext <<_ACEOF
4465/* confdefs.h. */
4466_ACEOF
4467cat confdefs.h >>conftest.$ac_ext
4468cat >>conftest.$ac_ext <<_ACEOF
4469/* end confdefs.h. */
4470#include <string.h>
4471
4472_ACEOF
4473if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4474 $EGREP "memchr" >/dev/null 2>&1; then
4475 :
4476else
4477 ac_cv_header_stdc=no
4478fi
4479rm -f conftest*
4480
4481fi
4482
4483if test $ac_cv_header_stdc = yes; then
4484 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4485 cat >conftest.$ac_ext <<_ACEOF
4486/* confdefs.h. */
4487_ACEOF
4488cat confdefs.h >>conftest.$ac_ext
4489cat >>conftest.$ac_ext <<_ACEOF
4490/* end confdefs.h. */
4491#include <stdlib.h>
4492
4493_ACEOF
4494if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4495 $EGREP "free" >/dev/null 2>&1; then
4496 :
4497else
4498 ac_cv_header_stdc=no
4499fi
4500rm -f conftest*
4501
4502fi
4503
4504if test $ac_cv_header_stdc = yes; then
4505 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4506 if test "$cross_compiling" = yes; then
4507 :
4508else
4509 cat >conftest.$ac_ext <<_ACEOF
4510/* confdefs.h. */
4511_ACEOF
4512cat confdefs.h >>conftest.$ac_ext
4513cat >>conftest.$ac_ext <<_ACEOF
4514/* end confdefs.h. */
4515#include <ctype.h>
4516#if ((' ' & 0x0FF) == 0x020)
4517# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4518# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4519#else
4520# define ISLOWER(c) \
4521 (('a' <= (c) && (c) <= 'i') \
4522 || ('j' <= (c) && (c) <= 'r') \
4523 || ('s' <= (c) && (c) <= 'z'))
4524# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4525#endif
4526
4527#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4528int
4529main ()
4530{
4531 int i;
4532 for (i = 0; i < 256; i++)
4533 if (XOR (islower (i), ISLOWER (i))
4534 || toupper (i) != TOUPPER (i))
4535 exit(2);
4536 exit (0);
4537}
4538_ACEOF
4539rm -f conftest$ac_exeext
4540if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4541 (eval $ac_link) 2>&5
4542 ac_status=$?
4543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4544 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4546 (eval $ac_try) 2>&5
4547 ac_status=$?
4548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4549 (exit $ac_status); }; }; then
4550 :
4551else
4552 echo "$as_me: program exited with status $ac_status" >&5
4553echo "$as_me: failed program was:" >&5
4554sed 's/^/| /' conftest.$ac_ext >&5
4555
4556( exit $ac_status )
4557ac_cv_header_stdc=no
4558fi
4559rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4560fi
4561fi
4562fi
4563echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4564echo "${ECHO_T}$ac_cv_header_stdc" >&6
4565if test $ac_cv_header_stdc = yes; then
4566
4567cat >>confdefs.h <<\_ACEOF
4568#define STDC_HEADERS 1
4569_ACEOF
4570
4571fi
4572
4573# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4584 inttypes.h stdint.h unistd.h
4585do
4586as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4587echo "$as_me:$LINENO: checking for $ac_header" >&5
4588echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4589if eval "test \"\${$as_ac_Header+set}\" = set"; then
4590 echo $ECHO_N "(cached) $ECHO_C" >&6
4591else
4592 cat >conftest.$ac_ext <<_ACEOF
4593/* confdefs.h. */
4594_ACEOF
4595cat confdefs.h >>conftest.$ac_ext
4596cat >>conftest.$ac_ext <<_ACEOF
4597/* end confdefs.h. */
4598$ac_includes_default
4599
4600#include <$ac_header>
4601_ACEOF
4602rm -f conftest.$ac_objext
4603if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4604 (eval $ac_compile) 2>conftest.er1
4605 ac_status=$?
4606 grep -v '^ *+' conftest.er1 >conftest.err
4607 rm -f conftest.er1
4608 cat conftest.err >&5
4609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4610 (exit $ac_status); } &&
4611 { ac_try='test -z "$ac_c_werror_flag"
4612 || test ! -s conftest.err'
4613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4614 (eval $ac_try) 2>&5
4615 ac_status=$?
4616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4617 (exit $ac_status); }; } &&
4618 { ac_try='test -s conftest.$ac_objext'
4619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4620 (eval $ac_try) 2>&5
4621 ac_status=$?
4622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4623 (exit $ac_status); }; }; then
4624 eval "$as_ac_Header=yes"
4625else
4626 echo "$as_me: failed program was:" >&5
4627sed 's/^/| /' conftest.$ac_ext >&5
4628
4629eval "$as_ac_Header=no"
4630fi
4631rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4632fi
4633echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4634echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4635if test `eval echo '${'$as_ac_Header'}'` = yes; then
4636 cat >>confdefs.h <<_ACEOF
4637#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4638_ACEOF
4639
4640fi
4641
4642done
4643
4644
4645
4646for ac_header in dlfcn.h
4647do
4648as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4649if eval "test \"\${$as_ac_Header+set}\" = set"; then
4650 echo "$as_me:$LINENO: checking for $ac_header" >&5
4651echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4652if eval "test \"\${$as_ac_Header+set}\" = set"; then
4653 echo $ECHO_N "(cached) $ECHO_C" >&6
4654fi
4655echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4656echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4657else
4658 # Is the header compilable?
4659echo "$as_me:$LINENO: checking $ac_header usability" >&5
4660echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4661cat >conftest.$ac_ext <<_ACEOF
4662/* confdefs.h. */
4663_ACEOF
4664cat confdefs.h >>conftest.$ac_ext
4665cat >>conftest.$ac_ext <<_ACEOF
4666/* end confdefs.h. */
4667$ac_includes_default
4668#include <$ac_header>
4669_ACEOF
4670rm -f conftest.$ac_objext
4671if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4672 (eval $ac_compile) 2>conftest.er1
4673 ac_status=$?
4674 grep -v '^ *+' conftest.er1 >conftest.err
4675 rm -f conftest.er1
4676 cat conftest.err >&5
4677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4678 (exit $ac_status); } &&
4679 { ac_try='test -z "$ac_c_werror_flag"
4680 || test ! -s conftest.err'
4681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4682 (eval $ac_try) 2>&5
4683 ac_status=$?
4684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4685 (exit $ac_status); }; } &&
4686 { ac_try='test -s conftest.$ac_objext'
4687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4688 (eval $ac_try) 2>&5
4689 ac_status=$?
4690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4691 (exit $ac_status); }; }; then
4692 ac_header_compiler=yes
4693else
4694 echo "$as_me: failed program was:" >&5
4695sed 's/^/| /' conftest.$ac_ext >&5
4696
4697ac_header_compiler=no
4698fi
4699rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4700echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4701echo "${ECHO_T}$ac_header_compiler" >&6
4702
4703# Is the header present?
4704echo "$as_me:$LINENO: checking $ac_header presence" >&5
4705echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4706cat >conftest.$ac_ext <<_ACEOF
4707/* confdefs.h. */
4708_ACEOF
4709cat confdefs.h >>conftest.$ac_ext
4710cat >>conftest.$ac_ext <<_ACEOF
4711/* end confdefs.h. */
4712#include <$ac_header>
4713_ACEOF
4714if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4715 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4716 ac_status=$?
4717 grep -v '^ *+' conftest.er1 >conftest.err
4718 rm -f conftest.er1
4719 cat conftest.err >&5
4720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4721 (exit $ac_status); } >/dev/null; then
4722 if test -s conftest.err; then
4723 ac_cpp_err=$ac_c_preproc_warn_flag
4724 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4725 else
4726 ac_cpp_err=
4727 fi
4728else
4729 ac_cpp_err=yes
4730fi
4731if test -z "$ac_cpp_err"; then
4732 ac_header_preproc=yes
4733else
4734 echo "$as_me: failed program was:" >&5
4735sed 's/^/| /' conftest.$ac_ext >&5
4736
4737 ac_header_preproc=no
4738fi
4739rm -f conftest.err conftest.$ac_ext
4740echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4741echo "${ECHO_T}$ac_header_preproc" >&6
4742
4743# So? What about this header?
4744case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4745 yes:no: )
4746 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4747echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4748 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4749echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4750 ac_header_preproc=yes
4751 ;;
4752 no:yes:* )
4753 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4754echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4755 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4756echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4757 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4758echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4759 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4760echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4761 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4762echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4763 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4764echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4765 (
4766 cat <<\_ASBOX
4767## ------------------------------------------ ##
4768## Report this to the AC_PACKAGE_NAME lists. ##
4769## ------------------------------------------ ##
4770_ASBOX
4771 ) |
4772 sed "s/^/$as_me: WARNING: /" >&2
4773 ;;
4774esac
4775echo "$as_me:$LINENO: checking for $ac_header" >&5
4776echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4777if eval "test \"\${$as_ac_Header+set}\" = set"; then
4778 echo $ECHO_N "(cached) $ECHO_C" >&6
4779else
4780 eval "$as_ac_Header=\$ac_header_preproc"
4781fi
4782echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4783echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4784
4785fi
4786if test `eval echo '${'$as_ac_Header'}'` = yes; then
4787 cat >>confdefs.h <<_ACEOF
4788#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4789_ACEOF
4790
4791fi
4792
4793done
4794
4795ac_ext=cc
4796ac_cpp='$CXXCPP $CPPFLAGS'
4797ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4798ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4799ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4800if test -n "$ac_tool_prefix"; then
4801 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4802 do
4803 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4804set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4805echo "$as_me:$LINENO: checking for $ac_word" >&5
4806echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4807if test "${ac_cv_prog_CXX+set}" = set; then
4808 echo $ECHO_N "(cached) $ECHO_C" >&6
4809else
4810 if test -n "$CXX"; then
4811 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4812else
4813as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4814for as_dir in $PATH
4815do
4816 IFS=$as_save_IFS
4817 test -z "$as_dir" && as_dir=.
4818 for ac_exec_ext in '' $ac_executable_extensions; do
4819 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4820 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4821 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4822 break 2
4823 fi
4824done
4825done
4826
4827fi
4828fi
4829CXX=$ac_cv_prog_CXX
4830if test -n "$CXX"; then
4831 echo "$as_me:$LINENO: result: $CXX" >&5
4832echo "${ECHO_T}$CXX" >&6
4833else
4834 echo "$as_me:$LINENO: result: no" >&5
4835echo "${ECHO_T}no" >&6
4836fi
4837
4838 test -n "$CXX" && break
4839 done
4840fi
4841if test -z "$CXX"; then
4842 ac_ct_CXX=$CXX
4843 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4844do
4845 # Extract the first word of "$ac_prog", so it can be a program name with args.
4846set dummy $ac_prog; ac_word=$2
4847echo "$as_me:$LINENO: checking for $ac_word" >&5
4848echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4849if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4850 echo $ECHO_N "(cached) $ECHO_C" >&6
4851else
4852 if test -n "$ac_ct_CXX"; then
4853 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4854else
4855as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4856for as_dir in $PATH
4857do
4858 IFS=$as_save_IFS
4859 test -z "$as_dir" && as_dir=.
4860 for ac_exec_ext in '' $ac_executable_extensions; do
4861 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4862 ac_cv_prog_ac_ct_CXX="$ac_prog"
4863 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4864 break 2
4865 fi
4866done
4867done
4868
4869fi
4870fi
4871ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4872if test -n "$ac_ct_CXX"; then
4873 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4874echo "${ECHO_T}$ac_ct_CXX" >&6
4875else
4876 echo "$as_me:$LINENO: result: no" >&5
4877echo "${ECHO_T}no" >&6
4878fi
4879
4880 test -n "$ac_ct_CXX" && break
4881done
4882test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4883
4884 CXX=$ac_ct_CXX
4885fi
4886
4887
4888# Provide some information about the compiler.
4889echo "$as_me:$LINENO:" \
4890 "checking for C++ compiler version" >&5
4891ac_compiler=`set X $ac_compile; echo $2`
4892{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4893 (eval $ac_compiler --version </dev/null >&5) 2>&5
4894 ac_status=$?
4895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4896 (exit $ac_status); }
4897{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4898 (eval $ac_compiler -v </dev/null >&5) 2>&5
4899 ac_status=$?
4900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4901 (exit $ac_status); }
4902{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4903 (eval $ac_compiler -V </dev/null >&5) 2>&5
4904 ac_status=$?
4905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4906 (exit $ac_status); }
4907
4908echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4909echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4910if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4911 echo $ECHO_N "(cached) $ECHO_C" >&6
4912else
4913 cat >conftest.$ac_ext <<_ACEOF
4914/* confdefs.h. */
4915_ACEOF
4916cat confdefs.h >>conftest.$ac_ext
4917cat >>conftest.$ac_ext <<_ACEOF
4918/* end confdefs.h. */
4919
4920int
4921main ()
4922{
4923#ifndef __GNUC__
4924 choke me
4925#endif
4926
4927 ;
4928 return 0;
4929}
4930_ACEOF
4931rm -f conftest.$ac_objext
4932if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4933 (eval $ac_compile) 2>conftest.er1
4934 ac_status=$?
4935 grep -v '^ *+' conftest.er1 >conftest.err
4936 rm -f conftest.er1
4937 cat conftest.err >&5
4938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4939 (exit $ac_status); } &&
4940 { ac_try='test -z "$ac_cxx_werror_flag"
4941 || test ! -s conftest.err'
4942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4943 (eval $ac_try) 2>&5
4944 ac_status=$?
4945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4946 (exit $ac_status); }; } &&
4947 { ac_try='test -s conftest.$ac_objext'
4948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4949 (eval $ac_try) 2>&5
4950 ac_status=$?
4951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4952 (exit $ac_status); }; }; then
4953 ac_compiler_gnu=yes
4954else
4955 echo "$as_me: failed program was:" >&5
4956sed 's/^/| /' conftest.$ac_ext >&5
4957
4958ac_compiler_gnu=no
4959fi
4960rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4961ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4962
4963fi
4964echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4965echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4966GXX=`test $ac_compiler_gnu = yes && echo yes`
4967ac_test_CXXFLAGS=${CXXFLAGS+set}
4968ac_save_CXXFLAGS=$CXXFLAGS
4969CXXFLAGS="-g"
4970echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4971echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4972if test "${ac_cv_prog_cxx_g+set}" = set; then
4973 echo $ECHO_N "(cached) $ECHO_C" >&6
4974else
4975 cat >conftest.$ac_ext <<_ACEOF
4976/* confdefs.h. */
4977_ACEOF
4978cat confdefs.h >>conftest.$ac_ext
4979cat >>conftest.$ac_ext <<_ACEOF
4980/* end confdefs.h. */
4981
4982int
4983main ()
4984{
4985
4986 ;
4987 return 0;
4988}
4989_ACEOF
4990rm -f conftest.$ac_objext
4991if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4992 (eval $ac_compile) 2>conftest.er1
4993 ac_status=$?
4994 grep -v '^ *+' conftest.er1 >conftest.err
4995 rm -f conftest.er1
4996 cat conftest.err >&5
4997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4998 (exit $ac_status); } &&
4999 { ac_try='test -z "$ac_cxx_werror_flag"
5000 || test ! -s conftest.err'
5001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5002 (eval $ac_try) 2>&5
5003 ac_status=$?
5004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5005 (exit $ac_status); }; } &&
5006 { ac_try='test -s conftest.$ac_objext'
5007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5008 (eval $ac_try) 2>&5
5009 ac_status=$?
5010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5011 (exit $ac_status); }; }; then
5012 ac_cv_prog_cxx_g=yes
5013else
5014 echo "$as_me: failed program was:" >&5
5015sed 's/^/| /' conftest.$ac_ext >&5
5016
5017ac_cv_prog_cxx_g=no
5018fi
5019rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5020fi
5021echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5022echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
5023if test "$ac_test_CXXFLAGS" = set; then
5024 CXXFLAGS=$ac_save_CXXFLAGS
5025elif test $ac_cv_prog_cxx_g = yes; then
5026 if test "$GXX" = yes; then
5027 CXXFLAGS="-g -O2"
5028 else
5029 CXXFLAGS="-g"
5030 fi
5031else
5032 if test "$GXX" = yes; then
5033 CXXFLAGS="-O2"
5034 else
5035 CXXFLAGS=
5036 fi
5037fi
5038for ac_declaration in \
5039 '' \
5040 'extern "C" void std::exit (int) throw (); using std::exit;' \
5041 'extern "C" void std::exit (int); using std::exit;' \
5042 'extern "C" void exit (int) throw ();' \
5043 'extern "C" void exit (int);' \
5044 'void exit (int);'
5045do
5046 cat >conftest.$ac_ext <<_ACEOF
5047/* confdefs.h. */
5048_ACEOF
5049cat confdefs.h >>conftest.$ac_ext
5050cat >>conftest.$ac_ext <<_ACEOF
5051/* end confdefs.h. */
5052$ac_declaration
5053#include <stdlib.h>
5054int
5055main ()
5056{
5057exit (42);
5058 ;
5059 return 0;
5060}
5061_ACEOF
5062rm -f conftest.$ac_objext
5063if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5064 (eval $ac_compile) 2>conftest.er1
5065 ac_status=$?
5066 grep -v '^ *+' conftest.er1 >conftest.err
5067 rm -f conftest.er1
5068 cat conftest.err >&5
5069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5070 (exit $ac_status); } &&
5071 { ac_try='test -z "$ac_cxx_werror_flag"
5072 || test ! -s conftest.err'
5073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5074 (eval $ac_try) 2>&5
5075 ac_status=$?
5076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5077 (exit $ac_status); }; } &&
5078 { ac_try='test -s conftest.$ac_objext'
5079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5080 (eval $ac_try) 2>&5
5081 ac_status=$?
5082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5083 (exit $ac_status); }; }; then
5084 :
5085else
5086 echo "$as_me: failed program was:" >&5
5087sed 's/^/| /' conftest.$ac_ext >&5
5088
5089continue
5090fi
5091rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5092 cat >conftest.$ac_ext <<_ACEOF
5093/* confdefs.h. */
5094_ACEOF
5095cat confdefs.h >>conftest.$ac_ext
5096cat >>conftest.$ac_ext <<_ACEOF
5097/* end confdefs.h. */
5098$ac_declaration
5099int
5100main ()
5101{
5102exit (42);
5103 ;
5104 return 0;
5105}
5106_ACEOF
5107rm -f conftest.$ac_objext
5108if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5109 (eval $ac_compile) 2>conftest.er1
5110 ac_status=$?
5111 grep -v '^ *+' conftest.er1 >conftest.err
5112 rm -f conftest.er1
5113 cat conftest.err >&5
5114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5115 (exit $ac_status); } &&
5116 { ac_try='test -z "$ac_cxx_werror_flag"
5117 || test ! -s conftest.err'
5118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5119 (eval $ac_try) 2>&5
5120 ac_status=$?
5121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5122 (exit $ac_status); }; } &&
5123 { ac_try='test -s conftest.$ac_objext'
5124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5125 (eval $ac_try) 2>&5
5126 ac_status=$?
5127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5128 (exit $ac_status); }; }; then
5129 break
5130else
5131 echo "$as_me: failed program was:" >&5
5132sed 's/^/| /' conftest.$ac_ext >&5
5133
5134fi
5135rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5136done
5137rm -f conftest*
5138if test -n "$ac_declaration"; then
5139 echo '#ifdef __cplusplus' >>confdefs.h
5140 echo $ac_declaration >>confdefs.h
5141 echo '#endif' >>confdefs.h
5142fi
5143
5144ac_ext=cc
5145ac_cpp='$CXXCPP $CPPFLAGS'
5146ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5147ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5148ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5149
5150depcc="$CXX" am_compiler_list=
5151
5152echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5153echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5154if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5155 echo $ECHO_N "(cached) $ECHO_C" >&6
5156else
5157 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5158 # We make a subdir and do the tests there. Otherwise we can end up
5159 # making bogus files that we don't know about and never remove. For
5160 # instance it was reported that on HP-UX the gcc test will end up
5161 # making a dummy file named `D' -- because `-MD' means `put the output
5162 # in D'.
5163 mkdir conftest.dir
5164 # Copy depcomp to subdir because otherwise we won't find it if we're
5165 # using a relative directory.
5166 cp "$am_depcomp" conftest.dir
5167 cd conftest.dir
5168 # We will build objects and dependencies in a subdirectory because
5169 # it helps to detect inapplicable dependency modes. For instance
5170 # both Tru64's cc and ICC support -MD to output dependencies as a
5171 # side effect of compilation, but ICC will put the dependencies in
5172 # the current directory while Tru64 will put them in the object
5173 # directory.
5174 mkdir sub
5175
5176 am_cv_CXX_dependencies_compiler_type=none
5177 if test "$am_compiler_list" = ""; then
5178 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5179 fi
5180 for depmode in $am_compiler_list; do
5181 # Setup a source with many dependencies, because some compilers
5182 # like to wrap large dependency lists on column 80 (with \), and
5183 # we should not choose a depcomp mode which is confused by this.
5184 #
5185 # We need to recreate these files for each test, as the compiler may
5186 # overwrite some of them when testing with obscure command lines.
5187 # This happens at least with the AIX C compiler.
5188 : > sub/conftest.c
5189 for i in 1 2 3 4 5 6; do
5190 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5191 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5192 # Solaris 8's {/usr,}/bin/sh.
5193 touch sub/conftst$i.h
5194 done
5195 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5196
5197 case $depmode in
5198 nosideeffect)
5199 # after this tag, mechanisms are not by side-effect, so they'll
5200 # only be used when explicitly requested
5201 if test "x$enable_dependency_tracking" = xyes; then
5202 continue
5203 else
5204 break
5205 fi
5206 ;;
5207 none) break ;;
5208 esac
5209 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5210 # mode. It turns out that the SunPro C++ compiler does not properly
5211 # handle `-M -o', and we need to detect this.
5212 if depmode=$depmode \
5213 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5214 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5215 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5216 >/dev/null 2>conftest.err &&
5217 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5218 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5219 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5220 # icc doesn't choke on unknown options, it will just issue warnings
5221 # or remarks (even with -Werror). So we grep stderr for any message
5222 # that says an option was ignored or not supported.
5223 # When given -MP, icc 7.0 and 7.1 complain thusly:
5224 # icc: Command line warning: ignoring option '-M'; no argument required
5225 # The diagnosis changed in icc 8.0:
5226 # icc: Command line remark: option '-MP' not supported
5227 if (grep 'ignoring option' conftest.err ||
5228 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5229 am_cv_CXX_dependencies_compiler_type=$depmode
5230 break
5231 fi
5232 fi
5233 done
5234
5235 cd ..
5236 rm -rf conftest.dir
5237else
5238 am_cv_CXX_dependencies_compiler_type=none
5239fi
5240
5241fi
5242echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5243echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5244CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5245
5246
5247
5248if
5249 test "x$enable_dependency_tracking" != xno \
5250 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5251 am__fastdepCXX_TRUE=
5252 am__fastdepCXX_FALSE='#'
5253else
5254 am__fastdepCXX_TRUE='#'
5255 am__fastdepCXX_FALSE=
5256fi
5257
5258
5259
5260
5261if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5262 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5263 (test "X$CXX" != "Xg++"))) ; then
5264 ac_ext=cc
5265ac_cpp='$CXXCPP $CPPFLAGS'
5266ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5267ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5268ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5269echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5270echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5271if test -z "$CXXCPP"; then
5272 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5273 echo $ECHO_N "(cached) $ECHO_C" >&6
5274else
5275 # Double quotes because CXXCPP needs to be expanded
5276 for CXXCPP in "$CXX -E" "/lib/cpp"
5277 do
5278 ac_preproc_ok=false
5279for ac_cxx_preproc_warn_flag in '' yes
5280do
5281 # Use a header file that comes with gcc, so configuring glibc
5282 # with a fresh cross-compiler works.
5283 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5284 # <limits.h> exists even on freestanding compilers.
5285 # On the NeXT, cc -E runs the code through the compiler's parser,
5286 # not just through cpp. "Syntax error" is here to catch this case.
5287 cat >conftest.$ac_ext <<_ACEOF
5288/* confdefs.h. */
5289_ACEOF
5290cat confdefs.h >>conftest.$ac_ext
5291cat >>conftest.$ac_ext <<_ACEOF
5292/* end confdefs.h. */
5293#ifdef __STDC__
5294# include <limits.h>
5295#else
5296# include <assert.h>
5297#endif
5298 Syntax error
5299_ACEOF
5300if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5301 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5302 ac_status=$?
5303 grep -v '^ *+' conftest.er1 >conftest.err
5304 rm -f conftest.er1
5305 cat conftest.err >&5
5306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5307 (exit $ac_status); } >/dev/null; then
5308 if test -s conftest.err; then
5309 ac_cpp_err=$ac_cxx_preproc_warn_flag
5310 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5311 else
5312 ac_cpp_err=
5313 fi
5314else
5315 ac_cpp_err=yes
5316fi
5317if test -z "$ac_cpp_err"; then
5318 :
5319else
5320 echo "$as_me: failed program was:" >&5
5321sed 's/^/| /' conftest.$ac_ext >&5
5322
5323 # Broken: fails on valid input.
5324continue
5325fi
5326rm -f conftest.err conftest.$ac_ext
5327
5328 # OK, works on sane cases. Now check whether non-existent headers
5329 # can be detected and how.
5330 cat >conftest.$ac_ext <<_ACEOF
5331/* confdefs.h. */
5332_ACEOF
5333cat confdefs.h >>conftest.$ac_ext
5334cat >>conftest.$ac_ext <<_ACEOF
5335/* end confdefs.h. */
5336#include <ac_nonexistent.h>
5337_ACEOF
5338if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5339 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5340 ac_status=$?
5341 grep -v '^ *+' conftest.er1 >conftest.err
5342 rm -f conftest.er1
5343 cat conftest.err >&5
5344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5345 (exit $ac_status); } >/dev/null; then
5346 if test -s conftest.err; then
5347 ac_cpp_err=$ac_cxx_preproc_warn_flag
5348 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5349 else
5350 ac_cpp_err=
5351 fi
5352else
5353 ac_cpp_err=yes
5354fi
5355if test -z "$ac_cpp_err"; then
5356 # Broken: success on invalid input.
5357continue
5358else
5359 echo "$as_me: failed program was:" >&5
5360sed 's/^/| /' conftest.$ac_ext >&5
5361
5362 # Passes both tests.
5363ac_preproc_ok=:
5364break
5365fi
5366rm -f conftest.err conftest.$ac_ext
5367
5368done
5369# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5370rm -f conftest.err conftest.$ac_ext
5371if $ac_preproc_ok; then
5372 break
5373fi
5374
5375 done
5376 ac_cv_prog_CXXCPP=$CXXCPP
5377
5378fi
5379 CXXCPP=$ac_cv_prog_CXXCPP
5380else
5381 ac_cv_prog_CXXCPP=$CXXCPP
5382fi
5383echo "$as_me:$LINENO: result: $CXXCPP" >&5
5384echo "${ECHO_T}$CXXCPP" >&6
5385ac_preproc_ok=false
5386for ac_cxx_preproc_warn_flag in '' yes
5387do
5388 # Use a header file that comes with gcc, so configuring glibc
5389 # with a fresh cross-compiler works.
5390 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5391 # <limits.h> exists even on freestanding compilers.
5392 # On the NeXT, cc -E runs the code through the compiler's parser,
5393 # not just through cpp. "Syntax error" is here to catch this case.
5394 cat >conftest.$ac_ext <<_ACEOF
5395/* confdefs.h. */
5396_ACEOF
5397cat confdefs.h >>conftest.$ac_ext
5398cat >>conftest.$ac_ext <<_ACEOF
5399/* end confdefs.h. */
5400#ifdef __STDC__
5401# include <limits.h>
5402#else
5403# include <assert.h>
5404#endif
5405 Syntax error
5406_ACEOF
5407if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5408 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5409 ac_status=$?
5410 grep -v '^ *+' conftest.er1 >conftest.err
5411 rm -f conftest.er1
5412 cat conftest.err >&5
5413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5414 (exit $ac_status); } >/dev/null; then
5415 if test -s conftest.err; then
5416 ac_cpp_err=$ac_cxx_preproc_warn_flag
5417 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5418 else
5419 ac_cpp_err=
5420 fi
5421else
5422 ac_cpp_err=yes
5423fi
5424if test -z "$ac_cpp_err"; then
5425 :
5426else
5427 echo "$as_me: failed program was:" >&5
5428sed 's/^/| /' conftest.$ac_ext >&5
5429
5430 # Broken: fails on valid input.
5431continue
5432fi
5433rm -f conftest.err conftest.$ac_ext
5434
5435 # OK, works on sane cases. Now check whether non-existent headers
5436 # can be detected and how.
5437 cat >conftest.$ac_ext <<_ACEOF
5438/* confdefs.h. */
5439_ACEOF
5440cat confdefs.h >>conftest.$ac_ext
5441cat >>conftest.$ac_ext <<_ACEOF
5442/* end confdefs.h. */
5443#include <ac_nonexistent.h>
5444_ACEOF
5445if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5446 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5447 ac_status=$?
5448 grep -v '^ *+' conftest.er1 >conftest.err
5449 rm -f conftest.er1
5450 cat conftest.err >&5
5451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5452 (exit $ac_status); } >/dev/null; then
5453 if test -s conftest.err; then
5454 ac_cpp_err=$ac_cxx_preproc_warn_flag
5455 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5456 else
5457 ac_cpp_err=
5458 fi
5459else
5460 ac_cpp_err=yes
5461fi
5462if test -z "$ac_cpp_err"; then
5463 # Broken: success on invalid input.
5464continue
5465else
5466 echo "$as_me: failed program was:" >&5
5467sed 's/^/| /' conftest.$ac_ext >&5
5468
5469 # Passes both tests.
5470ac_preproc_ok=:
5471break
5472fi
5473rm -f conftest.err conftest.$ac_ext
5474
5475done
5476# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5477rm -f conftest.err conftest.$ac_ext
5478if $ac_preproc_ok; then
5479 :
5480else
5481 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5482See \`config.log' for more details." >&5
5483echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5484See \`config.log' for more details." >&2;}
5485 { (exit 1); exit 1; }; }
5486fi
5487
5488ac_ext=cc
5489ac_cpp='$CXXCPP $CPPFLAGS'
5490ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5491ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5492ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5493
5494fi
5495
5496
5497ac_ext=f
5498ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5499ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5500ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5501if test -n "$ac_tool_prefix"; then
5502 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5503 do
5504 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5505set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5506echo "$as_me:$LINENO: checking for $ac_word" >&5
5507echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5508if test "${ac_cv_prog_F77+set}" = set; then
5509 echo $ECHO_N "(cached) $ECHO_C" >&6
5510else
5511 if test -n "$F77"; then
5512 ac_cv_prog_F77="$F77" # Let the user override the test.
5513else
5514as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5515for as_dir in $PATH
5516do
5517 IFS=$as_save_IFS
5518 test -z "$as_dir" && as_dir=.
5519 for ac_exec_ext in '' $ac_executable_extensions; do
5520 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5521 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5522 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5523 break 2
5524 fi
5525done
5526done
5527
5528fi
5529fi
5530F77=$ac_cv_prog_F77
5531if test -n "$F77"; then
5532 echo "$as_me:$LINENO: result: $F77" >&5
5533echo "${ECHO_T}$F77" >&6
5534else
5535 echo "$as_me:$LINENO: result: no" >&5
5536echo "${ECHO_T}no" >&6
5537fi
5538
5539 test -n "$F77" && break
5540 done
5541fi
5542if test -z "$F77"; then
5543 ac_ct_F77=$F77
5544 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5545do
5546 # Extract the first word of "$ac_prog", so it can be a program name with args.
5547set dummy $ac_prog; ac_word=$2
5548echo "$as_me:$LINENO: checking for $ac_word" >&5
5549echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5550if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5551 echo $ECHO_N "(cached) $ECHO_C" >&6
5552else
5553 if test -n "$ac_ct_F77"; then
5554 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5555else
5556as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5557for as_dir in $PATH
5558do
5559 IFS=$as_save_IFS
5560 test -z "$as_dir" && as_dir=.
5561 for ac_exec_ext in '' $ac_executable_extensions; do
5562 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5563 ac_cv_prog_ac_ct_F77="$ac_prog"
5564 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5565 break 2
5566 fi
5567done
5568done
5569
5570fi
5571fi
5572ac_ct_F77=$ac_cv_prog_ac_ct_F77
5573if test -n "$ac_ct_F77"; then
5574 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5575echo "${ECHO_T}$ac_ct_F77" >&6
5576else
5577 echo "$as_me:$LINENO: result: no" >&5
5578echo "${ECHO_T}no" >&6
5579fi
5580
5581 test -n "$ac_ct_F77" && break
5582done
5583
5584 F77=$ac_ct_F77
5585fi
5586
5587
5588# Provide some information about the compiler.
86933a6e 5589echo "$as_me:5589:" \
bf9f3bac 5590 "checking for Fortran 77 compiler version" >&5
5591ac_compiler=`set X $ac_compile; echo $2`
5592{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5593 (eval $ac_compiler --version </dev/null >&5) 2>&5
5594 ac_status=$?
5595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5596 (exit $ac_status); }
5597{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5598 (eval $ac_compiler -v </dev/null >&5) 2>&5
5599 ac_status=$?
5600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5601 (exit $ac_status); }
5602{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5603 (eval $ac_compiler -V </dev/null >&5) 2>&5
5604 ac_status=$?
5605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5606 (exit $ac_status); }
5607rm -f a.out
5608
5609# If we don't use `.F' as extension, the preprocessor is not run on the
5610# input file. (Note that this only needs to work for GNU compilers.)
5611ac_save_ext=$ac_ext
5612ac_ext=F
5613echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5614echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5615if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5616 echo $ECHO_N "(cached) $ECHO_C" >&6
5617else
5618 cat >conftest.$ac_ext <<_ACEOF
5619 program main
5620#ifndef __GNUC__
5621 choke me
5622#endif
5623
5624 end
5625_ACEOF
5626rm -f conftest.$ac_objext
5627if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5628 (eval $ac_compile) 2>conftest.er1
5629 ac_status=$?
5630 grep -v '^ *+' conftest.er1 >conftest.err
5631 rm -f conftest.er1
5632 cat conftest.err >&5
5633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5634 (exit $ac_status); } &&
5635 { ac_try='test -z "$ac_f77_werror_flag"
5636 || test ! -s conftest.err'
5637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5638 (eval $ac_try) 2>&5
5639 ac_status=$?
5640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5641 (exit $ac_status); }; } &&
5642 { ac_try='test -s conftest.$ac_objext'
5643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5644 (eval $ac_try) 2>&5
5645 ac_status=$?
5646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5647 (exit $ac_status); }; }; then
5648 ac_compiler_gnu=yes
5649else
5650 echo "$as_me: failed program was:" >&5
5651sed 's/^/| /' conftest.$ac_ext >&5
5652
5653ac_compiler_gnu=no
5654fi
5655rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5656ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5657
5658fi
5659echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5660echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5661ac_ext=$ac_save_ext
5662ac_test_FFLAGS=${FFLAGS+set}
5663ac_save_FFLAGS=$FFLAGS
5664FFLAGS=
5665echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5666echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5667if test "${ac_cv_prog_f77_g+set}" = set; then
5668 echo $ECHO_N "(cached) $ECHO_C" >&6
5669else
5670 FFLAGS=-g
5671cat >conftest.$ac_ext <<_ACEOF
5672 program main
5673
5674 end
5675_ACEOF
5676rm -f conftest.$ac_objext
5677if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5678 (eval $ac_compile) 2>conftest.er1
5679 ac_status=$?
5680 grep -v '^ *+' conftest.er1 >conftest.err
5681 rm -f conftest.er1
5682 cat conftest.err >&5
5683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5684 (exit $ac_status); } &&
5685 { ac_try='test -z "$ac_f77_werror_flag"
5686 || test ! -s conftest.err'
5687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5688 (eval $ac_try) 2>&5
5689 ac_status=$?
5690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5691 (exit $ac_status); }; } &&
5692 { ac_try='test -s conftest.$ac_objext'
5693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5694 (eval $ac_try) 2>&5
5695 ac_status=$?
5696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5697 (exit $ac_status); }; }; then
5698 ac_cv_prog_f77_g=yes
5699else
5700 echo "$as_me: failed program was:" >&5
5701sed 's/^/| /' conftest.$ac_ext >&5
5702
5703ac_cv_prog_f77_g=no
5704fi
5705rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5706
5707fi
5708echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5709echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5710if test "$ac_test_FFLAGS" = set; then
5711 FFLAGS=$ac_save_FFLAGS
5712elif test $ac_cv_prog_f77_g = yes; then
5713 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5714 FFLAGS="-g -O2"
5715 else
5716 FFLAGS="-g"
5717 fi
5718else
5719 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5720 FFLAGS="-O2"
5721 else
5722 FFLAGS=
5723 fi
5724fi
5725
5726G77=`test $ac_compiler_gnu = yes && echo yes`
5727ac_ext=c
5728ac_cpp='$CPP $CPPFLAGS'
5729ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5730ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5731ac_compiler_gnu=$ac_cv_c_compiler_gnu
5732
5733
5734
5735# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5736
5737# find the maximum length of command line arguments
5738echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5739echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5740if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5741 echo $ECHO_N "(cached) $ECHO_C" >&6
5742else
5743 i=0
5744 teststring="ABCD"
5745
5746 case $build_os in
5747 msdosdjgpp*)
5748 # On DJGPP, this test can blow up pretty badly due to problems in libc
5749 # (any single argument exceeding 2000 bytes causes a buffer overrun
5750 # during glob expansion). Even if it were fixed, the result of this
5751 # check would be larger than it should be.
5752 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5753 ;;
5754
5755 gnu*)
5756 # Under GNU Hurd, this test is not required because there is
5757 # no limit to the length of command line arguments.
5758 # Libtool will interpret -1 as no limit whatsoever
5759 lt_cv_sys_max_cmd_len=-1;
5760 ;;
5761
5762 cygwin* | mingw*)
5763 # On Win9x/ME, this test blows up -- it succeeds, but takes
5764 # about 5 minutes as the teststring grows exponentially.
5765 # Worse, since 9x/ME are not pre-emptively multitasking,
5766 # you end up with a "frozen" computer, even though with patience
5767 # the test eventually succeeds (with a max line length of 256k).
5768 # Instead, let's just punt: use the minimum linelength reported by
5769 # all of the supported platforms: 8192 (on NT/2K/XP).
5770 lt_cv_sys_max_cmd_len=8192;
5771 ;;
5772
5773 amigaos*)
5774 # On AmigaOS with pdksh, this test takes hours, literally.
5775 # So we just punt and use a minimum line length of 8192.
5776 lt_cv_sys_max_cmd_len=8192;
5777 ;;
5778
5779 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5780 # This has been around since 386BSD, at least. Likely further.
5781 if test -x /sbin/sysctl; then
5782 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5783 elif test -x /usr/sbin/sysctl; then
5784 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5785 else
5786 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5787 fi
5788 # And add a safety zone
5789 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5790 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5791 ;;
5792
5793 interix*)
5794 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5795 lt_cv_sys_max_cmd_len=196608
5796 ;;
5797
5798 osf*)
5799 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5800 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5801 # nice to cause kernel panics so lets avoid the loop below.
5802 # First set a reasonable default.
5803 lt_cv_sys_max_cmd_len=16384
5804 #
5805 if test -x /sbin/sysconfig; then
5806 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5807 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5808 esac
5809 fi
5810 ;;
5811 sco3.2v5*)
5812 lt_cv_sys_max_cmd_len=102400
5813 ;;
5814 sysv5* | sco5v6* | sysv4.2uw2*)
5815 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5816 if test -n "$kargmax"; then
5817 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5818 else
5819 lt_cv_sys_max_cmd_len=32768
5820 fi
5821 ;;
5822 *)
5823 # If test is not a shell built-in, we'll probably end up computing a
5824 # maximum length that is only half of the actual maximum length, but
5825 # we can't tell.
5826 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5827 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5828 = "XX$teststring") >/dev/null 2>&1 &&
5829 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5830 lt_cv_sys_max_cmd_len=$new_result &&
5831 test $i != 17 # 1/2 MB should be enough
5832 do
5833 i=`expr $i + 1`
5834 teststring=$teststring$teststring
5835 done
5836 teststring=
5837 # Add a significant safety factor because C++ compilers can tack on massive
5838 # amounts of additional arguments before passing them to the linker.
5839 # It appears as though 1/2 is a usable value.
5840 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5841 ;;
5842 esac
5843
5844fi
5845
5846if test -n $lt_cv_sys_max_cmd_len ; then
5847 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5848echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5849else
5850 echo "$as_me:$LINENO: result: none" >&5
5851echo "${ECHO_T}none" >&6
5852fi
5853
5854
5855
5856
5857# Check for command to grab the raw symbol name followed by C symbol from nm.
5858echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5859echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5860if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5861 echo $ECHO_N "(cached) $ECHO_C" >&6
5862else
5863
5864# These are sane defaults that work on at least a few old systems.
5865# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5866
5867# Character class describing NM global symbol codes.
5868symcode='[BCDEGRST]'
5869
5870# Regexp to match symbols that can be accessed directly from C.
5871sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5872
5873# Transform an extracted symbol line into a proper C declaration
5874lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5875
5876# Transform an extracted symbol line into symbol name and symbol address
5877lt_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'"
5878
5879# Define system-specific variables.
5880case $host_os in
5881aix*)
5882 symcode='[BCDT]'
5883 ;;
5884cygwin* | mingw* | pw32*)
5885 symcode='[ABCDGISTW]'
5886 ;;
5887hpux*) # Its linker distinguishes data from code symbols
5888 if test "$host_cpu" = ia64; then
5889 symcode='[ABCDEGRST]'
5890 fi
5891 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5892 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'"
5893 ;;
5894linux*)
5895 if test "$host_cpu" = ia64; then
5896 symcode='[ABCDGIRSTW]'
5897 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5898 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'"
5899 fi
5900 ;;
5901irix* | nonstopux*)
5902 symcode='[BCDEGRST]'
5903 ;;
5904osf*)
5905 symcode='[BCDEGQRST]'
5906 ;;
5907solaris*)
5908 symcode='[BDRT]'
5909 ;;
5910sco3.2v5*)
5911 symcode='[DT]'
5912 ;;
5913sysv4.2uw2*)
5914 symcode='[DT]'
5915 ;;
5916sysv5* | sco5v6* | unixware* | OpenUNIX*)
5917 symcode='[ABDT]'
5918 ;;
5919sysv4)
5920 symcode='[DFNSTU]'
5921 ;;
5922esac
5923
5924# Handle CRLF in mingw tool chain
5925opt_cr=
5926case $build_os in
5927mingw*)
5928 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5929 ;;
5930esac
5931
5932# If we're using GNU nm, then use its standard symbol codes.
5933case `$NM -V 2>&1` in
5934*GNU* | *'with BFD'*)
5935 symcode='[ABCDGIRSTW]' ;;
5936esac
5937
5938# Try without a prefix undercore, then with it.
5939for ac_symprfx in "" "_"; do
5940
5941 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5942 symxfrm="\\1 $ac_symprfx\\2 \\2"
5943
5944 # Write the raw and C identifiers.
5945 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5946
5947 # Check to see that the pipe works correctly.
5948 pipe_works=no
5949
5950 rm -f conftest*
5951 cat > conftest.$ac_ext <<EOF
5952#ifdef __cplusplus
5953extern "C" {
5954#endif
5955char nm_test_var;
5956void nm_test_func(){}
5957#ifdef __cplusplus
5958}
5959#endif
5960int main(){nm_test_var='a';nm_test_func();return(0);}
5961EOF
5962
5963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5964 (eval $ac_compile) 2>&5
5965 ac_status=$?
5966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5967 (exit $ac_status); }; then
5968 # Now try to grab the symbols.
5969 nlist=conftest.nm
5970 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5971 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5972 ac_status=$?
5973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5974 (exit $ac_status); } && test -s "$nlist"; then
5975 # Try sorting and uniquifying the output.
5976 if sort "$nlist" | uniq > "$nlist"T; then
5977 mv -f "$nlist"T "$nlist"
5978 else
5979 rm -f "$nlist"T
5980 fi
5981
5982 # Make sure that we snagged all the symbols we need.
5983 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5984 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5985 cat <<EOF > conftest.$ac_ext
5986#ifdef __cplusplus
5987extern "C" {
5988#endif
5989
5990EOF
5991 # Now generate the symbol file.
5992 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5993
5994 cat <<EOF >> conftest.$ac_ext
5995#if defined (__STDC__) && __STDC__
5996# define lt_ptr_t void *
5997#else
5998# define lt_ptr_t char *
5999# define const
6000#endif
6001
6002/* The mapping between symbol names and symbols. */
6003const struct {
6004 const char *name;
6005 lt_ptr_t address;
6006}
6007lt_preloaded_symbols[] =
6008{
6009EOF
6010 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6011 cat <<\EOF >> conftest.$ac_ext
6012 {0, (lt_ptr_t) 0}
6013};
6014
6015#ifdef __cplusplus
6016}
6017#endif
6018EOF
6019 # Now try linking the two files.
6020 mv conftest.$ac_objext conftstm.$ac_objext
6021 lt_save_LIBS="$LIBS"
6022 lt_save_CFLAGS="$CFLAGS"
6023 LIBS="conftstm.$ac_objext"
6024 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6026 (eval $ac_link) 2>&5
6027 ac_status=$?
6028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6029 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6030 pipe_works=yes
6031 fi
6032 LIBS="$lt_save_LIBS"
6033 CFLAGS="$lt_save_CFLAGS"
6034 else
6035 echo "cannot find nm_test_func in $nlist" >&5
6036 fi
6037 else
6038 echo "cannot find nm_test_var in $nlist" >&5
6039 fi
6040 else
6041 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6042 fi
6043 else
6044 echo "$progname: failed program was:" >&5
6045 cat conftest.$ac_ext >&5
6046 fi
6047 rm -f conftest* conftst*
6048
6049 # Do not use the global_symbol_pipe unless it works.
6050 if test "$pipe_works" = yes; then
6051 break
6052 else
6053 lt_cv_sys_global_symbol_pipe=
6054 fi
6055done
6056
6057fi
6058
6059if test -z "$lt_cv_sys_global_symbol_pipe"; then
6060 lt_cv_sys_global_symbol_to_cdecl=
6061fi
6062if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6063 echo "$as_me:$LINENO: result: failed" >&5
6064echo "${ECHO_T}failed" >&6
6065else
6066 echo "$as_me:$LINENO: result: ok" >&5
6067echo "${ECHO_T}ok" >&6
6068fi
6069
6070echo "$as_me:$LINENO: checking for objdir" >&5
6071echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6072if test "${lt_cv_objdir+set}" = set; then
6073 echo $ECHO_N "(cached) $ECHO_C" >&6
6074else
6075 rm -f .libs 2>/dev/null
6076mkdir .libs 2>/dev/null
6077if test -d .libs; then
6078 lt_cv_objdir=.libs
6079else
6080 # MS-DOS does not allow filenames that begin with a dot.
6081 lt_cv_objdir=_libs
6082fi
6083rmdir .libs 2>/dev/null
6084fi
6085echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6086echo "${ECHO_T}$lt_cv_objdir" >&6
6087objdir=$lt_cv_objdir
6088
6089
6090
6091
6092
6093case $host_os in
6094aix3*)
6095 # AIX sometimes has problems with the GCC collect2 program. For some
6096 # reason, if we set the COLLECT_NAMES environment variable, the problems
6097 # vanish in a puff of smoke.
6098 if test "X${COLLECT_NAMES+set}" != Xset; then
6099 COLLECT_NAMES=
6100 export COLLECT_NAMES
6101 fi
6102 ;;
6103esac
6104
6105# Sed substitution that helps us do robust quoting. It backslashifies
6106# metacharacters that are still active within double-quoted strings.
6107Xsed='sed -e 1s/^X//'
6108sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6109
6110# Same as above, but do not quote variable references.
6111double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6112
6113# Sed substitution to delay expansion of an escaped shell variable in a
6114# double_quote_subst'ed string.
6115delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6116
6117# Sed substitution to avoid accidental globbing in evaled expressions
6118no_glob_subst='s/\*/\\\*/g'
6119
6120# Constants:
6121rm="rm -f"
6122
6123# Global variables:
6124default_ofile=libtool
6125can_build_shared=yes
6126
6127# All known linkers require a `.a' archive for static linking (except MSVC,
6128# which needs '.lib').
6129libext=a
6130ltmain="$ac_aux_dir/ltmain.sh"
6131ofile="$default_ofile"
6132with_gnu_ld="$lt_cv_prog_gnu_ld"
6133
6134if test -n "$ac_tool_prefix"; then
6135 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6136set dummy ${ac_tool_prefix}ar; ac_word=$2
6137echo "$as_me:$LINENO: checking for $ac_word" >&5
6138echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6139if test "${ac_cv_prog_AR+set}" = set; then
6140 echo $ECHO_N "(cached) $ECHO_C" >&6
6141else
6142 if test -n "$AR"; then
6143 ac_cv_prog_AR="$AR" # Let the user override the test.
6144else
6145as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6146for as_dir in $PATH
6147do
6148 IFS=$as_save_IFS
6149 test -z "$as_dir" && as_dir=.
6150 for ac_exec_ext in '' $ac_executable_extensions; do
6151 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6152 ac_cv_prog_AR="${ac_tool_prefix}ar"
6153 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6154 break 2
6155 fi
6156done
6157done
6158
6159fi
6160fi
6161AR=$ac_cv_prog_AR
6162if test -n "$AR"; then
6163 echo "$as_me:$LINENO: result: $AR" >&5
6164echo "${ECHO_T}$AR" >&6
6165else
6166 echo "$as_me:$LINENO: result: no" >&5
6167echo "${ECHO_T}no" >&6
6168fi
6169
6170fi
6171if test -z "$ac_cv_prog_AR"; then
6172 ac_ct_AR=$AR
6173 # Extract the first word of "ar", so it can be a program name with args.
6174set dummy ar; ac_word=$2
6175echo "$as_me:$LINENO: checking for $ac_word" >&5
6176echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6177if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6178 echo $ECHO_N "(cached) $ECHO_C" >&6
6179else
6180 if test -n "$ac_ct_AR"; then
6181 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6182else
6183as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6184for as_dir in $PATH
6185do
6186 IFS=$as_save_IFS
6187 test -z "$as_dir" && as_dir=.
6188 for ac_exec_ext in '' $ac_executable_extensions; do
6189 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6190 ac_cv_prog_ac_ct_AR="ar"
6191 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6192 break 2
6193 fi
6194done
6195done
6196
6197 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6198fi
6199fi
6200ac_ct_AR=$ac_cv_prog_ac_ct_AR
6201if test -n "$ac_ct_AR"; then
6202 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6203echo "${ECHO_T}$ac_ct_AR" >&6
6204else
6205 echo "$as_me:$LINENO: result: no" >&5
6206echo "${ECHO_T}no" >&6
6207fi
6208
6209 AR=$ac_ct_AR
6210else
6211 AR="$ac_cv_prog_AR"
6212fi
6213
6214if test -n "$ac_tool_prefix"; then
6215 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6216set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6217echo "$as_me:$LINENO: checking for $ac_word" >&5
6218echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6219if test "${ac_cv_prog_RANLIB+set}" = set; then
6220 echo $ECHO_N "(cached) $ECHO_C" >&6
6221else
6222 if test -n "$RANLIB"; then
6223 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6224else
6225as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6226for as_dir in $PATH
6227do
6228 IFS=$as_save_IFS
6229 test -z "$as_dir" && as_dir=.
6230 for ac_exec_ext in '' $ac_executable_extensions; do
6231 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6232 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6233 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6234 break 2
6235 fi
6236done
6237done
6238
6239fi
6240fi
6241RANLIB=$ac_cv_prog_RANLIB
6242if test -n "$RANLIB"; then
6243 echo "$as_me:$LINENO: result: $RANLIB" >&5
6244echo "${ECHO_T}$RANLIB" >&6
6245else
6246 echo "$as_me:$LINENO: result: no" >&5
6247echo "${ECHO_T}no" >&6
6248fi
6249
6250fi
6251if test -z "$ac_cv_prog_RANLIB"; then
6252 ac_ct_RANLIB=$RANLIB
6253 # Extract the first word of "ranlib", so it can be a program name with args.
6254set dummy ranlib; ac_word=$2
6255echo "$as_me:$LINENO: checking for $ac_word" >&5
6256echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6257if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6258 echo $ECHO_N "(cached) $ECHO_C" >&6
6259else
6260 if test -n "$ac_ct_RANLIB"; then
6261 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6262else
6263as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6264for as_dir in $PATH
6265do
6266 IFS=$as_save_IFS
6267 test -z "$as_dir" && as_dir=.
6268 for ac_exec_ext in '' $ac_executable_extensions; do
6269 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6270 ac_cv_prog_ac_ct_RANLIB="ranlib"
6271 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6272 break 2
6273 fi
6274done
6275done
6276
6277 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6278fi
6279fi
6280ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6281if test -n "$ac_ct_RANLIB"; then
6282 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6283echo "${ECHO_T}$ac_ct_RANLIB" >&6
6284else
6285 echo "$as_me:$LINENO: result: no" >&5
6286echo "${ECHO_T}no" >&6
6287fi
6288
6289 RANLIB=$ac_ct_RANLIB
6290else
6291 RANLIB="$ac_cv_prog_RANLIB"
6292fi
6293
6294if test -n "$ac_tool_prefix"; then
6295 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6296set dummy ${ac_tool_prefix}strip; ac_word=$2
6297echo "$as_me:$LINENO: checking for $ac_word" >&5
6298echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6299if test "${ac_cv_prog_STRIP+set}" = set; then
6300 echo $ECHO_N "(cached) $ECHO_C" >&6
6301else
6302 if test -n "$STRIP"; then
6303 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6304else
6305as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6306for as_dir in $PATH
6307do
6308 IFS=$as_save_IFS
6309 test -z "$as_dir" && as_dir=.
6310 for ac_exec_ext in '' $ac_executable_extensions; do
6311 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6312 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6313 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6314 break 2
6315 fi
6316done
6317done
6318
6319fi
6320fi
6321STRIP=$ac_cv_prog_STRIP
6322if test -n "$STRIP"; then
6323 echo "$as_me:$LINENO: result: $STRIP" >&5
6324echo "${ECHO_T}$STRIP" >&6
6325else
6326 echo "$as_me:$LINENO: result: no" >&5
6327echo "${ECHO_T}no" >&6
6328fi
6329
6330fi
6331if test -z "$ac_cv_prog_STRIP"; then
6332 ac_ct_STRIP=$STRIP
6333 # Extract the first word of "strip", so it can be a program name with args.
6334set dummy strip; ac_word=$2
6335echo "$as_me:$LINENO: checking for $ac_word" >&5
6336echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6337if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6338 echo $ECHO_N "(cached) $ECHO_C" >&6
6339else
6340 if test -n "$ac_ct_STRIP"; then
6341 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6342else
6343as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6344for as_dir in $PATH
6345do
6346 IFS=$as_save_IFS
6347 test -z "$as_dir" && as_dir=.
6348 for ac_exec_ext in '' $ac_executable_extensions; do
6349 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6350 ac_cv_prog_ac_ct_STRIP="strip"
6351 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6352 break 2
6353 fi
6354done
6355done
6356
6357 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6358fi
6359fi
6360ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6361if test -n "$ac_ct_STRIP"; then
6362 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6363echo "${ECHO_T}$ac_ct_STRIP" >&6
6364else
6365 echo "$as_me:$LINENO: result: no" >&5
6366echo "${ECHO_T}no" >&6
6367fi
6368
6369 STRIP=$ac_ct_STRIP
6370else
6371 STRIP="$ac_cv_prog_STRIP"
6372fi
6373
6374
6375old_CC="$CC"
6376old_CFLAGS="$CFLAGS"
6377
6378# Set sane defaults for various variables
6379test -z "$AR" && AR=ar
6380test -z "$AR_FLAGS" && AR_FLAGS=cru
6381test -z "$AS" && AS=as
6382test -z "$CC" && CC=cc
6383test -z "$LTCC" && LTCC=$CC
6384test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6385test -z "$DLLTOOL" && DLLTOOL=dlltool
6386test -z "$LD" && LD=ld
6387test -z "$LN_S" && LN_S="ln -s"
6388test -z "$MAGIC_CMD" && MAGIC_CMD=file
6389test -z "$NM" && NM=nm
6390test -z "$SED" && SED=sed
6391test -z "$OBJDUMP" && OBJDUMP=objdump
6392test -z "$RANLIB" && RANLIB=:
6393test -z "$STRIP" && STRIP=:
6394test -z "$ac_objext" && ac_objext=o
6395
6396# Determine commands to create old-style static archives.
6397old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6398old_postinstall_cmds='chmod 644 $oldlib'
6399old_postuninstall_cmds=
6400
6401if test -n "$RANLIB"; then
6402 case $host_os in
6403 openbsd*)
6404 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6405 ;;
6406 *)
6407 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6408 ;;
6409 esac
6410 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6411fi
6412
6413for cc_temp in $compiler""; do
6414 case $cc_temp in
6415 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6416 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6417 \-*) ;;
6418 *) break;;
6419 esac
6420done
6421cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6422
6423
6424# Only perform the check for file, if the check method requires it
6425case $deplibs_check_method in
6426file_magic*)
6427 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6428 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6429echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6430if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6431 echo $ECHO_N "(cached) $ECHO_C" >&6
6432else
6433 case $MAGIC_CMD in
6434[\\/*] | ?:[\\/]*)
6435 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6436 ;;
6437*)
6438 lt_save_MAGIC_CMD="$MAGIC_CMD"
6439 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6440 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6441 for ac_dir in $ac_dummy; do
6442 IFS="$lt_save_ifs"
6443 test -z "$ac_dir" && ac_dir=.
6444 if test -f $ac_dir/${ac_tool_prefix}file; then
6445 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6446 if test -n "$file_magic_test_file"; then
6447 case $deplibs_check_method in
6448 "file_magic "*)
6449 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6450 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6451 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6452 $EGREP "$file_magic_regex" > /dev/null; then
6453 :
6454 else
6455 cat <<EOF 1>&2
6456
6457*** Warning: the command libtool uses to detect shared libraries,
6458*** $file_magic_cmd, produces output that libtool cannot recognize.
6459*** The result is that libtool may fail to recognize shared libraries
6460*** as such. This will affect the creation of libtool libraries that
6461*** depend on shared libraries, but programs linked with such libtool
6462*** libraries will work regardless of this problem. Nevertheless, you
6463*** may want to report the problem to your system manager and/or to
6464*** bug-libtool@gnu.org
6465
6466EOF
6467 fi ;;
6468 esac
6469 fi
6470 break
6471 fi
6472 done
6473 IFS="$lt_save_ifs"
6474 MAGIC_CMD="$lt_save_MAGIC_CMD"
6475 ;;
6476esac
6477fi
6478
6479MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6480if test -n "$MAGIC_CMD"; then
6481 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6482echo "${ECHO_T}$MAGIC_CMD" >&6
6483else
6484 echo "$as_me:$LINENO: result: no" >&5
6485echo "${ECHO_T}no" >&6
6486fi
6487
6488if test -z "$lt_cv_path_MAGIC_CMD"; then
6489 if test -n "$ac_tool_prefix"; then
6490 echo "$as_me:$LINENO: checking for file" >&5
6491echo $ECHO_N "checking for file... $ECHO_C" >&6
6492if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6493 echo $ECHO_N "(cached) $ECHO_C" >&6
6494else
6495 case $MAGIC_CMD in
6496[\\/*] | ?:[\\/]*)
6497 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6498 ;;
6499*)
6500 lt_save_MAGIC_CMD="$MAGIC_CMD"
6501 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6502 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6503 for ac_dir in $ac_dummy; do
6504 IFS="$lt_save_ifs"
6505 test -z "$ac_dir" && ac_dir=.
6506 if test -f $ac_dir/file; then
6507 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6508 if test -n "$file_magic_test_file"; then
6509 case $deplibs_check_method in
6510 "file_magic "*)
6511 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6512 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6513 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6514 $EGREP "$file_magic_regex" > /dev/null; then
6515 :
6516 else
6517 cat <<EOF 1>&2
6518
6519*** Warning: the command libtool uses to detect shared libraries,
6520*** $file_magic_cmd, produces output that libtool cannot recognize.
6521*** The result is that libtool may fail to recognize shared libraries
6522*** as such. This will affect the creation of libtool libraries that
6523*** depend on shared libraries, but programs linked with such libtool
6524*** libraries will work regardless of this problem. Nevertheless, you
6525*** may want to report the problem to your system manager and/or to
6526*** bug-libtool@gnu.org
6527
6528EOF
6529 fi ;;
6530 esac
6531 fi
6532 break
6533 fi
6534 done
6535 IFS="$lt_save_ifs"
6536 MAGIC_CMD="$lt_save_MAGIC_CMD"
6537 ;;
6538esac
6539fi
6540
6541MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6542if test -n "$MAGIC_CMD"; then
6543 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6544echo "${ECHO_T}$MAGIC_CMD" >&6
6545else
6546 echo "$as_me:$LINENO: result: no" >&5
6547echo "${ECHO_T}no" >&6
6548fi
6549
6550 else
6551 MAGIC_CMD=:
6552 fi
6553fi
6554
6555 fi
6556 ;;
6557esac
6558
6559enable_dlopen=no
6560enable_win32_dll=no
6561
6562# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6563if test "${enable_libtool_lock+set}" = set; then
6564 enableval="$enable_libtool_lock"
6565
6566fi;
6567test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6568
6569
6570# Check whether --with-pic or --without-pic was given.
6571if test "${with_pic+set}" = set; then
6572 withval="$with_pic"
6573 pic_mode="$withval"
6574else
6575 pic_mode=default
6576fi;
6577test -z "$pic_mode" && pic_mode=default
6578
6579# Use C for the default configuration in the libtool script
6580tagname=
6581lt_save_CC="$CC"
6582ac_ext=c
6583ac_cpp='$CPP $CPPFLAGS'
6584ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6585ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6586ac_compiler_gnu=$ac_cv_c_compiler_gnu
6587
6588
6589# Source file extension for C test sources.
6590ac_ext=c
6591
6592# Object file extension for compiled C test sources.
6593objext=o
6594objext=$objext
6595
6596# Code to be used in simple compile tests
6597lt_simple_compile_test_code="int some_variable = 0;\n"
6598
6599# Code to be used in simple link tests
6600lt_simple_link_test_code='int main(){return(0);}\n'
6601
6602
6603# If no C compiler was specified, use CC.
6604LTCC=${LTCC-"$CC"}
6605
6606# If no C compiler flags were specified, use CFLAGS.
6607LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6608
6609# Allow CC to be a program name with arguments.
6610compiler=$CC
6611
6612
6613# save warnings/boilerplate of simple test code
6614ac_outfile=conftest.$ac_objext
6615printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6616eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6617_lt_compiler_boilerplate=`cat conftest.err`
6618$rm conftest*
6619
6620ac_outfile=conftest.$ac_objext
6621printf "$lt_simple_link_test_code" >conftest.$ac_ext
6622eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6623_lt_linker_boilerplate=`cat conftest.err`
6624$rm conftest*
6625
6626
6627
6628lt_prog_compiler_no_builtin_flag=
6629
6630if test "$GCC" = yes; then
6631 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6632
6633
6634echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6635echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6636if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6637 echo $ECHO_N "(cached) $ECHO_C" >&6
6638else
6639 lt_cv_prog_compiler_rtti_exceptions=no
6640 ac_outfile=conftest.$ac_objext
6641 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6642 lt_compiler_flag="-fno-rtti -fno-exceptions"
6643 # Insert the option either (1) after the last *FLAGS variable, or
6644 # (2) before a word containing "conftest.", or (3) at the end.
6645 # Note that $ac_compile itself does not contain backslashes and begins
6646 # with a dollar sign (not a hyphen), so the echo should work correctly.
6647 # The option is referenced via a variable to avoid confusing sed.
6648 lt_compile=`echo "$ac_compile" | $SED \
6649 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6650 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6651 -e 's:$: $lt_compiler_flag:'`
86933a6e 6652 (eval echo "\"\$as_me:6652: $lt_compile\"" >&5)
bf9f3bac 6653 (eval "$lt_compile" 2>conftest.err)
6654 ac_status=$?
6655 cat conftest.err >&5
86933a6e 6656 echo "$as_me:6656: \$? = $ac_status" >&5
bf9f3bac 6657 if (exit $ac_status) && test -s "$ac_outfile"; then
6658 # The compiler can only warn and ignore the option if not recognized
6659 # So say no if there are warnings other than the usual output.
6660 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6661 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6662 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6663 lt_cv_prog_compiler_rtti_exceptions=yes
6664 fi
6665 fi
6666 $rm conftest*
6667
6668fi
6669echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6670echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6671
6672if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6673 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6674else
6675 :
6676fi
6677
6678fi
6679
6680lt_prog_compiler_wl=
6681lt_prog_compiler_pic=
6682lt_prog_compiler_static=
6683
6684echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6685echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6686
6687 if test "$GCC" = yes; then
6688 lt_prog_compiler_wl='-Wl,'
6689 lt_prog_compiler_static='-static'
6690
6691 case $host_os in
6692 aix*)
6693 # All AIX code is PIC.
6694 if test "$host_cpu" = ia64; then
6695 # AIX 5 now supports IA64 processor
6696 lt_prog_compiler_static='-Bstatic'
6697 fi
6698 ;;
6699
6700 amigaos*)
6701 # FIXME: we need at least 68020 code to build shared libraries, but
6702 # adding the `-m68020' flag to GCC prevents building anything better,
6703 # like `-m68040'.
6704 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6705 ;;
6706
6707 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6708 # PIC is the default for these OSes.
6709 ;;
6710
6711 mingw* | pw32* | os2*)
6712 # This hack is so that the source file can tell whether it is being
6713 # built for inclusion in a dll (and should export symbols for example).
6714 lt_prog_compiler_pic='-DDLL_EXPORT'
6715 ;;
6716
6717 darwin* | rhapsody*)
6718 # PIC is the default on this platform
6719 # Common symbols not allowed in MH_DYLIB files
6720 lt_prog_compiler_pic='-fno-common'
6721 ;;
6722
6723 interix3*)
6724 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6725 # Instead, we relocate shared libraries at runtime.
6726 ;;
6727
6728 msdosdjgpp*)
6729 # Just because we use GCC doesn't mean we suddenly get shared libraries
6730 # on systems that don't support them.
6731 lt_prog_compiler_can_build_shared=no
6732 enable_shared=no
6733 ;;
6734
6735 sysv4*MP*)
6736 if test -d /usr/nec; then
6737 lt_prog_compiler_pic=-Kconform_pic
6738 fi
6739 ;;
6740
6741 hpux*)
6742 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6743 # not for PA HP-UX.
6744 case $host_cpu in
6745 hppa*64*|ia64*)
6746 # +Z the default
6747 ;;
6748 *)
6749 lt_prog_compiler_pic='-fPIC'
6750 ;;
6751 esac
6752 ;;
6753
6754 *)
6755 lt_prog_compiler_pic='-fPIC'
6756 ;;
6757 esac
6758 else
6759 # PORTME Check for flag to pass linker flags through the system compiler.
6760 case $host_os in
6761 aix*)
6762 lt_prog_compiler_wl='-Wl,'
6763 if test "$host_cpu" = ia64; then
6764 # AIX 5 now supports IA64 processor
6765 lt_prog_compiler_static='-Bstatic'
6766 else
6767 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6768 fi
6769 ;;
6770 darwin*)
6771 # PIC is the default on this platform
6772 # Common symbols not allowed in MH_DYLIB files
6773 case $cc_basename in
6774 xlc*)
6775 lt_prog_compiler_pic='-qnocommon'
6776 lt_prog_compiler_wl='-Wl,'
6777 ;;
6778 esac
6779 ;;
6780
6781 mingw* | pw32* | os2*)
6782 # This hack is so that the source file can tell whether it is being
6783 # built for inclusion in a dll (and should export symbols for example).
6784 lt_prog_compiler_pic='-DDLL_EXPORT'
6785 ;;
6786
6787 hpux9* | hpux10* | hpux11*)
6788 lt_prog_compiler_wl='-Wl,'
6789 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6790 # not for PA HP-UX.
6791 case $host_cpu in
6792 hppa*64*|ia64*)
6793 # +Z the default
6794 ;;
6795 *)
6796 lt_prog_compiler_pic='+Z'
6797 ;;
6798 esac
6799 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6800 lt_prog_compiler_static='${wl}-a ${wl}archive'
6801 ;;
6802
6803 irix5* | irix6* | nonstopux*)
6804 lt_prog_compiler_wl='-Wl,'
6805 # PIC (with -KPIC) is the default.
6806 lt_prog_compiler_static='-non_shared'
6807 ;;
6808
6809 newsos6)
6810 lt_prog_compiler_pic='-KPIC'
6811 lt_prog_compiler_static='-Bstatic'
6812 ;;
6813
6814 linux*)
6815 case $cc_basename in
6816 icc* | ecc*)
6817 lt_prog_compiler_wl='-Wl,'
6818 lt_prog_compiler_pic='-KPIC'
6819 lt_prog_compiler_static='-static'
6820 ;;
6821 pgcc* | pgf77* | pgf90* | pgf95*)
6822 # Portland Group compilers (*not* the Pentium gcc compiler,
6823 # which looks to be a dead project)
6824 lt_prog_compiler_wl='-Wl,'
6825 lt_prog_compiler_pic='-fpic'
6826 lt_prog_compiler_static='-Bstatic'
6827 ;;
6828 ccc*)
6829 lt_prog_compiler_wl='-Wl,'
6830 # All Alpha code is PIC.
6831 lt_prog_compiler_static='-non_shared'
6832 ;;
6833 esac
6834 ;;
6835
6836 osf3* | osf4* | osf5*)
6837 lt_prog_compiler_wl='-Wl,'
6838 # All OSF/1 code is PIC.
6839 lt_prog_compiler_static='-non_shared'
6840 ;;
6841
6842 solaris*)
6843 lt_prog_compiler_pic='-KPIC'
6844 lt_prog_compiler_static='-Bstatic'
6845 case $cc_basename in
6846 f77* | f90* | f95*)
6847 lt_prog_compiler_wl='-Qoption ld ';;
6848 *)
6849 lt_prog_compiler_wl='-Wl,';;
6850 esac
6851 ;;
6852
6853 sunos4*)
6854 lt_prog_compiler_wl='-Qoption ld '
6855 lt_prog_compiler_pic='-PIC'
6856 lt_prog_compiler_static='-Bstatic'
6857 ;;
6858
6859 sysv4 | sysv4.2uw2* | sysv4.3*)
6860 lt_prog_compiler_wl='-Wl,'
6861 lt_prog_compiler_pic='-KPIC'
6862 lt_prog_compiler_static='-Bstatic'
6863 ;;
6864
6865 sysv4*MP*)
6866 if test -d /usr/nec ;then
6867 lt_prog_compiler_pic='-Kconform_pic'
6868 lt_prog_compiler_static='-Bstatic'
6869 fi
6870 ;;
6871
6872 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6873 lt_prog_compiler_wl='-Wl,'
6874 lt_prog_compiler_pic='-KPIC'
6875 lt_prog_compiler_static='-Bstatic'
6876 ;;
6877
6878 unicos*)
6879 lt_prog_compiler_wl='-Wl,'
6880 lt_prog_compiler_can_build_shared=no
6881 ;;
6882
6883 uts4*)
6884 lt_prog_compiler_pic='-pic'
6885 lt_prog_compiler_static='-Bstatic'
6886 ;;
6887
6888 *)
6889 lt_prog_compiler_can_build_shared=no
6890 ;;
6891 esac
6892 fi
6893
6894echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6895echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6896
6897#
6898# Check to make sure the PIC flag actually works.
6899#
6900if test -n "$lt_prog_compiler_pic"; then
6901
6902echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6903echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6904if test "${lt_prog_compiler_pic_works+set}" = set; then
6905 echo $ECHO_N "(cached) $ECHO_C" >&6
6906else
6907 lt_prog_compiler_pic_works=no
6908 ac_outfile=conftest.$ac_objext
6909 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6910 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6911 # Insert the option either (1) after the last *FLAGS variable, or
6912 # (2) before a word containing "conftest.", or (3) at the end.
6913 # Note that $ac_compile itself does not contain backslashes and begins
6914 # with a dollar sign (not a hyphen), so the echo should work correctly.
6915 # The option is referenced via a variable to avoid confusing sed.
6916 lt_compile=`echo "$ac_compile" | $SED \
6917 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6918 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6919 -e 's:$: $lt_compiler_flag:'`
86933a6e 6920 (eval echo "\"\$as_me:6920: $lt_compile\"" >&5)
bf9f3bac 6921 (eval "$lt_compile" 2>conftest.err)
6922 ac_status=$?
6923 cat conftest.err >&5
86933a6e 6924 echo "$as_me:6924: \$? = $ac_status" >&5
bf9f3bac 6925 if (exit $ac_status) && test -s "$ac_outfile"; then
6926 # The compiler can only warn and ignore the option if not recognized
6927 # So say no if there are warnings other than the usual output.
6928 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6929 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6930 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6931 lt_prog_compiler_pic_works=yes
6932 fi
6933 fi
6934 $rm conftest*
6935
6936fi
6937echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6938echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6939
6940if test x"$lt_prog_compiler_pic_works" = xyes; then
6941 case $lt_prog_compiler_pic in
6942 "" | " "*) ;;
6943 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6944 esac
6945else
6946 lt_prog_compiler_pic=
6947 lt_prog_compiler_can_build_shared=no
6948fi
6949
6950fi
6951case $host_os in
6952 # For platforms which do not support PIC, -DPIC is meaningless:
6953 *djgpp*)
6954 lt_prog_compiler_pic=
6955 ;;
6956 *)
6957 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6958 ;;
6959esac
6960
6961#
6962# Check to make sure the static flag actually works.
6963#
6964wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6965echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6966echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6967if test "${lt_prog_compiler_static_works+set}" = set; then
6968 echo $ECHO_N "(cached) $ECHO_C" >&6
6969else
6970 lt_prog_compiler_static_works=no
6971 save_LDFLAGS="$LDFLAGS"
6972 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6973 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6974 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6975 # The linker can only warn and ignore the option if not recognized
6976 # So say no if there are warnings
6977 if test -s conftest.err; then
6978 # Append any errors to the config.log.
6979 cat conftest.err 1>&5
6980 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6981 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6982 if diff conftest.exp conftest.er2 >/dev/null; then
6983 lt_prog_compiler_static_works=yes
6984 fi
6985 else
6986 lt_prog_compiler_static_works=yes
6987 fi
6988 fi
6989 $rm conftest*
6990 LDFLAGS="$save_LDFLAGS"
6991
6992fi
6993echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6994echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6995
6996if test x"$lt_prog_compiler_static_works" = xyes; then
6997 :
6998else
6999 lt_prog_compiler_static=
7000fi
7001
7002
7003echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7004echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7005if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7006 echo $ECHO_N "(cached) $ECHO_C" >&6
7007else
7008 lt_cv_prog_compiler_c_o=no
7009 $rm -r conftest 2>/dev/null
7010 mkdir conftest
7011 cd conftest
7012 mkdir out
7013 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7014
7015 lt_compiler_flag="-o out/conftest2.$ac_objext"
7016 # Insert the option either (1) after the last *FLAGS variable, or
7017 # (2) before a word containing "conftest.", or (3) at the end.
7018 # Note that $ac_compile itself does not contain backslashes and begins
7019 # with a dollar sign (not a hyphen), so the echo should work correctly.
7020 lt_compile=`echo "$ac_compile" | $SED \
7021 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7022 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7023 -e 's:$: $lt_compiler_flag:'`
86933a6e 7024 (eval echo "\"\$as_me:7024: $lt_compile\"" >&5)
bf9f3bac 7025 (eval "$lt_compile" 2>out/conftest.err)
7026 ac_status=$?
7027 cat out/conftest.err >&5
86933a6e 7028 echo "$as_me:7028: \$? = $ac_status" >&5
bf9f3bac 7029 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7030 then
7031 # The compiler can only warn and ignore the option if not recognized
7032 # So say no if there are warnings
7033 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7034 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7035 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7036 lt_cv_prog_compiler_c_o=yes
7037 fi
7038 fi
7039 chmod u+w . 2>&5
7040 $rm conftest*
7041 # SGI C++ compiler will create directory out/ii_files/ for
7042 # template instantiation
7043 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7044 $rm out/* && rmdir out
7045 cd ..
7046 rmdir conftest
7047 $rm conftest*
7048
7049fi
7050echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7051echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7052
7053
7054hard_links="nottested"
7055if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7056 # do not overwrite the value of need_locks provided by the user
7057 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7058echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7059 hard_links=yes
7060 $rm conftest*
7061 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7062 touch conftest.a
7063 ln conftest.a conftest.b 2>&5 || hard_links=no
7064 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7065 echo "$as_me:$LINENO: result: $hard_links" >&5
7066echo "${ECHO_T}$hard_links" >&6
7067 if test "$hard_links" = no; then
7068 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7069echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7070 need_locks=warn
7071 fi
7072else
7073 need_locks=no
7074fi
7075
7076echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7077echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7078
7079 runpath_var=
7080 allow_undefined_flag=
7081 enable_shared_with_static_runtimes=no
7082 archive_cmds=
7083 archive_expsym_cmds=
7084 old_archive_From_new_cmds=
7085 old_archive_from_expsyms_cmds=
7086 export_dynamic_flag_spec=
7087 whole_archive_flag_spec=
7088 thread_safe_flag_spec=
7089 hardcode_libdir_flag_spec=
7090 hardcode_libdir_flag_spec_ld=
7091 hardcode_libdir_separator=
7092 hardcode_direct=no
7093 hardcode_minus_L=no
7094 hardcode_shlibpath_var=unsupported
7095 link_all_deplibs=unknown
7096 hardcode_automatic=no
7097 module_cmds=
7098 module_expsym_cmds=
7099 always_export_symbols=no
7100 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7101 # include_expsyms should be a list of space-separated symbols to be *always*
7102 # included in the symbol list
7103 include_expsyms=
7104 # exclude_expsyms can be an extended regexp of symbols to exclude
7105 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7106 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7107 # as well as any symbol that contains `d'.
7108 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7109 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7110 # platforms (ab)use it in PIC code, but their linkers get confused if
7111 # the symbol is explicitly referenced. Since portable code cannot
7112 # rely on this symbol name, it's probably fine to never include it in
7113 # preloaded symbol tables.
7114 extract_expsyms_cmds=
7115 # Just being paranoid about ensuring that cc_basename is set.
7116 for cc_temp in $compiler""; do
7117 case $cc_temp in
7118 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7119 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7120 \-*) ;;
7121 *) break;;
7122 esac
7123done
7124cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7125
7126 case $host_os in
7127 cygwin* | mingw* | pw32*)
7128 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7129 # When not using gcc, we currently assume that we are using
7130 # Microsoft Visual C++.
7131 if test "$GCC" != yes; then
7132 with_gnu_ld=no
7133 fi
7134 ;;
7135 interix*)
7136 # we just hope/assume this is gcc and not c89 (= MSVC++)
7137 with_gnu_ld=yes
7138 ;;
7139 openbsd*)
7140 with_gnu_ld=no
7141 ;;
7142 esac
7143
7144 ld_shlibs=yes
7145 if test "$with_gnu_ld" = yes; then
7146 # If archive_cmds runs LD, not CC, wlarc should be empty
7147 wlarc='${wl}'
7148
7149 # Set some defaults for GNU ld with shared library support. These
7150 # are reset later if shared libraries are not supported. Putting them
7151 # here allows them to be overridden if necessary.
7152 runpath_var=LD_RUN_PATH
7153 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7154 export_dynamic_flag_spec='${wl}--export-dynamic'
7155 # ancient GNU ld didn't support --whole-archive et. al.
7156 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7157 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7158 else
7159 whole_archive_flag_spec=
7160 fi
7161 supports_anon_versioning=no
7162 case `$LD -v 2>/dev/null` in
7163 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7164 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7165 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7166 *\ 2.11.*) ;; # other 2.11 versions
7167 *) supports_anon_versioning=yes ;;
7168 esac
7169
7170 # See if GNU ld supports shared libraries.
7171 case $host_os in
7172 aix3* | aix4* | aix5*)
7173 # On AIX/PPC, the GNU linker is very broken
7174 if test "$host_cpu" != ia64; then
7175 ld_shlibs=no
7176 cat <<EOF 1>&2
7177
7178*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7179*** to be unable to reliably create shared libraries on AIX.
7180*** Therefore, libtool is disabling shared libraries support. If you
7181*** really care for shared libraries, you may want to modify your PATH
7182*** so that a non-GNU linker is found, and then restart.
7183
7184EOF
7185 fi
7186 ;;
7187
7188 amigaos*)
7189 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)'
7190 hardcode_libdir_flag_spec='-L$libdir'
7191 hardcode_minus_L=yes
7192
7193 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7194 # that the semantics of dynamic libraries on AmigaOS, at least up
7195 # to version 4, is to share data among multiple programs linked
7196 # with the same dynamic library. Since this doesn't match the
7197 # behavior of shared libraries on other platforms, we can't use
7198 # them.
7199 ld_shlibs=no
7200 ;;
7201
7202 beos*)
7203 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7204 allow_undefined_flag=unsupported
7205 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7206 # support --undefined. This deserves some investigation. FIXME
7207 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7208 else
7209 ld_shlibs=no
7210 fi
7211 ;;
7212
7213 cygwin* | mingw* | pw32*)
7214 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7215 # as there is no search path for DLLs.
7216 hardcode_libdir_flag_spec='-L$libdir'
7217 allow_undefined_flag=unsupported
7218 always_export_symbols=no
7219 enable_shared_with_static_runtimes=yes
7220 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7221
7222 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7223 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7224 # If the export-symbols file already is a .def file (1st line
7225 # is EXPORTS), use it as is; otherwise, prepend...
7226 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7227 cp $export_symbols $output_objdir/$soname.def;
7228 else
7229 echo EXPORTS > $output_objdir/$soname.def;
7230 cat $export_symbols >> $output_objdir/$soname.def;
7231 fi~
7232 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7233 else
7234 ld_shlibs=no
7235 fi
7236 ;;
7237
7238 interix3*)
7239 hardcode_direct=no
7240 hardcode_shlibpath_var=no
7241 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7242 export_dynamic_flag_spec='${wl}-E'
7243 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7244 # Instead, shared libraries are loaded at an image base (0x10000000 by
7245 # default) and relocated if they conflict, which is a slow very memory
7246 # consuming and fragmenting process. To avoid this, we pick a random,
7247 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7248 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7249 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7250 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'
7251 ;;
7252
7253 linux*)
7254 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7255 tmp_addflag=
7256 case $cc_basename,$host_cpu in
7257 pgcc*) # Portland Group C compiler
7258 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'
7259 tmp_addflag=' $pic_flag'
7260 ;;
7261 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7262 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'
7263 tmp_addflag=' $pic_flag -Mnomain' ;;
7264 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7265 tmp_addflag=' -i_dynamic' ;;
7266 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7267 tmp_addflag=' -i_dynamic -nofor_main' ;;
7268 ifc* | ifort*) # Intel Fortran compiler
7269 tmp_addflag=' -nofor_main' ;;
7270 esac
7271 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7272
7273 if test $supports_anon_versioning = yes; then
7274 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7275 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7276 $echo "local: *; };" >> $output_objdir/$libname.ver~
7277 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7278 fi
7279 else
7280 ld_shlibs=no
7281 fi
7282 ;;
7283
7284 netbsd*)
7285 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7286 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7287 wlarc=
7288 else
7289 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7290 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7291 fi
7292 ;;
7293
7294 solaris*)
7295 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7296 ld_shlibs=no
7297 cat <<EOF 1>&2
7298
7299*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7300*** create shared libraries on Solaris systems. Therefore, libtool
7301*** is disabling shared libraries support. We urge you to upgrade GNU
7302*** binutils to release 2.9.1 or newer. Another option is to modify
7303*** your PATH or compiler configuration so that the native linker is
7304*** used, and then restart.
7305
7306EOF
7307 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7308 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7309 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7310 else
7311 ld_shlibs=no
7312 fi
7313 ;;
7314
7315 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7316 case `$LD -v 2>&1` in
7317 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7318 ld_shlibs=no
7319 cat <<_LT_EOF 1>&2
7320
7321*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7322*** reliably create shared libraries on SCO systems. Therefore, libtool
7323*** is disabling shared libraries support. We urge you to upgrade GNU
7324*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7325*** your PATH or compiler configuration so that the native linker is
7326*** used, and then restart.
7327
7328_LT_EOF
7329 ;;
7330 *)
7331 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7332 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7333 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7334 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7335 else
7336 ld_shlibs=no
7337 fi
7338 ;;
7339 esac
7340 ;;
7341
7342 sunos4*)
7343 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7344 wlarc=
7345 hardcode_direct=yes
7346 hardcode_shlibpath_var=no
7347 ;;
7348
7349 *)
7350 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7351 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7352 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7353 else
7354 ld_shlibs=no
7355 fi
7356 ;;
7357 esac
7358
7359 if test "$ld_shlibs" = no; then
7360 runpath_var=
7361 hardcode_libdir_flag_spec=
7362 export_dynamic_flag_spec=
7363 whole_archive_flag_spec=
7364 fi
7365 else
7366 # PORTME fill in a description of your system's linker (not GNU ld)
7367 case $host_os in
7368 aix3*)
7369 allow_undefined_flag=unsupported
7370 always_export_symbols=yes
7371 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'
7372 # Note: this linker hardcodes the directories in LIBPATH if there
7373 # are no directories specified by -L.
7374 hardcode_minus_L=yes
7375 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7376 # Neither direct hardcoding nor static linking is supported with a
7377 # broken collect2.
7378 hardcode_direct=unsupported
7379 fi
7380 ;;
7381
7382 aix4* | aix5*)
7383 if test "$host_cpu" = ia64; then
7384 # On IA64, the linker does run time linking by default, so we don't
7385 # have to do anything special.
7386 aix_use_runtimelinking=no
7387 exp_sym_flag='-Bexport'
7388 no_entry_flag=""
7389 else
7390 # If we're using GNU nm, then we don't want the "-C" option.
7391 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7392 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7393 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'
7394 else
7395 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'
7396 fi
7397 aix_use_runtimelinking=no
7398
7399 # Test if we are trying to use run time linking or normal
7400 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7401 # need to do runtime linking.
7402 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7403 for ld_flag in $LDFLAGS; do
7404 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7405 aix_use_runtimelinking=yes
7406 break
7407 fi
7408 done
7409 ;;
7410 esac
7411
7412 exp_sym_flag='-bexport'
7413 no_entry_flag='-bnoentry'
7414 fi
7415
7416 # When large executables or shared objects are built, AIX ld can
7417 # have problems creating the table of contents. If linking a library
7418 # or program results in "error TOC overflow" add -mminimal-toc to
7419 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7420 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7421
7422 archive_cmds=''
7423 hardcode_direct=yes
7424 hardcode_libdir_separator=':'
7425 link_all_deplibs=yes
7426
7427 if test "$GCC" = yes; then
7428 case $host_os in aix4.[012]|aix4.[012].*)
7429 # We only want to do this on AIX 4.2 and lower, the check
7430 # below for broken collect2 doesn't work under 4.3+
7431 collect2name=`${CC} -print-prog-name=collect2`
7432 if test -f "$collect2name" && \
7433 strings "$collect2name" | grep resolve_lib_name >/dev/null
7434 then
7435 # We have reworked collect2
7436 hardcode_direct=yes
7437 else
7438 # We have old collect2
7439 hardcode_direct=unsupported
7440 # It fails to find uninstalled libraries when the uninstalled
7441 # path is not listed in the libpath. Setting hardcode_minus_L
7442 # to unsupported forces relinking
7443 hardcode_minus_L=yes
7444 hardcode_libdir_flag_spec='-L$libdir'
7445 hardcode_libdir_separator=
7446 fi
7447 ;;
7448 esac
7449 shared_flag='-shared'
7450 if test "$aix_use_runtimelinking" = yes; then
7451 shared_flag="$shared_flag "'${wl}-G'
7452 fi
7453 else
7454 # not using gcc
7455 if test "$host_cpu" = ia64; then
7456 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7457 # chokes on -Wl,-G. The following line is correct:
7458 shared_flag='-G'
7459 else
7460 if test "$aix_use_runtimelinking" = yes; then
7461 shared_flag='${wl}-G'
7462 else
7463 shared_flag='${wl}-bM:SRE'
7464 fi
7465 fi
7466 fi
7467
7468 # It seems that -bexpall does not export symbols beginning with
7469 # underscore (_), so it is better to generate a list of symbols to export.
7470 always_export_symbols=yes
7471 if test "$aix_use_runtimelinking" = yes; then
7472 # Warning - without using the other runtime loading flags (-brtl),
7473 # -berok will link without error, but may produce a broken library.
7474 allow_undefined_flag='-berok'
7475 # Determine the default libpath from the value encoded in an empty executable.
7476 cat >conftest.$ac_ext <<_ACEOF
7477/* confdefs.h. */
7478_ACEOF
7479cat confdefs.h >>conftest.$ac_ext
7480cat >>conftest.$ac_ext <<_ACEOF
7481/* end confdefs.h. */
7482
7483int
7484main ()
7485{
7486
7487 ;
7488 return 0;
7489}
7490_ACEOF
7491rm -f conftest.$ac_objext conftest$ac_exeext
7492if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7493 (eval $ac_link) 2>conftest.er1
7494 ac_status=$?
7495 grep -v '^ *+' conftest.er1 >conftest.err
7496 rm -f conftest.er1
7497 cat conftest.err >&5
7498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7499 (exit $ac_status); } &&
7500 { ac_try='test -z "$ac_c_werror_flag"
7501 || test ! -s conftest.err'
7502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7503 (eval $ac_try) 2>&5
7504 ac_status=$?
7505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7506 (exit $ac_status); }; } &&
7507 { ac_try='test -s conftest$ac_exeext'
7508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7509 (eval $ac_try) 2>&5
7510 ac_status=$?
7511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7512 (exit $ac_status); }; }; then
7513
7514aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7515}'`
7516# Check for a 64-bit object if we didn't find anything.
7517if 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; }
7518}'`; fi
7519else
7520 echo "$as_me: failed program was:" >&5
7521sed 's/^/| /' conftest.$ac_ext >&5
7522
7523fi
7524rm -f conftest.err conftest.$ac_objext \
7525 conftest$ac_exeext conftest.$ac_ext
7526if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7527
7528 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7529 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"
7530 else
7531 if test "$host_cpu" = ia64; then
7532 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7533 allow_undefined_flag="-z nodefs"
7534 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"
7535 else
7536 # Determine the default libpath from the value encoded in an empty executable.
7537 cat >conftest.$ac_ext <<_ACEOF
7538/* confdefs.h. */
7539_ACEOF
7540cat confdefs.h >>conftest.$ac_ext
7541cat >>conftest.$ac_ext <<_ACEOF
7542/* end confdefs.h. */
7543
7544int
7545main ()
7546{
7547
7548 ;
7549 return 0;
7550}
7551_ACEOF
7552rm -f conftest.$ac_objext conftest$ac_exeext
7553if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7554 (eval $ac_link) 2>conftest.er1
7555 ac_status=$?
7556 grep -v '^ *+' conftest.er1 >conftest.err
7557 rm -f conftest.er1
7558 cat conftest.err >&5
7559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7560 (exit $ac_status); } &&
7561 { ac_try='test -z "$ac_c_werror_flag"
7562 || test ! -s conftest.err'
7563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7564 (eval $ac_try) 2>&5
7565 ac_status=$?
7566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7567 (exit $ac_status); }; } &&
7568 { ac_try='test -s conftest$ac_exeext'
7569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7570 (eval $ac_try) 2>&5
7571 ac_status=$?
7572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7573 (exit $ac_status); }; }; then
7574
7575aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7576}'`
7577# Check for a 64-bit object if we didn't find anything.
7578if 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; }
7579}'`; fi
7580else
7581 echo "$as_me: failed program was:" >&5
7582sed 's/^/| /' conftest.$ac_ext >&5
7583
7584fi
7585rm -f conftest.err conftest.$ac_objext \
7586 conftest$ac_exeext conftest.$ac_ext
7587if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7588
7589 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7590 # Warning - without using the other run time loading flags,
7591 # -berok will link without error, but may produce a broken library.
7592 no_undefined_flag=' ${wl}-bernotok'
7593 allow_undefined_flag=' ${wl}-berok'
7594 # Exported symbols can be pulled into shared objects from archives
7595 whole_archive_flag_spec='$convenience'
7596 archive_cmds_need_lc=yes
7597 # This is similar to how AIX traditionally builds its shared libraries.
7598 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'
7599 fi
7600 fi
7601 ;;
7602
7603 amigaos*)
7604 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)'
7605 hardcode_libdir_flag_spec='-L$libdir'
7606 hardcode_minus_L=yes
7607 # see comment about different semantics on the GNU ld section
7608 ld_shlibs=no
7609 ;;
7610
7611 bsdi[45]*)
7612 export_dynamic_flag_spec=-rdynamic
7613 ;;
7614
7615 cygwin* | mingw* | pw32*)
7616 # When not using gcc, we currently assume that we are using
7617 # Microsoft Visual C++.
7618 # hardcode_libdir_flag_spec is actually meaningless, as there is
7619 # no search path for DLLs.
7620 hardcode_libdir_flag_spec=' '
7621 allow_undefined_flag=unsupported
7622 # Tell ltmain to make .lib files, not .a files.
7623 libext=lib
7624 # Tell ltmain to make .dll files, not .so files.
7625 shrext_cmds=".dll"
7626 # FIXME: Setting linknames here is a bad hack.
7627 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7628 # The linker will automatically build a .lib file if we build a DLL.
7629 old_archive_From_new_cmds='true'
7630 # FIXME: Should let the user specify the lib program.
7631 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7632 fix_srcfile_path='`cygpath -w "$srcfile"`'
7633 enable_shared_with_static_runtimes=yes
7634 ;;
7635
7636 darwin* | rhapsody*)
7637 case $host_os in
7638 rhapsody* | darwin1.[012])
7639 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7640 ;;
7641 *) # Darwin 1.3 on
7642 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7643 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7644 else
7645 case ${MACOSX_DEPLOYMENT_TARGET} in
7646 10.[012])
7647 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7648 ;;
7649 10.*)
7650 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7651 ;;
7652 esac
7653 fi
7654 ;;
7655 esac
7656 archive_cmds_need_lc=no
7657 hardcode_direct=no
7658 hardcode_automatic=yes
7659 hardcode_shlibpath_var=unsupported
7660 whole_archive_flag_spec=''
7661 link_all_deplibs=yes
7662 if test "$GCC" = yes ; then
7663 output_verbose_link_cmd='echo'
7664 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7665 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7666 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7667 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}'
7668 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}'
7669 else
7670 case $cc_basename in
7671 xlc*)
7672 output_verbose_link_cmd='echo'
7673 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7674 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7675 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7676 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}'
7677 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}'
7678 ;;
7679 *)
7680 ld_shlibs=no
7681 ;;
7682 esac
7683 fi
7684 ;;
7685
7686 dgux*)
7687 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7688 hardcode_libdir_flag_spec='-L$libdir'
7689 hardcode_shlibpath_var=no
7690 ;;
7691
7692 freebsd1*)
7693 ld_shlibs=no
7694 ;;
7695
7696 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7697 # support. Future versions do this automatically, but an explicit c++rt0.o
7698 # does not break anything, and helps significantly (at the cost of a little
7699 # extra space).
7700 freebsd2.2*)
7701 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7702 hardcode_libdir_flag_spec='-R$libdir'
7703 hardcode_direct=yes
7704 hardcode_shlibpath_var=no
7705 ;;
7706
7707 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7708 freebsd2*)
7709 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7710 hardcode_direct=yes
7711 hardcode_minus_L=yes
7712 hardcode_shlibpath_var=no
7713 ;;
7714
7715 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7716 freebsd* | kfreebsd*-gnu | dragonfly*)
7717 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7718 hardcode_libdir_flag_spec='-R$libdir'
7719 hardcode_direct=yes
7720 hardcode_shlibpath_var=no
7721 ;;
7722
7723 hpux9*)
7724 if test "$GCC" = yes; then
7725 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'
7726 else
7727 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'
7728 fi
7729 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7730 hardcode_libdir_separator=:
7731 hardcode_direct=yes
7732
7733 # hardcode_minus_L: Not really in the search PATH,
7734 # but as the default location of the library.
7735 hardcode_minus_L=yes
7736 export_dynamic_flag_spec='${wl}-E'
7737 ;;
7738
7739 hpux10*)
7740 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7741 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7742 else
7743 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7744 fi
7745 if test "$with_gnu_ld" = no; then
7746 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7747 hardcode_libdir_separator=:
7748
7749 hardcode_direct=yes
7750 export_dynamic_flag_spec='${wl}-E'
7751
7752 # hardcode_minus_L: Not really in the search PATH,
7753 # but as the default location of the library.
7754 hardcode_minus_L=yes
7755 fi
7756 ;;
7757
7758 hpux11*)
7759 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7760 case $host_cpu in
7761 hppa*64*)
7762 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7763 ;;
7764 ia64*)
7765 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7766 ;;
7767 *)
7768 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7769 ;;
7770 esac
7771 else
7772 case $host_cpu in
7773 hppa*64*)
7774 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7775 ;;
7776 ia64*)
7777 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7778 ;;
7779 *)
7780 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7781 ;;
7782 esac
7783 fi
7784 if test "$with_gnu_ld" = no; then
7785 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7786 hardcode_libdir_separator=:
7787
7788 case $host_cpu in
7789 hppa*64*|ia64*)
7790 hardcode_libdir_flag_spec_ld='+b $libdir'
7791 hardcode_direct=no
7792 hardcode_shlibpath_var=no
7793 ;;
7794 *)
7795 hardcode_direct=yes
7796 export_dynamic_flag_spec='${wl}-E'
7797
7798 # hardcode_minus_L: Not really in the search PATH,
7799 # but as the default location of the library.
7800 hardcode_minus_L=yes
7801 ;;
7802 esac
7803 fi
7804 ;;
7805
7806 irix5* | irix6* | nonstopux*)
7807 if test "$GCC" = yes; then
7808 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'
7809 else
7810 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'
7811 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7812 fi
7813 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7814 hardcode_libdir_separator=:
7815 link_all_deplibs=yes
7816 ;;
7817
7818 netbsd*)
7819 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7820 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7821 else
7822 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7823 fi
7824 hardcode_libdir_flag_spec='-R$libdir'
7825 hardcode_direct=yes
7826 hardcode_shlibpath_var=no
7827 ;;
7828
7829 newsos6)
7830 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7831 hardcode_direct=yes
7832 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7833 hardcode_libdir_separator=:
7834 hardcode_shlibpath_var=no
7835 ;;
7836
7837 openbsd*)
7838 hardcode_direct=yes
7839 hardcode_shlibpath_var=no
7840 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7841 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7842 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7843 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7844 export_dynamic_flag_spec='${wl}-E'
7845 else
7846 case $host_os in
7847 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7848 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7849 hardcode_libdir_flag_spec='-R$libdir'
7850 ;;
7851 *)
7852 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7853 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7854 ;;
7855 esac
7856 fi
7857 ;;
7858
7859 os2*)
7860 hardcode_libdir_flag_spec='-L$libdir'
7861 hardcode_minus_L=yes
7862 allow_undefined_flag=unsupported
7863 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'
7864 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7865 ;;
7866
7867 osf3*)
7868 if test "$GCC" = yes; then
7869 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7870 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'
7871 else
7872 allow_undefined_flag=' -expect_unresolved \*'
7873 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'
7874 fi
7875 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7876 hardcode_libdir_separator=:
7877 ;;
7878
7879 osf4* | osf5*) # as osf3* with the addition of -msym flag
7880 if test "$GCC" = yes; then
7881 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7882 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'
7883 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7884 else
7885 allow_undefined_flag=' -expect_unresolved \*'
7886 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'
7887 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7888 $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'
7889
7890 # Both c and cxx compiler support -rpath directly
7891 hardcode_libdir_flag_spec='-rpath $libdir'
7892 fi
7893 hardcode_libdir_separator=:
7894 ;;
7895
7896 solaris*)
7897 no_undefined_flag=' -z text'
7898 if test "$GCC" = yes; then
7899 wlarc='${wl}'
7900 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7901 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7902 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7903 else
7904 wlarc=''
7905 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7906 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7907 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7908 fi
7909 hardcode_libdir_flag_spec='-R$libdir'
7910 hardcode_shlibpath_var=no
7911 case $host_os in
7912 solaris2.[0-5] | solaris2.[0-5].*) ;;
7913 *)
7914 # The compiler driver will combine linker options so we
7915 # cannot just pass the convience library names through
7916 # without $wl, iff we do not link with $LD.
7917 # Luckily, gcc supports the same syntax we need for Sun Studio.
7918 # Supported since Solaris 2.6 (maybe 2.5.1?)
7919 case $wlarc in
7920 '')
7921 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7922 *)
7923 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' ;;
7924 esac ;;
7925 esac
7926 link_all_deplibs=yes
7927 ;;
7928
7929 sunos4*)
7930 if test "x$host_vendor" = xsequent; then
7931 # Use $CC to link under sequent, because it throws in some extra .o
7932 # files that make .init and .fini sections work.
7933 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7934 else
7935 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7936 fi
7937 hardcode_libdir_flag_spec='-L$libdir'
7938 hardcode_direct=yes
7939 hardcode_minus_L=yes
7940 hardcode_shlibpath_var=no
7941 ;;
7942
7943 sysv4)
7944 case $host_vendor in
7945 sni)
7946 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7947 hardcode_direct=yes # is this really true???
7948 ;;
7949 siemens)
7950 ## LD is ld it makes a PLAMLIB
7951 ## CC just makes a GrossModule.
7952 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7953 reload_cmds='$CC -r -o $output$reload_objs'
7954 hardcode_direct=no
7955 ;;
7956 motorola)
7957 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7958 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7959 ;;
7960 esac
7961 runpath_var='LD_RUN_PATH'
7962 hardcode_shlibpath_var=no
7963 ;;
7964
7965 sysv4.3*)
7966 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7967 hardcode_shlibpath_var=no
7968 export_dynamic_flag_spec='-Bexport'
7969 ;;
7970
7971 sysv4*MP*)
7972 if test -d /usr/nec; then
7973 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7974 hardcode_shlibpath_var=no
7975 runpath_var=LD_RUN_PATH
7976 hardcode_runpath_var=yes
7977 ld_shlibs=yes
7978 fi
7979 ;;
7980
7981 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
7982 no_undefined_flag='${wl}-z,text'
7983 archive_cmds_need_lc=no
7984 hardcode_shlibpath_var=no
7985 runpath_var='LD_RUN_PATH'
7986
7987 if test "$GCC" = yes; then
7988 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7989 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7990 else
7991 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7992 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7993 fi
7994 ;;
7995
7996 sysv5* | sco3.2v5* | sco5v6*)
7997 # Note: We can NOT use -z defs as we might desire, because we do not
7998 # link with -lc, and that would cause any symbols used from libc to
7999 # always be unresolved, which means just about no library would
8000 # ever link correctly. If we're not using GNU ld we use -z text
8001 # though, which does catch some bad symbols but isn't as heavy-handed
8002 # as -z defs.
8003 no_undefined_flag='${wl}-z,text'
8004 allow_undefined_flag='${wl}-z,nodefs'
8005 archive_cmds_need_lc=no
8006 hardcode_shlibpath_var=no
8007 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8008 hardcode_libdir_separator=':'
8009 link_all_deplibs=yes
8010 export_dynamic_flag_spec='${wl}-Bexport'
8011 runpath_var='LD_RUN_PATH'
8012
8013 if test "$GCC" = yes; then
8014 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8015 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8016 else
8017 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8018 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8019 fi
8020 ;;
8021
8022 uts4*)
8023 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8024 hardcode_libdir_flag_spec='-L$libdir'
8025 hardcode_shlibpath_var=no
8026 ;;
8027
8028 *)
8029 ld_shlibs=no
8030 ;;
8031 esac
8032 fi
8033
8034echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8035echo "${ECHO_T}$ld_shlibs" >&6
8036test "$ld_shlibs" = no && can_build_shared=no
8037
8038#
8039# Do we need to explicitly link libc?
8040#
8041case "x$archive_cmds_need_lc" in
8042x|xyes)
8043 # Assume -lc should be added
8044 archive_cmds_need_lc=yes
8045
8046 if test "$enable_shared" = yes && test "$GCC" = yes; then
8047 case $archive_cmds in
8048 *'~'*)
8049 # FIXME: we may have to deal with multi-command sequences.
8050 ;;
8051 '$CC '*)
8052 # Test whether the compiler implicitly links with -lc since on some
8053 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8054 # to ld, don't add -lc before -lgcc.
8055 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8056echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8057 $rm conftest*
8058 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8059
8060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8061 (eval $ac_compile) 2>&5
8062 ac_status=$?
8063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8064 (exit $ac_status); } 2>conftest.err; then
8065 soname=conftest
8066 lib=conftest
8067 libobjs=conftest.$ac_objext
8068 deplibs=
8069 wl=$lt_prog_compiler_wl
8070 pic_flag=$lt_prog_compiler_pic
8071 compiler_flags=-v
8072 linker_flags=-v
8073 verstring=
8074 output_objdir=.
8075 libname=conftest
8076 lt_save_allow_undefined_flag=$allow_undefined_flag
8077 allow_undefined_flag=
8078 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8079 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8080 ac_status=$?
8081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8082 (exit $ac_status); }
8083 then
8084 archive_cmds_need_lc=no
8085 else
8086 archive_cmds_need_lc=yes
8087 fi
8088 allow_undefined_flag=$lt_save_allow_undefined_flag
8089 else
8090 cat conftest.err 1>&5
8091 fi
8092 $rm conftest*
8093 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8094echo "${ECHO_T}$archive_cmds_need_lc" >&6
8095 ;;
8096 esac
8097 fi
8098 ;;
8099esac
8100
8101echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8102echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8103library_names_spec=
8104libname_spec='lib$name'
8105soname_spec=
8106shrext_cmds=".so"
8107postinstall_cmds=
8108postuninstall_cmds=
8109finish_cmds=
8110finish_eval=
8111shlibpath_var=
8112shlibpath_overrides_runpath=unknown
8113version_type=none
8114dynamic_linker="$host_os ld.so"
8115sys_lib_dlsearch_path_spec="/lib /usr/lib"
8116if test "$GCC" = yes; then
8117 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8118 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8119 # if the path contains ";" then we assume it to be the separator
8120 # otherwise default to the standard path separator (i.e. ":") - it is
8121 # assumed that no part of a normal pathname contains ";" but that should
8122 # okay in the real world where ";" in dirpaths is itself problematic.
8123 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8124 else
8125 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8126 fi
8127else
8128 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8129fi
8130need_lib_prefix=unknown
8131hardcode_into_libs=no
8132
8133# when you set need_version to no, make sure it does not cause -set_version
8134# flags to be left without arguments
8135need_version=unknown
8136
8137case $host_os in
8138aix3*)
8139 version_type=linux
8140 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8141 shlibpath_var=LIBPATH
8142
8143 # AIX 3 has no versioning support, so we append a major version to the name.
8144 soname_spec='${libname}${release}${shared_ext}$major'
8145 ;;
8146
8147aix4* | aix5*)
8148 version_type=linux
8149 need_lib_prefix=no
8150 need_version=no
8151 hardcode_into_libs=yes
8152 if test "$host_cpu" = ia64; then
8153 # AIX 5 supports IA64
8154 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8155 shlibpath_var=LD_LIBRARY_PATH
8156 else
8157 # With GCC up to 2.95.x, collect2 would create an import file
8158 # for dependence libraries. The import file would start with
8159 # the line `#! .'. This would cause the generated library to
8160 # depend on `.', always an invalid library. This was fixed in
8161 # development snapshots of GCC prior to 3.0.
8162 case $host_os in
8163 aix4 | aix4.[01] | aix4.[01].*)
8164 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8165 echo ' yes '
8166 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8167 :
8168 else
8169 can_build_shared=no
8170 fi
8171 ;;
8172 esac
8173 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8174 # soname into executable. Probably we can add versioning support to
8175 # collect2, so additional links can be useful in future.
8176 if test "$aix_use_runtimelinking" = yes; then
8177 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8178 # instead of lib<name>.a to let people know that these are not
8179 # typical AIX shared libraries.
8180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8181 else
8182 # We preserve .a as extension for shared libraries through AIX4.2
8183 # and later when we are not doing run time linking.
8184 library_names_spec='${libname}${release}.a $libname.a'
8185 soname_spec='${libname}${release}${shared_ext}$major'
8186 fi
8187 shlibpath_var=LIBPATH
8188 fi
8189 ;;
8190
8191amigaos*)
8192 library_names_spec='$libname.ixlibrary $libname.a'
8193 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8194 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'
8195 ;;
8196
8197beos*)
8198 library_names_spec='${libname}${shared_ext}'
8199 dynamic_linker="$host_os ld.so"
8200 shlibpath_var=LIBRARY_PATH
8201 ;;
8202
8203bsdi[45]*)
8204 version_type=linux
8205 need_version=no
8206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8207 soname_spec='${libname}${release}${shared_ext}$major'
8208 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8209 shlibpath_var=LD_LIBRARY_PATH
8210 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8211 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8212 # the default ld.so.conf also contains /usr/contrib/lib and
8213 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8214 # libtool to hard-code these into programs
8215 ;;
8216
8217cygwin* | mingw* | pw32*)
8218 version_type=windows
8219 shrext_cmds=".dll"
8220 need_version=no
8221 need_lib_prefix=no
8222
8223 case $GCC,$host_os in
8224 yes,cygwin* | yes,mingw* | yes,pw32*)
8225 library_names_spec='$libname.dll.a'
8226 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8227 postinstall_cmds='base_file=`basename \${file}`~
8228 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8229 dldir=$destdir/`dirname \$dlpath`~
8230 test -d \$dldir || mkdir -p \$dldir~
8231 $install_prog $dir/$dlname \$dldir/$dlname~
8232 chmod a+x \$dldir/$dlname'
8233 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8234 dlpath=$dir/\$dldll~
8235 $rm \$dlpath'
8236 shlibpath_overrides_runpath=yes
8237
8238 case $host_os in
8239 cygwin*)
8240 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8241 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8242 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8243 ;;
8244 mingw*)
8245 # MinGW DLLs use traditional 'lib' prefix
8246 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8247 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8248 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8249 # It is most probably a Windows format PATH printed by
8250 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8251 # path with ; separators, and with drive letters. We can handle the
8252 # drive letters (cygwin fileutils understands them), so leave them,
8253 # especially as we might pass files found there to a mingw objdump,
8254 # which wouldn't understand a cygwinified path. Ahh.
8255 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8256 else
8257 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8258 fi
8259 ;;
8260 pw32*)
8261 # pw32 DLLs use 'pw' prefix rather than 'lib'
8262 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8263 ;;
8264 esac
8265 ;;
8266
8267 *)
8268 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8269 ;;
8270 esac
8271 dynamic_linker='Win32 ld.exe'
8272 # FIXME: first we should search . and the directory the executable is in
8273 shlibpath_var=PATH
8274 ;;
8275
8276darwin* | rhapsody*)
8277 dynamic_linker="$host_os dyld"
8278 version_type=darwin
8279 need_lib_prefix=no
8280 need_version=no
8281 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8282 soname_spec='${libname}${release}${major}$shared_ext'
8283 shlibpath_overrides_runpath=yes
8284 shlibpath_var=DYLD_LIBRARY_PATH
8285 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8286 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8287 if test "$GCC" = yes; then
8288 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"`
8289 else
8290 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8291 fi
8292 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8293 ;;
8294
8295dgux*)
8296 version_type=linux
8297 need_lib_prefix=no
8298 need_version=no
8299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8300 soname_spec='${libname}${release}${shared_ext}$major'
8301 shlibpath_var=LD_LIBRARY_PATH
8302 ;;
8303
8304freebsd1*)
8305 dynamic_linker=no
8306 ;;
8307
8308kfreebsd*-gnu)
8309 version_type=linux
8310 need_lib_prefix=no
8311 need_version=no
8312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8313 soname_spec='${libname}${release}${shared_ext}$major'
8314 shlibpath_var=LD_LIBRARY_PATH
8315 shlibpath_overrides_runpath=no
8316 hardcode_into_libs=yes
8317 dynamic_linker='GNU ld.so'
8318 ;;
8319
8320freebsd* | dragonfly*)
8321 # DragonFly does not have aout. When/if they implement a new
8322 # versioning mechanism, adjust this.
8323 if test -x /usr/bin/objformat; then
8324 objformat=`/usr/bin/objformat`
8325 else
8326 case $host_os in
8327 freebsd[123]*) objformat=aout ;;
8328 *) objformat=elf ;;
8329 esac
8330 fi
8331 version_type=freebsd-$objformat
8332 case $version_type in
8333 freebsd-elf*)
8334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8335 need_version=no
8336 need_lib_prefix=no
8337 ;;
8338 freebsd-*)
8339 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8340 need_version=yes
8341 ;;
8342 esac
8343 shlibpath_var=LD_LIBRARY_PATH
8344 case $host_os in
8345 freebsd2*)
8346 shlibpath_overrides_runpath=yes
8347 ;;
8348 freebsd3.[01]* | freebsdelf3.[01]*)
8349 shlibpath_overrides_runpath=yes
8350 hardcode_into_libs=yes
8351 ;;
8352 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8353 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8354 shlibpath_overrides_runpath=no
8355 hardcode_into_libs=yes
8356 ;;
8357 freebsd*) # from 4.6 on
8358 shlibpath_overrides_runpath=yes
8359 hardcode_into_libs=yes
8360 ;;
8361 esac
8362 ;;
8363
8364gnu*)
8365 version_type=linux
8366 need_lib_prefix=no
8367 need_version=no
8368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8369 soname_spec='${libname}${release}${shared_ext}$major'
8370 shlibpath_var=LD_LIBRARY_PATH
8371 hardcode_into_libs=yes
8372 ;;
8373
8374hpux9* | hpux10* | hpux11*)
8375 # Give a soname corresponding to the major version so that dld.sl refuses to
8376 # link against other versions.
8377 version_type=sunos
8378 need_lib_prefix=no
8379 need_version=no
8380 case $host_cpu in
8381 ia64*)
8382 shrext_cmds='.so'
8383 hardcode_into_libs=yes
8384 dynamic_linker="$host_os dld.so"
8385 shlibpath_var=LD_LIBRARY_PATH
8386 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8388 soname_spec='${libname}${release}${shared_ext}$major'
8389 if test "X$HPUX_IA64_MODE" = X32; then
8390 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8391 else
8392 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8393 fi
8394 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8395 ;;
8396 hppa*64*)
8397 shrext_cmds='.sl'
8398 hardcode_into_libs=yes
8399 dynamic_linker="$host_os dld.sl"
8400 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8401 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8403 soname_spec='${libname}${release}${shared_ext}$major'
8404 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8405 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8406 ;;
8407 *)
8408 shrext_cmds='.sl'
8409 dynamic_linker="$host_os dld.sl"
8410 shlibpath_var=SHLIB_PATH
8411 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8413 soname_spec='${libname}${release}${shared_ext}$major'
8414 ;;
8415 esac
8416 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8417 postinstall_cmds='chmod 555 $lib'
8418 ;;
8419
8420interix3*)
8421 version_type=linux
8422 need_lib_prefix=no
8423 need_version=no
8424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8425 soname_spec='${libname}${release}${shared_ext}$major'
8426 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8427 shlibpath_var=LD_LIBRARY_PATH
8428 shlibpath_overrides_runpath=no
8429 hardcode_into_libs=yes
8430 ;;
8431
8432irix5* | irix6* | nonstopux*)
8433 case $host_os in
8434 nonstopux*) version_type=nonstopux ;;
8435 *)
8436 if test "$lt_cv_prog_gnu_ld" = yes; then
8437 version_type=linux
8438 else
8439 version_type=irix
8440 fi ;;
8441 esac
8442 need_lib_prefix=no
8443 need_version=no
8444 soname_spec='${libname}${release}${shared_ext}$major'
8445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8446 case $host_os in
8447 irix5* | nonstopux*)
8448 libsuff= shlibsuff=
8449 ;;
8450 *)
8451 case $LD in # libtool.m4 will add one of these switches to LD
8452 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8453 libsuff= shlibsuff= libmagic=32-bit;;
8454 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8455 libsuff=32 shlibsuff=N32 libmagic=N32;;
8456 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8457 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8458 *) libsuff= shlibsuff= libmagic=never-match;;
8459 esac
8460 ;;
8461 esac
8462 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8463 shlibpath_overrides_runpath=no
8464 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8465 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8466 hardcode_into_libs=yes
8467 ;;
8468
8469# No shared lib support for Linux oldld, aout, or coff.
8470linux*oldld* | linux*aout* | linux*coff*)
8471 dynamic_linker=no
8472 ;;
8473
8474# This must be Linux ELF.
8475linux*)
8476 version_type=linux
8477 need_lib_prefix=no
8478 need_version=no
8479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8480 soname_spec='${libname}${release}${shared_ext}$major'
8481 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8482 shlibpath_var=LD_LIBRARY_PATH
8483 shlibpath_overrides_runpath=no
8484 # This implies no fast_install, which is unacceptable.
8485 # Some rework will be needed to allow for fast_install
8486 # before this can be enabled.
8487 hardcode_into_libs=yes
8488
8489 # find out which ABI we are using
8490 libsuff=
8491 case "$host_cpu" in
8492 x86_64*|s390x*|powerpc64*)
86933a6e 8493 echo '#line 8493 "configure"' > conftest.$ac_ext
bf9f3bac 8494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8495 (eval $ac_compile) 2>&5
8496 ac_status=$?
8497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8498 (exit $ac_status); }; then
8499 case `/usr/bin/file conftest.$ac_objext` in
8500 *64-bit*)
8501 libsuff=64
8502 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
8503 ;;
8504 esac
8505 fi
8506 rm -rf conftest*
8507 ;;
8508 esac
8509
8510 # Append ld.so.conf contents to the search path
8511 if test -f /etc/ld.so.conf; then
8512 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' ' '`
8513 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
8514 fi
8515
8516 # We used to test for /lib/ld.so.1 and disable shared libraries on
8517 # powerpc, because MkLinux only supported shared libraries with the
8518 # GNU dynamic linker. Since this was broken with cross compilers,
8519 # most powerpc-linux boxes support dynamic linking these days and
8520 # people can always --disable-shared, the test was removed, and we
8521 # assume the GNU/Linux dynamic linker is in use.
8522 dynamic_linker='GNU/Linux ld.so'
8523 ;;
8524
8525knetbsd*-gnu)
8526 version_type=linux
8527 need_lib_prefix=no
8528 need_version=no
8529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8530 soname_spec='${libname}${release}${shared_ext}$major'
8531 shlibpath_var=LD_LIBRARY_PATH
8532 shlibpath_overrides_runpath=no
8533 hardcode_into_libs=yes
8534 dynamic_linker='GNU ld.so'
8535 ;;
8536
8537netbsd*)
8538 version_type=sunos
8539 need_lib_prefix=no
8540 need_version=no
8541 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8543 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8544 dynamic_linker='NetBSD (a.out) ld.so'
8545 else
8546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8547 soname_spec='${libname}${release}${shared_ext}$major'
8548 dynamic_linker='NetBSD ld.elf_so'
8549 fi
8550 shlibpath_var=LD_LIBRARY_PATH
8551 shlibpath_overrides_runpath=yes
8552 hardcode_into_libs=yes
8553 ;;
8554
8555newsos6)
8556 version_type=linux
8557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8558 shlibpath_var=LD_LIBRARY_PATH
8559 shlibpath_overrides_runpath=yes
8560 ;;
8561
8562nto-qnx*)
8563 version_type=linux
8564 need_lib_prefix=no
8565 need_version=no
8566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8567 soname_spec='${libname}${release}${shared_ext}$major'
8568 shlibpath_var=LD_LIBRARY_PATH
8569 shlibpath_overrides_runpath=yes
8570 ;;
8571
8572openbsd*)
8573 version_type=sunos
8574 sys_lib_dlsearch_path_spec="/usr/lib"
8575 need_lib_prefix=no
8576 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8577 case $host_os in
8578 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8579 *) need_version=no ;;
8580 esac
8581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8582 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8583 shlibpath_var=LD_LIBRARY_PATH
8584 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8585 case $host_os in
8586 openbsd2.[89] | openbsd2.[89].*)
8587 shlibpath_overrides_runpath=no
8588 ;;
8589 *)
8590 shlibpath_overrides_runpath=yes
8591 ;;
8592 esac
8593 else
8594 shlibpath_overrides_runpath=yes
8595 fi
8596 ;;
8597
8598os2*)
8599 libname_spec='$name'
8600 shrext_cmds=".dll"
8601 need_lib_prefix=no
8602 library_names_spec='$libname${shared_ext} $libname.a'
8603 dynamic_linker='OS/2 ld.exe'
8604 shlibpath_var=LIBPATH
8605 ;;
8606
8607osf3* | osf4* | osf5*)
8608 version_type=osf
8609 need_lib_prefix=no
8610 need_version=no
8611 soname_spec='${libname}${release}${shared_ext}$major'
8612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8613 shlibpath_var=LD_LIBRARY_PATH
8614 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8615 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8616 ;;
8617
8618solaris*)
8619 version_type=linux
8620 need_lib_prefix=no
8621 need_version=no
8622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8623 soname_spec='${libname}${release}${shared_ext}$major'
8624 shlibpath_var=LD_LIBRARY_PATH
8625 shlibpath_overrides_runpath=yes
8626 hardcode_into_libs=yes
8627 # ldd complains unless libraries are executable
8628 postinstall_cmds='chmod +x $lib'
8629 ;;
8630
8631sunos4*)
8632 version_type=sunos
8633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8634 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8635 shlibpath_var=LD_LIBRARY_PATH
8636 shlibpath_overrides_runpath=yes
8637 if test "$with_gnu_ld" = yes; then
8638 need_lib_prefix=no
8639 fi
8640 need_version=yes
8641 ;;
8642
8643sysv4 | sysv4.3*)
8644 version_type=linux
8645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8646 soname_spec='${libname}${release}${shared_ext}$major'
8647 shlibpath_var=LD_LIBRARY_PATH
8648 case $host_vendor in
8649 sni)
8650 shlibpath_overrides_runpath=no
8651 need_lib_prefix=no
8652 export_dynamic_flag_spec='${wl}-Blargedynsym'
8653 runpath_var=LD_RUN_PATH
8654 ;;
8655 siemens)
8656 need_lib_prefix=no
8657 ;;
8658 motorola)
8659 need_lib_prefix=no
8660 need_version=no
8661 shlibpath_overrides_runpath=no
8662 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8663 ;;
8664 esac
8665 ;;
8666
8667sysv4*MP*)
8668 if test -d /usr/nec ;then
8669 version_type=linux
8670 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8671 soname_spec='$libname${shared_ext}.$major'
8672 shlibpath_var=LD_LIBRARY_PATH
8673 fi
8674 ;;
8675
8676sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8677 version_type=freebsd-elf
8678 need_lib_prefix=no
8679 need_version=no
8680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8681 soname_spec='${libname}${release}${shared_ext}$major'
8682 shlibpath_var=LD_LIBRARY_PATH
8683 hardcode_into_libs=yes
8684 if test "$with_gnu_ld" = yes; then
8685 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8686 shlibpath_overrides_runpath=no
8687 else
8688 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8689 shlibpath_overrides_runpath=yes
8690 case $host_os in
8691 sco3.2v5*)
8692 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8693 ;;
8694 esac
8695 fi
8696 sys_lib_dlsearch_path_spec='/usr/lib'
8697 ;;
8698
8699uts4*)
8700 version_type=linux
8701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8702 soname_spec='${libname}${release}${shared_ext}$major'
8703 shlibpath_var=LD_LIBRARY_PATH
8704 ;;
8705
8706*)
8707 dynamic_linker=no
8708 ;;
8709esac
8710echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8711echo "${ECHO_T}$dynamic_linker" >&6
8712test "$dynamic_linker" = no && can_build_shared=no
8713
8714variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8715if test "$GCC" = yes; then
8716 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8717fi
8718
8719echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8720echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8721hardcode_action=
8722if test -n "$hardcode_libdir_flag_spec" || \
8723 test -n "$runpath_var" || \
8724 test "X$hardcode_automatic" = "Xyes" ; then
8725
8726 # We can hardcode non-existant directories.
8727 if test "$hardcode_direct" != no &&
8728 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8729 # have to relink, otherwise we might link with an installed library
8730 # when we should be linking with a yet-to-be-installed one
8731 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8732 test "$hardcode_minus_L" != no; then
8733 # Linking always hardcodes the temporary library directory.
8734 hardcode_action=relink
8735 else
8736 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8737 hardcode_action=immediate
8738 fi
8739else
8740 # We cannot hardcode anything, or else we can only hardcode existing
8741 # directories.
8742 hardcode_action=unsupported
8743fi
8744echo "$as_me:$LINENO: result: $hardcode_action" >&5
8745echo "${ECHO_T}$hardcode_action" >&6
8746
8747if test "$hardcode_action" = relink; then
8748 # Fast installation is not supported
8749 enable_fast_install=no
8750elif test "$shlibpath_overrides_runpath" = yes ||
8751 test "$enable_shared" = no; then
8752 # Fast installation is not necessary
8753 enable_fast_install=needless
8754fi
8755
8756striplib=
8757old_striplib=
8758echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8759echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8760if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8761 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8762 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8763 echo "$as_me:$LINENO: result: yes" >&5
8764echo "${ECHO_T}yes" >&6
8765else
8766# FIXME - insert some real tests, host_os isn't really good enough
8767 case $host_os in
8768 darwin*)
8769 if test -n "$STRIP" ; then
8770 striplib="$STRIP -x"
8771 echo "$as_me:$LINENO: result: yes" >&5
8772echo "${ECHO_T}yes" >&6
8773 else
8774 echo "$as_me:$LINENO: result: no" >&5
8775echo "${ECHO_T}no" >&6
8776fi
8777 ;;
8778 *)
8779 echo "$as_me:$LINENO: result: no" >&5
8780echo "${ECHO_T}no" >&6
8781 ;;
8782 esac
8783fi
8784
8785if test "x$enable_dlopen" != xyes; then
8786 enable_dlopen=unknown
8787 enable_dlopen_self=unknown
8788 enable_dlopen_self_static=unknown
8789else
8790 lt_cv_dlopen=no
8791 lt_cv_dlopen_libs=
8792
8793 case $host_os in
8794 beos*)
8795 lt_cv_dlopen="load_add_on"
8796 lt_cv_dlopen_libs=
8797 lt_cv_dlopen_self=yes
8798 ;;
8799
8800 mingw* | pw32*)
8801 lt_cv_dlopen="LoadLibrary"
8802 lt_cv_dlopen_libs=
8803 ;;
8804
8805 cygwin*)
8806 lt_cv_dlopen="dlopen"
8807 lt_cv_dlopen_libs=
8808 ;;
8809
8810 darwin*)
8811 # if libdl is installed we need to link against it
8812 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8813echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8814if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8815 echo $ECHO_N "(cached) $ECHO_C" >&6
8816else
8817 ac_check_lib_save_LIBS=$LIBS
8818LIBS="-ldl $LIBS"
8819cat >conftest.$ac_ext <<_ACEOF
8820/* confdefs.h. */
8821_ACEOF
8822cat confdefs.h >>conftest.$ac_ext
8823cat >>conftest.$ac_ext <<_ACEOF
8824/* end confdefs.h. */
8825
8826/* Override any gcc2 internal prototype to avoid an error. */
8827#ifdef __cplusplus
8828extern "C"
8829#endif
8830/* We use char because int might match the return type of a gcc2
8831 builtin and then its argument prototype would still apply. */
8832char dlopen ();
8833int
8834main ()
8835{
8836dlopen ();
8837 ;
8838 return 0;
8839}
8840_ACEOF
8841rm -f conftest.$ac_objext conftest$ac_exeext
8842if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8843 (eval $ac_link) 2>conftest.er1
8844 ac_status=$?
8845 grep -v '^ *+' conftest.er1 >conftest.err
8846 rm -f conftest.er1
8847 cat conftest.err >&5
8848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8849 (exit $ac_status); } &&
8850 { ac_try='test -z "$ac_c_werror_flag"
8851 || test ! -s conftest.err'
8852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8853 (eval $ac_try) 2>&5
8854 ac_status=$?
8855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8856 (exit $ac_status); }; } &&
8857 { ac_try='test -s conftest$ac_exeext'
8858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8859 (eval $ac_try) 2>&5
8860 ac_status=$?
8861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8862 (exit $ac_status); }; }; then
8863 ac_cv_lib_dl_dlopen=yes
8864else
8865 echo "$as_me: failed program was:" >&5
8866sed 's/^/| /' conftest.$ac_ext >&5
8867
8868ac_cv_lib_dl_dlopen=no
8869fi
8870rm -f conftest.err conftest.$ac_objext \
8871 conftest$ac_exeext conftest.$ac_ext
8872LIBS=$ac_check_lib_save_LIBS
8873fi
8874echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8875echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8876if test $ac_cv_lib_dl_dlopen = yes; then
8877 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8878else
8879
8880 lt_cv_dlopen="dyld"
8881 lt_cv_dlopen_libs=
8882 lt_cv_dlopen_self=yes
8883
8884fi
8885
8886 ;;
8887
8888 *)
8889 echo "$as_me:$LINENO: checking for shl_load" >&5
8890echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8891if test "${ac_cv_func_shl_load+set}" = set; then
8892 echo $ECHO_N "(cached) $ECHO_C" >&6
8893else
8894 cat >conftest.$ac_ext <<_ACEOF
8895/* confdefs.h. */
8896_ACEOF
8897cat confdefs.h >>conftest.$ac_ext
8898cat >>conftest.$ac_ext <<_ACEOF
8899/* end confdefs.h. */
8900/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8901 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8902#define shl_load innocuous_shl_load
8903
8904/* System header to define __stub macros and hopefully few prototypes,
8905 which can conflict with char shl_load (); below.
8906 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8907 <limits.h> exists even on freestanding compilers. */
8908
8909#ifdef __STDC__
8910# include <limits.h>
8911#else
8912# include <assert.h>
8913#endif
8914
8915#undef shl_load
8916
8917/* Override any gcc2 internal prototype to avoid an error. */
8918#ifdef __cplusplus
8919extern "C"
8920{
8921#endif
8922/* We use char because int might match the return type of a gcc2
8923 builtin and then its argument prototype would still apply. */
8924char shl_load ();
8925/* The GNU C library defines this for functions which it implements
8926 to always fail with ENOSYS. Some functions are actually named
8927 something starting with __ and the normal name is an alias. */
8928#if defined (__stub_shl_load) || defined (__stub___shl_load)
8929choke me
8930#else
8931char (*f) () = shl_load;
8932#endif
8933#ifdef __cplusplus
8934}
8935#endif
8936
8937int
8938main ()
8939{
8940return f != shl_load;
8941 ;
8942 return 0;
8943}
8944_ACEOF
8945rm -f conftest.$ac_objext conftest$ac_exeext
8946if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8947 (eval $ac_link) 2>conftest.er1
8948 ac_status=$?
8949 grep -v '^ *+' conftest.er1 >conftest.err
8950 rm -f conftest.er1
8951 cat conftest.err >&5
8952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8953 (exit $ac_status); } &&
8954 { ac_try='test -z "$ac_c_werror_flag"
8955 || test ! -s conftest.err'
8956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8957 (eval $ac_try) 2>&5
8958 ac_status=$?
8959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8960 (exit $ac_status); }; } &&
8961 { ac_try='test -s conftest$ac_exeext'
8962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8963 (eval $ac_try) 2>&5
8964 ac_status=$?
8965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8966 (exit $ac_status); }; }; then
8967 ac_cv_func_shl_load=yes
8968else
8969 echo "$as_me: failed program was:" >&5
8970sed 's/^/| /' conftest.$ac_ext >&5
8971
8972ac_cv_func_shl_load=no
8973fi
8974rm -f conftest.err conftest.$ac_objext \
8975 conftest$ac_exeext conftest.$ac_ext
8976fi
8977echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8978echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8979if test $ac_cv_func_shl_load = yes; then
8980 lt_cv_dlopen="shl_load"
8981else
8982 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8983echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8984if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8985 echo $ECHO_N "(cached) $ECHO_C" >&6
8986else
8987 ac_check_lib_save_LIBS=$LIBS
8988LIBS="-ldld $LIBS"
8989cat >conftest.$ac_ext <<_ACEOF
8990/* confdefs.h. */
8991_ACEOF
8992cat confdefs.h >>conftest.$ac_ext
8993cat >>conftest.$ac_ext <<_ACEOF
8994/* end confdefs.h. */
8995
8996/* Override any gcc2 internal prototype to avoid an error. */
8997#ifdef __cplusplus
8998extern "C"
8999#endif
9000/* We use char because int might match the return type of a gcc2
9001 builtin and then its argument prototype would still apply. */
9002char shl_load ();
9003int
9004main ()
9005{
9006shl_load ();
9007 ;
9008 return 0;
9009}
9010_ACEOF
9011rm -f conftest.$ac_objext conftest$ac_exeext
9012if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9013 (eval $ac_link) 2>conftest.er1
9014 ac_status=$?
9015 grep -v '^ *+' conftest.er1 >conftest.err
9016 rm -f conftest.er1
9017 cat conftest.err >&5
9018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9019 (exit $ac_status); } &&
9020 { ac_try='test -z "$ac_c_werror_flag"
9021 || test ! -s conftest.err'
9022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9023 (eval $ac_try) 2>&5
9024 ac_status=$?
9025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9026 (exit $ac_status); }; } &&
9027 { ac_try='test -s conftest$ac_exeext'
9028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9029 (eval $ac_try) 2>&5
9030 ac_status=$?
9031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9032 (exit $ac_status); }; }; then
9033 ac_cv_lib_dld_shl_load=yes
9034else
9035 echo "$as_me: failed program was:" >&5
9036sed 's/^/| /' conftest.$ac_ext >&5
9037
9038ac_cv_lib_dld_shl_load=no
9039fi
9040rm -f conftest.err conftest.$ac_objext \
9041 conftest$ac_exeext conftest.$ac_ext
9042LIBS=$ac_check_lib_save_LIBS
9043fi
9044echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9045echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9046if test $ac_cv_lib_dld_shl_load = yes; then
9047 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9048else
9049 echo "$as_me:$LINENO: checking for dlopen" >&5
9050echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9051if test "${ac_cv_func_dlopen+set}" = set; then
9052 echo $ECHO_N "(cached) $ECHO_C" >&6
9053else
9054 cat >conftest.$ac_ext <<_ACEOF
9055/* confdefs.h. */
9056_ACEOF
9057cat confdefs.h >>conftest.$ac_ext
9058cat >>conftest.$ac_ext <<_ACEOF
9059/* end confdefs.h. */
9060/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9061 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9062#define dlopen innocuous_dlopen
9063
9064/* System header to define __stub macros and hopefully few prototypes,
9065 which can conflict with char dlopen (); below.
9066 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9067 <limits.h> exists even on freestanding compilers. */
9068
9069#ifdef __STDC__
9070# include <limits.h>
9071#else
9072# include <assert.h>
9073#endif
9074
9075#undef dlopen
9076
9077/* Override any gcc2 internal prototype to avoid an error. */
9078#ifdef __cplusplus
9079extern "C"
9080{
9081#endif
9082/* We use char because int might match the return type of a gcc2
9083 builtin and then its argument prototype would still apply. */
9084char dlopen ();
9085/* The GNU C library defines this for functions which it implements
9086 to always fail with ENOSYS. Some functions are actually named
9087 something starting with __ and the normal name is an alias. */
9088#if defined (__stub_dlopen) || defined (__stub___dlopen)
9089choke me
9090#else
9091char (*f) () = dlopen;
9092#endif
9093#ifdef __cplusplus
9094}
9095#endif
9096
9097int
9098main ()
9099{
9100return f != dlopen;
9101 ;
9102 return 0;
9103}
9104_ACEOF
9105rm -f conftest.$ac_objext conftest$ac_exeext
9106if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9107 (eval $ac_link) 2>conftest.er1
9108 ac_status=$?
9109 grep -v '^ *+' conftest.er1 >conftest.err
9110 rm -f conftest.er1
9111 cat conftest.err >&5
9112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9113 (exit $ac_status); } &&
9114 { ac_try='test -z "$ac_c_werror_flag"
9115 || test ! -s conftest.err'
9116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9117 (eval $ac_try) 2>&5
9118 ac_status=$?
9119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9120 (exit $ac_status); }; } &&
9121 { ac_try='test -s conftest$ac_exeext'
9122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9123 (eval $ac_try) 2>&5
9124 ac_status=$?
9125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9126 (exit $ac_status); }; }; then
9127 ac_cv_func_dlopen=yes
9128else
9129 echo "$as_me: failed program was:" >&5
9130sed 's/^/| /' conftest.$ac_ext >&5
9131
9132ac_cv_func_dlopen=no
9133fi
9134rm -f conftest.err conftest.$ac_objext \
9135 conftest$ac_exeext conftest.$ac_ext
9136fi
9137echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9138echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9139if test $ac_cv_func_dlopen = yes; then
9140 lt_cv_dlopen="dlopen"
9141else
9142 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9143echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9144if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9145 echo $ECHO_N "(cached) $ECHO_C" >&6
9146else
9147 ac_check_lib_save_LIBS=$LIBS
9148LIBS="-ldl $LIBS"
9149cat >conftest.$ac_ext <<_ACEOF
9150/* confdefs.h. */
9151_ACEOF
9152cat confdefs.h >>conftest.$ac_ext
9153cat >>conftest.$ac_ext <<_ACEOF
9154/* end confdefs.h. */
9155
9156/* Override any gcc2 internal prototype to avoid an error. */
9157#ifdef __cplusplus
9158extern "C"
9159#endif
9160/* We use char because int might match the return type of a gcc2
9161 builtin and then its argument prototype would still apply. */
9162char dlopen ();
9163int
9164main ()
9165{
9166dlopen ();
9167 ;
9168 return 0;
9169}
9170_ACEOF
9171rm -f conftest.$ac_objext conftest$ac_exeext
9172if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9173 (eval $ac_link) 2>conftest.er1
9174 ac_status=$?
9175 grep -v '^ *+' conftest.er1 >conftest.err
9176 rm -f conftest.er1
9177 cat conftest.err >&5
9178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9179 (exit $ac_status); } &&
9180 { ac_try='test -z "$ac_c_werror_flag"
9181 || test ! -s conftest.err'
9182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9183 (eval $ac_try) 2>&5
9184 ac_status=$?
9185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9186 (exit $ac_status); }; } &&
9187 { ac_try='test -s conftest$ac_exeext'
9188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9189 (eval $ac_try) 2>&5
9190 ac_status=$?
9191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9192 (exit $ac_status); }; }; then
9193 ac_cv_lib_dl_dlopen=yes
9194else
9195 echo "$as_me: failed program was:" >&5
9196sed 's/^/| /' conftest.$ac_ext >&5
9197
9198ac_cv_lib_dl_dlopen=no
9199fi
9200rm -f conftest.err conftest.$ac_objext \
9201 conftest$ac_exeext conftest.$ac_ext
9202LIBS=$ac_check_lib_save_LIBS
9203fi
9204echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9205echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9206if test $ac_cv_lib_dl_dlopen = yes; then
9207 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9208else
9209 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9210echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9211if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9212 echo $ECHO_N "(cached) $ECHO_C" >&6
9213else
9214 ac_check_lib_save_LIBS=$LIBS
9215LIBS="-lsvld $LIBS"
9216cat >conftest.$ac_ext <<_ACEOF
9217/* confdefs.h. */
9218_ACEOF
9219cat confdefs.h >>conftest.$ac_ext
9220cat >>conftest.$ac_ext <<_ACEOF
9221/* end confdefs.h. */
9222
9223/* Override any gcc2 internal prototype to avoid an error. */
9224#ifdef __cplusplus
9225extern "C"
9226#endif
9227/* We use char because int might match the return type of a gcc2
9228 builtin and then its argument prototype would still apply. */
9229char dlopen ();
9230int
9231main ()
9232{
9233dlopen ();
9234 ;
9235 return 0;
9236}
9237_ACEOF
9238rm -f conftest.$ac_objext conftest$ac_exeext
9239if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9240 (eval $ac_link) 2>conftest.er1
9241 ac_status=$?
9242 grep -v '^ *+' conftest.er1 >conftest.err
9243 rm -f conftest.er1
9244 cat conftest.err >&5
9245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9246 (exit $ac_status); } &&
9247 { ac_try='test -z "$ac_c_werror_flag"
9248 || test ! -s conftest.err'
9249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9250 (eval $ac_try) 2>&5
9251 ac_status=$?
9252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9253 (exit $ac_status); }; } &&
9254 { ac_try='test -s conftest$ac_exeext'
9255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9256 (eval $ac_try) 2>&5
9257 ac_status=$?
9258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9259 (exit $ac_status); }; }; then
9260 ac_cv_lib_svld_dlopen=yes
9261else
9262 echo "$as_me: failed program was:" >&5
9263sed 's/^/| /' conftest.$ac_ext >&5
9264
9265ac_cv_lib_svld_dlopen=no
9266fi
9267rm -f conftest.err conftest.$ac_objext \
9268 conftest$ac_exeext conftest.$ac_ext
9269LIBS=$ac_check_lib_save_LIBS
9270fi
9271echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9272echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9273if test $ac_cv_lib_svld_dlopen = yes; then
9274 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9275else
9276 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9277echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9278if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9279 echo $ECHO_N "(cached) $ECHO_C" >&6
9280else
9281 ac_check_lib_save_LIBS=$LIBS
9282LIBS="-ldld $LIBS"
9283cat >conftest.$ac_ext <<_ACEOF
9284/* confdefs.h. */
9285_ACEOF
9286cat confdefs.h >>conftest.$ac_ext
9287cat >>conftest.$ac_ext <<_ACEOF
9288/* end confdefs.h. */
9289
9290/* Override any gcc2 internal prototype to avoid an error. */
9291#ifdef __cplusplus
9292extern "C"
9293#endif
9294/* We use char because int might match the return type of a gcc2
9295 builtin and then its argument prototype would still apply. */
9296char dld_link ();
9297int
9298main ()
9299{
9300dld_link ();
9301 ;
9302 return 0;
9303}
9304_ACEOF
9305rm -f conftest.$ac_objext conftest$ac_exeext
9306if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9307 (eval $ac_link) 2>conftest.er1
9308 ac_status=$?
9309 grep -v '^ *+' conftest.er1 >conftest.err
9310 rm -f conftest.er1
9311 cat conftest.err >&5
9312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9313 (exit $ac_status); } &&
9314 { ac_try='test -z "$ac_c_werror_flag"
9315 || test ! -s conftest.err'
9316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9317 (eval $ac_try) 2>&5
9318 ac_status=$?
9319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9320 (exit $ac_status); }; } &&
9321 { ac_try='test -s conftest$ac_exeext'
9322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9323 (eval $ac_try) 2>&5
9324 ac_status=$?
9325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9326 (exit $ac_status); }; }; then
9327 ac_cv_lib_dld_dld_link=yes
9328else
9329 echo "$as_me: failed program was:" >&5
9330sed 's/^/| /' conftest.$ac_ext >&5
9331
9332ac_cv_lib_dld_dld_link=no
9333fi
9334rm -f conftest.err conftest.$ac_objext \
9335 conftest$ac_exeext conftest.$ac_ext
9336LIBS=$ac_check_lib_save_LIBS
9337fi
9338echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9339echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9340if test $ac_cv_lib_dld_dld_link = yes; then
9341 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9342fi
9343
9344
9345fi
9346
9347
9348fi
9349
9350
9351fi
9352
9353
9354fi
9355
9356
9357fi
9358
9359 ;;
9360 esac
9361
9362 if test "x$lt_cv_dlopen" != xno; then
9363 enable_dlopen=yes
9364 else
9365 enable_dlopen=no
9366 fi
9367
9368 case $lt_cv_dlopen in
9369 dlopen)
9370 save_CPPFLAGS="$CPPFLAGS"
9371 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9372
9373 save_LDFLAGS="$LDFLAGS"
9374 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9375
9376 save_LIBS="$LIBS"
9377 LIBS="$lt_cv_dlopen_libs $LIBS"
9378
9379 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9380echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9381if test "${lt_cv_dlopen_self+set}" = set; then
9382 echo $ECHO_N "(cached) $ECHO_C" >&6
9383else
9384 if test "$cross_compiling" = yes; then :
9385 lt_cv_dlopen_self=cross
9386else
9387 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9388 lt_status=$lt_dlunknown
9389 cat > conftest.$ac_ext <<EOF
86933a6e 9390#line 9390 "configure"
bf9f3bac 9391#include "confdefs.h"
9392
9393#if HAVE_DLFCN_H
9394#include <dlfcn.h>
9395#endif
9396
9397#include <stdio.h>
9398
9399#ifdef RTLD_GLOBAL
9400# define LT_DLGLOBAL RTLD_GLOBAL
9401#else
9402# ifdef DL_GLOBAL
9403# define LT_DLGLOBAL DL_GLOBAL
9404# else
9405# define LT_DLGLOBAL 0
9406# endif
9407#endif
9408
9409/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9410 find out it does not work in some platform. */
9411#ifndef LT_DLLAZY_OR_NOW
9412# ifdef RTLD_LAZY
9413# define LT_DLLAZY_OR_NOW RTLD_LAZY
9414# else
9415# ifdef DL_LAZY
9416# define LT_DLLAZY_OR_NOW DL_LAZY
9417# else
9418# ifdef RTLD_NOW
9419# define LT_DLLAZY_OR_NOW RTLD_NOW
9420# else
9421# ifdef DL_NOW
9422# define LT_DLLAZY_OR_NOW DL_NOW
9423# else
9424# define LT_DLLAZY_OR_NOW 0
9425# endif
9426# endif
9427# endif
9428# endif
9429#endif
9430
9431#ifdef __cplusplus
9432extern "C" void exit (int);
9433#endif
9434
9435void fnord() { int i=42;}
9436int main ()
9437{
9438 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9439 int status = $lt_dlunknown;
9440
9441 if (self)
9442 {
9443 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9444 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9445 /* dlclose (self); */
9446 }
9447 else
9448 puts (dlerror ());
9449
9450 exit (status);
9451}
9452EOF
9453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9454 (eval $ac_link) 2>&5
9455 ac_status=$?
9456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9457 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9458 (./conftest; exit; ) >&5 2>/dev/null
9459 lt_status=$?
9460 case x$lt_status in
9461 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9462 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9463 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9464 esac
9465 else :
9466 # compilation failed
9467 lt_cv_dlopen_self=no
9468 fi
9469fi
9470rm -fr conftest*
9471
9472
9473fi
9474echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9475echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9476
9477 if test "x$lt_cv_dlopen_self" = xyes; then
9478 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9479 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9480echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9481if test "${lt_cv_dlopen_self_static+set}" = set; then
9482 echo $ECHO_N "(cached) $ECHO_C" >&6
9483else
9484 if test "$cross_compiling" = yes; then :
9485 lt_cv_dlopen_self_static=cross
9486else
9487 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9488 lt_status=$lt_dlunknown
9489 cat > conftest.$ac_ext <<EOF
86933a6e 9490#line 9490 "configure"
bf9f3bac 9491#include "confdefs.h"
9492
9493#if HAVE_DLFCN_H
9494#include <dlfcn.h>
9495#endif
9496
9497#include <stdio.h>
9498
9499#ifdef RTLD_GLOBAL
9500# define LT_DLGLOBAL RTLD_GLOBAL
9501#else
9502# ifdef DL_GLOBAL
9503# define LT_DLGLOBAL DL_GLOBAL
9504# else
9505# define LT_DLGLOBAL 0
9506# endif
9507#endif
9508
9509/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9510 find out it does not work in some platform. */
9511#ifndef LT_DLLAZY_OR_NOW
9512# ifdef RTLD_LAZY
9513# define LT_DLLAZY_OR_NOW RTLD_LAZY
9514# else
9515# ifdef DL_LAZY
9516# define LT_DLLAZY_OR_NOW DL_LAZY
9517# else
9518# ifdef RTLD_NOW
9519# define LT_DLLAZY_OR_NOW RTLD_NOW
9520# else
9521# ifdef DL_NOW
9522# define LT_DLLAZY_OR_NOW DL_NOW
9523# else
9524# define LT_DLLAZY_OR_NOW 0
9525# endif
9526# endif
9527# endif
9528# endif
9529#endif
9530
9531#ifdef __cplusplus
9532extern "C" void exit (int);
9533#endif
9534
9535void fnord() { int i=42;}
9536int main ()
9537{
9538 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9539 int status = $lt_dlunknown;
9540
9541 if (self)
9542 {
9543 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9544 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9545 /* dlclose (self); */
9546 }
9547 else
9548 puts (dlerror ());
9549
9550 exit (status);
9551}
9552EOF
9553 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9554 (eval $ac_link) 2>&5
9555 ac_status=$?
9556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9557 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9558 (./conftest; exit; ) >&5 2>/dev/null
9559 lt_status=$?
9560 case x$lt_status in
9561 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9562 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9563 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9564 esac
9565 else :
9566 # compilation failed
9567 lt_cv_dlopen_self_static=no
9568 fi
9569fi
9570rm -fr conftest*
9571
9572
9573fi
9574echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9575echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9576 fi
9577
9578 CPPFLAGS="$save_CPPFLAGS"
9579 LDFLAGS="$save_LDFLAGS"
9580 LIBS="$save_LIBS"
9581 ;;
9582 esac
9583
9584 case $lt_cv_dlopen_self in
9585 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9586 *) enable_dlopen_self=unknown ;;
9587 esac
9588
9589 case $lt_cv_dlopen_self_static in
9590 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9591 *) enable_dlopen_self_static=unknown ;;
9592 esac
9593fi
9594
9595
9596# Report which library types will actually be built
9597echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9598echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9599echo "$as_me:$LINENO: result: $can_build_shared" >&5
9600echo "${ECHO_T}$can_build_shared" >&6
9601
9602echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9603echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9604test "$can_build_shared" = "no" && enable_shared=no
9605
9606# On AIX, shared libraries and static libraries use the same namespace, and
9607# are all built from PIC.
9608case $host_os in
9609aix3*)
9610 test "$enable_shared" = yes && enable_static=no
9611 if test -n "$RANLIB"; then
9612 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9613 postinstall_cmds='$RANLIB $lib'
9614 fi
9615 ;;
9616
9617aix4* | aix5*)
9618 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9619 test "$enable_shared" = yes && enable_static=no
9620 fi
9621 ;;
9622esac
9623echo "$as_me:$LINENO: result: $enable_shared" >&5
9624echo "${ECHO_T}$enable_shared" >&6
9625
9626echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9627echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9628# Make sure either enable_shared or enable_static is yes.
9629test "$enable_shared" = yes || enable_static=yes
9630echo "$as_me:$LINENO: result: $enable_static" >&5
9631echo "${ECHO_T}$enable_static" >&6
9632
9633# The else clause should only fire when bootstrapping the
9634# libtool distribution, otherwise you forgot to ship ltmain.sh
9635# with your package, and you will get complaints that there are
9636# no rules to generate ltmain.sh.
9637if test -f "$ltmain"; then
9638 # See if we are running on zsh, and set the options which allow our commands through
9639 # without removal of \ escapes.
9640 if test -n "${ZSH_VERSION+set}" ; then
9641 setopt NO_GLOB_SUBST
9642 fi
9643 # Now quote all the things that may contain metacharacters while being
9644 # careful not to overquote the AC_SUBSTed values. We take copies of the
9645 # variables and quote the copies for generation of the libtool script.
9646 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9647 SED SHELL STRIP \
9648 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9649 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9650 deplibs_check_method reload_flag reload_cmds need_locks \
9651 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9652 lt_cv_sys_global_symbol_to_c_name_address \
9653 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9654 old_postinstall_cmds old_postuninstall_cmds \
9655 compiler \
9656 CC \
9657 LD \
9658 lt_prog_compiler_wl \
9659 lt_prog_compiler_pic \
9660 lt_prog_compiler_static \
9661 lt_prog_compiler_no_builtin_flag \
9662 export_dynamic_flag_spec \
9663 thread_safe_flag_spec \
9664 whole_archive_flag_spec \
9665 enable_shared_with_static_runtimes \
9666 old_archive_cmds \
9667 old_archive_from_new_cmds \
9668 predep_objects \
9669 postdep_objects \
9670 predeps \
9671 postdeps \
9672 compiler_lib_search_path \
9673 archive_cmds \
9674 archive_expsym_cmds \
9675 postinstall_cmds \
9676 postuninstall_cmds \
9677 old_archive_from_expsyms_cmds \
9678 allow_undefined_flag \
9679 no_undefined_flag \
9680 export_symbols_cmds \
9681 hardcode_libdir_flag_spec \
9682 hardcode_libdir_flag_spec_ld \
9683 hardcode_libdir_separator \
9684 hardcode_automatic \
9685 module_cmds \
9686 module_expsym_cmds \
9687 lt_cv_prog_compiler_c_o \
9688 exclude_expsyms \
9689 include_expsyms; do
9690
9691 case $var in
9692 old_archive_cmds | \
9693 old_archive_from_new_cmds | \
9694 archive_cmds | \
9695 archive_expsym_cmds | \
9696 module_cmds | \
9697 module_expsym_cmds | \
9698 old_archive_from_expsyms_cmds | \
9699 export_symbols_cmds | \
9700 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9701 postinstall_cmds | postuninstall_cmds | \
9702 old_postinstall_cmds | old_postuninstall_cmds | \
9703 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9704 # Double-quote double-evaled strings.
9705 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9706 ;;
9707 *)
9708 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9709 ;;
9710 esac
9711 done
9712
9713 case $lt_echo in
9714 *'\$0 --fallback-echo"')
9715 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9716 ;;
9717 esac
9718
9719cfgfile="${ofile}T"
9720 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9721 $rm -f "$cfgfile"
9722 { echo "$as_me:$LINENO: creating $ofile" >&5
9723echo "$as_me: creating $ofile" >&6;}
9724
9725 cat <<__EOF__ >> "$cfgfile"
9726#! $SHELL
9727
9728# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9729# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9730# NOTE: Changes made to this file will be lost: look at ltmain.sh.
9731#
9732# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9733# Free Software Foundation, Inc.
9734#
9735# This file is part of GNU Libtool:
9736# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9737#
9738# This program is free software; you can redistribute it and/or modify
9739# it under the terms of the GNU General Public License as published by
9740# the Free Software Foundation; either version 2 of the License, or
9741# (at your option) any later version.
9742#
9743# This program is distributed in the hope that it will be useful, but
9744# WITHOUT ANY WARRANTY; without even the implied warranty of
9745# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9746# General Public License for more details.
9747#
9748# You should have received a copy of the GNU General Public License
9749# along with this program; if not, write to the Free Software
9750# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9751#
9752# As a special exception to the GNU General Public License, if you
9753# distribute this file as part of a program that contains a
9754# configuration script generated by Autoconf, you may include it under
9755# the same distribution terms that you use for the rest of that program.
9756
9757# A sed program that does not truncate output.
9758SED=$lt_SED
9759
9760# Sed that helps us avoid accidentally triggering echo(1) options like -n.
9761Xsed="$SED -e 1s/^X//"
9762
9763# The HP-UX ksh and POSIX shell print the target directory to stdout
9764# if CDPATH is set.
9765(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9766
9767# The names of the tagged configurations supported by this script.
9768available_tags=
9769
9770# ### BEGIN LIBTOOL CONFIG
9771
9772# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9773
9774# Shell to use when invoking shell scripts.
9775SHELL=$lt_SHELL
9776
9777# Whether or not to build shared libraries.
9778build_libtool_libs=$enable_shared
9779
9780# Whether or not to build static libraries.
9781build_old_libs=$enable_static
9782
9783# Whether or not to add -lc for building shared libraries.
9784build_libtool_need_lc=$archive_cmds_need_lc
9785
9786# Whether or not to disallow shared libs when runtime libs are static
9787allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9788
9789# Whether or not to optimize for fast installation.
9790fast_install=$enable_fast_install
9791
9792# The host system.
9793host_alias=$host_alias
9794host=$host
9795host_os=$host_os
9796
9797# The build system.
9798build_alias=$build_alias
9799build=$build
9800build_os=$build_os
9801
9802# An echo program that does not interpret backslashes.
9803echo=$lt_echo
9804
9805# The archiver.
9806AR=$lt_AR
9807AR_FLAGS=$lt_AR_FLAGS
9808
9809# A C compiler.
9810LTCC=$lt_LTCC
9811
9812# LTCC compiler flags.
9813LTCFLAGS=$lt_LTCFLAGS
9814
9815# A language-specific compiler.
9816CC=$lt_compiler
9817
9818# Is the compiler the GNU C compiler?
9819with_gcc=$GCC
9820
9821gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
9822gcc_ver=\`gcc -dumpversion\`
9823
9824# An ERE matcher.
9825EGREP=$lt_EGREP
9826
9827# The linker used to build libraries.
9828LD=$lt_LD
9829
9830# Whether we need hard or soft links.
9831LN_S=$lt_LN_S
9832
9833# A BSD-compatible nm program.
9834NM=$lt_NM
9835
9836# A symbol stripping program
9837STRIP=$lt_STRIP
9838
9839# Used to examine libraries when file_magic_cmd begins "file"
9840MAGIC_CMD=$MAGIC_CMD
9841
9842# Used on cygwin: DLL creation program.
9843DLLTOOL="$DLLTOOL"
9844
9845# Used on cygwin: object dumper.
9846OBJDUMP="$OBJDUMP"
9847
9848# Used on cygwin: assembler.
9849AS="$AS"
9850
9851# The name of the directory that contains temporary libtool files.
9852objdir=$objdir
9853
9854# How to create reloadable object files.
9855reload_flag=$lt_reload_flag
9856reload_cmds=$lt_reload_cmds
9857
9858# How to pass a linker flag through the compiler.
9859wl=$lt_lt_prog_compiler_wl
9860
9861# Object file suffix (normally "o").
9862objext="$ac_objext"
9863
9864# Old archive suffix (normally "a").
9865libext="$libext"
9866
9867# Shared library suffix (normally ".so").
9868shrext_cmds='$shrext_cmds'
9869
9870# Executable file suffix (normally "").
9871exeext="$exeext"
9872
9873# Additional compiler flags for building library objects.
9874pic_flag=$lt_lt_prog_compiler_pic
9875pic_mode=$pic_mode
9876
9877# What is the maximum length of a command?
9878max_cmd_len=$lt_cv_sys_max_cmd_len
9879
9880# Does compiler simultaneously support -c and -o options?
9881compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9882
9883# Must we lock files when doing compilation?
9884need_locks=$lt_need_locks
9885
9886# Do we need the lib prefix for modules?
9887need_lib_prefix=$need_lib_prefix
9888
9889# Do we need a version for libraries?
9890need_version=$need_version
9891
9892# Whether dlopen is supported.
9893dlopen_support=$enable_dlopen
9894
9895# Whether dlopen of programs is supported.
9896dlopen_self=$enable_dlopen_self
9897
9898# Whether dlopen of statically linked programs is supported.
9899dlopen_self_static=$enable_dlopen_self_static
9900
9901# Compiler flag to prevent dynamic linking.
9902link_static_flag=$lt_lt_prog_compiler_static
9903
9904# Compiler flag to turn off builtin functions.
9905no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9906
9907# Compiler flag to allow reflexive dlopens.
9908export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9909
9910# Compiler flag to generate shared objects directly from archives.
9911whole_archive_flag_spec=$lt_whole_archive_flag_spec
9912
9913# Compiler flag to generate thread-safe objects.
9914thread_safe_flag_spec=$lt_thread_safe_flag_spec
9915
9916# Library versioning type.
9917version_type=$version_type
9918
9919# Format of library name prefix.
9920libname_spec=$lt_libname_spec
9921
9922# List of archive names. First name is the real one, the rest are links.
9923# The last name is the one that the linker finds with -lNAME.
9924library_names_spec=$lt_library_names_spec
9925
9926# The coded name of the library, if different from the real name.
9927soname_spec=$lt_soname_spec
9928
9929# Commands used to build and install an old-style archive.
9930RANLIB=$lt_RANLIB
9931old_archive_cmds=$lt_old_archive_cmds
9932old_postinstall_cmds=$lt_old_postinstall_cmds
9933old_postuninstall_cmds=$lt_old_postuninstall_cmds
9934
9935# Create an old-style archive from a shared archive.
9936old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9937
9938# Create a temporary old-style archive to link instead of a shared archive.
9939old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9940
9941# Commands used to build and install a shared archive.
9942archive_cmds=$lt_archive_cmds
9943archive_expsym_cmds=$lt_archive_expsym_cmds
9944postinstall_cmds=$lt_postinstall_cmds
9945postuninstall_cmds=$lt_postuninstall_cmds
9946
9947# Commands used to build a loadable module (assumed same as above if empty)
9948module_cmds=$lt_module_cmds
9949module_expsym_cmds=$lt_module_expsym_cmds
9950
9951# Commands to strip libraries.
9952old_striplib=$lt_old_striplib
9953striplib=$lt_striplib
9954
9955# Dependencies to place before the objects being linked to create a
9956# shared library.
9957predep_objects=\`echo $lt_predep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
9958
9959# Dependencies to place after the objects being linked to create a
9960# shared library.
9961postdep_objects=\`echo $lt_postdep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
9962
9963# Dependencies to place before the objects being linked to create a
9964# shared library.
9965predeps=$lt_predeps
9966
9967# Dependencies to place after the objects being linked to create a
9968# shared library.
9969postdeps=$lt_postdeps
9970
9971# The library search path used internally by the compiler when linking
9972# a shared library.
9973compiler_lib_search_path=\`echo $lt_compiler_lib_search_path | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
9974
9975# Method to check whether dependent libraries are shared objects.
9976deplibs_check_method=$lt_deplibs_check_method
9977
9978# Command to use when deplibs_check_method == file_magic.
9979file_magic_cmd=$lt_file_magic_cmd
9980
9981# Flag that allows shared libraries with undefined symbols to be built.
9982allow_undefined_flag=$lt_allow_undefined_flag
9983
9984# Flag that forces no undefined symbols.
9985no_undefined_flag=$lt_no_undefined_flag
9986
9987# Commands used to finish a libtool library installation in a directory.
9988finish_cmds=$lt_finish_cmds
9989
9990# Same as above, but a single script fragment to be evaled but not shown.
9991finish_eval=$lt_finish_eval
9992
9993# Take the output of nm and produce a listing of raw symbols and C names.
9994global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9995
9996# Transform the output of nm in a proper C declaration
9997global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9998
9999# Transform the output of nm in a C name address pair
10000global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10001
10002# This is the shared library runtime path variable.
10003runpath_var=$runpath_var
10004
10005# This is the shared library path variable.
10006shlibpath_var=$shlibpath_var
10007
10008# Is shlibpath searched before the hard-coded library search path?
10009shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10010
10011# How to hardcode a shared library path into an executable.
10012hardcode_action=$hardcode_action
10013
10014# Whether we should hardcode library paths into libraries.
10015hardcode_into_libs=$hardcode_into_libs
10016
10017# Flag to hardcode \$libdir into a binary during linking.
10018# This must work even if \$libdir does not exist.
10019hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10020
10021# If ld is used when linking, flag to hardcode \$libdir into
10022# a binary during linking. This must work even if \$libdir does
10023# not exist.
10024hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10025
10026# Whether we need a single -rpath flag with a separated argument.
10027hardcode_libdir_separator=$lt_hardcode_libdir_separator
10028
10029# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10030# resulting binary.
10031hardcode_direct=$hardcode_direct
10032
10033# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10034# resulting binary.
10035hardcode_minus_L=$hardcode_minus_L
10036
10037# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10038# the resulting binary.
10039hardcode_shlibpath_var=$hardcode_shlibpath_var
10040
10041# Set to yes if building a shared library automatically hardcodes DIR into the library
10042# and all subsequent libraries and executables linked against it.
10043hardcode_automatic=$hardcode_automatic
10044
10045# Variables whose values should be saved in libtool wrapper scripts and
10046# restored at relink time.
10047variables_saved_for_relink="$variables_saved_for_relink"
10048
10049# Whether libtool must link a program against all its dependency libraries.
10050link_all_deplibs=$link_all_deplibs
10051
10052# Compile-time system search path for libraries
10053sys_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"\`
10054
10055# Run-time system search path for libraries
10056sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10057
10058# Fix the shell variable \$srcfile for the compiler.
10059fix_srcfile_path="$fix_srcfile_path"
10060
10061# Set to yes if exported symbols are required.
10062always_export_symbols=$always_export_symbols
10063
10064# The commands to list exported symbols.
10065export_symbols_cmds=$lt_export_symbols_cmds
10066
10067# The commands to extract the exported symbol list from a shared archive.
10068extract_expsyms_cmds=$lt_extract_expsyms_cmds
10069
10070# Symbols that should not be listed in the preloaded symbols.
10071exclude_expsyms=$lt_exclude_expsyms
10072
10073# Symbols that must always be exported.
10074include_expsyms=$lt_include_expsyms
10075
10076# ### END LIBTOOL CONFIG
10077
10078__EOF__
10079
10080
10081 case $host_os in
10082 aix3*)
10083 cat <<\EOF >> "$cfgfile"
10084
10085# AIX sometimes has problems with the GCC collect2 program. For some
10086# reason, if we set the COLLECT_NAMES environment variable, the problems
10087# vanish in a puff of smoke.
10088if test "X${COLLECT_NAMES+set}" != Xset; then
10089 COLLECT_NAMES=
10090 export COLLECT_NAMES
10091fi
10092EOF
10093 ;;
10094 esac
10095
10096 # We use sed instead of cat because bash on DJGPP gets confused if
10097 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10098 # text mode, it properly converts lines to CR/LF. This bash problem
10099 # is reportedly fixed, but why not run on old versions too?
10100 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10101
10102 mv -f "$cfgfile" "$ofile" || \
10103 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10104 chmod +x "$ofile"
10105
10106else
10107 # If there is no Makefile yet, we rely on a make rule to execute
10108 # `config.status --recheck' to rerun these tests and create the
10109 # libtool script then.
10110 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10111 if test -f "$ltmain_in"; then
10112 test -f Makefile && make "$ltmain"
10113 fi
10114fi
10115
10116
10117ac_ext=c
10118ac_cpp='$CPP $CPPFLAGS'
10119ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10120ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10121ac_compiler_gnu=$ac_cv_c_compiler_gnu
10122
10123CC="$lt_save_CC"
10124
10125
10126# Check whether --with-tags or --without-tags was given.
10127if test "${with_tags+set}" = set; then
10128 withval="$with_tags"
10129 tagnames="$withval"
10130fi;
10131
10132if test -f "$ltmain" && test -n "$tagnames"; then
10133 if test ! -f "${ofile}"; then
10134 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10135echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10136 fi
10137
10138 if test -z "$LTCC"; then
10139 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10140 if test -z "$LTCC"; then
10141 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10142echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10143 else
10144 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10145echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10146 fi
10147 fi
10148 if test -z "$LTCFLAGS"; then
10149 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10150 fi
10151
10152 # Extract list of available tagged configurations in $ofile.
10153 # Note that this assumes the entire list is on one line.
10154 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10155
10156 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10157 for tagname in $tagnames; do
10158 IFS="$lt_save_ifs"
10159 # Check whether tagname contains only valid characters
10160 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10161 "") ;;
10162 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10163echo "$as_me: error: invalid tag name: $tagname" >&2;}
10164 { (exit 1); exit 1; }; }
10165 ;;
10166 esac
10167
10168 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10169 then
10170 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10171echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10172 { (exit 1); exit 1; }; }
10173 fi
10174
10175 # Update the list of available tags.
10176 if test -n "$tagname"; then
10177 echo appending configuration tag \"$tagname\" to $ofile
10178
10179 case $tagname in
10180 CXX)
10181 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10182 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10183 (test "X$CXX" != "Xg++"))) ; then
10184 ac_ext=cc
10185ac_cpp='$CXXCPP $CPPFLAGS'
10186ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10187ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10188ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10189
10190
10191
10192
10193archive_cmds_need_lc_CXX=no
10194allow_undefined_flag_CXX=
10195always_export_symbols_CXX=no
10196archive_expsym_cmds_CXX=
10197export_dynamic_flag_spec_CXX=
10198hardcode_direct_CXX=no
10199hardcode_libdir_flag_spec_CXX=
10200hardcode_libdir_flag_spec_ld_CXX=
10201hardcode_libdir_separator_CXX=
10202hardcode_minus_L_CXX=no
10203hardcode_shlibpath_var_CXX=unsupported
10204hardcode_automatic_CXX=no
10205module_cmds_CXX=
10206module_expsym_cmds_CXX=
10207link_all_deplibs_CXX=unknown
10208old_archive_cmds_CXX=$old_archive_cmds
10209no_undefined_flag_CXX=
10210whole_archive_flag_spec_CXX=
10211enable_shared_with_static_runtimes_CXX=no
10212
10213# Dependencies to place before and after the object being linked:
10214predep_objects_CXX=
10215postdep_objects_CXX=
10216predeps_CXX=
10217postdeps_CXX=
10218compiler_lib_search_path_CXX=
10219
10220# Source file extension for C++ test sources.
10221ac_ext=cpp
10222
10223# Object file extension for compiled C++ test sources.
10224objext=o
10225objext_CXX=$objext
10226
10227# Code to be used in simple compile tests
10228lt_simple_compile_test_code="int some_variable = 0;\n"
10229
10230# Code to be used in simple link tests
10231lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10232
10233# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10234
10235# If no C compiler was specified, use CC.
10236LTCC=${LTCC-"$CC"}
10237
10238# If no C compiler flags were specified, use CFLAGS.
10239LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10240
10241# Allow CC to be a program name with arguments.
10242compiler=$CC
10243
10244
10245# save warnings/boilerplate of simple test code
10246ac_outfile=conftest.$ac_objext
10247printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10248eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10249_lt_compiler_boilerplate=`cat conftest.err`
10250$rm conftest*
10251
10252ac_outfile=conftest.$ac_objext
10253printf "$lt_simple_link_test_code" >conftest.$ac_ext
10254eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10255_lt_linker_boilerplate=`cat conftest.err`
10256$rm conftest*
10257
10258
10259# Allow CC to be a program name with arguments.
10260lt_save_CC=$CC
10261lt_save_LD=$LD
10262lt_save_GCC=$GCC
10263GCC=$GXX
10264lt_save_with_gnu_ld=$with_gnu_ld
10265lt_save_path_LD=$lt_cv_path_LD
10266if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10267 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10268else
10269 $as_unset lt_cv_prog_gnu_ld
10270fi
10271if test -n "${lt_cv_path_LDCXX+set}"; then
10272 lt_cv_path_LD=$lt_cv_path_LDCXX
10273else
10274 $as_unset lt_cv_path_LD
10275fi
10276test -z "${LDCXX+set}" || LD=$LDCXX
10277CC=${CXX-"c++"}
10278compiler=$CC
10279compiler_CXX=$CC
10280for cc_temp in $compiler""; do
10281 case $cc_temp in
10282 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10283 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10284 \-*) ;;
10285 *) break;;
10286 esac
10287done
10288cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10289
10290
10291# We don't want -fno-exception wen compiling C++ code, so set the
10292# no_builtin_flag separately
10293if test "$GXX" = yes; then
10294 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10295else
10296 lt_prog_compiler_no_builtin_flag_CXX=
10297fi
10298
10299if test "$GXX" = yes; then
10300 # Set up default GNU C++ configuration
10301
10302
10303# Check whether --with-gnu-ld or --without-gnu-ld was given.
10304if test "${with_gnu_ld+set}" = set; then
10305 withval="$with_gnu_ld"
10306 test "$withval" = no || with_gnu_ld=yes
10307else
10308 with_gnu_ld=no
10309fi;
10310ac_prog=ld
10311if test "$GCC" = yes; then
10312 # Check if gcc -print-prog-name=ld gives a path.
10313 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10314echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10315 case $host in
10316 *-*-mingw*)
10317 # gcc leaves a trailing carriage return which upsets mingw
10318 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10319 *)
10320 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10321 esac
10322 case $ac_prog in
10323 # Accept absolute paths.
10324 [\\/]* | ?:[\\/]*)
10325 re_direlt='/[^/][^/]*/\.\./'
10326 # Canonicalize the pathname of ld
10327 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10328 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10329 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10330 done
10331 test -z "$LD" && LD="$ac_prog"
10332 ;;
10333 "")
10334 # If it fails, then pretend we aren't using GCC.
10335 ac_prog=ld
10336 ;;
10337 *)
10338 # If it is relative, then search for the first ld in PATH.
10339 with_gnu_ld=unknown
10340 ;;
10341 esac
10342elif test "$with_gnu_ld" = yes; then
10343 echo "$as_me:$LINENO: checking for GNU ld" >&5
10344echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10345else
10346 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10347echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10348fi
10349if test "${lt_cv_path_LD+set}" = set; then
10350 echo $ECHO_N "(cached) $ECHO_C" >&6
10351else
10352 if test -z "$LD"; then
10353 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10354 for ac_dir in $PATH; do
10355 IFS="$lt_save_ifs"
10356 test -z "$ac_dir" && ac_dir=.
10357 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10358 lt_cv_path_LD="$ac_dir/$ac_prog"
10359 # Check to see if the program is GNU ld. I'd rather use --version,
10360 # but apparently some variants of GNU ld only accept -v.
10361 # Break only if it was the GNU/non-GNU ld that we prefer.
10362 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10363 *GNU* | *'with BFD'*)
10364 test "$with_gnu_ld" != no && break
10365 ;;
10366 *)
10367 test "$with_gnu_ld" != yes && break
10368 ;;
10369 esac
10370 fi
10371 done
10372 IFS="$lt_save_ifs"
10373else
10374 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10375fi
10376fi
10377
10378LD="$lt_cv_path_LD"
10379if test -n "$LD"; then
10380 echo "$as_me:$LINENO: result: $LD" >&5
10381echo "${ECHO_T}$LD" >&6
10382else
10383 echo "$as_me:$LINENO: result: no" >&5
10384echo "${ECHO_T}no" >&6
10385fi
10386test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10387echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10388 { (exit 1); exit 1; }; }
10389echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10390echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10391if test "${lt_cv_prog_gnu_ld+set}" = set; then
10392 echo $ECHO_N "(cached) $ECHO_C" >&6
10393else
10394 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10395case `$LD -v 2>&1 </dev/null` in
10396*GNU* | *'with BFD'*)
10397 lt_cv_prog_gnu_ld=yes
10398 ;;
10399*)
10400 lt_cv_prog_gnu_ld=no
10401 ;;
10402esac
10403fi
10404echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10405echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10406with_gnu_ld=$lt_cv_prog_gnu_ld
10407
10408
10409
10410 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10411 # archiving commands below assume that GNU ld is being used.
10412 if test "$with_gnu_ld" = yes; then
10413 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10414 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'
10415
10416 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10417 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10418
10419 # If archive_cmds runs LD, not CC, wlarc should be empty
10420 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10421 # investigate it a little bit more. (MM)
10422 wlarc='${wl}'
10423
10424 # ancient GNU ld didn't support --whole-archive et. al.
10425 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10426 grep 'no-whole-archive' > /dev/null; then
10427 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10428 else
10429 whole_archive_flag_spec_CXX=
10430 fi
10431 else
10432 with_gnu_ld=no
10433 wlarc=
10434
10435 # A generic and very simple default shared library creation
10436 # command for GNU C++ for the case where it uses the native
10437 # linker, instead of GNU ld. If possible, this setting should
10438 # overridden to take advantage of the native linker features on
10439 # the platform it is being used on.
10440 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10441 fi
10442
10443 # Commands to make compiler produce verbose output that lists
10444 # what "hidden" libraries, object files and flags are used when
10445 # linking a shared library.
10446 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10447
10448else
10449 GXX=no
10450 with_gnu_ld=no
10451 wlarc=
10452fi
10453
10454# PORTME: fill in a description of your system's C++ link characteristics
10455echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10456echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10457ld_shlibs_CXX=yes
10458case $host_os in
10459 aix3*)
10460 # FIXME: insert proper C++ library support
10461 ld_shlibs_CXX=no
10462 ;;
10463 aix4* | aix5*)
10464 if test "$host_cpu" = ia64; then
10465 # On IA64, the linker does run time linking by default, so we don't
10466 # have to do anything special.
10467 aix_use_runtimelinking=no
10468 exp_sym_flag='-Bexport'
10469 no_entry_flag=""
10470 else
10471 aix_use_runtimelinking=no
10472
10473 # Test if we are trying to use run time linking or normal
10474 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10475 # need to do runtime linking.
10476 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10477 for ld_flag in $LDFLAGS; do
10478 case $ld_flag in
10479 *-brtl*)
10480 aix_use_runtimelinking=yes
10481 break
10482 ;;
10483 esac
10484 done
10485 ;;
10486 esac
10487
10488 exp_sym_flag='-bexport'
10489 no_entry_flag='-bnoentry'
10490 fi
10491
10492 # When large executables or shared objects are built, AIX ld can
10493 # have problems creating the table of contents. If linking a library
10494 # or program results in "error TOC overflow" add -mminimal-toc to
10495 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10496 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10497
10498 archive_cmds_CXX=''
10499 hardcode_direct_CXX=yes
10500 hardcode_libdir_separator_CXX=':'
10501 link_all_deplibs_CXX=yes
10502
10503 if test "$GXX" = yes; then
10504 case $host_os in aix4.[012]|aix4.[012].*)
10505 # We only want to do this on AIX 4.2 and lower, the check
10506 # below for broken collect2 doesn't work under 4.3+
10507 collect2name=`${CC} -print-prog-name=collect2`
10508 if test -f "$collect2name" && \
10509 strings "$collect2name" | grep resolve_lib_name >/dev/null
10510 then
10511 # We have reworked collect2
10512 hardcode_direct_CXX=yes
10513 else
10514 # We have old collect2
10515 hardcode_direct_CXX=unsupported
10516 # It fails to find uninstalled libraries when the uninstalled
10517 # path is not listed in the libpath. Setting hardcode_minus_L
10518 # to unsupported forces relinking
10519 hardcode_minus_L_CXX=yes
10520 hardcode_libdir_flag_spec_CXX='-L$libdir'
10521 hardcode_libdir_separator_CXX=
10522 fi
10523 ;;
10524 esac
10525 shared_flag='-shared'
10526 if test "$aix_use_runtimelinking" = yes; then
10527 shared_flag="$shared_flag "'${wl}-G'
10528 fi
10529 else
10530 # not using gcc
10531 if test "$host_cpu" = ia64; then
10532 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10533 # chokes on -Wl,-G. The following line is correct:
10534 shared_flag='-G'
10535 else
10536 if test "$aix_use_runtimelinking" = yes; then
10537 shared_flag='${wl}-G'
10538 else
10539 shared_flag='${wl}-bM:SRE'
10540 fi
10541 fi
10542 fi
10543
10544 # It seems that -bexpall does not export symbols beginning with
10545 # underscore (_), so it is better to generate a list of symbols to export.
10546 always_export_symbols_CXX=yes
10547 if test "$aix_use_runtimelinking" = yes; then
10548 # Warning - without using the other runtime loading flags (-brtl),
10549 # -berok will link without error, but may produce a broken library.
10550 allow_undefined_flag_CXX='-berok'
10551 # Determine the default libpath from the value encoded in an empty executable.
10552 cat >conftest.$ac_ext <<_ACEOF
10553/* confdefs.h. */
10554_ACEOF
10555cat confdefs.h >>conftest.$ac_ext
10556cat >>conftest.$ac_ext <<_ACEOF
10557/* end confdefs.h. */
10558
10559int
10560main ()
10561{
10562
10563 ;
10564 return 0;
10565}
10566_ACEOF
10567rm -f conftest.$ac_objext conftest$ac_exeext
10568if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10569 (eval $ac_link) 2>conftest.er1
10570 ac_status=$?
10571 grep -v '^ *+' conftest.er1 >conftest.err
10572 rm -f conftest.er1
10573 cat conftest.err >&5
10574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10575 (exit $ac_status); } &&
10576 { ac_try='test -z "$ac_cxx_werror_flag"
10577 || test ! -s conftest.err'
10578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10579 (eval $ac_try) 2>&5
10580 ac_status=$?
10581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10582 (exit $ac_status); }; } &&
10583 { ac_try='test -s conftest$ac_exeext'
10584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10585 (eval $ac_try) 2>&5
10586 ac_status=$?
10587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10588 (exit $ac_status); }; }; then
10589
10590aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10591}'`
10592# Check for a 64-bit object if we didn't find anything.
10593if 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; }
10594}'`; fi
10595else
10596 echo "$as_me: failed program was:" >&5
10597sed 's/^/| /' conftest.$ac_ext >&5
10598
10599fi
10600rm -f conftest.err conftest.$ac_objext \
10601 conftest$ac_exeext conftest.$ac_ext
10602if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10603
10604 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10605
10606 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"
10607 else
10608 if test "$host_cpu" = ia64; then
10609 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10610 allow_undefined_flag_CXX="-z nodefs"
10611 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"
10612 else
10613 # Determine the default libpath from the value encoded in an empty executable.
10614 cat >conftest.$ac_ext <<_ACEOF
10615/* confdefs.h. */
10616_ACEOF
10617cat confdefs.h >>conftest.$ac_ext
10618cat >>conftest.$ac_ext <<_ACEOF
10619/* end confdefs.h. */
10620
10621int
10622main ()
10623{
10624
10625 ;
10626 return 0;
10627}
10628_ACEOF
10629rm -f conftest.$ac_objext conftest$ac_exeext
10630if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10631 (eval $ac_link) 2>conftest.er1
10632 ac_status=$?
10633 grep -v '^ *+' conftest.er1 >conftest.err
10634 rm -f conftest.er1
10635 cat conftest.err >&5
10636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10637 (exit $ac_status); } &&
10638 { ac_try='test -z "$ac_cxx_werror_flag"
10639 || test ! -s conftest.err'
10640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10641 (eval $ac_try) 2>&5
10642 ac_status=$?
10643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10644 (exit $ac_status); }; } &&
10645 { ac_try='test -s conftest$ac_exeext'
10646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10647 (eval $ac_try) 2>&5
10648 ac_status=$?
10649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10650 (exit $ac_status); }; }; then
10651
10652aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10653}'`
10654# Check for a 64-bit object if we didn't find anything.
10655if 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; }
10656}'`; fi
10657else
10658 echo "$as_me: failed program was:" >&5
10659sed 's/^/| /' conftest.$ac_ext >&5
10660
10661fi
10662rm -f conftest.err conftest.$ac_objext \
10663 conftest$ac_exeext conftest.$ac_ext
10664if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10665
10666 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10667 # Warning - without using the other run time loading flags,
10668 # -berok will link without error, but may produce a broken library.
10669 no_undefined_flag_CXX=' ${wl}-bernotok'
10670 allow_undefined_flag_CXX=' ${wl}-berok'
10671 # Exported symbols can be pulled into shared objects from archives
10672 whole_archive_flag_spec_CXX='$convenience'
10673 archive_cmds_need_lc_CXX=yes
10674 # This is similar to how AIX traditionally builds its shared libraries.
10675 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'
10676 fi
10677 fi
10678 ;;
10679
10680 beos*)
10681 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10682 allow_undefined_flag_CXX=unsupported
10683 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10684 # support --undefined. This deserves some investigation. FIXME
10685 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10686 else
10687 ld_shlibs_CXX=no
10688 fi
10689 ;;
10690
10691 chorus*)
10692 case $cc_basename in
10693 *)
10694 # FIXME: insert proper C++ library support
10695 ld_shlibs_CXX=no
10696 ;;
10697 esac
10698 ;;
10699
10700 cygwin* | mingw* | pw32*)
10701 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10702 # as there is no search path for DLLs.
10703 hardcode_libdir_flag_spec_CXX='-L$libdir'
10704 allow_undefined_flag_CXX=unsupported
10705 always_export_symbols_CXX=no
10706 enable_shared_with_static_runtimes_CXX=yes
10707
10708 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10709 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'
10710 # If the export-symbols file already is a .def file (1st line
10711 # is EXPORTS), use it as is; otherwise, prepend...
10712 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10713 cp $export_symbols $output_objdir/$soname.def;
10714 else
10715 echo EXPORTS > $output_objdir/$soname.def;
10716 cat $export_symbols >> $output_objdir/$soname.def;
10717 fi~
10718 $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'
10719 else
10720 ld_shlibs_CXX=no
10721 fi
10722 ;;
10723 darwin* | rhapsody*)
10724 case $host_os in
10725 rhapsody* | darwin1.[012])
10726 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10727 ;;
10728 *) # Darwin 1.3 on
10729 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10730 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10731 else
10732 case ${MACOSX_DEPLOYMENT_TARGET} in
10733 10.[012])
10734 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10735 ;;
10736 10.*)
10737 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10738 ;;
10739 esac
10740 fi
10741 ;;
10742 esac
10743 archive_cmds_need_lc_CXX=no
10744 hardcode_direct_CXX=no
10745 hardcode_automatic_CXX=yes
10746 hardcode_shlibpath_var_CXX=unsupported
10747 whole_archive_flag_spec_CXX=''
10748 link_all_deplibs_CXX=yes
10749
10750 if test "$GXX" = yes ; then
10751 lt_int_apple_cc_single_mod=no
10752 output_verbose_link_cmd='echo'
10753 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10754 lt_int_apple_cc_single_mod=yes
10755 fi
10756 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10757 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10758 else
10759 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'
10760 fi
10761 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10762 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10763 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10764 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}'
10765 else
10766 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}'
10767 fi
10768 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}'
10769 else
10770 case $cc_basename in
10771 xlc*)
10772 output_verbose_link_cmd='echo'
10773 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'
10774 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10775 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10776 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}'
10777 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}'
10778 ;;
10779 *)
10780 ld_shlibs_CXX=no
10781 ;;
10782 esac
10783 fi
10784 ;;
10785
10786 dgux*)
10787 case $cc_basename in
10788 ec++*)
10789 # FIXME: insert proper C++ library support
10790 ld_shlibs_CXX=no
10791 ;;
10792 ghcx*)
10793 # Green Hills C++ Compiler
10794 # FIXME: insert proper C++ library support
10795 ld_shlibs_CXX=no
10796 ;;
10797 *)
10798 # FIXME: insert proper C++ library support
10799 ld_shlibs_CXX=no
10800 ;;
10801 esac
10802 ;;
10803 freebsd[12]*)
10804 # C++ shared libraries reported to be fairly broken before switch to ELF
10805 ld_shlibs_CXX=no
10806 ;;
10807 freebsd-elf*)
10808 archive_cmds_need_lc_CXX=no
10809 ;;
10810 freebsd* | kfreebsd*-gnu | dragonfly*)
10811 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10812 # conventions
10813 ld_shlibs_CXX=yes
10814 ;;
10815 gnu*)
10816 ;;
10817 hpux9*)
10818 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10819 hardcode_libdir_separator_CXX=:
10820 export_dynamic_flag_spec_CXX='${wl}-E'
10821 hardcode_direct_CXX=yes
10822 hardcode_minus_L_CXX=yes # Not in the search PATH,
10823 # but as the default
10824 # location of the library.
10825
10826 case $cc_basename in
10827 CC*)
10828 # FIXME: insert proper C++ library support
10829 ld_shlibs_CXX=no
10830 ;;
10831 aCC*)
10832 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'
10833 # Commands to make compiler produce verbose output that lists
10834 # what "hidden" libraries, object files and flags are used when
10835 # linking a shared library.
10836 #
10837 # There doesn't appear to be a way to prevent this compiler from
10838 # explicitly linking system object files so we need to strip them
10839 # from the output so that they don't get included in the library
10840 # dependencies.
10841 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'
10842 ;;
10843 *)
10844 if test "$GXX" = yes; then
10845 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'
10846 else
10847 # FIXME: insert proper C++ library support
10848 ld_shlibs_CXX=no
10849 fi
10850 ;;
10851 esac
10852 ;;
10853 hpux10*|hpux11*)
10854 if test $with_gnu_ld = no; then
10855 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10856 hardcode_libdir_separator_CXX=:
10857
10858 case $host_cpu in
10859 hppa*64*|ia64*)
10860 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10861 ;;
10862 *)
10863 export_dynamic_flag_spec_CXX='${wl}-E'
10864 ;;
10865 esac
10866 fi
10867 case $host_cpu in
10868 hppa*64*|ia64*)
10869 hardcode_direct_CXX=no
10870 hardcode_shlibpath_var_CXX=no
10871 ;;
10872 *)
10873 hardcode_direct_CXX=yes
10874 hardcode_minus_L_CXX=yes # Not in the search PATH,
10875 # but as the default
10876 # location of the library.
10877 ;;
10878 esac
10879
10880 case $cc_basename in
10881 CC*)
10882 # FIXME: insert proper C++ library support
10883 ld_shlibs_CXX=no
10884 ;;
10885 aCC*)
10886 case $host_cpu in
10887 hppa*64*)
10888 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10889 ;;
10890 ia64*)
10891 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10892 ;;
10893 *)
10894 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10895 ;;
10896 esac
10897 # Commands to make compiler produce verbose output that lists
10898 # what "hidden" libraries, object files and flags are used when
10899 # linking a shared library.
10900 #
10901 # There doesn't appear to be a way to prevent this compiler from
10902 # explicitly linking system object files so we need to strip them
10903 # from the output so that they don't get included in the library
10904 # dependencies.
10905 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'
10906 ;;
10907 *)
10908 if test "$GXX" = yes; then
10909 if test $with_gnu_ld = no; then
10910 case $host_cpu in
10911 hppa*64*)
10912 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10913 ;;
10914 ia64*)
10915 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10916 ;;
10917 *)
10918 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'
10919 ;;
10920 esac
10921 fi
10922 else
10923 # FIXME: insert proper C++ library support
10924 ld_shlibs_CXX=no
10925 fi
10926 ;;
10927 esac
10928 ;;
10929 interix3*)
10930 hardcode_direct_CXX=no
10931 hardcode_shlibpath_var_CXX=no
10932 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10933 export_dynamic_flag_spec_CXX='${wl}-E'
10934 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10935 # Instead, shared libraries are loaded at an image base (0x10000000 by
10936 # default) and relocated if they conflict, which is a slow very memory
10937 # consuming and fragmenting process. To avoid this, we pick a random,
10938 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10939 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10940 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'
10941 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'
10942 ;;
10943 irix5* | irix6*)
10944 case $cc_basename in
10945 CC*)
10946 # SGI C++
10947 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'
10948
10949 # Archives containing C++ object files must be created using
10950 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10951 # necessary to make sure instantiated templates are included
10952 # in the archive.
10953 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10954 ;;
10955 *)
10956 if test "$GXX" = yes; then
10957 if test "$with_gnu_ld" = no; then
10958 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'
10959 else
10960 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'
10961 fi
10962 fi
10963 link_all_deplibs_CXX=yes
10964 ;;
10965 esac
10966 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10967 hardcode_libdir_separator_CXX=:
10968 ;;
10969 linux*)
10970 case $cc_basename in
10971 KCC*)
10972 # Kuck and Associates, Inc. (KAI) C++ Compiler
10973
10974 # KCC will only create a shared library if the output file
10975 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10976 # to its proper name (with version) after linking.
10977 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'
10978 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'
10979 # Commands to make compiler produce verbose output that lists
10980 # what "hidden" libraries, object files and flags are used when
10981 # linking a shared library.
10982 #
10983 # There doesn't appear to be a way to prevent this compiler from
10984 # explicitly linking system object files so we need to strip them
10985 # from the output so that they don't get included in the library
10986 # dependencies.
10987 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'
10988
10989 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10990 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10991
10992 # Archives containing C++ object files must be created using
10993 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10994 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10995 ;;
10996 icpc*)
10997 # Intel C++
10998 with_gnu_ld=yes
10999 # version 8.0 and above of icpc choke on multiply defined symbols
11000 # if we add $predep_objects and $postdep_objects, however 7.1 and
11001 # earlier do not add the objects themselves.
11002 case `$CC -V 2>&1` in
11003 *"Version 7."*)
11004 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11005 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'
11006 ;;
11007 *) # Version 8.0 or newer
11008 tmp_idyn=
11009 case $host_cpu in
11010 ia64*) tmp_idyn=' -i_dynamic';;
11011 esac
11012 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11013 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'
11014 ;;
11015 esac
11016 archive_cmds_need_lc_CXX=no
11017 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11018 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11019 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11020 ;;
11021 pgCC*)
11022 # Portland Group C++ compiler
11023 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11024 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'
11025
11026 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11027 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11028 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'
11029 ;;
11030 cxx*)
11031 # Compaq C++
11032 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11033 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'
11034
11035 runpath_var=LD_RUN_PATH
11036 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11037 hardcode_libdir_separator_CXX=:
11038
11039 # Commands to make compiler produce verbose output that lists
11040 # what "hidden" libraries, object files and flags are used when
11041 # linking a shared library.
11042 #
11043 # There doesn't appear to be a way to prevent this compiler from
11044 # explicitly linking system object files so we need to strip them
11045 # from the output so that they don't get included in the library
11046 # dependencies.
11047 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'
11048 ;;
11049 esac
11050 ;;
11051 lynxos*)
11052 # FIXME: insert proper C++ library support
11053 ld_shlibs_CXX=no
11054 ;;
11055 m88k*)
11056 # FIXME: insert proper C++ library support
11057 ld_shlibs_CXX=no
11058 ;;
11059 mvs*)
11060 case $cc_basename in
11061 cxx*)
11062 # FIXME: insert proper C++ library support
11063 ld_shlibs_CXX=no
11064 ;;
11065 *)
11066 # FIXME: insert proper C++ library support
11067 ld_shlibs_CXX=no
11068 ;;
11069 esac
11070 ;;
11071 netbsd*)
11072 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11073 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11074 wlarc=
11075 hardcode_libdir_flag_spec_CXX='-R$libdir'
11076 hardcode_direct_CXX=yes
11077 hardcode_shlibpath_var_CXX=no
11078 fi
11079 # Workaround some broken pre-1.5 toolchains
11080 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11081 ;;
11082 openbsd2*)
11083 # C++ shared libraries are fairly broken
11084 ld_shlibs_CXX=no
11085 ;;
11086 openbsd*)
11087 hardcode_direct_CXX=yes
11088 hardcode_shlibpath_var_CXX=no
11089 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11090 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11091 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11092 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11093 export_dynamic_flag_spec_CXX='${wl}-E'
11094 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11095 fi
11096 output_verbose_link_cmd='echo'
11097 ;;
11098 osf3*)
11099 case $cc_basename in
11100 KCC*)
11101 # Kuck and Associates, Inc. (KAI) C++ Compiler
11102
11103 # KCC will only create a shared library if the output file
11104 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11105 # to its proper name (with version) after linking.
11106 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'
11107
11108 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11109 hardcode_libdir_separator_CXX=:
11110
11111 # Archives containing C++ object files must be created using
11112 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11113 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11114
11115 ;;
11116 RCC*)
11117 # Rational C++ 2.4.1
11118 # FIXME: insert proper C++ library support
11119 ld_shlibs_CXX=no
11120 ;;
11121 cxx*)
11122 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11123 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'
11124
11125 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11126 hardcode_libdir_separator_CXX=:
11127
11128 # Commands to make compiler produce verbose output that lists
11129 # what "hidden" libraries, object files and flags are used when
11130 # linking a shared library.
11131 #
11132 # There doesn't appear to be a way to prevent this compiler from
11133 # explicitly linking system object files so we need to strip them
11134 # from the output so that they don't get included in the library
11135 # dependencies.
11136 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'
11137 ;;
11138 *)
11139 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11140 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11141 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'
11142
11143 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11144 hardcode_libdir_separator_CXX=:
11145
11146 # Commands to make compiler produce verbose output that lists
11147 # what "hidden" libraries, object files and flags are used when
11148 # linking a shared library.
11149 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11150
11151 else
11152 # FIXME: insert proper C++ library support
11153 ld_shlibs_CXX=no
11154 fi
11155 ;;
11156 esac
11157 ;;
11158 osf4* | osf5*)
11159 case $cc_basename in
11160 KCC*)
11161 # Kuck and Associates, Inc. (KAI) C++ Compiler
11162
11163 # KCC will only create a shared library if the output file
11164 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11165 # to its proper name (with version) after linking.
11166 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'
11167
11168 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11169 hardcode_libdir_separator_CXX=:
11170
11171 # Archives containing C++ object files must be created using
11172 # the KAI C++ compiler.
11173 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11174 ;;
11175 RCC*)
11176 # Rational C++ 2.4.1
11177 # FIXME: insert proper C++ library support
11178 ld_shlibs_CXX=no
11179 ;;
11180 cxx*)
11181 allow_undefined_flag_CXX=' -expect_unresolved \*'
11182 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'
11183 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11184 echo "-hidden">> $lib.exp~
11185 $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~
11186 $rm $lib.exp'
11187
11188 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11189 hardcode_libdir_separator_CXX=:
11190
11191 # Commands to make compiler produce verbose output that lists
11192 # what "hidden" libraries, object files and flags are used when
11193 # linking a shared library.
11194 #
11195 # There doesn't appear to be a way to prevent this compiler from
11196 # explicitly linking system object files so we need to strip them
11197 # from the output so that they don't get included in the library
11198 # dependencies.
11199 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'
11200 ;;
11201 *)
11202 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11203 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11204 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'
11205
11206 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11207 hardcode_libdir_separator_CXX=:
11208
11209 # Commands to make compiler produce verbose output that lists
11210 # what "hidden" libraries, object files and flags are used when
11211 # linking a shared library.
11212 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11213
11214 else
11215 # FIXME: insert proper C++ library support
11216 ld_shlibs_CXX=no
11217 fi
11218 ;;
11219 esac
11220 ;;
11221 psos*)
11222 # FIXME: insert proper C++ library support
11223 ld_shlibs_CXX=no
11224 ;;
11225 sunos4*)
11226 case $cc_basename in
11227 CC*)
11228 # Sun C++ 4.x
11229 # FIXME: insert proper C++ library support
11230 ld_shlibs_CXX=no
11231 ;;
11232 lcc*)
11233 # Lucid
11234 # FIXME: insert proper C++ library support
11235 ld_shlibs_CXX=no
11236 ;;
11237 *)
11238 # FIXME: insert proper C++ library support
11239 ld_shlibs_CXX=no
11240 ;;
11241 esac
11242 ;;
11243 solaris*)
11244 case $cc_basename in
11245 CC*)
11246 # Sun C++ 4.2, 5.x and Centerline C++
11247 archive_cmds_need_lc_CXX=yes
11248 no_undefined_flag_CXX=' -zdefs'
11249 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11250 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11251 $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'
11252
11253 hardcode_libdir_flag_spec_CXX='-R$libdir'
11254 hardcode_shlibpath_var_CXX=no
11255 case $host_os in
11256 solaris2.[0-5] | solaris2.[0-5].*) ;;
11257 *)
11258 # The C++ compiler is used as linker so we must use $wl
11259 # flag to pass the commands to the underlying system
11260 # linker. We must also pass each convience library through
11261 # to the system linker between allextract/defaultextract.
11262 # The C++ compiler will combine linker options so we
11263 # cannot just pass the convience library names through
11264 # without $wl.
11265 # Supported since Solaris 2.6 (maybe 2.5.1?)
11266 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'
11267 ;;
11268 esac
11269 link_all_deplibs_CXX=yes
11270
11271 output_verbose_link_cmd='echo'
11272
11273 # Archives containing C++ object files must be created using
11274 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11275 # necessary to make sure instantiated templates are included
11276 # in the archive.
11277 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11278 ;;
11279 gcx*)
11280 # Green Hills C++ Compiler
11281 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11282
11283 # The C++ compiler must be used to create the archive.
11284 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11285 ;;
11286 *)
11287 # GNU C++ compiler with Solaris linker
11288 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11289 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11290 if $CC --version | grep -v '^2\.7' > /dev/null; then
11291 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11292 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11293 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11294
11295 # Commands to make compiler produce verbose output that lists
11296 # what "hidden" libraries, object files and flags are used when
11297 # linking a shared library.
11298 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11299 else
11300 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11301 # platform.
11302 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11303 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11304 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11305
11306 # Commands to make compiler produce verbose output that lists
11307 # what "hidden" libraries, object files and flags are used when
11308 # linking a shared library.
11309 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11310 fi
11311
11312 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11313 fi
11314 ;;
11315 esac
11316 ;;
11317 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11318 no_undefined_flag_CXX='${wl}-z,text'
11319 archive_cmds_need_lc_CXX=no
11320 hardcode_shlibpath_var_CXX=no
11321 runpath_var='LD_RUN_PATH'
11322
11323 case $cc_basename in
11324 CC*)
11325 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11326 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11327 ;;
11328 *)
11329 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11330 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11331 ;;
11332 esac
11333 ;;
11334 sysv5* | sco3.2v5* | sco5v6*)
11335 # Note: We can NOT use -z defs as we might desire, because we do not
11336 # link with -lc, and that would cause any symbols used from libc to
11337 # always be unresolved, which means just about no library would
11338 # ever link correctly. If we're not using GNU ld we use -z text
11339 # though, which does catch some bad symbols but isn't as heavy-handed
11340 # as -z defs.
11341 # For security reasons, it is highly recommended that you always
11342 # use absolute paths for naming shared libraries, and exclude the
11343 # DT_RUNPATH tag from executables and libraries. But doing so
11344 # requires that you compile everything twice, which is a pain.
11345 # So that behaviour is only enabled if SCOABSPATH is set to a
11346 # non-empty value in the environment. Most likely only useful for
11347 # creating official distributions of packages.
11348 # This is a hack until libtool officially supports absolute path
11349 # names for shared libraries.
11350 no_undefined_flag_CXX='${wl}-z,text'
11351 allow_undefined_flag_CXX='${wl}-z,nodefs'
11352 archive_cmds_need_lc_CXX=no
11353 hardcode_shlibpath_var_CXX=no
11354 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11355 hardcode_libdir_separator_CXX=':'
11356 link_all_deplibs_CXX=yes
11357 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11358 runpath_var='LD_RUN_PATH'
11359
11360 case $cc_basename in
11361 CC*)
11362 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11363 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11364 ;;
11365 *)
11366 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11367 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11368 ;;
11369 esac
11370 ;;
11371 tandem*)
11372 case $cc_basename in
11373 NCC*)
11374 # NonStop-UX NCC 3.20
11375 # FIXME: insert proper C++ library support
11376 ld_shlibs_CXX=no
11377 ;;
11378 *)
11379 # FIXME: insert proper C++ library support
11380 ld_shlibs_CXX=no
11381 ;;
11382 esac
11383 ;;
11384 vxworks*)
11385 # FIXME: insert proper C++ library support
11386 ld_shlibs_CXX=no
11387 ;;
11388 *)
11389 # FIXME: insert proper C++ library support
11390 ld_shlibs_CXX=no
11391 ;;
11392esac
11393echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11394echo "${ECHO_T}$ld_shlibs_CXX" >&6
11395test "$ld_shlibs_CXX" = no && can_build_shared=no
11396
11397GCC_CXX="$GXX"
11398LD_CXX="$LD"
11399
11400
11401cat > conftest.$ac_ext <<EOF
11402class Foo
11403{
11404public:
11405 Foo (void) { a = 0; }
11406private:
11407 int a;
11408};
11409EOF
11410
11411if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11412 (eval $ac_compile) 2>&5
11413 ac_status=$?
11414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11415 (exit $ac_status); }; then
11416 # Parse the compiler output and extract the necessary
11417 # objects, libraries and library flags.
11418
11419 # Sentinel used to keep track of whether or not we are before
11420 # the conftest object file.
11421 pre_test_object_deps_done=no
11422
11423 # The `*' in the case matches for architectures that use `case' in
11424 # $output_verbose_cmd can trigger glob expansion during the loop
11425 # eval without this substitution.
11426 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11427
11428 for p in `eval $output_verbose_link_cmd`; do
11429 case $p in
11430
11431 -L* | -R* | -l*)
11432 # Some compilers place space between "-{L,R}" and the path.
11433 # Remove the space.
11434 if test $p = "-L" \
11435 || test $p = "-R"; then
11436 prev=$p
11437 continue
11438 else
11439 prev=
11440 fi
11441
11442 if test "$pre_test_object_deps_done" = no; then
11443 case $p in
11444 -L* | -R*)
11445 # Internal compiler library paths should come after those
11446 # provided the user. The postdeps already come after the
11447 # user supplied libs so there is no need to process them.
11448 if test -z "$compiler_lib_search_path_CXX"; then
11449 compiler_lib_search_path_CXX="${prev}${p}"
11450 else
11451 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11452 fi
11453 ;;
11454 # The "-l" case would never come before the object being
11455 # linked, so don't bother handling this case.
11456 esac
11457 else
11458 if test -z "$postdeps_CXX"; then
11459 postdeps_CXX="${prev}${p}"
11460 else
11461 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11462 fi
11463 fi
11464 ;;
11465
11466 *.$objext)
11467 # This assumes that the test object file only shows up
11468 # once in the compiler output.
11469 if test "$p" = "conftest.$objext"; then
11470 pre_test_object_deps_done=yes
11471 continue
11472 fi
11473
11474 if test "$pre_test_object_deps_done" = no; then
11475 if test -z "$predep_objects_CXX"; then
11476 predep_objects_CXX="$p"
11477 else
11478 predep_objects_CXX="$predep_objects_CXX $p"
11479 fi
11480 else
11481 if test -z "$postdep_objects_CXX"; then
11482 postdep_objects_CXX="$p"
11483 else
11484 postdep_objects_CXX="$postdep_objects_CXX $p"
11485 fi
11486 fi
11487 ;;
11488
11489 *) ;; # Ignore the rest.
11490
11491 esac
11492 done
11493
11494 # Clean up.
11495 rm -f a.out a.exe
11496else
11497 echo "libtool.m4: error: problem compiling CXX test program"
11498fi
11499
11500$rm -f confest.$objext
11501
11502# PORTME: override above test on systems where it is broken
11503case $host_os in
11504interix3*)
11505 # Interix 3.5 installs completely hosed .la files for C++, so rather than
11506 # hack all around it, let's just trust "g++" to DTRT.
11507 predep_objects_CXX=
11508 postdep_objects_CXX=
11509 postdeps_CXX=
11510 ;;
11511
11512solaris*)
11513 case $cc_basename in
11514 CC*)
11515 # Adding this requires a known-good setup of shared libraries for
11516 # Sun compiler versions before 5.6, else PIC objects from an old
11517 # archive will be linked into the output, leading to subtle bugs.
11518 postdeps_CXX='-lCstd -lCrun'
11519 ;;
11520 esac
11521 ;;
11522esac
11523
11524
11525case " $postdeps_CXX " in
11526*" -lc "*) archive_cmds_need_lc_CXX=no ;;
11527esac
11528
11529lt_prog_compiler_wl_CXX=
11530lt_prog_compiler_pic_CXX=
11531lt_prog_compiler_static_CXX=
11532
11533echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11534echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11535
11536 # C++ specific cases for pic, static, wl, etc.
11537 if test "$GXX" = yes; then
11538 lt_prog_compiler_wl_CXX='-Wl,'
11539 lt_prog_compiler_static_CXX='-static'
11540
11541 case $host_os in
11542 aix*)
11543 # All AIX code is PIC.
11544 if test "$host_cpu" = ia64; then
11545 # AIX 5 now supports IA64 processor
11546 lt_prog_compiler_static_CXX='-Bstatic'
11547 fi
11548 ;;
11549 amigaos*)
11550 # FIXME: we need at least 68020 code to build shared libraries, but
11551 # adding the `-m68020' flag to GCC prevents building anything better,
11552 # like `-m68040'.
11553 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11554 ;;
11555 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11556 # PIC is the default for these OSes.
11557 ;;
11558 mingw* | os2* | pw32*)
11559 # This hack is so that the source file can tell whether it is being
11560 # built for inclusion in a dll (and should export symbols for example).
11561 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11562 ;;
11563 darwin* | rhapsody*)
11564 # PIC is the default on this platform
11565 # Common symbols not allowed in MH_DYLIB files
11566 lt_prog_compiler_pic_CXX='-fno-common'
11567 ;;
11568 *djgpp*)
11569 # DJGPP does not support shared libraries at all
11570 lt_prog_compiler_pic_CXX=
11571 ;;
11572 interix3*)
11573 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11574 # Instead, we relocate shared libraries at runtime.
11575 ;;
11576 sysv4*MP*)
11577 if test -d /usr/nec; then
11578 lt_prog_compiler_pic_CXX=-Kconform_pic
11579 fi
11580 ;;
11581 hpux*)
11582 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11583 # not for PA HP-UX.
11584 case $host_cpu in
11585 hppa*64*|ia64*)
11586 ;;
11587 *)
11588 lt_prog_compiler_pic_CXX='-fPIC'
11589 ;;
11590 esac
11591 ;;
11592 *)
11593 lt_prog_compiler_pic_CXX='-fPIC'
11594 ;;
11595 esac
11596 else
11597 case $host_os in
11598 aix4* | aix5*)
11599 # All AIX code is PIC.
11600 if test "$host_cpu" = ia64; then
11601 # AIX 5 now supports IA64 processor
11602 lt_prog_compiler_static_CXX='-Bstatic'
11603 else
11604 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11605 fi
11606 ;;
11607 chorus*)
11608 case $cc_basename in
11609 cxch68*)
11610 # Green Hills C++ Compiler
11611 # _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"
11612 ;;
11613 esac
11614 ;;
11615 darwin*)
11616 # PIC is the default on this platform
11617 # Common symbols not allowed in MH_DYLIB files
11618 case $cc_basename in
11619 xlc*)
11620 lt_prog_compiler_pic_CXX='-qnocommon'
11621 lt_prog_compiler_wl_CXX='-Wl,'
11622 ;;
11623 esac
11624 ;;
11625 dgux*)
11626 case $cc_basename in
11627 ec++*)
11628 lt_prog_compiler_pic_CXX='-KPIC'
11629 ;;
11630 ghcx*)
11631 # Green Hills C++ Compiler
11632 lt_prog_compiler_pic_CXX='-pic'
11633 ;;
11634 *)
11635 ;;
11636 esac
11637 ;;
11638 freebsd* | kfreebsd*-gnu | dragonfly*)
11639 # FreeBSD uses GNU C++
11640 ;;
11641 hpux9* | hpux10* | hpux11*)
11642 case $cc_basename in
11643 CC*)
11644 lt_prog_compiler_wl_CXX='-Wl,'
11645 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11646 if test "$host_cpu" != ia64; then
11647 lt_prog_compiler_pic_CXX='+Z'
11648 fi
11649 ;;
11650 aCC*)
11651 lt_prog_compiler_wl_CXX='-Wl,'
11652 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11653 case $host_cpu in
11654 hppa*64*|ia64*)
11655 # +Z the default
11656 ;;
11657 *)
11658 lt_prog_compiler_pic_CXX='+Z'
11659 ;;
11660 esac
11661 ;;
11662 *)
11663 ;;
11664 esac
11665 ;;
11666 interix*)
11667 # This is c89, which is MS Visual C++ (no shared libs)
11668 # Anyone wants to do a port?
11669 ;;
11670 irix5* | irix6* | nonstopux*)
11671 case $cc_basename in
11672 CC*)
11673 lt_prog_compiler_wl_CXX='-Wl,'
11674 lt_prog_compiler_static_CXX='-non_shared'
11675 # CC pic flag -KPIC is the default.
11676 ;;
11677 *)
11678 ;;
11679 esac
11680 ;;
11681 linux*)
11682 case $cc_basename in
11683 KCC*)
11684 # KAI C++ Compiler
11685 lt_prog_compiler_wl_CXX='--backend -Wl,'
11686 lt_prog_compiler_pic_CXX='-fPIC'
11687 ;;
11688 icpc* | ecpc*)
11689 # Intel C++
11690 lt_prog_compiler_wl_CXX='-Wl,'
11691 lt_prog_compiler_pic_CXX='-KPIC'
11692 lt_prog_compiler_static_CXX='-static'
11693 ;;
11694 pgCC*)
11695 # Portland Group C++ compiler.
11696 lt_prog_compiler_wl_CXX='-Wl,'
11697 lt_prog_compiler_pic_CXX='-fpic'
11698 lt_prog_compiler_static_CXX='-Bstatic'
11699 ;;
11700 cxx*)
11701 # Compaq C++
11702 # Make sure the PIC flag is empty. It appears that all Alpha
11703 # Linux and Compaq Tru64 Unix objects are PIC.
11704 lt_prog_compiler_pic_CXX=
11705 lt_prog_compiler_static_CXX='-non_shared'
11706 ;;
11707 *)
11708 ;;
11709 esac
11710 ;;
11711 lynxos*)
11712 ;;
11713 m88k*)
11714 ;;
11715 mvs*)
11716 case $cc_basename in
11717 cxx*)
11718 lt_prog_compiler_pic_CXX='-W c,exportall'
11719 ;;
11720 *)
11721 ;;
11722 esac
11723 ;;
11724 netbsd*)
11725 ;;
11726 osf3* | osf4* | osf5*)
11727 case $cc_basename in
11728 KCC*)
11729 lt_prog_compiler_wl_CXX='--backend -Wl,'
11730 ;;
11731 RCC*)
11732 # Rational C++ 2.4.1
11733 lt_prog_compiler_pic_CXX='-pic'
11734 ;;
11735 cxx*)
11736 # Digital/Compaq C++
11737 lt_prog_compiler_wl_CXX='-Wl,'
11738 # Make sure the PIC flag is empty. It appears that all Alpha
11739 # Linux and Compaq Tru64 Unix objects are PIC.
11740 lt_prog_compiler_pic_CXX=
11741 lt_prog_compiler_static_CXX='-non_shared'
11742 ;;
11743 *)
11744 ;;
11745 esac
11746 ;;
11747 psos*)
11748 ;;
11749 solaris*)
11750 case $cc_basename in
11751 CC*)
11752 # Sun C++ 4.2, 5.x and Centerline C++
11753 lt_prog_compiler_pic_CXX='-KPIC'
11754 lt_prog_compiler_static_CXX='-Bstatic'
11755 lt_prog_compiler_wl_CXX='-Qoption ld '
11756 ;;
11757 gcx*)
11758 # Green Hills C++ Compiler
11759 lt_prog_compiler_pic_CXX='-PIC'
11760 ;;
11761 *)
11762 ;;
11763 esac
11764 ;;
11765 sunos4*)
11766 case $cc_basename in
11767 CC*)
11768 # Sun C++ 4.x
11769 lt_prog_compiler_pic_CXX='-pic'
11770 lt_prog_compiler_static_CXX='-Bstatic'
11771 ;;
11772 lcc*)
11773 # Lucid
11774 lt_prog_compiler_pic_CXX='-pic'
11775 ;;
11776 *)
11777 ;;
11778 esac
11779 ;;
11780 tandem*)
11781 case $cc_basename in
11782 NCC*)
11783 # NonStop-UX NCC 3.20
11784 lt_prog_compiler_pic_CXX='-KPIC'
11785 ;;
11786 *)
11787 ;;
11788 esac
11789 ;;
11790 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11791 case $cc_basename in
11792 CC*)
11793 lt_prog_compiler_wl_CXX='-Wl,'
11794 lt_prog_compiler_pic_CXX='-KPIC'
11795 lt_prog_compiler_static_CXX='-Bstatic'
11796 ;;
11797 esac
11798 ;;
11799 vxworks*)
11800 ;;
11801 *)
11802 lt_prog_compiler_can_build_shared_CXX=no
11803 ;;
11804 esac
11805 fi
11806
11807echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11808echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11809
11810#
11811# Check to make sure the PIC flag actually works.
11812#
11813if test -n "$lt_prog_compiler_pic_CXX"; then
11814
11815echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11816echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11817if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11818 echo $ECHO_N "(cached) $ECHO_C" >&6
11819else
11820 lt_prog_compiler_pic_works_CXX=no
11821 ac_outfile=conftest.$ac_objext
11822 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11823 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11824 # Insert the option either (1) after the last *FLAGS variable, or
11825 # (2) before a word containing "conftest.", or (3) at the end.
11826 # Note that $ac_compile itself does not contain backslashes and begins
11827 # with a dollar sign (not a hyphen), so the echo should work correctly.
11828 # The option is referenced via a variable to avoid confusing sed.
11829 lt_compile=`echo "$ac_compile" | $SED \
11830 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11831 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11832 -e 's:$: $lt_compiler_flag:'`
86933a6e 11833 (eval echo "\"\$as_me:11833: $lt_compile\"" >&5)
bf9f3bac 11834 (eval "$lt_compile" 2>conftest.err)
11835 ac_status=$?
11836 cat conftest.err >&5
86933a6e 11837 echo "$as_me:11837: \$? = $ac_status" >&5
bf9f3bac 11838 if (exit $ac_status) && test -s "$ac_outfile"; then
11839 # The compiler can only warn and ignore the option if not recognized
11840 # So say no if there are warnings other than the usual output.
11841 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11842 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11843 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11844 lt_prog_compiler_pic_works_CXX=yes
11845 fi
11846 fi
11847 $rm conftest*
11848
11849fi
11850echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11851echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11852
11853if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11854 case $lt_prog_compiler_pic_CXX in
11855 "" | " "*) ;;
11856 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11857 esac
11858else
11859 lt_prog_compiler_pic_CXX=
11860 lt_prog_compiler_can_build_shared_CXX=no
11861fi
11862
11863fi
11864case $host_os in
11865 # For platforms which do not support PIC, -DPIC is meaningless:
11866 *djgpp*)
11867 lt_prog_compiler_pic_CXX=
11868 ;;
11869 *)
11870 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11871 ;;
11872esac
11873
11874#
11875# Check to make sure the static flag actually works.
11876#
11877wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
11878echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11879echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
11880if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
11881 echo $ECHO_N "(cached) $ECHO_C" >&6
11882else
11883 lt_prog_compiler_static_works_CXX=no
11884 save_LDFLAGS="$LDFLAGS"
11885 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11886 printf "$lt_simple_link_test_code" > conftest.$ac_ext
11887 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11888 # The linker can only warn and ignore the option if not recognized
11889 # So say no if there are warnings
11890 if test -s conftest.err; then
11891 # Append any errors to the config.log.
11892 cat conftest.err 1>&5
11893 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11894 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11895 if diff conftest.exp conftest.er2 >/dev/null; then
11896 lt_prog_compiler_static_works_CXX=yes
11897 fi
11898 else
11899 lt_prog_compiler_static_works_CXX=yes
11900 fi
11901 fi
11902 $rm conftest*
11903 LDFLAGS="$save_LDFLAGS"
11904
11905fi
11906echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
11907echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
11908
11909if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
11910 :
11911else
11912 lt_prog_compiler_static_CXX=
11913fi
11914
11915
11916echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11917echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11918if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11919 echo $ECHO_N "(cached) $ECHO_C" >&6
11920else
11921 lt_cv_prog_compiler_c_o_CXX=no
11922 $rm -r conftest 2>/dev/null
11923 mkdir conftest
11924 cd conftest
11925 mkdir out
11926 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11927
11928 lt_compiler_flag="-o out/conftest2.$ac_objext"
11929 # Insert the option either (1) after the last *FLAGS variable, or
11930 # (2) before a word containing "conftest.", or (3) at the end.
11931 # Note that $ac_compile itself does not contain backslashes and begins
11932 # with a dollar sign (not a hyphen), so the echo should work correctly.
11933 lt_compile=`echo "$ac_compile" | $SED \
11934 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11935 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11936 -e 's:$: $lt_compiler_flag:'`
86933a6e 11937 (eval echo "\"\$as_me:11937: $lt_compile\"" >&5)
bf9f3bac 11938 (eval "$lt_compile" 2>out/conftest.err)
11939 ac_status=$?
11940 cat out/conftest.err >&5
86933a6e 11941 echo "$as_me:11941: \$? = $ac_status" >&5
bf9f3bac 11942 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11943 then
11944 # The compiler can only warn and ignore the option if not recognized
11945 # So say no if there are warnings
11946 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11947 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11948 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11949 lt_cv_prog_compiler_c_o_CXX=yes
11950 fi
11951 fi
11952 chmod u+w . 2>&5
11953 $rm conftest*
11954 # SGI C++ compiler will create directory out/ii_files/ for
11955 # template instantiation
11956 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11957 $rm out/* && rmdir out
11958 cd ..
11959 rmdir conftest
11960 $rm conftest*
11961
11962fi
11963echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11964echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11965
11966
11967hard_links="nottested"
11968if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11969 # do not overwrite the value of need_locks provided by the user
11970 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11971echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11972 hard_links=yes
11973 $rm conftest*
11974 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11975 touch conftest.a
11976 ln conftest.a conftest.b 2>&5 || hard_links=no
11977 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11978 echo "$as_me:$LINENO: result: $hard_links" >&5
11979echo "${ECHO_T}$hard_links" >&6
11980 if test "$hard_links" = no; then
11981 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11982echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11983 need_locks=warn
11984 fi
11985else
11986 need_locks=no
11987fi
11988
11989echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11990echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11991
11992 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11993 case $host_os in
11994 aix4* | aix5*)
11995 # If we're using GNU nm, then we don't want the "-C" option.
11996 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11997 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11998 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'
11999 else
12000 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'
12001 fi
12002 ;;
12003 pw32*)
12004 export_symbols_cmds_CXX="$ltdll_cmds"
12005 ;;
12006 cygwin* | mingw*)
12007 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'
12008 ;;
12009 *)
12010 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12011 ;;
12012 esac
12013
12014echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12015echo "${ECHO_T}$ld_shlibs_CXX" >&6
12016test "$ld_shlibs_CXX" = no && can_build_shared=no
12017
12018#
12019# Do we need to explicitly link libc?
12020#
12021case "x$archive_cmds_need_lc_CXX" in
12022x|xyes)
12023 # Assume -lc should be added
12024 archive_cmds_need_lc_CXX=yes
12025
12026 if test "$enable_shared" = yes && test "$GCC" = yes; then
12027 case $archive_cmds_CXX in
12028 *'~'*)
12029 # FIXME: we may have to deal with multi-command sequences.
12030 ;;
12031 '$CC '*)
12032 # Test whether the compiler implicitly links with -lc since on some
12033 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12034 # to ld, don't add -lc before -lgcc.
12035 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12036echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12037 $rm conftest*
12038 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12039
12040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12041 (eval $ac_compile) 2>&5
12042 ac_status=$?
12043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12044 (exit $ac_status); } 2>conftest.err; then
12045 soname=conftest
12046 lib=conftest
12047 libobjs=conftest.$ac_objext
12048 deplibs=
12049 wl=$lt_prog_compiler_wl_CXX
12050 pic_flag=$lt_prog_compiler_pic_CXX
12051 compiler_flags=-v
12052 linker_flags=-v
12053 verstring=
12054 output_objdir=.
12055 libname=conftest
12056 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12057 allow_undefined_flag_CXX=
12058 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12059 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12060 ac_status=$?
12061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12062 (exit $ac_status); }
12063 then
12064 archive_cmds_need_lc_CXX=no
12065 else
12066 archive_cmds_need_lc_CXX=yes
12067 fi
12068 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12069 else
12070 cat conftest.err 1>&5
12071 fi
12072 $rm conftest*
12073 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12074echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
12075 ;;
12076 esac
12077 fi
12078 ;;
12079esac
12080
12081echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12082echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
12083library_names_spec=
12084libname_spec='lib$name'
12085soname_spec=
12086shrext_cmds=".so"
12087postinstall_cmds=
12088postuninstall_cmds=
12089finish_cmds=
12090finish_eval=
12091shlibpath_var=
12092shlibpath_overrides_runpath=unknown
12093version_type=none
12094dynamic_linker="$host_os ld.so"
12095sys_lib_dlsearch_path_spec="/lib /usr/lib"
12096if test "$GCC" = yes; then
12097 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12098 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12099 # if the path contains ";" then we assume it to be the separator
12100 # otherwise default to the standard path separator (i.e. ":") - it is
12101 # assumed that no part of a normal pathname contains ";" but that should
12102 # okay in the real world where ";" in dirpaths is itself problematic.
12103 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12104 else
12105 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12106 fi
12107else
12108 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12109fi
12110need_lib_prefix=unknown
12111hardcode_into_libs=no
12112
12113# when you set need_version to no, make sure it does not cause -set_version
12114# flags to be left without arguments
12115need_version=unknown
12116
12117case $host_os in
12118aix3*)
12119 version_type=linux
12120 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12121 shlibpath_var=LIBPATH
12122
12123 # AIX 3 has no versioning support, so we append a major version to the name.
12124 soname_spec='${libname}${release}${shared_ext}$major'
12125 ;;
12126
12127aix4* | aix5*)
12128 version_type=linux
12129 need_lib_prefix=no
12130 need_version=no
12131 hardcode_into_libs=yes
12132 if test "$host_cpu" = ia64; then
12133 # AIX 5 supports IA64
12134 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12135 shlibpath_var=LD_LIBRARY_PATH
12136 else
12137 # With GCC up to 2.95.x, collect2 would create an import file
12138 # for dependence libraries. The import file would start with
12139 # the line `#! .'. This would cause the generated library to
12140 # depend on `.', always an invalid library. This was fixed in
12141 # development snapshots of GCC prior to 3.0.
12142 case $host_os in
12143 aix4 | aix4.[01] | aix4.[01].*)
12144 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12145 echo ' yes '
12146 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12147 :
12148 else
12149 can_build_shared=no
12150 fi
12151 ;;
12152 esac
12153 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12154 # soname into executable. Probably we can add versioning support to
12155 # collect2, so additional links can be useful in future.
12156 if test "$aix_use_runtimelinking" = yes; then
12157 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12158 # instead of lib<name>.a to let people know that these are not
12159 # typical AIX shared libraries.
12160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12161 else
12162 # We preserve .a as extension for shared libraries through AIX4.2
12163 # and later when we are not doing run time linking.
12164 library_names_spec='${libname}${release}.a $libname.a'
12165 soname_spec='${libname}${release}${shared_ext}$major'
12166 fi
12167 shlibpath_var=LIBPATH
12168 fi
12169 ;;
12170
12171amigaos*)
12172 library_names_spec='$libname.ixlibrary $libname.a'
12173 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12174 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'
12175 ;;
12176
12177beos*)
12178 library_names_spec='${libname}${shared_ext}'
12179 dynamic_linker="$host_os ld.so"
12180 shlibpath_var=LIBRARY_PATH
12181 ;;
12182
12183bsdi[45]*)
12184 version_type=linux
12185 need_version=no
12186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12187 soname_spec='${libname}${release}${shared_ext}$major'
12188 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12189 shlibpath_var=LD_LIBRARY_PATH
12190 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12191 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12192 # the default ld.so.conf also contains /usr/contrib/lib and
12193 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12194 # libtool to hard-code these into programs
12195 ;;
12196
12197cygwin* | mingw* | pw32*)
12198 version_type=windows
12199 shrext_cmds=".dll"
12200 need_version=no
12201 need_lib_prefix=no
12202
12203 case $GCC,$host_os in
12204 yes,cygwin* | yes,mingw* | yes,pw32*)
12205 library_names_spec='$libname.dll.a'
12206 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12207 postinstall_cmds='base_file=`basename \${file}`~
12208 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12209 dldir=$destdir/`dirname \$dlpath`~
12210 test -d \$dldir || mkdir -p \$dldir~
12211 $install_prog $dir/$dlname \$dldir/$dlname~
12212 chmod a+x \$dldir/$dlname'
12213 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12214 dlpath=$dir/\$dldll~
12215 $rm \$dlpath'
12216 shlibpath_overrides_runpath=yes
12217
12218 case $host_os in
12219 cygwin*)
12220 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12221 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12222 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12223 ;;
12224 mingw*)
12225 # MinGW DLLs use traditional 'lib' prefix
12226 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12227 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12228 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12229 # It is most probably a Windows format PATH printed by
12230 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12231 # path with ; separators, and with drive letters. We can handle the
12232 # drive letters (cygwin fileutils understands them), so leave them,
12233 # especially as we might pass files found there to a mingw objdump,
12234 # which wouldn't understand a cygwinified path. Ahh.
12235 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12236 else
12237 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12238 fi
12239 ;;
12240 pw32*)
12241 # pw32 DLLs use 'pw' prefix rather than 'lib'
12242 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12243 ;;
12244 esac
12245 ;;
12246
12247 *)
12248 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12249 ;;
12250 esac
12251 dynamic_linker='Win32 ld.exe'
12252 # FIXME: first we should search . and the directory the executable is in
12253 shlibpath_var=PATH
12254 ;;
12255
12256darwin* | rhapsody*)
12257 dynamic_linker="$host_os dyld"
12258 version_type=darwin
12259 need_lib_prefix=no
12260 need_version=no
12261 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12262 soname_spec='${libname}${release}${major}$shared_ext'
12263 shlibpath_overrides_runpath=yes
12264 shlibpath_var=DYLD_LIBRARY_PATH
12265 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12266 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12267 if test "$GCC" = yes; then
12268 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"`
12269 else
12270 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12271 fi
12272 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12273 ;;
12274
12275dgux*)
12276 version_type=linux
12277 need_lib_prefix=no
12278 need_version=no
12279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12280 soname_spec='${libname}${release}${shared_ext}$major'
12281 shlibpath_var=LD_LIBRARY_PATH
12282 ;;
12283
12284freebsd1*)
12285 dynamic_linker=no
12286 ;;
12287
12288kfreebsd*-gnu)
12289 version_type=linux
12290 need_lib_prefix=no
12291 need_version=no
12292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12293 soname_spec='${libname}${release}${shared_ext}$major'
12294 shlibpath_var=LD_LIBRARY_PATH
12295 shlibpath_overrides_runpath=no
12296 hardcode_into_libs=yes
12297 dynamic_linker='GNU ld.so'
12298 ;;
12299
12300freebsd* | dragonfly*)
12301 # DragonFly does not have aout. When/if they implement a new
12302 # versioning mechanism, adjust this.
12303 if test -x /usr/bin/objformat; then
12304 objformat=`/usr/bin/objformat`
12305 else
12306 case $host_os in
12307 freebsd[123]*) objformat=aout ;;
12308 *) objformat=elf ;;
12309 esac
12310 fi
12311 version_type=freebsd-$objformat
12312 case $version_type in
12313 freebsd-elf*)
12314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12315 need_version=no
12316 need_lib_prefix=no
12317 ;;
12318 freebsd-*)
12319 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12320 need_version=yes
12321 ;;
12322 esac
12323 shlibpath_var=LD_LIBRARY_PATH
12324 case $host_os in
12325 freebsd2*)
12326 shlibpath_overrides_runpath=yes
12327 ;;
12328 freebsd3.[01]* | freebsdelf3.[01]*)
12329 shlibpath_overrides_runpath=yes
12330 hardcode_into_libs=yes
12331 ;;
12332 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12333 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12334 shlibpath_overrides_runpath=no
12335 hardcode_into_libs=yes
12336 ;;
12337 freebsd*) # from 4.6 on
12338 shlibpath_overrides_runpath=yes
12339 hardcode_into_libs=yes
12340 ;;
12341 esac
12342 ;;
12343
12344gnu*)
12345 version_type=linux
12346 need_lib_prefix=no
12347 need_version=no
12348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12349 soname_spec='${libname}${release}${shared_ext}$major'
12350 shlibpath_var=LD_LIBRARY_PATH
12351 hardcode_into_libs=yes
12352 ;;
12353
12354hpux9* | hpux10* | hpux11*)
12355 # Give a soname corresponding to the major version so that dld.sl refuses to
12356 # link against other versions.
12357 version_type=sunos
12358 need_lib_prefix=no
12359 need_version=no
12360 case $host_cpu in
12361 ia64*)
12362 shrext_cmds='.so'
12363 hardcode_into_libs=yes
12364 dynamic_linker="$host_os dld.so"
12365 shlibpath_var=LD_LIBRARY_PATH
12366 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12368 soname_spec='${libname}${release}${shared_ext}$major'
12369 if test "X$HPUX_IA64_MODE" = X32; then
12370 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12371 else
12372 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12373 fi
12374 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12375 ;;
12376 hppa*64*)
12377 shrext_cmds='.sl'
12378 hardcode_into_libs=yes
12379 dynamic_linker="$host_os dld.sl"
12380 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12381 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12383 soname_spec='${libname}${release}${shared_ext}$major'
12384 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12385 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12386 ;;
12387 *)
12388 shrext_cmds='.sl'
12389 dynamic_linker="$host_os dld.sl"
12390 shlibpath_var=SHLIB_PATH
12391 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12393 soname_spec='${libname}${release}${shared_ext}$major'
12394 ;;
12395 esac
12396 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12397 postinstall_cmds='chmod 555 $lib'
12398 ;;
12399
12400interix3*)
12401 version_type=linux
12402 need_lib_prefix=no
12403 need_version=no
12404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12405 soname_spec='${libname}${release}${shared_ext}$major'
12406 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12407 shlibpath_var=LD_LIBRARY_PATH
12408 shlibpath_overrides_runpath=no
12409 hardcode_into_libs=yes
12410 ;;
12411
12412irix5* | irix6* | nonstopux*)
12413 case $host_os in
12414 nonstopux*) version_type=nonstopux ;;
12415 *)
12416 if test "$lt_cv_prog_gnu_ld" = yes; then
12417 version_type=linux
12418 else
12419 version_type=irix
12420 fi ;;
12421 esac
12422 need_lib_prefix=no
12423 need_version=no
12424 soname_spec='${libname}${release}${shared_ext}$major'
12425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12426 case $host_os in
12427 irix5* | nonstopux*)
12428 libsuff= shlibsuff=
12429 ;;
12430 *)
12431 case $LD in # libtool.m4 will add one of these switches to LD
12432 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12433 libsuff= shlibsuff= libmagic=32-bit;;
12434 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12435 libsuff=32 shlibsuff=N32 libmagic=N32;;
12436 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12437 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12438 *) libsuff= shlibsuff= libmagic=never-match;;
12439 esac
12440 ;;
12441 esac
12442 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12443 shlibpath_overrides_runpath=no
12444 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12445 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12446 hardcode_into_libs=yes
12447 ;;
12448
12449# No shared lib support for Linux oldld, aout, or coff.
12450linux*oldld* | linux*aout* | linux*coff*)
12451 dynamic_linker=no
12452 ;;
12453
12454# This must be Linux ELF.
12455linux*)
12456 version_type=linux
12457 need_lib_prefix=no
12458 need_version=no
12459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12460 soname_spec='${libname}${release}${shared_ext}$major'
12461 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12462 shlibpath_var=LD_LIBRARY_PATH
12463 shlibpath_overrides_runpath=no
12464 # This implies no fast_install, which is unacceptable.
12465 # Some rework will be needed to allow for fast_install
12466 # before this can be enabled.
12467 hardcode_into_libs=yes
12468
12469 # find out which ABI we are using
12470 libsuff=
12471 case "$host_cpu" in
12472 x86_64*|s390x*|powerpc64*)
86933a6e 12473 echo '#line 12473 "configure"' > conftest.$ac_ext
bf9f3bac 12474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12475 (eval $ac_compile) 2>&5
12476 ac_status=$?
12477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12478 (exit $ac_status); }; then
12479 case `/usr/bin/file conftest.$ac_objext` in
12480 *64-bit*)
12481 libsuff=64
12482 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
12483 ;;
12484 esac
12485 fi
12486 rm -rf conftest*
12487 ;;
12488 esac
12489
12490 # Append ld.so.conf contents to the search path
12491 if test -f /etc/ld.so.conf; then
12492 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' ' '`
12493 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
12494 fi
12495
12496 # We used to test for /lib/ld.so.1 and disable shared libraries on
12497 # powerpc, because MkLinux only supported shared libraries with the
12498 # GNU dynamic linker. Since this was broken with cross compilers,
12499 # most powerpc-linux boxes support dynamic linking these days and
12500 # people can always --disable-shared, the test was removed, and we
12501 # assume the GNU/Linux dynamic linker is in use.
12502 dynamic_linker='GNU/Linux ld.so'
12503 ;;
12504
12505knetbsd*-gnu)
12506 version_type=linux
12507 need_lib_prefix=no
12508 need_version=no
12509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12510 soname_spec='${libname}${release}${shared_ext}$major'
12511 shlibpath_var=LD_LIBRARY_PATH
12512 shlibpath_overrides_runpath=no
12513 hardcode_into_libs=yes
12514 dynamic_linker='GNU ld.so'
12515 ;;
12516
12517netbsd*)
12518 version_type=sunos
12519 need_lib_prefix=no
12520 need_version=no
12521 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12523 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12524 dynamic_linker='NetBSD (a.out) ld.so'
12525 else
12526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12527 soname_spec='${libname}${release}${shared_ext}$major'
12528 dynamic_linker='NetBSD ld.elf_so'
12529 fi
12530 shlibpath_var=LD_LIBRARY_PATH
12531 shlibpath_overrides_runpath=yes
12532 hardcode_into_libs=yes
12533 ;;
12534
12535newsos6)
12536 version_type=linux
12537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12538 shlibpath_var=LD_LIBRARY_PATH
12539 shlibpath_overrides_runpath=yes
12540 ;;
12541
12542nto-qnx*)
12543 version_type=linux
12544 need_lib_prefix=no
12545 need_version=no
12546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12547 soname_spec='${libname}${release}${shared_ext}$major'
12548 shlibpath_var=LD_LIBRARY_PATH
12549 shlibpath_overrides_runpath=yes
12550 ;;
12551
12552openbsd*)
12553 version_type=sunos
12554 sys_lib_dlsearch_path_spec="/usr/lib"
12555 need_lib_prefix=no
12556 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12557 case $host_os in
12558 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12559 *) need_version=no ;;
12560 esac
12561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12562 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12563 shlibpath_var=LD_LIBRARY_PATH
12564 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12565 case $host_os in
12566 openbsd2.[89] | openbsd2.[89].*)
12567 shlibpath_overrides_runpath=no
12568 ;;
12569 *)
12570 shlibpath_overrides_runpath=yes
12571 ;;
12572 esac
12573 else
12574 shlibpath_overrides_runpath=yes
12575 fi
12576 ;;
12577
12578os2*)
12579 libname_spec='$name'
12580 shrext_cmds=".dll"
12581 need_lib_prefix=no
12582 library_names_spec='$libname${shared_ext} $libname.a'
12583 dynamic_linker='OS/2 ld.exe'
12584 shlibpath_var=LIBPATH
12585 ;;
12586
12587osf3* | osf4* | osf5*)
12588 version_type=osf
12589 need_lib_prefix=no
12590 need_version=no
12591 soname_spec='${libname}${release}${shared_ext}$major'
12592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12593 shlibpath_var=LD_LIBRARY_PATH
12594 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12595 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12596 ;;
12597
12598solaris*)
12599 version_type=linux
12600 need_lib_prefix=no
12601 need_version=no
12602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12603 soname_spec='${libname}${release}${shared_ext}$major'
12604 shlibpath_var=LD_LIBRARY_PATH
12605 shlibpath_overrides_runpath=yes
12606 hardcode_into_libs=yes
12607 # ldd complains unless libraries are executable
12608 postinstall_cmds='chmod +x $lib'
12609 ;;
12610
12611sunos4*)
12612 version_type=sunos
12613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12614 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12615 shlibpath_var=LD_LIBRARY_PATH
12616 shlibpath_overrides_runpath=yes
12617 if test "$with_gnu_ld" = yes; then
12618 need_lib_prefix=no
12619 fi
12620 need_version=yes
12621 ;;
12622
12623sysv4 | sysv4.3*)
12624 version_type=linux
12625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12626 soname_spec='${libname}${release}${shared_ext}$major'
12627 shlibpath_var=LD_LIBRARY_PATH
12628 case $host_vendor in
12629 sni)
12630 shlibpath_overrides_runpath=no
12631 need_lib_prefix=no
12632 export_dynamic_flag_spec='${wl}-Blargedynsym'
12633 runpath_var=LD_RUN_PATH
12634 ;;
12635 siemens)
12636 need_lib_prefix=no
12637 ;;
12638 motorola)
12639 need_lib_prefix=no
12640 need_version=no
12641 shlibpath_overrides_runpath=no
12642 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12643 ;;
12644 esac
12645 ;;
12646
12647sysv4*MP*)
12648 if test -d /usr/nec ;then
12649 version_type=linux
12650 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12651 soname_spec='$libname${shared_ext}.$major'
12652 shlibpath_var=LD_LIBRARY_PATH
12653 fi
12654 ;;
12655
12656sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12657 version_type=freebsd-elf
12658 need_lib_prefix=no
12659 need_version=no
12660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12661 soname_spec='${libname}${release}${shared_ext}$major'
12662 shlibpath_var=LD_LIBRARY_PATH
12663 hardcode_into_libs=yes
12664 if test "$with_gnu_ld" = yes; then
12665 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12666 shlibpath_overrides_runpath=no
12667 else
12668 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12669 shlibpath_overrides_runpath=yes
12670 case $host_os in
12671 sco3.2v5*)
12672 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12673 ;;
12674 esac
12675 fi
12676 sys_lib_dlsearch_path_spec='/usr/lib'
12677 ;;
12678
12679uts4*)
12680 version_type=linux
12681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12682 soname_spec='${libname}${release}${shared_ext}$major'
12683 shlibpath_var=LD_LIBRARY_PATH
12684 ;;
12685
12686*)
12687 dynamic_linker=no
12688 ;;
12689esac
12690echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12691echo "${ECHO_T}$dynamic_linker" >&6
12692test "$dynamic_linker" = no && can_build_shared=no
12693
12694variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12695if test "$GCC" = yes; then
12696 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12697fi
12698
12699echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12700echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12701hardcode_action_CXX=
12702if test -n "$hardcode_libdir_flag_spec_CXX" || \
12703 test -n "$runpath_var_CXX" || \
12704 test "X$hardcode_automatic_CXX" = "Xyes" ; then
12705
12706 # We can hardcode non-existant directories.
12707 if test "$hardcode_direct_CXX" != no &&
12708 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12709 # have to relink, otherwise we might link with an installed library
12710 # when we should be linking with a yet-to-be-installed one
12711 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12712 test "$hardcode_minus_L_CXX" != no; then
12713 # Linking always hardcodes the temporary library directory.
12714 hardcode_action_CXX=relink
12715 else
12716 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12717 hardcode_action_CXX=immediate
12718 fi
12719else
12720 # We cannot hardcode anything, or else we can only hardcode existing
12721 # directories.
12722 hardcode_action_CXX=unsupported
12723fi
12724echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12725echo "${ECHO_T}$hardcode_action_CXX" >&6
12726
12727if test "$hardcode_action_CXX" = relink; then
12728 # Fast installation is not supported
12729 enable_fast_install=no
12730elif test "$shlibpath_overrides_runpath" = yes ||
12731 test "$enable_shared" = no; then
12732 # Fast installation is not necessary
12733 enable_fast_install=needless
12734fi
12735
12736
12737# The else clause should only fire when bootstrapping the
12738# libtool distribution, otherwise you forgot to ship ltmain.sh
12739# with your package, and you will get complaints that there are
12740# no rules to generate ltmain.sh.
12741if test -f "$ltmain"; then
12742 # See if we are running on zsh, and set the options which allow our commands through
12743 # without removal of \ escapes.
12744 if test -n "${ZSH_VERSION+set}" ; then
12745 setopt NO_GLOB_SUBST
12746 fi
12747 # Now quote all the things that may contain metacharacters while being
12748 # careful not to overquote the AC_SUBSTed values. We take copies of the
12749 # variables and quote the copies for generation of the libtool script.
12750 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12751 SED SHELL STRIP \
12752 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12753 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12754 deplibs_check_method reload_flag reload_cmds need_locks \
12755 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12756 lt_cv_sys_global_symbol_to_c_name_address \
12757 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12758 old_postinstall_cmds old_postuninstall_cmds \
12759 compiler_CXX \
12760 CC_CXX \
12761 LD_CXX \
12762 lt_prog_compiler_wl_CXX \
12763 lt_prog_compiler_pic_CXX \
12764 lt_prog_compiler_static_CXX \
12765 lt_prog_compiler_no_builtin_flag_CXX \
12766 export_dynamic_flag_spec_CXX \
12767 thread_safe_flag_spec_CXX \
12768 whole_archive_flag_spec_CXX \
12769 enable_shared_with_static_runtimes_CXX \
12770 old_archive_cmds_CXX \
12771 old_archive_from_new_cmds_CXX \
12772 predep_objects_CXX \
12773 postdep_objects_CXX \
12774 predeps_CXX \
12775 postdeps_CXX \
12776 compiler_lib_search_path_CXX \
12777 archive_cmds_CXX \
12778 archive_expsym_cmds_CXX \
12779 postinstall_cmds_CXX \
12780 postuninstall_cmds_CXX \
12781 old_archive_from_expsyms_cmds_CXX \
12782 allow_undefined_flag_CXX \
12783 no_undefined_flag_CXX \
12784 export_symbols_cmds_CXX \
12785 hardcode_libdir_flag_spec_CXX \
12786 hardcode_libdir_flag_spec_ld_CXX \
12787 hardcode_libdir_separator_CXX \
12788 hardcode_automatic_CXX \
12789 module_cmds_CXX \
12790 module_expsym_cmds_CXX \
12791 lt_cv_prog_compiler_c_o_CXX \
12792 exclude_expsyms_CXX \
12793 include_expsyms_CXX; do
12794
12795 case $var in
12796 old_archive_cmds_CXX | \
12797 old_archive_from_new_cmds_CXX | \
12798 archive_cmds_CXX | \
12799 archive_expsym_cmds_CXX | \
12800 module_cmds_CXX | \
12801 module_expsym_cmds_CXX | \
12802 old_archive_from_expsyms_cmds_CXX | \
12803 export_symbols_cmds_CXX | \
12804 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12805 postinstall_cmds | postuninstall_cmds | \
12806 old_postinstall_cmds | old_postuninstall_cmds | \
12807 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12808 # Double-quote double-evaled strings.
12809 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12810 ;;
12811 *)
12812 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12813 ;;
12814 esac
12815 done
12816
12817 case $lt_echo in
12818 *'\$0 --fallback-echo"')
12819 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12820 ;;
12821 esac
12822
12823cfgfile="$ofile"
12824
12825 cat <<__EOF__ >> "$cfgfile"
12826# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12827
12828# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12829
12830# Shell to use when invoking shell scripts.
12831SHELL=$lt_SHELL
12832
12833# Whether or not to build shared libraries.
12834build_libtool_libs=$enable_shared
12835
12836# Whether or not to build static libraries.
12837build_old_libs=$enable_static
12838
12839# Whether or not to add -lc for building shared libraries.
12840build_libtool_need_lc=$archive_cmds_need_lc_CXX
12841
12842# Whether or not to disallow shared libs when runtime libs are static
12843allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12844
12845# Whether or not to optimize for fast installation.
12846fast_install=$enable_fast_install
12847
12848# The host system.
12849host_alias=$host_alias
12850host=$host
12851host_os=$host_os
12852
12853# The build system.
12854build_alias=$build_alias
12855build=$build
12856build_os=$build_os
12857
12858# An echo program that does not interpret backslashes.
12859echo=$lt_echo
12860
12861# The archiver.
12862AR=$lt_AR
12863AR_FLAGS=$lt_AR_FLAGS
12864
12865# A C compiler.
12866LTCC=$lt_LTCC
12867
12868# LTCC compiler flags.
12869LTCFLAGS=$lt_LTCFLAGS
12870
12871# A language-specific compiler.
12872CC=$lt_compiler_CXX
12873
12874# Is the compiler the GNU C compiler?
12875with_gcc=$GCC_CXX
12876
12877gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
12878gcc_ver=\`gcc -dumpversion\`
12879
12880# An ERE matcher.
12881EGREP=$lt_EGREP
12882
12883# The linker used to build libraries.
12884LD=$lt_LD_CXX
12885
12886# Whether we need hard or soft links.
12887LN_S=$lt_LN_S
12888
12889# A BSD-compatible nm program.
12890NM=$lt_NM
12891
12892# A symbol stripping program
12893STRIP=$lt_STRIP
12894
12895# Used to examine libraries when file_magic_cmd begins "file"
12896MAGIC_CMD=$MAGIC_CMD
12897
12898# Used on cygwin: DLL creation program.
12899DLLTOOL="$DLLTOOL"
12900
12901# Used on cygwin: object dumper.
12902OBJDUMP="$OBJDUMP"
12903
12904# Used on cygwin: assembler.
12905AS="$AS"
12906
12907# The name of the directory that contains temporary libtool files.
12908objdir=$objdir
12909
12910# How to create reloadable object files.
12911reload_flag=$lt_reload_flag
12912reload_cmds=$lt_reload_cmds
12913
12914# How to pass a linker flag through the compiler.
12915wl=$lt_lt_prog_compiler_wl_CXX
12916
12917# Object file suffix (normally "o").
12918objext="$ac_objext"
12919
12920# Old archive suffix (normally "a").
12921libext="$libext"
12922
12923# Shared library suffix (normally ".so").
12924shrext_cmds='$shrext_cmds'
12925
12926# Executable file suffix (normally "").
12927exeext="$exeext"
12928
12929# Additional compiler flags for building library objects.
12930pic_flag=$lt_lt_prog_compiler_pic_CXX
12931pic_mode=$pic_mode
12932
12933# What is the maximum length of a command?
12934max_cmd_len=$lt_cv_sys_max_cmd_len
12935
12936# Does compiler simultaneously support -c and -o options?
12937compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12938
12939# Must we lock files when doing compilation?
12940need_locks=$lt_need_locks
12941
12942# Do we need the lib prefix for modules?
12943need_lib_prefix=$need_lib_prefix
12944
12945# Do we need a version for libraries?
12946need_version=$need_version
12947
12948# Whether dlopen is supported.
12949dlopen_support=$enable_dlopen
12950
12951# Whether dlopen of programs is supported.
12952dlopen_self=$enable_dlopen_self
12953
12954# Whether dlopen of statically linked programs is supported.
12955dlopen_self_static=$enable_dlopen_self_static
12956
12957# Compiler flag to prevent dynamic linking.
12958link_static_flag=$lt_lt_prog_compiler_static_CXX
12959
12960# Compiler flag to turn off builtin functions.
12961no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12962
12963# Compiler flag to allow reflexive dlopens.
12964export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12965
12966# Compiler flag to generate shared objects directly from archives.
12967whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12968
12969# Compiler flag to generate thread-safe objects.
12970thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12971
12972# Library versioning type.
12973version_type=$version_type
12974
12975# Format of library name prefix.
12976libname_spec=$lt_libname_spec
12977
12978# List of archive names. First name is the real one, the rest are links.
12979# The last name is the one that the linker finds with -lNAME.
12980library_names_spec=$lt_library_names_spec
12981
12982# The coded name of the library, if different from the real name.
12983soname_spec=$lt_soname_spec
12984
12985# Commands used to build and install an old-style archive.
12986RANLIB=$lt_RANLIB
12987old_archive_cmds=$lt_old_archive_cmds_CXX
12988old_postinstall_cmds=$lt_old_postinstall_cmds
12989old_postuninstall_cmds=$lt_old_postuninstall_cmds
12990
12991# Create an old-style archive from a shared archive.
12992old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12993
12994# Create a temporary old-style archive to link instead of a shared archive.
12995old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12996
12997# Commands used to build and install a shared archive.
12998archive_cmds=$lt_archive_cmds_CXX
12999archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13000postinstall_cmds=$lt_postinstall_cmds
13001postuninstall_cmds=$lt_postuninstall_cmds
13002
13003# Commands used to build a loadable module (assumed same as above if empty)
13004module_cmds=$lt_module_cmds_CXX
13005module_expsym_cmds=$lt_module_expsym_cmds_CXX
13006
13007# Commands to strip libraries.
13008old_striplib=$lt_old_striplib
13009striplib=$lt_striplib
13010
13011# Dependencies to place before the objects being linked to create a
13012# shared library.
13013predep_objects=\`echo $lt_predep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
13014
13015# Dependencies to place after the objects being linked to create a
13016# shared library.
13017postdep_objects=\`echo $lt_postdep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
13018
13019# Dependencies to place before the objects being linked to create a
13020# shared library.
13021predeps=$lt_predeps_CXX
13022
13023# Dependencies to place after the objects being linked to create a
13024# shared library.
13025postdeps=$lt_postdeps_CXX
13026
13027# The library search path used internally by the compiler when linking
13028# a shared library.
13029compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
13030
13031# Method to check whether dependent libraries are shared objects.
13032deplibs_check_method=$lt_deplibs_check_method
13033
13034# Command to use when deplibs_check_method == file_magic.
13035file_magic_cmd=$lt_file_magic_cmd
13036
13037# Flag that allows shared libraries with undefined symbols to be built.
13038allow_undefined_flag=$lt_allow_undefined_flag_CXX
13039
13040# Flag that forces no undefined symbols.
13041no_undefined_flag=$lt_no_undefined_flag_CXX
13042
13043# Commands used to finish a libtool library installation in a directory.
13044finish_cmds=$lt_finish_cmds
13045
13046# Same as above, but a single script fragment to be evaled but not shown.
13047finish_eval=$lt_finish_eval
13048
13049# Take the output of nm and produce a listing of raw symbols and C names.
13050global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13051
13052# Transform the output of nm in a proper C declaration
13053global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13054
13055# Transform the output of nm in a C name address pair
13056global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13057
13058# This is the shared library runtime path variable.
13059runpath_var=$runpath_var
13060
13061# This is the shared library path variable.
13062shlibpath_var=$shlibpath_var
13063
13064# Is shlibpath searched before the hard-coded library search path?
13065shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13066
13067# How to hardcode a shared library path into an executable.
13068hardcode_action=$hardcode_action_CXX
13069
13070# Whether we should hardcode library paths into libraries.
13071hardcode_into_libs=$hardcode_into_libs
13072
13073# Flag to hardcode \$libdir into a binary during linking.
13074# This must work even if \$libdir does not exist.
13075hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13076
13077# If ld is used when linking, flag to hardcode \$libdir into
13078# a binary during linking. This must work even if \$libdir does
13079# not exist.
13080hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13081
13082# Whether we need a single -rpath flag with a separated argument.
13083hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13084
13085# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13086# resulting binary.
13087hardcode_direct=$hardcode_direct_CXX
13088
13089# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13090# resulting binary.
13091hardcode_minus_L=$hardcode_minus_L_CXX
13092
13093# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13094# the resulting binary.
13095hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13096
13097# Set to yes if building a shared library automatically hardcodes DIR into the library
13098# and all subsequent libraries and executables linked against it.
13099hardcode_automatic=$hardcode_automatic_CXX
13100
13101# Variables whose values should be saved in libtool wrapper scripts and
13102# restored at relink time.
13103variables_saved_for_relink="$variables_saved_for_relink"
13104
13105# Whether libtool must link a program against all its dependency libraries.
13106link_all_deplibs=$link_all_deplibs_CXX
13107
13108# Compile-time system search path for libraries
13109sys_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"\`
13110
13111# Run-time system search path for libraries
13112sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13113
13114# Fix the shell variable \$srcfile for the compiler.
13115fix_srcfile_path="$fix_srcfile_path_CXX"
13116
13117# Set to yes if exported symbols are required.
13118always_export_symbols=$always_export_symbols_CXX
13119
13120# The commands to list exported symbols.
13121export_symbols_cmds=$lt_export_symbols_cmds_CXX
13122
13123# The commands to extract the exported symbol list from a shared archive.
13124extract_expsyms_cmds=$lt_extract_expsyms_cmds
13125
13126# Symbols that should not be listed in the preloaded symbols.
13127exclude_expsyms=$lt_exclude_expsyms_CXX
13128
13129# Symbols that must always be exported.
13130include_expsyms=$lt_include_expsyms_CXX
13131
13132# ### END LIBTOOL TAG CONFIG: $tagname
13133
13134__EOF__
13135
13136
13137else
13138 # If there is no Makefile yet, we rely on a make rule to execute
13139 # `config.status --recheck' to rerun these tests and create the
13140 # libtool script then.
13141 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13142 if test -f "$ltmain_in"; then
13143 test -f Makefile && make "$ltmain"
13144 fi
13145fi
13146
13147
13148ac_ext=c
13149ac_cpp='$CPP $CPPFLAGS'
13150ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13151ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13152ac_compiler_gnu=$ac_cv_c_compiler_gnu
13153
13154CC=$lt_save_CC
13155LDCXX=$LD
13156LD=$lt_save_LD
13157GCC=$lt_save_GCC
13158with_gnu_ldcxx=$with_gnu_ld
13159with_gnu_ld=$lt_save_with_gnu_ld
13160lt_cv_path_LDCXX=$lt_cv_path_LD
13161lt_cv_path_LD=$lt_save_path_LD
13162lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13163lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13164
13165 else
13166 tagname=""
13167 fi
13168 ;;
13169
13170 F77)
13171 if test -n "$F77" && test "X$F77" != "Xno"; then
13172
13173ac_ext=f
13174ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13175ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13176ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13177
13178
13179archive_cmds_need_lc_F77=no
13180allow_undefined_flag_F77=
13181always_export_symbols_F77=no
13182archive_expsym_cmds_F77=
13183export_dynamic_flag_spec_F77=
13184hardcode_direct_F77=no
13185hardcode_libdir_flag_spec_F77=
13186hardcode_libdir_flag_spec_ld_F77=
13187hardcode_libdir_separator_F77=
13188hardcode_minus_L_F77=no
13189hardcode_automatic_F77=no
13190module_cmds_F77=
13191module_expsym_cmds_F77=
13192link_all_deplibs_F77=unknown
13193old_archive_cmds_F77=$old_archive_cmds
13194no_undefined_flag_F77=
13195whole_archive_flag_spec_F77=
13196enable_shared_with_static_runtimes_F77=no
13197
13198# Source file extension for f77 test sources.
13199ac_ext=f
13200
13201# Object file extension for compiled f77 test sources.
13202objext=o
13203objext_F77=$objext
13204
13205# Code to be used in simple compile tests
13206lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13207
13208# Code to be used in simple link tests
13209lt_simple_link_test_code=" program t\n end\n"
13210
13211# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13212
13213# If no C compiler was specified, use CC.
13214LTCC=${LTCC-"$CC"}
13215
13216# If no C compiler flags were specified, use CFLAGS.
13217LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13218
13219# Allow CC to be a program name with arguments.
13220compiler=$CC
13221
13222
13223# save warnings/boilerplate of simple test code
13224ac_outfile=conftest.$ac_objext
13225printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13226eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13227_lt_compiler_boilerplate=`cat conftest.err`
13228$rm conftest*
13229
13230ac_outfile=conftest.$ac_objext
13231printf "$lt_simple_link_test_code" >conftest.$ac_ext
13232eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13233_lt_linker_boilerplate=`cat conftest.err`
13234$rm conftest*
13235
13236
13237# Allow CC to be a program name with arguments.
13238lt_save_CC="$CC"
13239CC=${F77-"f77"}
13240compiler=$CC
13241compiler_F77=$CC
13242for cc_temp in $compiler""; do
13243 case $cc_temp in
13244 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13245 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13246 \-*) ;;
13247 *) break;;
13248 esac
13249done
13250cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13251
13252
13253echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13254echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13255echo "$as_me:$LINENO: result: $can_build_shared" >&5
13256echo "${ECHO_T}$can_build_shared" >&6
13257
13258echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13259echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13260test "$can_build_shared" = "no" && enable_shared=no
13261
13262# On AIX, shared libraries and static libraries use the same namespace, and
13263# are all built from PIC.
13264case $host_os in
13265aix3*)
13266 test "$enable_shared" = yes && enable_static=no
13267 if test -n "$RANLIB"; then
13268 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13269 postinstall_cmds='$RANLIB $lib'
13270 fi
13271 ;;
13272aix4* | aix5*)
13273 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13274 test "$enable_shared" = yes && enable_static=no
13275 fi
13276 ;;
13277esac
13278echo "$as_me:$LINENO: result: $enable_shared" >&5
13279echo "${ECHO_T}$enable_shared" >&6
13280
13281echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13282echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13283# Make sure either enable_shared or enable_static is yes.
13284test "$enable_shared" = yes || enable_static=yes
13285echo "$as_me:$LINENO: result: $enable_static" >&5
13286echo "${ECHO_T}$enable_static" >&6
13287
13288GCC_F77="$G77"
13289LD_F77="$LD"
13290
13291lt_prog_compiler_wl_F77=
13292lt_prog_compiler_pic_F77=
13293lt_prog_compiler_static_F77=
13294
13295echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13296echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13297
13298 if test "$GCC" = yes; then
13299 lt_prog_compiler_wl_F77='-Wl,'
13300 lt_prog_compiler_static_F77='-static'
13301
13302 case $host_os in
13303 aix*)
13304 # All AIX code is PIC.
13305 if test "$host_cpu" = ia64; then
13306 # AIX 5 now supports IA64 processor
13307 lt_prog_compiler_static_F77='-Bstatic'
13308 fi
13309 ;;
13310
13311 amigaos*)
13312 # FIXME: we need at least 68020 code to build shared libraries, but
13313 # adding the `-m68020' flag to GCC prevents building anything better,
13314 # like `-m68040'.
13315 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13316 ;;
13317
13318 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13319 # PIC is the default for these OSes.
13320 ;;
13321
13322 mingw* | pw32* | os2*)
13323 # This hack is so that the source file can tell whether it is being
13324 # built for inclusion in a dll (and should export symbols for example).
13325 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13326 ;;
13327
13328 darwin* | rhapsody*)
13329 # PIC is the default on this platform
13330 # Common symbols not allowed in MH_DYLIB files
13331 lt_prog_compiler_pic_F77='-fno-common'
13332 ;;
13333
13334 interix3*)
13335 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13336 # Instead, we relocate shared libraries at runtime.
13337 ;;
13338
13339 msdosdjgpp*)
13340 # Just because we use GCC doesn't mean we suddenly get shared libraries
13341 # on systems that don't support them.
13342 lt_prog_compiler_can_build_shared_F77=no
13343 enable_shared=no
13344 ;;
13345
13346 sysv4*MP*)
13347 if test -d /usr/nec; then
13348 lt_prog_compiler_pic_F77=-Kconform_pic
13349 fi
13350 ;;
13351
13352 hpux*)
13353 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13354 # not for PA HP-UX.
13355 case $host_cpu in
13356 hppa*64*|ia64*)
13357 # +Z the default
13358 ;;
13359 *)
13360 lt_prog_compiler_pic_F77='-fPIC'
13361 ;;
13362 esac
13363 ;;
13364
13365 *)
13366 lt_prog_compiler_pic_F77='-fPIC'
13367 ;;
13368 esac
13369 else
13370 # PORTME Check for flag to pass linker flags through the system compiler.
13371 case $host_os in
13372 aix*)
13373 lt_prog_compiler_wl_F77='-Wl,'
13374 if test "$host_cpu" = ia64; then
13375 # AIX 5 now supports IA64 processor
13376 lt_prog_compiler_static_F77='-Bstatic'
13377 else
13378 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13379 fi
13380 ;;
13381 darwin*)
13382 # PIC is the default on this platform
13383 # Common symbols not allowed in MH_DYLIB files
13384 case $cc_basename in
13385 xlc*)
13386 lt_prog_compiler_pic_F77='-qnocommon'
13387 lt_prog_compiler_wl_F77='-Wl,'
13388 ;;
13389 esac
13390 ;;
13391
13392 mingw* | pw32* | os2*)
13393 # This hack is so that the source file can tell whether it is being
13394 # built for inclusion in a dll (and should export symbols for example).
13395 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13396 ;;
13397
13398 hpux9* | hpux10* | hpux11*)
13399 lt_prog_compiler_wl_F77='-Wl,'
13400 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13401 # not for PA HP-UX.
13402 case $host_cpu in
13403 hppa*64*|ia64*)
13404 # +Z the default
13405 ;;
13406 *)
13407 lt_prog_compiler_pic_F77='+Z'
13408 ;;
13409 esac
13410 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13411 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13412 ;;
13413
13414 irix5* | irix6* | nonstopux*)
13415 lt_prog_compiler_wl_F77='-Wl,'
13416 # PIC (with -KPIC) is the default.
13417 lt_prog_compiler_static_F77='-non_shared'
13418 ;;
13419
13420 newsos6)
13421 lt_prog_compiler_pic_F77='-KPIC'
13422 lt_prog_compiler_static_F77='-Bstatic'
13423 ;;
13424
13425 linux*)
13426 case $cc_basename in
13427 icc* | ecc*)
13428 lt_prog_compiler_wl_F77='-Wl,'
13429 lt_prog_compiler_pic_F77='-KPIC'
13430 lt_prog_compiler_static_F77='-static'
13431 ;;
13432 pgcc* | pgf77* | pgf90* | pgf95*)
13433 # Portland Group compilers (*not* the Pentium gcc compiler,
13434 # which looks to be a dead project)
13435 lt_prog_compiler_wl_F77='-Wl,'
13436 lt_prog_compiler_pic_F77='-fpic'
13437 lt_prog_compiler_static_F77='-Bstatic'
13438 ;;
13439 ccc*)
13440 lt_prog_compiler_wl_F77='-Wl,'
13441 # All Alpha code is PIC.
13442 lt_prog_compiler_static_F77='-non_shared'
13443 ;;
13444 esac
13445 ;;
13446
13447 osf3* | osf4* | osf5*)
13448 lt_prog_compiler_wl_F77='-Wl,'
13449 # All OSF/1 code is PIC.
13450 lt_prog_compiler_static_F77='-non_shared'
13451 ;;
13452
13453 solaris*)
13454 lt_prog_compiler_pic_F77='-KPIC'
13455 lt_prog_compiler_static_F77='-Bstatic'
13456 case $cc_basename in
13457 f77* | f90* | f95*)
13458 lt_prog_compiler_wl_F77='-Qoption ld ';;
13459 *)
13460 lt_prog_compiler_wl_F77='-Wl,';;
13461 esac
13462 ;;
13463
13464 sunos4*)
13465 lt_prog_compiler_wl_F77='-Qoption ld '
13466 lt_prog_compiler_pic_F77='-PIC'
13467 lt_prog_compiler_static_F77='-Bstatic'
13468 ;;
13469
13470 sysv4 | sysv4.2uw2* | sysv4.3*)
13471 lt_prog_compiler_wl_F77='-Wl,'
13472 lt_prog_compiler_pic_F77='-KPIC'
13473 lt_prog_compiler_static_F77='-Bstatic'
13474 ;;
13475
13476 sysv4*MP*)
13477 if test -d /usr/nec ;then
13478 lt_prog_compiler_pic_F77='-Kconform_pic'
13479 lt_prog_compiler_static_F77='-Bstatic'
13480 fi
13481 ;;
13482
13483 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13484 lt_prog_compiler_wl_F77='-Wl,'
13485 lt_prog_compiler_pic_F77='-KPIC'
13486 lt_prog_compiler_static_F77='-Bstatic'
13487 ;;
13488
13489 unicos*)
13490 lt_prog_compiler_wl_F77='-Wl,'
13491 lt_prog_compiler_can_build_shared_F77=no
13492 ;;
13493
13494 uts4*)
13495 lt_prog_compiler_pic_F77='-pic'
13496 lt_prog_compiler_static_F77='-Bstatic'
13497 ;;
13498
13499 *)
13500 lt_prog_compiler_can_build_shared_F77=no
13501 ;;
13502 esac
13503 fi
13504
13505echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13506echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13507
13508#
13509# Check to make sure the PIC flag actually works.
13510#
13511if test -n "$lt_prog_compiler_pic_F77"; then
13512
13513echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13514echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13515if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13516 echo $ECHO_N "(cached) $ECHO_C" >&6
13517else
13518 lt_prog_compiler_pic_works_F77=no
13519 ac_outfile=conftest.$ac_objext
13520 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13521 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13522 # Insert the option either (1) after the last *FLAGS variable, or
13523 # (2) before a word containing "conftest.", or (3) at the end.
13524 # Note that $ac_compile itself does not contain backslashes and begins
13525 # with a dollar sign (not a hyphen), so the echo should work correctly.
13526 # The option is referenced via a variable to avoid confusing sed.
13527 lt_compile=`echo "$ac_compile" | $SED \
13528 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13529 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13530 -e 's:$: $lt_compiler_flag:'`
86933a6e 13531 (eval echo "\"\$as_me:13531: $lt_compile\"" >&5)
bf9f3bac 13532 (eval "$lt_compile" 2>conftest.err)
13533 ac_status=$?
13534 cat conftest.err >&5
86933a6e 13535 echo "$as_me:13535: \$? = $ac_status" >&5
bf9f3bac 13536 if (exit $ac_status) && test -s "$ac_outfile"; then
13537 # The compiler can only warn and ignore the option if not recognized
13538 # So say no if there are warnings other than the usual output.
13539 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13540 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13541 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13542 lt_prog_compiler_pic_works_F77=yes
13543 fi
13544 fi
13545 $rm conftest*
13546
13547fi
13548echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13549echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13550
13551if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13552 case $lt_prog_compiler_pic_F77 in
13553 "" | " "*) ;;
13554 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13555 esac
13556else
13557 lt_prog_compiler_pic_F77=
13558 lt_prog_compiler_can_build_shared_F77=no
13559fi
13560
13561fi
13562case $host_os in
13563 # For platforms which do not support PIC, -DPIC is meaningless:
13564 *djgpp*)
13565 lt_prog_compiler_pic_F77=
13566 ;;
13567 *)
13568 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13569 ;;
13570esac
13571
13572#
13573# Check to make sure the static flag actually works.
13574#
13575wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13576echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13577echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13578if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13579 echo $ECHO_N "(cached) $ECHO_C" >&6
13580else
13581 lt_prog_compiler_static_works_F77=no
13582 save_LDFLAGS="$LDFLAGS"
13583 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13584 printf "$lt_simple_link_test_code" > conftest.$ac_ext
13585 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13586 # The linker can only warn and ignore the option if not recognized
13587 # So say no if there are warnings
13588 if test -s conftest.err; then
13589 # Append any errors to the config.log.
13590 cat conftest.err 1>&5
13591 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13592 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13593 if diff conftest.exp conftest.er2 >/dev/null; then
13594 lt_prog_compiler_static_works_F77=yes
13595 fi
13596 else
13597 lt_prog_compiler_static_works_F77=yes
13598 fi
13599 fi
13600 $rm conftest*
13601 LDFLAGS="$save_LDFLAGS"
13602
13603fi
13604echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13605echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
13606
13607if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13608 :
13609else
13610 lt_prog_compiler_static_F77=
13611fi
13612
13613
13614echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13615echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13616if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13617 echo $ECHO_N "(cached) $ECHO_C" >&6
13618else
13619 lt_cv_prog_compiler_c_o_F77=no
13620 $rm -r conftest 2>/dev/null
13621 mkdir conftest
13622 cd conftest
13623 mkdir out
13624 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13625
13626 lt_compiler_flag="-o out/conftest2.$ac_objext"
13627 # Insert the option either (1) after the last *FLAGS variable, or
13628 # (2) before a word containing "conftest.", or (3) at the end.
13629 # Note that $ac_compile itself does not contain backslashes and begins
13630 # with a dollar sign (not a hyphen), so the echo should work correctly.
13631 lt_compile=`echo "$ac_compile" | $SED \
13632 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13633 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13634 -e 's:$: $lt_compiler_flag:'`
86933a6e 13635 (eval echo "\"\$as_me:13635: $lt_compile\"" >&5)
bf9f3bac 13636 (eval "$lt_compile" 2>out/conftest.err)
13637 ac_status=$?
13638 cat out/conftest.err >&5
86933a6e 13639 echo "$as_me:13639: \$? = $ac_status" >&5
bf9f3bac 13640 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13641 then
13642 # The compiler can only warn and ignore the option if not recognized
13643 # So say no if there are warnings
13644 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13645 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13646 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13647 lt_cv_prog_compiler_c_o_F77=yes
13648 fi
13649 fi
13650 chmod u+w . 2>&5
13651 $rm conftest*
13652 # SGI C++ compiler will create directory out/ii_files/ for
13653 # template instantiation
13654 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13655 $rm out/* && rmdir out
13656 cd ..
13657 rmdir conftest
13658 $rm conftest*
13659
13660fi
13661echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13662echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13663
13664
13665hard_links="nottested"
13666if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13667 # do not overwrite the value of need_locks provided by the user
13668 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13669echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13670 hard_links=yes
13671 $rm conftest*
13672 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13673 touch conftest.a
13674 ln conftest.a conftest.b 2>&5 || hard_links=no
13675 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13676 echo "$as_me:$LINENO: result: $hard_links" >&5
13677echo "${ECHO_T}$hard_links" >&6
13678 if test "$hard_links" = no; then
13679 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13680echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13681 need_locks=warn
13682 fi
13683else
13684 need_locks=no
13685fi
13686
13687echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13688echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13689
13690 runpath_var=
13691 allow_undefined_flag_F77=
13692 enable_shared_with_static_runtimes_F77=no
13693 archive_cmds_F77=
13694 archive_expsym_cmds_F77=
13695 old_archive_From_new_cmds_F77=
13696 old_archive_from_expsyms_cmds_F77=
13697 export_dynamic_flag_spec_F77=
13698 whole_archive_flag_spec_F77=
13699 thread_safe_flag_spec_F77=
13700 hardcode_libdir_flag_spec_F77=
13701 hardcode_libdir_flag_spec_ld_F77=
13702 hardcode_libdir_separator_F77=
13703 hardcode_direct_F77=no
13704 hardcode_minus_L_F77=no
13705 hardcode_shlibpath_var_F77=unsupported
13706 link_all_deplibs_F77=unknown
13707 hardcode_automatic_F77=no
13708 module_cmds_F77=
13709 module_expsym_cmds_F77=
13710 always_export_symbols_F77=no
13711 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13712 # include_expsyms should be a list of space-separated symbols to be *always*
13713 # included in the symbol list
13714 include_expsyms_F77=
13715 # exclude_expsyms can be an extended regexp of symbols to exclude
13716 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13717 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13718 # as well as any symbol that contains `d'.
13719 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13720 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13721 # platforms (ab)use it in PIC code, but their linkers get confused if
13722 # the symbol is explicitly referenced. Since portable code cannot
13723 # rely on this symbol name, it's probably fine to never include it in
13724 # preloaded symbol tables.
13725 extract_expsyms_cmds=
13726 # Just being paranoid about ensuring that cc_basename is set.
13727 for cc_temp in $compiler""; do
13728 case $cc_temp in
13729 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13730 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13731 \-*) ;;
13732 *) break;;
13733 esac
13734done
13735cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13736
13737 case $host_os in
13738 cygwin* | mingw* | pw32*)
13739 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13740 # When not using gcc, we currently assume that we are using
13741 # Microsoft Visual C++.
13742 if test "$GCC" != yes; then
13743 with_gnu_ld=no
13744 fi
13745 ;;
13746 interix*)
13747 # we just hope/assume this is gcc and not c89 (= MSVC++)
13748 with_gnu_ld=yes
13749 ;;
13750 openbsd*)
13751 with_gnu_ld=no
13752 ;;
13753 esac
13754
13755 ld_shlibs_F77=yes
13756 if test "$with_gnu_ld" = yes; then
13757 # If archive_cmds runs LD, not CC, wlarc should be empty
13758 wlarc='${wl}'
13759
13760 # Set some defaults for GNU ld with shared library support. These
13761 # are reset later if shared libraries are not supported. Putting them
13762 # here allows them to be overridden if necessary.
13763 runpath_var=LD_RUN_PATH
13764 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13765 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13766 # ancient GNU ld didn't support --whole-archive et. al.
13767 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13768 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13769 else
13770 whole_archive_flag_spec_F77=
13771 fi
13772 supports_anon_versioning=no
13773 case `$LD -v 2>/dev/null` in
13774 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13775 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13776 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13777 *\ 2.11.*) ;; # other 2.11 versions
13778 *) supports_anon_versioning=yes ;;
13779 esac
13780
13781 # See if GNU ld supports shared libraries.
13782 case $host_os in
13783 aix3* | aix4* | aix5*)
13784 # On AIX/PPC, the GNU linker is very broken
13785 if test "$host_cpu" != ia64; then
13786 ld_shlibs_F77=no
13787 cat <<EOF 1>&2
13788
13789*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13790*** to be unable to reliably create shared libraries on AIX.
13791*** Therefore, libtool is disabling shared libraries support. If you
13792*** really care for shared libraries, you may want to modify your PATH
13793*** so that a non-GNU linker is found, and then restart.
13794
13795EOF
13796 fi
13797 ;;
13798
13799 amigaos*)
13800 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)'
13801 hardcode_libdir_flag_spec_F77='-L$libdir'
13802 hardcode_minus_L_F77=yes
13803
13804 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13805 # that the semantics of dynamic libraries on AmigaOS, at least up
13806 # to version 4, is to share data among multiple programs linked
13807 # with the same dynamic library. Since this doesn't match the
13808 # behavior of shared libraries on other platforms, we can't use
13809 # them.
13810 ld_shlibs_F77=no
13811 ;;
13812
13813 beos*)
13814 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13815 allow_undefined_flag_F77=unsupported
13816 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13817 # support --undefined. This deserves some investigation. FIXME
13818 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13819 else
13820 ld_shlibs_F77=no
13821 fi
13822 ;;
13823
13824 cygwin* | mingw* | pw32*)
13825 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13826 # as there is no search path for DLLs.
13827 hardcode_libdir_flag_spec_F77='-L$libdir'
13828 allow_undefined_flag_F77=unsupported
13829 always_export_symbols_F77=no
13830 enable_shared_with_static_runtimes_F77=yes
13831 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13832
13833 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13834 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13835 # If the export-symbols file already is a .def file (1st line
13836 # is EXPORTS), use it as is; otherwise, prepend...
13837 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13838 cp $export_symbols $output_objdir/$soname.def;
13839 else
13840 echo EXPORTS > $output_objdir/$soname.def;
13841 cat $export_symbols >> $output_objdir/$soname.def;
13842 fi~
13843 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13844 else
13845 ld_shlibs_F77=no
13846 fi
13847 ;;
13848
13849 interix3*)
13850 hardcode_direct_F77=no
13851 hardcode_shlibpath_var_F77=no
13852 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13853 export_dynamic_flag_spec_F77='${wl}-E'
13854 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13855 # Instead, shared libraries are loaded at an image base (0x10000000 by
13856 # default) and relocated if they conflict, which is a slow very memory
13857 # consuming and fragmenting process. To avoid this, we pick a random,
13858 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13859 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13860 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'
13861 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'
13862 ;;
13863
13864 linux*)
13865 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13866 tmp_addflag=
13867 case $cc_basename,$host_cpu in
13868 pgcc*) # Portland Group C compiler
13869 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'
13870 tmp_addflag=' $pic_flag'
13871 ;;
13872 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
13873 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'
13874 tmp_addflag=' $pic_flag -Mnomain' ;;
13875 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13876 tmp_addflag=' -i_dynamic' ;;
13877 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13878 tmp_addflag=' -i_dynamic -nofor_main' ;;
13879 ifc* | ifort*) # Intel Fortran compiler
13880 tmp_addflag=' -nofor_main' ;;
13881 esac
13882 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13883
13884 if test $supports_anon_versioning = yes; then
13885 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13886 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13887 $echo "local: *; };" >> $output_objdir/$libname.ver~
13888 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13889 fi
13890 else
13891 ld_shlibs_F77=no
13892 fi
13893 ;;
13894
13895 netbsd*)
13896 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13897 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13898 wlarc=
13899 else
13900 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13901 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13902 fi
13903 ;;
13904
13905 solaris*)
13906 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13907 ld_shlibs_F77=no
13908 cat <<EOF 1>&2
13909
13910*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13911*** create shared libraries on Solaris systems. Therefore, libtool
13912*** is disabling shared libraries support. We urge you to upgrade GNU
13913*** binutils to release 2.9.1 or newer. Another option is to modify
13914*** your PATH or compiler configuration so that the native linker is
13915*** used, and then restart.
13916
13917EOF
13918 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13919 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13920 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13921 else
13922 ld_shlibs_F77=no
13923 fi
13924 ;;
13925
13926 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13927 case `$LD -v 2>&1` in
13928 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13929 ld_shlibs_F77=no
13930 cat <<_LT_EOF 1>&2
13931
13932*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13933*** reliably create shared libraries on SCO systems. Therefore, libtool
13934*** is disabling shared libraries support. We urge you to upgrade GNU
13935*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13936*** your PATH or compiler configuration so that the native linker is
13937*** used, and then restart.
13938
13939_LT_EOF
13940 ;;
13941 *)
13942 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13943 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
13944 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
13945 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
13946 else
13947 ld_shlibs_F77=no
13948 fi
13949 ;;
13950 esac
13951 ;;
13952
13953 sunos4*)
13954 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13955 wlarc=
13956 hardcode_direct_F77=yes
13957 hardcode_shlibpath_var_F77=no
13958 ;;
13959
13960 *)
13961 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13962 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13963 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13964 else
13965 ld_shlibs_F77=no
13966 fi
13967 ;;
13968 esac
13969
13970 if test "$ld_shlibs_F77" = no; then
13971 runpath_var=
13972 hardcode_libdir_flag_spec_F77=
13973 export_dynamic_flag_spec_F77=
13974 whole_archive_flag_spec_F77=
13975 fi
13976 else
13977 # PORTME fill in a description of your system's linker (not GNU ld)
13978 case $host_os in
13979 aix3*)
13980 allow_undefined_flag_F77=unsupported
13981 always_export_symbols_F77=yes
13982 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'
13983 # Note: this linker hardcodes the directories in LIBPATH if there
13984 # are no directories specified by -L.
13985 hardcode_minus_L_F77=yes
13986 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13987 # Neither direct hardcoding nor static linking is supported with a
13988 # broken collect2.
13989 hardcode_direct_F77=unsupported
13990 fi
13991 ;;
13992
13993 aix4* | aix5*)
13994 if test "$host_cpu" = ia64; then
13995 # On IA64, the linker does run time linking by default, so we don't
13996 # have to do anything special.
13997 aix_use_runtimelinking=no
13998 exp_sym_flag='-Bexport'
13999 no_entry_flag=""
14000 else
14001 # If we're using GNU nm, then we don't want the "-C" option.
14002 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14003 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14004 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'
14005 else
14006 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'
14007 fi
14008 aix_use_runtimelinking=no
14009
14010 # Test if we are trying to use run time linking or normal
14011 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14012 # need to do runtime linking.
14013 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14014 for ld_flag in $LDFLAGS; do
14015 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14016 aix_use_runtimelinking=yes
14017 break
14018 fi
14019 done
14020 ;;
14021 esac
14022
14023 exp_sym_flag='-bexport'
14024 no_entry_flag='-bnoentry'
14025 fi
14026
14027 # When large executables or shared objects are built, AIX ld can
14028 # have problems creating the table of contents. If linking a library
14029 # or program results in "error TOC overflow" add -mminimal-toc to
14030 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14031 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14032
14033 archive_cmds_F77=''
14034 hardcode_direct_F77=yes
14035 hardcode_libdir_separator_F77=':'
14036 link_all_deplibs_F77=yes
14037
14038 if test "$GCC" = yes; then
14039 case $host_os in aix4.[012]|aix4.[012].*)
14040 # We only want to do this on AIX 4.2 and lower, the check
14041 # below for broken collect2 doesn't work under 4.3+
14042 collect2name=`${CC} -print-prog-name=collect2`
14043 if test -f "$collect2name" && \
14044 strings "$collect2name" | grep resolve_lib_name >/dev/null
14045 then
14046 # We have reworked collect2
14047 hardcode_direct_F77=yes
14048 else
14049 # We have old collect2
14050 hardcode_direct_F77=unsupported
14051 # It fails to find uninstalled libraries when the uninstalled
14052 # path is not listed in the libpath. Setting hardcode_minus_L
14053 # to unsupported forces relinking
14054 hardcode_minus_L_F77=yes
14055 hardcode_libdir_flag_spec_F77='-L$libdir'
14056 hardcode_libdir_separator_F77=
14057 fi
14058 ;;
14059 esac
14060 shared_flag='-shared'
14061 if test "$aix_use_runtimelinking" = yes; then
14062 shared_flag="$shared_flag "'${wl}-G'
14063 fi
14064 else
14065 # not using gcc
14066 if test "$host_cpu" = ia64; then
14067 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14068 # chokes on -Wl,-G. The following line is correct:
14069 shared_flag='-G'
14070 else
14071 if test "$aix_use_runtimelinking" = yes; then
14072 shared_flag='${wl}-G'
14073 else
14074 shared_flag='${wl}-bM:SRE'
14075 fi
14076 fi
14077 fi
14078
14079 # It seems that -bexpall does not export symbols beginning with
14080 # underscore (_), so it is better to generate a list of symbols to export.
14081 always_export_symbols_F77=yes
14082 if test "$aix_use_runtimelinking" = yes; then
14083 # Warning - without using the other runtime loading flags (-brtl),
14084 # -berok will link without error, but may produce a broken library.
14085 allow_undefined_flag_F77='-berok'
14086 # Determine the default libpath from the value encoded in an empty executable.
14087 cat >conftest.$ac_ext <<_ACEOF
14088 program main
14089
14090 end
14091_ACEOF
14092rm -f conftest.$ac_objext conftest$ac_exeext
14093if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14094 (eval $ac_link) 2>conftest.er1
14095 ac_status=$?
14096 grep -v '^ *+' conftest.er1 >conftest.err
14097 rm -f conftest.er1
14098 cat conftest.err >&5
14099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14100 (exit $ac_status); } &&
14101 { ac_try='test -z "$ac_f77_werror_flag"
14102 || test ! -s conftest.err'
14103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14104 (eval $ac_try) 2>&5
14105 ac_status=$?
14106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14107 (exit $ac_status); }; } &&
14108 { ac_try='test -s conftest$ac_exeext'
14109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14110 (eval $ac_try) 2>&5
14111 ac_status=$?
14112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14113 (exit $ac_status); }; }; then
14114
14115aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14116}'`
14117# Check for a 64-bit object if we didn't find anything.
14118if 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; }
14119}'`; fi
14120else
14121 echo "$as_me: failed program was:" >&5
14122sed 's/^/| /' conftest.$ac_ext >&5
14123
14124fi
14125rm -f conftest.err conftest.$ac_objext \
14126 conftest$ac_exeext conftest.$ac_ext
14127if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14128
14129 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14130 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"
14131 else
14132 if test "$host_cpu" = ia64; then
14133 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14134 allow_undefined_flag_F77="-z nodefs"
14135 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"
14136 else
14137 # Determine the default libpath from the value encoded in an empty executable.
14138 cat >conftest.$ac_ext <<_ACEOF
14139 program main
14140
14141 end
14142_ACEOF
14143rm -f conftest.$ac_objext conftest$ac_exeext
14144if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14145 (eval $ac_link) 2>conftest.er1
14146 ac_status=$?
14147 grep -v '^ *+' conftest.er1 >conftest.err
14148 rm -f conftest.er1
14149 cat conftest.err >&5
14150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14151 (exit $ac_status); } &&
14152 { ac_try='test -z "$ac_f77_werror_flag"
14153 || test ! -s conftest.err'
14154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14155 (eval $ac_try) 2>&5
14156 ac_status=$?
14157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14158 (exit $ac_status); }; } &&
14159 { ac_try='test -s conftest$ac_exeext'
14160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14161 (eval $ac_try) 2>&5
14162 ac_status=$?
14163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14164 (exit $ac_status); }; }; then
14165
14166aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14167}'`
14168# Check for a 64-bit object if we didn't find anything.
14169if 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; }
14170}'`; fi
14171else
14172 echo "$as_me: failed program was:" >&5
14173sed 's/^/| /' conftest.$ac_ext >&5
14174
14175fi
14176rm -f conftest.err conftest.$ac_objext \
14177 conftest$ac_exeext conftest.$ac_ext
14178if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14179
14180 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14181 # Warning - without using the other run time loading flags,
14182 # -berok will link without error, but may produce a broken library.
14183 no_undefined_flag_F77=' ${wl}-bernotok'
14184 allow_undefined_flag_F77=' ${wl}-berok'
14185 # Exported symbols can be pulled into shared objects from archives
14186 whole_archive_flag_spec_F77='$convenience'
14187 archive_cmds_need_lc_F77=yes
14188 # This is similar to how AIX traditionally builds its shared libraries.
14189 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'
14190 fi
14191 fi
14192 ;;
14193
14194 amigaos*)
14195 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)'
14196 hardcode_libdir_flag_spec_F77='-L$libdir'
14197 hardcode_minus_L_F77=yes
14198 # see comment about different semantics on the GNU ld section
14199 ld_shlibs_F77=no
14200 ;;
14201
14202 bsdi[45]*)
14203 export_dynamic_flag_spec_F77=-rdynamic
14204 ;;
14205
14206 cygwin* | mingw* | pw32*)
14207 # When not using gcc, we currently assume that we are using
14208 # Microsoft Visual C++.
14209 # hardcode_libdir_flag_spec is actually meaningless, as there is
14210 # no search path for DLLs.
14211 hardcode_libdir_flag_spec_F77=' '
14212 allow_undefined_flag_F77=unsupported
14213 # Tell ltmain to make .lib files, not .a files.
14214 libext=lib
14215 # Tell ltmain to make .dll files, not .so files.
14216 shrext_cmds=".dll"
14217 # FIXME: Setting linknames here is a bad hack.
14218 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14219 # The linker will automatically build a .lib file if we build a DLL.
14220 old_archive_From_new_cmds_F77='true'
14221 # FIXME: Should let the user specify the lib program.
14222 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14223 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14224 enable_shared_with_static_runtimes_F77=yes
14225 ;;
14226
14227 darwin* | rhapsody*)
14228 case $host_os in
14229 rhapsody* | darwin1.[012])
14230 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14231 ;;
14232 *) # Darwin 1.3 on
14233 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14234 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14235 else
14236 case ${MACOSX_DEPLOYMENT_TARGET} in
14237 10.[012])
14238 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14239 ;;
14240 10.*)
14241 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14242 ;;
14243 esac
14244 fi
14245 ;;
14246 esac
14247 archive_cmds_need_lc_F77=no
14248 hardcode_direct_F77=no
14249 hardcode_automatic_F77=yes
14250 hardcode_shlibpath_var_F77=unsupported
14251 whole_archive_flag_spec_F77=''
14252 link_all_deplibs_F77=yes
14253 if test "$GCC" = yes ; then
14254 output_verbose_link_cmd='echo'
14255 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14256 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14257 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14258 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}'
14259 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}'
14260 else
14261 case $cc_basename in
14262 xlc*)
14263 output_verbose_link_cmd='echo'
14264 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14265 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14266 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14267 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}'
14268 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}'
14269 ;;
14270 *)
14271 ld_shlibs_F77=no
14272 ;;
14273 esac
14274 fi
14275 ;;
14276
14277 dgux*)
14278 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14279 hardcode_libdir_flag_spec_F77='-L$libdir'
14280 hardcode_shlibpath_var_F77=no
14281 ;;
14282
14283 freebsd1*)
14284 ld_shlibs_F77=no
14285 ;;
14286
14287 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14288 # support. Future versions do this automatically, but an explicit c++rt0.o
14289 # does not break anything, and helps significantly (at the cost of a little
14290 # extra space).
14291 freebsd2.2*)
14292 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14293 hardcode_libdir_flag_spec_F77='-R$libdir'
14294 hardcode_direct_F77=yes
14295 hardcode_shlibpath_var_F77=no
14296 ;;
14297
14298 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14299 freebsd2*)
14300 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14301 hardcode_direct_F77=yes
14302 hardcode_minus_L_F77=yes
14303 hardcode_shlibpath_var_F77=no
14304 ;;
14305
14306 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14307 freebsd* | kfreebsd*-gnu | dragonfly*)
14308 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14309 hardcode_libdir_flag_spec_F77='-R$libdir'
14310 hardcode_direct_F77=yes
14311 hardcode_shlibpath_var_F77=no
14312 ;;
14313
14314 hpux9*)
14315 if test "$GCC" = yes; then
14316 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'
14317 else
14318 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'
14319 fi
14320 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14321 hardcode_libdir_separator_F77=:
14322 hardcode_direct_F77=yes
14323
14324 # hardcode_minus_L: Not really in the search PATH,
14325 # but as the default location of the library.
14326 hardcode_minus_L_F77=yes
14327 export_dynamic_flag_spec_F77='${wl}-E'
14328 ;;
14329
14330 hpux10*)
14331 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14332 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14333 else
14334 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14335 fi
14336 if test "$with_gnu_ld" = no; then
14337 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14338 hardcode_libdir_separator_F77=:
14339
14340 hardcode_direct_F77=yes
14341 export_dynamic_flag_spec_F77='${wl}-E'
14342
14343 # hardcode_minus_L: Not really in the search PATH,
14344 # but as the default location of the library.
14345 hardcode_minus_L_F77=yes
14346 fi
14347 ;;
14348
14349 hpux11*)
14350 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14351 case $host_cpu in
14352 hppa*64*)
14353 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14354 ;;
14355 ia64*)
14356 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14357 ;;
14358 *)
14359 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14360 ;;
14361 esac
14362 else
14363 case $host_cpu in
14364 hppa*64*)
14365 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14366 ;;
14367 ia64*)
14368 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14369 ;;
14370 *)
14371 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14372 ;;
14373 esac
14374 fi
14375 if test "$with_gnu_ld" = no; then
14376 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14377 hardcode_libdir_separator_F77=:
14378
14379 case $host_cpu in
14380 hppa*64*|ia64*)
14381 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14382 hardcode_direct_F77=no
14383 hardcode_shlibpath_var_F77=no
14384 ;;
14385 *)
14386 hardcode_direct_F77=yes
14387 export_dynamic_flag_spec_F77='${wl}-E'
14388
14389 # hardcode_minus_L: Not really in the search PATH,
14390 # but as the default location of the library.
14391 hardcode_minus_L_F77=yes
14392 ;;
14393 esac
14394 fi
14395 ;;
14396
14397 irix5* | irix6* | nonstopux*)
14398 if test "$GCC" = yes; then
14399 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'
14400 else
14401 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'
14402 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14403 fi
14404 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14405 hardcode_libdir_separator_F77=:
14406 link_all_deplibs_F77=yes
14407 ;;
14408
14409 netbsd*)
14410 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14411 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14412 else
14413 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14414 fi
14415 hardcode_libdir_flag_spec_F77='-R$libdir'
14416 hardcode_direct_F77=yes
14417 hardcode_shlibpath_var_F77=no
14418 ;;
14419
14420 newsos6)
14421 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14422 hardcode_direct_F77=yes
14423 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14424 hardcode_libdir_separator_F77=:
14425 hardcode_shlibpath_var_F77=no
14426 ;;
14427
14428 openbsd*)
14429 hardcode_direct_F77=yes
14430 hardcode_shlibpath_var_F77=no
14431 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14432 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14433 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14434 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14435 export_dynamic_flag_spec_F77='${wl}-E'
14436 else
14437 case $host_os in
14438 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14439 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14440 hardcode_libdir_flag_spec_F77='-R$libdir'
14441 ;;
14442 *)
14443 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14444 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14445 ;;
14446 esac
14447 fi
14448 ;;
14449
14450 os2*)
14451 hardcode_libdir_flag_spec_F77='-L$libdir'
14452 hardcode_minus_L_F77=yes
14453 allow_undefined_flag_F77=unsupported
14454 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'
14455 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14456 ;;
14457
14458 osf3*)
14459 if test "$GCC" = yes; then
14460 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14461 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'
14462 else
14463 allow_undefined_flag_F77=' -expect_unresolved \*'
14464 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'
14465 fi
14466 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14467 hardcode_libdir_separator_F77=:
14468 ;;
14469
14470 osf4* | osf5*) # as osf3* with the addition of -msym flag
14471 if test "$GCC" = yes; then
14472 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14473 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'
14474 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14475 else
14476 allow_undefined_flag_F77=' -expect_unresolved \*'
14477 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'
14478 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~
14479 $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'
14480
14481 # Both c and cxx compiler support -rpath directly
14482 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14483 fi
14484 hardcode_libdir_separator_F77=:
14485 ;;
14486
14487 solaris*)
14488 no_undefined_flag_F77=' -z text'
14489 if test "$GCC" = yes; then
14490 wlarc='${wl}'
14491 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14492 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14493 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14494 else
14495 wlarc=''
14496 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14497 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14498 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14499 fi
14500 hardcode_libdir_flag_spec_F77='-R$libdir'
14501 hardcode_shlibpath_var_F77=no
14502 case $host_os in
14503 solaris2.[0-5] | solaris2.[0-5].*) ;;
14504 *)
14505 # The compiler driver will combine linker options so we
14506 # cannot just pass the convience library names through
14507 # without $wl, iff we do not link with $LD.
14508 # Luckily, gcc supports the same syntax we need for Sun Studio.
14509 # Supported since Solaris 2.6 (maybe 2.5.1?)
14510 case $wlarc in
14511 '')
14512 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14513 *)
14514 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' ;;
14515 esac ;;
14516 esac
14517 link_all_deplibs_F77=yes
14518 ;;
14519
14520 sunos4*)
14521 if test "x$host_vendor" = xsequent; then
14522 # Use $CC to link under sequent, because it throws in some extra .o
14523 # files that make .init and .fini sections work.
14524 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14525 else
14526 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14527 fi
14528 hardcode_libdir_flag_spec_F77='-L$libdir'
14529 hardcode_direct_F77=yes
14530 hardcode_minus_L_F77=yes
14531 hardcode_shlibpath_var_F77=no
14532 ;;
14533
14534 sysv4)
14535 case $host_vendor in
14536 sni)
14537 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14538 hardcode_direct_F77=yes # is this really true???
14539 ;;
14540 siemens)
14541 ## LD is ld it makes a PLAMLIB
14542 ## CC just makes a GrossModule.
14543 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14544 reload_cmds_F77='$CC -r -o $output$reload_objs'
14545 hardcode_direct_F77=no
14546 ;;
14547 motorola)
14548 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14549 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14550 ;;
14551 esac
14552 runpath_var='LD_RUN_PATH'
14553 hardcode_shlibpath_var_F77=no
14554 ;;
14555
14556 sysv4.3*)
14557 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14558 hardcode_shlibpath_var_F77=no
14559 export_dynamic_flag_spec_F77='-Bexport'
14560 ;;
14561
14562 sysv4*MP*)
14563 if test -d /usr/nec; then
14564 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14565 hardcode_shlibpath_var_F77=no
14566 runpath_var=LD_RUN_PATH
14567 hardcode_runpath_var=yes
14568 ld_shlibs_F77=yes
14569 fi
14570 ;;
14571
14572 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14573 no_undefined_flag_F77='${wl}-z,text'
14574 archive_cmds_need_lc_F77=no
14575 hardcode_shlibpath_var_F77=no
14576 runpath_var='LD_RUN_PATH'
14577
14578 if test "$GCC" = yes; then
14579 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14580 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14581 else
14582 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14583 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14584 fi
14585 ;;
14586
14587 sysv5* | sco3.2v5* | sco5v6*)
14588 # Note: We can NOT use -z defs as we might desire, because we do not
14589 # link with -lc, and that would cause any symbols used from libc to
14590 # always be unresolved, which means just about no library would
14591 # ever link correctly. If we're not using GNU ld we use -z text
14592 # though, which does catch some bad symbols but isn't as heavy-handed
14593 # as -z defs.
14594 no_undefined_flag_F77='${wl}-z,text'
14595 allow_undefined_flag_F77='${wl}-z,nodefs'
14596 archive_cmds_need_lc_F77=no
14597 hardcode_shlibpath_var_F77=no
14598 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14599 hardcode_libdir_separator_F77=':'
14600 link_all_deplibs_F77=yes
14601 export_dynamic_flag_spec_F77='${wl}-Bexport'
14602 runpath_var='LD_RUN_PATH'
14603
14604 if test "$GCC" = yes; then
14605 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14606 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14607 else
14608 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14609 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14610 fi
14611 ;;
14612
14613 uts4*)
14614 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14615 hardcode_libdir_flag_spec_F77='-L$libdir'
14616 hardcode_shlibpath_var_F77=no
14617 ;;
14618
14619 *)
14620 ld_shlibs_F77=no
14621 ;;
14622 esac
14623 fi
14624
14625echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14626echo "${ECHO_T}$ld_shlibs_F77" >&6
14627test "$ld_shlibs_F77" = no && can_build_shared=no
14628
14629#
14630# Do we need to explicitly link libc?
14631#
14632case "x$archive_cmds_need_lc_F77" in
14633x|xyes)
14634 # Assume -lc should be added
14635 archive_cmds_need_lc_F77=yes
14636
14637 if test "$enable_shared" = yes && test "$GCC" = yes; then
14638 case $archive_cmds_F77 in
14639 *'~'*)
14640 # FIXME: we may have to deal with multi-command sequences.
14641 ;;
14642 '$CC '*)
14643 # Test whether the compiler implicitly links with -lc since on some
14644 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14645 # to ld, don't add -lc before -lgcc.
14646 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14647echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14648 $rm conftest*
14649 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14650
14651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14652 (eval $ac_compile) 2>&5
14653 ac_status=$?
14654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14655 (exit $ac_status); } 2>conftest.err; then
14656 soname=conftest
14657 lib=conftest
14658 libobjs=conftest.$ac_objext
14659 deplibs=
14660 wl=$lt_prog_compiler_wl_F77
14661 pic_flag=$lt_prog_compiler_pic_F77
14662 compiler_flags=-v
14663 linker_flags=-v
14664 verstring=
14665 output_objdir=.
14666 libname=conftest
14667 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14668 allow_undefined_flag_F77=
14669 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14670 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14671 ac_status=$?
14672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14673 (exit $ac_status); }
14674 then
14675 archive_cmds_need_lc_F77=no
14676 else
14677 archive_cmds_need_lc_F77=yes
14678 fi
14679 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14680 else
14681 cat conftest.err 1>&5
14682 fi
14683 $rm conftest*
14684 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14685echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14686 ;;
14687 esac
14688 fi
14689 ;;
14690esac
14691
14692echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14693echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14694library_names_spec=
14695libname_spec='lib$name'
14696soname_spec=
14697shrext_cmds=".so"
14698postinstall_cmds=
14699postuninstall_cmds=
14700finish_cmds=
14701finish_eval=
14702shlibpath_var=
14703shlibpath_overrides_runpath=unknown
14704version_type=none
14705dynamic_linker="$host_os ld.so"
14706sys_lib_dlsearch_path_spec="/lib /usr/lib"
14707if test "$GCC" = yes; then
14708 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14709 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14710 # if the path contains ";" then we assume it to be the separator
14711 # otherwise default to the standard path separator (i.e. ":") - it is
14712 # assumed that no part of a normal pathname contains ";" but that should
14713 # okay in the real world where ";" in dirpaths is itself problematic.
14714 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14715 else
14716 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14717 fi
14718else
14719 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14720fi
14721need_lib_prefix=unknown
14722hardcode_into_libs=no
14723
14724# when you set need_version to no, make sure it does not cause -set_version
14725# flags to be left without arguments
14726need_version=unknown
14727
14728case $host_os in
14729aix3*)
14730 version_type=linux
14731 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14732 shlibpath_var=LIBPATH
14733
14734 # AIX 3 has no versioning support, so we append a major version to the name.
14735 soname_spec='${libname}${release}${shared_ext}$major'
14736 ;;
14737
14738aix4* | aix5*)
14739 version_type=linux
14740 need_lib_prefix=no
14741 need_version=no
14742 hardcode_into_libs=yes
14743 if test "$host_cpu" = ia64; then
14744 # AIX 5 supports IA64
14745 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14746 shlibpath_var=LD_LIBRARY_PATH
14747 else
14748 # With GCC up to 2.95.x, collect2 would create an import file
14749 # for dependence libraries. The import file would start with
14750 # the line `#! .'. This would cause the generated library to
14751 # depend on `.', always an invalid library. This was fixed in
14752 # development snapshots of GCC prior to 3.0.
14753 case $host_os in
14754 aix4 | aix4.[01] | aix4.[01].*)
14755 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14756 echo ' yes '
14757 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14758 :
14759 else
14760 can_build_shared=no
14761 fi
14762 ;;
14763 esac
14764 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14765 # soname into executable. Probably we can add versioning support to
14766 # collect2, so additional links can be useful in future.
14767 if test "$aix_use_runtimelinking" = yes; then
14768 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14769 # instead of lib<name>.a to let people know that these are not
14770 # typical AIX shared libraries.
14771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14772 else
14773 # We preserve .a as extension for shared libraries through AIX4.2
14774 # and later when we are not doing run time linking.
14775 library_names_spec='${libname}${release}.a $libname.a'
14776 soname_spec='${libname}${release}${shared_ext}$major'
14777 fi
14778 shlibpath_var=LIBPATH
14779 fi
14780 ;;
14781
14782amigaos*)
14783 library_names_spec='$libname.ixlibrary $libname.a'
14784 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14785 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'
14786 ;;
14787
14788beos*)
14789 library_names_spec='${libname}${shared_ext}'
14790 dynamic_linker="$host_os ld.so"
14791 shlibpath_var=LIBRARY_PATH
14792 ;;
14793
14794bsdi[45]*)
14795 version_type=linux
14796 need_version=no
14797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14798 soname_spec='${libname}${release}${shared_ext}$major'
14799 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14800 shlibpath_var=LD_LIBRARY_PATH
14801 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14802 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14803 # the default ld.so.conf also contains /usr/contrib/lib and
14804 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14805 # libtool to hard-code these into programs
14806 ;;
14807
14808cygwin* | mingw* | pw32*)
14809 version_type=windows
14810 shrext_cmds=".dll"
14811 need_version=no
14812 need_lib_prefix=no
14813
14814 case $GCC,$host_os in
14815 yes,cygwin* | yes,mingw* | yes,pw32*)
14816 library_names_spec='$libname.dll.a'
14817 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14818 postinstall_cmds='base_file=`basename \${file}`~
14819 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14820 dldir=$destdir/`dirname \$dlpath`~
14821 test -d \$dldir || mkdir -p \$dldir~
14822 $install_prog $dir/$dlname \$dldir/$dlname~
14823 chmod a+x \$dldir/$dlname'
14824 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14825 dlpath=$dir/\$dldll~
14826 $rm \$dlpath'
14827 shlibpath_overrides_runpath=yes
14828
14829 case $host_os in
14830 cygwin*)
14831 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14832 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14833 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14834 ;;
14835 mingw*)
14836 # MinGW DLLs use traditional 'lib' prefix
14837 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14838 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14839 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14840 # It is most probably a Windows format PATH printed by
14841 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14842 # path with ; separators, and with drive letters. We can handle the
14843 # drive letters (cygwin fileutils understands them), so leave them,
14844 # especially as we might pass files found there to a mingw objdump,
14845 # which wouldn't understand a cygwinified path. Ahh.
14846 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14847 else
14848 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14849 fi
14850 ;;
14851 pw32*)
14852 # pw32 DLLs use 'pw' prefix rather than 'lib'
14853 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14854 ;;
14855 esac
14856 ;;
14857
14858 *)
14859 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14860 ;;
14861 esac
14862 dynamic_linker='Win32 ld.exe'
14863 # FIXME: first we should search . and the directory the executable is in
14864 shlibpath_var=PATH
14865 ;;
14866
14867darwin* | rhapsody*)
14868 dynamic_linker="$host_os dyld"
14869 version_type=darwin
14870 need_lib_prefix=no
14871 need_version=no
14872 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14873 soname_spec='${libname}${release}${major}$shared_ext'
14874 shlibpath_overrides_runpath=yes
14875 shlibpath_var=DYLD_LIBRARY_PATH
14876 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14877 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14878 if test "$GCC" = yes; then
14879 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"`
14880 else
14881 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14882 fi
14883 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14884 ;;
14885
14886dgux*)
14887 version_type=linux
14888 need_lib_prefix=no
14889 need_version=no
14890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14891 soname_spec='${libname}${release}${shared_ext}$major'
14892 shlibpath_var=LD_LIBRARY_PATH
14893 ;;
14894
14895freebsd1*)
14896 dynamic_linker=no
14897 ;;
14898
14899kfreebsd*-gnu)
14900 version_type=linux
14901 need_lib_prefix=no
14902 need_version=no
14903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14904 soname_spec='${libname}${release}${shared_ext}$major'
14905 shlibpath_var=LD_LIBRARY_PATH
14906 shlibpath_overrides_runpath=no
14907 hardcode_into_libs=yes
14908 dynamic_linker='GNU ld.so'
14909 ;;
14910
14911freebsd* | dragonfly*)
14912 # DragonFly does not have aout. When/if they implement a new
14913 # versioning mechanism, adjust this.
14914 if test -x /usr/bin/objformat; then
14915 objformat=`/usr/bin/objformat`
14916 else
14917 case $host_os in
14918 freebsd[123]*) objformat=aout ;;
14919 *) objformat=elf ;;
14920 esac
14921 fi
14922 version_type=freebsd-$objformat
14923 case $version_type in
14924 freebsd-elf*)
14925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14926 need_version=no
14927 need_lib_prefix=no
14928 ;;
14929 freebsd-*)
14930 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14931 need_version=yes
14932 ;;
14933 esac
14934 shlibpath_var=LD_LIBRARY_PATH
14935 case $host_os in
14936 freebsd2*)
14937 shlibpath_overrides_runpath=yes
14938 ;;
14939 freebsd3.[01]* | freebsdelf3.[01]*)
14940 shlibpath_overrides_runpath=yes
14941 hardcode_into_libs=yes
14942 ;;
14943 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14944 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14945 shlibpath_overrides_runpath=no
14946 hardcode_into_libs=yes
14947 ;;
14948 freebsd*) # from 4.6 on
14949 shlibpath_overrides_runpath=yes
14950 hardcode_into_libs=yes
14951 ;;
14952 esac
14953 ;;
14954
14955gnu*)
14956 version_type=linux
14957 need_lib_prefix=no
14958 need_version=no
14959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14960 soname_spec='${libname}${release}${shared_ext}$major'
14961 shlibpath_var=LD_LIBRARY_PATH
14962 hardcode_into_libs=yes
14963 ;;
14964
14965hpux9* | hpux10* | hpux11*)
14966 # Give a soname corresponding to the major version so that dld.sl refuses to
14967 # link against other versions.
14968 version_type=sunos
14969 need_lib_prefix=no
14970 need_version=no
14971 case $host_cpu in
14972 ia64*)
14973 shrext_cmds='.so'
14974 hardcode_into_libs=yes
14975 dynamic_linker="$host_os dld.so"
14976 shlibpath_var=LD_LIBRARY_PATH
14977 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14979 soname_spec='${libname}${release}${shared_ext}$major'
14980 if test "X$HPUX_IA64_MODE" = X32; then
14981 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14982 else
14983 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14984 fi
14985 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14986 ;;
14987 hppa*64*)
14988 shrext_cmds='.sl'
14989 hardcode_into_libs=yes
14990 dynamic_linker="$host_os dld.sl"
14991 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14992 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14994 soname_spec='${libname}${release}${shared_ext}$major'
14995 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14996 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14997 ;;
14998 *)
14999 shrext_cmds='.sl'
15000 dynamic_linker="$host_os dld.sl"
15001 shlibpath_var=SHLIB_PATH
15002 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15004 soname_spec='${libname}${release}${shared_ext}$major'
15005 ;;
15006 esac
15007 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15008 postinstall_cmds='chmod 555 $lib'
15009 ;;
15010
15011interix3*)
15012 version_type=linux
15013 need_lib_prefix=no
15014 need_version=no
15015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15016 soname_spec='${libname}${release}${shared_ext}$major'
15017 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15018 shlibpath_var=LD_LIBRARY_PATH
15019 shlibpath_overrides_runpath=no
15020 hardcode_into_libs=yes
15021 ;;
15022
15023irix5* | irix6* | nonstopux*)
15024 case $host_os in
15025 nonstopux*) version_type=nonstopux ;;
15026 *)
15027 if test "$lt_cv_prog_gnu_ld" = yes; then
15028 version_type=linux
15029 else
15030 version_type=irix
15031 fi ;;
15032 esac
15033 need_lib_prefix=no
15034 need_version=no
15035 soname_spec='${libname}${release}${shared_ext}$major'
15036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15037 case $host_os in
15038 irix5* | nonstopux*)
15039 libsuff= shlibsuff=
15040 ;;
15041 *)
15042 case $LD in # libtool.m4 will add one of these switches to LD
15043 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15044 libsuff= shlibsuff= libmagic=32-bit;;
15045 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15046 libsuff=32 shlibsuff=N32 libmagic=N32;;
15047 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15048 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15049 *) libsuff= shlibsuff= libmagic=never-match;;
15050 esac
15051 ;;
15052 esac
15053 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15054 shlibpath_overrides_runpath=no
15055 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15056 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15057 hardcode_into_libs=yes
15058 ;;
15059
15060# No shared lib support for Linux oldld, aout, or coff.
15061linux*oldld* | linux*aout* | linux*coff*)
15062 dynamic_linker=no
15063 ;;
15064
15065# This must be Linux ELF.
15066linux*)
15067 version_type=linux
15068 need_lib_prefix=no
15069 need_version=no
15070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15071 soname_spec='${libname}${release}${shared_ext}$major'
15072 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15073 shlibpath_var=LD_LIBRARY_PATH
15074 shlibpath_overrides_runpath=no
15075 # This implies no fast_install, which is unacceptable.
15076 # Some rework will be needed to allow for fast_install
15077 # before this can be enabled.
15078 hardcode_into_libs=yes
15079
15080 # find out which ABI we are using
15081 libsuff=
15082 case "$host_cpu" in
15083 x86_64*|s390x*|powerpc64*)
86933a6e 15084 echo '#line 15084 "configure"' > conftest.$ac_ext
bf9f3bac 15085 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15086 (eval $ac_compile) 2>&5
15087 ac_status=$?
15088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15089 (exit $ac_status); }; then
15090 case `/usr/bin/file conftest.$ac_objext` in
15091 *64-bit*)
15092 libsuff=64
15093 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
15094 ;;
15095 esac
15096 fi
15097 rm -rf conftest*
15098 ;;
15099 esac
15100
15101 # Append ld.so.conf contents to the search path
15102 if test -f /etc/ld.so.conf; then
15103 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' ' '`
15104 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
15105 fi
15106
15107 # We used to test for /lib/ld.so.1 and disable shared libraries on
15108 # powerpc, because MkLinux only supported shared libraries with the
15109 # GNU dynamic linker. Since this was broken with cross compilers,
15110 # most powerpc-linux boxes support dynamic linking these days and
15111 # people can always --disable-shared, the test was removed, and we
15112 # assume the GNU/Linux dynamic linker is in use.
15113 dynamic_linker='GNU/Linux ld.so'
15114 ;;
15115
15116knetbsd*-gnu)
15117 version_type=linux
15118 need_lib_prefix=no
15119 need_version=no
15120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15121 soname_spec='${libname}${release}${shared_ext}$major'
15122 shlibpath_var=LD_LIBRARY_PATH
15123 shlibpath_overrides_runpath=no
15124 hardcode_into_libs=yes
15125 dynamic_linker='GNU ld.so'
15126 ;;
15127
15128netbsd*)
15129 version_type=sunos
15130 need_lib_prefix=no
15131 need_version=no
15132 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15134 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15135 dynamic_linker='NetBSD (a.out) ld.so'
15136 else
15137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15138 soname_spec='${libname}${release}${shared_ext}$major'
15139 dynamic_linker='NetBSD ld.elf_so'
15140 fi
15141 shlibpath_var=LD_LIBRARY_PATH
15142 shlibpath_overrides_runpath=yes
15143 hardcode_into_libs=yes
15144 ;;
15145
15146newsos6)
15147 version_type=linux
15148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15149 shlibpath_var=LD_LIBRARY_PATH
15150 shlibpath_overrides_runpath=yes
15151 ;;
15152
15153nto-qnx*)
15154 version_type=linux
15155 need_lib_prefix=no
15156 need_version=no
15157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15158 soname_spec='${libname}${release}${shared_ext}$major'
15159 shlibpath_var=LD_LIBRARY_PATH
15160 shlibpath_overrides_runpath=yes
15161 ;;
15162
15163openbsd*)
15164 version_type=sunos
15165 sys_lib_dlsearch_path_spec="/usr/lib"
15166 need_lib_prefix=no
15167 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15168 case $host_os in
15169 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15170 *) need_version=no ;;
15171 esac
15172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15173 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15174 shlibpath_var=LD_LIBRARY_PATH
15175 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15176 case $host_os in
15177 openbsd2.[89] | openbsd2.[89].*)
15178 shlibpath_overrides_runpath=no
15179 ;;
15180 *)
15181 shlibpath_overrides_runpath=yes
15182 ;;
15183 esac
15184 else
15185 shlibpath_overrides_runpath=yes
15186 fi
15187 ;;
15188
15189os2*)
15190 libname_spec='$name'
15191 shrext_cmds=".dll"
15192 need_lib_prefix=no
15193 library_names_spec='$libname${shared_ext} $libname.a'
15194 dynamic_linker='OS/2 ld.exe'
15195 shlibpath_var=LIBPATH
15196 ;;
15197
15198osf3* | osf4* | osf5*)
15199 version_type=osf
15200 need_lib_prefix=no
15201 need_version=no
15202 soname_spec='${libname}${release}${shared_ext}$major'
15203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15204 shlibpath_var=LD_LIBRARY_PATH
15205 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15206 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15207 ;;
15208
15209solaris*)
15210 version_type=linux
15211 need_lib_prefix=no
15212 need_version=no
15213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15214 soname_spec='${libname}${release}${shared_ext}$major'
15215 shlibpath_var=LD_LIBRARY_PATH
15216 shlibpath_overrides_runpath=yes
15217 hardcode_into_libs=yes
15218 # ldd complains unless libraries are executable
15219 postinstall_cmds='chmod +x $lib'
15220 ;;
15221
15222sunos4*)
15223 version_type=sunos
15224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15225 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15226 shlibpath_var=LD_LIBRARY_PATH
15227 shlibpath_overrides_runpath=yes
15228 if test "$with_gnu_ld" = yes; then
15229 need_lib_prefix=no
15230 fi
15231 need_version=yes
15232 ;;
15233
15234sysv4 | sysv4.3*)
15235 version_type=linux
15236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15237 soname_spec='${libname}${release}${shared_ext}$major'
15238 shlibpath_var=LD_LIBRARY_PATH
15239 case $host_vendor in
15240 sni)
15241 shlibpath_overrides_runpath=no
15242 need_lib_prefix=no
15243 export_dynamic_flag_spec='${wl}-Blargedynsym'
15244 runpath_var=LD_RUN_PATH
15245 ;;
15246 siemens)
15247 need_lib_prefix=no
15248 ;;
15249 motorola)
15250 need_lib_prefix=no
15251 need_version=no
15252 shlibpath_overrides_runpath=no
15253 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15254 ;;
15255 esac
15256 ;;
15257
15258sysv4*MP*)
15259 if test -d /usr/nec ;then
15260 version_type=linux
15261 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15262 soname_spec='$libname${shared_ext}.$major'
15263 shlibpath_var=LD_LIBRARY_PATH
15264 fi
15265 ;;
15266
15267sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15268 version_type=freebsd-elf
15269 need_lib_prefix=no
15270 need_version=no
15271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15272 soname_spec='${libname}${release}${shared_ext}$major'
15273 shlibpath_var=LD_LIBRARY_PATH
15274 hardcode_into_libs=yes
15275 if test "$with_gnu_ld" = yes; then
15276 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15277 shlibpath_overrides_runpath=no
15278 else
15279 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15280 shlibpath_overrides_runpath=yes
15281 case $host_os in
15282 sco3.2v5*)
15283 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15284 ;;
15285 esac
15286 fi
15287 sys_lib_dlsearch_path_spec='/usr/lib'
15288 ;;
15289
15290uts4*)
15291 version_type=linux
15292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15293 soname_spec='${libname}${release}${shared_ext}$major'
15294 shlibpath_var=LD_LIBRARY_PATH
15295 ;;
15296
15297*)
15298 dynamic_linker=no
15299 ;;
15300esac
15301echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15302echo "${ECHO_T}$dynamic_linker" >&6
15303test "$dynamic_linker" = no && can_build_shared=no
15304
15305variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15306if test "$GCC" = yes; then
15307 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15308fi
15309
15310echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15311echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15312hardcode_action_F77=
15313if test -n "$hardcode_libdir_flag_spec_F77" || \
15314 test -n "$runpath_var_F77" || \
15315 test "X$hardcode_automatic_F77" = "Xyes" ; then
15316
15317 # We can hardcode non-existant directories.
15318 if test "$hardcode_direct_F77" != no &&
15319 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15320 # have to relink, otherwise we might link with an installed library
15321 # when we should be linking with a yet-to-be-installed one
15322 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15323 test "$hardcode_minus_L_F77" != no; then
15324 # Linking always hardcodes the temporary library directory.
15325 hardcode_action_F77=relink
15326 else
15327 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15328 hardcode_action_F77=immediate
15329 fi
15330else
15331 # We cannot hardcode anything, or else we can only hardcode existing
15332 # directories.
15333 hardcode_action_F77=unsupported
15334fi
15335echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15336echo "${ECHO_T}$hardcode_action_F77" >&6
15337
15338if test "$hardcode_action_F77" = relink; then
15339 # Fast installation is not supported
15340 enable_fast_install=no
15341elif test "$shlibpath_overrides_runpath" = yes ||
15342 test "$enable_shared" = no; then
15343 # Fast installation is not necessary
15344 enable_fast_install=needless
15345fi
15346
15347
15348# The else clause should only fire when bootstrapping the
15349# libtool distribution, otherwise you forgot to ship ltmain.sh
15350# with your package, and you will get complaints that there are
15351# no rules to generate ltmain.sh.
15352if test -f "$ltmain"; then
15353 # See if we are running on zsh, and set the options which allow our commands through
15354 # without removal of \ escapes.
15355 if test -n "${ZSH_VERSION+set}" ; then
15356 setopt NO_GLOB_SUBST
15357 fi
15358 # Now quote all the things that may contain metacharacters while being
15359 # careful not to overquote the AC_SUBSTed values. We take copies of the
15360 # variables and quote the copies for generation of the libtool script.
15361 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15362 SED SHELL STRIP \
15363 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15364 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15365 deplibs_check_method reload_flag reload_cmds need_locks \
15366 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15367 lt_cv_sys_global_symbol_to_c_name_address \
15368 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15369 old_postinstall_cmds old_postuninstall_cmds \
15370 compiler_F77 \
15371 CC_F77 \
15372 LD_F77 \
15373 lt_prog_compiler_wl_F77 \
15374 lt_prog_compiler_pic_F77 \
15375 lt_prog_compiler_static_F77 \
15376 lt_prog_compiler_no_builtin_flag_F77 \
15377 export_dynamic_flag_spec_F77 \
15378 thread_safe_flag_spec_F77 \
15379 whole_archive_flag_spec_F77 \
15380 enable_shared_with_static_runtimes_F77 \
15381 old_archive_cmds_F77 \
15382 old_archive_from_new_cmds_F77 \
15383 predep_objects_F77 \
15384 postdep_objects_F77 \
15385 predeps_F77 \
15386 postdeps_F77 \
15387 compiler_lib_search_path_F77 \
15388 archive_cmds_F77 \
15389 archive_expsym_cmds_F77 \
15390 postinstall_cmds_F77 \
15391 postuninstall_cmds_F77 \
15392 old_archive_from_expsyms_cmds_F77 \
15393 allow_undefined_flag_F77 \
15394 no_undefined_flag_F77 \
15395 export_symbols_cmds_F77 \
15396 hardcode_libdir_flag_spec_F77 \
15397 hardcode_libdir_flag_spec_ld_F77 \
15398 hardcode_libdir_separator_F77 \
15399 hardcode_automatic_F77 \
15400 module_cmds_F77 \
15401 module_expsym_cmds_F77 \
15402 lt_cv_prog_compiler_c_o_F77 \
15403 exclude_expsyms_F77 \
15404 include_expsyms_F77; do
15405
15406 case $var in
15407 old_archive_cmds_F77 | \
15408 old_archive_from_new_cmds_F77 | \
15409 archive_cmds_F77 | \
15410 archive_expsym_cmds_F77 | \
15411 module_cmds_F77 | \
15412 module_expsym_cmds_F77 | \
15413 old_archive_from_expsyms_cmds_F77 | \
15414 export_symbols_cmds_F77 | \
15415 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15416 postinstall_cmds | postuninstall_cmds | \
15417 old_postinstall_cmds | old_postuninstall_cmds | \
15418 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15419 # Double-quote double-evaled strings.
15420 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15421 ;;
15422 *)
15423 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15424 ;;
15425 esac
15426 done
15427
15428 case $lt_echo in
15429 *'\$0 --fallback-echo"')
15430 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15431 ;;
15432 esac
15433
15434cfgfile="$ofile"
15435
15436 cat <<__EOF__ >> "$cfgfile"
15437# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15438
15439# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15440
15441# Shell to use when invoking shell scripts.
15442SHELL=$lt_SHELL
15443
15444# Whether or not to build shared libraries.
15445build_libtool_libs=$enable_shared
15446
15447# Whether or not to build static libraries.
15448build_old_libs=$enable_static
15449
15450# Whether or not to add -lc for building shared libraries.
15451build_libtool_need_lc=$archive_cmds_need_lc_F77
15452
15453# Whether or not to disallow shared libs when runtime libs are static
15454allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15455
15456# Whether or not to optimize for fast installation.
15457fast_install=$enable_fast_install
15458
15459# The host system.
15460host_alias=$host_alias
15461host=$host
15462host_os=$host_os
15463
15464# The build system.
15465build_alias=$build_alias
15466build=$build
15467build_os=$build_os
15468
15469# An echo program that does not interpret backslashes.
15470echo=$lt_echo
15471
15472# The archiver.
15473AR=$lt_AR
15474AR_FLAGS=$lt_AR_FLAGS
15475
15476# A C compiler.
15477LTCC=$lt_LTCC
15478
15479# LTCC compiler flags.
15480LTCFLAGS=$lt_LTCFLAGS
15481
15482# A language-specific compiler.
15483CC=$lt_compiler_F77
15484
15485# Is the compiler the GNU C compiler?
15486with_gcc=$GCC_F77
15487
15488gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
15489gcc_ver=\`gcc -dumpversion\`
15490
15491# An ERE matcher.
15492EGREP=$lt_EGREP
15493
15494# The linker used to build libraries.
15495LD=$lt_LD_F77
15496
15497# Whether we need hard or soft links.
15498LN_S=$lt_LN_S
15499
15500# A BSD-compatible nm program.
15501NM=$lt_NM
15502
15503# A symbol stripping program
15504STRIP=$lt_STRIP
15505
15506# Used to examine libraries when file_magic_cmd begins "file"
15507MAGIC_CMD=$MAGIC_CMD
15508
15509# Used on cygwin: DLL creation program.
15510DLLTOOL="$DLLTOOL"
15511
15512# Used on cygwin: object dumper.
15513OBJDUMP="$OBJDUMP"
15514
15515# Used on cygwin: assembler.
15516AS="$AS"
15517
15518# The name of the directory that contains temporary libtool files.
15519objdir=$objdir
15520
15521# How to create reloadable object files.
15522reload_flag=$lt_reload_flag
15523reload_cmds=$lt_reload_cmds
15524
15525# How to pass a linker flag through the compiler.
15526wl=$lt_lt_prog_compiler_wl_F77
15527
15528# Object file suffix (normally "o").
15529objext="$ac_objext"
15530
15531# Old archive suffix (normally "a").
15532libext="$libext"
15533
15534# Shared library suffix (normally ".so").
15535shrext_cmds='$shrext_cmds'
15536
15537# Executable file suffix (normally "").
15538exeext="$exeext"
15539
15540# Additional compiler flags for building library objects.
15541pic_flag=$lt_lt_prog_compiler_pic_F77
15542pic_mode=$pic_mode
15543
15544# What is the maximum length of a command?
15545max_cmd_len=$lt_cv_sys_max_cmd_len
15546
15547# Does compiler simultaneously support -c and -o options?
15548compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15549
15550# Must we lock files when doing compilation?
15551need_locks=$lt_need_locks
15552
15553# Do we need the lib prefix for modules?
15554need_lib_prefix=$need_lib_prefix
15555
15556# Do we need a version for libraries?
15557need_version=$need_version
15558
15559# Whether dlopen is supported.
15560dlopen_support=$enable_dlopen
15561
15562# Whether dlopen of programs is supported.
15563dlopen_self=$enable_dlopen_self
15564
15565# Whether dlopen of statically linked programs is supported.
15566dlopen_self_static=$enable_dlopen_self_static
15567
15568# Compiler flag to prevent dynamic linking.
15569link_static_flag=$lt_lt_prog_compiler_static_F77
15570
15571# Compiler flag to turn off builtin functions.
15572no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15573
15574# Compiler flag to allow reflexive dlopens.
15575export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15576
15577# Compiler flag to generate shared objects directly from archives.
15578whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15579
15580# Compiler flag to generate thread-safe objects.
15581thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15582
15583# Library versioning type.
15584version_type=$version_type
15585
15586# Format of library name prefix.
15587libname_spec=$lt_libname_spec
15588
15589# List of archive names. First name is the real one, the rest are links.
15590# The last name is the one that the linker finds with -lNAME.
15591library_names_spec=$lt_library_names_spec
15592
15593# The coded name of the library, if different from the real name.
15594soname_spec=$lt_soname_spec
15595
15596# Commands used to build and install an old-style archive.
15597RANLIB=$lt_RANLIB
15598old_archive_cmds=$lt_old_archive_cmds_F77
15599old_postinstall_cmds=$lt_old_postinstall_cmds
15600old_postuninstall_cmds=$lt_old_postuninstall_cmds
15601
15602# Create an old-style archive from a shared archive.
15603old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15604
15605# Create a temporary old-style archive to link instead of a shared archive.
15606old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15607
15608# Commands used to build and install a shared archive.
15609archive_cmds=$lt_archive_cmds_F77
15610archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15611postinstall_cmds=$lt_postinstall_cmds
15612postuninstall_cmds=$lt_postuninstall_cmds
15613
15614# Commands used to build a loadable module (assumed same as above if empty)
15615module_cmds=$lt_module_cmds_F77
15616module_expsym_cmds=$lt_module_expsym_cmds_F77
15617
15618# Commands to strip libraries.
15619old_striplib=$lt_old_striplib
15620striplib=$lt_striplib
15621
15622# Dependencies to place before the objects being linked to create a
15623# shared library.
15624predep_objects=\`echo $lt_predep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
15625
15626# Dependencies to place after the objects being linked to create a
15627# shared library.
15628postdep_objects=\`echo $lt_postdep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
15629
15630# Dependencies to place before the objects being linked to create a
15631# shared library.
15632predeps=$lt_predeps_F77
15633
15634# Dependencies to place after the objects being linked to create a
15635# shared library.
15636postdeps=$lt_postdeps_F77
15637
15638# The library search path used internally by the compiler when linking
15639# a shared library.
15640compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
15641
15642# Method to check whether dependent libraries are shared objects.
15643deplibs_check_method=$lt_deplibs_check_method
15644
15645# Command to use when deplibs_check_method == file_magic.
15646file_magic_cmd=$lt_file_magic_cmd
15647
15648# Flag that allows shared libraries with undefined symbols to be built.
15649allow_undefined_flag=$lt_allow_undefined_flag_F77
15650
15651# Flag that forces no undefined symbols.
15652no_undefined_flag=$lt_no_undefined_flag_F77
15653
15654# Commands used to finish a libtool library installation in a directory.
15655finish_cmds=$lt_finish_cmds
15656
15657# Same as above, but a single script fragment to be evaled but not shown.
15658finish_eval=$lt_finish_eval
15659
15660# Take the output of nm and produce a listing of raw symbols and C names.
15661global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15662
15663# Transform the output of nm in a proper C declaration
15664global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15665
15666# Transform the output of nm in a C name address pair
15667global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15668
15669# This is the shared library runtime path variable.
15670runpath_var=$runpath_var
15671
15672# This is the shared library path variable.
15673shlibpath_var=$shlibpath_var
15674
15675# Is shlibpath searched before the hard-coded library search path?
15676shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15677
15678# How to hardcode a shared library path into an executable.
15679hardcode_action=$hardcode_action_F77
15680
15681# Whether we should hardcode library paths into libraries.
15682hardcode_into_libs=$hardcode_into_libs
15683
15684# Flag to hardcode \$libdir into a binary during linking.
15685# This must work even if \$libdir does not exist.
15686hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15687
15688# If ld is used when linking, flag to hardcode \$libdir into
15689# a binary during linking. This must work even if \$libdir does
15690# not exist.
15691hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15692
15693# Whether we need a single -rpath flag with a separated argument.
15694hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15695
15696# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15697# resulting binary.
15698hardcode_direct=$hardcode_direct_F77
15699
15700# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15701# resulting binary.
15702hardcode_minus_L=$hardcode_minus_L_F77
15703
15704# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15705# the resulting binary.
15706hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15707
15708# Set to yes if building a shared library automatically hardcodes DIR into the library
15709# and all subsequent libraries and executables linked against it.
15710hardcode_automatic=$hardcode_automatic_F77
15711
15712# Variables whose values should be saved in libtool wrapper scripts and
15713# restored at relink time.
15714variables_saved_for_relink="$variables_saved_for_relink"
15715
15716# Whether libtool must link a program against all its dependency libraries.
15717link_all_deplibs=$link_all_deplibs_F77
15718
15719# Compile-time system search path for libraries
15720sys_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"\`
15721
15722# Run-time system search path for libraries
15723sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15724
15725# Fix the shell variable \$srcfile for the compiler.
15726fix_srcfile_path="$fix_srcfile_path_F77"
15727
15728# Set to yes if exported symbols are required.
15729always_export_symbols=$always_export_symbols_F77
15730
15731# The commands to list exported symbols.
15732export_symbols_cmds=$lt_export_symbols_cmds_F77
15733
15734# The commands to extract the exported symbol list from a shared archive.
15735extract_expsyms_cmds=$lt_extract_expsyms_cmds
15736
15737# Symbols that should not be listed in the preloaded symbols.
15738exclude_expsyms=$lt_exclude_expsyms_F77
15739
15740# Symbols that must always be exported.
15741include_expsyms=$lt_include_expsyms_F77
15742
15743# ### END LIBTOOL TAG CONFIG: $tagname
15744
15745__EOF__
15746
15747
15748else
15749 # If there is no Makefile yet, we rely on a make rule to execute
15750 # `config.status --recheck' to rerun these tests and create the
15751 # libtool script then.
15752 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15753 if test -f "$ltmain_in"; then
15754 test -f Makefile && make "$ltmain"
15755 fi
15756fi
15757
15758
15759ac_ext=c
15760ac_cpp='$CPP $CPPFLAGS'
15761ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15762ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15763ac_compiler_gnu=$ac_cv_c_compiler_gnu
15764
15765CC="$lt_save_CC"
15766
15767 else
15768 tagname=""
15769 fi
15770 ;;
15771
15772 GCJ)
15773 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15774
15775
15776
15777# Source file extension for Java test sources.
15778ac_ext=java
15779
15780# Object file extension for compiled Java test sources.
15781objext=o
15782objext_GCJ=$objext
15783
15784# Code to be used in simple compile tests
15785lt_simple_compile_test_code="class foo {}\n"
15786
15787# Code to be used in simple link tests
15788lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15789
15790# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15791
15792# If no C compiler was specified, use CC.
15793LTCC=${LTCC-"$CC"}
15794
15795# If no C compiler flags were specified, use CFLAGS.
15796LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15797
15798# Allow CC to be a program name with arguments.
15799compiler=$CC
15800
15801
15802# save warnings/boilerplate of simple test code
15803ac_outfile=conftest.$ac_objext
15804printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15805eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15806_lt_compiler_boilerplate=`cat conftest.err`
15807$rm conftest*
15808
15809ac_outfile=conftest.$ac_objext
15810printf "$lt_simple_link_test_code" >conftest.$ac_ext
15811eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15812_lt_linker_boilerplate=`cat conftest.err`
15813$rm conftest*
15814
15815
15816# Allow CC to be a program name with arguments.
15817lt_save_CC="$CC"
15818CC=${GCJ-"gcj"}
15819compiler=$CC
15820compiler_GCJ=$CC
15821for cc_temp in $compiler""; do
15822 case $cc_temp in
15823 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15824 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15825 \-*) ;;
15826 *) break;;
15827 esac
15828done
15829cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15830
15831
15832# GCJ did not exist at the time GCC didn't implicitly link libc in.
15833archive_cmds_need_lc_GCJ=no
15834
15835old_archive_cmds_GCJ=$old_archive_cmds
15836
15837
15838lt_prog_compiler_no_builtin_flag_GCJ=
15839
15840if test "$GCC" = yes; then
15841 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15842
15843
15844echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15845echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15846if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15847 echo $ECHO_N "(cached) $ECHO_C" >&6
15848else
15849 lt_cv_prog_compiler_rtti_exceptions=no
15850 ac_outfile=conftest.$ac_objext
15851 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15852 lt_compiler_flag="-fno-rtti -fno-exceptions"
15853 # Insert the option either (1) after the last *FLAGS variable, or
15854 # (2) before a word containing "conftest.", or (3) at the end.
15855 # Note that $ac_compile itself does not contain backslashes and begins
15856 # with a dollar sign (not a hyphen), so the echo should work correctly.
15857 # The option is referenced via a variable to avoid confusing sed.
15858 lt_compile=`echo "$ac_compile" | $SED \
15859 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15860 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15861 -e 's:$: $lt_compiler_flag:'`
86933a6e 15862 (eval echo "\"\$as_me:15862: $lt_compile\"" >&5)
bf9f3bac 15863 (eval "$lt_compile" 2>conftest.err)
15864 ac_status=$?
15865 cat conftest.err >&5
86933a6e 15866 echo "$as_me:15866: \$? = $ac_status" >&5
bf9f3bac 15867 if (exit $ac_status) && test -s "$ac_outfile"; then
15868 # The compiler can only warn and ignore the option if not recognized
15869 # So say no if there are warnings other than the usual output.
15870 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15871 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15872 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15873 lt_cv_prog_compiler_rtti_exceptions=yes
15874 fi
15875 fi
15876 $rm conftest*
15877
15878fi
15879echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15880echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15881
15882if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15883 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15884else
15885 :
15886fi
15887
15888fi
15889
15890lt_prog_compiler_wl_GCJ=
15891lt_prog_compiler_pic_GCJ=
15892lt_prog_compiler_static_GCJ=
15893
15894echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15895echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15896
15897 if test "$GCC" = yes; then
15898 lt_prog_compiler_wl_GCJ='-Wl,'
15899 lt_prog_compiler_static_GCJ='-static'
15900
15901 case $host_os in
15902 aix*)
15903 # All AIX code is PIC.
15904 if test "$host_cpu" = ia64; then
15905 # AIX 5 now supports IA64 processor
15906 lt_prog_compiler_static_GCJ='-Bstatic'
15907 fi
15908 ;;
15909
15910 amigaos*)
15911 # FIXME: we need at least 68020 code to build shared libraries, but
15912 # adding the `-m68020' flag to GCC prevents building anything better,
15913 # like `-m68040'.
15914 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15915 ;;
15916
15917 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15918 # PIC is the default for these OSes.
15919 ;;
15920
15921 mingw* | pw32* | os2*)
15922 # This hack is so that the source file can tell whether it is being
15923 # built for inclusion in a dll (and should export symbols for example).
15924 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15925 ;;
15926
15927 darwin* | rhapsody*)
15928 # PIC is the default on this platform
15929 # Common symbols not allowed in MH_DYLIB files
15930 lt_prog_compiler_pic_GCJ='-fno-common'
15931 ;;
15932
15933 interix3*)
15934 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15935 # Instead, we relocate shared libraries at runtime.
15936 ;;
15937
15938 msdosdjgpp*)
15939 # Just because we use GCC doesn't mean we suddenly get shared libraries
15940 # on systems that don't support them.
15941 lt_prog_compiler_can_build_shared_GCJ=no
15942 enable_shared=no
15943 ;;
15944
15945 sysv4*MP*)
15946 if test -d /usr/nec; then
15947 lt_prog_compiler_pic_GCJ=-Kconform_pic
15948 fi
15949 ;;
15950
15951 hpux*)
15952 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15953 # not for PA HP-UX.
15954 case $host_cpu in
15955 hppa*64*|ia64*)
15956 # +Z the default
15957 ;;
15958 *)
15959 lt_prog_compiler_pic_GCJ='-fPIC'
15960 ;;
15961 esac
15962 ;;
15963
15964 *)
15965 lt_prog_compiler_pic_GCJ='-fPIC'
15966 ;;
15967 esac
15968 else
15969 # PORTME Check for flag to pass linker flags through the system compiler.
15970 case $host_os in
15971 aix*)
15972 lt_prog_compiler_wl_GCJ='-Wl,'
15973 if test "$host_cpu" = ia64; then
15974 # AIX 5 now supports IA64 processor
15975 lt_prog_compiler_static_GCJ='-Bstatic'
15976 else
15977 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15978 fi
15979 ;;
15980 darwin*)
15981 # PIC is the default on this platform
15982 # Common symbols not allowed in MH_DYLIB files
15983 case $cc_basename in
15984 xlc*)
15985 lt_prog_compiler_pic_GCJ='-qnocommon'
15986 lt_prog_compiler_wl_GCJ='-Wl,'
15987 ;;
15988 esac
15989 ;;
15990
15991 mingw* | pw32* | os2*)
15992 # This hack is so that the source file can tell whether it is being
15993 # built for inclusion in a dll (and should export symbols for example).
15994 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15995 ;;
15996
15997 hpux9* | hpux10* | hpux11*)
15998 lt_prog_compiler_wl_GCJ='-Wl,'
15999 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16000 # not for PA HP-UX.
16001 case $host_cpu in
16002 hppa*64*|ia64*)
16003 # +Z the default
16004 ;;
16005 *)
16006 lt_prog_compiler_pic_GCJ='+Z'
16007 ;;
16008 esac
16009 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16010 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16011 ;;
16012
16013 irix5* | irix6* | nonstopux*)
16014 lt_prog_compiler_wl_GCJ='-Wl,'
16015 # PIC (with -KPIC) is the default.
16016 lt_prog_compiler_static_GCJ='-non_shared'
16017 ;;
16018
16019 newsos6)
16020 lt_prog_compiler_pic_GCJ='-KPIC'
16021 lt_prog_compiler_static_GCJ='-Bstatic'
16022 ;;
16023
16024 linux*)
16025 case $cc_basename in
16026 icc* | ecc*)
16027 lt_prog_compiler_wl_GCJ='-Wl,'
16028 lt_prog_compiler_pic_GCJ='-KPIC'
16029 lt_prog_compiler_static_GCJ='-static'
16030 ;;
16031 pgcc* | pgf77* | pgf90* | pgf95*)
16032 # Portland Group compilers (*not* the Pentium gcc compiler,
16033 # which looks to be a dead project)
16034 lt_prog_compiler_wl_GCJ='-Wl,'
16035 lt_prog_compiler_pic_GCJ='-fpic'
16036 lt_prog_compiler_static_GCJ='-Bstatic'
16037 ;;
16038 ccc*)
16039 lt_prog_compiler_wl_GCJ='-Wl,'
16040 # All Alpha code is PIC.
16041 lt_prog_compiler_static_GCJ='-non_shared'
16042 ;;
16043 esac
16044 ;;
16045
16046 osf3* | osf4* | osf5*)
16047 lt_prog_compiler_wl_GCJ='-Wl,'
16048 # All OSF/1 code is PIC.
16049 lt_prog_compiler_static_GCJ='-non_shared'
16050 ;;
16051
16052 solaris*)
16053 lt_prog_compiler_pic_GCJ='-KPIC'
16054 lt_prog_compiler_static_GCJ='-Bstatic'
16055 case $cc_basename in
16056 f77* | f90* | f95*)
16057 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16058 *)
16059 lt_prog_compiler_wl_GCJ='-Wl,';;
16060 esac
16061 ;;
16062
16063 sunos4*)
16064 lt_prog_compiler_wl_GCJ='-Qoption ld '
16065 lt_prog_compiler_pic_GCJ='-PIC'
16066 lt_prog_compiler_static_GCJ='-Bstatic'
16067 ;;
16068
16069 sysv4 | sysv4.2uw2* | sysv4.3*)
16070 lt_prog_compiler_wl_GCJ='-Wl,'
16071 lt_prog_compiler_pic_GCJ='-KPIC'
16072 lt_prog_compiler_static_GCJ='-Bstatic'
16073 ;;
16074
16075 sysv4*MP*)
16076 if test -d /usr/nec ;then
16077 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16078 lt_prog_compiler_static_GCJ='-Bstatic'
16079 fi
16080 ;;
16081
16082 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16083 lt_prog_compiler_wl_GCJ='-Wl,'
16084 lt_prog_compiler_pic_GCJ='-KPIC'
16085 lt_prog_compiler_static_GCJ='-Bstatic'
16086 ;;
16087
16088 unicos*)
16089 lt_prog_compiler_wl_GCJ='-Wl,'
16090 lt_prog_compiler_can_build_shared_GCJ=no
16091 ;;
16092
16093 uts4*)
16094 lt_prog_compiler_pic_GCJ='-pic'
16095 lt_prog_compiler_static_GCJ='-Bstatic'
16096 ;;
16097
16098 *)
16099 lt_prog_compiler_can_build_shared_GCJ=no
16100 ;;
16101 esac
16102 fi
16103
16104echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16105echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16106
16107#
16108# Check to make sure the PIC flag actually works.
16109#
16110if test -n "$lt_prog_compiler_pic_GCJ"; then
16111
16112echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16113echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16114if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16115 echo $ECHO_N "(cached) $ECHO_C" >&6
16116else
16117 lt_prog_compiler_pic_works_GCJ=no
16118 ac_outfile=conftest.$ac_objext
16119 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16120 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16121 # Insert the option either (1) after the last *FLAGS variable, or
16122 # (2) before a word containing "conftest.", or (3) at the end.
16123 # Note that $ac_compile itself does not contain backslashes and begins
16124 # with a dollar sign (not a hyphen), so the echo should work correctly.
16125 # The option is referenced via a variable to avoid confusing sed.
16126 lt_compile=`echo "$ac_compile" | $SED \
16127 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16128 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16129 -e 's:$: $lt_compiler_flag:'`
86933a6e 16130 (eval echo "\"\$as_me:16130: $lt_compile\"" >&5)
bf9f3bac 16131 (eval "$lt_compile" 2>conftest.err)
16132 ac_status=$?
16133 cat conftest.err >&5
86933a6e 16134 echo "$as_me:16134: \$? = $ac_status" >&5
bf9f3bac 16135 if (exit $ac_status) && test -s "$ac_outfile"; then
16136 # The compiler can only warn and ignore the option if not recognized
16137 # So say no if there are warnings other than the usual output.
16138 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16139 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16140 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16141 lt_prog_compiler_pic_works_GCJ=yes
16142 fi
16143 fi
16144 $rm conftest*
16145
16146fi
16147echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16148echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16149
16150if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16151 case $lt_prog_compiler_pic_GCJ in
16152 "" | " "*) ;;
16153 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16154 esac
16155else
16156 lt_prog_compiler_pic_GCJ=
16157 lt_prog_compiler_can_build_shared_GCJ=no
16158fi
16159
16160fi
16161case $host_os in
16162 # For platforms which do not support PIC, -DPIC is meaningless:
16163 *djgpp*)
16164 lt_prog_compiler_pic_GCJ=
16165 ;;
16166 *)
16167 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16168 ;;
16169esac
16170
16171#
16172# Check to make sure the static flag actually works.
16173#
16174wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16175echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16176echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
16177if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16178 echo $ECHO_N "(cached) $ECHO_C" >&6
16179else
16180 lt_prog_compiler_static_works_GCJ=no
16181 save_LDFLAGS="$LDFLAGS"
16182 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16183 printf "$lt_simple_link_test_code" > conftest.$ac_ext
16184 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16185 # The linker can only warn and ignore the option if not recognized
16186 # So say no if there are warnings
16187 if test -s conftest.err; then
16188 # Append any errors to the config.log.
16189 cat conftest.err 1>&5
16190 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16191 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16192 if diff conftest.exp conftest.er2 >/dev/null; then
16193 lt_prog_compiler_static_works_GCJ=yes
16194 fi
16195 else
16196 lt_prog_compiler_static_works_GCJ=yes
16197 fi
16198 fi
16199 $rm conftest*
16200 LDFLAGS="$save_LDFLAGS"
16201
16202fi
16203echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16204echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
16205
16206if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16207 :
16208else
16209 lt_prog_compiler_static_GCJ=
16210fi
16211
16212
16213echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16214echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16215if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16216 echo $ECHO_N "(cached) $ECHO_C" >&6
16217else
16218 lt_cv_prog_compiler_c_o_GCJ=no
16219 $rm -r conftest 2>/dev/null
16220 mkdir conftest
16221 cd conftest
16222 mkdir out
16223 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16224
16225 lt_compiler_flag="-o out/conftest2.$ac_objext"
16226 # Insert the option either (1) after the last *FLAGS variable, or
16227 # (2) before a word containing "conftest.", or (3) at the end.
16228 # Note that $ac_compile itself does not contain backslashes and begins
16229 # with a dollar sign (not a hyphen), so the echo should work correctly.
16230 lt_compile=`echo "$ac_compile" | $SED \
16231 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16232 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16233 -e 's:$: $lt_compiler_flag:'`
86933a6e 16234 (eval echo "\"\$as_me:16234: $lt_compile\"" >&5)
bf9f3bac 16235 (eval "$lt_compile" 2>out/conftest.err)
16236 ac_status=$?
16237 cat out/conftest.err >&5
86933a6e 16238 echo "$as_me:16238: \$? = $ac_status" >&5
bf9f3bac 16239 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16240 then
16241 # The compiler can only warn and ignore the option if not recognized
16242 # So say no if there are warnings
16243 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16244 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16245 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16246 lt_cv_prog_compiler_c_o_GCJ=yes
16247 fi
16248 fi
16249 chmod u+w . 2>&5
16250 $rm conftest*
16251 # SGI C++ compiler will create directory out/ii_files/ for
16252 # template instantiation
16253 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16254 $rm out/* && rmdir out
16255 cd ..
16256 rmdir conftest
16257 $rm conftest*
16258
16259fi
16260echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16261echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16262
16263
16264hard_links="nottested"
16265if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16266 # do not overwrite the value of need_locks provided by the user
16267 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16268echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16269 hard_links=yes
16270 $rm conftest*
16271 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16272 touch conftest.a
16273 ln conftest.a conftest.b 2>&5 || hard_links=no
16274 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16275 echo "$as_me:$LINENO: result: $hard_links" >&5
16276echo "${ECHO_T}$hard_links" >&6
16277 if test "$hard_links" = no; then
16278 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16279echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16280 need_locks=warn
16281 fi
16282else
16283 need_locks=no
16284fi
16285
16286echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16287echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16288
16289 runpath_var=
16290 allow_undefined_flag_GCJ=
16291 enable_shared_with_static_runtimes_GCJ=no
16292 archive_cmds_GCJ=
16293 archive_expsym_cmds_GCJ=
16294 old_archive_From_new_cmds_GCJ=
16295 old_archive_from_expsyms_cmds_GCJ=
16296 export_dynamic_flag_spec_GCJ=
16297 whole_archive_flag_spec_GCJ=
16298 thread_safe_flag_spec_GCJ=
16299 hardcode_libdir_flag_spec_GCJ=
16300 hardcode_libdir_flag_spec_ld_GCJ=
16301 hardcode_libdir_separator_GCJ=
16302 hardcode_direct_GCJ=no
16303 hardcode_minus_L_GCJ=no
16304 hardcode_shlibpath_var_GCJ=unsupported
16305 link_all_deplibs_GCJ=unknown
16306 hardcode_automatic_GCJ=no
16307 module_cmds_GCJ=
16308 module_expsym_cmds_GCJ=
16309 always_export_symbols_GCJ=no
16310 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16311 # include_expsyms should be a list of space-separated symbols to be *always*
16312 # included in the symbol list
16313 include_expsyms_GCJ=
16314 # exclude_expsyms can be an extended regexp of symbols to exclude
16315 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16316 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16317 # as well as any symbol that contains `d'.
16318 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16319 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16320 # platforms (ab)use it in PIC code, but their linkers get confused if
16321 # the symbol is explicitly referenced. Since portable code cannot
16322 # rely on this symbol name, it's probably fine to never include it in
16323 # preloaded symbol tables.
16324 extract_expsyms_cmds=
16325 # Just being paranoid about ensuring that cc_basename is set.
16326 for cc_temp in $compiler""; do
16327 case $cc_temp in
16328 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16329 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16330 \-*) ;;
16331 *) break;;
16332 esac
16333done
16334cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16335
16336 case $host_os in
16337 cygwin* | mingw* | pw32*)
16338 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16339 # When not using gcc, we currently assume that we are using
16340 # Microsoft Visual C++.
16341 if test "$GCC" != yes; then
16342 with_gnu_ld=no
16343 fi
16344 ;;
16345 interix*)
16346 # we just hope/assume this is gcc and not c89 (= MSVC++)
16347 with_gnu_ld=yes
16348 ;;
16349 openbsd*)
16350 with_gnu_ld=no
16351 ;;
16352 esac
16353
16354 ld_shlibs_GCJ=yes
16355 if test "$with_gnu_ld" = yes; then
16356 # If archive_cmds runs LD, not CC, wlarc should be empty
16357 wlarc='${wl}'
16358
16359 # Set some defaults for GNU ld with shared library support. These
16360 # are reset later if shared libraries are not supported. Putting them
16361 # here allows them to be overridden if necessary.
16362 runpath_var=LD_RUN_PATH
16363 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16364 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16365 # ancient GNU ld didn't support --whole-archive et. al.
16366 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16367 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16368 else
16369 whole_archive_flag_spec_GCJ=
16370 fi
16371 supports_anon_versioning=no
16372 case `$LD -v 2>/dev/null` in
16373 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16374 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16375 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16376 *\ 2.11.*) ;; # other 2.11 versions
16377 *) supports_anon_versioning=yes ;;
16378 esac
16379
16380 # See if GNU ld supports shared libraries.
16381 case $host_os in
16382 aix3* | aix4* | aix5*)
16383 # On AIX/PPC, the GNU linker is very broken
16384 if test "$host_cpu" != ia64; then
16385 ld_shlibs_GCJ=no
16386 cat <<EOF 1>&2
16387
16388*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16389*** to be unable to reliably create shared libraries on AIX.
16390*** Therefore, libtool is disabling shared libraries support. If you
16391*** really care for shared libraries, you may want to modify your PATH
16392*** so that a non-GNU linker is found, and then restart.
16393
16394EOF
16395 fi
16396 ;;
16397
16398 amigaos*)
16399 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)'
16400 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16401 hardcode_minus_L_GCJ=yes
16402
16403 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16404 # that the semantics of dynamic libraries on AmigaOS, at least up
16405 # to version 4, is to share data among multiple programs linked
16406 # with the same dynamic library. Since this doesn't match the
16407 # behavior of shared libraries on other platforms, we can't use
16408 # them.
16409 ld_shlibs_GCJ=no
16410 ;;
16411
16412 beos*)
16413 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16414 allow_undefined_flag_GCJ=unsupported
16415 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16416 # support --undefined. This deserves some investigation. FIXME
16417 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16418 else
16419 ld_shlibs_GCJ=no
16420 fi
16421 ;;
16422
16423 cygwin* | mingw* | pw32*)
16424 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16425 # as there is no search path for DLLs.
16426 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16427 allow_undefined_flag_GCJ=unsupported
16428 always_export_symbols_GCJ=no
16429 enable_shared_with_static_runtimes_GCJ=yes
16430 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16431
16432 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16433 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16434 # If the export-symbols file already is a .def file (1st line
16435 # is EXPORTS), use it as is; otherwise, prepend...
16436 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16437 cp $export_symbols $output_objdir/$soname.def;
16438 else
16439 echo EXPORTS > $output_objdir/$soname.def;
16440 cat $export_symbols >> $output_objdir/$soname.def;
16441 fi~
16442 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16443 else
16444 ld_shlibs_GCJ=no
16445 fi
16446 ;;
16447
16448 interix3*)
16449 hardcode_direct_GCJ=no
16450 hardcode_shlibpath_var_GCJ=no
16451 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16452 export_dynamic_flag_spec_GCJ='${wl}-E'
16453 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16454 # Instead, shared libraries are loaded at an image base (0x10000000 by
16455 # default) and relocated if they conflict, which is a slow very memory
16456 # consuming and fragmenting process. To avoid this, we pick a random,
16457 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16458 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16459 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'
16460 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'
16461 ;;
16462
16463 linux*)
16464 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16465 tmp_addflag=
16466 case $cc_basename,$host_cpu in
16467 pgcc*) # Portland Group C compiler
16468 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'
16469 tmp_addflag=' $pic_flag'
16470 ;;
16471 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16472 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'
16473 tmp_addflag=' $pic_flag -Mnomain' ;;
16474 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16475 tmp_addflag=' -i_dynamic' ;;
16476 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16477 tmp_addflag=' -i_dynamic -nofor_main' ;;
16478 ifc* | ifort*) # Intel Fortran compiler
16479 tmp_addflag=' -nofor_main' ;;
16480 esac
16481 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16482
16483 if test $supports_anon_versioning = yes; then
16484 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16485 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16486 $echo "local: *; };" >> $output_objdir/$libname.ver~
16487 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16488 fi
16489 else
16490 ld_shlibs_GCJ=no
16491 fi
16492 ;;
16493
16494 netbsd*)
16495 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16496 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16497 wlarc=
16498 else
16499 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16500 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16501 fi
16502 ;;
16503
16504 solaris*)
16505 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16506 ld_shlibs_GCJ=no
16507 cat <<EOF 1>&2
16508
16509*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16510*** create shared libraries on Solaris systems. Therefore, libtool
16511*** is disabling shared libraries support. We urge you to upgrade GNU
16512*** binutils to release 2.9.1 or newer. Another option is to modify
16513*** your PATH or compiler configuration so that the native linker is
16514*** used, and then restart.
16515
16516EOF
16517 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16518 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16519 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16520 else
16521 ld_shlibs_GCJ=no
16522 fi
16523 ;;
16524
16525 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16526 case `$LD -v 2>&1` in
16527 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16528 ld_shlibs_GCJ=no
16529 cat <<_LT_EOF 1>&2
16530
16531*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16532*** reliably create shared libraries on SCO systems. Therefore, libtool
16533*** is disabling shared libraries support. We urge you to upgrade GNU
16534*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16535*** your PATH or compiler configuration so that the native linker is
16536*** used, and then restart.
16537
16538_LT_EOF
16539 ;;
16540 *)
16541 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16542 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16543 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16544 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16545 else
16546 ld_shlibs_GCJ=no
16547 fi
16548 ;;
16549 esac
16550 ;;
16551
16552 sunos4*)
16553 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16554 wlarc=
16555 hardcode_direct_GCJ=yes
16556 hardcode_shlibpath_var_GCJ=no
16557 ;;
16558
16559 *)
16560 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16561 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16562 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16563 else
16564 ld_shlibs_GCJ=no
16565 fi
16566 ;;
16567 esac
16568
16569 if test "$ld_shlibs_GCJ" = no; then
16570 runpath_var=
16571 hardcode_libdir_flag_spec_GCJ=
16572 export_dynamic_flag_spec_GCJ=
16573 whole_archive_flag_spec_GCJ=
16574 fi
16575 else
16576 # PORTME fill in a description of your system's linker (not GNU ld)
16577 case $host_os in
16578 aix3*)
16579 allow_undefined_flag_GCJ=unsupported
16580 always_export_symbols_GCJ=yes
16581 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'
16582 # Note: this linker hardcodes the directories in LIBPATH if there
16583 # are no directories specified by -L.
16584 hardcode_minus_L_GCJ=yes
16585 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16586 # Neither direct hardcoding nor static linking is supported with a
16587 # broken collect2.
16588 hardcode_direct_GCJ=unsupported
16589 fi
16590 ;;
16591
16592 aix4* | aix5*)
16593 if test "$host_cpu" = ia64; then
16594 # On IA64, the linker does run time linking by default, so we don't
16595 # have to do anything special.
16596 aix_use_runtimelinking=no
16597 exp_sym_flag='-Bexport'
16598 no_entry_flag=""
16599 else
16600 # If we're using GNU nm, then we don't want the "-C" option.
16601 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16602 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16603 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'
16604 else
16605 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'
16606 fi
16607 aix_use_runtimelinking=no
16608
16609 # Test if we are trying to use run time linking or normal
16610 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16611 # need to do runtime linking.
16612 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16613 for ld_flag in $LDFLAGS; do
16614 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16615 aix_use_runtimelinking=yes
16616 break
16617 fi
16618 done
16619 ;;
16620 esac
16621
16622 exp_sym_flag='-bexport'
16623 no_entry_flag='-bnoentry'
16624 fi
16625
16626 # When large executables or shared objects are built, AIX ld can
16627 # have problems creating the table of contents. If linking a library
16628 # or program results in "error TOC overflow" add -mminimal-toc to
16629 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16630 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16631
16632 archive_cmds_GCJ=''
16633 hardcode_direct_GCJ=yes
16634 hardcode_libdir_separator_GCJ=':'
16635 link_all_deplibs_GCJ=yes
16636
16637 if test "$GCC" = yes; then
16638 case $host_os in aix4.[012]|aix4.[012].*)
16639 # We only want to do this on AIX 4.2 and lower, the check
16640 # below for broken collect2 doesn't work under 4.3+
16641 collect2name=`${CC} -print-prog-name=collect2`
16642 if test -f "$collect2name" && \
16643 strings "$collect2name" | grep resolve_lib_name >/dev/null
16644 then
16645 # We have reworked collect2
16646 hardcode_direct_GCJ=yes
16647 else
16648 # We have old collect2
16649 hardcode_direct_GCJ=unsupported
16650 # It fails to find uninstalled libraries when the uninstalled
16651 # path is not listed in the libpath. Setting hardcode_minus_L
16652 # to unsupported forces relinking
16653 hardcode_minus_L_GCJ=yes
16654 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16655 hardcode_libdir_separator_GCJ=
16656 fi
16657 ;;
16658 esac
16659 shared_flag='-shared'
16660 if test "$aix_use_runtimelinking" = yes; then
16661 shared_flag="$shared_flag "'${wl}-G'
16662 fi
16663 else
16664 # not using gcc
16665 if test "$host_cpu" = ia64; then
16666 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16667 # chokes on -Wl,-G. The following line is correct:
16668 shared_flag='-G'
16669 else
16670 if test "$aix_use_runtimelinking" = yes; then
16671 shared_flag='${wl}-G'
16672 else
16673 shared_flag='${wl}-bM:SRE'
16674 fi
16675 fi
16676 fi
16677
16678 # It seems that -bexpall does not export symbols beginning with
16679 # underscore (_), so it is better to generate a list of symbols to export.
16680 always_export_symbols_GCJ=yes
16681 if test "$aix_use_runtimelinking" = yes; then
16682 # Warning - without using the other runtime loading flags (-brtl),
16683 # -berok will link without error, but may produce a broken library.
16684 allow_undefined_flag_GCJ='-berok'
16685 # Determine the default libpath from the value encoded in an empty executable.
16686 cat >conftest.$ac_ext <<_ACEOF
16687/* confdefs.h. */
16688_ACEOF
16689cat confdefs.h >>conftest.$ac_ext
16690cat >>conftest.$ac_ext <<_ACEOF
16691/* end confdefs.h. */
16692
16693int
16694main ()
16695{
16696
16697 ;
16698 return 0;
16699}
16700_ACEOF
16701rm -f conftest.$ac_objext conftest$ac_exeext
16702if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16703 (eval $ac_link) 2>conftest.er1
16704 ac_status=$?
16705 grep -v '^ *+' conftest.er1 >conftest.err
16706 rm -f conftest.er1
16707 cat conftest.err >&5
16708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16709 (exit $ac_status); } &&
16710 { ac_try='test -z "$ac_c_werror_flag"
16711 || test ! -s conftest.err'
16712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16713 (eval $ac_try) 2>&5
16714 ac_status=$?
16715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16716 (exit $ac_status); }; } &&
16717 { ac_try='test -s conftest$ac_exeext'
16718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16719 (eval $ac_try) 2>&5
16720 ac_status=$?
16721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16722 (exit $ac_status); }; }; then
16723
16724aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16725}'`
16726# Check for a 64-bit object if we didn't find anything.
16727if 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; }
16728}'`; fi
16729else
16730 echo "$as_me: failed program was:" >&5
16731sed 's/^/| /' conftest.$ac_ext >&5
16732
16733fi
16734rm -f conftest.err conftest.$ac_objext \
16735 conftest$ac_exeext conftest.$ac_ext
16736if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16737
16738 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16739 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"
16740 else
16741 if test "$host_cpu" = ia64; then
16742 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16743 allow_undefined_flag_GCJ="-z nodefs"
16744 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"
16745 else
16746 # Determine the default libpath from the value encoded in an empty executable.
16747 cat >conftest.$ac_ext <<_ACEOF
16748/* confdefs.h. */
16749_ACEOF
16750cat confdefs.h >>conftest.$ac_ext
16751cat >>conftest.$ac_ext <<_ACEOF
16752/* end confdefs.h. */
16753
16754int
16755main ()
16756{
16757
16758 ;
16759 return 0;
16760}
16761_ACEOF
16762rm -f conftest.$ac_objext conftest$ac_exeext
16763if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16764 (eval $ac_link) 2>conftest.er1
16765 ac_status=$?
16766 grep -v '^ *+' conftest.er1 >conftest.err
16767 rm -f conftest.er1
16768 cat conftest.err >&5
16769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16770 (exit $ac_status); } &&
16771 { ac_try='test -z "$ac_c_werror_flag"
16772 || test ! -s conftest.err'
16773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16774 (eval $ac_try) 2>&5
16775 ac_status=$?
16776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16777 (exit $ac_status); }; } &&
16778 { ac_try='test -s conftest$ac_exeext'
16779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16780 (eval $ac_try) 2>&5
16781 ac_status=$?
16782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16783 (exit $ac_status); }; }; then
16784
16785aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16786}'`
16787# Check for a 64-bit object if we didn't find anything.
16788if 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; }
16789}'`; fi
16790else
16791 echo "$as_me: failed program was:" >&5
16792sed 's/^/| /' conftest.$ac_ext >&5
16793
16794fi
16795rm -f conftest.err conftest.$ac_objext \
16796 conftest$ac_exeext conftest.$ac_ext
16797if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16798
16799 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16800 # Warning - without using the other run time loading flags,
16801 # -berok will link without error, but may produce a broken library.
16802 no_undefined_flag_GCJ=' ${wl}-bernotok'
16803 allow_undefined_flag_GCJ=' ${wl}-berok'
16804 # Exported symbols can be pulled into shared objects from archives
16805 whole_archive_flag_spec_GCJ='$convenience'
16806 archive_cmds_need_lc_GCJ=yes
16807 # This is similar to how AIX traditionally builds its shared libraries.
16808 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'
16809 fi
16810 fi
16811 ;;
16812
16813 amigaos*)
16814 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)'
16815 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16816 hardcode_minus_L_GCJ=yes
16817 # see comment about different semantics on the GNU ld section
16818 ld_shlibs_GCJ=no
16819 ;;
16820
16821 bsdi[45]*)
16822 export_dynamic_flag_spec_GCJ=-rdynamic
16823 ;;
16824
16825 cygwin* | mingw* | pw32*)
16826 # When not using gcc, we currently assume that we are using
16827 # Microsoft Visual C++.
16828 # hardcode_libdir_flag_spec is actually meaningless, as there is
16829 # no search path for DLLs.
16830 hardcode_libdir_flag_spec_GCJ=' '
16831 allow_undefined_flag_GCJ=unsupported
16832 # Tell ltmain to make .lib files, not .a files.
16833 libext=lib
16834 # Tell ltmain to make .dll files, not .so files.
16835 shrext_cmds=".dll"
16836 # FIXME: Setting linknames here is a bad hack.
16837 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16838 # The linker will automatically build a .lib file if we build a DLL.
16839 old_archive_From_new_cmds_GCJ='true'
16840 # FIXME: Should let the user specify the lib program.
16841 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16842 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16843 enable_shared_with_static_runtimes_GCJ=yes
16844 ;;
16845
16846 darwin* | rhapsody*)
16847 case $host_os in
16848 rhapsody* | darwin1.[012])
16849 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16850 ;;
16851 *) # Darwin 1.3 on
16852 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16853 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16854 else
16855 case ${MACOSX_DEPLOYMENT_TARGET} in
16856 10.[012])
16857 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16858 ;;
16859 10.*)
16860 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16861 ;;
16862 esac
16863 fi
16864 ;;
16865 esac
16866 archive_cmds_need_lc_GCJ=no
16867 hardcode_direct_GCJ=no
16868 hardcode_automatic_GCJ=yes
16869 hardcode_shlibpath_var_GCJ=unsupported
16870 whole_archive_flag_spec_GCJ=''
16871 link_all_deplibs_GCJ=yes
16872 if test "$GCC" = yes ; then
16873 output_verbose_link_cmd='echo'
16874 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16875 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16876 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16877 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}'
16878 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}'
16879 else
16880 case $cc_basename in
16881 xlc*)
16882 output_verbose_link_cmd='echo'
16883 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16884 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16885 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16886 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}'
16887 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}'
16888 ;;
16889 *)
16890 ld_shlibs_GCJ=no
16891 ;;
16892 esac
16893 fi
16894 ;;
16895
16896 dgux*)
16897 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16898 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16899 hardcode_shlibpath_var_GCJ=no
16900 ;;
16901
16902 freebsd1*)
16903 ld_shlibs_GCJ=no
16904 ;;
16905
16906 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16907 # support. Future versions do this automatically, but an explicit c++rt0.o
16908 # does not break anything, and helps significantly (at the cost of a little
16909 # extra space).
16910 freebsd2.2*)
16911 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16912 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16913 hardcode_direct_GCJ=yes
16914 hardcode_shlibpath_var_GCJ=no
16915 ;;
16916
16917 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16918 freebsd2*)
16919 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16920 hardcode_direct_GCJ=yes
16921 hardcode_minus_L_GCJ=yes
16922 hardcode_shlibpath_var_GCJ=no
16923 ;;
16924
16925 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16926 freebsd* | kfreebsd*-gnu | dragonfly*)
16927 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16928 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16929 hardcode_direct_GCJ=yes
16930 hardcode_shlibpath_var_GCJ=no
16931 ;;
16932
16933 hpux9*)
16934 if test "$GCC" = yes; then
16935 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'
16936 else
16937 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'
16938 fi
16939 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16940 hardcode_libdir_separator_GCJ=:
16941 hardcode_direct_GCJ=yes
16942
16943 # hardcode_minus_L: Not really in the search PATH,
16944 # but as the default location of the library.
16945 hardcode_minus_L_GCJ=yes
16946 export_dynamic_flag_spec_GCJ='${wl}-E'
16947 ;;
16948
16949 hpux10*)
16950 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16951 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16952 else
16953 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16954 fi
16955 if test "$with_gnu_ld" = no; then
16956 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16957 hardcode_libdir_separator_GCJ=:
16958
16959 hardcode_direct_GCJ=yes
16960 export_dynamic_flag_spec_GCJ='${wl}-E'
16961
16962 # hardcode_minus_L: Not really in the search PATH,
16963 # but as the default location of the library.
16964 hardcode_minus_L_GCJ=yes
16965 fi
16966 ;;
16967
16968 hpux11*)
16969 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16970 case $host_cpu in
16971 hppa*64*)
16972 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16973 ;;
16974 ia64*)
16975 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16976 ;;
16977 *)
16978 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16979 ;;
16980 esac
16981 else
16982 case $host_cpu in
16983 hppa*64*)
16984 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16985 ;;
16986 ia64*)
16987 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16988 ;;
16989 *)
16990 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16991 ;;
16992 esac
16993 fi
16994 if test "$with_gnu_ld" = no; then
16995 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16996 hardcode_libdir_separator_GCJ=:
16997
16998 case $host_cpu in
16999 hppa*64*|ia64*)
17000 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17001 hardcode_direct_GCJ=no
17002 hardcode_shlibpath_var_GCJ=no
17003 ;;
17004 *)
17005 hardcode_direct_GCJ=yes
17006 export_dynamic_flag_spec_GCJ='${wl}-E'
17007
17008 # hardcode_minus_L: Not really in the search PATH,
17009 # but as the default location of the library.
17010 hardcode_minus_L_GCJ=yes
17011 ;;
17012 esac
17013 fi
17014 ;;
17015
17016 irix5* | irix6* | nonstopux*)
17017 if test "$GCC" = yes; then
17018 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'
17019 else
17020 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'
17021 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17022 fi
17023 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17024 hardcode_libdir_separator_GCJ=:
17025 link_all_deplibs_GCJ=yes
17026 ;;
17027
17028 netbsd*)
17029 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17030 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17031 else
17032 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17033 fi
17034 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17035 hardcode_direct_GCJ=yes
17036 hardcode_shlibpath_var_GCJ=no
17037 ;;
17038
17039 newsos6)
17040 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17041 hardcode_direct_GCJ=yes
17042 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17043 hardcode_libdir_separator_GCJ=:
17044 hardcode_shlibpath_var_GCJ=no
17045 ;;
17046
17047 openbsd*)
17048 hardcode_direct_GCJ=yes
17049 hardcode_shlibpath_var_GCJ=no
17050 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17051 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17052 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17053 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17054 export_dynamic_flag_spec_GCJ='${wl}-E'
17055 else
17056 case $host_os in
17057 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17058 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17059 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17060 ;;
17061 *)
17062 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17063 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17064 ;;
17065 esac
17066 fi
17067 ;;
17068
17069 os2*)
17070 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17071 hardcode_minus_L_GCJ=yes
17072 allow_undefined_flag_GCJ=unsupported
17073 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'
17074 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17075 ;;
17076
17077 osf3*)
17078 if test "$GCC" = yes; then
17079 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17080 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'
17081 else
17082 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17083 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'
17084 fi
17085 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17086 hardcode_libdir_separator_GCJ=:
17087 ;;
17088
17089 osf4* | osf5*) # as osf3* with the addition of -msym flag
17090 if test "$GCC" = yes; then
17091 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17092 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'
17093 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17094 else
17095 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17096 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'
17097 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~
17098 $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'
17099
17100 # Both c and cxx compiler support -rpath directly
17101 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17102 fi
17103 hardcode_libdir_separator_GCJ=:
17104 ;;
17105
17106 solaris*)
17107 no_undefined_flag_GCJ=' -z text'
17108 if test "$GCC" = yes; then
17109 wlarc='${wl}'
17110 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17111 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17112 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17113 else
17114 wlarc=''
17115 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17116 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17117 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17118 fi
17119 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17120 hardcode_shlibpath_var_GCJ=no
17121 case $host_os in
17122 solaris2.[0-5] | solaris2.[0-5].*) ;;
17123 *)
17124 # The compiler driver will combine linker options so we
17125 # cannot just pass the convience library names through
17126 # without $wl, iff we do not link with $LD.
17127 # Luckily, gcc supports the same syntax we need for Sun Studio.
17128 # Supported since Solaris 2.6 (maybe 2.5.1?)
17129 case $wlarc in
17130 '')
17131 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17132 *)
17133 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' ;;
17134 esac ;;
17135 esac
17136 link_all_deplibs_GCJ=yes
17137 ;;
17138
17139 sunos4*)
17140 if test "x$host_vendor" = xsequent; then
17141 # Use $CC to link under sequent, because it throws in some extra .o
17142 # files that make .init and .fini sections work.
17143 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17144 else
17145 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17146 fi
17147 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17148 hardcode_direct_GCJ=yes
17149 hardcode_minus_L_GCJ=yes
17150 hardcode_shlibpath_var_GCJ=no
17151 ;;
17152
17153 sysv4)
17154 case $host_vendor in
17155 sni)
17156 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17157 hardcode_direct_GCJ=yes # is this really true???
17158 ;;
17159 siemens)
17160 ## LD is ld it makes a PLAMLIB
17161 ## CC just makes a GrossModule.
17162 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17163 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17164 hardcode_direct_GCJ=no
17165 ;;
17166 motorola)
17167 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17168 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17169 ;;
17170 esac
17171 runpath_var='LD_RUN_PATH'
17172 hardcode_shlibpath_var_GCJ=no
17173 ;;
17174
17175 sysv4.3*)
17176 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17177 hardcode_shlibpath_var_GCJ=no
17178 export_dynamic_flag_spec_GCJ='-Bexport'
17179 ;;
17180
17181 sysv4*MP*)
17182 if test -d /usr/nec; then
17183 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17184 hardcode_shlibpath_var_GCJ=no
17185 runpath_var=LD_RUN_PATH
17186 hardcode_runpath_var=yes
17187 ld_shlibs_GCJ=yes
17188 fi
17189 ;;
17190
17191 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17192 no_undefined_flag_GCJ='${wl}-z,text'
17193 archive_cmds_need_lc_GCJ=no
17194 hardcode_shlibpath_var_GCJ=no
17195 runpath_var='LD_RUN_PATH'
17196
17197 if test "$GCC" = yes; then
17198 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17199 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17200 else
17201 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17202 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17203 fi
17204 ;;
17205
17206 sysv5* | sco3.2v5* | sco5v6*)
17207 # Note: We can NOT use -z defs as we might desire, because we do not
17208 # link with -lc, and that would cause any symbols used from libc to
17209 # always be unresolved, which means just about no library would
17210 # ever link correctly. If we're not using GNU ld we use -z text
17211 # though, which does catch some bad symbols but isn't as heavy-handed
17212 # as -z defs.
17213 no_undefined_flag_GCJ='${wl}-z,text'
17214 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17215 archive_cmds_need_lc_GCJ=no
17216 hardcode_shlibpath_var_GCJ=no
17217 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17218 hardcode_libdir_separator_GCJ=':'
17219 link_all_deplibs_GCJ=yes
17220 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17221 runpath_var='LD_RUN_PATH'
17222
17223 if test "$GCC" = yes; then
17224 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17225 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17226 else
17227 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17228 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17229 fi
17230 ;;
17231
17232 uts4*)
17233 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17234 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17235 hardcode_shlibpath_var_GCJ=no
17236 ;;
17237
17238 *)
17239 ld_shlibs_GCJ=no
17240 ;;
17241 esac
17242 fi
17243
17244echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17245echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17246test "$ld_shlibs_GCJ" = no && can_build_shared=no
17247
17248#
17249# Do we need to explicitly link libc?
17250#
17251case "x$archive_cmds_need_lc_GCJ" in
17252x|xyes)
17253 # Assume -lc should be added
17254 archive_cmds_need_lc_GCJ=yes
17255
17256 if test "$enable_shared" = yes && test "$GCC" = yes; then
17257 case $archive_cmds_GCJ in
17258 *'~'*)
17259 # FIXME: we may have to deal with multi-command sequences.
17260 ;;
17261 '$CC '*)
17262 # Test whether the compiler implicitly links with -lc since on some
17263 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17264 # to ld, don't add -lc before -lgcc.
17265 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17266echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17267 $rm conftest*
17268 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17269
17270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17271 (eval $ac_compile) 2>&5
17272 ac_status=$?
17273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17274 (exit $ac_status); } 2>conftest.err; then
17275 soname=conftest
17276 lib=conftest
17277 libobjs=conftest.$ac_objext
17278 deplibs=
17279 wl=$lt_prog_compiler_wl_GCJ
17280 pic_flag=$lt_prog_compiler_pic_GCJ
17281 compiler_flags=-v
17282 linker_flags=-v
17283 verstring=
17284 output_objdir=.
17285 libname=conftest
17286 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17287 allow_undefined_flag_GCJ=
17288 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17289 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17290 ac_status=$?
17291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17292 (exit $ac_status); }
17293 then
17294 archive_cmds_need_lc_GCJ=no
17295 else
17296 archive_cmds_need_lc_GCJ=yes
17297 fi
17298 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17299 else
17300 cat conftest.err 1>&5
17301 fi
17302 $rm conftest*
17303 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17304echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17305 ;;
17306 esac
17307 fi
17308 ;;
17309esac
17310
17311echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17312echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17313library_names_spec=
17314libname_spec='lib$name'
17315soname_spec=
17316shrext_cmds=".so"
17317postinstall_cmds=
17318postuninstall_cmds=
17319finish_cmds=
17320finish_eval=
17321shlibpath_var=
17322shlibpath_overrides_runpath=unknown
17323version_type=none
17324dynamic_linker="$host_os ld.so"
17325sys_lib_dlsearch_path_spec="/lib /usr/lib"
17326if test "$GCC" = yes; then
17327 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17328 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17329 # if the path contains ";" then we assume it to be the separator
17330 # otherwise default to the standard path separator (i.e. ":") - it is
17331 # assumed that no part of a normal pathname contains ";" but that should
17332 # okay in the real world where ";" in dirpaths is itself problematic.
17333 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17334 else
17335 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17336 fi
17337else
17338 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17339fi
17340need_lib_prefix=unknown
17341hardcode_into_libs=no
17342
17343# when you set need_version to no, make sure it does not cause -set_version
17344# flags to be left without arguments
17345need_version=unknown
17346
17347case $host_os in
17348aix3*)
17349 version_type=linux
17350 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17351 shlibpath_var=LIBPATH
17352
17353 # AIX 3 has no versioning support, so we append a major version to the name.
17354 soname_spec='${libname}${release}${shared_ext}$major'
17355 ;;
17356
17357aix4* | aix5*)
17358 version_type=linux
17359 need_lib_prefix=no
17360 need_version=no
17361 hardcode_into_libs=yes
17362 if test "$host_cpu" = ia64; then
17363 # AIX 5 supports IA64
17364 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17365 shlibpath_var=LD_LIBRARY_PATH
17366 else
17367 # With GCC up to 2.95.x, collect2 would create an import file
17368 # for dependence libraries. The import file would start with
17369 # the line `#! .'. This would cause the generated library to
17370 # depend on `.', always an invalid library. This was fixed in
17371 # development snapshots of GCC prior to 3.0.
17372 case $host_os in
17373 aix4 | aix4.[01] | aix4.[01].*)
17374 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17375 echo ' yes '
17376 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17377 :
17378 else
17379 can_build_shared=no
17380 fi
17381 ;;
17382 esac
17383 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17384 # soname into executable. Probably we can add versioning support to
17385 # collect2, so additional links can be useful in future.
17386 if test "$aix_use_runtimelinking" = yes; then
17387 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17388 # instead of lib<name>.a to let people know that these are not
17389 # typical AIX shared libraries.
17390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17391 else
17392 # We preserve .a as extension for shared libraries through AIX4.2
17393 # and later when we are not doing run time linking.
17394 library_names_spec='${libname}${release}.a $libname.a'
17395 soname_spec='${libname}${release}${shared_ext}$major'
17396 fi
17397 shlibpath_var=LIBPATH
17398 fi
17399 ;;
17400
17401amigaos*)
17402 library_names_spec='$libname.ixlibrary $libname.a'
17403 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17404 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'
17405 ;;
17406
17407beos*)
17408 library_names_spec='${libname}${shared_ext}'
17409 dynamic_linker="$host_os ld.so"
17410 shlibpath_var=LIBRARY_PATH
17411 ;;
17412
17413bsdi[45]*)
17414 version_type=linux
17415 need_version=no
17416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17417 soname_spec='${libname}${release}${shared_ext}$major'
17418 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17419 shlibpath_var=LD_LIBRARY_PATH
17420 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17421 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17422 # the default ld.so.conf also contains /usr/contrib/lib and
17423 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17424 # libtool to hard-code these into programs
17425 ;;
17426
17427cygwin* | mingw* | pw32*)
17428 version_type=windows
17429 shrext_cmds=".dll"
17430 need_version=no
17431 need_lib_prefix=no
17432
17433 case $GCC,$host_os in
17434 yes,cygwin* | yes,mingw* | yes,pw32*)
17435 library_names_spec='$libname.dll.a'
17436 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17437 postinstall_cmds='base_file=`basename \${file}`~
17438 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17439 dldir=$destdir/`dirname \$dlpath`~
17440 test -d \$dldir || mkdir -p \$dldir~
17441 $install_prog $dir/$dlname \$dldir/$dlname~
17442 chmod a+x \$dldir/$dlname'
17443 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17444 dlpath=$dir/\$dldll~
17445 $rm \$dlpath'
17446 shlibpath_overrides_runpath=yes
17447
17448 case $host_os in
17449 cygwin*)
17450 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17451 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17452 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17453 ;;
17454 mingw*)
17455 # MinGW DLLs use traditional 'lib' prefix
17456 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17457 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17458 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17459 # It is most probably a Windows format PATH printed by
17460 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17461 # path with ; separators, and with drive letters. We can handle the
17462 # drive letters (cygwin fileutils understands them), so leave them,
17463 # especially as we might pass files found there to a mingw objdump,
17464 # which wouldn't understand a cygwinified path. Ahh.
17465 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17466 else
17467 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17468 fi
17469 ;;
17470 pw32*)
17471 # pw32 DLLs use 'pw' prefix rather than 'lib'
17472 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17473 ;;
17474 esac
17475 ;;
17476
17477 *)
17478 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17479 ;;
17480 esac
17481 dynamic_linker='Win32 ld.exe'
17482 # FIXME: first we should search . and the directory the executable is in
17483 shlibpath_var=PATH
17484 ;;
17485
17486darwin* | rhapsody*)
17487 dynamic_linker="$host_os dyld"
17488 version_type=darwin
17489 need_lib_prefix=no
17490 need_version=no
17491 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17492 soname_spec='${libname}${release}${major}$shared_ext'
17493 shlibpath_overrides_runpath=yes
17494 shlibpath_var=DYLD_LIBRARY_PATH
17495 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17496 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17497 if test "$GCC" = yes; then
17498 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"`
17499 else
17500 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17501 fi
17502 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17503 ;;
17504
17505dgux*)
17506 version_type=linux
17507 need_lib_prefix=no
17508 need_version=no
17509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17510 soname_spec='${libname}${release}${shared_ext}$major'
17511 shlibpath_var=LD_LIBRARY_PATH
17512 ;;
17513
17514freebsd1*)
17515 dynamic_linker=no
17516 ;;
17517
17518kfreebsd*-gnu)
17519 version_type=linux
17520 need_lib_prefix=no
17521 need_version=no
17522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17523 soname_spec='${libname}${release}${shared_ext}$major'
17524 shlibpath_var=LD_LIBRARY_PATH
17525 shlibpath_overrides_runpath=no
17526 hardcode_into_libs=yes
17527 dynamic_linker='GNU ld.so'
17528 ;;
17529
17530freebsd* | dragonfly*)
17531 # DragonFly does not have aout. When/if they implement a new
17532 # versioning mechanism, adjust this.
17533 if test -x /usr/bin/objformat; then
17534 objformat=`/usr/bin/objformat`
17535 else
17536 case $host_os in
17537 freebsd[123]*) objformat=aout ;;
17538 *) objformat=elf ;;
17539 esac
17540 fi
17541 version_type=freebsd-$objformat
17542 case $version_type in
17543 freebsd-elf*)
17544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17545 need_version=no
17546 need_lib_prefix=no
17547 ;;
17548 freebsd-*)
17549 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17550 need_version=yes
17551 ;;
17552 esac
17553 shlibpath_var=LD_LIBRARY_PATH
17554 case $host_os in
17555 freebsd2*)
17556 shlibpath_overrides_runpath=yes
17557 ;;
17558 freebsd3.[01]* | freebsdelf3.[01]*)
17559 shlibpath_overrides_runpath=yes
17560 hardcode_into_libs=yes
17561 ;;
17562 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17563 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17564 shlibpath_overrides_runpath=no
17565 hardcode_into_libs=yes
17566 ;;
17567 freebsd*) # from 4.6 on
17568 shlibpath_overrides_runpath=yes
17569 hardcode_into_libs=yes
17570 ;;
17571 esac
17572 ;;
17573
17574gnu*)
17575 version_type=linux
17576 need_lib_prefix=no
17577 need_version=no
17578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17579 soname_spec='${libname}${release}${shared_ext}$major'
17580 shlibpath_var=LD_LIBRARY_PATH
17581 hardcode_into_libs=yes
17582 ;;
17583
17584hpux9* | hpux10* | hpux11*)
17585 # Give a soname corresponding to the major version so that dld.sl refuses to
17586 # link against other versions.
17587 version_type=sunos
17588 need_lib_prefix=no
17589 need_version=no
17590 case $host_cpu in
17591 ia64*)
17592 shrext_cmds='.so'
17593 hardcode_into_libs=yes
17594 dynamic_linker="$host_os dld.so"
17595 shlibpath_var=LD_LIBRARY_PATH
17596 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17598 soname_spec='${libname}${release}${shared_ext}$major'
17599 if test "X$HPUX_IA64_MODE" = X32; then
17600 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17601 else
17602 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17603 fi
17604 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17605 ;;
17606 hppa*64*)
17607 shrext_cmds='.sl'
17608 hardcode_into_libs=yes
17609 dynamic_linker="$host_os dld.sl"
17610 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17611 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17613 soname_spec='${libname}${release}${shared_ext}$major'
17614 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17615 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17616 ;;
17617 *)
17618 shrext_cmds='.sl'
17619 dynamic_linker="$host_os dld.sl"
17620 shlibpath_var=SHLIB_PATH
17621 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17623 soname_spec='${libname}${release}${shared_ext}$major'
17624 ;;
17625 esac
17626 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17627 postinstall_cmds='chmod 555 $lib'
17628 ;;
17629
17630interix3*)
17631 version_type=linux
17632 need_lib_prefix=no
17633 need_version=no
17634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17635 soname_spec='${libname}${release}${shared_ext}$major'
17636 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17637 shlibpath_var=LD_LIBRARY_PATH
17638 shlibpath_overrides_runpath=no
17639 hardcode_into_libs=yes
17640 ;;
17641
17642irix5* | irix6* | nonstopux*)
17643 case $host_os in
17644 nonstopux*) version_type=nonstopux ;;
17645 *)
17646 if test "$lt_cv_prog_gnu_ld" = yes; then
17647 version_type=linux
17648 else
17649 version_type=irix
17650 fi ;;
17651 esac
17652 need_lib_prefix=no
17653 need_version=no
17654 soname_spec='${libname}${release}${shared_ext}$major'
17655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17656 case $host_os in
17657 irix5* | nonstopux*)
17658 libsuff= shlibsuff=
17659 ;;
17660 *)
17661 case $LD in # libtool.m4 will add one of these switches to LD
17662 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17663 libsuff= shlibsuff= libmagic=32-bit;;
17664 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17665 libsuff=32 shlibsuff=N32 libmagic=N32;;
17666 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17667 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17668 *) libsuff= shlibsuff= libmagic=never-match;;
17669 esac
17670 ;;
17671 esac
17672 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17673 shlibpath_overrides_runpath=no
17674 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17675 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17676 hardcode_into_libs=yes
17677 ;;
17678
17679# No shared lib support for Linux oldld, aout, or coff.
17680linux*oldld* | linux*aout* | linux*coff*)
17681 dynamic_linker=no
17682 ;;
17683
17684# This must be Linux ELF.
17685linux*)
17686 version_type=linux
17687 need_lib_prefix=no
17688 need_version=no
17689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17690 soname_spec='${libname}${release}${shared_ext}$major'
17691 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17692 shlibpath_var=LD_LIBRARY_PATH
17693 shlibpath_overrides_runpath=no
17694 # This implies no fast_install, which is unacceptable.
17695 # Some rework will be needed to allow for fast_install
17696 # before this can be enabled.
17697 hardcode_into_libs=yes
17698
17699 # find out which ABI we are using
17700 libsuff=
17701 case "$host_cpu" in
17702 x86_64*|s390x*|powerpc64*)
86933a6e 17703 echo '#line 17703 "configure"' > conftest.$ac_ext
bf9f3bac 17704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17705 (eval $ac_compile) 2>&5
17706 ac_status=$?
17707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17708 (exit $ac_status); }; then
17709 case `/usr/bin/file conftest.$ac_objext` in
17710 *64-bit*)
17711 libsuff=64
17712 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
17713 ;;
17714 esac
17715 fi
17716 rm -rf conftest*
17717 ;;
17718 esac
17719
17720 # Append ld.so.conf contents to the search path
17721 if test -f /etc/ld.so.conf; then
17722 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' ' '`
17723 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
17724 fi
17725
17726 # We used to test for /lib/ld.so.1 and disable shared libraries on
17727 # powerpc, because MkLinux only supported shared libraries with the
17728 # GNU dynamic linker. Since this was broken with cross compilers,
17729 # most powerpc-linux boxes support dynamic linking these days and
17730 # people can always --disable-shared, the test was removed, and we
17731 # assume the GNU/Linux dynamic linker is in use.
17732 dynamic_linker='GNU/Linux ld.so'
17733 ;;
17734
17735knetbsd*-gnu)
17736 version_type=linux
17737 need_lib_prefix=no
17738 need_version=no
17739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17740 soname_spec='${libname}${release}${shared_ext}$major'
17741 shlibpath_var=LD_LIBRARY_PATH
17742 shlibpath_overrides_runpath=no
17743 hardcode_into_libs=yes
17744 dynamic_linker='GNU ld.so'
17745 ;;
17746
17747netbsd*)
17748 version_type=sunos
17749 need_lib_prefix=no
17750 need_version=no
17751 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17753 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17754 dynamic_linker='NetBSD (a.out) ld.so'
17755 else
17756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17757 soname_spec='${libname}${release}${shared_ext}$major'
17758 dynamic_linker='NetBSD ld.elf_so'
17759 fi
17760 shlibpath_var=LD_LIBRARY_PATH
17761 shlibpath_overrides_runpath=yes
17762 hardcode_into_libs=yes
17763 ;;
17764
17765newsos6)
17766 version_type=linux
17767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17768 shlibpath_var=LD_LIBRARY_PATH
17769 shlibpath_overrides_runpath=yes
17770 ;;
17771
17772nto-qnx*)
17773 version_type=linux
17774 need_lib_prefix=no
17775 need_version=no
17776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17777 soname_spec='${libname}${release}${shared_ext}$major'
17778 shlibpath_var=LD_LIBRARY_PATH
17779 shlibpath_overrides_runpath=yes
17780 ;;
17781
17782openbsd*)
17783 version_type=sunos
17784 sys_lib_dlsearch_path_spec="/usr/lib"
17785 need_lib_prefix=no
17786 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17787 case $host_os in
17788 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17789 *) need_version=no ;;
17790 esac
17791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17792 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17793 shlibpath_var=LD_LIBRARY_PATH
17794 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17795 case $host_os in
17796 openbsd2.[89] | openbsd2.[89].*)
17797 shlibpath_overrides_runpath=no
17798 ;;
17799 *)
17800 shlibpath_overrides_runpath=yes
17801 ;;
17802 esac
17803 else
17804 shlibpath_overrides_runpath=yes
17805 fi
17806 ;;
17807
17808os2*)
17809 libname_spec='$name'
17810 shrext_cmds=".dll"
17811 need_lib_prefix=no
17812 library_names_spec='$libname${shared_ext} $libname.a'
17813 dynamic_linker='OS/2 ld.exe'
17814 shlibpath_var=LIBPATH
17815 ;;
17816
17817osf3* | osf4* | osf5*)
17818 version_type=osf
17819 need_lib_prefix=no
17820 need_version=no
17821 soname_spec='${libname}${release}${shared_ext}$major'
17822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17823 shlibpath_var=LD_LIBRARY_PATH
17824 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17825 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17826 ;;
17827
17828solaris*)
17829 version_type=linux
17830 need_lib_prefix=no
17831 need_version=no
17832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17833 soname_spec='${libname}${release}${shared_ext}$major'
17834 shlibpath_var=LD_LIBRARY_PATH
17835 shlibpath_overrides_runpath=yes
17836 hardcode_into_libs=yes
17837 # ldd complains unless libraries are executable
17838 postinstall_cmds='chmod +x $lib'
17839 ;;
17840
17841sunos4*)
17842 version_type=sunos
17843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17844 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17845 shlibpath_var=LD_LIBRARY_PATH
17846 shlibpath_overrides_runpath=yes
17847 if test "$with_gnu_ld" = yes; then
17848 need_lib_prefix=no
17849 fi
17850 need_version=yes
17851 ;;
17852
17853sysv4 | sysv4.3*)
17854 version_type=linux
17855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17856 soname_spec='${libname}${release}${shared_ext}$major'
17857 shlibpath_var=LD_LIBRARY_PATH
17858 case $host_vendor in
17859 sni)
17860 shlibpath_overrides_runpath=no
17861 need_lib_prefix=no
17862 export_dynamic_flag_spec='${wl}-Blargedynsym'
17863 runpath_var=LD_RUN_PATH
17864 ;;
17865 siemens)
17866 need_lib_prefix=no
17867 ;;
17868 motorola)
17869 need_lib_prefix=no
17870 need_version=no
17871 shlibpath_overrides_runpath=no
17872 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17873 ;;
17874 esac
17875 ;;
17876
17877sysv4*MP*)
17878 if test -d /usr/nec ;then
17879 version_type=linux
17880 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17881 soname_spec='$libname${shared_ext}.$major'
17882 shlibpath_var=LD_LIBRARY_PATH
17883 fi
17884 ;;
17885
17886sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17887 version_type=freebsd-elf
17888 need_lib_prefix=no
17889 need_version=no
17890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17891 soname_spec='${libname}${release}${shared_ext}$major'
17892 shlibpath_var=LD_LIBRARY_PATH
17893 hardcode_into_libs=yes
17894 if test "$with_gnu_ld" = yes; then
17895 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17896 shlibpath_overrides_runpath=no
17897 else
17898 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17899 shlibpath_overrides_runpath=yes
17900 case $host_os in
17901 sco3.2v5*)
17902 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17903 ;;
17904 esac
17905 fi
17906 sys_lib_dlsearch_path_spec='/usr/lib'
17907 ;;
17908
17909uts4*)
17910 version_type=linux
17911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17912 soname_spec='${libname}${release}${shared_ext}$major'
17913 shlibpath_var=LD_LIBRARY_PATH
17914 ;;
17915
17916*)
17917 dynamic_linker=no
17918 ;;
17919esac
17920echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17921echo "${ECHO_T}$dynamic_linker" >&6
17922test "$dynamic_linker" = no && can_build_shared=no
17923
17924variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17925if test "$GCC" = yes; then
17926 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17927fi
17928
17929echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17930echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17931hardcode_action_GCJ=
17932if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17933 test -n "$runpath_var_GCJ" || \
17934 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17935
17936 # We can hardcode non-existant directories.
17937 if test "$hardcode_direct_GCJ" != no &&
17938 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17939 # have to relink, otherwise we might link with an installed library
17940 # when we should be linking with a yet-to-be-installed one
17941 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17942 test "$hardcode_minus_L_GCJ" != no; then
17943 # Linking always hardcodes the temporary library directory.
17944 hardcode_action_GCJ=relink
17945 else
17946 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17947 hardcode_action_GCJ=immediate
17948 fi
17949else
17950 # We cannot hardcode anything, or else we can only hardcode existing
17951 # directories.
17952 hardcode_action_GCJ=unsupported
17953fi
17954echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17955echo "${ECHO_T}$hardcode_action_GCJ" >&6
17956
17957if test "$hardcode_action_GCJ" = relink; then
17958 # Fast installation is not supported
17959 enable_fast_install=no
17960elif test "$shlibpath_overrides_runpath" = yes ||
17961 test "$enable_shared" = no; then
17962 # Fast installation is not necessary
17963 enable_fast_install=needless
17964fi
17965
17966
17967# The else clause should only fire when bootstrapping the
17968# libtool distribution, otherwise you forgot to ship ltmain.sh
17969# with your package, and you will get complaints that there are
17970# no rules to generate ltmain.sh.
17971if test -f "$ltmain"; then
17972 # See if we are running on zsh, and set the options which allow our commands through
17973 # without removal of \ escapes.
17974 if test -n "${ZSH_VERSION+set}" ; then
17975 setopt NO_GLOB_SUBST
17976 fi
17977 # Now quote all the things that may contain metacharacters while being
17978 # careful not to overquote the AC_SUBSTed values. We take copies of the
17979 # variables and quote the copies for generation of the libtool script.
17980 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17981 SED SHELL STRIP \
17982 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17983 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17984 deplibs_check_method reload_flag reload_cmds need_locks \
17985 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17986 lt_cv_sys_global_symbol_to_c_name_address \
17987 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17988 old_postinstall_cmds old_postuninstall_cmds \
17989 compiler_GCJ \
17990 CC_GCJ \
17991 LD_GCJ \
17992 lt_prog_compiler_wl_GCJ \
17993 lt_prog_compiler_pic_GCJ \
17994 lt_prog_compiler_static_GCJ \
17995 lt_prog_compiler_no_builtin_flag_GCJ \
17996 export_dynamic_flag_spec_GCJ \
17997 thread_safe_flag_spec_GCJ \
17998 whole_archive_flag_spec_GCJ \
17999 enable_shared_with_static_runtimes_GCJ \
18000 old_archive_cmds_GCJ \
18001 old_archive_from_new_cmds_GCJ \
18002 predep_objects_GCJ \
18003 postdep_objects_GCJ \
18004 predeps_GCJ \
18005 postdeps_GCJ \
18006 compiler_lib_search_path_GCJ \
18007 archive_cmds_GCJ \
18008 archive_expsym_cmds_GCJ \
18009 postinstall_cmds_GCJ \
18010 postuninstall_cmds_GCJ \
18011 old_archive_from_expsyms_cmds_GCJ \
18012 allow_undefined_flag_GCJ \
18013 no_undefined_flag_GCJ \
18014 export_symbols_cmds_GCJ \
18015 hardcode_libdir_flag_spec_GCJ \
18016 hardcode_libdir_flag_spec_ld_GCJ \
18017 hardcode_libdir_separator_GCJ \
18018 hardcode_automatic_GCJ \
18019 module_cmds_GCJ \
18020 module_expsym_cmds_GCJ \
18021 lt_cv_prog_compiler_c_o_GCJ \
18022 exclude_expsyms_GCJ \
18023 include_expsyms_GCJ; do
18024
18025 case $var in
18026 old_archive_cmds_GCJ | \
18027 old_archive_from_new_cmds_GCJ | \
18028 archive_cmds_GCJ | \
18029 archive_expsym_cmds_GCJ | \
18030 module_cmds_GCJ | \
18031 module_expsym_cmds_GCJ | \
18032 old_archive_from_expsyms_cmds_GCJ | \
18033 export_symbols_cmds_GCJ | \
18034 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18035 postinstall_cmds | postuninstall_cmds | \
18036 old_postinstall_cmds | old_postuninstall_cmds | \
18037 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18038 # Double-quote double-evaled strings.
18039 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18040 ;;
18041 *)
18042 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18043 ;;
18044 esac
18045 done
18046
18047 case $lt_echo in
18048 *'\$0 --fallback-echo"')
18049 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18050 ;;
18051 esac
18052
18053cfgfile="$ofile"
18054
18055 cat <<__EOF__ >> "$cfgfile"
18056# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18057
18058# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18059
18060# Shell to use when invoking shell scripts.
18061SHELL=$lt_SHELL
18062
18063# Whether or not to build shared libraries.
18064build_libtool_libs=$enable_shared
18065
18066# Whether or not to build static libraries.
18067build_old_libs=$enable_static
18068
18069# Whether or not to add -lc for building shared libraries.
18070build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18071
18072# Whether or not to disallow shared libs when runtime libs are static
18073allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18074
18075# Whether or not to optimize for fast installation.
18076fast_install=$enable_fast_install
18077
18078# The host system.
18079host_alias=$host_alias
18080host=$host
18081host_os=$host_os
18082
18083# The build system.
18084build_alias=$build_alias
18085build=$build
18086build_os=$build_os
18087
18088# An echo program that does not interpret backslashes.
18089echo=$lt_echo
18090
18091# The archiver.
18092AR=$lt_AR
18093AR_FLAGS=$lt_AR_FLAGS
18094
18095# A C compiler.
18096LTCC=$lt_LTCC
18097
18098# LTCC compiler flags.
18099LTCFLAGS=$lt_LTCFLAGS
18100
18101# A language-specific compiler.
18102CC=$lt_compiler_GCJ
18103
18104# Is the compiler the GNU C compiler?
18105with_gcc=$GCC_GCJ
18106
18107gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
18108gcc_ver=\`gcc -dumpversion\`
18109
18110# An ERE matcher.
18111EGREP=$lt_EGREP
18112
18113# The linker used to build libraries.
18114LD=$lt_LD_GCJ
18115
18116# Whether we need hard or soft links.
18117LN_S=$lt_LN_S
18118
18119# A BSD-compatible nm program.
18120NM=$lt_NM
18121
18122# A symbol stripping program
18123STRIP=$lt_STRIP
18124
18125# Used to examine libraries when file_magic_cmd begins "file"
18126MAGIC_CMD=$MAGIC_CMD
18127
18128# Used on cygwin: DLL creation program.
18129DLLTOOL="$DLLTOOL"
18130
18131# Used on cygwin: object dumper.
18132OBJDUMP="$OBJDUMP"
18133
18134# Used on cygwin: assembler.
18135AS="$AS"
18136
18137# The name of the directory that contains temporary libtool files.
18138objdir=$objdir
18139
18140# How to create reloadable object files.
18141reload_flag=$lt_reload_flag
18142reload_cmds=$lt_reload_cmds
18143
18144# How to pass a linker flag through the compiler.
18145wl=$lt_lt_prog_compiler_wl_GCJ
18146
18147# Object file suffix (normally "o").
18148objext="$ac_objext"
18149
18150# Old archive suffix (normally "a").
18151libext="$libext"
18152
18153# Shared library suffix (normally ".so").
18154shrext_cmds='$shrext_cmds'
18155
18156# Executable file suffix (normally "").
18157exeext="$exeext"
18158
18159# Additional compiler flags for building library objects.
18160pic_flag=$lt_lt_prog_compiler_pic_GCJ
18161pic_mode=$pic_mode
18162
18163# What is the maximum length of a command?
18164max_cmd_len=$lt_cv_sys_max_cmd_len
18165
18166# Does compiler simultaneously support -c and -o options?
18167compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18168
18169# Must we lock files when doing compilation?
18170need_locks=$lt_need_locks
18171
18172# Do we need the lib prefix for modules?
18173need_lib_prefix=$need_lib_prefix
18174
18175# Do we need a version for libraries?
18176need_version=$need_version
18177
18178# Whether dlopen is supported.
18179dlopen_support=$enable_dlopen
18180
18181# Whether dlopen of programs is supported.
18182dlopen_self=$enable_dlopen_self
18183
18184# Whether dlopen of statically linked programs is supported.
18185dlopen_self_static=$enable_dlopen_self_static
18186
18187# Compiler flag to prevent dynamic linking.
18188link_static_flag=$lt_lt_prog_compiler_static_GCJ
18189
18190# Compiler flag to turn off builtin functions.
18191no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18192
18193# Compiler flag to allow reflexive dlopens.
18194export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18195
18196# Compiler flag to generate shared objects directly from archives.
18197whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18198
18199# Compiler flag to generate thread-safe objects.
18200thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18201
18202# Library versioning type.
18203version_type=$version_type
18204
18205# Format of library name prefix.
18206libname_spec=$lt_libname_spec
18207
18208# List of archive names. First name is the real one, the rest are links.
18209# The last name is the one that the linker finds with -lNAME.
18210library_names_spec=$lt_library_names_spec
18211
18212# The coded name of the library, if different from the real name.
18213soname_spec=$lt_soname_spec
18214
18215# Commands used to build and install an old-style archive.
18216RANLIB=$lt_RANLIB
18217old_archive_cmds=$lt_old_archive_cmds_GCJ
18218old_postinstall_cmds=$lt_old_postinstall_cmds
18219old_postuninstall_cmds=$lt_old_postuninstall_cmds
18220
18221# Create an old-style archive from a shared archive.
18222old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18223
18224# Create a temporary old-style archive to link instead of a shared archive.
18225old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18226
18227# Commands used to build and install a shared archive.
18228archive_cmds=$lt_archive_cmds_GCJ
18229archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18230postinstall_cmds=$lt_postinstall_cmds
18231postuninstall_cmds=$lt_postuninstall_cmds
18232
18233# Commands used to build a loadable module (assumed same as above if empty)
18234module_cmds=$lt_module_cmds_GCJ
18235module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18236
18237# Commands to strip libraries.
18238old_striplib=$lt_old_striplib
18239striplib=$lt_striplib
18240
18241# Dependencies to place before the objects being linked to create a
18242# shared library.
18243predep_objects=\`echo $lt_predep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18244
18245# Dependencies to place after the objects being linked to create a
18246# shared library.
18247postdep_objects=\`echo $lt_postdep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18248
18249# Dependencies to place before the objects being linked to create a
18250# shared library.
18251predeps=$lt_predeps_GCJ
18252
18253# Dependencies to place after the objects being linked to create a
18254# shared library.
18255postdeps=$lt_postdeps_GCJ
18256
18257# The library search path used internally by the compiler when linking
18258# a shared library.
18259compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18260
18261# Method to check whether dependent libraries are shared objects.
18262deplibs_check_method=$lt_deplibs_check_method
18263
18264# Command to use when deplibs_check_method == file_magic.
18265file_magic_cmd=$lt_file_magic_cmd
18266
18267# Flag that allows shared libraries with undefined symbols to be built.
18268allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18269
18270# Flag that forces no undefined symbols.
18271no_undefined_flag=$lt_no_undefined_flag_GCJ
18272
18273# Commands used to finish a libtool library installation in a directory.
18274finish_cmds=$lt_finish_cmds
18275
18276# Same as above, but a single script fragment to be evaled but not shown.
18277finish_eval=$lt_finish_eval
18278
18279# Take the output of nm and produce a listing of raw symbols and C names.
18280global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18281
18282# Transform the output of nm in a proper C declaration
18283global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18284
18285# Transform the output of nm in a C name address pair
18286global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18287
18288# This is the shared library runtime path variable.
18289runpath_var=$runpath_var
18290
18291# This is the shared library path variable.
18292shlibpath_var=$shlibpath_var
18293
18294# Is shlibpath searched before the hard-coded library search path?
18295shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18296
18297# How to hardcode a shared library path into an executable.
18298hardcode_action=$hardcode_action_GCJ
18299
18300# Whether we should hardcode library paths into libraries.
18301hardcode_into_libs=$hardcode_into_libs
18302
18303# Flag to hardcode \$libdir into a binary during linking.
18304# This must work even if \$libdir does not exist.
18305hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18306
18307# If ld is used when linking, flag to hardcode \$libdir into
18308# a binary during linking. This must work even if \$libdir does
18309# not exist.
18310hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18311
18312# Whether we need a single -rpath flag with a separated argument.
18313hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18314
18315# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18316# resulting binary.
18317hardcode_direct=$hardcode_direct_GCJ
18318
18319# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18320# resulting binary.
18321hardcode_minus_L=$hardcode_minus_L_GCJ
18322
18323# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18324# the resulting binary.
18325hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18326
18327# Set to yes if building a shared library automatically hardcodes DIR into the library
18328# and all subsequent libraries and executables linked against it.
18329hardcode_automatic=$hardcode_automatic_GCJ
18330
18331# Variables whose values should be saved in libtool wrapper scripts and
18332# restored at relink time.
18333variables_saved_for_relink="$variables_saved_for_relink"
18334
18335# Whether libtool must link a program against all its dependency libraries.
18336link_all_deplibs=$link_all_deplibs_GCJ
18337
18338# Compile-time system search path for libraries
18339sys_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"\`
18340
18341# Run-time system search path for libraries
18342sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18343
18344# Fix the shell variable \$srcfile for the compiler.
18345fix_srcfile_path="$fix_srcfile_path_GCJ"
18346
18347# Set to yes if exported symbols are required.
18348always_export_symbols=$always_export_symbols_GCJ
18349
18350# The commands to list exported symbols.
18351export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18352
18353# The commands to extract the exported symbol list from a shared archive.
18354extract_expsyms_cmds=$lt_extract_expsyms_cmds
18355
18356# Symbols that should not be listed in the preloaded symbols.
18357exclude_expsyms=$lt_exclude_expsyms_GCJ
18358
18359# Symbols that must always be exported.
18360include_expsyms=$lt_include_expsyms_GCJ
18361
18362# ### END LIBTOOL TAG CONFIG: $tagname
18363
18364__EOF__
18365
18366
18367else
18368 # If there is no Makefile yet, we rely on a make rule to execute
18369 # `config.status --recheck' to rerun these tests and create the
18370 # libtool script then.
18371 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18372 if test -f "$ltmain_in"; then
18373 test -f Makefile && make "$ltmain"
18374 fi
18375fi
18376
18377
18378ac_ext=c
18379ac_cpp='$CPP $CPPFLAGS'
18380ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18381ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18382ac_compiler_gnu=$ac_cv_c_compiler_gnu
18383
18384CC="$lt_save_CC"
18385
18386 else
18387 tagname=""
18388 fi
18389 ;;
18390
18391 RC)
18392
18393
18394
18395# Source file extension for RC test sources.
18396ac_ext=rc
18397
18398# Object file extension for compiled RC test sources.
18399objext=o
18400objext_RC=$objext
18401
18402# Code to be used in simple compile tests
18403lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18404
18405# Code to be used in simple link tests
18406lt_simple_link_test_code="$lt_simple_compile_test_code"
18407
18408# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18409
18410# If no C compiler was specified, use CC.
18411LTCC=${LTCC-"$CC"}
18412
18413# If no C compiler flags were specified, use CFLAGS.
18414LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18415
18416# Allow CC to be a program name with arguments.
18417compiler=$CC
18418
18419
18420# save warnings/boilerplate of simple test code
18421ac_outfile=conftest.$ac_objext
18422printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18423eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18424_lt_compiler_boilerplate=`cat conftest.err`
18425$rm conftest*
18426
18427ac_outfile=conftest.$ac_objext
18428printf "$lt_simple_link_test_code" >conftest.$ac_ext
18429eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18430_lt_linker_boilerplate=`cat conftest.err`
18431$rm conftest*
18432
18433
18434# Allow CC to be a program name with arguments.
18435lt_save_CC="$CC"
18436CC=${RC-"windres"}
18437compiler=$CC
18438compiler_RC=$CC
18439for cc_temp in $compiler""; do
18440 case $cc_temp in
18441 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18442 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18443 \-*) ;;
18444 *) break;;
18445 esac
18446done
18447cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18448
18449lt_cv_prog_compiler_c_o_RC=yes
18450
18451# The else clause should only fire when bootstrapping the
18452# libtool distribution, otherwise you forgot to ship ltmain.sh
18453# with your package, and you will get complaints that there are
18454# no rules to generate ltmain.sh.
18455if test -f "$ltmain"; then
18456 # See if we are running on zsh, and set the options which allow our commands through
18457 # without removal of \ escapes.
18458 if test -n "${ZSH_VERSION+set}" ; then
18459 setopt NO_GLOB_SUBST
18460 fi
18461 # Now quote all the things that may contain metacharacters while being
18462 # careful not to overquote the AC_SUBSTed values. We take copies of the
18463 # variables and quote the copies for generation of the libtool script.
18464 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18465 SED SHELL STRIP \
18466 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18467 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18468 deplibs_check_method reload_flag reload_cmds need_locks \
18469 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18470 lt_cv_sys_global_symbol_to_c_name_address \
18471 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18472 old_postinstall_cmds old_postuninstall_cmds \
18473 compiler_RC \
18474 CC_RC \
18475 LD_RC \
18476 lt_prog_compiler_wl_RC \
18477 lt_prog_compiler_pic_RC \
18478 lt_prog_compiler_static_RC \
18479 lt_prog_compiler_no_builtin_flag_RC \
18480 export_dynamic_flag_spec_RC \
18481 thread_safe_flag_spec_RC \
18482 whole_archive_flag_spec_RC \
18483 enable_shared_with_static_runtimes_RC \
18484 old_archive_cmds_RC \
18485 old_archive_from_new_cmds_RC \
18486 predep_objects_RC \
18487 postdep_objects_RC \
18488 predeps_RC \
18489 postdeps_RC \
18490 compiler_lib_search_path_RC \
18491 archive_cmds_RC \
18492 archive_expsym_cmds_RC \
18493 postinstall_cmds_RC \
18494 postuninstall_cmds_RC \
18495 old_archive_from_expsyms_cmds_RC \
18496 allow_undefined_flag_RC \
18497 no_undefined_flag_RC \
18498 export_symbols_cmds_RC \
18499 hardcode_libdir_flag_spec_RC \
18500 hardcode_libdir_flag_spec_ld_RC \
18501 hardcode_libdir_separator_RC \
18502 hardcode_automatic_RC \
18503 module_cmds_RC \
18504 module_expsym_cmds_RC \
18505 lt_cv_prog_compiler_c_o_RC \
18506 exclude_expsyms_RC \
18507 include_expsyms_RC; do
18508
18509 case $var in
18510 old_archive_cmds_RC | \
18511 old_archive_from_new_cmds_RC | \
18512 archive_cmds_RC | \
18513 archive_expsym_cmds_RC | \
18514 module_cmds_RC | \
18515 module_expsym_cmds_RC | \
18516 old_archive_from_expsyms_cmds_RC | \
18517 export_symbols_cmds_RC | \
18518 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18519 postinstall_cmds | postuninstall_cmds | \
18520 old_postinstall_cmds | old_postuninstall_cmds | \
18521 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18522 # Double-quote double-evaled strings.
18523 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18524 ;;
18525 *)
18526 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18527 ;;
18528 esac
18529 done
18530
18531 case $lt_echo in
18532 *'\$0 --fallback-echo"')
18533 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18534 ;;
18535 esac
18536
18537cfgfile="$ofile"
18538
18539 cat <<__EOF__ >> "$cfgfile"
18540# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18541
18542# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18543
18544# Shell to use when invoking shell scripts.
18545SHELL=$lt_SHELL
18546
18547# Whether or not to build shared libraries.
18548build_libtool_libs=$enable_shared
18549
18550# Whether or not to build static libraries.
18551build_old_libs=$enable_static
18552
18553# Whether or not to add -lc for building shared libraries.
18554build_libtool_need_lc=$archive_cmds_need_lc_RC
18555
18556# Whether or not to disallow shared libs when runtime libs are static
18557allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18558
18559# Whether or not to optimize for fast installation.
18560fast_install=$enable_fast_install
18561
18562# The host system.
18563host_alias=$host_alias
18564host=$host
18565host_os=$host_os
18566
18567# The build system.
18568build_alias=$build_alias
18569build=$build
18570build_os=$build_os
18571
18572# An echo program that does not interpret backslashes.
18573echo=$lt_echo
18574
18575# The archiver.
18576AR=$lt_AR
18577AR_FLAGS=$lt_AR_FLAGS
18578
18579# A C compiler.
18580LTCC=$lt_LTCC
18581
18582# LTCC compiler flags.
18583LTCFLAGS=$lt_LTCFLAGS
18584
18585# A language-specific compiler.
18586CC=$lt_compiler_RC
18587
18588# Is the compiler the GNU C compiler?
18589with_gcc=$GCC_RC
18590
18591gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
18592gcc_ver=\`gcc -dumpversion\`
18593
18594# An ERE matcher.
18595EGREP=$lt_EGREP
18596
18597# The linker used to build libraries.
18598LD=$lt_LD_RC
18599
18600# Whether we need hard or soft links.
18601LN_S=$lt_LN_S
18602
18603# A BSD-compatible nm program.
18604NM=$lt_NM
18605
18606# A symbol stripping program
18607STRIP=$lt_STRIP
18608
18609# Used to examine libraries when file_magic_cmd begins "file"
18610MAGIC_CMD=$MAGIC_CMD
18611
18612# Used on cygwin: DLL creation program.
18613DLLTOOL="$DLLTOOL"
18614
18615# Used on cygwin: object dumper.
18616OBJDUMP="$OBJDUMP"
18617
18618# Used on cygwin: assembler.
18619AS="$AS"
18620
18621# The name of the directory that contains temporary libtool files.
18622objdir=$objdir
18623
18624# How to create reloadable object files.
18625reload_flag=$lt_reload_flag
18626reload_cmds=$lt_reload_cmds
18627
18628# How to pass a linker flag through the compiler.
18629wl=$lt_lt_prog_compiler_wl_RC
18630
18631# Object file suffix (normally "o").
18632objext="$ac_objext"
18633
18634# Old archive suffix (normally "a").
18635libext="$libext"
18636
18637# Shared library suffix (normally ".so").
18638shrext_cmds='$shrext_cmds'
18639
18640# Executable file suffix (normally "").
18641exeext="$exeext"
18642
18643# Additional compiler flags for building library objects.
18644pic_flag=$lt_lt_prog_compiler_pic_RC
18645pic_mode=$pic_mode
18646
18647# What is the maximum length of a command?
18648max_cmd_len=$lt_cv_sys_max_cmd_len
18649
18650# Does compiler simultaneously support -c and -o options?
18651compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18652
18653# Must we lock files when doing compilation?
18654need_locks=$lt_need_locks
18655
18656# Do we need the lib prefix for modules?
18657need_lib_prefix=$need_lib_prefix
18658
18659# Do we need a version for libraries?
18660need_version=$need_version
18661
18662# Whether dlopen is supported.
18663dlopen_support=$enable_dlopen
18664
18665# Whether dlopen of programs is supported.
18666dlopen_self=$enable_dlopen_self
18667
18668# Whether dlopen of statically linked programs is supported.
18669dlopen_self_static=$enable_dlopen_self_static
18670
18671# Compiler flag to prevent dynamic linking.
18672link_static_flag=$lt_lt_prog_compiler_static_RC
18673
18674# Compiler flag to turn off builtin functions.
18675no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18676
18677# Compiler flag to allow reflexive dlopens.
18678export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18679
18680# Compiler flag to generate shared objects directly from archives.
18681whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18682
18683# Compiler flag to generate thread-safe objects.
18684thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18685
18686# Library versioning type.
18687version_type=$version_type
18688
18689# Format of library name prefix.
18690libname_spec=$lt_libname_spec
18691
18692# List of archive names. First name is the real one, the rest are links.
18693# The last name is the one that the linker finds with -lNAME.
18694library_names_spec=$lt_library_names_spec
18695
18696# The coded name of the library, if different from the real name.
18697soname_spec=$lt_soname_spec
18698
18699# Commands used to build and install an old-style archive.
18700RANLIB=$lt_RANLIB
18701old_archive_cmds=$lt_old_archive_cmds_RC
18702old_postinstall_cmds=$lt_old_postinstall_cmds
18703old_postuninstall_cmds=$lt_old_postuninstall_cmds
18704
18705# Create an old-style archive from a shared archive.
18706old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18707
18708# Create a temporary old-style archive to link instead of a shared archive.
18709old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18710
18711# Commands used to build and install a shared archive.
18712archive_cmds=$lt_archive_cmds_RC
18713archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18714postinstall_cmds=$lt_postinstall_cmds
18715postuninstall_cmds=$lt_postuninstall_cmds
18716
18717# Commands used to build a loadable module (assumed same as above if empty)
18718module_cmds=$lt_module_cmds_RC
18719module_expsym_cmds=$lt_module_expsym_cmds_RC
18720
18721# Commands to strip libraries.
18722old_striplib=$lt_old_striplib
18723striplib=$lt_striplib
18724
18725# Dependencies to place before the objects being linked to create a
18726# shared library.
18727predep_objects=\`echo $lt_predep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18728
18729# Dependencies to place after the objects being linked to create a
18730# shared library.
18731postdep_objects=\`echo $lt_postdep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18732
18733# Dependencies to place before the objects being linked to create a
18734# shared library.
18735predeps=$lt_predeps_RC
18736
18737# Dependencies to place after the objects being linked to create a
18738# shared library.
18739postdeps=$lt_postdeps_RC
18740
18741# The library search path used internally by the compiler when linking
18742# a shared library.
18743compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18744
18745# Method to check whether dependent libraries are shared objects.
18746deplibs_check_method=$lt_deplibs_check_method
18747
18748# Command to use when deplibs_check_method == file_magic.
18749file_magic_cmd=$lt_file_magic_cmd
18750
18751# Flag that allows shared libraries with undefined symbols to be built.
18752allow_undefined_flag=$lt_allow_undefined_flag_RC
18753
18754# Flag that forces no undefined symbols.
18755no_undefined_flag=$lt_no_undefined_flag_RC
18756
18757# Commands used to finish a libtool library installation in a directory.
18758finish_cmds=$lt_finish_cmds
18759
18760# Same as above, but a single script fragment to be evaled but not shown.
18761finish_eval=$lt_finish_eval
18762
18763# Take the output of nm and produce a listing of raw symbols and C names.
18764global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18765
18766# Transform the output of nm in a proper C declaration
18767global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18768
18769# Transform the output of nm in a C name address pair
18770global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18771
18772# This is the shared library runtime path variable.
18773runpath_var=$runpath_var
18774
18775# This is the shared library path variable.
18776shlibpath_var=$shlibpath_var
18777
18778# Is shlibpath searched before the hard-coded library search path?
18779shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18780
18781# How to hardcode a shared library path into an executable.
18782hardcode_action=$hardcode_action_RC
18783
18784# Whether we should hardcode library paths into libraries.
18785hardcode_into_libs=$hardcode_into_libs
18786
18787# Flag to hardcode \$libdir into a binary during linking.
18788# This must work even if \$libdir does not exist.
18789hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18790
18791# If ld is used when linking, flag to hardcode \$libdir into
18792# a binary during linking. This must work even if \$libdir does
18793# not exist.
18794hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18795
18796# Whether we need a single -rpath flag with a separated argument.
18797hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18798
18799# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18800# resulting binary.
18801hardcode_direct=$hardcode_direct_RC
18802
18803# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18804# resulting binary.
18805hardcode_minus_L=$hardcode_minus_L_RC
18806
18807# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18808# the resulting binary.
18809hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18810
18811# Set to yes if building a shared library automatically hardcodes DIR into the library
18812# and all subsequent libraries and executables linked against it.
18813hardcode_automatic=$hardcode_automatic_RC
18814
18815# Variables whose values should be saved in libtool wrapper scripts and
18816# restored at relink time.
18817variables_saved_for_relink="$variables_saved_for_relink"
18818
18819# Whether libtool must link a program against all its dependency libraries.
18820link_all_deplibs=$link_all_deplibs_RC
18821
18822# Compile-time system search path for libraries
18823sys_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"\`
18824
18825# Run-time system search path for libraries
18826sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18827
18828# Fix the shell variable \$srcfile for the compiler.
18829fix_srcfile_path="$fix_srcfile_path_RC"
18830
18831# Set to yes if exported symbols are required.
18832always_export_symbols=$always_export_symbols_RC
18833
18834# The commands to list exported symbols.
18835export_symbols_cmds=$lt_export_symbols_cmds_RC
18836
18837# The commands to extract the exported symbol list from a shared archive.
18838extract_expsyms_cmds=$lt_extract_expsyms_cmds
18839
18840# Symbols that should not be listed in the preloaded symbols.
18841exclude_expsyms=$lt_exclude_expsyms_RC
18842
18843# Symbols that must always be exported.
18844include_expsyms=$lt_include_expsyms_RC
18845
18846# ### END LIBTOOL TAG CONFIG: $tagname
18847
18848__EOF__
18849
18850
18851else
18852 # If there is no Makefile yet, we rely on a make rule to execute
18853 # `config.status --recheck' to rerun these tests and create the
18854 # libtool script then.
18855 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18856 if test -f "$ltmain_in"; then
18857 test -f Makefile && make "$ltmain"
18858 fi
18859fi
18860
18861
18862ac_ext=c
18863ac_cpp='$CPP $CPPFLAGS'
18864ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18865ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18866ac_compiler_gnu=$ac_cv_c_compiler_gnu
18867
18868CC="$lt_save_CC"
18869
18870 ;;
18871
18872 *)
18873 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18874echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18875 { (exit 1); exit 1; }; }
18876 ;;
18877 esac
18878
18879 # Append the new tag name to the list of available tags.
18880 if test -n "$tagname" ; then
18881 available_tags="$available_tags $tagname"
18882 fi
18883 fi
18884 done
18885 IFS="$lt_save_ifs"
18886
18887 # Now substitute the updated list of available tags.
18888 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18889 mv "${ofile}T" "$ofile"
18890 chmod +x "$ofile"
18891 else
18892 rm -f "${ofile}T"
18893 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18894echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18895 { (exit 1); exit 1; }; }
18896 fi
18897fi
18898
18899
18900
18901# This can be used to rebuild libtool when needed
18902LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18903
18904# Always use our own libtool.
18905LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18906
18907# Prevent multiple expansion
18908
18909
18910
18911
18912
18913
18914
18915
18916
18917
18918
18919
18920
18921
18922
18923
18924
18925
18926
18927
bf9f3bac 18928
86933a6e
BB
18929
18930 echo "$as_me:$LINENO: checking spl license" >&5
18931echo $ECHO_N "checking spl license... $ECHO_C" >&6
18932 LICENSE=GPL
18933 echo "$as_me:$LINENO: result: $LICENSE" >&5
18934echo "${ECHO_T}$LICENSE" >&6
18935 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DHAVE_GPL_ONLY_SYMBOLS"
18936
18937
18938
18939 SPL_CONFIG=all
18940
18941# Check whether --with-config or --without-config was given.
18942if test "${with_config+set}" = set; then
18943 withval="$with_config"
18944 SPL_CONFIG="$withval"
18945fi;
18946
18947 echo "$as_me:$LINENO: checking spl config" >&5
18948echo $ECHO_N "checking spl config... $ECHO_C" >&6
18949 echo "$as_me:$LINENO: result: $SPL_CONFIG" >&5
18950echo "${ECHO_T}$SPL_CONFIG" >&6;
18951
18952
18953 case "$SPL_CONFIG" in
18954 kernel)
18955
18956
18957# Check whether --with-linux or --without-linux was given.
18958if test "${with_linux+set}" = set; then
18959 withval="$with_linux"
18960 kernelsrc="$withval"
18961fi;
18962
18963
18964# Check whether --with-linux-obj or --without-linux-obj was given.
18965if test "${with_linux_obj+set}" = set; then
18966 withval="$with_linux_obj"
18967 kernelbuild="$withval"
18968fi;
18969
18970 echo "$as_me:$LINENO: checking kernel source directory" >&5
18971echo $ECHO_N "checking kernel source directory... $ECHO_C" >&6
18972 if test -z "$kernelsrc"; then
18973 sourcelink=`ls -1d /usr/src/kernels/* /usr/src/linux-* \
18974 2>/dev/null | grep -v obj | tail -1`
18975
18976 if test -e ${sourcelink}; then
18977 kernelsrc=`readlink -f ${sourcelink}`
18978 else
18979 echo "$as_me:$LINENO: result: Not found" >&5
18980echo "${ECHO_T}Not found" >&6
18981 { { echo "$as_me:$LINENO: error:
18982 *** Please specify the location of the kernel source
18983 *** with the '--with-linux=PATH' option" >&5
18984echo "$as_me: error:
18985 *** Please specify the location of the kernel source
18986 *** with the '--with-linux=PATH' option" >&2;}
18987 { (exit 1); exit 1; }; }
18988 fi
18989 else
18990 if test "$kernelsrc" = "NONE"; then
18991 kernsrcver=NONE
18992 fi
18993 fi
18994
18995 echo "$as_me:$LINENO: result: $kernelsrc" >&5
18996echo "${ECHO_T}$kernelsrc" >&6
18997 echo "$as_me:$LINENO: checking kernel build directory" >&5
18998echo $ECHO_N "checking kernel build directory... $ECHO_C" >&6
18999 if test -z "$kernelbuild"; then
19000 if test -d ${kernelsrc}-obj; then
19001 kernelbuild=${kernelsrc}-obj/`arch`/`arch`
19002 elif test -d `dirname ${kernelsrc}`/build-`arch`; then
19003 kernelbuild=`dirname ${kernelsrc}`/build-`arch`
19004 else
19005 kernelbuild=${kernelsrc}
19006 fi
19007 fi
19008 echo "$as_me:$LINENO: result: $kernelbuild" >&5
19009echo "${ECHO_T}$kernelbuild" >&6
19010
19011 echo "$as_me:$LINENO: checking kernel source version" >&5
19012echo $ECHO_N "checking kernel source version... $ECHO_C" >&6
19013 if test -r $kernelbuild/include/linux/version.h &&
19014 fgrep -q UTS_RELEASE $kernelbuild/include/linux/version.h; then
19015
19016 kernsrcver=`(echo "#include <linux/version.h>";
19017 echo "kernsrcver=UTS_RELEASE") |
19018 cpp -I $kernelbuild/include |
19019 grep "^kernsrcver=" | cut -d \" -f 2`
19020
19021 elif test -r $kernelbuild/include/linux/utsrelease.h &&
19022 fgrep -q UTS_RELEASE $kernelbuild/include/linux/utsrelease.h; then
19023
19024 kernsrcver=`(echo "#include <linux/utsrelease.h>";
19025 echo "kernsrcver=UTS_RELEASE") |
19026 cpp -I $kernelbuild/include |
19027 grep "^kernsrcver=" | cut -d \" -f 2`
19028 fi
19029
19030 if test -z "$kernsrcver"; then
19031 echo "$as_me:$LINENO: result: Not found" >&5
19032echo "${ECHO_T}Not found" >&6
19033 { { echo "$as_me:$LINENO: error:
19034 *** Cannot determine the version of the linux kernel source.
19035 *** Please prepare the kernel before running this script" >&5
19036echo "$as_me: error:
19037 *** Cannot determine the version of the linux kernel source.
19038 *** Please prepare the kernel before running this script" >&2;}
19039 { (exit 1); exit 1; }; }
19040 fi
19041
19042 echo "$as_me:$LINENO: result: $kernsrcver" >&5
19043echo "${ECHO_T}$kernsrcver" >&6
19044
19045 LINUX=${kernelsrc}
19046 LINUX_OBJ=${kernelbuild}
19047 LINUX_VERSION=${kernsrcver}
19048
19049
19050
19051
19052
19053
19054 echo "$as_me:$LINENO: checking kernel file name for module symbols" >&5
19055echo $ECHO_N "checking kernel file name for module symbols... $ECHO_C" >&6
19056 if grep -q Modules.symvers $LINUX/scripts/Makefile.modpost; then
19057 LINUX_SYMBOLS=Modules.symvers
19058 else
19059 LINUX_SYMBOLS=Module.symvers
19060 fi
19061 echo "$as_me:$LINENO: result: $LINUX_SYMBOLS" >&5
19062echo "${ECHO_T}$LINUX_SYMBOLS" >&6
19063
19064
19065
19066
19067 KERNELMAKE_PARAMS="V=1"
19068
19069 abs_srcdir=`readlink -f ${srcdir}`
19070 KERNELCPPFLAGS="$KERNELCPPFLAGS -Wstrict-prototypes -Werror"
19071 KERNELCPPFLAGS="$KERNELCPPFLAGS -I${abs_srcdir} -I${abs_srcdir}/include"
19072
19073 if test "${LINUX_OBJ}" != "${LINUX}"; then
19074 KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
19075 fi
19076
19077
19078
19079
19080
19081 echo "$as_me:$LINENO: checking whether debugging is enabled" >&5
19082echo $ECHO_N "checking whether debugging is enabled... $ECHO_C" >&6
19083 # Check whether --enable-debug or --disable-debug was given.
19084if test "${enable_debug+set}" = set; then
19085 enableval="$enable_debug"
19086 case "$enableval" in
19087 yes) spl_ac_debug=yes ;;
19088 no) spl_ac_debug=no ;;
19089 *) echo "$as_me:$LINENO: result: Error!" >&5
19090echo "${ECHO_T}Error!" >&6
19091 { { echo "$as_me:$LINENO: error: Bad value \"$enableval\" for --enable-debug" >&5
19092echo "$as_me: error: Bad value \"$enableval\" for --enable-debug" >&2;}
19093 { (exit 1); exit 1; }; } ;;
19094 esac
19095
19096fi;
19097 if test "$spl_ac_debug" = yes; then
19098 echo "$as_me:$LINENO: result: yes" >&5
19099echo "${ECHO_T}yes" >&6
19100 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG"
19101 else
19102 echo "$as_me:$LINENO: result: no" >&5
19103echo "${ECHO_T}no" >&6
19104 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DNDEBUG"
19105 fi
19106
19107
19108 echo "$as_me:$LINENO: checking whether kmem debugging is enabled" >&5
19109echo $ECHO_N "checking whether kmem debugging is enabled... $ECHO_C" >&6
19110 # Check whether --enable-debug-kmem or --disable-debug-kmem was given.
19111if test "${enable_debug_kmem+set}" = set; then
19112 enableval="$enable_debug_kmem"
19113 case "$enableval" in
19114 yes) spl_ac_debug_kmem=yes ;;
19115 no) spl_ac_debug_kmem=no ;;
19116 *) echo "$as_me:$LINENO: result: Error!" >&5
19117echo "${ECHO_T}Error!" >&6
19118 { { echo "$as_me:$LINENO: error: Bad value \"$enableval\" for --enable-debug-kmem" >&5
19119echo "$as_me: error: Bad value \"$enableval\" for --enable-debug-kmem" >&2;}
19120 { (exit 1); exit 1; }; } ;;
19121 esac
19122
19123fi;
19124 if test "$spl_ac_debug_kmem" = yes; then
19125 echo "$as_me:$LINENO: result: yes" >&5
19126echo "${ECHO_T}yes" >&6
19127
19128cat >>confdefs.h <<\_ACEOF
19129#define DEBUG_KMEM 1
19130_ACEOF
19131
19132 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_KMEM"
19133 else
19134 echo "$as_me:$LINENO: result: no" >&5
19135echo "${ECHO_T}no" >&6
19136 fi
19137
19138
19139 echo "$as_me:$LINENO: checking whether mutex debugging is enabled" >&5
19140echo $ECHO_N "checking whether mutex debugging is enabled... $ECHO_C" >&6
19141 # Check whether --enable-debug-mutex or --disable-debug-mutex was given.
19142if test "${enable_debug_mutex+set}" = set; then
19143 enableval="$enable_debug_mutex"
19144 case "$enableval" in
19145 yes) spl_ac_debug_mutex=yes ;;
19146 no) spl_ac_debug_mutex=no ;;
19147 *) echo "$as_me:$LINENO: result: Error!" >&5
19148echo "${ECHO_T}Error!" >&6
19149 { { echo "$as_me:$LINENO: error: Bad value \"$enableval\" for --enable-debug-mutex" >&5
19150echo "$as_me: error: Bad value \"$enableval\" for --enable-debug-mutex" >&2;}
19151 { (exit 1); exit 1; }; } ;;
19152 esac
19153
19154fi;
19155 if test "$spl_ac_debug_mutex" = yes; then
19156 echo "$as_me:$LINENO: result: yes" >&5
19157echo "${ECHO_T}yes" >&6
19158
19159cat >>confdefs.h <<\_ACEOF
19160#define DEBUG_MUTEX 1
19161_ACEOF
19162
19163 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_MUTEX"
19164 else
19165 echo "$as_me:$LINENO: result: no" >&5
19166echo "${ECHO_T}no" >&6
19167 fi
19168
19169
19170 echo "$as_me:$LINENO: checking whether kstat debugging is enabled" >&5
19171echo $ECHO_N "checking whether kstat debugging is enabled... $ECHO_C" >&6
19172 # Check whether --enable-debug-kstat or --disable-debug-kstat was given.
19173if test "${enable_debug_kstat+set}" = set; then
19174 enableval="$enable_debug_kstat"
19175 case "$enableval" in
19176 yes) spl_ac_debug_kstat=yes ;;
19177 no) spl_ac_debug_kstat=no ;;
19178 *) echo "$as_me:$LINENO: result: Error!" >&5
19179echo "${ECHO_T}Error!" >&6
19180 { { echo "$as_me:$LINENO: error: Bad value \"$enableval\" for --enable-debug-kstat" >&5
19181echo "$as_me: error: Bad value \"$enableval\" for --enable-debug-kstat" >&2;}
19182 { (exit 1); exit 1; }; } ;;
19183 esac
19184
19185fi;
19186 if test "$spl_ac_debug_kstat" = yes; then
19187 echo "$as_me:$LINENO: result: yes" >&5
19188echo "${ECHO_T}yes" >&6
19189
19190cat >>confdefs.h <<\_ACEOF
19191#define DEBUG_KSTAT 1
19192_ACEOF
19193
19194 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_KSTAT"
19195 else
19196 echo "$as_me:$LINENO: result: no" >&5
19197echo "${ECHO_T}no" >&6
19198 fi
19199
19200
19201 echo "$as_me:$LINENO: checking whether callb debugging is enabled" >&5
19202echo $ECHO_N "checking whether callb debugging is enabled... $ECHO_C" >&6
19203 # Check whether --enable-debug-callb or --disable-debug-callb was given.
19204if test "${enable_debug_callb+set}" = set; then
19205 enableval="$enable_debug_callb"
19206 case "$enableval" in
19207 yes) spl_ac_debug_callb=yes ;;
19208 no) spl_ac_debug_callb=no ;;
19209 *) echo "$as_me:$LINENO: result: Error!" >&5
19210echo "${ECHO_T}Error!" >&6
19211 { { echo "$as_me:$LINENO: error: Bad value \"$enableval\" for --enable-debug-callb" >&5
19212echo "$as_me: error: Bad value \"$enableval\" for --enable-debug-callb" >&2;}
19213 { (exit 1); exit 1; }; } ;;
19214 esac
19215
19216fi;
19217 if test "$spl_ac_debug_callb" = yes; then
19218 echo "$as_me:$LINENO: result: yes" >&5
19219echo "${ECHO_T}yes" >&6
19220
19221cat >>confdefs.h <<\_ACEOF
19222#define DEBUG_CALLB 1
19223_ACEOF
19224
19225 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_CALLB"
19226 else
19227 echo "$as_me:$LINENO: result: no" >&5
19228echo "${ECHO_T}no" >&6
19229 fi
19230
19231 echo "$as_me:$LINENO: checking whether kernel defines uintptr_t" >&5
19232echo $ECHO_N "checking whether kernel defines uintptr_t... $ECHO_C" >&6
19233
19234
19235cat >conftest.c <<_ACEOF
19236/* confdefs.h. */
19237_ACEOF
19238cat confdefs.h >>conftest.$ac_ext
19239cat >>conftest.$ac_ext <<_ACEOF
19240/* end confdefs.h. */
19241
19242
19243 #include <linux/types.h>
19244
19245int
19246main (void)
19247{
19248
19249 uintptr_t *ptr;
19250
19251 ;
19252 return 0;
19253}
19254
19255_ACEOF
19256
19257
19258 rm -Rf build && mkdir -p build
19259 echo "obj-m := conftest.o" >build/Makefile
19260 if { ac_try='cp conftest.c build && make modules LINUXINCLUDE="-Iinclude -Iinclude2 -I$LINUX/include -include include/linux/autoconf.h" -o tmp_include_depends -o scripts -o include/config/MARKER -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19262 (eval $ac_try) 2>&5
19263 ac_status=$?
19264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19265 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19267 (eval $ac_try) 2>&5
19268 ac_status=$?
19269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19270 (exit $ac_status); }; }; then
19271
19272 echo "$as_me:$LINENO: result: yes" >&5
19273echo "${ECHO_T}yes" >&6
19274
19275cat >>confdefs.h <<\_ACEOF
19276#define HAVE_UINTPTR_T 1
19277_ACEOF
19278
19279
19280else
19281 echo "$as_me: failed program was:" >&5
19282sed 's/^/| /' conftest.$ac_ext >&5
19283
19284 echo "$as_me:$LINENO: result: no" >&5
19285echo "${ECHO_T}no" >&6
19286
19287
19288
19289fi
19290
19291 rm -Rf build
19292
19293
19294
19295 echo "$as_me:$LINENO: checking whether kernel defines atomic64_t" >&5
19296echo $ECHO_N "checking whether kernel defines atomic64_t... $ECHO_C" >&6
19297
19298
19299cat >conftest.c <<_ACEOF
19300/* confdefs.h. */
19301_ACEOF
19302cat confdefs.h >>conftest.$ac_ext
19303cat >>conftest.$ac_ext <<_ACEOF
19304/* end confdefs.h. */
19305
19306
19307 #include <asm/atomic.h>
19308
19309int
19310main (void)
19311{
19312
19313 atomic64_t *ptr;
19314
19315 ;
19316 return 0;
19317}
19318
19319_ACEOF
19320
19321
19322 rm -Rf build && mkdir -p build
19323 echo "obj-m := conftest.o" >build/Makefile
19324 if { ac_try='cp conftest.c build && make modules LINUXINCLUDE="-Iinclude -Iinclude2 -I$LINUX/include -include include/linux/autoconf.h" -o tmp_include_depends -o scripts -o include/config/MARKER -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19326 (eval $ac_try) 2>&5
19327 ac_status=$?
19328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19329 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19331 (eval $ac_try) 2>&5
19332 ac_status=$?
19333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19334 (exit $ac_status); }; }; then
19335
19336 echo "$as_me:$LINENO: result: yes" >&5
19337echo "${ECHO_T}yes" >&6
19338
19339cat >>confdefs.h <<\_ACEOF
19340#define HAVE_ATOMIC64_T 1
19341_ACEOF
19342
19343
19344else
19345 echo "$as_me: failed program was:" >&5
19346sed 's/^/| /' conftest.$ac_ext >&5
19347
19348 echo "$as_me:$LINENO: result: no" >&5
19349echo "${ECHO_T}no" >&6
19350
19351
19352
19353fi
19354
19355 rm -Rf build
19356
19357
19358
19359 echo "$as_me:$LINENO: checking whether INIT_WORK wants 3 args" >&5
19360echo $ECHO_N "checking whether INIT_WORK wants 3 args... $ECHO_C" >&6
19361
19362
19363cat >conftest.c <<_ACEOF
19364/* confdefs.h. */
19365_ACEOF
19366cat confdefs.h >>conftest.$ac_ext
19367cat >>conftest.$ac_ext <<_ACEOF
19368/* end confdefs.h. */
19369
19370
19371 #include <linux/workqueue.h>
19372
19373int
19374main (void)
19375{
19376
19377 struct work_struct work;
19378 INIT_WORK(&work, NULL, NULL);
19379
19380 ;
19381 return 0;
19382}
19383
19384_ACEOF
19385
19386
19387 rm -Rf build && mkdir -p build
19388 echo "obj-m := conftest.o" >build/Makefile
19389 if { ac_try='cp conftest.c build && make modules LINUXINCLUDE="-Iinclude -Iinclude2 -I$LINUX/include -include include/linux/autoconf.h" -o tmp_include_depends -o scripts -o include/config/MARKER -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19391 (eval $ac_try) 2>&5
19392 ac_status=$?
19393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19394 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19396 (eval $ac_try) 2>&5
19397 ac_status=$?
19398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19399 (exit $ac_status); }; }; then
19400
19401 echo "$as_me:$LINENO: result: yes" >&5
19402echo "${ECHO_T}yes" >&6
19403
19404cat >>confdefs.h <<\_ACEOF
19405#define HAVE_3ARGS_INIT_WORK 1
19406_ACEOF
19407
19408
19409else
19410 echo "$as_me: failed program was:" >&5
19411sed 's/^/| /' conftest.$ac_ext >&5
19412
19413 echo "$as_me:$LINENO: result: no" >&5
19414echo "${ECHO_T}no" >&6
19415
19416
19417
19418fi
19419
19420 rm -Rf build
19421
19422
19423
19424 echo "$as_me:$LINENO: checking whether register_sysctl_table() wants 2 args" >&5
19425echo $ECHO_N "checking whether register_sysctl_table() wants 2 args... $ECHO_C" >&6
19426
19427
19428cat >conftest.c <<_ACEOF
19429/* confdefs.h. */
19430_ACEOF
19431cat confdefs.h >>conftest.$ac_ext
19432cat >>conftest.$ac_ext <<_ACEOF
19433/* end confdefs.h. */
19434
19435
19436 #include <linux/sysctl.h>
19437
19438int
19439main (void)
19440{
19441
19442 return register_sysctl_table(NULL,0);
19443
19444 ;
19445 return 0;
19446}
19447
19448_ACEOF
19449
19450
19451 rm -Rf build && mkdir -p build
19452 echo "obj-m := conftest.o" >build/Makefile
19453 if { ac_try='cp conftest.c build && make modules LINUXINCLUDE="-Iinclude -Iinclude2 -I$LINUX/include -include include/linux/autoconf.h" -o tmp_include_depends -o scripts -o include/config/MARKER -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19455 (eval $ac_try) 2>&5
19456 ac_status=$?
19457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19458 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19460 (eval $ac_try) 2>&5
19461 ac_status=$?
19462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19463 (exit $ac_status); }; }; then
19464
19465 echo "$as_me:$LINENO: result: yes" >&5
19466echo "${ECHO_T}yes" >&6
19467
19468cat >>confdefs.h <<\_ACEOF
19469#define HAVE_2ARGS_REGISTER_SYSCTL 1
19470_ACEOF
19471
19472
19473else
19474 echo "$as_me: failed program was:" >&5
19475sed 's/^/| /' conftest.$ac_ext >&5
19476
19477 echo "$as_me:$LINENO: result: no" >&5
19478echo "${ECHO_T}no" >&6
19479
19480
19481
19482fi
19483
19484 rm -Rf build
19485
19486
19487
19488
19489 echo "$as_me:$LINENO: checking whether set_shrinker() available" >&5
19490echo $ECHO_N "checking whether set_shrinker() available... $ECHO_C" >&6
19491
19492
19493cat >conftest.c <<_ACEOF
19494/* confdefs.h. */
19495_ACEOF
19496cat confdefs.h >>conftest.$ac_ext
19497cat >>conftest.$ac_ext <<_ACEOF
19498/* end confdefs.h. */
19499
19500
19501 #include <linux/mm.h>
19502
19503int
19504main (void)
19505{
19506
19507 return set_shrinker(DEFAULT_SEEKS, NULL);
19508
19509 ;
19510 return 0;
19511}
19512
19513_ACEOF
19514
19515
19516 rm -Rf build && mkdir -p build
19517 echo "obj-m := conftest.o" >build/Makefile
19518 if { ac_try='cp conftest.c build && make modules LINUXINCLUDE="-Iinclude -Iinclude2 -I$LINUX/include -include include/linux/autoconf.h" -o tmp_include_depends -o scripts -o include/config/MARKER -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19520 (eval $ac_try) 2>&5
19521 ac_status=$?
19522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19523 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19525 (eval $ac_try) 2>&5
19526 ac_status=$?
19527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19528 (exit $ac_status); }; }; then
19529
19530 echo "$as_me:$LINENO: result: yes" >&5
19531echo "${ECHO_T}yes" >&6
19532
19533cat >>confdefs.h <<\_ACEOF
19534#define HAVE_SET_SHRINKER 1
19535_ACEOF
19536
19537
19538else
19539 echo "$as_me: failed program was:" >&5
19540sed 's/^/| /' conftest.$ac_ext >&5
19541
19542 echo "$as_me:$LINENO: result: no" >&5
19543echo "${ECHO_T}no" >&6
19544
19545
19546
19547fi
19548
19549 rm -Rf build
19550
19551
19552
19553 echo "$as_me:$LINENO: checking whether struct path used in struct nameidata" >&5
19554echo $ECHO_N "checking whether struct path used in struct nameidata... $ECHO_C" >&6
19555
19556
19557cat >conftest.c <<_ACEOF
19558/* confdefs.h. */
19559_ACEOF
19560cat confdefs.h >>conftest.$ac_ext
19561cat >>conftest.$ac_ext <<_ACEOF
19562/* end confdefs.h. */
19563
19564
19565 #include <linux/namei.h>
19566
19567int
19568main (void)
19569{
19570
19571 struct nameidata nd;
19572
19573 nd.path.mnt = NULL;
19574 nd.path.dentry = NULL;
19575
19576 ;
19577 return 0;
19578}
19579
19580_ACEOF
19581
19582
19583 rm -Rf build && mkdir -p build
19584 echo "obj-m := conftest.o" >build/Makefile
19585 if { ac_try='cp conftest.c build && make modules LINUXINCLUDE="-Iinclude -Iinclude2 -I$LINUX/include -include include/linux/autoconf.h" -o tmp_include_depends -o scripts -o include/config/MARKER -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19587 (eval $ac_try) 2>&5
19588 ac_status=$?
19589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19590 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19592 (eval $ac_try) 2>&5
19593 ac_status=$?
19594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19595 (exit $ac_status); }; }; then
19596
19597 echo "$as_me:$LINENO: result: yes" >&5
19598echo "${ECHO_T}yes" >&6
19599
19600cat >>confdefs.h <<\_ACEOF
19601#define HAVE_PATH_IN_NAMEIDATA 1
19602_ACEOF
19603
19604
19605else
19606 echo "$as_me: failed program was:" >&5
19607sed 's/^/| /' conftest.$ac_ext >&5
19608
19609 echo "$as_me:$LINENO: result: no" >&5
19610echo "${ECHO_T}no" >&6
19611
19612
19613
19614fi
19615
19616 rm -Rf build
19617
19618
19619
19620
19621 echo "$as_me:$LINENO: checking whether symbol task_curr is exported" >&5
19622echo $ECHO_N "checking whether symbol task_curr is exported... $ECHO_C" >&6
19623 grep -q -E '[[:space:]]task_curr[[:space:]]' \
19624 $LINUX_OBJ/Module*.symvers 2>/dev/null
19625 rc=$?
19626 if test $rc -ne 0; then
19627 export=0
19628 for file in kernel/sched.c; do
19629 grep -q -E "EXPORT_SYMBOL.*(task_curr)" \
19630 "$LINUX_OBJ/$file" 2>/dev/null
19631 rc=$?
19632 if test $rc -eq 0; then
19633 export=1
19634 break;
19635 fi
19636 done
19637 if test $export -eq 0; then
19638 echo "$as_me:$LINENO: result: no" >&5
19639echo "${ECHO_T}no" >&6
19640
19641 else
19642 echo "$as_me:$LINENO: result: yes" >&5
19643echo "${ECHO_T}yes" >&6
19644
19645cat >>confdefs.h <<\_ACEOF
19646#define HAVE_TASK_CURR 1
19647_ACEOF
19648
19649 fi
19650 else
19651 echo "$as_me:$LINENO: result: yes" >&5
19652echo "${ECHO_T}yes" >&6
19653
19654cat >>confdefs.h <<\_ACEOF
19655#define HAVE_TASK_CURR 1
19656_ACEOF
19657
19658 fi
19659
19660
19661 echo "$as_me:$LINENO: checking whether unnumbered sysctl support exists" >&5
19662echo $ECHO_N "checking whether unnumbered sysctl support exists... $ECHO_C" >&6
19663
19664
19665cat >conftest.c <<_ACEOF
19666/* confdefs.h. */
19667_ACEOF
19668cat confdefs.h >>conftest.$ac_ext
19669cat >>conftest.$ac_ext <<_ACEOF
19670/* end confdefs.h. */
19671
19672
19673 #include <linux/sysctl.h>
19674
19675int
19676main (void)
19677{
19678
19679 #ifndef CTL_UNNUMBERED
19680 #error CTL_UNNUMBERED undefined
19681 #endif
19682
19683 ;
19684 return 0;
19685}
19686
19687_ACEOF
19688
19689
19690 rm -Rf build && mkdir -p build
19691 echo "obj-m := conftest.o" >build/Makefile
19692 if { ac_try='cp conftest.c build && make modules LINUXINCLUDE="-Iinclude -Iinclude2 -I$LINUX/include -include include/linux/autoconf.h" -o tmp_include_depends -o scripts -o include/config/MARKER -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19694 (eval $ac_try) 2>&5
19695 ac_status=$?
19696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19697 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19699 (eval $ac_try) 2>&5
19700 ac_status=$?
19701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19702 (exit $ac_status); }; }; then
19703
19704 echo "$as_me:$LINENO: result: yes" >&5
19705echo "${ECHO_T}yes" >&6
19706
19707cat >>confdefs.h <<\_ACEOF
19708#define HAVE_CTL_UNNUMBERED 1
19709_ACEOF
19710
19711
19712else
19713 echo "$as_me: failed program was:" >&5
19714sed 's/^/| /' conftest.$ac_ext >&5
19715
19716 echo "$as_me:$LINENO: result: no" >&5
19717echo "${ECHO_T}no" >&6
19718
19719
19720
19721fi
19722
19723 rm -Rf build
19724
19725
19726
19727 echo "$as_me:$LINENO: checking whether fls64() is available" >&5
19728echo $ECHO_N "checking whether fls64() is available... $ECHO_C" >&6
19729
19730
19731cat >conftest.c <<_ACEOF
19732/* confdefs.h. */
19733_ACEOF
19734cat confdefs.h >>conftest.$ac_ext
19735cat >>conftest.$ac_ext <<_ACEOF
19736/* end confdefs.h. */
19737
19738
19739 #include <linux/bitops.h>
19740
19741int
19742main (void)
19743{
19744
19745 return fls64(0);
19746
19747 ;
19748 return 0;
19749}
19750
19751_ACEOF
19752
19753
19754 rm -Rf build && mkdir -p build
19755 echo "obj-m := conftest.o" >build/Makefile
19756 if { ac_try='cp conftest.c build && make modules LINUXINCLUDE="-Iinclude -Iinclude2 -I$LINUX/include -include include/linux/autoconf.h" -o tmp_include_depends -o scripts -o include/config/MARKER -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19758 (eval $ac_try) 2>&5
19759 ac_status=$?
19760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19761 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19763 (eval $ac_try) 2>&5
19764 ac_status=$?
19765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19766 (exit $ac_status); }; }; then
19767
19768 echo "$as_me:$LINENO: result: yes" >&5
19769echo "${ECHO_T}yes" >&6
19770
19771cat >>confdefs.h <<\_ACEOF
19772#define HAVE_FLS64 1
19773_ACEOF
19774
19775
19776else
19777 echo "$as_me: failed program was:" >&5
19778sed 's/^/| /' conftest.$ac_ext >&5
19779
19780 echo "$as_me:$LINENO: result: no" >&5
19781echo "${ECHO_T}no" >&6
19782
19783
19784
19785fi
19786
19787 rm -Rf build
19788
19789
19790
19791
19792 echo "$as_me:$LINENO: checking whether symbol device_create is exported" >&5
19793echo $ECHO_N "checking whether symbol device_create is exported... $ECHO_C" >&6
19794 grep -q -E '[[:space:]]device_create[[:space:]]' \
19795 $LINUX_OBJ/Module*.symvers 2>/dev/null
19796 rc=$?
19797 if test $rc -ne 0; then
19798 export=0
19799 for file in drivers/base/core.c; do
19800 grep -q -E "EXPORT_SYMBOL.*(device_create)" \
19801 "$LINUX_OBJ/$file" 2>/dev/null
19802 rc=$?
19803 if test $rc -eq 0; then
19804 export=1
19805 break;
19806 fi
19807 done
19808 if test $export -eq 0; then
19809 echo "$as_me:$LINENO: result: no" >&5
19810echo "${ECHO_T}no" >&6
19811
19812 else
19813 echo "$as_me:$LINENO: result: yes" >&5
19814echo "${ECHO_T}yes" >&6
19815
19816cat >>confdefs.h <<\_ACEOF
19817#define HAVE_DEVICE_CREATE 1
19818_ACEOF
19819
19820 fi
19821 else
19822 echo "$as_me:$LINENO: result: yes" >&5
19823echo "${ECHO_T}yes" >&6
19824
19825cat >>confdefs.h <<\_ACEOF
19826#define HAVE_DEVICE_CREATE 1
19827_ACEOF
19828
19829 fi
19830
19831
19832
19833 echo "$as_me:$LINENO: checking whether device_create() wants 5 args" >&5
19834echo $ECHO_N "checking whether device_create() wants 5 args... $ECHO_C" >&6
19835 tmp_flags="$EXTRA_KCFLAGS"
19836 EXTRA_KCFLAGS="-Werror"
19837
19838
19839cat >conftest.c <<_ACEOF
19840/* confdefs.h. */
19841_ACEOF
19842cat confdefs.h >>conftest.$ac_ext
19843cat >>conftest.$ac_ext <<_ACEOF
19844/* end confdefs.h. */
19845
19846
19847 #include <linux/device.h>
19848
19849int
19850main (void)
19851{
19852
19853 device_create(NULL, NULL, 0, NULL, "%d", 1);
19854
19855 ;
19856 return 0;
19857}
19858
19859_ACEOF
19860
19861
19862 rm -Rf build && mkdir -p build
19863 echo "obj-m := conftest.o" >build/Makefile
19864 if { ac_try='cp conftest.c build && make modules LINUXINCLUDE="-Iinclude -Iinclude2 -I$LINUX/include -include include/linux/autoconf.h" -o tmp_include_depends -o scripts -o include/config/MARKER -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19866 (eval $ac_try) 2>&5
19867 ac_status=$?
19868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19869 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19871 (eval $ac_try) 2>&5
19872 ac_status=$?
19873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19874 (exit $ac_status); }; }; then
19875
19876 echo "$as_me:$LINENO: result: yes" >&5
19877echo "${ECHO_T}yes" >&6
19878
19879cat >>confdefs.h <<\_ACEOF
19880#define HAVE_5ARGS_DEVICE_CREATE 1
19881_ACEOF
19882
19883
19884else
19885 echo "$as_me: failed program was:" >&5
19886sed 's/^/| /' conftest.$ac_ext >&5
19887
19888 echo "$as_me:$LINENO: result: no" >&5
19889echo "${ECHO_T}no" >&6
19890
19891
19892
19893fi
19894
19895 rm -Rf build
19896
19897
19898 EXTRA_KCFLAGS="$tmp_flags"
19899
19900
19901 echo "$as_me:$LINENO: checking whether symbol class_device_create is exported" >&5
19902echo $ECHO_N "checking whether symbol class_device_create is exported... $ECHO_C" >&6
19903 grep -q -E '[[:space:]]class_device_create[[:space:]]' \
19904 $LINUX_OBJ/Module*.symvers 2>/dev/null
19905 rc=$?
19906 if test $rc -ne 0; then
19907 export=0
19908 for file in drivers/base/class.c; do
19909 grep -q -E "EXPORT_SYMBOL.*(class_device_create)" \
19910 "$LINUX_OBJ/$file" 2>/dev/null
19911 rc=$?
19912 if test $rc -eq 0; then
19913 export=1
19914 break;
19915 fi
19916 done
19917 if test $export -eq 0; then
19918 echo "$as_me:$LINENO: result: no" >&5
19919echo "${ECHO_T}no" >&6
19920
19921 else
19922 echo "$as_me:$LINENO: result: yes" >&5
19923echo "${ECHO_T}yes" >&6
19924
19925cat >>confdefs.h <<\_ACEOF
19926#define HAVE_CLASS_DEVICE_CREATE 1
19927_ACEOF
19928
19929 fi
19930 else
19931 echo "$as_me:$LINENO: result: yes" >&5
19932echo "${ECHO_T}yes" >&6
19933
19934cat >>confdefs.h <<\_ACEOF
19935#define HAVE_CLASS_DEVICE_CREATE 1
19936_ACEOF
19937
19938 fi
19939
19940
19941
19942 echo "$as_me:$LINENO: checking whether symbol set_normalized_timespec is exported" >&5
19943echo $ECHO_N "checking whether symbol set_normalized_timespec is exported... $ECHO_C" >&6
19944 grep -q -E '[[:space:]]set_normalized_timespec[[:space:]]' \
19945 $LINUX_OBJ/Module*.symvers 2>/dev/null
19946 rc=$?
19947 if test $rc -ne 0; then
19948 export=0
19949 for file in kernel/time.c; do
19950 grep -q -E "EXPORT_SYMBOL.*(set_normalized_timespec)" \
19951 "$LINUX_OBJ/$file" 2>/dev/null
19952 rc=$?
19953 if test $rc -eq 0; then
19954 export=1
19955 break;
19956 fi
19957 done
19958 if test $export -eq 0; then
19959 echo "$as_me:$LINENO: result: no" >&5
19960echo "${ECHO_T}no" >&6
19961
19962 else
19963 echo "$as_me:$LINENO: result: yes" >&5
19964echo "${ECHO_T}yes" >&6
19965
19966cat >>confdefs.h <<\_ACEOF
19967#define HAVE_SET_NORMALIZED_TIMESPEC_EXPORT 1
19968_ACEOF
19969
19970 fi
19971 else
19972 echo "$as_me:$LINENO: result: yes" >&5
19973echo "${ECHO_T}yes" >&6
19974
19975cat >>confdefs.h <<\_ACEOF
19976#define HAVE_SET_NORMALIZED_TIMESPEC_EXPORT 1
19977_ACEOF
19978
19979 fi
19980
19981
19982
19983 echo "$as_me:$LINENO: checking whether set_normalized_timespec() is an inline" >&5
19984echo $ECHO_N "checking whether set_normalized_timespec() is an inline... $ECHO_C" >&6
19985
19986
19987cat >conftest.c <<_ACEOF
19988/* confdefs.h. */
19989_ACEOF
19990cat confdefs.h >>conftest.$ac_ext
19991cat >>conftest.$ac_ext <<_ACEOF
19992/* end confdefs.h. */
19993
19994
19995 #include <linux/time.h>
19996 void set_normalized_timespec(struct timespec *ts,
19997 time_t sec, long nsec) { }
19998
19999int
20000main (void)
20001{
20002
20003 ;
20004 return 0;
20005}
20006
20007_ACEOF
20008
20009
20010 rm -Rf build && mkdir -p build
20011 echo "obj-m := conftest.o" >build/Makefile
20012 if { ac_try='cp conftest.c build && make modules LINUXINCLUDE="-Iinclude -Iinclude2 -I$LINUX/include -include include/linux/autoconf.h" -o tmp_include_depends -o scripts -o include/config/MARKER -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
20013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20014 (eval $ac_try) 2>&5
20015 ac_status=$?
20016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20017 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20019 (eval $ac_try) 2>&5
20020 ac_status=$?
20021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20022 (exit $ac_status); }; }; then
20023
20024 echo "$as_me:$LINENO: result: no" >&5
20025echo "${ECHO_T}no" >&6
20026
20027else
20028 echo "$as_me: failed program was:" >&5
20029sed 's/^/| /' conftest.$ac_ext >&5
20030
20031 echo "$as_me:$LINENO: result: yes" >&5
20032echo "${ECHO_T}yes" >&6
20033
20034cat >>confdefs.h <<\_ACEOF
20035#define HAVE_SET_NORMALIZED_TIMESPEC_INLINE 1
20036_ACEOF
20037
20038
20039
20040
20041fi
20042
20043 rm -Rf build
20044
20045
20046
20047
20048 echo "$as_me:$LINENO: checking whether timespec_sub() is available" >&5
20049echo $ECHO_N "checking whether timespec_sub() is available... $ECHO_C" >&6
20050
20051
20052cat >conftest.c <<_ACEOF
20053/* confdefs.h. */
20054_ACEOF
20055cat confdefs.h >>conftest.$ac_ext
20056cat >>conftest.$ac_ext <<_ACEOF
20057/* end confdefs.h. */
20058
20059
20060 #include <linux/time.h>
20061
20062int
20063main (void)
20064{
20065
20066 struct timespec a, b, c = { 0 };
20067 c = timespec_sub(a, b);
20068
20069 ;
20070 return 0;
20071}
20072
20073_ACEOF
20074
20075
20076 rm -Rf build && mkdir -p build
20077 echo "obj-m := conftest.o" >build/Makefile
20078 if { ac_try='cp conftest.c build && make modules LINUXINCLUDE="-Iinclude -Iinclude2 -I$LINUX/include -include include/linux/autoconf.h" -o tmp_include_depends -o scripts -o include/config/MARKER -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
20079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20080 (eval $ac_try) 2>&5
20081 ac_status=$?
20082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20083 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20085 (eval $ac_try) 2>&5
20086 ac_status=$?
20087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20088 (exit $ac_status); }; }; then
20089
20090 echo "$as_me:$LINENO: result: yes" >&5
20091echo "${ECHO_T}yes" >&6
20092
20093cat >>confdefs.h <<\_ACEOF
20094#define HAVE_TIMESPEC_SUB 1
20095_ACEOF
20096
20097
20098else
20099 echo "$as_me: failed program was:" >&5
20100sed 's/^/| /' conftest.$ac_ext >&5
20101
20102 echo "$as_me:$LINENO: result: no" >&5
20103echo "${ECHO_T}no" >&6
20104
20105
20106
20107fi
20108
20109 rm -Rf build
20110
20111
20112
20113
20114 echo "$as_me:$LINENO: checking whether init_utsname() is available" >&5
20115echo $ECHO_N "checking whether init_utsname() is available... $ECHO_C" >&6
20116
20117
20118cat >conftest.c <<_ACEOF
20119/* confdefs.h. */
20120_ACEOF
20121cat confdefs.h >>conftest.$ac_ext
20122cat >>conftest.$ac_ext <<_ACEOF
20123/* end confdefs.h. */
20124
20125
20126 #include <linux/utsname.h>
20127
20128int
20129main (void)
20130{
20131
20132 struct new_utsname *a = init_utsname();
20133
20134 ;
20135 return 0;
20136}
20137
20138_ACEOF
20139
20140
20141 rm -Rf build && mkdir -p build
20142 echo "obj-m := conftest.o" >build/Makefile
20143 if { ac_try='cp conftest.c build && make modules LINUXINCLUDE="-Iinclude -Iinclude2 -I$LINUX/include -include include/linux/autoconf.h" -o tmp_include_depends -o scripts -o include/config/MARKER -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
20144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20145 (eval $ac_try) 2>&5
20146 ac_status=$?
20147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20148 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20150 (eval $ac_try) 2>&5
20151 ac_status=$?
20152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20153 (exit $ac_status); }; }; then
20154
20155 echo "$as_me:$LINENO: result: yes" >&5
20156echo "${ECHO_T}yes" >&6
20157
20158cat >>confdefs.h <<\_ACEOF
20159#define HAVE_INIT_UTSNAME 1
20160_ACEOF
20161
20162
20163else
20164 echo "$as_me: failed program was:" >&5
20165sed 's/^/| /' conftest.$ac_ext >&5
20166
20167 echo "$as_me:$LINENO: result: no" >&5
20168echo "${ECHO_T}no" >&6
20169
20170
20171
20172fi
20173
20174 rm -Rf build
20175
20176
20177
20178
20179 echo "$as_me:$LINENO: checking whether header linux/fdtable.h exists" >&5
20180echo $ECHO_N "checking whether header linux/fdtable.h exists... $ECHO_C" >&6
20181
20182
20183cat >conftest.c <<_ACEOF
20184/* confdefs.h. */
20185_ACEOF
20186cat confdefs.h >>conftest.$ac_ext
20187cat >>conftest.$ac_ext <<_ACEOF
20188/* end confdefs.h. */
20189
20190
20191 #include <linux/fdtable.h>
20192
20193int
20194main (void)
20195{
20196
20197 return 0;
20198
20199 ;
20200 return 0;
20201}
20202
20203_ACEOF
20204
20205
20206 rm -Rf build && mkdir -p build
20207 echo "obj-m := conftest.o" >build/Makefile
20208 if { ac_try='cp conftest.c build && make modules LINUXINCLUDE="-Iinclude -Iinclude2 -I$LINUX/include -include include/linux/autoconf.h" -o tmp_include_depends -o scripts -o include/config/MARKER -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
20209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20210 (eval $ac_try) 2>&5
20211 ac_status=$?
20212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20213 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20215 (eval $ac_try) 2>&5
20216 ac_status=$?
20217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20218 (exit $ac_status); }; }; then
20219
20220
20221cat >>confdefs.h <<\_ACEOF
20222#define HAVE_FDTABLE_HEADER 1
20223_ACEOF
20224
20225 echo "$as_me:$LINENO: result: yes" >&5
20226echo "${ECHO_T}yes" >&6
20227
20228
20229else
20230 echo "$as_me: failed program was:" >&5
20231sed 's/^/| /' conftest.$ac_ext >&5
20232
20233 echo "$as_me:$LINENO: result: no" >&5
20234echo "${ECHO_T}no" >&6
20235
20236
20237
20238
20239fi
20240
20241 rm -Rf build
20242
20243
20244
20245
20246
20247 echo "$as_me:$LINENO: checking whether files_fdtable() is available" >&5
20248echo $ECHO_N "checking whether files_fdtable() is available... $ECHO_C" >&6
20249
20250
20251cat >conftest.c <<_ACEOF
20252/* confdefs.h. */
20253_ACEOF
20254cat confdefs.h >>conftest.$ac_ext
20255cat >>conftest.$ac_ext <<_ACEOF
20256/* end confdefs.h. */
20257
20258
20259 #include <linux/sched.h>
20260 #include <linux/file.h>
20261 #ifdef HAVE_FDTABLE_HEADER
20262 #include <linux/fdtable.h>
20263 #endif
20264
20265int
20266main (void)
20267{
20268
20269 struct files_struct *files = current->files;
20270 struct fdtable *fdt = files_fdtable(files);
20271
20272 ;
20273 return 0;
20274}
20275
20276_ACEOF
20277
20278
20279 rm -Rf build && mkdir -p build
20280 echo "obj-m := conftest.o" >build/Makefile
20281 if { ac_try='cp conftest.c build && make modules LINUXINCLUDE="-Iinclude -Iinclude2 -I$LINUX/include -include include/linux/autoconf.h" -o tmp_include_depends -o scripts -o include/config/MARKER -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
20282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20283 (eval $ac_try) 2>&5
20284 ac_status=$?
20285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20286 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20288 (eval $ac_try) 2>&5
20289 ac_status=$?
20290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20291 (exit $ac_status); }; }; then
20292
20293 echo "$as_me:$LINENO: result: yes" >&5
20294echo "${ECHO_T}yes" >&6
20295
20296cat >>confdefs.h <<\_ACEOF
20297#define HAVE_FILES_FDTABLE 1
20298_ACEOF
20299
20300
20301else
20302 echo "$as_me: failed program was:" >&5
20303sed 's/^/| /' conftest.$ac_ext >&5
20304
20305 echo "$as_me:$LINENO: result: no" >&5
20306echo "${ECHO_T}no" >&6
20307
20308
20309
20310fi
20311
20312 rm -Rf build
20313
20314
20315
20316
20317 echo "$as_me:$LINENO: checking whether header linux/uaccess.h exists" >&5
20318echo $ECHO_N "checking whether header linux/uaccess.h exists... $ECHO_C" >&6
20319
20320
20321cat >conftest.c <<_ACEOF
20322/* confdefs.h. */
20323_ACEOF
20324cat confdefs.h >>conftest.$ac_ext
20325cat >>conftest.$ac_ext <<_ACEOF
20326/* end confdefs.h. */
20327
20328
20329 #include <linux/uaccess.h>
20330
20331int
20332main (void)
20333{
20334
20335 return 0;
20336
20337 ;
20338 return 0;
20339}
20340
20341_ACEOF
20342
20343
20344 rm -Rf build && mkdir -p build
20345 echo "obj-m := conftest.o" >build/Makefile
20346 if { ac_try='cp conftest.c build && make modules LINUXINCLUDE="-Iinclude -Iinclude2 -I$LINUX/include -include include/linux/autoconf.h" -o tmp_include_depends -o scripts -o include/config/MARKER -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
20347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20348 (eval $ac_try) 2>&5
20349 ac_status=$?
20350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20351 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20353 (eval $ac_try) 2>&5
20354 ac_status=$?
20355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20356 (exit $ac_status); }; }; then
20357
20358
20359cat >>confdefs.h <<\_ACEOF
20360#define HAVE_UACCESS_HEADER 1
20361_ACEOF
20362
20363 echo "$as_me:$LINENO: result: yes" >&5
20364echo "${ECHO_T}yes" >&6
20365
20366
20367else
20368 echo "$as_me: failed program was:" >&5
20369sed 's/^/| /' conftest.$ac_ext >&5
20370
20371 echo "$as_me:$LINENO: result: no" >&5
20372echo "${ECHO_T}no" >&6
20373
20374
20375
20376
20377fi
20378
20379 rm -Rf build
20380
20381
20382
20383
20384
20385 echo "$as_me:$LINENO: checking whether kmalloc_node() is available" >&5
20386echo $ECHO_N "checking whether kmalloc_node() is available... $ECHO_C" >&6
20387
20388
20389cat >conftest.c <<_ACEOF
20390/* confdefs.h. */
20391_ACEOF
20392cat confdefs.h >>conftest.$ac_ext
20393cat >>conftest.$ac_ext <<_ACEOF
20394/* end confdefs.h. */
20395
20396
20397 #include <linux/slab.h>
20398
20399int
20400main (void)
20401{
20402
20403 void *a = kmalloc_node(1, GFP_KERNEL, 0);
20404
20405 ;
20406 return 0;
20407}
20408
20409_ACEOF
20410
20411
20412 rm -Rf build && mkdir -p build
20413 echo "obj-m := conftest.o" >build/Makefile
20414 if { ac_try='cp conftest.c build && make modules LINUXINCLUDE="-Iinclude -Iinclude2 -I$LINUX/include -include include/linux/autoconf.h" -o tmp_include_depends -o scripts -o include/config/MARKER -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
20415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20416 (eval $ac_try) 2>&5
20417 ac_status=$?
20418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20419 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20421 (eval $ac_try) 2>&5
20422 ac_status=$?
20423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20424 (exit $ac_status); }; }; then
20425
20426 echo "$as_me:$LINENO: result: yes" >&5
20427echo "${ECHO_T}yes" >&6
20428
20429cat >>confdefs.h <<\_ACEOF
20430#define HAVE_KMALLOC_NODE 1
20431_ACEOF
20432
20433
20434else
20435 echo "$as_me: failed program was:" >&5
20436sed 's/^/| /' conftest.$ac_ext >&5
20437
20438 echo "$as_me:$LINENO: result: no" >&5
20439echo "${ECHO_T}no" >&6
20440
20441
20442
20443fi
20444
20445 rm -Rf build
20446
20447
20448
20449
20450 echo "$as_me:$LINENO: checking whether symbol monotonic_clock is exported" >&5
20451echo $ECHO_N "checking whether symbol monotonic_clock is exported... $ECHO_C" >&6
20452 grep -q -E '[[:space:]]monotonic_clock[[:space:]]' \
20453 $LINUX_OBJ/Module*.symvers 2>/dev/null
20454 rc=$?
20455 if test $rc -ne 0; then
20456 export=0
20457 for file in ; do
20458 grep -q -E "EXPORT_SYMBOL.*(monotonic_clock)" \
20459 "$LINUX_OBJ/$file" 2>/dev/null
20460 rc=$?
20461 if test $rc -eq 0; then
20462 export=1
20463 break;
20464 fi
20465 done
20466 if test $export -eq 0; then
20467 echo "$as_me:$LINENO: result: no" >&5
20468echo "${ECHO_T}no" >&6
20469
20470 else
20471 echo "$as_me:$LINENO: result: yes" >&5
20472echo "${ECHO_T}yes" >&6
20473
20474cat >>confdefs.h <<\_ACEOF
20475#define HAVE_MONOTONIC_CLOCK 1
20476_ACEOF
20477
20478 fi
20479 else
20480 echo "$as_me:$LINENO: result: yes" >&5
20481echo "${ECHO_T}yes" >&6
20482
20483cat >>confdefs.h <<\_ACEOF
20484#define HAVE_MONOTONIC_CLOCK 1
20485_ACEOF
20486
20487 fi
20488
20489
20490
20491 echo "$as_me:$LINENO: checking whether struct inode has i_mutex" >&5
20492echo $ECHO_N "checking whether struct inode has i_mutex... $ECHO_C" >&6
20493
20494
20495cat >conftest.c <<_ACEOF
20496/* confdefs.h. */
20497_ACEOF
20498cat confdefs.h >>conftest.$ac_ext
20499cat >>conftest.$ac_ext <<_ACEOF
20500/* end confdefs.h. */
20501
20502
20503 #include <linux/fs.h>
20504 #include <linux/mutex.h>
20505
20506int
20507main (void)
20508{
20509
20510 struct inode i;
20511 mutex_init(&i.i_mutex);
20512
20513 ;
20514 return 0;
20515}
20516
20517_ACEOF
20518
20519
20520 rm -Rf build && mkdir -p build
20521 echo "obj-m := conftest.o" >build/Makefile
20522 if { ac_try='cp conftest.c build && make modules LINUXINCLUDE="-Iinclude -Iinclude2 -I$LINUX/include -include include/linux/autoconf.h" -o tmp_include_depends -o scripts -o include/config/MARKER -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
20523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20524 (eval $ac_try) 2>&5
20525 ac_status=$?
20526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20527 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20529 (eval $ac_try) 2>&5
20530 ac_status=$?
20531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20532 (exit $ac_status); }; }; then
20533
20534 echo "$as_me:$LINENO: result: yes" >&5
20535echo "${ECHO_T}yes" >&6
20536
20537cat >>confdefs.h <<\_ACEOF
20538#define HAVE_INODE_I_MUTEX 1
20539_ACEOF
20540
20541
20542else
20543 echo "$as_me: failed program was:" >&5
20544sed 's/^/| /' conftest.$ac_ext >&5
20545
20546 echo "$as_me:$LINENO: result: no" >&5
20547echo "${ECHO_T}no" >&6
20548
20549
20550
20551fi
20552
20553 rm -Rf build
20554
20555
20556
20557
20558 echo "$as_me:$LINENO: checking whether mutex_lock_nested() is available" >&5
20559echo $ECHO_N "checking whether mutex_lock_nested() is available... $ECHO_C" >&6
20560
20561
20562cat >conftest.c <<_ACEOF
20563/* confdefs.h. */
20564_ACEOF
20565cat confdefs.h >>conftest.$ac_ext
20566cat >>conftest.$ac_ext <<_ACEOF
20567/* end confdefs.h. */
20568
20569
20570 #include <linux/mutex.h>
20571
20572int
20573main (void)
20574{
20575
20576 struct mutex mutex;
20577 mutex_init(&mutex);
20578 mutex_lock_nested(&mutex, 0);
20579
20580 ;
20581 return 0;
20582}
20583
20584_ACEOF
20585
20586
20587 rm -Rf build && mkdir -p build
20588 echo "obj-m := conftest.o" >build/Makefile
20589 if { ac_try='cp conftest.c build && make modules LINUXINCLUDE="-Iinclude -Iinclude2 -I$LINUX/include -include include/linux/autoconf.h" -o tmp_include_depends -o scripts -o include/config/MARKER -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
20590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20591 (eval $ac_try) 2>&5
20592 ac_status=$?
20593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20594 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20596 (eval $ac_try) 2>&5
20597 ac_status=$?
20598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20599 (exit $ac_status); }; }; then
20600
20601 echo "$as_me:$LINENO: result: yes" >&5
20602echo "${ECHO_T}yes" >&6
20603
20604cat >>confdefs.h <<\_ACEOF
20605#define HAVE_MUTEX_LOCK_NESTED 1
20606_ACEOF
20607
20608
20609else
20610 echo "$as_me: failed program was:" >&5
20611sed 's/^/| /' conftest.$ac_ext >&5
20612
20613 echo "$as_me:$LINENO: result: no" >&5
20614echo "${ECHO_T}no" >&6
20615
20616
20617
20618fi
20619
20620 rm -Rf build
20621
20622
20623
20624
20625 echo "$as_me:$LINENO: checking whether symbol div64_64 is exported" >&5
20626echo $ECHO_N "checking whether symbol div64_64 is exported... $ECHO_C" >&6
20627 grep -q -E '[[:space:]]div64_64[[:space:]]' \
20628 $LINUX_OBJ/Module*.symvers 2>/dev/null
20629 rc=$?
20630 if test $rc -ne 0; then
20631 export=0
20632 for file in ; do
20633 grep -q -E "EXPORT_SYMBOL.*(div64_64)" \
20634 "$LINUX_OBJ/$file" 2>/dev/null
20635 rc=$?
20636 if test $rc -eq 0; then
20637 export=1
20638 break;
20639 fi
20640 done
20641 if test $export -eq 0; then
20642 echo "$as_me:$LINENO: result: no" >&5
20643echo "${ECHO_T}no" >&6
20644
20645 else
20646 echo "$as_me:$LINENO: result: yes" >&5
20647echo "${ECHO_T}yes" >&6
20648
20649cat >>confdefs.h <<\_ACEOF
20650#define HAVE_DIV64_64 1
20651_ACEOF
20652
20653 fi
20654 else
20655 echo "$as_me:$LINENO: result: yes" >&5
20656echo "${ECHO_T}yes" >&6
20657
20658cat >>confdefs.h <<\_ACEOF
20659#define HAVE_DIV64_64 1
20660_ACEOF
20661
20662 fi
20663
20664
20665
20666 echo "$as_me:$LINENO: checking whether symbol div64_u64 is exported" >&5
20667echo $ECHO_N "checking whether symbol div64_u64 is exported... $ECHO_C" >&6
20668 grep -q -E '[[:space:]]div64_u64[[:space:]]' \
20669 $LINUX_OBJ/Module*.symvers 2>/dev/null
20670 rc=$?
20671 if test $rc -ne 0; then
20672 export=0
20673 for file in ; do
20674 grep -q -E "EXPORT_SYMBOL.*(div64_u64)" \
20675 "$LINUX_OBJ/$file" 2>/dev/null
20676 rc=$?
20677 if test $rc -eq 0; then
20678 export=1
20679 break;
20680 fi
20681 done
20682 if test $export -eq 0; then
20683 echo "$as_me:$LINENO: result: no" >&5
20684echo "${ECHO_T}no" >&6
20685
20686 else
20687 echo "$as_me:$LINENO: result: yes" >&5
20688echo "${ECHO_T}yes" >&6
20689
20690cat >>confdefs.h <<\_ACEOF
20691#define HAVE_DIV64_U64 1
20692_ACEOF
20693
20694 fi
20695 else
20696 echo "$as_me:$LINENO: result: yes" >&5
20697echo "${ECHO_T}yes" >&6
20698
20699cat >>confdefs.h <<\_ACEOF
20700#define HAVE_DIV64_U64 1
20701_ACEOF
20702
20703 fi
20704
20705
20706
20707 echo "$as_me:$LINENO: checking whether on_each_cpu() wants 3 args" >&5
20708echo $ECHO_N "checking whether on_each_cpu() wants 3 args... $ECHO_C" >&6
20709
20710
20711cat >conftest.c <<_ACEOF
20712/* confdefs.h. */
20713_ACEOF
20714cat confdefs.h >>conftest.$ac_ext
20715cat >>conftest.$ac_ext <<_ACEOF
20716/* end confdefs.h. */
20717
20718
20719 #include <linux/smp.h>
20720
20721int
20722main (void)
20723{
20724
20725 on_each_cpu(NULL, NULL, 0);
20726
20727 ;
20728 return 0;
20729}
20730
20731_ACEOF
20732
20733
20734 rm -Rf build && mkdir -p build
20735 echo "obj-m := conftest.o" >build/Makefile
20736 if { ac_try='cp conftest.c build && make modules LINUXINCLUDE="-Iinclude -Iinclude2 -I$LINUX/include -include include/linux/autoconf.h" -o tmp_include_depends -o scripts -o include/config/MARKER -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
20737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20738 (eval $ac_try) 2>&5
20739 ac_status=$?
20740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20741 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20743 (eval $ac_try) 2>&5
20744 ac_status=$?
20745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20746 (exit $ac_status); }; }; then
20747
20748 echo "$as_me:$LINENO: result: yes" >&5
20749echo "${ECHO_T}yes" >&6
20750
20751cat >>confdefs.h <<\_ACEOF
20752#define HAVE_3ARGS_ON_EACH_CPU 1
20753_ACEOF
20754
20755
20756else
20757 echo "$as_me: failed program was:" >&5
20758sed 's/^/| /' conftest.$ac_ext >&5
20759
20760 echo "$as_me:$LINENO: result: no" >&5
20761echo "${ECHO_T}no" >&6
20762
20763
20764
20765fi
20766
20767 rm -Rf build
20768
20769
20770
20771
20772 echo "$as_me:$LINENO: checking whether symbol kallsyms_lookup_name is exported" >&5
20773echo $ECHO_N "checking whether symbol kallsyms_lookup_name is exported... $ECHO_C" >&6
20774 grep -q -E '[[:space:]]kallsyms_lookup_name[[:space:]]' \
20775 $LINUX_OBJ/Module*.symvers 2>/dev/null
20776 rc=$?
20777 if test $rc -ne 0; then
20778 export=0
20779 for file in ; do
20780 grep -q -E "EXPORT_SYMBOL.*(kallsyms_lookup_name)" \
20781 "$LINUX_OBJ/$file" 2>/dev/null
20782 rc=$?
20783 if test $rc -eq 0; then
20784 export=1
20785 break;
20786 fi
20787 done
20788 if test $export -eq 0; then
20789 echo "$as_me:$LINENO: result: no" >&5
20790echo "${ECHO_T}no" >&6
20791
20792 else
20793 echo "$as_me:$LINENO: result: yes" >&5
20794echo "${ECHO_T}yes" >&6
20795
20796cat >>confdefs.h <<\_ACEOF
20797#define HAVE_KALLSYMS_LOOKUP_NAME 1
20798_ACEOF
20799
20800 fi
20801 else
20802 echo "$as_me:$LINENO: result: yes" >&5
20803echo "${ECHO_T}yes" >&6
20804
20805cat >>confdefs.h <<\_ACEOF
20806#define HAVE_KALLSYMS_LOOKUP_NAME 1
20807_ACEOF
20808
20809 fi
20810
20811
20812
20813 echo "$as_me:$LINENO: checking whether symbol get_vmalloc_info is exported" >&5
20814echo $ECHO_N "checking whether symbol get_vmalloc_info is exported... $ECHO_C" >&6
20815 grep -q -E '[[:space:]]get_vmalloc_info[[:space:]]' \
20816 $LINUX_OBJ/Module*.symvers 2>/dev/null
20817 rc=$?
20818 if test $rc -ne 0; then
20819 export=0
20820 for file in ; do
20821 grep -q -E "EXPORT_SYMBOL.*(get_vmalloc_info)" \
20822 "$LINUX_OBJ/$file" 2>/dev/null
20823 rc=$?
20824 if test $rc -eq 0; then
20825 export=1
20826 break;
20827 fi
20828 done
20829 if test $export -eq 0; then
20830 echo "$as_me:$LINENO: result: no" >&5
20831echo "${ECHO_T}no" >&6
20832
20833 else
20834 echo "$as_me:$LINENO: result: yes" >&5
20835echo "${ECHO_T}yes" >&6
20836
20837cat >>confdefs.h <<\_ACEOF
20838#define HAVE_GET_VMALLOC_INFO 1
20839_ACEOF
20840
20841 fi
20842 else
20843 echo "$as_me:$LINENO: result: yes" >&5
20844echo "${ECHO_T}yes" >&6
20845
20846cat >>confdefs.h <<\_ACEOF
20847#define HAVE_GET_VMALLOC_INFO 1
20848_ACEOF
20849
20850 fi
20851
20852
20853
20854 echo "$as_me:$LINENO: checking whether symbol *_pgdat exist" >&5
20855echo $ECHO_N "checking whether symbol *_pgdat exist... $ECHO_C" >&6
20856 grep -q -E 'first_online_pgdat' $LINUX/include/linux/mmzone.h 2>/dev/null
20857 rc=$?
20858 if test $rc -eq 0; then
20859 echo "$as_me:$LINENO: result: yes" >&5
20860echo "${ECHO_T}yes" >&6
20861
20862cat >>confdefs.h <<\_ACEOF
20863#define HAVE_PGDAT_HELPERS 1
20864_ACEOF
20865
20866 else
20867 echo "$as_me:$LINENO: result: no" >&5
20868echo "${ECHO_T}no" >&6
20869 fi
20870
20871
20872 echo "$as_me:$LINENO: checking whether symbol first_online_pgdat is exported" >&5
20873echo $ECHO_N "checking whether symbol first_online_pgdat is exported... $ECHO_C" >&6
20874 grep -q -E '[[:space:]]first_online_pgdat[[:space:]]' \
20875 $LINUX_OBJ/Module*.symvers 2>/dev/null
20876 rc=$?
20877 if test $rc -ne 0; then
20878 export=0
20879 for file in ; do
20880 grep -q -E "EXPORT_SYMBOL.*(first_online_pgdat)" \
20881 "$LINUX_OBJ/$file" 2>/dev/null
20882 rc=$?
20883 if test $rc -eq 0; then
20884 export=1
20885 break;
20886 fi
20887 done
20888 if test $export -eq 0; then
20889 echo "$as_me:$LINENO: result: no" >&5
20890echo "${ECHO_T}no" >&6
20891
20892 else
20893 echo "$as_me:$LINENO: result: yes" >&5
20894echo "${ECHO_T}yes" >&6
20895
20896cat >>confdefs.h <<\_ACEOF
20897#define HAVE_FIRST_ONLINE_PGDAT 1
20898_ACEOF
20899
20900 fi
20901 else
20902 echo "$as_me:$LINENO: result: yes" >&5
20903echo "${ECHO_T}yes" >&6
20904
20905cat >>confdefs.h <<\_ACEOF
20906#define HAVE_FIRST_ONLINE_PGDAT 1
20907_ACEOF
20908
20909 fi
20910
20911
20912
20913 echo "$as_me:$LINENO: checking whether symbol next_online_pgdat is exported" >&5
20914echo $ECHO_N "checking whether symbol next_online_pgdat is exported... $ECHO_C" >&6
20915 grep -q -E '[[:space:]]next_online_pgdat[[:space:]]' \
20916 $LINUX_OBJ/Module*.symvers 2>/dev/null
20917 rc=$?
20918 if test $rc -ne 0; then
20919 export=0
20920 for file in ; do
20921 grep -q -E "EXPORT_SYMBOL.*(next_online_pgdat)" \
20922 "$LINUX_OBJ/$file" 2>/dev/null
20923 rc=$?
20924 if test $rc -eq 0; then
20925 export=1
20926 break;
20927 fi
20928 done
20929 if test $export -eq 0; then
20930 echo "$as_me:$LINENO: result: no" >&5
20931echo "${ECHO_T}no" >&6
20932
20933 else
20934 echo "$as_me:$LINENO: result: yes" >&5
20935echo "${ECHO_T}yes" >&6
20936
20937cat >>confdefs.h <<\_ACEOF
20938#define HAVE_NEXT_ONLINE_PGDAT 1
20939_ACEOF
20940
20941 fi
20942 else
20943 echo "$as_me:$LINENO: result: yes" >&5
20944echo "${ECHO_T}yes" >&6
20945
20946cat >>confdefs.h <<\_ACEOF
20947#define HAVE_NEXT_ONLINE_PGDAT 1
20948_ACEOF
20949
20950 fi
20951
20952
20953
20954 echo "$as_me:$LINENO: checking whether symbol next_zone is exported" >&5
20955echo $ECHO_N "checking whether symbol next_zone is exported... $ECHO_C" >&6
20956 grep -q -E '[[:space:]]next_zone[[:space:]]' \
20957 $LINUX_OBJ/Module*.symvers 2>/dev/null
20958 rc=$?
20959 if test $rc -ne 0; then
20960 export=0
20961 for file in ; do
20962 grep -q -E "EXPORT_SYMBOL.*(next_zone)" \
20963 "$LINUX_OBJ/$file" 2>/dev/null
20964 rc=$?
20965 if test $rc -eq 0; then
20966 export=1
20967 break;
20968 fi
20969 done
20970 if test $export -eq 0; then
20971 echo "$as_me:$LINENO: result: no" >&5
20972echo "${ECHO_T}no" >&6
20973
20974 else
20975 echo "$as_me:$LINENO: result: yes" >&5
20976echo "${ECHO_T}yes" >&6
20977
20978cat >>confdefs.h <<\_ACEOF
20979#define HAVE_NEXT_ZONE 1
20980_ACEOF
20981
20982 fi
20983 else
20984 echo "$as_me:$LINENO: result: yes" >&5
20985echo "${ECHO_T}yes" >&6
20986
20987cat >>confdefs.h <<\_ACEOF
20988#define HAVE_NEXT_ZONE 1
20989_ACEOF
20990
20991 fi
20992
20993
20994
20995 echo "$as_me:$LINENO: checking whether symbol pgdat_list is exported" >&5
20996echo $ECHO_N "checking whether symbol pgdat_list is exported... $ECHO_C" >&6
20997 grep -q -E '[[:space:]]pgdat_list[[:space:]]' \
20998 $LINUX_OBJ/Module*.symvers 2>/dev/null
20999 rc=$?
21000 if test $rc -ne 0; then
21001 export=0
21002 for file in ; do
21003 grep -q -E "EXPORT_SYMBOL.*(pgdat_list)" \
21004 "$LINUX_OBJ/$file" 2>/dev/null
21005 rc=$?
21006 if test $rc -eq 0; then
21007 export=1
21008 break;
21009 fi
21010 done
21011 if test $export -eq 0; then
21012 echo "$as_me:$LINENO: result: no" >&5
21013echo "${ECHO_T}no" >&6
21014
21015 else
21016 echo "$as_me:$LINENO: result: yes" >&5
21017echo "${ECHO_T}yes" >&6
21018
21019cat >>confdefs.h <<\_ACEOF
21020#define HAVE_PGDAT_LIST 1
21021_ACEOF
21022
21023 fi
21024 else
21025 echo "$as_me:$LINENO: result: yes" >&5
21026echo "${ECHO_T}yes" >&6
21027
21028cat >>confdefs.h <<\_ACEOF
21029#define HAVE_PGDAT_LIST 1
21030_ACEOF
21031
21032 fi
21033
21034
21035
21036 echo "$as_me:$LINENO: checking whether symbol get_zone_counts is exported" >&5
21037echo $ECHO_N "checking whether symbol get_zone_counts is exported... $ECHO_C" >&6
21038 grep -q -E '[[:space:]]get_zone_counts[[:space:]]' \
21039 $LINUX_OBJ/Module*.symvers 2>/dev/null
21040 rc=$?
21041 if test $rc -ne 0; then
21042 export=0
21043 for file in ; do
21044 grep -q -E "EXPORT_SYMBOL.*(get_zone_counts)" \
21045 "$LINUX_OBJ/$file" 2>/dev/null
21046 rc=$?
21047 if test $rc -eq 0; then
21048 export=1
21049 break;
21050 fi
21051 done
21052 if test $export -eq 0; then
21053 echo "$as_me:$LINENO: result: no" >&5
21054echo "${ECHO_T}no" >&6
21055
21056 else
21057 echo "$as_me:$LINENO: result: yes" >&5
21058echo "${ECHO_T}yes" >&6
21059
21060cat >>confdefs.h <<\_ACEOF
21061#define HAVE_GET_ZONE_COUNTS 1
21062_ACEOF
21063
21064 fi
21065 else
21066 echo "$as_me:$LINENO: result: yes" >&5
21067echo "${ECHO_T}yes" >&6
21068
21069cat >>confdefs.h <<\_ACEOF
21070#define HAVE_GET_ZONE_COUNTS 1
21071_ACEOF
21072
21073 fi
21074
21075
21076
21077 echo "$as_me:$LINENO: checking whether global_page_state() is available" >&5
21078echo $ECHO_N "checking whether global_page_state() is available... $ECHO_C" >&6
21079
21080
21081cat >conftest.c <<_ACEOF
21082/* confdefs.h. */
21083_ACEOF
21084cat confdefs.h >>conftest.$ac_ext
21085cat >>conftest.$ac_ext <<_ACEOF
21086/* end confdefs.h. */
21087
21088
21089 #include <linux/vmstat.h>
21090
21091int
21092main (void)
21093{
21094
21095 unsigned long state;
21096 state = global_page_state(NR_FREE_PAGES);
21097
21098 ;
21099 return 0;
21100}
21101
21102_ACEOF
21103
21104
21105 rm -Rf build && mkdir -p build
21106 echo "obj-m := conftest.o" >build/Makefile
21107 if { ac_try='cp conftest.c build && make modules LINUXINCLUDE="-Iinclude -Iinclude2 -I$LINUX/include -include include/linux/autoconf.h" -o tmp_include_depends -o scripts -o include/config/MARKER -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
21108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21109 (eval $ac_try) 2>&5
21110 ac_status=$?
21111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21112 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21114 (eval $ac_try) 2>&5
21115 ac_status=$?
21116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21117 (exit $ac_status); }; }; then
21118
21119 echo "$as_me:$LINENO: result: yes" >&5
21120echo "${ECHO_T}yes" >&6
21121
21122cat >>confdefs.h <<\_ACEOF
21123#define HAVE_GLOBAL_PAGE_STATE 1
21124_ACEOF
21125
21126
21127else
21128 echo "$as_me: failed program was:" >&5
21129sed 's/^/| /' conftest.$ac_ext >&5
21130
21131 echo "$as_me:$LINENO: result: no" >&5
21132echo "${ECHO_T}no" >&6
21133
21134
21135
21136fi
21137
21138 rm -Rf build
21139
21140
21141
21142
21143 echo "$as_me:$LINENO: checking whether free/inactive/active page state is available" >&5
21144echo $ECHO_N "checking whether free/inactive/active page state is available... $ECHO_C" >&6
21145
21146
21147cat >conftest.c <<_ACEOF
21148/* confdefs.h. */
21149_ACEOF
21150cat confdefs.h >>conftest.$ac_ext
21151cat >>conftest.$ac_ext <<_ACEOF
21152/* end confdefs.h. */
21153
21154
21155 #include <linux/mmzone.h>
21156
21157int
21158main (void)
21159{
21160
21161 enum zone_stat_item i1, i2, i3;
21162 i1 = NR_FREE_PAGES;
21163 i2 = NR_INACTIVE;
21164 i3 = NR_ACTIVE;
21165
21166 ;
21167 return 0;
21168}
21169
21170_ACEOF
21171
21172
21173 rm -Rf build && mkdir -p build
21174 echo "obj-m := conftest.o" >build/Makefile
21175 if { ac_try='cp conftest.c build && make modules LINUXINCLUDE="-Iinclude -Iinclude2 -I$LINUX/include -include include/linux/autoconf.h" -o tmp_include_depends -o scripts -o include/config/MARKER -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
21176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21177 (eval $ac_try) 2>&5
21178 ac_status=$?
21179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21180 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21182 (eval $ac_try) 2>&5
21183 ac_status=$?
21184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21185 (exit $ac_status); }; }; then
21186
21187 echo "$as_me:$LINENO: result: yes" >&5
21188echo "${ECHO_T}yes" >&6
21189
21190cat >>confdefs.h <<\_ACEOF
21191#define HAVE_ZONE_STAT_ITEM_FIA 1
21192_ACEOF
21193
21194
21195else
21196 echo "$as_me: failed program was:" >&5
21197sed 's/^/| /' conftest.$ac_ext >&5
21198
21199 echo "$as_me:$LINENO: result: no" >&5
21200echo "${ECHO_T}no" >&6
21201
21202
21203
21204fi
21205
21206 rm -Rf build
21207
21208
21209
21210 echo "$as_me:$LINENO: checking whether vfs_unlink() wants 2 args" >&5
21211echo $ECHO_N "checking whether vfs_unlink() wants 2 args... $ECHO_C" >&6
21212
21213
21214cat >conftest.c <<_ACEOF
21215/* confdefs.h. */
21216_ACEOF
21217cat confdefs.h >>conftest.$ac_ext
21218cat >>conftest.$ac_ext <<_ACEOF
21219/* end confdefs.h. */
21220
21221
21222 #include <linux/fs.h>
21223
21224int
21225main (void)
21226{
21227
21228 vfs_unlink(NULL, NULL);
21229
21230 ;
21231 return 0;
21232}
21233
21234_ACEOF
21235
21236
21237 rm -Rf build && mkdir -p build
21238 echo "obj-m := conftest.o" >build/Makefile
21239 if { ac_try='cp conftest.c build && make modules LINUXINCLUDE="-Iinclude -Iinclude2 -I$LINUX/include -include include/linux/autoconf.h" -o tmp_include_depends -o scripts -o include/config/MARKER -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
21240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21241 (eval $ac_try) 2>&5
21242 ac_status=$?
21243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21244 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21246 (eval $ac_try) 2>&5
21247 ac_status=$?
21248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21249 (exit $ac_status); }; }; then
21250
21251 echo "$as_me:$LINENO: result: yes" >&5
21252echo "${ECHO_T}yes" >&6
21253
21254cat >>confdefs.h <<\_ACEOF
21255#define HAVE_2ARGS_VFS_UNLINK 1
21256_ACEOF
21257
21258
21259else
21260 echo "$as_me: failed program was:" >&5
21261sed 's/^/| /' conftest.$ac_ext >&5
21262
21263 echo "$as_me:$LINENO: result: no" >&5
21264echo "${ECHO_T}no" >&6
21265
21266
21267
21268fi
21269
21270 rm -Rf build
21271
21272
21273
21274 echo "$as_me:$LINENO: checking whether vfs_rename() wants 4 args" >&5
21275echo $ECHO_N "checking whether vfs_rename() wants 4 args... $ECHO_C" >&6
21276
21277
21278cat >conftest.c <<_ACEOF
21279/* confdefs.h. */
21280_ACEOF
21281cat confdefs.h >>conftest.$ac_ext
21282cat >>conftest.$ac_ext <<_ACEOF
21283/* end confdefs.h. */
21284
21285
21286 #include <linux/fs.h>
21287
21288int
21289main (void)
21290{
21291
21292 vfs_rename(NULL, NULL, NULL, NULL);
21293
21294 ;
21295 return 0;
21296}
21297
21298_ACEOF
21299
21300
21301 rm -Rf build && mkdir -p build
21302 echo "obj-m := conftest.o" >build/Makefile
21303 if { ac_try='cp conftest.c build && make modules LINUXINCLUDE="-Iinclude -Iinclude2 -I$LINUX/include -include include/linux/autoconf.h" -o tmp_include_depends -o scripts -o include/config/MARKER -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
21304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21305 (eval $ac_try) 2>&5
21306 ac_status=$?
21307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21308 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21310 (eval $ac_try) 2>&5
21311 ac_status=$?
21312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21313 (exit $ac_status); }; }; then
21314
21315 echo "$as_me:$LINENO: result: yes" >&5
21316echo "${ECHO_T}yes" >&6
21317
21318cat >>confdefs.h <<\_ACEOF
21319#define HAVE_4ARGS_VFS_RENAME 1
21320_ACEOF
21321
21322
21323else
21324 echo "$as_me: failed program was:" >&5
21325sed 's/^/| /' conftest.$ac_ext >&5
21326
21327 echo "$as_me:$LINENO: result: no" >&5
21328echo "${ECHO_T}no" >&6
21329
21330
21331
21332fi
21333
21334 rm -Rf build
21335
21336
21337
21338 ;;
21339 user) ;;
21340 all)
bf9f3bac 21341
bf9f3bac 21342
21343# Check whether --with-linux or --without-linux was given.
21344if test "${with_linux+set}" = set; then
21345 withval="$with_linux"
39a3d2a4 21346 kernelsrc="$withval"
bf9f3bac 21347fi;
21348
21349
21350# Check whether --with-linux-obj or --without-linux-obj was given.
21351if test "${with_linux_obj+set}" = set; then
21352 withval="$with_linux_obj"
21353 kernelbuild="$withval"
21354fi;
21355
21356 echo "$as_me:$LINENO: checking kernel source directory" >&5
21357echo $ECHO_N "checking kernel source directory... $ECHO_C" >&6
21358 if test -z "$kernelsrc"; then
bf338d8d
BB
21359 sourcelink=`ls -1d /usr/src/kernels/* /usr/src/linux-* \
21360 2>/dev/null | grep -v obj | tail -1`
bf9f3bac 21361
d4326403
BB
21362 if test -e ${sourcelink}; then
21363 kernelsrc=`readlink -f ${sourcelink}`
d4326403 21364 else
bf9f3bac 21365 echo "$as_me:$LINENO: result: Not found" >&5
21366echo "${ECHO_T}Not found" >&6
21367 { { echo "$as_me:$LINENO: error:
21368 *** Please specify the location of the kernel source
21369 *** with the '--with-linux=PATH' option" >&5
21370echo "$as_me: error:
21371 *** Please specify the location of the kernel source
21372 *** with the '--with-linux=PATH' option" >&2;}
21373 { (exit 1); exit 1; }; }
21374 fi
c5f70460
BB
21375 else
21376 if test "$kernelsrc" = "NONE"; then
21377 kernsrcver=NONE
21378 fi
bf9f3bac 21379 fi
21380
21381 echo "$as_me:$LINENO: result: $kernelsrc" >&5
21382echo "${ECHO_T}$kernelsrc" >&6
21383 echo "$as_me:$LINENO: checking kernel build directory" >&5
21384echo $ECHO_N "checking kernel build directory... $ECHO_C" >&6
39a3d2a4
BB
21385 if test -z "$kernelbuild"; then
21386 if test -d ${kernelsrc}-obj; then
21387 kernelbuild=${kernelsrc}-obj/`arch`/`arch`
21388 elif test -d `dirname ${kernelsrc}`/build-`arch`; then
21389 kernelbuild=`dirname ${kernelsrc}`/build-`arch`
21390 else
21391 kernelbuild=${kernelsrc}
21392 fi
bf338d8d 21393 fi
bf9f3bac 21394 echo "$as_me:$LINENO: result: $kernelbuild" >&5
21395echo "${ECHO_T}$kernelbuild" >&6
21396
21397 echo "$as_me:$LINENO: checking kernel source version" >&5
21398echo $ECHO_N "checking kernel source version... $ECHO_C" >&6
21399 if test -r $kernelbuild/include/linux/version.h &&
21400 fgrep -q UTS_RELEASE $kernelbuild/include/linux/version.h; then
21401
21402 kernsrcver=`(echo "#include <linux/version.h>";
21403 echo "kernsrcver=UTS_RELEASE") |
d4326403 21404 cpp -I $kernelbuild/include |
bf9f3bac 21405 grep "^kernsrcver=" | cut -d \" -f 2`
21406
21407 elif test -r $kernelbuild/include/linux/utsrelease.h &&
21408 fgrep -q UTS_RELEASE $kernelbuild/include/linux/utsrelease.h; then
21409
21410 kernsrcver=`(echo "#include <linux/utsrelease.h>";
21411 echo "kernsrcver=UTS_RELEASE") |
d4326403 21412 cpp -I $kernelbuild/include |
bf9f3bac 21413 grep "^kernsrcver=" | cut -d \" -f 2`
21414 fi
21415
21416 if test -z "$kernsrcver"; then
21417 echo "$as_me:$LINENO: result: Not found" >&5
21418echo "${ECHO_T}Not found" >&6
21419 { { echo "$as_me:$LINENO: error:
21420 *** Cannot determine the version of the linux kernel source.
21421 *** Please prepare the kernel before running this script" >&5
21422echo "$as_me: error:
21423 *** Cannot determine the version of the linux kernel source.
21424 *** Please prepare the kernel before running this script" >&2;}
21425 { (exit 1); exit 1; }; }
21426 fi
21427
21428 echo "$as_me:$LINENO: result: $kernsrcver" >&5
21429echo "${ECHO_T}$kernsrcver" >&6
21430
bf9f3bac 21431 LINUX=${kernelsrc}
21432 LINUX_OBJ=${kernelbuild}
c5f70460
BB
21433 LINUX_VERSION=${kernsrcver}
21434
bf9f3bac 21435
21436
21437
21438
21439
2e0e7e69
BB
21440 echo "$as_me:$LINENO: checking kernel file name for module symbols" >&5
21441echo $ECHO_N "checking kernel file name for module symbols... $ECHO_C" >&6
21442 if grep -q Modules.symvers $LINUX/scripts/Makefile.modpost; then
21443 LINUX_SYMBOLS=Modules.symvers
21444 else
21445 LINUX_SYMBOLS=Module.symvers
21446 fi
21447 echo "$as_me:$LINENO: result: $LINUX_SYMBOLS" >&5
21448echo "${ECHO_T}$LINUX_SYMBOLS" >&6
21449
21450
21451
86933a6e
BB
21452
21453 KERNELMAKE_PARAMS="V=1"
21454
21455 abs_srcdir=`readlink -f ${srcdir}`
21456 KERNELCPPFLAGS="$KERNELCPPFLAGS -Wstrict-prototypes -Werror"
21457 KERNELCPPFLAGS="$KERNELCPPFLAGS -I${abs_srcdir} -I${abs_srcdir}/include"
21458
21459 if test "${LINUX_OBJ}" != "${LINUX}"; then
21460 KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
21461 fi
21462
21463
21464
bf9f3bac 21465
21466
21467 echo "$as_me:$LINENO: checking whether debugging is enabled" >&5
21468echo $ECHO_N "checking whether debugging is enabled... $ECHO_C" >&6
21469 # Check whether --enable-debug or --disable-debug was given.
21470if test "${enable_debug+set}" = set; then
21471 enableval="$enable_debug"
21472 case "$enableval" in
21473 yes) spl_ac_debug=yes ;;
21474 no) spl_ac_debug=no ;;
21475 *) echo "$as_me:$LINENO: result: Error!" >&5
21476echo "${ECHO_T}Error!" >&6
21477 { { echo "$as_me:$LINENO: error: Bad value \"$enableval\" for --enable-debug" >&5
21478echo "$as_me: error: Bad value \"$enableval\" for --enable-debug" >&2;}
21479 { (exit 1); exit 1; }; } ;;
21480 esac
21481
21482fi;
21483 if test "$spl_ac_debug" = yes; then
21484 echo "$as_me:$LINENO: result: yes" >&5
21485echo "${ECHO_T}yes" >&6
21486 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG"
21487 else
21488 echo "$as_me:$LINENO: result: no" >&5
21489echo "${ECHO_T}no" >&6
bf9f3bac 21490 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DNDEBUG"
21491 fi
21492
21493
21494 echo "$as_me:$LINENO: checking whether kmem debugging is enabled" >&5
21495echo $ECHO_N "checking whether kmem debugging is enabled... $ECHO_C" >&6
21496 # Check whether --enable-debug-kmem or --disable-debug-kmem was given.
21497if test "${enable_debug_kmem+set}" = set; then
21498 enableval="$enable_debug_kmem"
21499 case "$enableval" in
21500 yes) spl_ac_debug_kmem=yes ;;
21501 no) spl_ac_debug_kmem=no ;;
21502 *) echo "$as_me:$LINENO: result: Error!" >&5
21503echo "${ECHO_T}Error!" >&6
21504 { { echo "$as_me:$LINENO: error: Bad value \"$enableval\" for --enable-debug-kmem" >&5
21505echo "$as_me: error: Bad value \"$enableval\" for --enable-debug-kmem" >&2;}
21506 { (exit 1); exit 1; }; } ;;
21507 esac
21508
21509fi;
21510 if test "$spl_ac_debug_kmem" = yes; then
21511 echo "$as_me:$LINENO: result: yes" >&5
21512echo "${ECHO_T}yes" >&6
21513
21514cat >>confdefs.h <<\_ACEOF
21515#define DEBUG_KMEM 1
21516_ACEOF
21517
21518 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_KMEM"
21519 else
21520 echo "$as_me:$LINENO: result: no" >&5
21521echo "${ECHO_T}no" >&6
21522 fi
21523
21524
21525 echo "$as_me:$LINENO: checking whether mutex debugging is enabled" >&5
21526echo $ECHO_N "checking whether mutex debugging is enabled... $ECHO_C" >&6
21527 # Check whether --enable-debug-mutex or --disable-debug-mutex was given.
21528if test "${enable_debug_mutex+set}" = set; then
21529 enableval="$enable_debug_mutex"
21530 case "$enableval" in
21531 yes) spl_ac_debug_mutex=yes ;;
21532 no) spl_ac_debug_mutex=no ;;
21533 *) echo "$as_me:$LINENO: result: Error!" >&5
21534echo "${ECHO_T}Error!" >&6
21535 { { echo "$as_me:$LINENO: error: Bad value \"$enableval\" for --enable-debug-mutex" >&5
21536echo "$as_me: error: Bad value \"$enableval\" for --enable-debug-mutex" >&2;}
21537 { (exit 1); exit 1; }; } ;;
21538 esac
21539
21540fi;
21541 if test "$spl_ac_debug_mutex" = yes; then
21542 echo "$as_me:$LINENO: result: yes" >&5
21543echo "${ECHO_T}yes" >&6
21544
21545cat >>confdefs.h <<\_ACEOF
21546#define DEBUG_MUTEX 1
21547_ACEOF
21548
21549 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_MUTEX"
21550 else
21551 echo "$as_me:$LINENO: result: no" >&5
21552echo "${ECHO_T}no" >&6
21553 fi
21554
21555
21556 echo "$as_me:$LINENO: checking whether kstat debugging is enabled" >&5
21557echo $ECHO_N "checking whether kstat debugging is enabled... $ECHO_C" >&6
21558 # Check whether --enable-debug-kstat or --disable-debug-kstat was given.
21559if test "${enable_debug_kstat+set}" = set; then
21560 enableval="$enable_debug_kstat"
21561 case "$enableval" in
21562 yes) spl_ac_debug_kstat=yes ;;
21563 no) spl_ac_debug_kstat=no ;;
21564 *) echo "$as_me:$LINENO: result: Error!" >&5
21565echo "${ECHO_T}Error!" >&6
21566 { { echo "$as_me:$LINENO: error: Bad value \"$enableval\" for --enable-debug-kstat" >&5
21567echo "$as_me: error: Bad value \"$enableval\" for --enable-debug-kstat" >&2;}
21568 { (exit 1); exit 1; }; } ;;
21569 esac
21570
21571fi;
21572 if test "$spl_ac_debug_kstat" = yes; then
21573 echo "$as_me:$LINENO: result: yes" >&5
21574echo "${ECHO_T}yes" >&6
21575
21576cat >>confdefs.h <<\_ACEOF
21577#define DEBUG_KSTAT 1
21578_ACEOF
21579
21580 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_KSTAT"
21581 else
21582 echo "$as_me:$LINENO: result: no" >&5
21583echo "${ECHO_T}no" >&6
21584 fi
21585
21586
21587 echo "$as_me:$LINENO: checking whether callb debugging is enabled" >&5
21588echo $ECHO_N "checking whether callb debugging is enabled... $ECHO_C" >&6
21589 # Check whether --enable-debug-callb or --disable-debug-callb was given.
21590if test "${enable_debug_callb+set}" = set; then
21591 enableval="$enable_debug_callb"
21592 case "$enableval" in
21593 yes) spl_ac_debug_callb=yes ;;
21594 no) spl_ac_debug_callb=no ;;
21595 *) echo "$as_me:$LINENO: result: Error!" >&5
21596echo "${ECHO_T}Error!" >&6
21597 { { echo "$as_me:$LINENO: error: Bad value \"$enableval\" for --enable-debug-callb" >&5
21598echo "$as_me: error: Bad value \"$enableval\" for --enable-debug-callb" >&2;}
21599 { (exit 1); exit 1; }; } ;;
21600 esac
21601
21602fi;
21603 if test "$spl_ac_debug_callb" = yes; then
21604 echo "$as_me:$LINENO: result: yes" >&5
21605echo "${ECHO_T}yes" >&6
21606
21607cat >>confdefs.h <<\_ACEOF
21608#define DEBUG_CALLB 1
21609_ACEOF
21610
21611 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_CALLB"
21612 else
21613 echo "$as_me:$LINENO: result: no" >&5
21614echo "${ECHO_T}no" >&6
21615 fi
21616
86933a6e 21617 echo "$as_me:$LINENO: checking whether kernel defines uintptr_t" >&5
bf9f3bac 21618echo $ECHO_N "checking whether kernel defines uintptr_t... $ECHO_C" >&6
21619
21620
21621cat >conftest.c <<_ACEOF
21622/* confdefs.h. */
21623_ACEOF
21624cat confdefs.h >>conftest.$ac_ext
21625cat >>conftest.$ac_ext <<_ACEOF
21626/* end confdefs.h. */
21627
21628
21629 #include <linux/types.h>
21630
21631int
21632main (void)
21633{
21634
21635 uintptr_t *ptr;
21636
21637 ;
21638 return 0;
21639}
21640
21641_ACEOF
21642
c5f70460
BB
21643
21644 rm -Rf build && mkdir -p build
21645 echo "obj-m := conftest.o" >build/Makefile
bf338d8d 21646 if { ac_try='cp conftest.c build && make modules LINUXINCLUDE="-Iinclude -Iinclude2 -I$LINUX/include -include include/linux/autoconf.h" -o tmp_include_depends -o scripts -o include/config/MARKER -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
bf9f3bac 21647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21648 (eval $ac_try) 2>&5
21649 ac_status=$?
21650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21651 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21653 (eval $ac_try) 2>&5
21654 ac_status=$?
21655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21656 (exit $ac_status); }; }; then
21657
21658 echo "$as_me:$LINENO: result: yes" >&5
21659echo "${ECHO_T}yes" >&6
21660
21661cat >>confdefs.h <<\_ACEOF
21662#define HAVE_UINTPTR_T 1
21663_ACEOF
21664
21665
21666else
21667 echo "$as_me: failed program was:" >&5
21668sed 's/^/| /' conftest.$ac_ext >&5
21669
bf9f3bac 21670 echo "$as_me:$LINENO: result: no" >&5
21671echo "${ECHO_T}no" >&6
21672
c5f70460
BB
21673
21674
bf9f3bac 21675fi
c5f70460
BB
21676
21677 rm -Rf build
21678
bf9f3bac 21679
21680
86933a6e 21681 echo "$as_me:$LINENO: checking whether kernel defines atomic64_t" >&5
bf9f3bac 21682echo $ECHO_N "checking whether kernel defines atomic64_t... $ECHO_C" >&6
21683
21684
21685cat >conftest.c <<_ACEOF
21686/* confdefs.h. */
21687_ACEOF
21688cat confdefs.h >>conftest.$ac_ext
21689cat >>conftest.$ac_ext <<_ACEOF
21690/* end confdefs.h. */
21691
21692
21693 #include <asm/atomic.h>
21694
21695int
21696main (void)
21697{
21698
21699 atomic64_t *ptr;
21700
21701 ;
21702 return 0;
21703}
21704
21705_ACEOF
21706
c5f70460
BB
21707
21708 rm -Rf build && mkdir -p build
21709 echo "obj-m := conftest.o" >build/Makefile
bf338d8d 21710 if { ac_try='cp conftest.c build && make modules LINUXINCLUDE="-Iinclude -Iinclude2 -I$LINUX/include -include include/linux/autoconf.h" -o tmp_include_depends -o scripts -o include/config/MARKER -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
bf9f3bac 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); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21717 (eval $ac_try) 2>&5
21718 ac_status=$?
21719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21720 (exit $ac_status); }; }; then
21721
21722 echo "$as_me:$LINENO: result: yes" >&5
21723echo "${ECHO_T}yes" >&6
21724
21725cat >>confdefs.h <<\_ACEOF
21726#define HAVE_ATOMIC64_T 1
21727_ACEOF
21728
21729
21730else
21731 echo "$as_me: failed program was:" >&5
21732sed 's/^/| /' conftest.$ac_ext >&5
21733
bf9f3bac 21734 echo "$as_me:$LINENO: result: no" >&5
21735echo "${ECHO_T}no" >&6
21736
c5f70460
BB
21737
21738
bf9f3bac 21739fi
c5f70460
BB
21740
21741 rm -Rf build
21742
bf9f3bac 21743
21744
86933a6e 21745 echo "$as_me:$LINENO: checking whether INIT_WORK wants 3 args" >&5
bf9f3bac 21746echo $ECHO_N "checking whether INIT_WORK wants 3 args... $ECHO_C" >&6
21747
21748
21749cat >conftest.c <<_ACEOF
21750/* confdefs.h. */
21751_ACEOF
21752cat confdefs.h >>conftest.$ac_ext
21753cat >>conftest.$ac_ext <<_ACEOF
21754/* end confdefs.h. */
21755
21756
21757 #include <linux/workqueue.h>
21758
21759int
21760main (void)
21761{
21762
21763 struct work_struct work;
21764 INIT_WORK(&work, NULL, NULL);
21765
21766 ;
21767 return 0;
21768}
21769
21770_ACEOF
21771
c5f70460
BB
21772
21773 rm -Rf build && mkdir -p build
21774 echo "obj-m := conftest.o" >build/Makefile
bf338d8d 21775 if { ac_try='cp conftest.c build && make modules LINUXINCLUDE="-Iinclude -Iinclude2 -I$LINUX/include -include include/linux/autoconf.h" -o tmp_include_depends -o scripts -o include/config/MARKER -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
bf9f3bac 21776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21777 (eval $ac_try) 2>&5
21778 ac_status=$?
21779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21780 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21782 (eval $ac_try) 2>&5
21783 ac_status=$?
21784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21785 (exit $ac_status); }; }; then
21786
21787 echo "$as_me:$LINENO: result: yes" >&5
21788echo "${ECHO_T}yes" >&6
21789
21790cat >>confdefs.h <<\_ACEOF
21791#define HAVE_3ARGS_INIT_WORK 1
21792_ACEOF
21793
21794
21795else
21796 echo "$as_me: failed program was:" >&5
21797sed 's/^/| /' conftest.$ac_ext >&5
21798
bf9f3bac 21799 echo "$as_me:$LINENO: result: no" >&5
21800echo "${ECHO_T}no" >&6
21801
c5f70460
BB
21802
21803
bf9f3bac 21804fi
c5f70460
BB
21805
21806 rm -Rf build
21807
bf9f3bac 21808
21809
86933a6e 21810 echo "$as_me:$LINENO: checking whether register_sysctl_table() wants 2 args" >&5
bf9f3bac 21811echo $ECHO_N "checking whether register_sysctl_table() wants 2 args... $ECHO_C" >&6
21812
21813
21814cat >conftest.c <<_ACEOF
21815/* confdefs.h. */
21816_ACEOF
21817cat confdefs.h >>conftest.$ac_ext
21818cat >>conftest.$ac_ext <<_ACEOF
21819/* end confdefs.h. */
21820
21821
21822 #include <linux/sysctl.h>
21823
21824int
21825main (void)
21826{
21827
21828 return register_sysctl_table(NULL,0);
21829
21830 ;
21831 return 0;
21832}
21833
21834_ACEOF
21835
c5f70460
BB
21836
21837 rm -Rf build && mkdir -p build
21838 echo "obj-m := conftest.o" >build/Makefile
bf338d8d 21839 if { ac_try='cp conftest.c build && make modules LINUXINCLUDE="-Iinclude -Iinclude2 -I$LINUX/include -include include/linux/autoconf.h" -o tmp_include_depends -o scripts -o include/config/MARKER -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
bf9f3bac 21840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21841 (eval $ac_try) 2>&5
21842 ac_status=$?
21843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21844 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21846 (eval $ac_try) 2>&5
21847 ac_status=$?
21848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21849 (exit $ac_status); }; }; then
21850
21851 echo "$as_me:$LINENO: result: yes" >&5
21852echo "${ECHO_T}yes" >&6
21853
21854cat >>confdefs.h <<\_ACEOF
21855#define HAVE_2ARGS_REGISTER_SYSCTL 1
21856_ACEOF
21857
21858
21859else
21860 echo "$as_me: failed program was:" >&5
21861sed 's/^/| /' conftest.$ac_ext >&5
21862
bf9f3bac 21863 echo "$as_me:$LINENO: result: no" >&5
21864echo "${ECHO_T}no" >&6
21865
c5f70460
BB
21866
21867
bf9f3bac 21868fi
c5f70460
BB
21869
21870 rm -Rf build
21871
bf9f3bac 21872
21873
21874
21875 echo "$as_me:$LINENO: checking whether set_shrinker() available" >&5
21876echo $ECHO_N "checking whether set_shrinker() available... $ECHO_C" >&6
21877
21878
21879cat >conftest.c <<_ACEOF
21880/* confdefs.h. */
21881_ACEOF
21882cat confdefs.h >>conftest.$ac_ext
21883cat >>conftest.$ac_ext <<_ACEOF
21884/* end confdefs.h. */
21885
21886
21887 #include <linux/mm.h>
21888
21889int
21890main (void)
21891{
21892
21893 return set_shrinker(DEFAULT_SEEKS, NULL);
21894
21895 ;
21896 return 0;
21897}
21898
21899_ACEOF
21900
c5f70460
BB
21901
21902 rm -Rf build && mkdir -p build
21903 echo "obj-m := conftest.o" >build/Makefile
bf338d8d 21904 if { ac_try='cp conftest.c build && make modules LINUXINCLUDE="-Iinclude -Iinclude2 -I$LINUX/include -include include/linux/autoconf.h" -o tmp_include_depends -o scripts -o include/config/MARKER -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
bf9f3bac 21905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21906 (eval $ac_try) 2>&5
21907 ac_status=$?
21908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21909 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21911 (eval $ac_try) 2>&5
21912 ac_status=$?
21913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21914 (exit $ac_status); }; }; then
21915
21916 echo "$as_me:$LINENO: result: yes" >&5
21917echo "${ECHO_T}yes" >&6
21918
21919cat >>confdefs.h <<\_ACEOF
21920#define HAVE_SET_SHRINKER 1
21921_ACEOF
21922
21923
21924else
21925 echo "$as_me: failed program was:" >&5
21926sed 's/^/| /' conftest.$ac_ext >&5
21927
bf9f3bac 21928 echo "$as_me:$LINENO: result: no" >&5
21929echo "${ECHO_T}no" >&6
21930
c5f70460
BB
21931
21932
bf9f3bac 21933fi
c5f70460
BB
21934
21935 rm -Rf build
21936
bf9f3bac 21937
21938
86933a6e 21939 echo "$as_me:$LINENO: checking whether struct path used in struct nameidata" >&5
bf9f3bac 21940echo $ECHO_N "checking whether struct path used in struct nameidata... $ECHO_C" >&6
21941
21942
21943cat >conftest.c <<_ACEOF
21944/* confdefs.h. */
21945_ACEOF
21946cat confdefs.h >>conftest.$ac_ext
21947cat >>conftest.$ac_ext <<_ACEOF
21948/* end confdefs.h. */
21949
21950
21951 #include <linux/namei.h>
21952
21953int
21954main (void)
21955{
21956
21957 struct nameidata nd;
21958
21959 nd.path.mnt = NULL;
21960 nd.path.dentry = NULL;
21961
21962 ;
21963 return 0;
21964}
21965
21966_ACEOF
21967
c5f70460
BB
21968
21969 rm -Rf build && mkdir -p build
21970 echo "obj-m := conftest.o" >build/Makefile
bf338d8d 21971 if { ac_try='cp conftest.c build && make modules LINUXINCLUDE="-Iinclude -Iinclude2 -I$LINUX/include -include include/linux/autoconf.h" -o tmp_include_depends -o scripts -o include/config/MARKER -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
bf9f3bac 21972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21973 (eval $ac_try) 2>&5
21974 ac_status=$?
21975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21976 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21978 (eval $ac_try) 2>&5
21979 ac_status=$?
21980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21981 (exit $ac_status); }; }; then
21982
21983 echo "$as_me:$LINENO: result: yes" >&5
21984echo "${ECHO_T}yes" >&6
21985
21986cat >>confdefs.h <<\_ACEOF
21987#define HAVE_PATH_IN_NAMEIDATA 1
21988_ACEOF
21989
21990
21991else
21992 echo "$as_me: failed program was:" >&5
21993sed 's/^/| /' conftest.$ac_ext >&5
21994
bf9f3bac 21995 echo "$as_me:$LINENO: result: no" >&5
21996echo "${ECHO_T}no" >&6
21997
c5f70460
BB
21998
21999
bf9f3bac 22000fi
c5f70460
BB
22001
22002 rm -Rf build
22003
bf9f3bac 22004
22005
22006
22007 echo "$as_me:$LINENO: checking whether symbol task_curr is exported" >&5
22008echo $ECHO_N "checking whether symbol task_curr is exported... $ECHO_C" >&6
2e0e7e69
BB
22009 grep -q -E '[[:space:]]task_curr[[:space:]]' \
22010 $LINUX_OBJ/Module*.symvers 2>/dev/null
bf9f3bac 22011 rc=$?
22012 if test $rc -ne 0; then
22013 export=0
22014 for file in kernel/sched.c; do
2e0e7e69
BB
22015 grep -q -E "EXPORT_SYMBOL.*(task_curr)" \
22016 "$LINUX_OBJ/$file" 2>/dev/null
bf9f3bac 22017 rc=$?
22018 if test $rc -eq 0; then
22019 export=1
22020 break;
22021 fi
22022 done
22023 if test $export -eq 0; then
22024 echo "$as_me:$LINENO: result: no" >&5
22025echo "${ECHO_T}no" >&6
22026
22027 else
22028 echo "$as_me:$LINENO: result: yes" >&5
22029echo "${ECHO_T}yes" >&6
22030
22031cat >>confdefs.h <<\_ACEOF
22032#define HAVE_TASK_CURR 1
22033_ACEOF
22034
22035 fi
22036 else
22037 echo "$as_me:$LINENO: result: yes" >&5
22038echo "${ECHO_T}yes" >&6
22039
22040cat >>confdefs.h <<\_ACEOF
22041#define HAVE_TASK_CURR 1
22042_ACEOF
22043
22044 fi
22045
22046
86933a6e 22047 echo "$as_me:$LINENO: checking whether unnumbered sysctl support exists" >&5
bf9f3bac 22048echo $ECHO_N "checking whether unnumbered sysctl support exists... $ECHO_C" >&6
22049
22050
22051cat >conftest.c <<_ACEOF
22052/* confdefs.h. */
22053_ACEOF
22054cat confdefs.h >>conftest.$ac_ext
22055cat >>conftest.$ac_ext <<_ACEOF
22056/* end confdefs.h. */
22057
22058
22059 #include <linux/sysctl.h>
22060
22061int
22062main (void)
22063{
22064
22065 #ifndef CTL_UNNUMBERED
22066 #error CTL_UNNUMBERED undefined
22067 #endif
22068
22069 ;
22070 return 0;
22071}
22072
22073_ACEOF
22074
c5f70460
BB
22075
22076 rm -Rf build && mkdir -p build
22077 echo "obj-m := conftest.o" >build/Makefile
bf338d8d 22078 if { ac_try='cp conftest.c build && make modules LINUXINCLUDE="-Iinclude -Iinclude2 -I$LINUX/include -include include/linux/autoconf.h" -o tmp_include_depends -o scripts -o include/config/MARKER -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
bf9f3bac 22079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22080 (eval $ac_try) 2>&5
22081 ac_status=$?
22082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22083 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
22084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22085 (eval $ac_try) 2>&5
22086 ac_status=$?
22087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22088 (exit $ac_status); }; }; then
22089
22090 echo "$as_me:$LINENO: result: yes" >&5
22091echo "${ECHO_T}yes" >&6
22092
22093cat >>confdefs.h <<\_ACEOF
22094#define HAVE_CTL_UNNUMBERED 1
22095_ACEOF
22096
22097
22098else
22099 echo "$as_me: failed program was:" >&5
22100sed 's/^/| /' conftest.$ac_ext >&5
22101
bf9f3bac 22102 echo "$as_me:$LINENO: result: no" >&5
22103echo "${ECHO_T}no" >&6
22104
c5f70460
BB
22105
22106
bf9f3bac 22107fi
c5f70460
BB
22108
22109 rm -Rf build
22110
bf9f3bac 22111
22112
86933a6e 22113 echo "$as_me:$LINENO: checking whether fls64() is available" >&5
bf9f3bac 22114echo $ECHO_N "checking whether fls64() is available... $ECHO_C" >&6
22115
22116
22117cat >conftest.c <<_ACEOF
22118/* confdefs.h. */
22119_ACEOF
22120cat confdefs.h >>conftest.$ac_ext
22121cat >>conftest.$ac_ext <<_ACEOF
22122/* end confdefs.h. */
22123
22124
22125 #include <linux/bitops.h>
22126
22127int
22128main (void)
22129{
22130
22131 return fls64(0);
22132
22133 ;
22134 return 0;
22135}
22136
22137_ACEOF
22138
c5f70460
BB
22139
22140 rm -Rf build && mkdir -p build
22141 echo "obj-m := conftest.o" >build/Makefile
bf338d8d 22142 if { ac_try='cp conftest.c build && make modules LINUXINCLUDE="-Iinclude -Iinclude2 -I$LINUX/include -include include/linux/autoconf.h" -o tmp_include_depends -o scripts -o include/config/MARKER -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
bf9f3bac 22143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22144 (eval $ac_try) 2>&5
22145 ac_status=$?
22146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22147 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
22148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22149 (eval $ac_try) 2>&5
22150 ac_status=$?
22151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22152 (exit $ac_status); }; }; then
22153
22154 echo "$as_me:$LINENO: result: yes" >&5
22155echo "${ECHO_T}yes" >&6
22156
22157cat >>confdefs.h <<\_ACEOF
22158#define HAVE_FLS64 1
22159_ACEOF
22160
22161
22162else
22163 echo "$as_me: failed program was:" >&5
22164sed 's/^/| /' conftest.$ac_ext >&5
22165
bf9f3bac 22166 echo "$as_me:$LINENO: result: no" >&5
22167echo "${ECHO_T}no" >&6
22168
c5f70460
BB
22169
22170
bf9f3bac 22171fi
c5f70460
BB
22172
22173 rm -Rf build
22174
bf9f3bac 22175
22176
22177
22178 echo "$as_me:$LINENO: checking whether symbol device_create is exported" >&5
22179echo $ECHO_N "checking whether symbol device_create is exported... $ECHO_C" >&6
2e0e7e69
BB
22180 grep -q -E '[[:space:]]device_create[[:space:]]' \
22181 $LINUX_OBJ/Module*.symvers 2>/dev/null
bf9f3bac 22182 rc=$?
22183 if test $rc -ne 0; then
22184 export=0
22185 for file in drivers/base/core.c; do
2e0e7e69
BB
22186 grep -q -E "EXPORT_SYMBOL.*(device_create)" \
22187 "$LINUX_OBJ/$file" 2>/dev/null
bf9f3bac 22188 rc=$?
22189 if test $rc -eq 0; then
22190 export=1
22191 break;
22192 fi
22193 done
22194 if test $export -eq 0; then
22195 echo "$as_me:$LINENO: result: no" >&5
22196echo "${ECHO_T}no" >&6
22197
22198 else
22199 echo "$as_me:$LINENO: result: yes" >&5
22200echo "${ECHO_T}yes" >&6
22201
22202cat >>confdefs.h <<\_ACEOF
22203#define HAVE_DEVICE_CREATE 1
22204_ACEOF
22205
22206 fi
22207 else
22208 echo "$as_me:$LINENO: result: yes" >&5
22209echo "${ECHO_T}yes" >&6
22210
22211cat >>confdefs.h <<\_ACEOF
22212#define HAVE_DEVICE_CREATE 1
22213_ACEOF
22214
22215 fi
22216
22217
22218
8123ac4f
BB
22219 echo "$as_me:$LINENO: checking whether device_create() wants 5 args" >&5
22220echo $ECHO_N "checking whether device_create() wants 5 args... $ECHO_C" >&6
22221 tmp_flags="$EXTRA_KCFLAGS"
22222 EXTRA_KCFLAGS="-Werror"
22223
22224
22225cat >conftest.c <<_ACEOF
22226/* confdefs.h. */
22227_ACEOF
22228cat confdefs.h >>conftest.$ac_ext
22229cat >>conftest.$ac_ext <<_ACEOF
22230/* end confdefs.h. */
22231
22232
22233 #include <linux/device.h>
22234
22235int
22236main (void)
22237{
22238
22239 device_create(NULL, NULL, 0, NULL, "%d", 1);
22240
22241 ;
22242 return 0;
22243}
22244
22245_ACEOF
22246
22247
22248 rm -Rf build && mkdir -p build
22249 echo "obj-m := conftest.o" >build/Makefile
bf338d8d 22250 if { ac_try='cp conftest.c build && make modules LINUXINCLUDE="-Iinclude -Iinclude2 -I$LINUX/include -include include/linux/autoconf.h" -o tmp_include_depends -o scripts -o include/config/MARKER -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
8123ac4f
BB
22251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22252 (eval $ac_try) 2>&5
22253 ac_status=$?
22254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22255 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
22256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22257 (eval $ac_try) 2>&5
22258 ac_status=$?
22259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22260 (exit $ac_status); }; }; then
22261
22262 echo "$as_me:$LINENO: result: yes" >&5
22263echo "${ECHO_T}yes" >&6
22264
22265cat >>confdefs.h <<\_ACEOF
22266#define HAVE_5ARGS_DEVICE_CREATE 1
22267_ACEOF
22268
22269
22270else
22271 echo "$as_me: failed program was:" >&5
22272sed 's/^/| /' conftest.$ac_ext >&5
22273
22274 echo "$as_me:$LINENO: result: no" >&5
22275echo "${ECHO_T}no" >&6
22276
22277
22278
22279fi
22280
22281 rm -Rf build
22282
22283
22284 EXTRA_KCFLAGS="$tmp_flags"
22285
22286
bf9f3bac 22287 echo "$as_me:$LINENO: checking whether symbol class_device_create is exported" >&5
22288echo $ECHO_N "checking whether symbol class_device_create is exported... $ECHO_C" >&6
2e0e7e69
BB
22289 grep -q -E '[[:space:]]class_device_create[[:space:]]' \
22290 $LINUX_OBJ/Module*.symvers 2>/dev/null
bf9f3bac 22291 rc=$?
22292 if test $rc -ne 0; then
22293 export=0
22294 for file in drivers/base/class.c; do
2e0e7e69
BB
22295 grep -q -E "EXPORT_SYMBOL.*(class_device_create)" \
22296 "$LINUX_OBJ/$file" 2>/dev/null
bf9f3bac 22297 rc=$?
22298 if test $rc -eq 0; then
22299 export=1
22300 break;
22301 fi
22302 done
22303 if test $export -eq 0; then
22304 echo "$as_me:$LINENO: result: no" >&5
22305echo "${ECHO_T}no" >&6
22306
22307 else
22308 echo "$as_me:$LINENO: result: yes" >&5
22309echo "${ECHO_T}yes" >&6
22310
22311cat >>confdefs.h <<\_ACEOF
22312#define HAVE_CLASS_DEVICE_CREATE 1
22313_ACEOF
22314
22315 fi
22316 else
22317 echo "$as_me:$LINENO: result: yes" >&5
22318echo "${ECHO_T}yes" >&6
22319
22320cat >>confdefs.h <<\_ACEOF
22321#define HAVE_CLASS_DEVICE_CREATE 1
22322_ACEOF
22323
22324 fi
22325
22326
22327
22328 echo "$as_me:$LINENO: checking whether symbol set_normalized_timespec is exported" >&5
22329echo $ECHO_N "checking whether symbol set_normalized_timespec is exported... $ECHO_C" >&6
2e0e7e69
BB
22330 grep -q -E '[[:space:]]set_normalized_timespec[[:space:]]' \
22331 $LINUX_OBJ/Module*.symvers 2>/dev/null
bf9f3bac 22332 rc=$?
22333 if test $rc -ne 0; then
22334 export=0
22335 for file in kernel/time.c; do
2e0e7e69
BB
22336 grep -q -E "EXPORT_SYMBOL.*(set_normalized_timespec)" \
22337 "$LINUX_OBJ/$file" 2>/dev/null
bf9f3bac 22338 rc=$?
22339 if test $rc -eq 0; then
22340 export=1
22341 break;
22342 fi
22343 done
22344 if test $export -eq 0; then
22345 echo "$as_me:$LINENO: result: no" >&5
22346echo "${ECHO_T}no" >&6
22347
22348 else
22349 echo "$as_me:$LINENO: result: yes" >&5
22350echo "${ECHO_T}yes" >&6
22351
22352cat >>confdefs.h <<\_ACEOF
22353#define HAVE_SET_NORMALIZED_TIMESPEC_EXPORT 1
22354_ACEOF
22355
22356 fi
22357 else
22358 echo "$as_me:$LINENO: result: yes" >&5
22359echo "${ECHO_T}yes" >&6
22360
22361cat >>confdefs.h <<\_ACEOF
22362#define HAVE_SET_NORMALIZED_TIMESPEC_EXPORT 1
22363_ACEOF
22364
22365 fi
22366
22367
22368
22369 echo "$as_me:$LINENO: checking whether set_normalized_timespec() is an inline" >&5
22370echo $ECHO_N "checking whether set_normalized_timespec() is an inline... $ECHO_C" >&6
22371
22372
22373cat >conftest.c <<_ACEOF
22374/* confdefs.h. */
22375_ACEOF
22376cat confdefs.h >>conftest.$ac_ext
22377cat >>conftest.$ac_ext <<_ACEOF
22378/* end confdefs.h. */
22379
22380
22381 #include <linux/time.h>
22382 void set_normalized_timespec(struct timespec *ts,
22383 time_t sec, long nsec) { }
22384
22385int
22386main (void)
22387{
22388
22389 ;
22390 return 0;
22391}
22392
22393_ACEOF
22394
c5f70460
BB
22395
22396 rm -Rf build && mkdir -p build
22397 echo "obj-m := conftest.o" >build/Makefile
bf338d8d 22398 if { ac_try='cp conftest.c build && make modules LINUXINCLUDE="-Iinclude -Iinclude2 -I$LINUX/include -include include/linux/autoconf.h" -o tmp_include_depends -o scripts -o include/config/MARKER -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
bf9f3bac 22399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22400 (eval $ac_try) 2>&5
22401 ac_status=$?
22402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22403 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
22404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22405 (eval $ac_try) 2>&5
22406 ac_status=$?
22407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22408 (exit $ac_status); }; }; then
22409
22410 echo "$as_me:$LINENO: result: no" >&5
22411echo "${ECHO_T}no" >&6
22412
22413else
22414 echo "$as_me: failed program was:" >&5
22415sed 's/^/| /' conftest.$ac_ext >&5
22416
bf9f3bac 22417 echo "$as_me:$LINENO: result: yes" >&5
22418echo "${ECHO_T}yes" >&6
22419
22420cat >>confdefs.h <<\_ACEOF
22421#define HAVE_SET_NORMALIZED_TIMESPEC_INLINE 1
22422_ACEOF
22423
22424
c5f70460
BB
22425
22426
bf9f3bac 22427fi
c5f70460
BB
22428
22429 rm -Rf build
22430
bf9f3bac 22431
22432
22433
22434 echo "$as_me:$LINENO: checking whether timespec_sub() is available" >&5
22435echo $ECHO_N "checking whether timespec_sub() is available... $ECHO_C" >&6
22436
22437
22438cat >conftest.c <<_ACEOF
22439/* confdefs.h. */
22440_ACEOF
22441cat confdefs.h >>conftest.$ac_ext
22442cat >>conftest.$ac_ext <<_ACEOF
22443/* end confdefs.h. */
22444
22445
22446 #include <linux/time.h>
22447
22448int
22449main (void)
22450{
22451
22452 struct timespec a, b, c = { 0 };
22453 c = timespec_sub(a, b);
22454
22455 ;
22456 return 0;
22457}
22458
22459_ACEOF
22460
c5f70460
BB
22461
22462 rm -Rf build && mkdir -p build
22463 echo "obj-m := conftest.o" >build/Makefile
bf338d8d 22464 if { ac_try='cp conftest.c build && make modules LINUXINCLUDE="-Iinclude -Iinclude2 -I$LINUX/include -include include/linux/autoconf.h" -o tmp_include_depends -o scripts -o include/config/MARKER -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
bf9f3bac 22465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22466 (eval $ac_try) 2>&5
22467 ac_status=$?
22468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22469 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
22470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22471 (eval $ac_try) 2>&5
22472 ac_status=$?
22473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22474 (exit $ac_status); }; }; then
22475
22476 echo "$as_me:$LINENO: result: yes" >&5
22477echo "${ECHO_T}yes" >&6
22478
22479cat >>confdefs.h <<\_ACEOF
22480#define HAVE_TIMESPEC_SUB 1
22481_ACEOF
22482
22483
22484else
22485 echo "$as_me: failed program was:" >&5
22486sed 's/^/| /' conftest.$ac_ext >&5
22487
bf9f3bac 22488 echo "$as_me:$LINENO: result: no" >&5
22489echo "${ECHO_T}no" >&6
22490
c5f70460
BB
22491
22492
bf9f3bac 22493fi
c5f70460
BB
22494
22495 rm -Rf build
22496
bf9f3bac 22497
22498
22499
22500 echo "$as_me:$LINENO: checking whether init_utsname() is available" >&5
22501echo $ECHO_N "checking whether init_utsname() is available... $ECHO_C" >&6
22502
22503
22504cat >conftest.c <<_ACEOF
22505/* confdefs.h. */
22506_ACEOF
22507cat confdefs.h >>conftest.$ac_ext
22508cat >>conftest.$ac_ext <<_ACEOF
22509/* end confdefs.h. */
22510
22511
22512 #include <linux/utsname.h>
22513
22514int
22515main (void)
22516{
22517
22518 struct new_utsname *a = init_utsname();
22519
22520 ;
22521 return 0;
22522}
22523
22524_ACEOF
22525
c5f70460
BB
22526
22527 rm -Rf build && mkdir -p build
22528 echo "obj-m := conftest.o" >build/Makefile
bf338d8d 22529 if { ac_try='cp conftest.c build && make modules LINUXINCLUDE="-Iinclude -Iinclude2 -I$LINUX/include -include include/linux/autoconf.h" -o tmp_include_depends -o scripts -o include/config/MARKER -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
bf9f3bac 22530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22531 (eval $ac_try) 2>&5
22532 ac_status=$?
22533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22534 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
22535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22536 (eval $ac_try) 2>&5
22537 ac_status=$?
22538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22539 (exit $ac_status); }; }; then
22540
22541 echo "$as_me:$LINENO: result: yes" >&5
22542echo "${ECHO_T}yes" >&6
22543
22544cat >>confdefs.h <<\_ACEOF
22545#define HAVE_INIT_UTSNAME 1
22546_ACEOF
22547
22548
22549else
22550 echo "$as_me: failed program was:" >&5
22551sed 's/^/| /' conftest.$ac_ext >&5
22552
bf9f3bac 22553 echo "$as_me:$LINENO: result: no" >&5
22554echo "${ECHO_T}no" >&6
22555
c5f70460
BB
22556
22557
bf9f3bac 22558fi
c5f70460
BB
22559
22560 rm -Rf build
22561
bf9f3bac 22562
22563
22564
22565 echo "$as_me:$LINENO: checking whether header linux/fdtable.h exists" >&5
22566echo $ECHO_N "checking whether header linux/fdtable.h exists... $ECHO_C" >&6
22567
22568
22569cat >conftest.c <<_ACEOF
22570/* confdefs.h. */
22571_ACEOF
22572cat confdefs.h >>conftest.$ac_ext
22573cat >>conftest.$ac_ext <<_ACEOF
22574/* end confdefs.h. */
22575
22576
22577 #include <linux/fdtable.h>
22578
22579int
22580main (void)
22581{
22582
22583 return 0;
22584
22585 ;
22586 return 0;
22587}
22588
22589_ACEOF
22590
c5f70460
BB
22591
22592 rm -Rf build && mkdir -p build
22593 echo "obj-m := conftest.o" >build/Makefile
bf338d8d 22594 if { ac_try='cp conftest.c build && make modules LINUXINCLUDE="-Iinclude -Iinclude2 -I$LINUX/include -include include/linux/autoconf.h" -o tmp_include_depends -o scripts -o include/config/MARKER -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
bf9f3bac 22595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22596 (eval $ac_try) 2>&5
22597 ac_status=$?
22598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22599 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
22600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22601 (eval $ac_try) 2>&5
22602 ac_status=$?
22603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22604 (exit $ac_status); }; }; then
22605
22606
22607cat >>confdefs.h <<\_ACEOF
22608#define HAVE_FDTABLE_HEADER 1
22609_ACEOF
22610
22611 echo "$as_me:$LINENO: result: yes" >&5
22612echo "${ECHO_T}yes" >&6
22613
22614
22615else
22616 echo "$as_me: failed program was:" >&5
22617sed 's/^/| /' conftest.$ac_ext >&5
22618
bf9f3bac 22619 echo "$as_me:$LINENO: result: no" >&5
22620echo "${ECHO_T}no" >&6
22621
22622
c5f70460
BB
22623
22624
bf9f3bac 22625fi
c5f70460
BB
22626
22627 rm -Rf build
22628
bf9f3bac 22629
22630
22631
22632
22633 echo "$as_me:$LINENO: checking whether files_fdtable() is available" >&5
22634echo $ECHO_N "checking whether files_fdtable() is available... $ECHO_C" >&6
22635
22636
22637cat >conftest.c <<_ACEOF
22638/* confdefs.h. */
22639_ACEOF
22640cat confdefs.h >>conftest.$ac_ext
22641cat >>conftest.$ac_ext <<_ACEOF
22642/* end confdefs.h. */
22643
22644
22645 #include <linux/sched.h>
22646 #include <linux/file.h>
22647 #ifdef HAVE_FDTABLE_HEADER
22648 #include <linux/fdtable.h>
22649 #endif
22650
22651int
22652main (void)
22653{
22654
22655 struct files_struct *files = current->files;
22656 struct fdtable *fdt = files_fdtable(files);
22657
22658 ;
22659 return 0;
22660}
22661
22662_ACEOF
22663
c5f70460
BB
22664
22665 rm -Rf build && mkdir -p build
22666 echo "obj-m := conftest.o" >build/Makefile
bf338d8d 22667 if { ac_try='cp conftest.c build && make modules LINUXINCLUDE="-Iinclude -Iinclude2 -I$LINUX/include -include include/linux/autoconf.h" -o tmp_include_depends -o scripts -o include/config/MARKER -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
bf9f3bac 22668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22669 (eval $ac_try) 2>&5
22670 ac_status=$?
22671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22672 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
22673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22674 (eval $ac_try) 2>&5
22675 ac_status=$?
22676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22677 (exit $ac_status); }; }; then
22678
22679 echo "$as_me:$LINENO: result: yes" >&5
22680echo "${ECHO_T}yes" >&6
22681
22682cat >>confdefs.h <<\_ACEOF
22683#define HAVE_FILES_FDTABLE 1
22684_ACEOF
22685
22686
22687else
22688 echo "$as_me: failed program was:" >&5
22689sed 's/^/| /' conftest.$ac_ext >&5
22690
bf9f3bac 22691 echo "$as_me:$LINENO: result: no" >&5
22692echo "${ECHO_T}no" >&6
22693
c5f70460
BB
22694
22695
bf9f3bac 22696fi
c5f70460
BB
22697
22698 rm -Rf build
22699
bf9f3bac 22700
22701
22702
22703 echo "$as_me:$LINENO: checking whether header linux/uaccess.h exists" >&5
22704echo $ECHO_N "checking whether header linux/uaccess.h exists... $ECHO_C" >&6
22705
22706
22707cat >conftest.c <<_ACEOF
22708/* confdefs.h. */
22709_ACEOF
22710cat confdefs.h >>conftest.$ac_ext
22711cat >>conftest.$ac_ext <<_ACEOF
22712/* end confdefs.h. */
22713
22714
22715 #include <linux/uaccess.h>
22716
22717int
22718main (void)
22719{
22720
22721 return 0;
22722
22723 ;
22724 return 0;
22725}
22726
22727_ACEOF
22728
c5f70460
BB
22729
22730 rm -Rf build && mkdir -p build
22731 echo "obj-m := conftest.o" >build/Makefile
bf338d8d 22732 if { ac_try='cp conftest.c build && make modules LINUXINCLUDE="-Iinclude -Iinclude2 -I$LINUX/include -include include/linux/autoconf.h" -o tmp_include_depends -o scripts -o include/config/MARKER -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
bf9f3bac 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); }; } >/dev/null && { ac_try='test -s build/conftest.o'
22738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22739 (eval $ac_try) 2>&5
22740 ac_status=$?
22741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22742 (exit $ac_status); }; }; then
22743
22744
22745cat >>confdefs.h <<\_ACEOF
22746#define HAVE_UACCESS_HEADER 1
22747_ACEOF
22748
22749 echo "$as_me:$LINENO: result: yes" >&5
22750echo "${ECHO_T}yes" >&6
22751
22752
22753else
22754 echo "$as_me: failed program was:" >&5
22755sed 's/^/| /' conftest.$ac_ext >&5
22756
bf9f3bac 22757 echo "$as_me:$LINENO: result: no" >&5
22758echo "${ECHO_T}no" >&6
22759
22760
c5f70460
BB
22761
22762
bf9f3bac 22763fi
c5f70460
BB
22764
22765 rm -Rf build
22766
bf9f3bac 22767
22768
22769
22770
22771 echo "$as_me:$LINENO: checking whether kmalloc_node() is available" >&5
22772echo $ECHO_N "checking whether kmalloc_node() is available... $ECHO_C" >&6
22773
22774
22775cat >conftest.c <<_ACEOF
22776/* confdefs.h. */
22777_ACEOF
22778cat confdefs.h >>conftest.$ac_ext
22779cat >>conftest.$ac_ext <<_ACEOF
22780/* end confdefs.h. */
22781
22782
22783 #include <linux/slab.h>
22784
22785int
22786main (void)
22787{
22788
22789 void *a = kmalloc_node(1, GFP_KERNEL, 0);
22790
22791 ;
22792 return 0;
22793}
22794
22795_ACEOF
22796
c5f70460
BB
22797
22798 rm -Rf build && mkdir -p build
22799 echo "obj-m := conftest.o" >build/Makefile
bf338d8d 22800 if { ac_try='cp conftest.c build && make modules LINUXINCLUDE="-Iinclude -Iinclude2 -I$LINUX/include -include include/linux/autoconf.h" -o tmp_include_depends -o scripts -o include/config/MARKER -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
bf9f3bac 22801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22802 (eval $ac_try) 2>&5
22803 ac_status=$?
22804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22805 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
22806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22807 (eval $ac_try) 2>&5
22808 ac_status=$?
22809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22810 (exit $ac_status); }; }; then
22811
22812 echo "$as_me:$LINENO: result: yes" >&5
22813echo "${ECHO_T}yes" >&6
22814
22815cat >>confdefs.h <<\_ACEOF
22816#define HAVE_KMALLOC_NODE 1
22817_ACEOF
22818
22819
22820else
22821 echo "$as_me: failed program was:" >&5
22822sed 's/^/| /' conftest.$ac_ext >&5
22823
bf9f3bac 22824 echo "$as_me:$LINENO: result: no" >&5
22825echo "${ECHO_T}no" >&6
22826
c5f70460
BB
22827
22828
bf9f3bac 22829fi
c5f70460
BB
22830
22831 rm -Rf build
22832
bf9f3bac 22833
22834
22835
22836 echo "$as_me:$LINENO: checking whether symbol monotonic_clock is exported" >&5
22837echo $ECHO_N "checking whether symbol monotonic_clock is exported... $ECHO_C" >&6
2e0e7e69
BB
22838 grep -q -E '[[:space:]]monotonic_clock[[:space:]]' \
22839 $LINUX_OBJ/Module*.symvers 2>/dev/null
bf9f3bac 22840 rc=$?
22841 if test $rc -ne 0; then
22842 export=0
22843 for file in ; do
2e0e7e69
BB
22844 grep -q -E "EXPORT_SYMBOL.*(monotonic_clock)" \
22845 "$LINUX_OBJ/$file" 2>/dev/null
bf9f3bac 22846 rc=$?
22847 if test $rc -eq 0; then
22848 export=1
22849 break;
22850 fi
22851 done
22852 if test $export -eq 0; then
22853 echo "$as_me:$LINENO: result: no" >&5
22854echo "${ECHO_T}no" >&6
22855
22856 else
22857 echo "$as_me:$LINENO: result: yes" >&5
22858echo "${ECHO_T}yes" >&6
22859
22860cat >>confdefs.h <<\_ACEOF
22861#define HAVE_MONOTONIC_CLOCK 1
22862_ACEOF
22863
22864 fi
22865 else
22866 echo "$as_me:$LINENO: result: yes" >&5
22867echo "${ECHO_T}yes" >&6
22868
22869cat >>confdefs.h <<\_ACEOF
22870#define HAVE_MONOTONIC_CLOCK 1
22871_ACEOF
22872
22873 fi
22874
22875
22876
22877 echo "$as_me:$LINENO: checking whether struct inode has i_mutex" >&5
22878echo $ECHO_N "checking whether struct inode has i_mutex... $ECHO_C" >&6
22879
22880
22881cat >conftest.c <<_ACEOF
22882/* confdefs.h. */
22883_ACEOF
22884cat confdefs.h >>conftest.$ac_ext
22885cat >>conftest.$ac_ext <<_ACEOF
22886/* end confdefs.h. */
22887
22888
22889 #include <linux/fs.h>
22890 #include <linux/mutex.h>
22891
22892int
22893main (void)
22894{
22895
22896 struct inode i;
22897 mutex_init(&i.i_mutex);
22898
22899 ;
22900 return 0;
22901}
22902
22903_ACEOF
22904
c5f70460
BB
22905
22906 rm -Rf build && mkdir -p build
22907 echo "obj-m := conftest.o" >build/Makefile
bf338d8d 22908 if { ac_try='cp conftest.c build && make modules LINUXINCLUDE="-Iinclude -Iinclude2 -I$LINUX/include -include include/linux/autoconf.h" -o tmp_include_depends -o scripts -o include/config/MARKER -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
bf9f3bac 22909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22910 (eval $ac_try) 2>&5
22911 ac_status=$?
22912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22913 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
22914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22915 (eval $ac_try) 2>&5
22916 ac_status=$?
22917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22918 (exit $ac_status); }; }; then
22919
22920 echo "$as_me:$LINENO: result: yes" >&5
22921echo "${ECHO_T}yes" >&6
22922
22923cat >>confdefs.h <<\_ACEOF
22924#define HAVE_INODE_I_MUTEX 1
22925_ACEOF
22926
22927
22928else
22929 echo "$as_me: failed program was:" >&5
22930sed 's/^/| /' conftest.$ac_ext >&5
22931
bf9f3bac 22932 echo "$as_me:$LINENO: result: no" >&5
22933echo "${ECHO_T}no" >&6
22934
c5f70460
BB
22935
22936
bf9f3bac 22937fi
c5f70460
BB
22938
22939 rm -Rf build
22940
bf9f3bac 22941
22942
22943
6c9433c1
BB
22944 echo "$as_me:$LINENO: checking whether mutex_lock_nested() is available" >&5
22945echo $ECHO_N "checking whether mutex_lock_nested() is available... $ECHO_C" >&6
22946
22947
22948cat >conftest.c <<_ACEOF
22949/* confdefs.h. */
22950_ACEOF
22951cat confdefs.h >>conftest.$ac_ext
22952cat >>conftest.$ac_ext <<_ACEOF
22953/* end confdefs.h. */
22954
22955
22956 #include <linux/mutex.h>
22957
22958int
22959main (void)
22960{
22961
22962 struct mutex mutex;
22963 mutex_init(&mutex);
22964 mutex_lock_nested(&mutex, 0);
22965
22966 ;
22967 return 0;
22968}
22969
22970_ACEOF
22971
22972
22973 rm -Rf build && mkdir -p build
22974 echo "obj-m := conftest.o" >build/Makefile
22975 if { ac_try='cp conftest.c build && make modules LINUXINCLUDE="-Iinclude -Iinclude2 -I$LINUX/include -include include/linux/autoconf.h" -o tmp_include_depends -o scripts -o include/config/MARKER -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
22976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22977 (eval $ac_try) 2>&5
22978 ac_status=$?
22979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22980 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
22981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22982 (eval $ac_try) 2>&5
22983 ac_status=$?
22984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22985 (exit $ac_status); }; }; then
22986
22987 echo "$as_me:$LINENO: result: yes" >&5
22988echo "${ECHO_T}yes" >&6
22989
22990cat >>confdefs.h <<\_ACEOF
22991#define HAVE_MUTEX_LOCK_NESTED 1
22992_ACEOF
22993
22994
22995else
22996 echo "$as_me: failed program was:" >&5
22997sed 's/^/| /' conftest.$ac_ext >&5
22998
22999 echo "$as_me:$LINENO: result: no" >&5
23000echo "${ECHO_T}no" >&6
23001
23002
23003
23004fi
23005
23006 rm -Rf build
23007
23008
23009
23010
96dded38
BB
23011 echo "$as_me:$LINENO: checking whether symbol div64_64 is exported" >&5
23012echo $ECHO_N "checking whether symbol div64_64 is exported... $ECHO_C" >&6
2e0e7e69
BB
23013 grep -q -E '[[:space:]]div64_64[[:space:]]' \
23014 $LINUX_OBJ/Module*.symvers 2>/dev/null
96dded38
BB
23015 rc=$?
23016 if test $rc -ne 0; then
23017 export=0
23018 for file in ; do
2e0e7e69
BB
23019 grep -q -E "EXPORT_SYMBOL.*(div64_64)" \
23020 "$LINUX_OBJ/$file" 2>/dev/null
96dded38
BB
23021 rc=$?
23022 if test $rc -eq 0; then
23023 export=1
23024 break;
23025 fi
23026 done
23027 if test $export -eq 0; then
23028 echo "$as_me:$LINENO: result: no" >&5
23029echo "${ECHO_T}no" >&6
bf9f3bac 23030
96dded38
BB
23031 else
23032 echo "$as_me:$LINENO: result: yes" >&5
23033echo "${ECHO_T}yes" >&6
bf9f3bac 23034
96dded38
BB
23035cat >>confdefs.h <<\_ACEOF
23036#define HAVE_DIV64_64 1
bf9f3bac 23037_ACEOF
23038
96dded38
BB
23039 fi
23040 else
bf9f3bac 23041 echo "$as_me:$LINENO: result: yes" >&5
23042echo "${ECHO_T}yes" >&6
23043
23044cat >>confdefs.h <<\_ACEOF
23045#define HAVE_DIV64_64 1
23046_ACEOF
23047
96dded38
BB
23048 fi
23049
bf9f3bac 23050
31a033ec 23051
96dded38
BB
23052 echo "$as_me:$LINENO: checking whether symbol div64_u64 is exported" >&5
23053echo $ECHO_N "checking whether symbol div64_u64 is exported... $ECHO_C" >&6
2e0e7e69
BB
23054 grep -q -E '[[:space:]]div64_u64[[:space:]]' \
23055 $LINUX_OBJ/Module*.symvers 2>/dev/null
96dded38
BB
23056 rc=$?
23057 if test $rc -ne 0; then
23058 export=0
23059 for file in ; do
2e0e7e69
BB
23060 grep -q -E "EXPORT_SYMBOL.*(div64_u64)" \
23061 "$LINUX_OBJ/$file" 2>/dev/null
96dded38
BB
23062 rc=$?
23063 if test $rc -eq 0; then
23064 export=1
23065 break;
23066 fi
23067 done
23068 if test $export -eq 0; then
23069 echo "$as_me:$LINENO: result: no" >&5
31a033ec
BB
23070echo "${ECHO_T}no" >&6
23071
96dded38
BB
23072 else
23073 echo "$as_me:$LINENO: result: yes" >&5
23074echo "${ECHO_T}yes" >&6
c5f70460 23075
96dded38
BB
23076cat >>confdefs.h <<\_ACEOF
23077#define HAVE_DIV64_U64 1
23078_ACEOF
c5f70460 23079
96dded38
BB
23080 fi
23081 else
23082 echo "$as_me:$LINENO: result: yes" >&5
23083echo "${ECHO_T}yes" >&6
c5f70460 23084
96dded38
BB
23085cat >>confdefs.h <<\_ACEOF
23086#define HAVE_DIV64_U64 1
23087_ACEOF
c5f70460 23088
96dded38 23089 fi
31a033ec
BB
23090
23091
23092
23093 echo "$as_me:$LINENO: checking whether on_each_cpu() wants 3 args" >&5
23094echo $ECHO_N "checking whether on_each_cpu() wants 3 args... $ECHO_C" >&6
23095
23096
23097cat >conftest.c <<_ACEOF
23098/* confdefs.h. */
23099_ACEOF
23100cat confdefs.h >>conftest.$ac_ext
23101cat >>conftest.$ac_ext <<_ACEOF
23102/* end confdefs.h. */
23103
23104
23105 #include <linux/smp.h>
23106
23107int
23108main (void)
23109{
23110
23111 on_each_cpu(NULL, NULL, 0);
23112
23113 ;
23114 return 0;
23115}
23116
23117_ACEOF
23118
c5f70460
BB
23119
23120 rm -Rf build && mkdir -p build
23121 echo "obj-m := conftest.o" >build/Makefile
bf338d8d 23122 if { ac_try='cp conftest.c build && make modules LINUXINCLUDE="-Iinclude -Iinclude2 -I$LINUX/include -include include/linux/autoconf.h" -o tmp_include_depends -o scripts -o include/config/MARKER -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
31a033ec
BB
23123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23124 (eval $ac_try) 2>&5
23125 ac_status=$?
23126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23127 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
23128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23129 (eval $ac_try) 2>&5
23130 ac_status=$?
23131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23132 (exit $ac_status); }; }; then
23133
23134 echo "$as_me:$LINENO: result: yes" >&5
23135echo "${ECHO_T}yes" >&6
23136
23137cat >>confdefs.h <<\_ACEOF
23138#define HAVE_3ARGS_ON_EACH_CPU 1
23139_ACEOF
23140
23141
bf9f3bac 23142else
23143 echo "$as_me: failed program was:" >&5
23144sed 's/^/| /' conftest.$ac_ext >&5
23145
bf9f3bac 23146 echo "$as_me:$LINENO: result: no" >&5
23147echo "${ECHO_T}no" >&6
23148
c5f70460
BB
23149
23150
bf9f3bac 23151fi
c5f70460
BB
23152
23153 rm -Rf build
23154
bf9f3bac 23155
23156
23157
d1ff2312
BB
23158 echo "$as_me:$LINENO: checking whether symbol kallsyms_lookup_name is exported" >&5
23159echo $ECHO_N "checking whether symbol kallsyms_lookup_name is exported... $ECHO_C" >&6
2e0e7e69
BB
23160 grep -q -E '[[:space:]]kallsyms_lookup_name[[:space:]]' \
23161 $LINUX_OBJ/Module*.symvers 2>/dev/null
d1ff2312
BB
23162 rc=$?
23163 if test $rc -ne 0; then
23164 export=0
23165 for file in ; do
2e0e7e69
BB
23166 grep -q -E "EXPORT_SYMBOL.*(kallsyms_lookup_name)" \
23167 "$LINUX_OBJ/$file" 2>/dev/null
d1ff2312
BB
23168 rc=$?
23169 if test $rc -eq 0; then
23170 export=1
23171 break;
23172 fi
23173 done
23174 if test $export -eq 0; then
23175 echo "$as_me:$LINENO: result: no" >&5
23176echo "${ECHO_T}no" >&6
23177
23178 else
23179 echo "$as_me:$LINENO: result: yes" >&5
23180echo "${ECHO_T}yes" >&6
23181
23182cat >>confdefs.h <<\_ACEOF
23183#define HAVE_KALLSYMS_LOOKUP_NAME 1
23184_ACEOF
23185
23186 fi
23187 else
23188 echo "$as_me:$LINENO: result: yes" >&5
23189echo "${ECHO_T}yes" >&6
23190
23191cat >>confdefs.h <<\_ACEOF
23192#define HAVE_KALLSYMS_LOOKUP_NAME 1
23193_ACEOF
23194
23195 fi
23196
23197
23198
23199 echo "$as_me:$LINENO: checking whether symbol get_vmalloc_info is exported" >&5
23200echo $ECHO_N "checking whether symbol get_vmalloc_info is exported... $ECHO_C" >&6
2e0e7e69
BB
23201 grep -q -E '[[:space:]]get_vmalloc_info[[:space:]]' \
23202 $LINUX_OBJ/Module*.symvers 2>/dev/null
d1ff2312
BB
23203 rc=$?
23204 if test $rc -ne 0; then
23205 export=0
23206 for file in ; do
2e0e7e69
BB
23207 grep -q -E "EXPORT_SYMBOL.*(get_vmalloc_info)" \
23208 "$LINUX_OBJ/$file" 2>/dev/null
d1ff2312
BB
23209 rc=$?
23210 if test $rc -eq 0; then
23211 export=1
23212 break;
23213 fi
23214 done
23215 if test $export -eq 0; then
23216 echo "$as_me:$LINENO: result: no" >&5
23217echo "${ECHO_T}no" >&6
23218
23219 else
23220 echo "$as_me:$LINENO: result: yes" >&5
23221echo "${ECHO_T}yes" >&6
23222
23223cat >>confdefs.h <<\_ACEOF
23224#define HAVE_GET_VMALLOC_INFO 1
23225_ACEOF
23226
23227 fi
23228 else
23229 echo "$as_me:$LINENO: result: yes" >&5
23230echo "${ECHO_T}yes" >&6
23231
23232cat >>confdefs.h <<\_ACEOF
23233#define HAVE_GET_VMALLOC_INFO 1
23234_ACEOF
23235
23236 fi
23237
23238
23239
5232d256
BB
23240 echo "$as_me:$LINENO: checking whether symbol *_pgdat exist" >&5
23241echo $ECHO_N "checking whether symbol *_pgdat exist... $ECHO_C" >&6
23242 grep -q -E 'first_online_pgdat' $LINUX/include/linux/mmzone.h 2>/dev/null
23243 rc=$?
23244 if test $rc -eq 0; then
23245 echo "$as_me:$LINENO: result: yes" >&5
23246echo "${ECHO_T}yes" >&6
23247
23248cat >>confdefs.h <<\_ACEOF
23249#define HAVE_PGDAT_HELPERS 1
23250_ACEOF
23251
23252 else
23253 echo "$as_me:$LINENO: result: no" >&5
23254echo "${ECHO_T}no" >&6
23255 fi
23256
23257
36b313da
BB
23258 echo "$as_me:$LINENO: checking whether symbol first_online_pgdat is exported" >&5
23259echo $ECHO_N "checking whether symbol first_online_pgdat is exported... $ECHO_C" >&6
2e0e7e69
BB
23260 grep -q -E '[[:space:]]first_online_pgdat[[:space:]]' \
23261 $LINUX_OBJ/Module*.symvers 2>/dev/null
36b313da
BB
23262 rc=$?
23263 if test $rc -ne 0; then
23264 export=0
23265 for file in ; do
2e0e7e69
BB
23266 grep -q -E "EXPORT_SYMBOL.*(first_online_pgdat)" \
23267 "$LINUX_OBJ/$file" 2>/dev/null
36b313da
BB
23268 rc=$?
23269 if test $rc -eq 0; then
23270 export=1
23271 break;
23272 fi
23273 done
23274 if test $export -eq 0; then
23275 echo "$as_me:$LINENO: result: no" >&5
23276echo "${ECHO_T}no" >&6
23277
23278 else
23279 echo "$as_me:$LINENO: result: yes" >&5
23280echo "${ECHO_T}yes" >&6
23281
23282cat >>confdefs.h <<\_ACEOF
23283#define HAVE_FIRST_ONLINE_PGDAT 1
23284_ACEOF
23285
23286 fi
23287 else
23288 echo "$as_me:$LINENO: result: yes" >&5
23289echo "${ECHO_T}yes" >&6
23290
23291cat >>confdefs.h <<\_ACEOF
23292#define HAVE_FIRST_ONLINE_PGDAT 1
23293_ACEOF
23294
23295 fi
23296
23297
23298
23299 echo "$as_me:$LINENO: checking whether symbol next_online_pgdat is exported" >&5
23300echo $ECHO_N "checking whether symbol next_online_pgdat is exported... $ECHO_C" >&6
2e0e7e69
BB
23301 grep -q -E '[[:space:]]next_online_pgdat[[:space:]]' \
23302 $LINUX_OBJ/Module*.symvers 2>/dev/null
36b313da
BB
23303 rc=$?
23304 if test $rc -ne 0; then
23305 export=0
23306 for file in ; do
2e0e7e69
BB
23307 grep -q -E "EXPORT_SYMBOL.*(next_online_pgdat)" \
23308 "$LINUX_OBJ/$file" 2>/dev/null
36b313da
BB
23309 rc=$?
23310 if test $rc -eq 0; then
23311 export=1
23312 break;
23313 fi
23314 done
23315 if test $export -eq 0; then
23316 echo "$as_me:$LINENO: result: no" >&5
23317echo "${ECHO_T}no" >&6
23318
23319 else
23320 echo "$as_me:$LINENO: result: yes" >&5
23321echo "${ECHO_T}yes" >&6
23322
23323cat >>confdefs.h <<\_ACEOF
23324#define HAVE_NEXT_ONLINE_PGDAT 1
23325_ACEOF
23326
23327 fi
23328 else
23329 echo "$as_me:$LINENO: result: yes" >&5
23330echo "${ECHO_T}yes" >&6
23331
23332cat >>confdefs.h <<\_ACEOF
23333#define HAVE_NEXT_ONLINE_PGDAT 1
23334_ACEOF
23335
23336 fi
23337
23338
23339
23340 echo "$as_me:$LINENO: checking whether symbol next_zone is exported" >&5
23341echo $ECHO_N "checking whether symbol next_zone is exported... $ECHO_C" >&6
2e0e7e69
BB
23342 grep -q -E '[[:space:]]next_zone[[:space:]]' \
23343 $LINUX_OBJ/Module*.symvers 2>/dev/null
36b313da
BB
23344 rc=$?
23345 if test $rc -ne 0; then
23346 export=0
23347 for file in ; do
2e0e7e69
BB
23348 grep -q -E "EXPORT_SYMBOL.*(next_zone)" \
23349 "$LINUX_OBJ/$file" 2>/dev/null
36b313da
BB
23350 rc=$?
23351 if test $rc -eq 0; then
23352 export=1
23353 break;
23354 fi
23355 done
23356 if test $export -eq 0; then
23357 echo "$as_me:$LINENO: result: no" >&5
23358echo "${ECHO_T}no" >&6
23359
23360 else
23361 echo "$as_me:$LINENO: result: yes" >&5
23362echo "${ECHO_T}yes" >&6
23363
23364cat >>confdefs.h <<\_ACEOF
23365#define HAVE_NEXT_ZONE 1
23366_ACEOF
23367
23368 fi
23369 else
23370 echo "$as_me:$LINENO: result: yes" >&5
23371echo "${ECHO_T}yes" >&6
23372
23373cat >>confdefs.h <<\_ACEOF
23374#define HAVE_NEXT_ZONE 1
23375_ACEOF
23376
23377 fi
23378
23379
23380
5232d256
BB
23381 echo "$as_me:$LINENO: checking whether symbol pgdat_list is exported" >&5
23382echo $ECHO_N "checking whether symbol pgdat_list is exported... $ECHO_C" >&6
2e0e7e69
BB
23383 grep -q -E '[[:space:]]pgdat_list[[:space:]]' \
23384 $LINUX_OBJ/Module*.symvers 2>/dev/null
5232d256
BB
23385 rc=$?
23386 if test $rc -ne 0; then
23387 export=0
23388 for file in ; do
2e0e7e69
BB
23389 grep -q -E "EXPORT_SYMBOL.*(pgdat_list)" \
23390 "$LINUX_OBJ/$file" 2>/dev/null
5232d256
BB
23391 rc=$?
23392 if test $rc -eq 0; then
23393 export=1
23394 break;
23395 fi
23396 done
23397 if test $export -eq 0; then
23398 echo "$as_me:$LINENO: result: no" >&5
23399echo "${ECHO_T}no" >&6
23400
23401 else
23402 echo "$as_me:$LINENO: result: yes" >&5
23403echo "${ECHO_T}yes" >&6
23404
23405cat >>confdefs.h <<\_ACEOF
23406#define HAVE_PGDAT_LIST 1
23407_ACEOF
23408
23409 fi
23410 else
23411 echo "$as_me:$LINENO: result: yes" >&5
23412echo "${ECHO_T}yes" >&6
23413
23414cat >>confdefs.h <<\_ACEOF
23415#define HAVE_PGDAT_LIST 1
23416_ACEOF
23417
23418 fi
23419
23420
23421
4ab13d3b
BB
23422 echo "$as_me:$LINENO: checking whether symbol get_zone_counts is exported" >&5
23423echo $ECHO_N "checking whether symbol get_zone_counts is exported... $ECHO_C" >&6
2e0e7e69
BB
23424 grep -q -E '[[:space:]]get_zone_counts[[:space:]]' \
23425 $LINUX_OBJ/Module*.symvers 2>/dev/null
4ab13d3b
BB
23426 rc=$?
23427 if test $rc -ne 0; then
23428 export=0
23429 for file in ; do
2e0e7e69
BB
23430 grep -q -E "EXPORT_SYMBOL.*(get_zone_counts)" \
23431 "$LINUX_OBJ/$file" 2>/dev/null
4ab13d3b
BB
23432 rc=$?
23433 if test $rc -eq 0; then
23434 export=1
23435 break;
23436 fi
23437 done
23438 if test $export -eq 0; then
23439 echo "$as_me:$LINENO: result: no" >&5
23440echo "${ECHO_T}no" >&6
23441
23442 else
23443 echo "$as_me:$LINENO: result: yes" >&5
23444echo "${ECHO_T}yes" >&6
23445
23446cat >>confdefs.h <<\_ACEOF
23447#define HAVE_GET_ZONE_COUNTS 1
23448_ACEOF
23449
23450 fi
23451 else
23452 echo "$as_me:$LINENO: result: yes" >&5
23453echo "${ECHO_T}yes" >&6
23454
23455cat >>confdefs.h <<\_ACEOF
23456#define HAVE_GET_ZONE_COUNTS 1
23457_ACEOF
23458
23459 fi
96dded38
BB
23460
23461
23462
23463 echo "$as_me:$LINENO: checking whether global_page_state() is available" >&5
23464echo $ECHO_N "checking whether global_page_state() is available... $ECHO_C" >&6
23465
23466
23467cat >conftest.c <<_ACEOF
23468/* confdefs.h. */
23469_ACEOF
23470cat confdefs.h >>conftest.$ac_ext
23471cat >>conftest.$ac_ext <<_ACEOF
23472/* end confdefs.h. */
23473
23474
23475 #include <linux/vmstat.h>
23476
23477int
23478main (void)
23479{
23480
23481 unsigned long state;
23482 state = global_page_state(NR_FREE_PAGES);
23483
23484 ;
23485 return 0;
23486}
23487
23488_ACEOF
23489
23490
23491 rm -Rf build && mkdir -p build
23492 echo "obj-m := conftest.o" >build/Makefile
23493 if { ac_try='cp conftest.c build && make modules LINUXINCLUDE="-Iinclude -Iinclude2 -I$LINUX/include -include include/linux/autoconf.h" -o tmp_include_depends -o scripts -o include/config/MARKER -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
23494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23495 (eval $ac_try) 2>&5
23496 ac_status=$?
23497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23498 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
23499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23500 (eval $ac_try) 2>&5
23501 ac_status=$?
23502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23503 (exit $ac_status); }; }; then
23504
23505 echo "$as_me:$LINENO: result: yes" >&5
23506echo "${ECHO_T}yes" >&6
23507
23508cat >>confdefs.h <<\_ACEOF
23509#define HAVE_GLOBAL_PAGE_STATE 1
23510_ACEOF
23511
23512
23513else
23514 echo "$as_me: failed program was:" >&5
23515sed 's/^/| /' conftest.$ac_ext >&5
23516
23517 echo "$as_me:$LINENO: result: no" >&5
23518echo "${ECHO_T}no" >&6
23519
23520
23521
23522fi
23523
23524 rm -Rf build
23525
4ab13d3b
BB
23526
23527
23528
e11d6c5f
BB
23529 echo "$as_me:$LINENO: checking whether free/inactive/active page state is available" >&5
23530echo $ECHO_N "checking whether free/inactive/active page state is available... $ECHO_C" >&6
23531
23532
23533cat >conftest.c <<_ACEOF
23534/* confdefs.h. */
23535_ACEOF
23536cat confdefs.h >>conftest.$ac_ext
23537cat >>conftest.$ac_ext <<_ACEOF
23538/* end confdefs.h. */
23539
23540
23541 #include <linux/mmzone.h>
23542
23543int
23544main (void)
23545{
23546
23547 enum zone_stat_item i1, i2, i3;
23548 i1 = NR_FREE_PAGES;
23549 i2 = NR_INACTIVE;
23550 i3 = NR_ACTIVE;
23551
23552 ;
23553 return 0;
23554}
23555
23556_ACEOF
23557
23558
23559 rm -Rf build && mkdir -p build
23560 echo "obj-m := conftest.o" >build/Makefile
bf338d8d 23561 if { ac_try='cp conftest.c build && make modules LINUXINCLUDE="-Iinclude -Iinclude2 -I$LINUX/include -include include/linux/autoconf.h" -o tmp_include_depends -o scripts -o include/config/MARKER -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
e11d6c5f
BB
23562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23563 (eval $ac_try) 2>&5
23564 ac_status=$?
23565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23566 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
23567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23568 (eval $ac_try) 2>&5
23569 ac_status=$?
23570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23571 (exit $ac_status); }; }; then
23572
23573 echo "$as_me:$LINENO: result: yes" >&5
23574echo "${ECHO_T}yes" >&6
23575
23576cat >>confdefs.h <<\_ACEOF
23577#define HAVE_ZONE_STAT_ITEM_FIA 1
23578_ACEOF
23579
23580
23581else
23582 echo "$as_me: failed program was:" >&5
23583sed 's/^/| /' conftest.$ac_ext >&5
23584
23585 echo "$as_me:$LINENO: result: no" >&5
23586echo "${ECHO_T}no" >&6
23587
23588
23589
a093c6a4
BB
23590fi
23591
23592 rm -Rf build
23593
23594
23595
86933a6e 23596 echo "$as_me:$LINENO: checking whether vfs_unlink() wants 2 args" >&5
a093c6a4
BB
23597echo $ECHO_N "checking whether vfs_unlink() wants 2 args... $ECHO_C" >&6
23598
23599
23600cat >conftest.c <<_ACEOF
23601/* confdefs.h. */
23602_ACEOF
23603cat confdefs.h >>conftest.$ac_ext
23604cat >>conftest.$ac_ext <<_ACEOF
23605/* end confdefs.h. */
23606
23607
23608 #include <linux/fs.h>
23609
23610int
23611main (void)
23612{
23613
23614 vfs_unlink(NULL, NULL);
23615
23616 ;
23617 return 0;
23618}
23619
23620_ACEOF
23621
23622
23623 rm -Rf build && mkdir -p build
23624 echo "obj-m := conftest.o" >build/Makefile
23625 if { ac_try='cp conftest.c build && make modules LINUXINCLUDE="-Iinclude -Iinclude2 -I$LINUX/include -include include/linux/autoconf.h" -o tmp_include_depends -o scripts -o include/config/MARKER -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
23626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23627 (eval $ac_try) 2>&5
23628 ac_status=$?
23629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23630 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
23631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23632 (eval $ac_try) 2>&5
23633 ac_status=$?
23634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23635 (exit $ac_status); }; }; then
23636
23637 echo "$as_me:$LINENO: result: yes" >&5
23638echo "${ECHO_T}yes" >&6
23639
23640cat >>confdefs.h <<\_ACEOF
23641#define HAVE_2ARGS_VFS_UNLINK 1
23642_ACEOF
23643
23644
23645else
23646 echo "$as_me: failed program was:" >&5
23647sed 's/^/| /' conftest.$ac_ext >&5
23648
23649 echo "$as_me:$LINENO: result: no" >&5
23650echo "${ECHO_T}no" >&6
23651
23652
23653
23654fi
23655
23656 rm -Rf build
23657
23658
23659
86933a6e 23660 echo "$as_me:$LINENO: checking whether vfs_rename() wants 4 args" >&5
a093c6a4
BB
23661echo $ECHO_N "checking whether vfs_rename() wants 4 args... $ECHO_C" >&6
23662
23663
23664cat >conftest.c <<_ACEOF
23665/* confdefs.h. */
23666_ACEOF
23667cat confdefs.h >>conftest.$ac_ext
23668cat >>conftest.$ac_ext <<_ACEOF
23669/* end confdefs.h. */
23670
23671
23672 #include <linux/fs.h>
23673
23674int
23675main (void)
23676{
23677
23678 vfs_rename(NULL, NULL, NULL, NULL);
23679
23680 ;
23681 return 0;
23682}
23683
23684_ACEOF
23685
23686
23687 rm -Rf build && mkdir -p build
23688 echo "obj-m := conftest.o" >build/Makefile
23689 if { ac_try='cp conftest.c build && make modules LINUXINCLUDE="-Iinclude -Iinclude2 -I$LINUX/include -include include/linux/autoconf.h" -o tmp_include_depends -o scripts -o include/config/MARKER -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
23690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23691 (eval $ac_try) 2>&5
23692 ac_status=$?
23693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23694 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
23695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23696 (eval $ac_try) 2>&5
23697 ac_status=$?
23698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23699 (exit $ac_status); }; }; then
23700
23701 echo "$as_me:$LINENO: result: yes" >&5
23702echo "${ECHO_T}yes" >&6
23703
23704cat >>confdefs.h <<\_ACEOF
23705#define HAVE_4ARGS_VFS_RENAME 1
23706_ACEOF
23707
23708
23709else
23710 echo "$as_me: failed program was:" >&5
23711sed 's/^/| /' conftest.$ac_ext >&5
23712
23713 echo "$as_me:$LINENO: result: no" >&5
23714echo "${ECHO_T}no" >&6
23715
23716
23717
e11d6c5f
BB
23718fi
23719
23720 rm -Rf build
23721
23722
23723
23724
86933a6e
BB
23725 ;;
23726 *)
23727 echo "$as_me:$LINENO: result: Error!" >&5
23728echo "${ECHO_T}Error!" >&6
23729 { { echo "$as_me:$LINENO: error: Bad value \"$SPL_CONFIG\" for --with-config,
23730 user kernel|user|all" >&5
23731echo "$as_me: error: Bad value \"$SPL_CONFIG\" for --with-config,
23732 user kernel|user|all" >&2;}
23733 { (exit 1); exit 1; }; } ;;
23734 esac
23735
23736
23737
23738if test "$SPL_CONFIG" = user ||
23739 test "$SPL_CONFIG" = all; then
23740 CONFIG_USER_TRUE=
23741 CONFIG_USER_FALSE='#'
23742else
23743 CONFIG_USER_TRUE='#'
23744 CONFIG_USER_FALSE=
23745fi
23746
23747
23748
23749if test "$SPL_CONFIG" = kernel ||
23750 test "$SPL_CONFIG" = all; then
23751 CONFIG_KERNEL_TRUE=
23752 CONFIG_KERNEL_FALSE='#'
23753else
23754 CONFIG_KERNEL_TRUE='#'
23755 CONFIG_KERNEL_FALSE=
23756fi
23757
23758
23759
23760 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 23761
23762
23763cat >confcache <<\_ACEOF
23764# This file is a shell script that caches the results of configure
23765# tests run on this system so they can be shared between configure
23766# scripts and configure runs, see configure's option --config-cache.
23767# It is not useful on other systems. If it contains results you don't
23768# want to keep, you may remove or edit it.
23769#
23770# config.status only pays attention to the cache file if you give it
23771# the --recheck option to rerun configure.
23772#
23773# `ac_cv_env_foo' variables (set or unset) will be overridden when
23774# loading this file, other *unset* `ac_cv_foo' will be assigned the
23775# following values.
23776
23777_ACEOF
23778
23779# The following way of writing the cache mishandles newlines in values,
23780# but we know of no workaround that is simple, portable, and efficient.
23781# So, don't put newlines in cache variables' values.
23782# Ultrix sh set writes to stderr and can't be redirected directly,
23783# and sets the high bit in the cache file unless we assign to the vars.
23784{
23785 (set) 2>&1 |
23786 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23787 *ac_space=\ *)
23788 # `set' does not quote correctly, so add quotes (double-quote
23789 # substitution turns \\\\ into \\, and sed turns \\ into \).
23790 sed -n \
23791 "s/'/'\\\\''/g;
23792 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23793 ;;
23794 *)
23795 # `set' quotes correctly as required by POSIX, so do not add quotes.
23796 sed -n \
23797 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
23798 ;;
23799 esac;
23800} |
23801 sed '
23802 t clear
23803 : clear
23804 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23805 t end
23806 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23807 : end' >>confcache
23808if diff $cache_file confcache >/dev/null 2>&1; then :; else
23809 if test -w $cache_file; then
23810 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23811 cat confcache >$cache_file
23812 else
23813 echo "not updating unwritable cache $cache_file"
23814 fi
23815fi
23816rm -f confcache
23817
23818test "x$prefix" = xNONE && prefix=$ac_default_prefix
23819# Let make expand exec_prefix.
23820test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23821
23822# VPATH may cause trouble with some makes, so we remove $(srcdir),
23823# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23824# trailing colons and then remove the whole line if VPATH becomes empty
23825# (actually we leave an empty line to preserve line numbers).
23826if test "x$srcdir" = x.; then
23827 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23828s/:*\$(srcdir):*/:/;
23829s/:*\${srcdir}:*/:/;
23830s/:*@srcdir@:*/:/;
23831s/^\([^=]*=[ ]*\):*/\1/;
23832s/:*$//;
23833s/^[^=]*=[ ]*$//;
23834}'
23835fi
23836
23837DEFS=-DHAVE_CONFIG_H
23838
23839ac_libobjs=
23840ac_ltlibobjs=
23841for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23842 # 1. Remove the extension, and $U if already installed.
23843 ac_i=`echo "$ac_i" |
23844 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
23845 # 2. Add them.
23846 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
23847 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
23848done
23849LIBOBJS=$ac_libobjs
23850
23851LTLIBOBJS=$ac_ltlibobjs
23852
23853
23854if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
23855 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
23856Usually this means the macro was only invoked conditionally." >&5
23857echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
23858Usually this means the macro was only invoked conditionally." >&2;}
23859 { (exit 1); exit 1; }; }
23860fi
23861if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
23862 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
23863Usually this means the macro was only invoked conditionally." >&5
23864echo "$as_me: error: conditional \"AMDEP\" was never defined.
23865Usually this means the macro was only invoked conditionally." >&2;}
23866 { (exit 1); exit 1; }; }
23867fi
23868if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23869 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
23870Usually this means the macro was only invoked conditionally." >&5
23871echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
23872Usually this means the macro was only invoked conditionally." >&2;}
23873 { (exit 1); exit 1; }; }
23874fi
23875if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
23876 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
23877Usually this means the macro was only invoked conditionally." >&5
23878echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
23879Usually this means the macro was only invoked conditionally." >&2;}
23880 { (exit 1); exit 1; }; }
23881fi
86933a6e
BB
23882if test -z "${CONFIG_USER_TRUE}" && test -z "${CONFIG_USER_FALSE}"; then
23883 { { echo "$as_me:$LINENO: error: conditional \"CONFIG_USER\" was never defined.
23884Usually this means the macro was only invoked conditionally." >&5
23885echo "$as_me: error: conditional \"CONFIG_USER\" was never defined.
23886Usually this means the macro was only invoked conditionally." >&2;}
23887 { (exit 1); exit 1; }; }
23888fi
23889if test -z "${CONFIG_KERNEL_TRUE}" && test -z "${CONFIG_KERNEL_FALSE}"; then
23890 { { echo "$as_me:$LINENO: error: conditional \"CONFIG_KERNEL\" was never defined.
23891Usually this means the macro was only invoked conditionally." >&5
23892echo "$as_me: error: conditional \"CONFIG_KERNEL\" was never defined.
23893Usually this means the macro was only invoked conditionally." >&2;}
23894 { (exit 1); exit 1; }; }
23895fi
bf9f3bac 23896
23897: ${CONFIG_STATUS=./config.status}
23898ac_clean_files_save=$ac_clean_files
23899ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23900{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23901echo "$as_me: creating $CONFIG_STATUS" >&6;}
23902cat >$CONFIG_STATUS <<_ACEOF
23903#! $SHELL
23904# Generated by $as_me.
23905# Run this file to recreate the current configuration.
23906# Compiler output produced by configure, useful for debugging
23907# configure, is in config.log if it exists.
23908
23909debug=false
23910ac_cs_recheck=false
23911ac_cs_silent=false
23912SHELL=\${CONFIG_SHELL-$SHELL}
23913_ACEOF
23914
23915cat >>$CONFIG_STATUS <<\_ACEOF
23916## --------------------- ##
23917## M4sh Initialization. ##
23918## --------------------- ##
23919
23920# Be Bourne compatible
23921if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23922 emulate sh
23923 NULLCMD=:
23924 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23925 # is contrary to our usage. Disable this feature.
23926 alias -g '${1+"$@"}'='"$@"'
23927elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23928 set -o posix
23929fi
23930DUALCASE=1; export DUALCASE # for MKS sh
23931
23932# Support unset when possible.
23933if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23934 as_unset=unset
23935else
23936 as_unset=false
23937fi
23938
23939
23940# Work around bugs in pre-3.0 UWIN ksh.
23941$as_unset ENV MAIL MAILPATH
23942PS1='$ '
23943PS2='> '
23944PS4='+ '
23945
23946# NLS nuisances.
23947for as_var in \
23948 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23949 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23950 LC_TELEPHONE LC_TIME
23951do
23952 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23953 eval $as_var=C; export $as_var
23954 else
23955 $as_unset $as_var
23956 fi
23957done
23958
23959# Required to use basename.
23960if expr a : '\(a\)' >/dev/null 2>&1; then
23961 as_expr=expr
23962else
23963 as_expr=false
23964fi
23965
23966if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
23967 as_basename=basename
23968else
23969 as_basename=false
23970fi
23971
23972
23973# Name of the executable.
23974as_me=`$as_basename "$0" ||
23975$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23976 X"$0" : 'X\(//\)$' \| \
23977 X"$0" : 'X\(/\)$' \| \
23978 . : '\(.\)' 2>/dev/null ||
23979echo X/"$0" |
23980 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23981 /^X\/\(\/\/\)$/{ s//\1/; q; }
23982 /^X\/\(\/\).*/{ s//\1/; q; }
23983 s/.*/./; q'`
23984
23985
23986# PATH needs CR, and LINENO needs CR and PATH.
23987# Avoid depending upon Character Ranges.
23988as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23989as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23990as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23991as_cr_digits='0123456789'
23992as_cr_alnum=$as_cr_Letters$as_cr_digits
23993
23994# The user is always right.
23995if test "${PATH_SEPARATOR+set}" != set; then
23996 echo "#! /bin/sh" >conf$$.sh
23997 echo "exit 0" >>conf$$.sh
23998 chmod +x conf$$.sh
23999 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24000 PATH_SEPARATOR=';'
24001 else
24002 PATH_SEPARATOR=:
24003 fi
24004 rm -f conf$$.sh
24005fi
24006
24007
24008 as_lineno_1=$LINENO
24009 as_lineno_2=$LINENO
24010 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24011 test "x$as_lineno_1" != "x$as_lineno_2" &&
24012 test "x$as_lineno_3" = "x$as_lineno_2" || {
24013 # Find who we are. Look in the path if we contain no path at all
24014 # relative or not.
24015 case $0 in
24016 *[\\/]* ) as_myself=$0 ;;
24017 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24018for as_dir in $PATH
24019do
24020 IFS=$as_save_IFS
24021 test -z "$as_dir" && as_dir=.
24022 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24023done
24024
24025 ;;
24026 esac
24027 # We did not find ourselves, most probably we were run as `sh COMMAND'
24028 # in which case we are not to be found in the path.
24029 if test "x$as_myself" = x; then
24030 as_myself=$0
24031 fi
24032 if test ! -f "$as_myself"; then
24033 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
24034echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
24035 { (exit 1); exit 1; }; }
24036 fi
24037 case $CONFIG_SHELL in
24038 '')
24039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24040for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
24041do
24042 IFS=$as_save_IFS
24043 test -z "$as_dir" && as_dir=.
24044 for as_base in sh bash ksh sh5; do
24045 case $as_dir in
24046 /*)
24047 if ("$as_dir/$as_base" -c '
24048 as_lineno_1=$LINENO
24049 as_lineno_2=$LINENO
24050 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24051 test "x$as_lineno_1" != "x$as_lineno_2" &&
24052 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
24053 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
24054 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
24055 CONFIG_SHELL=$as_dir/$as_base
24056 export CONFIG_SHELL
24057 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
24058 fi;;
24059 esac
24060 done
24061done
24062;;
24063 esac
24064
24065 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24066 # uniformly replaced by the line number. The first 'sed' inserts a
24067 # line-number line before each line; the second 'sed' does the real
24068 # work. The second script uses 'N' to pair each line-number line
24069 # with the numbered line, and appends trailing '-' during
24070 # substitution so that $LINENO is not a special case at line end.
24071 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24072 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
24073 sed '=' <$as_myself |
24074 sed '
24075 N
24076 s,$,-,
24077 : loop
24078 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
24079 t loop
24080 s,-$,,
24081 s,^['$as_cr_digits']*\n,,
24082 ' >$as_me.lineno &&
24083 chmod +x $as_me.lineno ||
24084 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
24085echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
24086 { (exit 1); exit 1; }; }
24087
24088 # Don't try to exec as it changes $[0], causing all sort of problems
24089 # (the dirname of $[0] is not the place where we might find the
24090 # original and so on. Autoconf is especially sensible to this).
24091 . ./$as_me.lineno
24092 # Exit status is that of the last command.
24093 exit
24094}
24095
24096
24097case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
24098 *c*,-n*) ECHO_N= ECHO_C='
24099' ECHO_T=' ' ;;
24100 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
24101 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
24102esac
24103
24104if expr a : '\(a\)' >/dev/null 2>&1; then
24105 as_expr=expr
24106else
24107 as_expr=false
24108fi
24109
24110rm -f conf$$ conf$$.exe conf$$.file
24111echo >conf$$.file
24112if ln -s conf$$.file conf$$ 2>/dev/null; then
24113 # We could just check for DJGPP; but this test a) works b) is more generic
24114 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
24115 if test -f conf$$.exe; then
24116 # Don't use ln at all; we don't have any links
24117 as_ln_s='cp -p'
24118 else
24119 as_ln_s='ln -s'
24120 fi
24121elif ln conf$$.file conf$$ 2>/dev/null; then
24122 as_ln_s=ln
24123else
24124 as_ln_s='cp -p'
24125fi
24126rm -f conf$$ conf$$.exe conf$$.file
24127
24128if mkdir -p . 2>/dev/null; then
24129 as_mkdir_p=:
24130else
24131 test -d ./-p && rmdir ./-p
24132 as_mkdir_p=false
24133fi
24134
24135as_executable_p="test -f"
24136
24137# Sed expression to map a string onto a valid CPP name.
24138as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24139
24140# Sed expression to map a string onto a valid variable name.
24141as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24142
24143
24144# IFS
24145# We need space, tab and new line, in precisely that order.
24146as_nl='
24147'
24148IFS=" $as_nl"
24149
24150# CDPATH.
24151$as_unset CDPATH
24152
24153exec 6>&1
24154
24155# Open the log real soon, to keep \$[0] and so on meaningful, and to
24156# report actual input values of CONFIG_FILES etc. instead of their
24157# values after options handling. Logging --version etc. is OK.
24158exec 5>>config.log
24159{
24160 echo
24161 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24162## Running $as_me. ##
24163_ASBOX
24164} >&5
24165cat >&5 <<_CSEOF
24166
24167This file was extended by $as_me, which was
24168generated by GNU Autoconf 2.59. Invocation command line was
24169
24170 CONFIG_FILES = $CONFIG_FILES
24171 CONFIG_HEADERS = $CONFIG_HEADERS
24172 CONFIG_LINKS = $CONFIG_LINKS
24173 CONFIG_COMMANDS = $CONFIG_COMMANDS
24174 $ $0 $@
24175
24176_CSEOF
24177echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
24178echo >&5
24179_ACEOF
24180
24181# Files that config.status was made for.
24182if test -n "$ac_config_files"; then
24183 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
24184fi
24185
24186if test -n "$ac_config_headers"; then
24187 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
24188fi
24189
24190if test -n "$ac_config_links"; then
24191 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
24192fi
24193
24194if test -n "$ac_config_commands"; then
24195 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
24196fi
24197
24198cat >>$CONFIG_STATUS <<\_ACEOF
24199
24200ac_cs_usage="\
24201\`$as_me' instantiates files from templates according to the
24202current configuration.
24203
24204Usage: $0 [OPTIONS] [FILE]...
24205
24206 -h, --help print this help, then exit
24207 -V, --version print version number, then exit
24208 -q, --quiet do not print progress messages
24209 -d, --debug don't remove temporary files
24210 --recheck update $as_me by reconfiguring in the same conditions
24211 --file=FILE[:TEMPLATE]
24212 instantiate the configuration file FILE
24213 --header=FILE[:TEMPLATE]
24214 instantiate the configuration header FILE
24215
24216Configuration files:
24217$config_files
24218
24219Configuration headers:
24220$config_headers
24221
24222Configuration commands:
24223$config_commands
24224
24225Report bugs to <bug-autoconf@gnu.org>."
24226_ACEOF
24227
24228cat >>$CONFIG_STATUS <<_ACEOF
24229ac_cs_version="\\
24230config.status
24231configured by $0, generated by GNU Autoconf 2.59,
24232 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
24233
24234Copyright (C) 2003 Free Software Foundation, Inc.
24235This config.status script is free software; the Free Software Foundation
24236gives unlimited permission to copy, distribute and modify it."
24237srcdir=$srcdir
24238INSTALL="$INSTALL"
24239_ACEOF
24240
24241cat >>$CONFIG_STATUS <<\_ACEOF
24242# If no file are specified by the user, then we need to provide default
24243# value. By we need to know if files were specified by the user.
24244ac_need_defaults=:
24245while test $# != 0
24246do
24247 case $1 in
24248 --*=*)
24249 ac_option=`expr "x$1" : 'x\([^=]*\)='`
24250 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
24251 ac_shift=:
24252 ;;
24253 -*)
24254 ac_option=$1
24255 ac_optarg=$2
24256 ac_shift=shift
24257 ;;
24258 *) # This is not an option, so the user has probably given explicit
24259 # arguments.
24260 ac_option=$1
24261 ac_need_defaults=false;;
24262 esac
24263
24264 case $ac_option in
24265 # Handling of the options.
24266_ACEOF
24267cat >>$CONFIG_STATUS <<\_ACEOF
24268 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24269 ac_cs_recheck=: ;;
24270 --version | --vers* | -V )
24271 echo "$ac_cs_version"; exit 0 ;;
24272 --he | --h)
24273 # Conflict between --help and --header
24274 { { echo "$as_me:$LINENO: error: ambiguous option: $1
24275Try \`$0 --help' for more information." >&5
24276echo "$as_me: error: ambiguous option: $1
24277Try \`$0 --help' for more information." >&2;}
24278 { (exit 1); exit 1; }; };;
24279 --help | --hel | -h )
24280 echo "$ac_cs_usage"; exit 0 ;;
24281 --debug | --d* | -d )
24282 debug=: ;;
24283 --file | --fil | --fi | --f )
24284 $ac_shift
24285 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24286 ac_need_defaults=false;;
24287 --header | --heade | --head | --hea )
24288 $ac_shift
24289 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24290 ac_need_defaults=false;;
24291 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24292 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24293 ac_cs_silent=: ;;
24294
24295 # This is an error.
24296 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
24297Try \`$0 --help' for more information." >&5
24298echo "$as_me: error: unrecognized option: $1
24299Try \`$0 --help' for more information." >&2;}
24300 { (exit 1); exit 1; }; } ;;
24301
24302 *) ac_config_targets="$ac_config_targets $1" ;;
24303
24304 esac
24305 shift
24306done
24307
24308ac_configure_extra_args=
24309
24310if $ac_cs_silent; then
24311 exec 6>/dev/null
24312 ac_configure_extra_args="$ac_configure_extra_args --silent"
24313fi
24314
24315_ACEOF
24316cat >>$CONFIG_STATUS <<_ACEOF
24317if \$ac_cs_recheck; then
24318 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24319 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24320fi
24321
24322_ACEOF
24323
24324cat >>$CONFIG_STATUS <<_ACEOF
24325#
24326# INIT-COMMANDS section.
24327#
24328
24329AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
24330
24331_ACEOF
24332
24333
24334
24335cat >>$CONFIG_STATUS <<\_ACEOF
24336for ac_config_target in $ac_config_targets
24337do
24338 case "$ac_config_target" in
24339 # Handling of arguments.
24340 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24341 "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
24342 "cmd/Makefile" ) CONFIG_FILES="$CONFIG_FILES cmd/Makefile" ;;
617d5a67
BB
24343 "module/Makefile" ) CONFIG_FILES="$CONFIG_FILES module/Makefile" ;;
24344 "module/spl/Makefile" ) CONFIG_FILES="$CONFIG_FILES module/spl/Makefile" ;;
24345 "module/splat/Makefile" ) CONFIG_FILES="$CONFIG_FILES module/splat/Makefile" ;;
bf9f3bac 24346 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
bf9f3bac 24347 "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
c5f70460 24348 "spl.spec" ) CONFIG_FILES="$CONFIG_FILES spl.spec" ;;
86933a6e 24349 "spl-modules.spec" ) CONFIG_FILES="$CONFIG_FILES spl-modules.spec" ;;
bf9f3bac 24350 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
24351 "spl_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS spl_config.h" ;;
24352 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24353echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24354 { (exit 1); exit 1; }; };;
24355 esac
24356done
24357
24358# If the user did not use the arguments to specify the items to instantiate,
24359# then the envvar interface is used. Set only those that are not.
24360# We use the long form for the default assignment because of an extremely
24361# bizarre bug on SunOS 4.1.3.
24362if $ac_need_defaults; then
24363 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24364 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24365 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24366fi
24367
24368# Have a temporary directory for convenience. Make it in the build tree
24369# simply because there is no reason to put it here, and in addition,
24370# creating and moving files from /tmp can sometimes cause problems.
24371# Create a temporary directory, and hook for its removal unless debugging.
24372$debug ||
24373{
24374 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
24375 trap '{ (exit 1); exit 1; }' 1 2 13 15
24376}
24377
24378# Create a (secure) tmp directory for tmp files.
24379
24380{
24381 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
24382 test -n "$tmp" && test -d "$tmp"
24383} ||
24384{
24385 tmp=./confstat$$-$RANDOM
24386 (umask 077 && mkdir $tmp)
24387} ||
24388{
24389 echo "$me: cannot create a temporary directory in ." >&2
24390 { (exit 1); exit 1; }
24391}
24392
24393_ACEOF
24394
24395cat >>$CONFIG_STATUS <<_ACEOF
24396
24397#
24398# CONFIG_FILES section.
24399#
24400
24401# No need to generate the scripts if there are no CONFIG_FILES.
24402# This happens for instance when ./config.status config.h
24403if test -n "\$CONFIG_FILES"; then
24404 # Protect against being on the right side of a sed subst in config.status.
24405 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
24406 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
24407s,@SHELL@,$SHELL,;t t
24408s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
24409s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
24410s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
24411s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
24412s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
24413s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
24414s,@exec_prefix@,$exec_prefix,;t t
24415s,@prefix@,$prefix,;t t
24416s,@program_transform_name@,$program_transform_name,;t t
24417s,@bindir@,$bindir,;t t
24418s,@sbindir@,$sbindir,;t t
24419s,@libexecdir@,$libexecdir,;t t
24420s,@datadir@,$datadir,;t t
24421s,@sysconfdir@,$sysconfdir,;t t
24422s,@sharedstatedir@,$sharedstatedir,;t t
24423s,@localstatedir@,$localstatedir,;t t
24424s,@libdir@,$libdir,;t t
24425s,@includedir@,$includedir,;t t
24426s,@oldincludedir@,$oldincludedir,;t t
24427s,@infodir@,$infodir,;t t
24428s,@mandir@,$mandir,;t t
24429s,@build_alias@,$build_alias,;t t
24430s,@host_alias@,$host_alias,;t t
24431s,@target_alias@,$target_alias,;t t
24432s,@DEFS@,$DEFS,;t t
24433s,@ECHO_C@,$ECHO_C,;t t
24434s,@ECHO_N@,$ECHO_N,;t t
24435s,@ECHO_T@,$ECHO_T,;t t
24436s,@LIBS@,$LIBS,;t t
abc3ca14
BB
24437s,@SPL_META_NAME@,$SPL_META_NAME,;t t
24438s,@SPL_META_VERSION@,$SPL_META_VERSION,;t t
24439s,@SPL_META_RELEASE@,$SPL_META_RELEASE,;t t
72e7de60 24440s,@SPL_META_ALIAS@,$SPL_META_ALIAS,;t t
abc3ca14
BB
24441s,@SPL_META_DATA@,$SPL_META_DATA,;t t
24442s,@SPL_META_AUTHOR@,$SPL_META_AUTHOR,;t t
24443s,@SPL_META_LT_CURRENT@,$SPL_META_LT_CURRENT,;t t
24444s,@SPL_META_LT_REVISION@,$SPL_META_LT_REVISION,;t t
24445s,@SPL_META_LT_AGE@,$SPL_META_LT_AGE,;t t
bf9f3bac 24446s,@build@,$build,;t t
24447s,@build_cpu@,$build_cpu,;t t
24448s,@build_vendor@,$build_vendor,;t t
24449s,@build_os@,$build_os,;t t
24450s,@host@,$host,;t t
24451s,@host_cpu@,$host_cpu,;t t
24452s,@host_vendor@,$host_vendor,;t t
24453s,@host_os@,$host_os,;t t
24454s,@target@,$target,;t t
24455s,@target_cpu@,$target_cpu,;t t
24456s,@target_vendor@,$target_vendor,;t t
24457s,@target_os@,$target_os,;t t
24458s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
24459s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
24460s,@INSTALL_DATA@,$INSTALL_DATA,;t t
24461s,@CYGPATH_W@,$CYGPATH_W,;t t
24462s,@PACKAGE@,$PACKAGE,;t t
24463s,@VERSION@,$VERSION,;t t
24464s,@ACLOCAL@,$ACLOCAL,;t t
24465s,@AUTOCONF@,$AUTOCONF,;t t
24466s,@AUTOMAKE@,$AUTOMAKE,;t t
24467s,@AUTOHEADER@,$AUTOHEADER,;t t
24468s,@MAKEINFO@,$MAKEINFO,;t t
24469s,@install_sh@,$install_sh,;t t
24470s,@STRIP@,$STRIP,;t t
24471s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
24472s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
24473s,@mkdir_p@,$mkdir_p,;t t
24474s,@AWK@,$AWK,;t t
24475s,@SET_MAKE@,$SET_MAKE,;t t
24476s,@am__leading_dot@,$am__leading_dot,;t t
24477s,@AMTAR@,$AMTAR,;t t
24478s,@am__tar@,$am__tar,;t t
24479s,@am__untar@,$am__untar,;t t
24480s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
24481s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
24482s,@MAINT@,$MAINT,;t t
24483s,@CC@,$CC,;t t
24484s,@CFLAGS@,$CFLAGS,;t t
24485s,@LDFLAGS@,$LDFLAGS,;t t
24486s,@CPPFLAGS@,$CPPFLAGS,;t t
24487s,@ac_ct_CC@,$ac_ct_CC,;t t
24488s,@EXEEXT@,$EXEEXT,;t t
24489s,@OBJEXT@,$OBJEXT,;t t
24490s,@DEPDIR@,$DEPDIR,;t t
24491s,@am__include@,$am__include,;t t
24492s,@am__quote@,$am__quote,;t t
24493s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
24494s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
24495s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
24496s,@CCDEPMODE@,$CCDEPMODE,;t t
24497s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
24498s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
24499s,@SED@,$SED,;t t
24500s,@EGREP@,$EGREP,;t t
24501s,@LN_S@,$LN_S,;t t
24502s,@ECHO@,$ECHO,;t t
24503s,@AR@,$AR,;t t
24504s,@ac_ct_AR@,$ac_ct_AR,;t t
24505s,@RANLIB@,$RANLIB,;t t
24506s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
24507s,@CPP@,$CPP,;t t
24508s,@CXX@,$CXX,;t t
24509s,@CXXFLAGS@,$CXXFLAGS,;t t
24510s,@ac_ct_CXX@,$ac_ct_CXX,;t t
24511s,@CXXDEPMODE@,$CXXDEPMODE,;t t
24512s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
24513s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
24514s,@CXXCPP@,$CXXCPP,;t t
24515s,@F77@,$F77,;t t
24516s,@FFLAGS@,$FFLAGS,;t t
24517s,@ac_ct_F77@,$ac_ct_F77,;t t
24518s,@LIBTOOL@,$LIBTOOL,;t t
86933a6e
BB
24519s,@LICENSE@,$LICENSE,;t t
24520s,@SPL_CONFIG@,$SPL_CONFIG,;t t
bf9f3bac 24521s,@LINUX@,$LINUX,;t t
24522s,@LINUX_OBJ@,$LINUX_OBJ,;t t
c5f70460 24523s,@LINUX_VERSION@,$LINUX_VERSION,;t t
86933a6e 24524s,@LINUX_SYMBOLS@,$LINUX_SYMBOLS,;t t
bf9f3bac 24525s,@KERNELMAKE_PARAMS@,$KERNELMAKE_PARAMS,;t t
24526s,@KERNELCPPFLAGS@,$KERNELCPPFLAGS,;t t
86933a6e
BB
24527s,@CONFIG_USER_TRUE@,$CONFIG_USER_TRUE,;t t
24528s,@CONFIG_USER_FALSE@,$CONFIG_USER_FALSE,;t t
24529s,@CONFIG_KERNEL_TRUE@,$CONFIG_KERNEL_TRUE,;t t
24530s,@CONFIG_KERNEL_FALSE@,$CONFIG_KERNEL_FALSE,;t t
bf9f3bac 24531s,@LIBOBJS@,$LIBOBJS,;t t
24532s,@LTLIBOBJS@,$LTLIBOBJS,;t t
24533CEOF
24534
24535_ACEOF
24536
24537 cat >>$CONFIG_STATUS <<\_ACEOF
24538 # Split the substitutions into bite-sized pieces for seds with
24539 # small command number limits, like on Digital OSF/1 and HP-UX.
24540 ac_max_sed_lines=48
24541 ac_sed_frag=1 # Number of current file.
24542 ac_beg=1 # First line for current file.
24543 ac_end=$ac_max_sed_lines # Line after last line for current file.
24544 ac_more_lines=:
24545 ac_sed_cmds=
24546 while $ac_more_lines; do
24547 if test $ac_beg -gt 1; then
24548 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24549 else
24550 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24551 fi
24552 if test ! -s $tmp/subs.frag; then
24553 ac_more_lines=false
24554 else
24555 # The purpose of the label and of the branching condition is to
24556 # speed up the sed processing (if there are no `@' at all, there
24557 # is no need to browse any of the substitutions).
24558 # These are the two extra sed commands mentioned above.
24559 (echo ':t
24560 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
24561 if test -z "$ac_sed_cmds"; then
24562 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
24563 else
24564 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
24565 fi
24566 ac_sed_frag=`expr $ac_sed_frag + 1`
24567 ac_beg=$ac_end
24568 ac_end=`expr $ac_end + $ac_max_sed_lines`
24569 fi
24570 done
24571 if test -z "$ac_sed_cmds"; then
24572 ac_sed_cmds=cat
24573 fi
24574fi # test -n "$CONFIG_FILES"
24575
24576_ACEOF
24577cat >>$CONFIG_STATUS <<\_ACEOF
24578for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
24579 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24580 case $ac_file in
24581 - | *:- | *:-:* ) # input from stdin
24582 cat >$tmp/stdin
24583 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24584 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24585 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24586 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24587 * ) ac_file_in=$ac_file.in ;;
24588 esac
24589
24590 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
24591 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24592$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24593 X"$ac_file" : 'X\(//\)[^/]' \| \
24594 X"$ac_file" : 'X\(//\)$' \| \
24595 X"$ac_file" : 'X\(/\)' \| \
24596 . : '\(.\)' 2>/dev/null ||
24597echo X"$ac_file" |
24598 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24599 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24600 /^X\(\/\/\)$/{ s//\1/; q; }
24601 /^X\(\/\).*/{ s//\1/; q; }
24602 s/.*/./; q'`
24603 { if $as_mkdir_p; then
24604 mkdir -p "$ac_dir"
24605 else
24606 as_dir="$ac_dir"
24607 as_dirs=
24608 while test ! -d "$as_dir"; do
24609 as_dirs="$as_dir $as_dirs"
24610 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24611$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24612 X"$as_dir" : 'X\(//\)[^/]' \| \
24613 X"$as_dir" : 'X\(//\)$' \| \
24614 X"$as_dir" : 'X\(/\)' \| \
24615 . : '\(.\)' 2>/dev/null ||
24616echo X"$as_dir" |
24617 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24618 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24619 /^X\(\/\/\)$/{ s//\1/; q; }
24620 /^X\(\/\).*/{ s//\1/; q; }
24621 s/.*/./; q'`
24622 done
24623 test ! -n "$as_dirs" || mkdir $as_dirs
24624 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24625echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24626 { (exit 1); exit 1; }; }; }
24627
24628 ac_builddir=.
24629
24630if test "$ac_dir" != .; then
24631 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24632 # A "../" for each directory in $ac_dir_suffix.
24633 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24634else
24635 ac_dir_suffix= ac_top_builddir=
24636fi
24637
24638case $srcdir in
24639 .) # No --srcdir option. We are building in place.
24640 ac_srcdir=.
24641 if test -z "$ac_top_builddir"; then
24642 ac_top_srcdir=.
24643 else
24644 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24645 fi ;;
24646 [\\/]* | ?:[\\/]* ) # Absolute path.
24647 ac_srcdir=$srcdir$ac_dir_suffix;
24648 ac_top_srcdir=$srcdir ;;
24649 *) # Relative path.
24650 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24651 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24652esac
24653
24654# Do not use `cd foo && pwd` to compute absolute paths, because
24655# the directories may not exist.
24656case `pwd` in
24657.) ac_abs_builddir="$ac_dir";;
24658*)
24659 case "$ac_dir" in
24660 .) ac_abs_builddir=`pwd`;;
24661 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24662 *) ac_abs_builddir=`pwd`/"$ac_dir";;
24663 esac;;
24664esac
24665case $ac_abs_builddir in
24666.) ac_abs_top_builddir=${ac_top_builddir}.;;
24667*)
24668 case ${ac_top_builddir}. in
24669 .) ac_abs_top_builddir=$ac_abs_builddir;;
24670 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24671 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24672 esac;;
24673esac
24674case $ac_abs_builddir in
24675.) ac_abs_srcdir=$ac_srcdir;;
24676*)
24677 case $ac_srcdir in
24678 .) ac_abs_srcdir=$ac_abs_builddir;;
24679 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24680 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24681 esac;;
24682esac
24683case $ac_abs_builddir in
24684.) ac_abs_top_srcdir=$ac_top_srcdir;;
24685*)
24686 case $ac_top_srcdir in
24687 .) ac_abs_top_srcdir=$ac_abs_builddir;;
24688 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24689 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24690 esac;;
24691esac
24692
24693
24694 case $INSTALL in
24695 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24696 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
24697 esac
24698
24699 if test x"$ac_file" != x-; then
24700 { echo "$as_me:$LINENO: creating $ac_file" >&5
24701echo "$as_me: creating $ac_file" >&6;}
24702 rm -f "$ac_file"
24703 fi
24704 # Let's still pretend it is `configure' which instantiates (i.e., don't
24705 # use $as_me), people would be surprised to read:
24706 # /* config.h. Generated by config.status. */
24707 if test x"$ac_file" = x-; then
24708 configure_input=
24709 else
24710 configure_input="$ac_file. "
24711 fi
24712 configure_input=$configure_input"Generated from `echo $ac_file_in |
24713 sed 's,.*/,,'` by configure."
24714
24715 # First look for the input files in the build tree, otherwise in the
24716 # src tree.
24717 ac_file_inputs=`IFS=:
24718 for f in $ac_file_in; do
24719 case $f in
24720 -) echo $tmp/stdin ;;
24721 [\\/$]*)
24722 # Absolute (can't be DOS-style, as IFS=:)
24723 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24724echo "$as_me: error: cannot find input file: $f" >&2;}
24725 { (exit 1); exit 1; }; }
24726 echo "$f";;
24727 *) # Relative
24728 if test -f "$f"; then
24729 # Build tree
24730 echo "$f"
24731 elif test -f "$srcdir/$f"; then
24732 # Source tree
24733 echo "$srcdir/$f"
24734 else
24735 # /dev/null tree
24736 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24737echo "$as_me: error: cannot find input file: $f" >&2;}
24738 { (exit 1); exit 1; }; }
24739 fi;;
24740 esac
24741 done` || { (exit 1); exit 1; }
24742_ACEOF
24743cat >>$CONFIG_STATUS <<_ACEOF
24744 sed "$ac_vpsub
24745$extrasub
24746_ACEOF
24747cat >>$CONFIG_STATUS <<\_ACEOF
24748:t
24749/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24750s,@configure_input@,$configure_input,;t t
24751s,@srcdir@,$ac_srcdir,;t t
24752s,@abs_srcdir@,$ac_abs_srcdir,;t t
24753s,@top_srcdir@,$ac_top_srcdir,;t t
24754s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24755s,@builddir@,$ac_builddir,;t t
24756s,@abs_builddir@,$ac_abs_builddir,;t t
24757s,@top_builddir@,$ac_top_builddir,;t t
24758s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24759s,@INSTALL@,$ac_INSTALL,;t t
24760" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24761 rm -f $tmp/stdin
24762 if test x"$ac_file" != x-; then
24763 mv $tmp/out $ac_file
24764 else
24765 cat $tmp/out
24766 rm -f $tmp/out
24767 fi
24768
24769done
24770_ACEOF
24771cat >>$CONFIG_STATUS <<\_ACEOF
24772
24773#
24774# CONFIG_HEADER section.
24775#
24776
24777# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24778# NAME is the cpp macro being defined and VALUE is the value it is being given.
24779#
24780# ac_d sets the value in "#define NAME VALUE" lines.
24781ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24782ac_dB='[ ].*$,\1#\2'
24783ac_dC=' '
24784ac_dD=',;t'
24785# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24786ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24787ac_uB='$,\1#\2define\3'
24788ac_uC=' '
24789ac_uD=',;t'
24790
24791for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24792 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24793 case $ac_file in
24794 - | *:- | *:-:* ) # input from stdin
24795 cat >$tmp/stdin
24796 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24797 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24798 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24799 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24800 * ) ac_file_in=$ac_file.in ;;
24801 esac
24802
24803 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24804echo "$as_me: creating $ac_file" >&6;}
24805
24806 # First look for the input files in the build tree, otherwise in the
24807 # src tree.
24808 ac_file_inputs=`IFS=:
24809 for f in $ac_file_in; do
24810 case $f in
24811 -) echo $tmp/stdin ;;
24812 [\\/$]*)
24813 # Absolute (can't be DOS-style, as IFS=:)
24814 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24815echo "$as_me: error: cannot find input file: $f" >&2;}
24816 { (exit 1); exit 1; }; }
24817 # Do quote $f, to prevent DOS paths from being IFS'd.
24818 echo "$f";;
24819 *) # Relative
24820 if test -f "$f"; then
24821 # Build tree
24822 echo "$f"
24823 elif test -f "$srcdir/$f"; then
24824 # Source tree
24825 echo "$srcdir/$f"
24826 else
24827 # /dev/null tree
24828 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24829echo "$as_me: error: cannot find input file: $f" >&2;}
24830 { (exit 1); exit 1; }; }
24831 fi;;
24832 esac
24833 done` || { (exit 1); exit 1; }
24834 # Remove the trailing spaces.
24835 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
24836
24837_ACEOF
24838
24839# Transform confdefs.h into two sed scripts, `conftest.defines' and
24840# `conftest.undefs', that substitutes the proper values into
24841# config.h.in to produce config.h. The first handles `#define'
24842# templates, and the second `#undef' templates.
24843# And first: Protect against being on the right side of a sed subst in
24844# config.status. Protect against being in an unquoted here document
24845# in config.status.
24846rm -f conftest.defines conftest.undefs
24847# Using a here document instead of a string reduces the quoting nightmare.
24848# Putting comments in sed scripts is not portable.
24849#
24850# `end' is used to avoid that the second main sed command (meant for
24851# 0-ary CPP macros) applies to n-ary macro definitions.
24852# See the Autoconf documentation for `clear'.
24853cat >confdef2sed.sed <<\_ACEOF
24854s/[\\&,]/\\&/g
24855s,[\\$`],\\&,g
24856t clear
24857: clear
24858s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24859t end
24860s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24861: end
24862_ACEOF
24863# If some macros were called several times there might be several times
24864# the same #defines, which is useless. Nevertheless, we may not want to
24865# sort them, since we want the *last* AC-DEFINE to be honored.
24866uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24867sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24868rm -f confdef2sed.sed
24869
24870# This sed command replaces #undef with comments. This is necessary, for
24871# example, in the case of _POSIX_SOURCE, which is predefined and required
24872# on some systems where configure will not decide to define it.
24873cat >>conftest.undefs <<\_ACEOF
24874s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24875_ACEOF
24876
24877# Break up conftest.defines because some shells have a limit on the size
24878# of here documents, and old seds have small limits too (100 cmds).
24879echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24880echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24881echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24882echo ' :' >>$CONFIG_STATUS
24883rm -f conftest.tail
24884while grep . conftest.defines >/dev/null
24885do
24886 # Write a limited-size here document to $tmp/defines.sed.
24887 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24888 # Speed up: don't consider the non `#define' lines.
24889 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
24890 # Work around the forget-to-reset-the-flag bug.
24891 echo 't clr' >>$CONFIG_STATUS
24892 echo ': clr' >>$CONFIG_STATUS
24893 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24894 echo 'CEOF
24895 sed -f $tmp/defines.sed $tmp/in >$tmp/out
24896 rm -f $tmp/in
24897 mv $tmp/out $tmp/in
24898' >>$CONFIG_STATUS
24899 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24900 rm -f conftest.defines
24901 mv conftest.tail conftest.defines
24902done
24903rm -f conftest.defines
24904echo ' fi # grep' >>$CONFIG_STATUS
24905echo >>$CONFIG_STATUS
24906
24907# Break up conftest.undefs because some shells have a limit on the size
24908# of here documents, and old seds have small limits too (100 cmds).
24909echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
24910rm -f conftest.tail
24911while grep . conftest.undefs >/dev/null
24912do
24913 # Write a limited-size here document to $tmp/undefs.sed.
24914 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24915 # Speed up: don't consider the non `#undef'
24916 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
24917 # Work around the forget-to-reset-the-flag bug.
24918 echo 't clr' >>$CONFIG_STATUS
24919 echo ': clr' >>$CONFIG_STATUS
24920 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24921 echo 'CEOF
24922 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24923 rm -f $tmp/in
24924 mv $tmp/out $tmp/in
24925' >>$CONFIG_STATUS
24926 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24927 rm -f conftest.undefs
24928 mv conftest.tail conftest.undefs
24929done
24930rm -f conftest.undefs
24931
24932cat >>$CONFIG_STATUS <<\_ACEOF
24933 # Let's still pretend it is `configure' which instantiates (i.e., don't
24934 # use $as_me), people would be surprised to read:
24935 # /* config.h. Generated by config.status. */
24936 if test x"$ac_file" = x-; then
24937 echo "/* Generated by configure. */" >$tmp/config.h
24938 else
24939 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
24940 fi
24941 cat $tmp/in >>$tmp/config.h
24942 rm -f $tmp/in
24943 if test x"$ac_file" != x-; then
24944 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
24945 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24946echo "$as_me: $ac_file is unchanged" >&6;}
24947 else
24948 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24949$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24950 X"$ac_file" : 'X\(//\)[^/]' \| \
24951 X"$ac_file" : 'X\(//\)$' \| \
24952 X"$ac_file" : 'X\(/\)' \| \
24953 . : '\(.\)' 2>/dev/null ||
24954echo X"$ac_file" |
24955 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24956 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24957 /^X\(\/\/\)$/{ s//\1/; q; }
24958 /^X\(\/\).*/{ s//\1/; q; }
24959 s/.*/./; q'`
24960 { if $as_mkdir_p; then
24961 mkdir -p "$ac_dir"
24962 else
24963 as_dir="$ac_dir"
24964 as_dirs=
24965 while test ! -d "$as_dir"; do
24966 as_dirs="$as_dir $as_dirs"
24967 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24968$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24969 X"$as_dir" : 'X\(//\)[^/]' \| \
24970 X"$as_dir" : 'X\(//\)$' \| \
24971 X"$as_dir" : 'X\(/\)' \| \
24972 . : '\(.\)' 2>/dev/null ||
24973echo X"$as_dir" |
24974 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24975 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24976 /^X\(\/\/\)$/{ s//\1/; q; }
24977 /^X\(\/\).*/{ s//\1/; q; }
24978 s/.*/./; q'`
24979 done
24980 test ! -n "$as_dirs" || mkdir $as_dirs
24981 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24982echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24983 { (exit 1); exit 1; }; }; }
24984
24985 rm -f $ac_file
24986 mv $tmp/config.h $ac_file
24987 fi
24988 else
24989 cat $tmp/config.h
24990 rm -f $tmp/config.h
24991 fi
24992# Compute $ac_file's index in $config_headers.
24993_am_stamp_count=1
24994for _am_header in $config_headers :; do
24995 case $_am_header in
24996 $ac_file | $ac_file:* )
24997 break ;;
24998 * )
24999 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
25000 esac
25001done
25002echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
25003$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25004 X$ac_file : 'X\(//\)[^/]' \| \
25005 X$ac_file : 'X\(//\)$' \| \
25006 X$ac_file : 'X\(/\)' \| \
25007 . : '\(.\)' 2>/dev/null ||
25008echo X$ac_file |
25009 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25010 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25011 /^X\(\/\/\)$/{ s//\1/; q; }
25012 /^X\(\/\).*/{ s//\1/; q; }
25013 s/.*/./; q'`/stamp-h$_am_stamp_count
25014done
25015_ACEOF
25016cat >>$CONFIG_STATUS <<\_ACEOF
25017
25018#
25019# CONFIG_COMMANDS section.
25020#
25021for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
25022 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
25023 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
25024 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
25025$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25026 X"$ac_dest" : 'X\(//\)[^/]' \| \
25027 X"$ac_dest" : 'X\(//\)$' \| \
25028 X"$ac_dest" : 'X\(/\)' \| \
25029 . : '\(.\)' 2>/dev/null ||
25030echo X"$ac_dest" |
25031 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25032 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25033 /^X\(\/\/\)$/{ s//\1/; q; }
25034 /^X\(\/\).*/{ s//\1/; q; }
25035 s/.*/./; q'`
25036 { if $as_mkdir_p; then
25037 mkdir -p "$ac_dir"
25038 else
25039 as_dir="$ac_dir"
25040 as_dirs=
25041 while test ! -d "$as_dir"; do
25042 as_dirs="$as_dir $as_dirs"
25043 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25044$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25045 X"$as_dir" : 'X\(//\)[^/]' \| \
25046 X"$as_dir" : 'X\(//\)$' \| \
25047 X"$as_dir" : 'X\(/\)' \| \
25048 . : '\(.\)' 2>/dev/null ||
25049echo X"$as_dir" |
25050 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25051 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25052 /^X\(\/\/\)$/{ s//\1/; q; }
25053 /^X\(\/\).*/{ s//\1/; q; }
25054 s/.*/./; q'`
25055 done
25056 test ! -n "$as_dirs" || mkdir $as_dirs
25057 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25058echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25059 { (exit 1); exit 1; }; }; }
25060
25061 ac_builddir=.
25062
25063if test "$ac_dir" != .; then
25064 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25065 # A "../" for each directory in $ac_dir_suffix.
25066 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25067else
25068 ac_dir_suffix= ac_top_builddir=
25069fi
25070
25071case $srcdir in
25072 .) # No --srcdir option. We are building in place.
25073 ac_srcdir=.
25074 if test -z "$ac_top_builddir"; then
25075 ac_top_srcdir=.
25076 else
25077 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25078 fi ;;
25079 [\\/]* | ?:[\\/]* ) # Absolute path.
25080 ac_srcdir=$srcdir$ac_dir_suffix;
25081 ac_top_srcdir=$srcdir ;;
25082 *) # Relative path.
25083 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25084 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25085esac
25086
25087# Do not use `cd foo && pwd` to compute absolute paths, because
25088# the directories may not exist.
25089case `pwd` in
25090.) ac_abs_builddir="$ac_dir";;
25091*)
25092 case "$ac_dir" in
25093 .) ac_abs_builddir=`pwd`;;
25094 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25095 *) ac_abs_builddir=`pwd`/"$ac_dir";;
25096 esac;;
25097esac
25098case $ac_abs_builddir in
25099.) ac_abs_top_builddir=${ac_top_builddir}.;;
25100*)
25101 case ${ac_top_builddir}. in
25102 .) ac_abs_top_builddir=$ac_abs_builddir;;
25103 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25104 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25105 esac;;
25106esac
25107case $ac_abs_builddir in
25108.) ac_abs_srcdir=$ac_srcdir;;
25109*)
25110 case $ac_srcdir in
25111 .) ac_abs_srcdir=$ac_abs_builddir;;
25112 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25113 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25114 esac;;
25115esac
25116case $ac_abs_builddir in
25117.) ac_abs_top_srcdir=$ac_top_srcdir;;
25118*)
25119 case $ac_top_srcdir in
25120 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25121 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25122 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25123 esac;;
25124esac
25125
25126
25127 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
25128echo "$as_me: executing $ac_dest commands" >&6;}
25129 case $ac_dest in
25130 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
25131 # Strip MF so we end up with the name of the file.
25132 mf=`echo "$mf" | sed -e 's/:.*$//'`
25133 # Check whether this is an Automake generated Makefile or not.
25134 # We used to match only the files named `Makefile.in', but
25135 # some people rename them; so instead we look at the file content.
25136 # Grep'ing the first line is not enough: some people post-process
25137 # each Makefile.in and add a new line on top of each file to say so.
25138 # So let's grep whole file.
25139 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
25140 dirpart=`(dirname "$mf") 2>/dev/null ||
25141$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25142 X"$mf" : 'X\(//\)[^/]' \| \
25143 X"$mf" : 'X\(//\)$' \| \
25144 X"$mf" : 'X\(/\)' \| \
25145 . : '\(.\)' 2>/dev/null ||
25146echo X"$mf" |
25147 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25148 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25149 /^X\(\/\/\)$/{ s//\1/; q; }
25150 /^X\(\/\).*/{ s//\1/; q; }
25151 s/.*/./; q'`
25152 else
25153 continue
25154 fi
25155 # Extract the definition of DEPDIR, am__include, and am__quote
25156 # from the Makefile without running `make'.
25157 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
25158 test -z "$DEPDIR" && continue
25159 am__include=`sed -n 's/^am__include = //p' < "$mf"`
25160 test -z "am__include" && continue
25161 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
25162 # When using ansi2knr, U may be empty or an underscore; expand it
25163 U=`sed -n 's/^U = //p' < "$mf"`
25164 # Find all dependency output files, they are included files with
25165 # $(DEPDIR) in their names. We invoke sed twice because it is the
25166 # simplest approach to changing $(DEPDIR) to its actual value in the
25167 # expansion.
25168 for file in `sed -n "
25169 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
25170 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
25171 # Make sure the directory exists.
25172 test -f "$dirpart/$file" && continue
25173 fdir=`(dirname "$file") 2>/dev/null ||
25174$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25175 X"$file" : 'X\(//\)[^/]' \| \
25176 X"$file" : 'X\(//\)$' \| \
25177 X"$file" : 'X\(/\)' \| \
25178 . : '\(.\)' 2>/dev/null ||
25179echo X"$file" |
25180 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25181 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25182 /^X\(\/\/\)$/{ s//\1/; q; }
25183 /^X\(\/\).*/{ s//\1/; q; }
25184 s/.*/./; q'`
25185 { if $as_mkdir_p; then
25186 mkdir -p $dirpart/$fdir
25187 else
25188 as_dir=$dirpart/$fdir
25189 as_dirs=
25190 while test ! -d "$as_dir"; do
25191 as_dirs="$as_dir $as_dirs"
25192 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25193$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25194 X"$as_dir" : 'X\(//\)[^/]' \| \
25195 X"$as_dir" : 'X\(//\)$' \| \
25196 X"$as_dir" : 'X\(/\)' \| \
25197 . : '\(.\)' 2>/dev/null ||
25198echo X"$as_dir" |
25199 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25200 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25201 /^X\(\/\/\)$/{ s//\1/; q; }
25202 /^X\(\/\).*/{ s//\1/; q; }
25203 s/.*/./; q'`
25204 done
25205 test ! -n "$as_dirs" || mkdir $as_dirs
25206 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
25207echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
25208 { (exit 1); exit 1; }; }; }
25209
25210 # echo "creating $dirpart/$file"
25211 echo '# dummy' > "$dirpart/$file"
25212 done
25213done
25214 ;;
25215 esac
25216done
25217_ACEOF
25218
25219cat >>$CONFIG_STATUS <<\_ACEOF
25220
25221{ (exit 0); exit 0; }
25222_ACEOF
25223chmod +x $CONFIG_STATUS
25224ac_clean_files=$ac_clean_files_save
25225
25226
25227# configure is writing to config.log, and then calls config.status.
25228# config.status does its own redirection, appending to config.log.
25229# Unfortunately, on DOS this fails, as config.log is still kept open
25230# by configure, so config.status won't be able to write to it; its
25231# output is simply discarded. So we exec the FD to /dev/null,
25232# effectively closing config.log, so it can be properly (re)opened and
25233# appended to by config.status. When coming back to configure, we
25234# need to make the FD available again.
25235if test "$no_create" != yes; then
25236 ac_cs_success=:
25237 ac_config_status_args=
25238 test "$silent" = yes &&
25239 ac_config_status_args="$ac_config_status_args --quiet"
25240 exec 5>/dev/null
25241 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25242 exec 5>>config.log
25243 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25244 # would make configure fail if this is the last instruction.
25245 $ac_cs_success || { (exit 1); exit 1; }
25246fi
25247