]> git.proxmox.com Git - mirror_spl-debian.git/blob - configure
Add ASSERTV macro to simplify removing variables (the V in ASSERTV)
[mirror_spl-debian.git] / configure
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
13 if 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+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for 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
43 do
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
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo 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.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if 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
97 fi
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
110 for as_dir in $PATH
111 do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
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
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
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
152 done
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
187 case `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= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if 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
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_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.
231 as_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.
236 as_nl='
237 '
238 IFS=" $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244
245 # Check that we are running under the correct shell.
246 SHELL=${CONFIG_SHELL-/bin/sh}
247
248 case X$ECHO in
249 X*--fallback-echo)
250 # Remove one level of quotation (which was required for Make).
251 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
252 ;;
253 esac
254
255 echo=${ECHO-echo}
256 if test "X$1" = X--no-reexec; then
257 # Discard the --no-reexec flag, and continue.
258 shift
259 elif test "X$1" = X--fallback-echo; then
260 # Avoid inline document here, it may be left over
261 :
262 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
263 # Yippee, $echo works!
264 :
265 else
266 # Restart under the correct shell.
267 exec $SHELL "$0" --no-reexec ${1+"$@"}
268 fi
269
270 if test "X$1" = X--fallback-echo; then
271 # used as fallback echo
272 shift
273 cat <<EOF
274 $*
275 EOF
276 exit 0
277 fi
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
283 if test -z "$ECHO"; then
284 if 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
295 fi
296
297 if 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 :
301 else
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
381 fi
382 fi
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.
386 ECHO=$echo
387 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
388 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
389 fi
390
391
392
393
394 tagnames=${tagnames+${tagnames},}CXX
395
396 tagnames=${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.
401 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
402
403 exec 6>&1
404
405 #
406 # Initializations.
407 #
408 ac_default_prefix=/usr/local
409 ac_config_libobj_dir=.
410 cross_compiling=no
411 subdirs=
412 MFLAGS=
413 MAKEFLAGS=
414 SHELL=${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.
422 PACKAGE_NAME=
423 PACKAGE_TARNAME=
424 PACKAGE_VERSION=
425 PACKAGE_STRING=
426 PACKAGE_BUGREPORT=
427
428 # Factoring default headers for most tests.
429 ac_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
465 ac_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'
466 ac_subst_files=''
467
468 # Initialize some variables set by options.
469 ac_init_help=
470 ac_init_version=false
471 # The variables have the same names as the options, with
472 # dashes changed to underlines.
473 cache_file=/dev/null
474 exec_prefix=NONE
475 no_create=
476 no_recursion=
477 prefix=NONE
478 program_prefix=NONE
479 program_suffix=NONE
480 program_transform_name=s,x,x,
481 silent=
482 site=
483 srcdir=
484 verbose=
485 x_includes=NONE
486 x_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.
493 bindir='${exec_prefix}/bin'
494 sbindir='${exec_prefix}/sbin'
495 libexecdir='${exec_prefix}/libexec'
496 datadir='${prefix}/share'
497 sysconfdir='${prefix}/etc'
498 sharedstatedir='${prefix}/com'
499 localstatedir='${prefix}/var'
500 libdir='${exec_prefix}/lib'
501 includedir='${prefix}/include'
502 oldincludedir='/usr/include'
503 infodir='${prefix}/info'
504 mandir='${prefix}/man'
505
506 ac_prev=
507 for ac_option
508 do
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
780 Try \`$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
803 done
804
805 if 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; }; }
809 fi
810
811 # Be sure to have absolute paths.
812 for ac_var in exec_prefix prefix
813 do
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
820 done
821
822 # Be sure to have absolute paths.
823 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
824 localstatedir libdir includedir oldincludedir infodir mandir
825 do
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
832 done
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.
837 build=$build_alias
838 host=$host_alias
839 target=$target_alias
840
841 # FIXME: To remove some day.
842 if 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
850 fi
851
852 ac_tool_prefix=
853 test -n "$host_alias" && ac_tool_prefix=$host_alias-
854
855 test "$silent" = yes && exec 6>/dev/null
856
857
858 # Find the source files, if location was not specified.
859 if 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 ||
868 echo 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
878 else
879 ac_srcdir_defaulted=no
880 fi
881 if 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
889 fi
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; }; }
893 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
894 ac_env_build_alias_set=${build_alias+set}
895 ac_env_build_alias_value=$build_alias
896 ac_cv_env_build_alias_set=${build_alias+set}
897 ac_cv_env_build_alias_value=$build_alias
898 ac_env_host_alias_set=${host_alias+set}
899 ac_env_host_alias_value=$host_alias
900 ac_cv_env_host_alias_set=${host_alias+set}
901 ac_cv_env_host_alias_value=$host_alias
902 ac_env_target_alias_set=${target_alias+set}
903 ac_env_target_alias_value=$target_alias
904 ac_cv_env_target_alias_set=${target_alias+set}
905 ac_cv_env_target_alias_value=$target_alias
906 ac_env_CC_set=${CC+set}
907 ac_env_CC_value=$CC
908 ac_cv_env_CC_set=${CC+set}
909 ac_cv_env_CC_value=$CC
910 ac_env_CFLAGS_set=${CFLAGS+set}
911 ac_env_CFLAGS_value=$CFLAGS
912 ac_cv_env_CFLAGS_set=${CFLAGS+set}
913 ac_cv_env_CFLAGS_value=$CFLAGS
914 ac_env_LDFLAGS_set=${LDFLAGS+set}
915 ac_env_LDFLAGS_value=$LDFLAGS
916 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
917 ac_cv_env_LDFLAGS_value=$LDFLAGS
918 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
919 ac_env_CPPFLAGS_value=$CPPFLAGS
920 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
921 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
922 ac_env_CPP_set=${CPP+set}
923 ac_env_CPP_value=$CPP
924 ac_cv_env_CPP_set=${CPP+set}
925 ac_cv_env_CPP_value=$CPP
926 ac_env_CXX_set=${CXX+set}
927 ac_env_CXX_value=$CXX
928 ac_cv_env_CXX_set=${CXX+set}
929 ac_cv_env_CXX_value=$CXX
930 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
931 ac_env_CXXFLAGS_value=$CXXFLAGS
932 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
933 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
934 ac_env_CXXCPP_set=${CXXCPP+set}
935 ac_env_CXXCPP_value=$CXXCPP
936 ac_cv_env_CXXCPP_set=${CXXCPP+set}
937 ac_cv_env_CXXCPP_value=$CXXCPP
938 ac_env_F77_set=${F77+set}
939 ac_env_F77_value=$F77
940 ac_cv_env_F77_set=${F77+set}
941 ac_cv_env_F77_value=$F77
942 ac_env_FFLAGS_set=${FFLAGS+set}
943 ac_env_FFLAGS_value=$FFLAGS
944 ac_cv_env_FFLAGS_set=${FFLAGS+set}
945 ac_cv_env_FFLAGS_value=$FFLAGS
946
947 #
948 # Report the --help message.
949 #
950 if 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
956 Usage: $0 [OPTION]... [VAR=VALUE]...
957
958 To assign environment variables (e.g., CC, CFLAGS...), specify them as
959 VAR=VALUE. See below for descriptions of some of the useful variables.
960
961 Defaults for the options are specified in brackets.
962
963 Configuration:
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
977 Installation 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
983 By default, \`make install' will install all the files in
984 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
985 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
986 for instance \`--prefix=\$HOME'.
987
988 For better control, use the options below.
989
990 Fine 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
1007 Program 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
1012 System 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
1017 fi
1018
1019 if test -n "$ac_init_help"; then
1020
1021 cat <<\_ACEOF
1022
1023 Optional 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
1043 Optional 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]
1051 --with-config=CONFIG Config file 'kernel|user|all'
1052 --with-linux=PATH Path to kernel source
1053 --with-linux-obj=PATH Path to kernel build objects
1054
1055 Some 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
1069 Use these variables to override the choices made by `configure' or to help
1070 it to find libraries and programs with nonstandard names/locations.
1071
1072 _ACEOF
1073 fi
1074
1075 if 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
1082 if 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'`
1086 else
1087 ac_dir_suffix= ac_top_builddir=
1088 fi
1089
1090 case $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 ;;
1104 esac
1105
1106 # Do not use `cd foo && pwd` to compute absolute paths, because
1107 # the directories may not exist.
1108 case `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;;
1116 esac
1117 case $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;;
1125 esac
1126 case $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;;
1134 esac
1135 case $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;;
1143 esac
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
1162 fi
1163
1164 test -n "$ac_init_help" && exit 0
1165 if $ac_init_version; then
1166 cat <<\_ACEOF
1167
1168 Copyright (C) 2003 Free Software Foundation, Inc.
1169 This configure script is free software; the Free Software Foundation
1170 gives unlimited permission to copy, distribute and modify it.
1171 _ACEOF
1172 exit 0
1173 fi
1174 exec 5>config.log
1175 cat >&5 <<_ACEOF
1176 This file contains any messages produced by compilers while
1177 running configure, to aid debugging if configure makes a mistake.
1178
1179 It was created by $as_me, which was
1180 generated by GNU Autoconf 2.59. Invocation command line was
1181
1182 $ $0 $@
1183
1184 _ACEOF
1185 {
1186 cat <<_ASUNAME
1187 ## --------- ##
1188 ## Platform. ##
1189 ## --------- ##
1190
1191 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1192 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1193 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1194 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1195 uname -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`
1203 hostinfo = `(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
1210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1211 for as_dir in $PATH
1212 do
1213 IFS=$as_save_IFS
1214 test -z "$as_dir" && as_dir=.
1215 echo "PATH: $as_dir"
1216 done
1217
1218 } >&5
1219
1220 cat >&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.
1235 ac_configure_args=
1236 ac_configure_args0=
1237 ac_configure_args1=
1238 ac_sep=
1239 ac_must_keep_next=false
1240 for ac_pass in 1 2
1241 do
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
1277 done
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.
1286 trap '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
1360 for ac_signal in 1 2 13 15; do
1361 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1362 done
1363 ac_signal=0
1364
1365 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1366 rm -rf conftest* confdefs.h
1367 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1368 echo >confdefs.h
1369
1370 # Predefined preprocessor variables.
1371
1372 cat >>confdefs.h <<_ACEOF
1373 #define PACKAGE_NAME "$PACKAGE_NAME"
1374 _ACEOF
1375
1376
1377 cat >>confdefs.h <<_ACEOF
1378 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1379 _ACEOF
1380
1381
1382 cat >>confdefs.h <<_ACEOF
1383 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1384 _ACEOF
1385
1386
1387 cat >>confdefs.h <<_ACEOF
1388 #define PACKAGE_STRING "$PACKAGE_STRING"
1389 _ACEOF
1390
1391
1392 cat >>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.
1399 if 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
1405 fi
1406 for 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
1409 echo "$as_me: loading site script $ac_site_file" >&6;}
1410 sed 's/^/| /' "$ac_site_file" >&5
1411 . "$ac_site_file"
1412 fi
1413 done
1414
1415 if 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
1420 echo "$as_me: loading cache $cache_file" >&6;}
1421 case $cache_file in
1422 [\\/]* | ?:[\\/]* ) . $cache_file;;
1423 *) . ./$cache_file;;
1424 esac
1425 fi
1426 else
1427 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1428 echo "$as_me: creating cache $cache_file" >&6;}
1429 >$cache_file
1430 fi
1431
1432 # Check that the precious variables saved in the cache have kept the same
1433 # value.
1434 ac_cache_corrupted=false
1435 for 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
1444 echo "$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
1448 echo "$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
1454 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1455 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1456 echo "$as_me: former value: $ac_old_val" >&2;}
1457 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1458 echo "$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
1474 done
1475 if $ac_cache_corrupted; then
1476 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1477 echo "$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
1479 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1480 { (exit 1); exit 1; }; }
1481 fi
1482
1483 ac_ext=c
1484 ac_cpp='$CPP $CPPFLAGS'
1485 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1486 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1487 ac_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
1507 ac_ext=c
1508 ac_cpp='$CPP $CPPFLAGS'
1509 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1510 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1511 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1512
1513
1514 echo "$as_me:$LINENO: checking metadata" >&5
1515 echo $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
1522 SPL_META_NAME=`perl -n\
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`;
1532 if test -n "$SPL_META_NAME"; then
1533
1534 cat >>confdefs.h <<_ACEOF
1535 #define SPL_META_NAME "$SPL_META_NAME"
1536 _ACEOF
1537
1538
1539 fi
1540
1541 SPL_META_VERSION=`perl -n\
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`;
1551 if test -n "$SPL_META_VERSION"; then
1552
1553 cat >>confdefs.h <<_ACEOF
1554 #define SPL_META_VERSION "$SPL_META_VERSION"
1555 _ACEOF
1556
1557
1558 fi
1559
1560 SPL_META_RELEASE=`perl -n\
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`;
1570 if test -n "$SPL_META_RELEASE"; then
1571
1572 cat >>confdefs.h <<_ACEOF
1573 #define SPL_META_RELEASE "$SPL_META_RELEASE"
1574 _ACEOF
1575
1576
1577 fi
1578
1579 if test -n "$SPL_META_NAME" -a -n "$SPL_META_VERSION"; then
1580 SPL_META_ALIAS="$SPL_META_NAME-$SPL_META_VERSION"
1581 test -n "$SPL_META_RELEASE" &&
1582 SPL_META_ALIAS="$SPL_META_ALIAS-$SPL_META_RELEASE"
1583
1584 cat >>confdefs.h <<_ACEOF
1585 #define SPL_META_ALIAS "$SPL_META_ALIAS"
1586 _ACEOF
1587
1588
1589 fi
1590
1591 SPL_META_DATA=`perl -n\
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`;
1601 if test -n "$SPL_META_DATA"; then
1602
1603 cat >>confdefs.h <<_ACEOF
1604 #define SPL_META_DATA "$SPL_META_DATA"
1605 _ACEOF
1606
1607
1608 fi
1609
1610 SPL_META_AUTHOR=`perl -n\
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`;
1620 if test -n "$SPL_META_AUTHOR"; then
1621
1622 cat >>confdefs.h <<_ACEOF
1623 #define SPL_META_AUTHOR "$SPL_META_AUTHOR"
1624 _ACEOF
1625
1626
1627 fi
1628
1629
1630 SPL_META_LT_CURRENT=`perl -n\
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`;
1640 SPL_META_LT_REVISION=`perl -n\
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`;
1650 SPL_META_LT_AGE=`perl -n\
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`;
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"
1666
1667 cat >>confdefs.h <<_ACEOF
1668 #define SPL_META_LT_CURRENT "$SPL_META_LT_CURRENT"
1669 _ACEOF
1670
1671
1672 cat >>confdefs.h <<_ACEOF
1673 #define SPL_META_LT_REVISION "$SPL_META_LT_REVISION"
1674 _ACEOF
1675
1676
1677 cat >>confdefs.h <<_ACEOF
1678 #define SPL_META_LT_AGE "$SPL_META_LT_AGE"
1679 _ACEOF
1680
1681
1682
1683
1684 fi
1685 fi
1686
1687 echo "$as_me:$LINENO: result: $_spl_ac_meta_got_file" >&5
1688 echo "${ECHO_T}$_spl_ac_meta_got_file" >&6
1689
1690
1691 ac_aux_dir=
1692 for 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
1706 done
1707 if test -z "$ac_aux_dir"; then
1708 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1709 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1710 { (exit 1); exit 1; }; }
1711 fi
1712 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1713 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1714 ac_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
1719 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1720 { (exit 1); exit 1; }; }
1721
1722 echo "$as_me:$LINENO: checking build system type" >&5
1723 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1724 if test "${ac_cv_build+set}" = set; then
1725 echo $ECHO_N "(cached) $ECHO_C" >&6
1726 else
1727 ac_cv_build_alias=$build_alias
1728 test -z "$ac_cv_build_alias" &&
1729 ac_cv_build_alias=`$ac_config_guess`
1730 test -z "$ac_cv_build_alias" &&
1731 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1732 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1733 { (exit 1); exit 1; }; }
1734 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1735 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1736 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1737 { (exit 1); exit 1; }; }
1738
1739 fi
1740 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1741 echo "${ECHO_T}$ac_cv_build" >&6
1742 build=$ac_cv_build
1743 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1744 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1745 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1746
1747
1748 echo "$as_me:$LINENO: checking host system type" >&5
1749 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1750 if test "${ac_cv_host+set}" = set; then
1751 echo $ECHO_N "(cached) $ECHO_C" >&6
1752 else
1753 ac_cv_host_alias=$host_alias
1754 test -z "$ac_cv_host_alias" &&
1755 ac_cv_host_alias=$ac_cv_build_alias
1756 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1757 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1758 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1759 { (exit 1); exit 1; }; }
1760
1761 fi
1762 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1763 echo "${ECHO_T}$ac_cv_host" >&6
1764 host=$ac_cv_host
1765 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1766 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1767 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1768
1769
1770 echo "$as_me:$LINENO: checking target system type" >&5
1771 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1772 if test "${ac_cv_target+set}" = set; then
1773 echo $ECHO_N "(cached) $ECHO_C" >&6
1774 else
1775 ac_cv_target_alias=$target_alias
1776 test "x$ac_cv_target_alias" = "x" &&
1777 ac_cv_target_alias=$ac_cv_host_alias
1778 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1779 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1780 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1781 { (exit 1); exit 1; }; }
1782
1783 fi
1784 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1785 echo "${ECHO_T}$ac_cv_target" >&6
1786 target=$ac_cv_target
1787 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1788 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1789 target_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.
1794 test -n "$target_alias" &&
1795 test "$program_prefix$program_suffix$program_transform_name" = \
1796 NONENONEs,x,x, &&
1797 program_prefix=${target_alias}-
1798 am__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.
1812 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1813 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1814 if test -z "$INSTALL"; then
1815 if test "${ac_cv_path_install+set}" = set; then
1816 echo $ECHO_N "(cached) $ECHO_C" >&6
1817 else
1818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1819 for as_dir in $PATH
1820 do
1821 IFS=$as_save_IFS
1822 test -z "$as_dir" && as_dir=.
1823 # Account for people who put trailing slashes in PATH elements.
1824 case $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 ;;
1852 esac
1853 done
1854
1855
1856 fi
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
1866 fi
1867 echo "$as_me:$LINENO: result: $INSTALL" >&5
1868 echo "${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.
1872 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1873
1874 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1875
1876 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1877
1878 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1879 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1880 # Just in case
1881 sleep 1
1882 echo 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).
1888 if (
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
1903 alias in your environment" >&5
1904 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1905 alias in your environment" >&2;}
1906 { (exit 1); exit 1; }; }
1907 fi
1908
1909 test "$2" = conftest.file
1910 )
1911 then
1912 # Ok.
1913 :
1914 else
1915 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1916 Check your system clock" >&5
1917 echo "$as_me: error: newly created file is older than distributed files!
1918 Check your system clock" >&2;}
1919 { (exit 1); exit 1; }; }
1920 fi
1921 echo "$as_me:$LINENO: result: yes" >&5
1922 echo "${ECHO_T}yes" >&6
1923 test "$program_prefix" != NONE &&
1924 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1925 # Use a double $ so make ignores it.
1926 test "$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.
1930 cat <<\_ACEOF >conftest.sed
1931 s/[\\$]/&&/g;s/;s,x,x,$//
1932 _ACEOF
1933 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1934 rm conftest.sed
1935
1936 # expand $ac_aux_dir to an absolute path
1937 am_aux_dir=`cd $ac_aux_dir && pwd`
1938
1939 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1940 # Use eval to expand $SHELL
1941 if eval "$MISSING --run true"; then
1942 am_missing_run="$MISSING --run "
1943 else
1944 am_missing_run=
1945 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1946 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1947 fi
1948
1949 if 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 --'
1965 else
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
1980 fi
1981
1982 for ac_prog in gawk mawk nawk awk
1983 do
1984 # Extract the first word of "$ac_prog", so it can be a program name with args.
1985 set dummy $ac_prog; ac_word=$2
1986 echo "$as_me:$LINENO: checking for $ac_word" >&5
1987 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1988 if test "${ac_cv_prog_AWK+set}" = set; then
1989 echo $ECHO_N "(cached) $ECHO_C" >&6
1990 else
1991 if test -n "$AWK"; then
1992 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1993 else
1994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1995 for as_dir in $PATH
1996 do
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
2005 done
2006 done
2007
2008 fi
2009 fi
2010 AWK=$ac_cv_prog_AWK
2011 if test -n "$AWK"; then
2012 echo "$as_me:$LINENO: result: $AWK" >&5
2013 echo "${ECHO_T}$AWK" >&6
2014 else
2015 echo "$as_me:$LINENO: result: no" >&5
2016 echo "${ECHO_T}no" >&6
2017 fi
2018
2019 test -n "$AWK" && break
2020 done
2021
2022 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2023 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2024 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2025 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2026 echo $ECHO_N "(cached) $ECHO_C" >&6
2027 else
2028 cat >conftest.make <<\_ACEOF
2029 all:
2030 @echo 'ac_maketemp="$(MAKE)"'
2031 _ACEOF
2032 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2033 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2034 if test -n "$ac_maketemp"; then
2035 eval ac_cv_prog_make_${ac_make}_set=yes
2036 else
2037 eval ac_cv_prog_make_${ac_make}_set=no
2038 fi
2039 rm -f conftest.make
2040 fi
2041 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2042 echo "$as_me:$LINENO: result: yes" >&5
2043 echo "${ECHO_T}yes" >&6
2044 SET_MAKE=
2045 else
2046 echo "$as_me:$LINENO: result: no" >&5
2047 echo "${ECHO_T}no" >&6
2048 SET_MAKE="MAKE=${MAKE-make}"
2049 fi
2050
2051 rm -rf .tst 2>/dev/null
2052 mkdir .tst 2>/dev/null
2053 if test -d .tst; then
2054 am__leading_dot=.
2055 else
2056 am__leading_dot=_
2057 fi
2058 rmdir .tst 2>/dev/null
2059
2060 # test to see if srcdir already configured
2061 if 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
2064 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2065 { (exit 1); exit 1; }; }
2066 fi
2067
2068 # test whether we have cygpath
2069 if 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
2075 fi
2076
2077
2078 # Define the identity of the package.
2079 PACKAGE=$SPL_META_NAME
2080 VERSION=$SPL_META_VERSION
2081
2082
2083 cat >>confdefs.h <<_ACEOF
2084 #define PACKAGE "$PACKAGE"
2085 _ACEOF
2086
2087
2088 cat >>confdefs.h <<_ACEOF
2089 #define VERSION "$VERSION"
2090 _ACEOF
2091
2092 # Some tools Automake needs.
2093
2094 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2095
2096
2097 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2098
2099
2100 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2101
2102
2103 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2104
2105
2106 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2107
2108 install_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.
2114 if 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.
2117 set dummy ${ac_tool_prefix}strip; ac_word=$2
2118 echo "$as_me:$LINENO: checking for $ac_word" >&5
2119 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2120 if test "${ac_cv_prog_STRIP+set}" = set; then
2121 echo $ECHO_N "(cached) $ECHO_C" >&6
2122 else
2123 if test -n "$STRIP"; then
2124 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2125 else
2126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2127 for as_dir in $PATH
2128 do
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
2137 done
2138 done
2139
2140 fi
2141 fi
2142 STRIP=$ac_cv_prog_STRIP
2143 if test -n "$STRIP"; then
2144 echo "$as_me:$LINENO: result: $STRIP" >&5
2145 echo "${ECHO_T}$STRIP" >&6
2146 else
2147 echo "$as_me:$LINENO: result: no" >&5
2148 echo "${ECHO_T}no" >&6
2149 fi
2150
2151 fi
2152 if 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.
2155 set dummy strip; ac_word=$2
2156 echo "$as_me:$LINENO: checking for $ac_word" >&5
2157 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2158 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2159 echo $ECHO_N "(cached) $ECHO_C" >&6
2160 else
2161 if test -n "$ac_ct_STRIP"; then
2162 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2163 else
2164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2165 for as_dir in $PATH
2166 do
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
2175 done
2176 done
2177
2178 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2179 fi
2180 fi
2181 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2182 if test -n "$ac_ct_STRIP"; then
2183 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2184 echo "${ECHO_T}$ac_ct_STRIP" >&6
2185 else
2186 echo "$as_me:$LINENO: result: no" >&5
2187 echo "${ECHO_T}no" >&6
2188 fi
2189
2190 STRIP=$ac_ct_STRIP
2191 else
2192 STRIP="$ac_cv_prog_STRIP"
2193 fi
2194
2195 fi
2196 INSTALL_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
2202 AMTAR=${AMTAR-"${am_missing_run}tar"}
2203
2204 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2205
2206
2207
2208
2209
2210 ac_config_headers="$ac_config_headers spl_config.h"
2211
2212
2213
2214 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2215 echo $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.
2217 if test "${enable_maintainer_mode+set}" = set; then
2218 enableval="$enable_maintainer_mode"
2219 USE_MAINTAINER_MODE=$enableval
2220 else
2221 USE_MAINTAINER_MODE=no
2222 fi;
2223 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2224 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
2225
2226
2227 if test $USE_MAINTAINER_MODE = yes; then
2228 MAINTAINER_MODE_TRUE=
2229 MAINTAINER_MODE_FALSE='#'
2230 else
2231 MAINTAINER_MODE_TRUE='#'
2232 MAINTAINER_MODE_FALSE=
2233 fi
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.
2252 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2253 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2254 if test -z "$INSTALL"; then
2255 if test "${ac_cv_path_install+set}" = set; then
2256 echo $ECHO_N "(cached) $ECHO_C" >&6
2257 else
2258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2259 for as_dir in $PATH
2260 do
2261 IFS=$as_save_IFS
2262 test -z "$as_dir" && as_dir=.
2263 # Account for people who put trailing slashes in PATH elements.
2264 case $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 ;;
2292 esac
2293 done
2294
2295
2296 fi
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
2306 fi
2307 echo "$as_me:$LINENO: result: $INSTALL" >&5
2308 echo "${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.
2312 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2313
2314 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2315
2316 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2317
2318 ac_ext=c
2319 ac_cpp='$CPP $CPPFLAGS'
2320 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2321 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2322 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2323 if 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.
2325 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2326 echo "$as_me:$LINENO: checking for $ac_word" >&5
2327 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2328 if test "${ac_cv_prog_CC+set}" = set; then
2329 echo $ECHO_N "(cached) $ECHO_C" >&6
2330 else
2331 if test -n "$CC"; then
2332 ac_cv_prog_CC="$CC" # Let the user override the test.
2333 else
2334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2335 for as_dir in $PATH
2336 do
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
2345 done
2346 done
2347
2348 fi
2349 fi
2350 CC=$ac_cv_prog_CC
2351 if test -n "$CC"; then
2352 echo "$as_me:$LINENO: result: $CC" >&5
2353 echo "${ECHO_T}$CC" >&6
2354 else
2355 echo "$as_me:$LINENO: result: no" >&5
2356 echo "${ECHO_T}no" >&6
2357 fi
2358
2359 fi
2360 if 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.
2363 set dummy gcc; ac_word=$2
2364 echo "$as_me:$LINENO: checking for $ac_word" >&5
2365 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2366 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2367 echo $ECHO_N "(cached) $ECHO_C" >&6
2368 else
2369 if test -n "$ac_ct_CC"; then
2370 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2371 else
2372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2373 for as_dir in $PATH
2374 do
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
2383 done
2384 done
2385
2386 fi
2387 fi
2388 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2389 if test -n "$ac_ct_CC"; then
2390 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2391 echo "${ECHO_T}$ac_ct_CC" >&6
2392 else
2393 echo "$as_me:$LINENO: result: no" >&5
2394 echo "${ECHO_T}no" >&6
2395 fi
2396
2397 CC=$ac_ct_CC
2398 else
2399 CC="$ac_cv_prog_CC"
2400 fi
2401
2402 if 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.
2405 set dummy ${ac_tool_prefix}cc; ac_word=$2
2406 echo "$as_me:$LINENO: checking for $ac_word" >&5
2407 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2408 if test "${ac_cv_prog_CC+set}" = set; then
2409 echo $ECHO_N "(cached) $ECHO_C" >&6
2410 else
2411 if test -n "$CC"; then
2412 ac_cv_prog_CC="$CC" # Let the user override the test.
2413 else
2414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2415 for as_dir in $PATH
2416 do
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
2425 done
2426 done
2427
2428 fi
2429 fi
2430 CC=$ac_cv_prog_CC
2431 if test -n "$CC"; then
2432 echo "$as_me:$LINENO: result: $CC" >&5
2433 echo "${ECHO_T}$CC" >&6
2434 else
2435 echo "$as_me:$LINENO: result: no" >&5
2436 echo "${ECHO_T}no" >&6
2437 fi
2438
2439 fi
2440 if 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.
2443 set dummy cc; ac_word=$2
2444 echo "$as_me:$LINENO: checking for $ac_word" >&5
2445 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2446 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2447 echo $ECHO_N "(cached) $ECHO_C" >&6
2448 else
2449 if test -n "$ac_ct_CC"; then
2450 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2451 else
2452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2453 for as_dir in $PATH
2454 do
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
2463 done
2464 done
2465
2466 fi
2467 fi
2468 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2469 if test -n "$ac_ct_CC"; then
2470 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2471 echo "${ECHO_T}$ac_ct_CC" >&6
2472 else
2473 echo "$as_me:$LINENO: result: no" >&5
2474 echo "${ECHO_T}no" >&6
2475 fi
2476
2477 CC=$ac_ct_CC
2478 else
2479 CC="$ac_cv_prog_CC"
2480 fi
2481
2482 fi
2483 if test -z "$CC"; then
2484 # Extract the first word of "cc", so it can be a program name with args.
2485 set dummy cc; ac_word=$2
2486 echo "$as_me:$LINENO: checking for $ac_word" >&5
2487 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2488 if test "${ac_cv_prog_CC+set}" = set; then
2489 echo $ECHO_N "(cached) $ECHO_C" >&6
2490 else
2491 if test -n "$CC"; then
2492 ac_cv_prog_CC="$CC" # Let the user override the test.
2493 else
2494 ac_prog_rejected=no
2495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2496 for as_dir in $PATH
2497 do
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
2510 done
2511 done
2512
2513 if 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
2524 fi
2525 fi
2526 fi
2527 CC=$ac_cv_prog_CC
2528 if test -n "$CC"; then
2529 echo "$as_me:$LINENO: result: $CC" >&5
2530 echo "${ECHO_T}$CC" >&6
2531 else
2532 echo "$as_me:$LINENO: result: no" >&5
2533 echo "${ECHO_T}no" >&6
2534 fi
2535
2536 fi
2537 if 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.
2542 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2543 echo "$as_me:$LINENO: checking for $ac_word" >&5
2544 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2545 if test "${ac_cv_prog_CC+set}" = set; then
2546 echo $ECHO_N "(cached) $ECHO_C" >&6
2547 else
2548 if test -n "$CC"; then
2549 ac_cv_prog_CC="$CC" # Let the user override the test.
2550 else
2551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2552 for as_dir in $PATH
2553 do
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
2562 done
2563 done
2564
2565 fi
2566 fi
2567 CC=$ac_cv_prog_CC
2568 if test -n "$CC"; then
2569 echo "$as_me:$LINENO: result: $CC" >&5
2570 echo "${ECHO_T}$CC" >&6
2571 else
2572 echo "$as_me:$LINENO: result: no" >&5
2573 echo "${ECHO_T}no" >&6
2574 fi
2575
2576 test -n "$CC" && break
2577 done
2578 fi
2579 if test -z "$CC"; then
2580 ac_ct_CC=$CC
2581 for ac_prog in cl
2582 do
2583 # Extract the first word of "$ac_prog", so it can be a program name with args.
2584 set dummy $ac_prog; ac_word=$2
2585 echo "$as_me:$LINENO: checking for $ac_word" >&5
2586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2587 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2588 echo $ECHO_N "(cached) $ECHO_C" >&6
2589 else
2590 if test -n "$ac_ct_CC"; then
2591 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2592 else
2593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2594 for as_dir in $PATH
2595 do
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
2604 done
2605 done
2606
2607 fi
2608 fi
2609 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2610 if test -n "$ac_ct_CC"; then
2611 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2612 echo "${ECHO_T}$ac_ct_CC" >&6
2613 else
2614 echo "$as_me:$LINENO: result: no" >&5
2615 echo "${ECHO_T}no" >&6
2616 fi
2617
2618 test -n "$ac_ct_CC" && break
2619 done
2620
2621 CC=$ac_ct_CC
2622 fi
2623
2624 fi
2625
2626
2627 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2628 See \`config.log' for more details." >&5
2629 echo "$as_me: error: no acceptable C compiler found in \$PATH
2630 See \`config.log' for more details." >&2;}
2631 { (exit 1); exit 1; }; }
2632
2633 # Provide some information about the compiler.
2634 echo "$as_me:$LINENO:" \
2635 "checking for C compiler version" >&5
2636 ac_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
2653 cat >conftest.$ac_ext <<_ACEOF
2654 /* confdefs.h. */
2655 _ACEOF
2656 cat confdefs.h >>conftest.$ac_ext
2657 cat >>conftest.$ac_ext <<_ACEOF
2658 /* end confdefs.h. */
2659
2660 int
2661 main ()
2662 {
2663
2664 ;
2665 return 0;
2666 }
2667 _ACEOF
2668 ac_clean_files_save=$ac_clean_files
2669 ac_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.
2673 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2674 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2675 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2676 if { (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.
2687 ac_cv_exeext=
2688 # b.out is created by i960 compilers.
2689 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2690 do
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
2712 done
2713 else
2714 echo "$as_me: failed program was:" >&5
2715 sed 's/^/| /' conftest.$ac_ext >&5
2716
2717 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2718 See \`config.log' for more details." >&5
2719 echo "$as_me: error: C compiler cannot create executables
2720 See \`config.log' for more details." >&2;}
2721 { (exit 77); exit 77; }; }
2722 fi
2723
2724 ac_exeext=$ac_cv_exeext
2725 echo "$as_me:$LINENO: result: $ac_file" >&5
2726 echo "${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.
2730 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2731 echo $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.
2734 if 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.
2747 If you meant to cross compile, use \`--host'.
2748 See \`config.log' for more details." >&5
2749 echo "$as_me: error: cannot run C compiled programs.
2750 If you meant to cross compile, use \`--host'.
2751 See \`config.log' for more details." >&2;}
2752 { (exit 1); exit 1; }; }
2753 fi
2754 fi
2755 fi
2756 echo "$as_me:$LINENO: result: yes" >&5
2757 echo "${ECHO_T}yes" >&6
2758
2759 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2760 ac_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.
2763 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2764 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2765 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2766 echo "${ECHO_T}$cross_compiling" >&6
2767
2768 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2769 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2770 if { (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'.
2779 for 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
2788 done
2789 else
2790 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2791 See \`config.log' for more details." >&5
2792 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2793 See \`config.log' for more details." >&2;}
2794 { (exit 1); exit 1; }; }
2795 fi
2796
2797 rm -f conftest$ac_cv_exeext
2798 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2799 echo "${ECHO_T}$ac_cv_exeext" >&6
2800
2801 rm -f conftest.$ac_ext
2802 EXEEXT=$ac_cv_exeext
2803 ac_exeext=$EXEEXT
2804 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2805 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2806 if test "${ac_cv_objext+set}" = set; then
2807 echo $ECHO_N "(cached) $ECHO_C" >&6
2808 else
2809 cat >conftest.$ac_ext <<_ACEOF
2810 /* confdefs.h. */
2811 _ACEOF
2812 cat confdefs.h >>conftest.$ac_ext
2813 cat >>conftest.$ac_ext <<_ACEOF
2814 /* end confdefs.h. */
2815
2816 int
2817 main ()
2818 {
2819
2820 ;
2821 return 0;
2822 }
2823 _ACEOF
2824 rm -f conftest.o conftest.obj
2825 if { (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
2836 done
2837 else
2838 echo "$as_me: failed program was:" >&5
2839 sed 's/^/| /' conftest.$ac_ext >&5
2840
2841 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2842 See \`config.log' for more details." >&5
2843 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2844 See \`config.log' for more details." >&2;}
2845 { (exit 1); exit 1; }; }
2846 fi
2847
2848 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2849 fi
2850 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2851 echo "${ECHO_T}$ac_cv_objext" >&6
2852 OBJEXT=$ac_cv_objext
2853 ac_objext=$OBJEXT
2854 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2855 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2856 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2857 echo $ECHO_N "(cached) $ECHO_C" >&6
2858 else
2859 cat >conftest.$ac_ext <<_ACEOF
2860 /* confdefs.h. */
2861 _ACEOF
2862 cat confdefs.h >>conftest.$ac_ext
2863 cat >>conftest.$ac_ext <<_ACEOF
2864 /* end confdefs.h. */
2865
2866 int
2867 main ()
2868 {
2869 #ifndef __GNUC__
2870 choke me
2871 #endif
2872
2873 ;
2874 return 0;
2875 }
2876 _ACEOF
2877 rm -f conftest.$ac_objext
2878 if { (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
2900 else
2901 echo "$as_me: failed program was:" >&5
2902 sed 's/^/| /' conftest.$ac_ext >&5
2903
2904 ac_compiler_gnu=no
2905 fi
2906 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2907 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2908
2909 fi
2910 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2911 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2912 GCC=`test $ac_compiler_gnu = yes && echo yes`
2913 ac_test_CFLAGS=${CFLAGS+set}
2914 ac_save_CFLAGS=$CFLAGS
2915 CFLAGS="-g"
2916 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2917 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2918 if test "${ac_cv_prog_cc_g+set}" = set; then
2919 echo $ECHO_N "(cached) $ECHO_C" >&6
2920 else
2921 cat >conftest.$ac_ext <<_ACEOF
2922 /* confdefs.h. */
2923 _ACEOF
2924 cat confdefs.h >>conftest.$ac_ext
2925 cat >>conftest.$ac_ext <<_ACEOF
2926 /* end confdefs.h. */
2927
2928 int
2929 main ()
2930 {
2931
2932 ;
2933 return 0;
2934 }
2935 _ACEOF
2936 rm -f conftest.$ac_objext
2937 if { (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
2959 else
2960 echo "$as_me: failed program was:" >&5
2961 sed 's/^/| /' conftest.$ac_ext >&5
2962
2963 ac_cv_prog_cc_g=no
2964 fi
2965 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2966 fi
2967 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2968 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2969 if test "$ac_test_CFLAGS" = set; then
2970 CFLAGS=$ac_save_CFLAGS
2971 elif 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
2977 else
2978 if test "$GCC" = yes; then
2979 CFLAGS="-O2"
2980 else
2981 CFLAGS=
2982 fi
2983 fi
2984 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2985 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2986 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2987 echo $ECHO_N "(cached) $ECHO_C" >&6
2988 else
2989 ac_cv_prog_cc_stdc=no
2990 ac_save_CC=$CC
2991 cat >conftest.$ac_ext <<_ACEOF
2992 /* confdefs.h. */
2993 _ACEOF
2994 cat confdefs.h >>conftest.$ac_ext
2995 cat >>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. */
3002 struct buf { int x; };
3003 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3004 static char *e (p, i)
3005 char **p;
3006 int i;
3007 {
3008 return p[i];
3009 }
3010 static 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. */
3027 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3028
3029 int test (int i, double x);
3030 struct s1 {int (*f) (int a);};
3031 struct s2 {int (*f) (double a);};
3032 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3033 int argc;
3034 char **argv;
3035 int
3036 main ()
3037 {
3038 return 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__
3050 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3051 do
3052 CC="$ac_save_CC $ac_arg"
3053 rm -f conftest.$ac_objext
3054 if { (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
3076 break
3077 else
3078 echo "$as_me: failed program was:" >&5
3079 sed 's/^/| /' conftest.$ac_ext >&5
3080
3081 fi
3082 rm -f conftest.err conftest.$ac_objext
3083 done
3084 rm -f conftest.$ac_ext conftest.$ac_objext
3085 CC=$ac_save_CC
3086
3087 fi
3088
3089 case "x$ac_cv_prog_cc_stdc" in
3090 x|xno)
3091 echo "$as_me:$LINENO: result: none needed" >&5
3092 echo "${ECHO_T}none needed" >&6 ;;
3093 *)
3094 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3095 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3096 CC="$CC $ac_cv_prog_cc_stdc" ;;
3097 esac
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.
3103 cat >conftest.$ac_ext <<_ACEOF
3104 #ifndef __cplusplus
3105 choke me
3106 #endif
3107 _ACEOF
3108 rm -f conftest.$ac_objext
3109 if { (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);'
3137 do
3138 cat >conftest.$ac_ext <<_ACEOF
3139 /* confdefs.h. */
3140 _ACEOF
3141 cat confdefs.h >>conftest.$ac_ext
3142 cat >>conftest.$ac_ext <<_ACEOF
3143 /* end confdefs.h. */
3144 $ac_declaration
3145 #include <stdlib.h>
3146 int
3147 main ()
3148 {
3149 exit (42);
3150 ;
3151 return 0;
3152 }
3153 _ACEOF
3154 rm -f conftest.$ac_objext
3155 if { (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 :
3177 else
3178 echo "$as_me: failed program was:" >&5
3179 sed 's/^/| /' conftest.$ac_ext >&5
3180
3181 continue
3182 fi
3183 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3184 cat >conftest.$ac_ext <<_ACEOF
3185 /* confdefs.h. */
3186 _ACEOF
3187 cat confdefs.h >>conftest.$ac_ext
3188 cat >>conftest.$ac_ext <<_ACEOF
3189 /* end confdefs.h. */
3190 $ac_declaration
3191 int
3192 main ()
3193 {
3194 exit (42);
3195 ;
3196 return 0;
3197 }
3198 _ACEOF
3199 rm -f conftest.$ac_objext
3200 if { (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
3222 else
3223 echo "$as_me: failed program was:" >&5
3224 sed 's/^/| /' conftest.$ac_ext >&5
3225
3226 fi
3227 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3228 done
3229 rm -f conftest*
3230 if test -n "$ac_declaration"; then
3231 echo '#ifdef __cplusplus' >>confdefs.h
3232 echo $ac_declaration >>confdefs.h
3233 echo '#endif' >>confdefs.h
3234 fi
3235
3236 else
3237 echo "$as_me: failed program was:" >&5
3238 sed 's/^/| /' conftest.$ac_ext >&5
3239
3240 fi
3241 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3242 ac_ext=c
3243 ac_cpp='$CPP $CPPFLAGS'
3244 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3245 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3246 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3247 DEPDIR="${am__leading_dot}deps"
3248
3249 ac_config_commands="$ac_config_commands depfiles"
3250
3251
3252 am_make=${MAKE-make}
3253 cat > confinc << 'END'
3254 am__doit:
3255 @echo done
3256 .PHONY: am__doit
3257 END
3258 # If we don't find an include directive, just comment out the code.
3259 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3260 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3261 am__include="#"
3262 am__quote=
3263 _am_result=none
3264 # First try GNU make style include.
3265 echo "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'.
3271 if 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
3275 fi
3276 # Now try BSD make style include.
3277 if 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
3284 fi
3285
3286
3287 echo "$as_me:$LINENO: result: $_am_result" >&5
3288 echo "${ECHO_T}$_am_result" >&6
3289 rm -f confinc confmf
3290
3291 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3292 if test "${enable_dependency_tracking+set}" = set; then
3293 enableval="$enable_dependency_tracking"
3294
3295 fi;
3296 if test "x$enable_dependency_tracking" != xno; then
3297 am_depcomp="$ac_aux_dir/depcomp"
3298 AMDEPBACKSLASH='\'
3299 fi
3300
3301
3302 if test "x$enable_dependency_tracking" != xno; then
3303 AMDEP_TRUE=
3304 AMDEP_FALSE='#'
3305 else
3306 AMDEP_TRUE='#'
3307 AMDEP_FALSE=
3308 fi
3309
3310
3311
3312
3313 depcc="$CC" am_compiler_list=
3314
3315 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3316 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3317 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3318 echo $ECHO_N "(cached) $ECHO_C" >&6
3319 else
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
3400 else
3401 am_cv_CC_dependencies_compiler_type=none
3402 fi
3403
3404 fi
3405 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3406 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3407 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3408
3409
3410
3411 if
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='#'
3416 else
3417 am__fastdepCC_TRUE='#'
3418 am__fastdepCC_FALSE=
3419 fi
3420
3421
3422 # Check whether --enable-shared or --disable-shared was given.
3423 if 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
3442 else
3443 enable_shared=yes
3444 fi;
3445
3446 # Check whether --enable-static or --disable-static was given.
3447 if 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
3466 else
3467 enable_static=yes
3468 fi;
3469
3470 # Check whether --enable-fast-install or --disable-fast-install was given.
3471 if 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
3490 else
3491 enable_fast_install=yes
3492 fi;
3493
3494 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3495 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3496 if test "${lt_cv_path_SED+set}" = set; then
3497 echo $ECHO_N "(cached) $ECHO_C" >&6
3498 else
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.
3501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3502 for as_dir in $PATH
3503 do
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
3513 done
3514 IFS=$as_save_IFS
3515 lt_ac_max=0
3516 lt_ac_count=0
3517 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3518 # along with /bin/sed that truncates output.
3519 for 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
3544 done
3545
3546 fi
3547
3548 SED=$lt_cv_path_SED
3549
3550 echo "$as_me:$LINENO: result: $SED" >&5
3551 echo "${ECHO_T}$SED" >&6
3552
3553 echo "$as_me:$LINENO: checking for egrep" >&5
3554 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3555 if test "${ac_cv_prog_egrep+set}" = set; then
3556 echo $ECHO_N "(cached) $ECHO_C" >&6
3557 else
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
3562 fi
3563 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3564 echo "${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.
3570 if test "${with_gnu_ld+set}" = set; then
3571 withval="$with_gnu_ld"
3572 test "$withval" = no || with_gnu_ld=yes
3573 else
3574 with_gnu_ld=no
3575 fi;
3576 ac_prog=ld
3577 if 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
3580 echo $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
3608 elif test "$with_gnu_ld" = yes; then
3609 echo "$as_me:$LINENO: checking for GNU ld" >&5
3610 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3611 else
3612 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3613 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3614 fi
3615 if test "${lt_cv_path_LD+set}" = set; then
3616 echo $ECHO_N "(cached) $ECHO_C" >&6
3617 else
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"
3639 else
3640 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3641 fi
3642 fi
3643
3644 LD="$lt_cv_path_LD"
3645 if test -n "$LD"; then
3646 echo "$as_me:$LINENO: result: $LD" >&5
3647 echo "${ECHO_T}$LD" >&6
3648 else
3649 echo "$as_me:$LINENO: result: no" >&5
3650 echo "${ECHO_T}no" >&6
3651 fi
3652 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3653 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3654 { (exit 1); exit 1; }; }
3655 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3656 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3657 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3658 echo $ECHO_N "(cached) $ECHO_C" >&6
3659 else
3660 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3661 case `$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 ;;
3668 esac
3669 fi
3670 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3671 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3672 with_gnu_ld=$lt_cv_prog_gnu_ld
3673
3674
3675 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3676 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3677 if test "${lt_cv_ld_reload_flag+set}" = set; then
3678 echo $ECHO_N "(cached) $ECHO_C" >&6
3679 else
3680 lt_cv_ld_reload_flag='-r'
3681 fi
3682 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3683 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3684 reload_flag=$lt_cv_ld_reload_flag
3685 case $reload_flag in
3686 "" | " "*) ;;
3687 *) reload_flag=" $reload_flag" ;;
3688 esac
3689 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3690 case $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 ;;
3698 esac
3699
3700 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3701 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3702 if test "${lt_cv_path_NM+set}" = set; then
3703 echo $ECHO_N "(cached) $ECHO_C" >&6
3704 else
3705 if test -n "$NM"; then
3706 # Let the user override the test.
3707 lt_cv_path_NM="$NM"
3708 else
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
3747 fi
3748 fi
3749 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3750 echo "${ECHO_T}$lt_cv_path_NM" >&6
3751 NM="$lt_cv_path_NM"
3752
3753 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3754 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3755 LN_S=$as_ln_s
3756 if test "$LN_S" = "ln -s"; then
3757 echo "$as_me:$LINENO: result: yes" >&5
3758 echo "${ECHO_T}yes" >&6
3759 else
3760 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3761 echo "${ECHO_T}no, using $LN_S" >&6
3762 fi
3763
3764 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3765 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3766 if test "${lt_cv_deplibs_check_method+set}" = set; then
3767 echo $ECHO_N "(cached) $ECHO_C" >&6
3768 else
3769 lt_cv_file_magic_cmd='$MAGIC_CMD'
3770 lt_cv_file_magic_test_file=
3771 lt_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
3783 case $host_os in
3784 aix4* | aix5*)
3785 lt_cv_deplibs_check_method=pass_all
3786 ;;
3787
3788 beos*)
3789 lt_cv_deplibs_check_method=pass_all
3790 ;;
3791
3792 bsdi[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
3798 cygwin*)
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
3804 mingw* | 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
3811 darwin* | rhapsody*)
3812 lt_cv_deplibs_check_method=pass_all
3813 ;;
3814
3815 freebsd* | 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
3831 gnu*)
3832 lt_cv_deplibs_check_method=pass_all
3833 ;;
3834
3835 hpux10.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
3853 interix3*)
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
3858 irix5* | 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.
3869 linux*)
3870 lt_cv_deplibs_check_method=pass_all
3871 ;;
3872
3873 netbsd*)
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
3881 newos6*)
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
3887 nto-qnx*)
3888 lt_cv_deplibs_check_method=unknown
3889 ;;
3890
3891 openbsd*)
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
3899 osf3* | osf4* | osf5*)
3900 lt_cv_deplibs_check_method=pass_all
3901 ;;
3902
3903 solaris*)
3904 lt_cv_deplibs_check_method=pass_all
3905 ;;
3906
3907 sysv4 | 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
3934 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3935 lt_cv_deplibs_check_method=pass_all
3936 ;;
3937 esac
3938
3939 fi
3940 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3941 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3942 file_magic_cmd=$lt_cv_file_magic_cmd
3943 deplibs_check_method=$lt_cv_deplibs_check_method
3944 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3945
3946
3947
3948
3949 # If no C compiler was specified, use CC.
3950 LTCC=${LTCC-"$CC"}
3951
3952 # If no C compiler flags were specified, use CFLAGS.
3953 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
3954
3955 # Allow CC to be a program name with arguments.
3956 compiler=$CC
3957
3958
3959 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3960 if test "${enable_libtool_lock+set}" = set; then
3961 enableval="$enable_libtool_lock"
3962
3963 fi;
3964 test "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.
3968 case $host in
3969 ia64-*-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.
3990 echo '#line 3990 "configure"' > conftest.$ac_ext
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
4025 x86_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
4076 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4077 if test "${lt_cv_cc_needs_belf+set}" = set; then
4078 echo $ECHO_N "(cached) $ECHO_C" >&6
4079 else
4080 ac_ext=c
4081 ac_cpp='$CPP $CPPFLAGS'
4082 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4083 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4084 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4085
4086 cat >conftest.$ac_ext <<_ACEOF
4087 /* confdefs.h. */
4088 _ACEOF
4089 cat confdefs.h >>conftest.$ac_ext
4090 cat >>conftest.$ac_ext <<_ACEOF
4091 /* end confdefs.h. */
4092
4093 int
4094 main ()
4095 {
4096
4097 ;
4098 return 0;
4099 }
4100 _ACEOF
4101 rm -f conftest.$ac_objext conftest$ac_exeext
4102 if { (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
4124 else
4125 echo "$as_me: failed program was:" >&5
4126 sed 's/^/| /' conftest.$ac_ext >&5
4127
4128 lt_cv_cc_needs_belf=no
4129 fi
4130 rm -f conftest.err conftest.$ac_objext \
4131 conftest$ac_exeext conftest.$ac_ext
4132 ac_ext=c
4133 ac_cpp='$CPP $CPPFLAGS'
4134 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4135 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4136 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4137
4138 fi
4139 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4140 echo "${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 ;;
4146 sparc*-*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
4167 esac
4168
4169 need_locks="$enable_libtool_lock"
4170
4171
4172 ac_ext=c
4173 ac_cpp='$CPP $CPPFLAGS'
4174 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4175 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4176 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4177 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4178 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4179 # On Suns, sometimes $CPP names a directory.
4180 if test -n "$CPP" && test -d "$CPP"; then
4181 CPP=
4182 fi
4183 if test -z "$CPP"; then
4184 if test "${ac_cv_prog_CPP+set}" = set; then
4185 echo $ECHO_N "(cached) $ECHO_C" >&6
4186 else
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
4191 for ac_c_preproc_warn_flag in '' yes
4192 do
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
4202 cat confdefs.h >>conftest.$ac_ext
4203 cat >>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
4212 if { (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
4226 else
4227 ac_cpp_err=yes
4228 fi
4229 if test -z "$ac_cpp_err"; then
4230 :
4231 else
4232 echo "$as_me: failed program was:" >&5
4233 sed 's/^/| /' conftest.$ac_ext >&5
4234
4235 # Broken: fails on valid input.
4236 continue
4237 fi
4238 rm -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
4245 cat confdefs.h >>conftest.$ac_ext
4246 cat >>conftest.$ac_ext <<_ACEOF
4247 /* end confdefs.h. */
4248 #include <ac_nonexistent.h>
4249 _ACEOF
4250 if { (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
4264 else
4265 ac_cpp_err=yes
4266 fi
4267 if test -z "$ac_cpp_err"; then
4268 # Broken: success on invalid input.
4269 continue
4270 else
4271 echo "$as_me: failed program was:" >&5
4272 sed 's/^/| /' conftest.$ac_ext >&5
4273
4274 # Passes both tests.
4275 ac_preproc_ok=:
4276 break
4277 fi
4278 rm -f conftest.err conftest.$ac_ext
4279
4280 done
4281 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4282 rm -f conftest.err conftest.$ac_ext
4283 if $ac_preproc_ok; then
4284 break
4285 fi
4286
4287 done
4288 ac_cv_prog_CPP=$CPP
4289
4290 fi
4291 CPP=$ac_cv_prog_CPP
4292 else
4293 ac_cv_prog_CPP=$CPP
4294 fi
4295 echo "$as_me:$LINENO: result: $CPP" >&5
4296 echo "${ECHO_T}$CPP" >&6
4297 ac_preproc_ok=false
4298 for ac_c_preproc_warn_flag in '' yes
4299 do
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
4309 cat confdefs.h >>conftest.$ac_ext
4310 cat >>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
4319 if { (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
4333 else
4334 ac_cpp_err=yes
4335 fi
4336 if test -z "$ac_cpp_err"; then
4337 :
4338 else
4339 echo "$as_me: failed program was:" >&5
4340 sed 's/^/| /' conftest.$ac_ext >&5
4341
4342 # Broken: fails on valid input.
4343 continue
4344 fi
4345 rm -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
4352 cat confdefs.h >>conftest.$ac_ext
4353 cat >>conftest.$ac_ext <<_ACEOF
4354 /* end confdefs.h. */
4355 #include <ac_nonexistent.h>
4356 _ACEOF
4357 if { (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
4371 else
4372 ac_cpp_err=yes
4373 fi
4374 if test -z "$ac_cpp_err"; then
4375 # Broken: success on invalid input.
4376 continue
4377 else
4378 echo "$as_me: failed program was:" >&5
4379 sed 's/^/| /' conftest.$ac_ext >&5
4380
4381 # Passes both tests.
4382 ac_preproc_ok=:
4383 break
4384 fi
4385 rm -f conftest.err conftest.$ac_ext
4386
4387 done
4388 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4389 rm -f conftest.err conftest.$ac_ext
4390 if $ac_preproc_ok; then
4391 :
4392 else
4393 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4394 See \`config.log' for more details." >&5
4395 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4396 See \`config.log' for more details." >&2;}
4397 { (exit 1); exit 1; }; }
4398 fi
4399
4400 ac_ext=c
4401 ac_cpp='$CPP $CPPFLAGS'
4402 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4403 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4404 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4405
4406
4407 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4408 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4409 if test "${ac_cv_header_stdc+set}" = set; then
4410 echo $ECHO_N "(cached) $ECHO_C" >&6
4411 else
4412 cat >conftest.$ac_ext <<_ACEOF
4413 /* confdefs.h. */
4414 _ACEOF
4415 cat confdefs.h >>conftest.$ac_ext
4416 cat >>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
4423 int
4424 main ()
4425 {
4426
4427 ;
4428 return 0;
4429 }
4430 _ACEOF
4431 rm -f conftest.$ac_objext
4432 if { (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
4454 else
4455 echo "$as_me: failed program was:" >&5
4456 sed 's/^/| /' conftest.$ac_ext >&5
4457
4458 ac_cv_header_stdc=no
4459 fi
4460 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4461
4462 if 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
4467 cat confdefs.h >>conftest.$ac_ext
4468 cat >>conftest.$ac_ext <<_ACEOF
4469 /* end confdefs.h. */
4470 #include <string.h>
4471
4472 _ACEOF
4473 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4474 $EGREP "memchr" >/dev/null 2>&1; then
4475 :
4476 else
4477 ac_cv_header_stdc=no
4478 fi
4479 rm -f conftest*
4480
4481 fi
4482
4483 if 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
4488 cat confdefs.h >>conftest.$ac_ext
4489 cat >>conftest.$ac_ext <<_ACEOF
4490 /* end confdefs.h. */
4491 #include <stdlib.h>
4492
4493 _ACEOF
4494 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4495 $EGREP "free" >/dev/null 2>&1; then
4496 :
4497 else
4498 ac_cv_header_stdc=no
4499 fi
4500 rm -f conftest*
4501
4502 fi
4503
4504 if 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 :
4508 else
4509 cat >conftest.$ac_ext <<_ACEOF
4510 /* confdefs.h. */
4511 _ACEOF
4512 cat confdefs.h >>conftest.$ac_ext
4513 cat >>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)))
4528 int
4529 main ()
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
4539 rm -f conftest$ac_exeext
4540 if { (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 :
4551 else
4552 echo "$as_me: program exited with status $ac_status" >&5
4553 echo "$as_me: failed program was:" >&5
4554 sed 's/^/| /' conftest.$ac_ext >&5
4555
4556 ( exit $ac_status )
4557 ac_cv_header_stdc=no
4558 fi
4559 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4560 fi
4561 fi
4562 fi
4563 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4564 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4565 if test $ac_cv_header_stdc = yes; then
4566
4567 cat >>confdefs.h <<\_ACEOF
4568 #define STDC_HEADERS 1
4569 _ACEOF
4570
4571 fi
4572
4573 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4584 inttypes.h stdint.h unistd.h
4585 do
4586 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4587 echo "$as_me:$LINENO: checking for $ac_header" >&5
4588 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4589 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4590 echo $ECHO_N "(cached) $ECHO_C" >&6
4591 else
4592 cat >conftest.$ac_ext <<_ACEOF
4593 /* confdefs.h. */
4594 _ACEOF
4595 cat confdefs.h >>conftest.$ac_ext
4596 cat >>conftest.$ac_ext <<_ACEOF
4597 /* end confdefs.h. */
4598 $ac_includes_default
4599
4600 #include <$ac_header>
4601 _ACEOF
4602 rm -f conftest.$ac_objext
4603 if { (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"
4625 else
4626 echo "$as_me: failed program was:" >&5
4627 sed 's/^/| /' conftest.$ac_ext >&5
4628
4629 eval "$as_ac_Header=no"
4630 fi
4631 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4632 fi
4633 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4634 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4635 if 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
4640 fi
4641
4642 done
4643
4644
4645
4646 for ac_header in dlfcn.h
4647 do
4648 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4649 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4650 echo "$as_me:$LINENO: checking for $ac_header" >&5
4651 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4652 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4653 echo $ECHO_N "(cached) $ECHO_C" >&6
4654 fi
4655 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4656 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4657 else
4658 # Is the header compilable?
4659 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4660 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4661 cat >conftest.$ac_ext <<_ACEOF
4662 /* confdefs.h. */
4663 _ACEOF
4664 cat confdefs.h >>conftest.$ac_ext
4665 cat >>conftest.$ac_ext <<_ACEOF
4666 /* end confdefs.h. */
4667 $ac_includes_default
4668 #include <$ac_header>
4669 _ACEOF
4670 rm -f conftest.$ac_objext
4671 if { (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
4693 else
4694 echo "$as_me: failed program was:" >&5
4695 sed 's/^/| /' conftest.$ac_ext >&5
4696
4697 ac_header_compiler=no
4698 fi
4699 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4700 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4701 echo "${ECHO_T}$ac_header_compiler" >&6
4702
4703 # Is the header present?
4704 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4705 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4706 cat >conftest.$ac_ext <<_ACEOF
4707 /* confdefs.h. */
4708 _ACEOF
4709 cat confdefs.h >>conftest.$ac_ext
4710 cat >>conftest.$ac_ext <<_ACEOF
4711 /* end confdefs.h. */
4712 #include <$ac_header>
4713 _ACEOF
4714 if { (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
4728 else
4729 ac_cpp_err=yes
4730 fi
4731 if test -z "$ac_cpp_err"; then
4732 ac_header_preproc=yes
4733 else
4734 echo "$as_me: failed program was:" >&5
4735 sed 's/^/| /' conftest.$ac_ext >&5
4736
4737 ac_header_preproc=no
4738 fi
4739 rm -f conftest.err conftest.$ac_ext
4740 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4741 echo "${ECHO_T}$ac_header_preproc" >&6
4742
4743 # So? What about this header?
4744 case $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
4747 echo "$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
4749 echo "$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
4754 echo "$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
4756 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4757 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4758 echo "$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
4760 echo "$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
4762 echo "$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
4764 echo "$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 ;;
4774 esac
4775 echo "$as_me:$LINENO: checking for $ac_header" >&5
4776 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4777 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4778 echo $ECHO_N "(cached) $ECHO_C" >&6
4779 else
4780 eval "$as_ac_Header=\$ac_header_preproc"
4781 fi
4782 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4783 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4784
4785 fi
4786 if 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
4791 fi
4792
4793 done
4794
4795 ac_ext=cc
4796 ac_cpp='$CXXCPP $CPPFLAGS'
4797 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4798 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4799 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4800 if 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.
4804 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4805 echo "$as_me:$LINENO: checking for $ac_word" >&5
4806 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4807 if test "${ac_cv_prog_CXX+set}" = set; then
4808 echo $ECHO_N "(cached) $ECHO_C" >&6
4809 else
4810 if test -n "$CXX"; then
4811 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4812 else
4813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4814 for as_dir in $PATH
4815 do
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
4824 done
4825 done
4826
4827 fi
4828 fi
4829 CXX=$ac_cv_prog_CXX
4830 if test -n "$CXX"; then
4831 echo "$as_me:$LINENO: result: $CXX" >&5
4832 echo "${ECHO_T}$CXX" >&6
4833 else
4834 echo "$as_me:$LINENO: result: no" >&5
4835 echo "${ECHO_T}no" >&6
4836 fi
4837
4838 test -n "$CXX" && break
4839 done
4840 fi
4841 if 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
4844 do
4845 # Extract the first word of "$ac_prog", so it can be a program name with args.
4846 set dummy $ac_prog; ac_word=$2
4847 echo "$as_me:$LINENO: checking for $ac_word" >&5
4848 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4849 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4850 echo $ECHO_N "(cached) $ECHO_C" >&6
4851 else
4852 if test -n "$ac_ct_CXX"; then
4853 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4854 else
4855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4856 for as_dir in $PATH
4857 do
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
4866 done
4867 done
4868
4869 fi
4870 fi
4871 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4872 if test -n "$ac_ct_CXX"; then
4873 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4874 echo "${ECHO_T}$ac_ct_CXX" >&6
4875 else
4876 echo "$as_me:$LINENO: result: no" >&5
4877 echo "${ECHO_T}no" >&6
4878 fi
4879
4880 test -n "$ac_ct_CXX" && break
4881 done
4882 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4883
4884 CXX=$ac_ct_CXX
4885 fi
4886
4887
4888 # Provide some information about the compiler.
4889 echo "$as_me:$LINENO:" \
4890 "checking for C++ compiler version" >&5
4891 ac_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
4908 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4909 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4910 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4911 echo $ECHO_N "(cached) $ECHO_C" >&6
4912 else
4913 cat >conftest.$ac_ext <<_ACEOF
4914 /* confdefs.h. */
4915 _ACEOF
4916 cat confdefs.h >>conftest.$ac_ext
4917 cat >>conftest.$ac_ext <<_ACEOF
4918 /* end confdefs.h. */
4919
4920 int
4921 main ()
4922 {
4923 #ifndef __GNUC__
4924 choke me
4925 #endif
4926
4927 ;
4928 return 0;
4929 }
4930 _ACEOF
4931 rm -f conftest.$ac_objext
4932 if { (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
4954 else
4955 echo "$as_me: failed program was:" >&5
4956 sed 's/^/| /' conftest.$ac_ext >&5
4957
4958 ac_compiler_gnu=no
4959 fi
4960 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4961 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4962
4963 fi
4964 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4965 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4966 GXX=`test $ac_compiler_gnu = yes && echo yes`
4967 ac_test_CXXFLAGS=${CXXFLAGS+set}
4968 ac_save_CXXFLAGS=$CXXFLAGS
4969 CXXFLAGS="-g"
4970 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4971 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4972 if test "${ac_cv_prog_cxx_g+set}" = set; then
4973 echo $ECHO_N "(cached) $ECHO_C" >&6
4974 else
4975 cat >conftest.$ac_ext <<_ACEOF
4976 /* confdefs.h. */
4977 _ACEOF
4978 cat confdefs.h >>conftest.$ac_ext
4979 cat >>conftest.$ac_ext <<_ACEOF
4980 /* end confdefs.h. */
4981
4982 int
4983 main ()
4984 {
4985
4986 ;
4987 return 0;
4988 }
4989 _ACEOF
4990 rm -f conftest.$ac_objext
4991 if { (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
5013 else
5014 echo "$as_me: failed program was:" >&5
5015 sed 's/^/| /' conftest.$ac_ext >&5
5016
5017 ac_cv_prog_cxx_g=no
5018 fi
5019 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5020 fi
5021 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5022 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
5023 if test "$ac_test_CXXFLAGS" = set; then
5024 CXXFLAGS=$ac_save_CXXFLAGS
5025 elif 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
5031 else
5032 if test "$GXX" = yes; then
5033 CXXFLAGS="-O2"
5034 else
5035 CXXFLAGS=
5036 fi
5037 fi
5038 for 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);'
5045 do
5046 cat >conftest.$ac_ext <<_ACEOF
5047 /* confdefs.h. */
5048 _ACEOF
5049 cat confdefs.h >>conftest.$ac_ext
5050 cat >>conftest.$ac_ext <<_ACEOF
5051 /* end confdefs.h. */
5052 $ac_declaration
5053 #include <stdlib.h>
5054 int
5055 main ()
5056 {
5057 exit (42);
5058 ;
5059 return 0;
5060 }
5061 _ACEOF
5062 rm -f conftest.$ac_objext
5063 if { (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 :
5085 else
5086 echo "$as_me: failed program was:" >&5
5087 sed 's/^/| /' conftest.$ac_ext >&5
5088
5089 continue
5090 fi
5091 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5092 cat >conftest.$ac_ext <<_ACEOF
5093 /* confdefs.h. */
5094 _ACEOF
5095 cat confdefs.h >>conftest.$ac_ext
5096 cat >>conftest.$ac_ext <<_ACEOF
5097 /* end confdefs.h. */
5098 $ac_declaration
5099 int
5100 main ()
5101 {
5102 exit (42);
5103 ;
5104 return 0;
5105 }
5106 _ACEOF
5107 rm -f conftest.$ac_objext
5108 if { (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
5130 else
5131 echo "$as_me: failed program was:" >&5
5132 sed 's/^/| /' conftest.$ac_ext >&5
5133
5134 fi
5135 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5136 done
5137 rm -f conftest*
5138 if test -n "$ac_declaration"; then
5139 echo '#ifdef __cplusplus' >>confdefs.h
5140 echo $ac_declaration >>confdefs.h
5141 echo '#endif' >>confdefs.h
5142 fi
5143
5144 ac_ext=cc
5145 ac_cpp='$CXXCPP $CPPFLAGS'
5146 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5147 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5148 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5149
5150 depcc="$CXX" am_compiler_list=
5151
5152 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5153 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5154 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5155 echo $ECHO_N "(cached) $ECHO_C" >&6
5156 else
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
5237 else
5238 am_cv_CXX_dependencies_compiler_type=none
5239 fi
5240
5241 fi
5242 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5243 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5244 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5245
5246
5247
5248 if
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='#'
5253 else
5254 am__fastdepCXX_TRUE='#'
5255 am__fastdepCXX_FALSE=
5256 fi
5257
5258
5259
5260
5261 if 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
5265 ac_cpp='$CXXCPP $CPPFLAGS'
5266 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5267 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5268 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5269 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5270 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5271 if test -z "$CXXCPP"; then
5272 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5273 echo $ECHO_N "(cached) $ECHO_C" >&6
5274 else
5275 # Double quotes because CXXCPP needs to be expanded
5276 for CXXCPP in "$CXX -E" "/lib/cpp"
5277 do
5278 ac_preproc_ok=false
5279 for ac_cxx_preproc_warn_flag in '' yes
5280 do
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
5290 cat confdefs.h >>conftest.$ac_ext
5291 cat >>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
5300 if { (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
5314 else
5315 ac_cpp_err=yes
5316 fi
5317 if test -z "$ac_cpp_err"; then
5318 :
5319 else
5320 echo "$as_me: failed program was:" >&5
5321 sed 's/^/| /' conftest.$ac_ext >&5
5322
5323 # Broken: fails on valid input.
5324 continue
5325 fi
5326 rm -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
5333 cat confdefs.h >>conftest.$ac_ext
5334 cat >>conftest.$ac_ext <<_ACEOF
5335 /* end confdefs.h. */
5336 #include <ac_nonexistent.h>
5337 _ACEOF
5338 if { (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
5352 else
5353 ac_cpp_err=yes
5354 fi
5355 if test -z "$ac_cpp_err"; then
5356 # Broken: success on invalid input.
5357 continue
5358 else
5359 echo "$as_me: failed program was:" >&5
5360 sed 's/^/| /' conftest.$ac_ext >&5
5361
5362 # Passes both tests.
5363 ac_preproc_ok=:
5364 break
5365 fi
5366 rm -f conftest.err conftest.$ac_ext
5367
5368 done
5369 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5370 rm -f conftest.err conftest.$ac_ext
5371 if $ac_preproc_ok; then
5372 break
5373 fi
5374
5375 done
5376 ac_cv_prog_CXXCPP=$CXXCPP
5377
5378 fi
5379 CXXCPP=$ac_cv_prog_CXXCPP
5380 else
5381 ac_cv_prog_CXXCPP=$CXXCPP
5382 fi
5383 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5384 echo "${ECHO_T}$CXXCPP" >&6
5385 ac_preproc_ok=false
5386 for ac_cxx_preproc_warn_flag in '' yes
5387 do
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
5397 cat confdefs.h >>conftest.$ac_ext
5398 cat >>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
5407 if { (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
5421 else
5422 ac_cpp_err=yes
5423 fi
5424 if test -z "$ac_cpp_err"; then
5425 :
5426 else
5427 echo "$as_me: failed program was:" >&5
5428 sed 's/^/| /' conftest.$ac_ext >&5
5429
5430 # Broken: fails on valid input.
5431 continue
5432 fi
5433 rm -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
5440 cat confdefs.h >>conftest.$ac_ext
5441 cat >>conftest.$ac_ext <<_ACEOF
5442 /* end confdefs.h. */
5443 #include <ac_nonexistent.h>
5444 _ACEOF
5445 if { (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
5459 else
5460 ac_cpp_err=yes
5461 fi
5462 if test -z "$ac_cpp_err"; then
5463 # Broken: success on invalid input.
5464 continue
5465 else
5466 echo "$as_me: failed program was:" >&5
5467 sed 's/^/| /' conftest.$ac_ext >&5
5468
5469 # Passes both tests.
5470 ac_preproc_ok=:
5471 break
5472 fi
5473 rm -f conftest.err conftest.$ac_ext
5474
5475 done
5476 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5477 rm -f conftest.err conftest.$ac_ext
5478 if $ac_preproc_ok; then
5479 :
5480 else
5481 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5482 See \`config.log' for more details." >&5
5483 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5484 See \`config.log' for more details." >&2;}
5485 { (exit 1); exit 1; }; }
5486 fi
5487
5488 ac_ext=cc
5489 ac_cpp='$CXXCPP $CPPFLAGS'
5490 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5491 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5492 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5493
5494 fi
5495
5496
5497 ac_ext=f
5498 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5499 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5500 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5501 if 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.
5505 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5506 echo "$as_me:$LINENO: checking for $ac_word" >&5
5507 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5508 if test "${ac_cv_prog_F77+set}" = set; then
5509 echo $ECHO_N "(cached) $ECHO_C" >&6
5510 else
5511 if test -n "$F77"; then
5512 ac_cv_prog_F77="$F77" # Let the user override the test.
5513 else
5514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5515 for as_dir in $PATH
5516 do
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
5525 done
5526 done
5527
5528 fi
5529 fi
5530 F77=$ac_cv_prog_F77
5531 if test -n "$F77"; then
5532 echo "$as_me:$LINENO: result: $F77" >&5
5533 echo "${ECHO_T}$F77" >&6
5534 else
5535 echo "$as_me:$LINENO: result: no" >&5
5536 echo "${ECHO_T}no" >&6
5537 fi
5538
5539 test -n "$F77" && break
5540 done
5541 fi
5542 if 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
5545 do
5546 # Extract the first word of "$ac_prog", so it can be a program name with args.
5547 set dummy $ac_prog; ac_word=$2
5548 echo "$as_me:$LINENO: checking for $ac_word" >&5
5549 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5550 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5551 echo $ECHO_N "(cached) $ECHO_C" >&6
5552 else
5553 if test -n "$ac_ct_F77"; then
5554 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5555 else
5556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5557 for as_dir in $PATH
5558 do
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
5567 done
5568 done
5569
5570 fi
5571 fi
5572 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5573 if test -n "$ac_ct_F77"; then
5574 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5575 echo "${ECHO_T}$ac_ct_F77" >&6
5576 else
5577 echo "$as_me:$LINENO: result: no" >&5
5578 echo "${ECHO_T}no" >&6
5579 fi
5580
5581 test -n "$ac_ct_F77" && break
5582 done
5583
5584 F77=$ac_ct_F77
5585 fi
5586
5587
5588 # Provide some information about the compiler.
5589 echo "$as_me:5589:" \
5590 "checking for Fortran 77 compiler version" >&5
5591 ac_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); }
5607 rm -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.)
5611 ac_save_ext=$ac_ext
5612 ac_ext=F
5613 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5614 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5615 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5616 echo $ECHO_N "(cached) $ECHO_C" >&6
5617 else
5618 cat >conftest.$ac_ext <<_ACEOF
5619 program main
5620 #ifndef __GNUC__
5621 choke me
5622 #endif
5623
5624 end
5625 _ACEOF
5626 rm -f conftest.$ac_objext
5627 if { (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
5649 else
5650 echo "$as_me: failed program was:" >&5
5651 sed 's/^/| /' conftest.$ac_ext >&5
5652
5653 ac_compiler_gnu=no
5654 fi
5655 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5656 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5657
5658 fi
5659 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5660 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5661 ac_ext=$ac_save_ext
5662 ac_test_FFLAGS=${FFLAGS+set}
5663 ac_save_FFLAGS=$FFLAGS
5664 FFLAGS=
5665 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5666 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5667 if test "${ac_cv_prog_f77_g+set}" = set; then
5668 echo $ECHO_N "(cached) $ECHO_C" >&6
5669 else
5670 FFLAGS=-g
5671 cat >conftest.$ac_ext <<_ACEOF
5672 program main
5673
5674 end
5675 _ACEOF
5676 rm -f conftest.$ac_objext
5677 if { (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
5699 else
5700 echo "$as_me: failed program was:" >&5
5701 sed 's/^/| /' conftest.$ac_ext >&5
5702
5703 ac_cv_prog_f77_g=no
5704 fi
5705 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5706
5707 fi
5708 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5709 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5710 if test "$ac_test_FFLAGS" = set; then
5711 FFLAGS=$ac_save_FFLAGS
5712 elif 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
5718 else
5719 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5720 FFLAGS="-O2"
5721 else
5722 FFLAGS=
5723 fi
5724 fi
5725
5726 G77=`test $ac_compiler_gnu = yes && echo yes`
5727 ac_ext=c
5728 ac_cpp='$CPP $CPPFLAGS'
5729 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5730 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5731 ac_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
5738 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5739 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5740 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5741 echo $ECHO_N "(cached) $ECHO_C" >&6
5742 else
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
5844 fi
5845
5846 if test -n $lt_cv_sys_max_cmd_len ; then
5847 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5848 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5849 else
5850 echo "$as_me:$LINENO: result: none" >&5
5851 echo "${ECHO_T}none" >&6
5852 fi
5853
5854
5855
5856
5857 # Check for command to grab the raw symbol name followed by C symbol from nm.
5858 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5859 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5860 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5861 echo $ECHO_N "(cached) $ECHO_C" >&6
5862 else
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.
5868 symcode='[BCDEGRST]'
5869
5870 # Regexp to match symbols that can be accessed directly from C.
5871 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5872
5873 # Transform an extracted symbol line into a proper C declaration
5874 lt_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
5877 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'"
5878
5879 # Define system-specific variables.
5880 case $host_os in
5881 aix*)
5882 symcode='[BCDT]'
5883 ;;
5884 cygwin* | mingw* | pw32*)
5885 symcode='[ABCDGISTW]'
5886 ;;
5887 hpux*) # 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 ;;
5894 linux*)
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 ;;
5901 irix* | nonstopux*)
5902 symcode='[BCDEGRST]'
5903 ;;
5904 osf*)
5905 symcode='[BCDEGQRST]'
5906 ;;
5907 solaris*)
5908 symcode='[BDRT]'
5909 ;;
5910 sco3.2v5*)
5911 symcode='[DT]'
5912 ;;
5913 sysv4.2uw2*)
5914 symcode='[DT]'
5915 ;;
5916 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5917 symcode='[ABDT]'
5918 ;;
5919 sysv4)
5920 symcode='[DFNSTU]'
5921 ;;
5922 esac
5923
5924 # Handle CRLF in mingw tool chain
5925 opt_cr=
5926 case $build_os in
5927 mingw*)
5928 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5929 ;;
5930 esac
5931
5932 # If we're using GNU nm, then use its standard symbol codes.
5933 case `$NM -V 2>&1` in
5934 *GNU* | *'with BFD'*)
5935 symcode='[ABCDGIRSTW]' ;;
5936 esac
5937
5938 # Try without a prefix undercore, then with it.
5939 for 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
5953 extern "C" {
5954 #endif
5955 char nm_test_var;
5956 void nm_test_func(){}
5957 #ifdef __cplusplus
5958 }
5959 #endif
5960 int main(){nm_test_var='a';nm_test_func();return(0);}
5961 EOF
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
5987 extern "C" {
5988 #endif
5989
5990 EOF
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. */
6003 const struct {
6004 const char *name;
6005 lt_ptr_t address;
6006 }
6007 lt_preloaded_symbols[] =
6008 {
6009 EOF
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
6018 EOF
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
6055 done
6056
6057 fi
6058
6059 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6060 lt_cv_sys_global_symbol_to_cdecl=
6061 fi
6062 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6063 echo "$as_me:$LINENO: result: failed" >&5
6064 echo "${ECHO_T}failed" >&6
6065 else
6066 echo "$as_me:$LINENO: result: ok" >&5
6067 echo "${ECHO_T}ok" >&6
6068 fi
6069
6070 echo "$as_me:$LINENO: checking for objdir" >&5
6071 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6072 if test "${lt_cv_objdir+set}" = set; then
6073 echo $ECHO_N "(cached) $ECHO_C" >&6
6074 else
6075 rm -f .libs 2>/dev/null
6076 mkdir .libs 2>/dev/null
6077 if test -d .libs; then
6078 lt_cv_objdir=.libs
6079 else
6080 # MS-DOS does not allow filenames that begin with a dot.
6081 lt_cv_objdir=_libs
6082 fi
6083 rmdir .libs 2>/dev/null
6084 fi
6085 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6086 echo "${ECHO_T}$lt_cv_objdir" >&6
6087 objdir=$lt_cv_objdir
6088
6089
6090
6091
6092
6093 case $host_os in
6094 aix3*)
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 ;;
6103 esac
6104
6105 # Sed substitution that helps us do robust quoting. It backslashifies
6106 # metacharacters that are still active within double-quoted strings.
6107 Xsed='sed -e 1s/^X//'
6108 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6109
6110 # Same as above, but do not quote variable references.
6111 double_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.
6115 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6116
6117 # Sed substitution to avoid accidental globbing in evaled expressions
6118 no_glob_subst='s/\*/\\\*/g'
6119
6120 # Constants:
6121 rm="rm -f"
6122
6123 # Global variables:
6124 default_ofile=libtool
6125 can_build_shared=yes
6126
6127 # All known linkers require a `.a' archive for static linking (except MSVC,
6128 # which needs '.lib').
6129 libext=a
6130 ltmain="$ac_aux_dir/ltmain.sh"
6131 ofile="$default_ofile"
6132 with_gnu_ld="$lt_cv_prog_gnu_ld"
6133
6134 if 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.
6136 set dummy ${ac_tool_prefix}ar; ac_word=$2
6137 echo "$as_me:$LINENO: checking for $ac_word" >&5
6138 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6139 if test "${ac_cv_prog_AR+set}" = set; then
6140 echo $ECHO_N "(cached) $ECHO_C" >&6
6141 else
6142 if test -n "$AR"; then
6143 ac_cv_prog_AR="$AR" # Let the user override the test.
6144 else
6145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6146 for as_dir in $PATH
6147 do
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
6156 done
6157 done
6158
6159 fi
6160 fi
6161 AR=$ac_cv_prog_AR
6162 if test -n "$AR"; then
6163 echo "$as_me:$LINENO: result: $AR" >&5
6164 echo "${ECHO_T}$AR" >&6
6165 else
6166 echo "$as_me:$LINENO: result: no" >&5
6167 echo "${ECHO_T}no" >&6
6168 fi
6169
6170 fi
6171 if 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.
6174 set dummy ar; ac_word=$2
6175 echo "$as_me:$LINENO: checking for $ac_word" >&5
6176 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6177 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6178 echo $ECHO_N "(cached) $ECHO_C" >&6
6179 else
6180 if test -n "$ac_ct_AR"; then
6181 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6182 else
6183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6184 for as_dir in $PATH
6185 do
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
6194 done
6195 done
6196
6197 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6198 fi
6199 fi
6200 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6201 if test -n "$ac_ct_AR"; then
6202 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6203 echo "${ECHO_T}$ac_ct_AR" >&6
6204 else
6205 echo "$as_me:$LINENO: result: no" >&5
6206 echo "${ECHO_T}no" >&6
6207 fi
6208
6209 AR=$ac_ct_AR
6210 else
6211 AR="$ac_cv_prog_AR"
6212 fi
6213
6214 if 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.
6216 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6217 echo "$as_me:$LINENO: checking for $ac_word" >&5
6218 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6219 if test "${ac_cv_prog_RANLIB+set}" = set; then
6220 echo $ECHO_N "(cached) $ECHO_C" >&6
6221 else
6222 if test -n "$RANLIB"; then
6223 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6224 else
6225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6226 for as_dir in $PATH
6227 do
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
6236 done
6237 done
6238
6239 fi
6240 fi
6241 RANLIB=$ac_cv_prog_RANLIB
6242 if test -n "$RANLIB"; then
6243 echo "$as_me:$LINENO: result: $RANLIB" >&5
6244 echo "${ECHO_T}$RANLIB" >&6
6245 else
6246 echo "$as_me:$LINENO: result: no" >&5
6247 echo "${ECHO_T}no" >&6
6248 fi
6249
6250 fi
6251 if 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.
6254 set dummy ranlib; ac_word=$2
6255 echo "$as_me:$LINENO: checking for $ac_word" >&5
6256 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6257 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6258 echo $ECHO_N "(cached) $ECHO_C" >&6
6259 else
6260 if test -n "$ac_ct_RANLIB"; then
6261 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6262 else
6263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6264 for as_dir in $PATH
6265 do
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
6274 done
6275 done
6276
6277 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6278 fi
6279 fi
6280 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6281 if test -n "$ac_ct_RANLIB"; then
6282 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6283 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6284 else
6285 echo "$as_me:$LINENO: result: no" >&5
6286 echo "${ECHO_T}no" >&6
6287 fi
6288
6289 RANLIB=$ac_ct_RANLIB
6290 else
6291 RANLIB="$ac_cv_prog_RANLIB"
6292 fi
6293
6294 if 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.
6296 set dummy ${ac_tool_prefix}strip; ac_word=$2
6297 echo "$as_me:$LINENO: checking for $ac_word" >&5
6298 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6299 if test "${ac_cv_prog_STRIP+set}" = set; then
6300 echo $ECHO_N "(cached) $ECHO_C" >&6
6301 else
6302 if test -n "$STRIP"; then
6303 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6304 else
6305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6306 for as_dir in $PATH
6307 do
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
6316 done
6317 done
6318
6319 fi
6320 fi
6321 STRIP=$ac_cv_prog_STRIP
6322 if test -n "$STRIP"; then
6323 echo "$as_me:$LINENO: result: $STRIP" >&5
6324 echo "${ECHO_T}$STRIP" >&6
6325 else
6326 echo "$as_me:$LINENO: result: no" >&5
6327 echo "${ECHO_T}no" >&6
6328 fi
6329
6330 fi
6331 if 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.
6334 set dummy strip; ac_word=$2
6335 echo "$as_me:$LINENO: checking for $ac_word" >&5
6336 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6337 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6338 echo $ECHO_N "(cached) $ECHO_C" >&6
6339 else
6340 if test -n "$ac_ct_STRIP"; then
6341 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6342 else
6343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6344 for as_dir in $PATH
6345 do
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
6354 done
6355 done
6356
6357 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6358 fi
6359 fi
6360 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6361 if test -n "$ac_ct_STRIP"; then
6362 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6363 echo "${ECHO_T}$ac_ct_STRIP" >&6
6364 else
6365 echo "$as_me:$LINENO: result: no" >&5
6366 echo "${ECHO_T}no" >&6
6367 fi
6368
6369 STRIP=$ac_ct_STRIP
6370 else
6371 STRIP="$ac_cv_prog_STRIP"
6372 fi
6373
6374
6375 old_CC="$CC"
6376 old_CFLAGS="$CFLAGS"
6377
6378 # Set sane defaults for various variables
6379 test -z "$AR" && AR=ar
6380 test -z "$AR_FLAGS" && AR_FLAGS=cru
6381 test -z "$AS" && AS=as
6382 test -z "$CC" && CC=cc
6383 test -z "$LTCC" && LTCC=$CC
6384 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6385 test -z "$DLLTOOL" && DLLTOOL=dlltool
6386 test -z "$LD" && LD=ld
6387 test -z "$LN_S" && LN_S="ln -s"
6388 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6389 test -z "$NM" && NM=nm
6390 test -z "$SED" && SED=sed
6391 test -z "$OBJDUMP" && OBJDUMP=objdump
6392 test -z "$RANLIB" && RANLIB=:
6393 test -z "$STRIP" && STRIP=:
6394 test -z "$ac_objext" && ac_objext=o
6395
6396 # Determine commands to create old-style static archives.
6397 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6398 old_postinstall_cmds='chmod 644 $oldlib'
6399 old_postuninstall_cmds=
6400
6401 if 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"
6411 fi
6412
6413 for 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
6420 done
6421 cc_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
6425 case $deplibs_check_method in
6426 file_magic*)
6427 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6428 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6429 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6430 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6431 echo $ECHO_N "(cached) $ECHO_C" >&6
6432 else
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
6466 EOF
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 ;;
6476 esac
6477 fi
6478
6479 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6480 if test -n "$MAGIC_CMD"; then
6481 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6482 echo "${ECHO_T}$MAGIC_CMD" >&6
6483 else
6484 echo "$as_me:$LINENO: result: no" >&5
6485 echo "${ECHO_T}no" >&6
6486 fi
6487
6488 if 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
6491 echo $ECHO_N "checking for file... $ECHO_C" >&6
6492 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6493 echo $ECHO_N "(cached) $ECHO_C" >&6
6494 else
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
6528 EOF
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 ;;
6538 esac
6539 fi
6540
6541 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6542 if test -n "$MAGIC_CMD"; then
6543 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6544 echo "${ECHO_T}$MAGIC_CMD" >&6
6545 else
6546 echo "$as_me:$LINENO: result: no" >&5
6547 echo "${ECHO_T}no" >&6
6548 fi
6549
6550 else
6551 MAGIC_CMD=:
6552 fi
6553 fi
6554
6555 fi
6556 ;;
6557 esac
6558
6559 enable_dlopen=no
6560 enable_win32_dll=no
6561
6562 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6563 if test "${enable_libtool_lock+set}" = set; then
6564 enableval="$enable_libtool_lock"
6565
6566 fi;
6567 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6568
6569
6570 # Check whether --with-pic or --without-pic was given.
6571 if test "${with_pic+set}" = set; then
6572 withval="$with_pic"
6573 pic_mode="$withval"
6574 else
6575 pic_mode=default
6576 fi;
6577 test -z "$pic_mode" && pic_mode=default
6578
6579 # Use C for the default configuration in the libtool script
6580 tagname=
6581 lt_save_CC="$CC"
6582 ac_ext=c
6583 ac_cpp='$CPP $CPPFLAGS'
6584 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6585 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6586 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6587
6588
6589 # Source file extension for C test sources.
6590 ac_ext=c
6591
6592 # Object file extension for compiled C test sources.
6593 objext=o
6594 objext=$objext
6595
6596 # Code to be used in simple compile tests
6597 lt_simple_compile_test_code="int some_variable = 0;\n"
6598
6599 # Code to be used in simple link tests
6600 lt_simple_link_test_code='int main(){return(0);}\n'
6601
6602
6603 # If no C compiler was specified, use CC.
6604 LTCC=${LTCC-"$CC"}
6605
6606 # If no C compiler flags were specified, use CFLAGS.
6607 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6608
6609 # Allow CC to be a program name with arguments.
6610 compiler=$CC
6611
6612
6613 # save warnings/boilerplate of simple test code
6614 ac_outfile=conftest.$ac_objext
6615 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6616 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6617 _lt_compiler_boilerplate=`cat conftest.err`
6618 $rm conftest*
6619
6620 ac_outfile=conftest.$ac_objext
6621 printf "$lt_simple_link_test_code" >conftest.$ac_ext
6622 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6623 _lt_linker_boilerplate=`cat conftest.err`
6624 $rm conftest*
6625
6626
6627
6628 lt_prog_compiler_no_builtin_flag=
6629
6630 if test "$GCC" = yes; then
6631 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6632
6633
6634 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6635 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6636 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6637 echo $ECHO_N "(cached) $ECHO_C" >&6
6638 else
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:'`
6652 (eval echo "\"\$as_me:6652: $lt_compile\"" >&5)
6653 (eval "$lt_compile" 2>conftest.err)
6654 ac_status=$?
6655 cat conftest.err >&5
6656 echo "$as_me:6656: \$? = $ac_status" >&5
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
6668 fi
6669 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6670 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6671
6672 if 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"
6674 else
6675 :
6676 fi
6677
6678 fi
6679
6680 lt_prog_compiler_wl=
6681 lt_prog_compiler_pic=
6682 lt_prog_compiler_static=
6683
6684 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6685 echo $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
6894 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6895 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6896
6897 #
6898 # Check to make sure the PIC flag actually works.
6899 #
6900 if test -n "$lt_prog_compiler_pic"; then
6901
6902 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6903 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6904 if test "${lt_prog_compiler_pic_works+set}" = set; then
6905 echo $ECHO_N "(cached) $ECHO_C" >&6
6906 else
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:'`
6920 (eval echo "\"\$as_me:6920: $lt_compile\"" >&5)
6921 (eval "$lt_compile" 2>conftest.err)
6922 ac_status=$?
6923 cat conftest.err >&5
6924 echo "$as_me:6924: \$? = $ac_status" >&5
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
6936 fi
6937 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6938 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6939
6940 if 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
6945 else
6946 lt_prog_compiler_pic=
6947 lt_prog_compiler_can_build_shared=no
6948 fi
6949
6950 fi
6951 case $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 ;;
6959 esac
6960
6961 #
6962 # Check to make sure the static flag actually works.
6963 #
6964 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6965 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6966 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6967 if test "${lt_prog_compiler_static_works+set}" = set; then
6968 echo $ECHO_N "(cached) $ECHO_C" >&6
6969 else
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
6992 fi
6993 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6994 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6995
6996 if test x"$lt_prog_compiler_static_works" = xyes; then
6997 :
6998 else
6999 lt_prog_compiler_static=
7000 fi
7001
7002
7003 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7004 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7005 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7006 echo $ECHO_N "(cached) $ECHO_C" >&6
7007 else
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:'`
7024 (eval echo "\"\$as_me:7024: $lt_compile\"" >&5)
7025 (eval "$lt_compile" 2>out/conftest.err)
7026 ac_status=$?
7027 cat out/conftest.err >&5
7028 echo "$as_me:7028: \$? = $ac_status" >&5
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
7049 fi
7050 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7051 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7052
7053
7054 hard_links="nottested"
7055 if 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
7058 echo $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
7066 echo "${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
7069 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7070 need_locks=warn
7071 fi
7072 else
7073 need_locks=no
7074 fi
7075
7076 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7077 echo $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
7123 done
7124 cc_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
7184 EOF
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
7306 EOF
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
7479 cat confdefs.h >>conftest.$ac_ext
7480 cat >>conftest.$ac_ext <<_ACEOF
7481 /* end confdefs.h. */
7482
7483 int
7484 main ()
7485 {
7486
7487 ;
7488 return 0;
7489 }
7490 _ACEOF
7491 rm -f conftest.$ac_objext conftest$ac_exeext
7492 if { (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
7514 aix_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.
7517 if 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
7519 else
7520 echo "$as_me: failed program was:" >&5
7521 sed 's/^/| /' conftest.$ac_ext >&5
7522
7523 fi
7524 rm -f conftest.err conftest.$ac_objext \
7525 conftest$ac_exeext conftest.$ac_ext
7526 if 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
7540 cat confdefs.h >>conftest.$ac_ext
7541 cat >>conftest.$ac_ext <<_ACEOF
7542 /* end confdefs.h. */
7543
7544 int
7545 main ()
7546 {
7547
7548 ;
7549 return 0;
7550 }
7551 _ACEOF
7552 rm -f conftest.$ac_objext conftest$ac_exeext
7553 if { (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
7575 aix_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.
7578 if 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
7580 else
7581 echo "$as_me: failed program was:" >&5
7582 sed 's/^/| /' conftest.$ac_ext >&5
7583
7584 fi
7585 rm -f conftest.err conftest.$ac_objext \
7586 conftest$ac_exeext conftest.$ac_ext
7587 if 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
8034 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8035 echo "${ECHO_T}$ld_shlibs" >&6
8036 test "$ld_shlibs" = no && can_build_shared=no
8037
8038 #
8039 # Do we need to explicitly link libc?
8040 #
8041 case "x$archive_cmds_need_lc" in
8042 x|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
8056 echo $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
8094 echo "${ECHO_T}$archive_cmds_need_lc" >&6
8095 ;;
8096 esac
8097 fi
8098 ;;
8099 esac
8100
8101 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8102 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8103 library_names_spec=
8104 libname_spec='lib$name'
8105 soname_spec=
8106 shrext_cmds=".so"
8107 postinstall_cmds=
8108 postuninstall_cmds=
8109 finish_cmds=
8110 finish_eval=
8111 shlibpath_var=
8112 shlibpath_overrides_runpath=unknown
8113 version_type=none
8114 dynamic_linker="$host_os ld.so"
8115 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8116 if 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
8127 else
8128 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8129 fi
8130 need_lib_prefix=unknown
8131 hardcode_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
8135 need_version=unknown
8136
8137 case $host_os in
8138 aix3*)
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
8147 aix4* | 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
8191 amigaos*)
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
8197 beos*)
8198 library_names_spec='${libname}${shared_ext}'
8199 dynamic_linker="$host_os ld.so"
8200 shlibpath_var=LIBRARY_PATH
8201 ;;
8202
8203 bsdi[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
8217 cygwin* | 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
8276 darwin* | 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
8295 dgux*)
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
8304 freebsd1*)
8305 dynamic_linker=no
8306 ;;
8307
8308 kfreebsd*-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
8320 freebsd* | 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
8364 gnu*)
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
8374 hpux9* | 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
8420 interix3*)
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
8432 irix5* | 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.
8470 linux*oldld* | linux*aout* | linux*coff*)
8471 dynamic_linker=no
8472 ;;
8473
8474 # This must be Linux ELF.
8475 linux*)
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*)
8493 echo '#line 8493 "configure"' > conftest.$ac_ext
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
8525 knetbsd*-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
8537 netbsd*)
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
8555 newsos6)
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
8562 nto-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
8572 openbsd*)
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
8598 os2*)
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
8607 osf3* | 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
8618 solaris*)
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
8631 sunos4*)
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
8643 sysv4 | 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
8667 sysv4*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
8676 sysv5* | 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
8699 uts4*)
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 ;;
8709 esac
8710 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8711 echo "${ECHO_T}$dynamic_linker" >&6
8712 test "$dynamic_linker" = no && can_build_shared=no
8713
8714 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8715 if test "$GCC" = yes; then
8716 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8717 fi
8718
8719 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8720 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8721 hardcode_action=
8722 if 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
8739 else
8740 # We cannot hardcode anything, or else we can only hardcode existing
8741 # directories.
8742 hardcode_action=unsupported
8743 fi
8744 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8745 echo "${ECHO_T}$hardcode_action" >&6
8746
8747 if test "$hardcode_action" = relink; then
8748 # Fast installation is not supported
8749 enable_fast_install=no
8750 elif test "$shlibpath_overrides_runpath" = yes ||
8751 test "$enable_shared" = no; then
8752 # Fast installation is not necessary
8753 enable_fast_install=needless
8754 fi
8755
8756 striplib=
8757 old_striplib=
8758 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8759 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8760 if 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
8764 echo "${ECHO_T}yes" >&6
8765 else
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
8772 echo "${ECHO_T}yes" >&6
8773 else
8774 echo "$as_me:$LINENO: result: no" >&5
8775 echo "${ECHO_T}no" >&6
8776 fi
8777 ;;
8778 *)
8779 echo "$as_me:$LINENO: result: no" >&5
8780 echo "${ECHO_T}no" >&6
8781 ;;
8782 esac
8783 fi
8784
8785 if test "x$enable_dlopen" != xyes; then
8786 enable_dlopen=unknown
8787 enable_dlopen_self=unknown
8788 enable_dlopen_self_static=unknown
8789 else
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
8813 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8814 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8815 echo $ECHO_N "(cached) $ECHO_C" >&6
8816 else
8817 ac_check_lib_save_LIBS=$LIBS
8818 LIBS="-ldl $LIBS"
8819 cat >conftest.$ac_ext <<_ACEOF
8820 /* confdefs.h. */
8821 _ACEOF
8822 cat confdefs.h >>conftest.$ac_ext
8823 cat >>conftest.$ac_ext <<_ACEOF
8824 /* end confdefs.h. */
8825
8826 /* Override any gcc2 internal prototype to avoid an error. */
8827 #ifdef __cplusplus
8828 extern "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. */
8832 char dlopen ();
8833 int
8834 main ()
8835 {
8836 dlopen ();
8837 ;
8838 return 0;
8839 }
8840 _ACEOF
8841 rm -f conftest.$ac_objext conftest$ac_exeext
8842 if { (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
8864 else
8865 echo "$as_me: failed program was:" >&5
8866 sed 's/^/| /' conftest.$ac_ext >&5
8867
8868 ac_cv_lib_dl_dlopen=no
8869 fi
8870 rm -f conftest.err conftest.$ac_objext \
8871 conftest$ac_exeext conftest.$ac_ext
8872 LIBS=$ac_check_lib_save_LIBS
8873 fi
8874 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8875 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8876 if test $ac_cv_lib_dl_dlopen = yes; then
8877 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8878 else
8879
8880 lt_cv_dlopen="dyld"
8881 lt_cv_dlopen_libs=
8882 lt_cv_dlopen_self=yes
8883
8884 fi
8885
8886 ;;
8887
8888 *)
8889 echo "$as_me:$LINENO: checking for shl_load" >&5
8890 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8891 if test "${ac_cv_func_shl_load+set}" = set; then
8892 echo $ECHO_N "(cached) $ECHO_C" >&6
8893 else
8894 cat >conftest.$ac_ext <<_ACEOF
8895 /* confdefs.h. */
8896 _ACEOF
8897 cat confdefs.h >>conftest.$ac_ext
8898 cat >>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
8919 extern "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. */
8924 char 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)
8929 choke me
8930 #else
8931 char (*f) () = shl_load;
8932 #endif
8933 #ifdef __cplusplus
8934 }
8935 #endif
8936
8937 int
8938 main ()
8939 {
8940 return f != shl_load;
8941 ;
8942 return 0;
8943 }
8944 _ACEOF
8945 rm -f conftest.$ac_objext conftest$ac_exeext
8946 if { (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
8968 else
8969 echo "$as_me: failed program was:" >&5
8970 sed 's/^/| /' conftest.$ac_ext >&5
8971
8972 ac_cv_func_shl_load=no
8973 fi
8974 rm -f conftest.err conftest.$ac_objext \
8975 conftest$ac_exeext conftest.$ac_ext
8976 fi
8977 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8978 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8979 if test $ac_cv_func_shl_load = yes; then
8980 lt_cv_dlopen="shl_load"
8981 else
8982 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8983 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8984 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8985 echo $ECHO_N "(cached) $ECHO_C" >&6
8986 else
8987 ac_check_lib_save_LIBS=$LIBS
8988 LIBS="-ldld $LIBS"
8989 cat >conftest.$ac_ext <<_ACEOF
8990 /* confdefs.h. */
8991 _ACEOF
8992 cat confdefs.h >>conftest.$ac_ext
8993 cat >>conftest.$ac_ext <<_ACEOF
8994 /* end confdefs.h. */
8995
8996 /* Override any gcc2 internal prototype to avoid an error. */
8997 #ifdef __cplusplus
8998 extern "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. */
9002 char shl_load ();
9003 int
9004 main ()
9005 {
9006 shl_load ();
9007 ;
9008 return 0;
9009 }
9010 _ACEOF
9011 rm -f conftest.$ac_objext conftest$ac_exeext
9012 if { (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
9034 else
9035 echo "$as_me: failed program was:" >&5
9036 sed 's/^/| /' conftest.$ac_ext >&5
9037
9038 ac_cv_lib_dld_shl_load=no
9039 fi
9040 rm -f conftest.err conftest.$ac_objext \
9041 conftest$ac_exeext conftest.$ac_ext
9042 LIBS=$ac_check_lib_save_LIBS
9043 fi
9044 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9045 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9046 if test $ac_cv_lib_dld_shl_load = yes; then
9047 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9048 else
9049 echo "$as_me:$LINENO: checking for dlopen" >&5
9050 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9051 if test "${ac_cv_func_dlopen+set}" = set; then
9052 echo $ECHO_N "(cached) $ECHO_C" >&6
9053 else
9054 cat >conftest.$ac_ext <<_ACEOF
9055 /* confdefs.h. */
9056 _ACEOF
9057 cat confdefs.h >>conftest.$ac_ext
9058 cat >>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
9079 extern "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. */
9084 char 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)
9089 choke me
9090 #else
9091 char (*f) () = dlopen;
9092 #endif
9093 #ifdef __cplusplus
9094 }
9095 #endif
9096
9097 int
9098 main ()
9099 {
9100 return f != dlopen;
9101 ;
9102 return 0;
9103 }
9104 _ACEOF
9105 rm -f conftest.$ac_objext conftest$ac_exeext
9106 if { (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
9128 else
9129 echo "$as_me: failed program was:" >&5
9130 sed 's/^/| /' conftest.$ac_ext >&5
9131
9132 ac_cv_func_dlopen=no
9133 fi
9134 rm -f conftest.err conftest.$ac_objext \
9135 conftest$ac_exeext conftest.$ac_ext
9136 fi
9137 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9138 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9139 if test $ac_cv_func_dlopen = yes; then
9140 lt_cv_dlopen="dlopen"
9141 else
9142 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9143 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9144 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9145 echo $ECHO_N "(cached) $ECHO_C" >&6
9146 else
9147 ac_check_lib_save_LIBS=$LIBS
9148 LIBS="-ldl $LIBS"
9149 cat >conftest.$ac_ext <<_ACEOF
9150 /* confdefs.h. */
9151 _ACEOF
9152 cat confdefs.h >>conftest.$ac_ext
9153 cat >>conftest.$ac_ext <<_ACEOF
9154 /* end confdefs.h. */
9155
9156 /* Override any gcc2 internal prototype to avoid an error. */
9157 #ifdef __cplusplus
9158 extern "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. */
9162 char dlopen ();
9163 int
9164 main ()
9165 {
9166 dlopen ();
9167 ;
9168 return 0;
9169 }
9170 _ACEOF
9171 rm -f conftest.$ac_objext conftest$ac_exeext
9172 if { (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
9194 else
9195 echo "$as_me: failed program was:" >&5
9196 sed 's/^/| /' conftest.$ac_ext >&5
9197
9198 ac_cv_lib_dl_dlopen=no
9199 fi
9200 rm -f conftest.err conftest.$ac_objext \
9201 conftest$ac_exeext conftest.$ac_ext
9202 LIBS=$ac_check_lib_save_LIBS
9203 fi
9204 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9205 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9206 if test $ac_cv_lib_dl_dlopen = yes; then
9207 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9208 else
9209 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9210 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9211 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9212 echo $ECHO_N "(cached) $ECHO_C" >&6
9213 else
9214 ac_check_lib_save_LIBS=$LIBS
9215 LIBS="-lsvld $LIBS"
9216 cat >conftest.$ac_ext <<_ACEOF
9217 /* confdefs.h. */
9218 _ACEOF
9219 cat confdefs.h >>conftest.$ac_ext
9220 cat >>conftest.$ac_ext <<_ACEOF
9221 /* end confdefs.h. */
9222
9223 /* Override any gcc2 internal prototype to avoid an error. */
9224 #ifdef __cplusplus
9225 extern "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. */
9229 char dlopen ();
9230 int
9231 main ()
9232 {
9233 dlopen ();
9234 ;
9235 return 0;
9236 }
9237 _ACEOF
9238 rm -f conftest.$ac_objext conftest$ac_exeext
9239 if { (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
9261 else
9262 echo "$as_me: failed program was:" >&5
9263 sed 's/^/| /' conftest.$ac_ext >&5
9264
9265 ac_cv_lib_svld_dlopen=no
9266 fi
9267 rm -f conftest.err conftest.$ac_objext \
9268 conftest$ac_exeext conftest.$ac_ext
9269 LIBS=$ac_check_lib_save_LIBS
9270 fi
9271 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9272 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9273 if test $ac_cv_lib_svld_dlopen = yes; then
9274 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9275 else
9276 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9277 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9278 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9279 echo $ECHO_N "(cached) $ECHO_C" >&6
9280 else
9281 ac_check_lib_save_LIBS=$LIBS
9282 LIBS="-ldld $LIBS"
9283 cat >conftest.$ac_ext <<_ACEOF
9284 /* confdefs.h. */
9285 _ACEOF
9286 cat confdefs.h >>conftest.$ac_ext
9287 cat >>conftest.$ac_ext <<_ACEOF
9288 /* end confdefs.h. */
9289
9290 /* Override any gcc2 internal prototype to avoid an error. */
9291 #ifdef __cplusplus
9292 extern "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. */
9296 char dld_link ();
9297 int
9298 main ()
9299 {
9300 dld_link ();
9301 ;
9302 return 0;
9303 }
9304 _ACEOF
9305 rm -f conftest.$ac_objext conftest$ac_exeext
9306 if { (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
9328 else
9329 echo "$as_me: failed program was:" >&5
9330 sed 's/^/| /' conftest.$ac_ext >&5
9331
9332 ac_cv_lib_dld_dld_link=no
9333 fi
9334 rm -f conftest.err conftest.$ac_objext \
9335 conftest$ac_exeext conftest.$ac_ext
9336 LIBS=$ac_check_lib_save_LIBS
9337 fi
9338 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9339 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9340 if test $ac_cv_lib_dld_dld_link = yes; then
9341 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9342 fi
9343
9344
9345 fi
9346
9347
9348 fi
9349
9350
9351 fi
9352
9353
9354 fi
9355
9356
9357 fi
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
9380 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9381 if test "${lt_cv_dlopen_self+set}" = set; then
9382 echo $ECHO_N "(cached) $ECHO_C" >&6
9383 else
9384 if test "$cross_compiling" = yes; then :
9385 lt_cv_dlopen_self=cross
9386 else
9387 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9388 lt_status=$lt_dlunknown
9389 cat > conftest.$ac_ext <<EOF
9390 #line 9390 "configure"
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
9432 extern "C" void exit (int);
9433 #endif
9434
9435 void fnord() { int i=42;}
9436 int 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 }
9452 EOF
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
9469 fi
9470 rm -fr conftest*
9471
9472
9473 fi
9474 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9475 echo "${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
9480 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9481 if test "${lt_cv_dlopen_self_static+set}" = set; then
9482 echo $ECHO_N "(cached) $ECHO_C" >&6
9483 else
9484 if test "$cross_compiling" = yes; then :
9485 lt_cv_dlopen_self_static=cross
9486 else
9487 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9488 lt_status=$lt_dlunknown
9489 cat > conftest.$ac_ext <<EOF
9490 #line 9490 "configure"
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
9532 extern "C" void exit (int);
9533 #endif
9534
9535 void fnord() { int i=42;}
9536 int 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 }
9552 EOF
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
9569 fi
9570 rm -fr conftest*
9571
9572
9573 fi
9574 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9575 echo "${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
9593 fi
9594
9595
9596 # Report which library types will actually be built
9597 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9598 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9599 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9600 echo "${ECHO_T}$can_build_shared" >&6
9601
9602 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9603 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9604 test "$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.
9608 case $host_os in
9609 aix3*)
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
9617 aix4* | aix5*)
9618 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9619 test "$enable_shared" = yes && enable_static=no
9620 fi
9621 ;;
9622 esac
9623 echo "$as_me:$LINENO: result: $enable_shared" >&5
9624 echo "${ECHO_T}$enable_shared" >&6
9625
9626 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9627 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9628 # Make sure either enable_shared or enable_static is yes.
9629 test "$enable_shared" = yes || enable_static=yes
9630 echo "$as_me:$LINENO: result: $enable_static" >&5
9631 echo "${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.
9637 if 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
9719 cfgfile="${ofile}T"
9720 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9721 $rm -f "$cfgfile"
9722 { echo "$as_me:$LINENO: creating $ofile" >&5
9723 echo "$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.
9758 SED=$lt_SED
9759
9760 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9761 Xsed="$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.
9768 available_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.
9775 SHELL=$lt_SHELL
9776
9777 # Whether or not to build shared libraries.
9778 build_libtool_libs=$enable_shared
9779
9780 # Whether or not to build static libraries.
9781 build_old_libs=$enable_static
9782
9783 # Whether or not to add -lc for building shared libraries.
9784 build_libtool_need_lc=$archive_cmds_need_lc
9785
9786 # Whether or not to disallow shared libs when runtime libs are static
9787 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9788
9789 # Whether or not to optimize for fast installation.
9790 fast_install=$enable_fast_install
9791
9792 # The host system.
9793 host_alias=$host_alias
9794 host=$host
9795 host_os=$host_os
9796
9797 # The build system.
9798 build_alias=$build_alias
9799 build=$build
9800 build_os=$build_os
9801
9802 # An echo program that does not interpret backslashes.
9803 echo=$lt_echo
9804
9805 # The archiver.
9806 AR=$lt_AR
9807 AR_FLAGS=$lt_AR_FLAGS
9808
9809 # A C compiler.
9810 LTCC=$lt_LTCC
9811
9812 # LTCC compiler flags.
9813 LTCFLAGS=$lt_LTCFLAGS
9814
9815 # A language-specific compiler.
9816 CC=$lt_compiler
9817
9818 # Is the compiler the GNU C compiler?
9819 with_gcc=$GCC
9820
9821 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
9822 gcc_ver=\`gcc -dumpversion\`
9823
9824 # An ERE matcher.
9825 EGREP=$lt_EGREP
9826
9827 # The linker used to build libraries.
9828 LD=$lt_LD
9829
9830 # Whether we need hard or soft links.
9831 LN_S=$lt_LN_S
9832
9833 # A BSD-compatible nm program.
9834 NM=$lt_NM
9835
9836 # A symbol stripping program
9837 STRIP=$lt_STRIP
9838
9839 # Used to examine libraries when file_magic_cmd begins "file"
9840 MAGIC_CMD=$MAGIC_CMD
9841
9842 # Used on cygwin: DLL creation program.
9843 DLLTOOL="$DLLTOOL"
9844
9845 # Used on cygwin: object dumper.
9846 OBJDUMP="$OBJDUMP"
9847
9848 # Used on cygwin: assembler.
9849 AS="$AS"
9850
9851 # The name of the directory that contains temporary libtool files.
9852 objdir=$objdir
9853
9854 # How to create reloadable object files.
9855 reload_flag=$lt_reload_flag
9856 reload_cmds=$lt_reload_cmds
9857
9858 # How to pass a linker flag through the compiler.
9859 wl=$lt_lt_prog_compiler_wl
9860
9861 # Object file suffix (normally "o").
9862 objext="$ac_objext"
9863
9864 # Old archive suffix (normally "a").
9865 libext="$libext"
9866
9867 # Shared library suffix (normally ".so").
9868 shrext_cmds='$shrext_cmds'
9869
9870 # Executable file suffix (normally "").
9871 exeext="$exeext"
9872
9873 # Additional compiler flags for building library objects.
9874 pic_flag=$lt_lt_prog_compiler_pic
9875 pic_mode=$pic_mode
9876
9877 # What is the maximum length of a command?
9878 max_cmd_len=$lt_cv_sys_max_cmd_len
9879
9880 # Does compiler simultaneously support -c and -o options?
9881 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9882
9883 # Must we lock files when doing compilation?
9884 need_locks=$lt_need_locks
9885
9886 # Do we need the lib prefix for modules?
9887 need_lib_prefix=$need_lib_prefix
9888
9889 # Do we need a version for libraries?
9890 need_version=$need_version
9891
9892 # Whether dlopen is supported.
9893 dlopen_support=$enable_dlopen
9894
9895 # Whether dlopen of programs is supported.
9896 dlopen_self=$enable_dlopen_self
9897
9898 # Whether dlopen of statically linked programs is supported.
9899 dlopen_self_static=$enable_dlopen_self_static
9900
9901 # Compiler flag to prevent dynamic linking.
9902 link_static_flag=$lt_lt_prog_compiler_static
9903
9904 # Compiler flag to turn off builtin functions.
9905 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9906
9907 # Compiler flag to allow reflexive dlopens.
9908 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9909
9910 # Compiler flag to generate shared objects directly from archives.
9911 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9912
9913 # Compiler flag to generate thread-safe objects.
9914 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9915
9916 # Library versioning type.
9917 version_type=$version_type
9918
9919 # Format of library name prefix.
9920 libname_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.
9924 library_names_spec=$lt_library_names_spec
9925
9926 # The coded name of the library, if different from the real name.
9927 soname_spec=$lt_soname_spec
9928
9929 # Commands used to build and install an old-style archive.
9930 RANLIB=$lt_RANLIB
9931 old_archive_cmds=$lt_old_archive_cmds
9932 old_postinstall_cmds=$lt_old_postinstall_cmds
9933 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9934
9935 # Create an old-style archive from a shared archive.
9936 old_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.
9939 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9940
9941 # Commands used to build and install a shared archive.
9942 archive_cmds=$lt_archive_cmds
9943 archive_expsym_cmds=$lt_archive_expsym_cmds
9944 postinstall_cmds=$lt_postinstall_cmds
9945 postuninstall_cmds=$lt_postuninstall_cmds
9946
9947 # Commands used to build a loadable module (assumed same as above if empty)
9948 module_cmds=$lt_module_cmds
9949 module_expsym_cmds=$lt_module_expsym_cmds
9950
9951 # Commands to strip libraries.
9952 old_striplib=$lt_old_striplib
9953 striplib=$lt_striplib
9954
9955 # Dependencies to place before the objects being linked to create a
9956 # shared library.
9957 predep_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.
9961 postdep_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.
9965 predeps=$lt_predeps
9966
9967 # Dependencies to place after the objects being linked to create a
9968 # shared library.
9969 postdeps=$lt_postdeps
9970
9971 # The library search path used internally by the compiler when linking
9972 # a shared library.
9973 compiler_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.
9976 deplibs_check_method=$lt_deplibs_check_method
9977
9978 # Command to use when deplibs_check_method == file_magic.
9979 file_magic_cmd=$lt_file_magic_cmd
9980
9981 # Flag that allows shared libraries with undefined symbols to be built.
9982 allow_undefined_flag=$lt_allow_undefined_flag
9983
9984 # Flag that forces no undefined symbols.
9985 no_undefined_flag=$lt_no_undefined_flag
9986
9987 # Commands used to finish a libtool library installation in a directory.
9988 finish_cmds=$lt_finish_cmds
9989
9990 # Same as above, but a single script fragment to be evaled but not shown.
9991 finish_eval=$lt_finish_eval
9992
9993 # Take the output of nm and produce a listing of raw symbols and C names.
9994 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9995
9996 # Transform the output of nm in a proper C declaration
9997 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9998
9999 # Transform the output of nm in a C name address pair
10000 global_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.
10003 runpath_var=$runpath_var
10004
10005 # This is the shared library path variable.
10006 shlibpath_var=$shlibpath_var
10007
10008 # Is shlibpath searched before the hard-coded library search path?
10009 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10010
10011 # How to hardcode a shared library path into an executable.
10012 hardcode_action=$hardcode_action
10013
10014 # Whether we should hardcode library paths into libraries.
10015 hardcode_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.
10019 hardcode_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.
10024 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10025
10026 # Whether we need a single -rpath flag with a separated argument.
10027 hardcode_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.
10031 hardcode_direct=$hardcode_direct
10032
10033 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10034 # resulting binary.
10035 hardcode_minus_L=$hardcode_minus_L
10036
10037 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10038 # the resulting binary.
10039 hardcode_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.
10043 hardcode_automatic=$hardcode_automatic
10044
10045 # Variables whose values should be saved in libtool wrapper scripts and
10046 # restored at relink time.
10047 variables_saved_for_relink="$variables_saved_for_relink"
10048
10049 # Whether libtool must link a program against all its dependency libraries.
10050 link_all_deplibs=$link_all_deplibs
10051
10052 # Compile-time system search path for libraries
10053 sys_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
10056 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10057
10058 # Fix the shell variable \$srcfile for the compiler.
10059 fix_srcfile_path="$fix_srcfile_path"
10060
10061 # Set to yes if exported symbols are required.
10062 always_export_symbols=$always_export_symbols
10063
10064 # The commands to list exported symbols.
10065 export_symbols_cmds=$lt_export_symbols_cmds
10066
10067 # The commands to extract the exported symbol list from a shared archive.
10068 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10069
10070 # Symbols that should not be listed in the preloaded symbols.
10071 exclude_expsyms=$lt_exclude_expsyms
10072
10073 # Symbols that must always be exported.
10074 include_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.
10088 if test "X${COLLECT_NAMES+set}" != Xset; then
10089 COLLECT_NAMES=
10090 export COLLECT_NAMES
10091 fi
10092 EOF
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
10106 else
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
10114 fi
10115
10116
10117 ac_ext=c
10118 ac_cpp='$CPP $CPPFLAGS'
10119 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10120 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10121 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10122
10123 CC="$lt_save_CC"
10124
10125
10126 # Check whether --with-tags or --without-tags was given.
10127 if test "${with_tags+set}" = set; then
10128 withval="$with_tags"
10129 tagnames="$withval"
10130 fi;
10131
10132 if 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
10135 echo "$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
10142 echo "$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
10145 echo "$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
10163 echo "$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
10171 echo "$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
10185 ac_cpp='$CXXCPP $CPPFLAGS'
10186 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10187 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10188 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10189
10190
10191
10192
10193 archive_cmds_need_lc_CXX=no
10194 allow_undefined_flag_CXX=
10195 always_export_symbols_CXX=no
10196 archive_expsym_cmds_CXX=
10197 export_dynamic_flag_spec_CXX=
10198 hardcode_direct_CXX=no
10199 hardcode_libdir_flag_spec_CXX=
10200 hardcode_libdir_flag_spec_ld_CXX=
10201 hardcode_libdir_separator_CXX=
10202 hardcode_minus_L_CXX=no
10203 hardcode_shlibpath_var_CXX=unsupported
10204 hardcode_automatic_CXX=no
10205 module_cmds_CXX=
10206 module_expsym_cmds_CXX=
10207 link_all_deplibs_CXX=unknown
10208 old_archive_cmds_CXX=$old_archive_cmds
10209 no_undefined_flag_CXX=
10210 whole_archive_flag_spec_CXX=
10211 enable_shared_with_static_runtimes_CXX=no
10212
10213 # Dependencies to place before and after the object being linked:
10214 predep_objects_CXX=
10215 postdep_objects_CXX=
10216 predeps_CXX=
10217 postdeps_CXX=
10218 compiler_lib_search_path_CXX=
10219
10220 # Source file extension for C++ test sources.
10221 ac_ext=cpp
10222
10223 # Object file extension for compiled C++ test sources.
10224 objext=o
10225 objext_CXX=$objext
10226
10227 # Code to be used in simple compile tests
10228 lt_simple_compile_test_code="int some_variable = 0;\n"
10229
10230 # Code to be used in simple link tests
10231 lt_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.
10236 LTCC=${LTCC-"$CC"}
10237
10238 # If no C compiler flags were specified, use CFLAGS.
10239 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10240
10241 # Allow CC to be a program name with arguments.
10242 compiler=$CC
10243
10244
10245 # save warnings/boilerplate of simple test code
10246 ac_outfile=conftest.$ac_objext
10247 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10248 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10249 _lt_compiler_boilerplate=`cat conftest.err`
10250 $rm conftest*
10251
10252 ac_outfile=conftest.$ac_objext
10253 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10254 eval "$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.
10260 lt_save_CC=$CC
10261 lt_save_LD=$LD
10262 lt_save_GCC=$GCC
10263 GCC=$GXX
10264 lt_save_with_gnu_ld=$with_gnu_ld
10265 lt_save_path_LD=$lt_cv_path_LD
10266 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10267 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10268 else
10269 $as_unset lt_cv_prog_gnu_ld
10270 fi
10271 if test -n "${lt_cv_path_LDCXX+set}"; then
10272 lt_cv_path_LD=$lt_cv_path_LDCXX
10273 else
10274 $as_unset lt_cv_path_LD
10275 fi
10276 test -z "${LDCXX+set}" || LD=$LDCXX
10277 CC=${CXX-"c++"}
10278 compiler=$CC
10279 compiler_CXX=$CC
10280 for 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
10287 done
10288 cc_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
10293 if test "$GXX" = yes; then
10294 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10295 else
10296 lt_prog_compiler_no_builtin_flag_CXX=
10297 fi
10298
10299 if 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.
10304 if test "${with_gnu_ld+set}" = set; then
10305 withval="$with_gnu_ld"
10306 test "$withval" = no || with_gnu_ld=yes
10307 else
10308 with_gnu_ld=no
10309 fi;
10310 ac_prog=ld
10311 if 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
10314 echo $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
10342 elif test "$with_gnu_ld" = yes; then
10343 echo "$as_me:$LINENO: checking for GNU ld" >&5
10344 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10345 else
10346 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10347 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10348 fi
10349 if test "${lt_cv_path_LD+set}" = set; then
10350 echo $ECHO_N "(cached) $ECHO_C" >&6
10351 else
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"
10373 else
10374 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10375 fi
10376 fi
10377
10378 LD="$lt_cv_path_LD"
10379 if test -n "$LD"; then
10380 echo "$as_me:$LINENO: result: $LD" >&5
10381 echo "${ECHO_T}$LD" >&6
10382 else
10383 echo "$as_me:$LINENO: result: no" >&5
10384 echo "${ECHO_T}no" >&6
10385 fi
10386 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10387 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10388 { (exit 1); exit 1; }; }
10389 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10390 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10391 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10392 echo $ECHO_N "(cached) $ECHO_C" >&6
10393 else
10394 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10395 case `$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 ;;
10402 esac
10403 fi
10404 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10405 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10406 with_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
10448 else
10449 GXX=no
10450 with_gnu_ld=no
10451 wlarc=
10452 fi
10453
10454 # PORTME: fill in a description of your system's C++ link characteristics
10455 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10456 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10457 ld_shlibs_CXX=yes
10458 case $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
10555 cat confdefs.h >>conftest.$ac_ext
10556 cat >>conftest.$ac_ext <<_ACEOF
10557 /* end confdefs.h. */
10558
10559 int
10560 main ()
10561 {
10562
10563 ;
10564 return 0;
10565 }
10566 _ACEOF
10567 rm -f conftest.$ac_objext conftest$ac_exeext
10568 if { (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
10590 aix_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.
10593 if 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
10595 else
10596 echo "$as_me: failed program was:" >&5
10597 sed 's/^/| /' conftest.$ac_ext >&5
10598
10599 fi
10600 rm -f conftest.err conftest.$ac_objext \
10601 conftest$ac_exeext conftest.$ac_ext
10602 if 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
10617 cat confdefs.h >>conftest.$ac_ext
10618 cat >>conftest.$ac_ext <<_ACEOF
10619 /* end confdefs.h. */
10620
10621 int
10622 main ()
10623 {
10624
10625 ;
10626 return 0;
10627 }
10628 _ACEOF
10629 rm -f conftest.$ac_objext conftest$ac_exeext
10630 if { (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
10652 aix_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.
10655 if 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
10657 else
10658 echo "$as_me: failed program was:" >&5
10659 sed 's/^/| /' conftest.$ac_ext >&5
10660
10661 fi
10662 rm -f conftest.err conftest.$ac_objext \
10663 conftest$ac_exeext conftest.$ac_ext
10664 if 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 ;;
11392 esac
11393 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11394 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11395 test "$ld_shlibs_CXX" = no && can_build_shared=no
11396
11397 GCC_CXX="$GXX"
11398 LD_CXX="$LD"
11399
11400
11401 cat > conftest.$ac_ext <<EOF
11402 class Foo
11403 {
11404 public:
11405 Foo (void) { a = 0; }
11406 private:
11407 int a;
11408 };
11409 EOF
11410
11411 if { (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
11496 else
11497 echo "libtool.m4: error: problem compiling CXX test program"
11498 fi
11499
11500 $rm -f confest.$objext
11501
11502 # PORTME: override above test on systems where it is broken
11503 case $host_os in
11504 interix3*)
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
11512 solaris*)
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 ;;
11522 esac
11523
11524
11525 case " $postdeps_CXX " in
11526 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11527 esac
11528
11529 lt_prog_compiler_wl_CXX=
11530 lt_prog_compiler_pic_CXX=
11531 lt_prog_compiler_static_CXX=
11532
11533 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11534 echo $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
11807 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11808 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11809
11810 #
11811 # Check to make sure the PIC flag actually works.
11812 #
11813 if test -n "$lt_prog_compiler_pic_CXX"; then
11814
11815 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11816 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11817 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11818 echo $ECHO_N "(cached) $ECHO_C" >&6
11819 else
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:'`
11833 (eval echo "\"\$as_me:11833: $lt_compile\"" >&5)
11834 (eval "$lt_compile" 2>conftest.err)
11835 ac_status=$?
11836 cat conftest.err >&5
11837 echo "$as_me:11837: \$? = $ac_status" >&5
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
11849 fi
11850 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11851 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11852
11853 if 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
11858 else
11859 lt_prog_compiler_pic_CXX=
11860 lt_prog_compiler_can_build_shared_CXX=no
11861 fi
11862
11863 fi
11864 case $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 ;;
11872 esac
11873
11874 #
11875 # Check to make sure the static flag actually works.
11876 #
11877 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
11878 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11879 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
11880 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
11881 echo $ECHO_N "(cached) $ECHO_C" >&6
11882 else
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
11905 fi
11906 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
11907 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
11908
11909 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
11910 :
11911 else
11912 lt_prog_compiler_static_CXX=
11913 fi
11914
11915
11916 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11917 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11918 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11919 echo $ECHO_N "(cached) $ECHO_C" >&6
11920 else
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:'`
11937 (eval echo "\"\$as_me:11937: $lt_compile\"" >&5)
11938 (eval "$lt_compile" 2>out/conftest.err)
11939 ac_status=$?
11940 cat out/conftest.err >&5
11941 echo "$as_me:11941: \$? = $ac_status" >&5
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
11962 fi
11963 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11964 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11965
11966
11967 hard_links="nottested"
11968 if 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
11971 echo $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
11979 echo "${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
11982 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11983 need_locks=warn
11984 fi
11985 else
11986 need_locks=no
11987 fi
11988
11989 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11990 echo $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
12014 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12015 echo "${ECHO_T}$ld_shlibs_CXX" >&6
12016 test "$ld_shlibs_CXX" = no && can_build_shared=no
12017
12018 #
12019 # Do we need to explicitly link libc?
12020 #
12021 case "x$archive_cmds_need_lc_CXX" in
12022 x|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
12036 echo $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
12074 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
12075 ;;
12076 esac
12077 fi
12078 ;;
12079 esac
12080
12081 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12082 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
12083 library_names_spec=
12084 libname_spec='lib$name'
12085 soname_spec=
12086 shrext_cmds=".so"
12087 postinstall_cmds=
12088 postuninstall_cmds=
12089 finish_cmds=
12090 finish_eval=
12091 shlibpath_var=
12092 shlibpath_overrides_runpath=unknown
12093 version_type=none
12094 dynamic_linker="$host_os ld.so"
12095 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12096 if 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
12107 else
12108 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12109 fi
12110 need_lib_prefix=unknown
12111 hardcode_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
12115 need_version=unknown
12116
12117 case $host_os in
12118 aix3*)
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
12127 aix4* | 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
12171 amigaos*)
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
12177 beos*)
12178 library_names_spec='${libname}${shared_ext}'
12179 dynamic_linker="$host_os ld.so"
12180 shlibpath_var=LIBRARY_PATH
12181 ;;
12182
12183 bsdi[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
12197 cygwin* | 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
12256 darwin* | 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
12275 dgux*)
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
12284 freebsd1*)
12285 dynamic_linker=no
12286 ;;
12287
12288 kfreebsd*-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
12300 freebsd* | 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
12344 gnu*)
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
12354 hpux9* | 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
12400 interix3*)
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
12412 irix5* | 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.
12450 linux*oldld* | linux*aout* | linux*coff*)
12451 dynamic_linker=no
12452 ;;
12453
12454 # This must be Linux ELF.
12455 linux*)
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*)
12473 echo '#line 12473 "configure"' > conftest.$ac_ext
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
12505 knetbsd*-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
12517 netbsd*)
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
12535 newsos6)
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
12542 nto-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
12552 openbsd*)
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
12578 os2*)
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
12587 osf3* | 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
12598 solaris*)
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
12611 sunos4*)
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
12623 sysv4 | 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
12647 sysv4*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
12656 sysv5* | 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
12679 uts4*)
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 ;;
12689 esac
12690 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12691 echo "${ECHO_T}$dynamic_linker" >&6
12692 test "$dynamic_linker" = no && can_build_shared=no
12693
12694 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12695 if test "$GCC" = yes; then
12696 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12697 fi
12698
12699 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12700 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12701 hardcode_action_CXX=
12702 if 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
12719 else
12720 # We cannot hardcode anything, or else we can only hardcode existing
12721 # directories.
12722 hardcode_action_CXX=unsupported
12723 fi
12724 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12725 echo "${ECHO_T}$hardcode_action_CXX" >&6
12726
12727 if test "$hardcode_action_CXX" = relink; then
12728 # Fast installation is not supported
12729 enable_fast_install=no
12730 elif test "$shlibpath_overrides_runpath" = yes ||
12731 test "$enable_shared" = no; then
12732 # Fast installation is not necessary
12733 enable_fast_install=needless
12734 fi
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.
12741 if 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
12823 cfgfile="$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.
12831 SHELL=$lt_SHELL
12832
12833 # Whether or not to build shared libraries.
12834 build_libtool_libs=$enable_shared
12835
12836 # Whether or not to build static libraries.
12837 build_old_libs=$enable_static
12838
12839 # Whether or not to add -lc for building shared libraries.
12840 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12841
12842 # Whether or not to disallow shared libs when runtime libs are static
12843 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12844
12845 # Whether or not to optimize for fast installation.
12846 fast_install=$enable_fast_install
12847
12848 # The host system.
12849 host_alias=$host_alias
12850 host=$host
12851 host_os=$host_os
12852
12853 # The build system.
12854 build_alias=$build_alias
12855 build=$build
12856 build_os=$build_os
12857
12858 # An echo program that does not interpret backslashes.
12859 echo=$lt_echo
12860
12861 # The archiver.
12862 AR=$lt_AR
12863 AR_FLAGS=$lt_AR_FLAGS
12864
12865 # A C compiler.
12866 LTCC=$lt_LTCC
12867
12868 # LTCC compiler flags.
12869 LTCFLAGS=$lt_LTCFLAGS
12870
12871 # A language-specific compiler.
12872 CC=$lt_compiler_CXX
12873
12874 # Is the compiler the GNU C compiler?
12875 with_gcc=$GCC_CXX
12876
12877 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
12878 gcc_ver=\`gcc -dumpversion\`
12879
12880 # An ERE matcher.
12881 EGREP=$lt_EGREP
12882
12883 # The linker used to build libraries.
12884 LD=$lt_LD_CXX
12885
12886 # Whether we need hard or soft links.
12887 LN_S=$lt_LN_S
12888
12889 # A BSD-compatible nm program.
12890 NM=$lt_NM
12891
12892 # A symbol stripping program
12893 STRIP=$lt_STRIP
12894
12895 # Used to examine libraries when file_magic_cmd begins "file"
12896 MAGIC_CMD=$MAGIC_CMD
12897
12898 # Used on cygwin: DLL creation program.
12899 DLLTOOL="$DLLTOOL"
12900
12901 # Used on cygwin: object dumper.
12902 OBJDUMP="$OBJDUMP"
12903
12904 # Used on cygwin: assembler.
12905 AS="$AS"
12906
12907 # The name of the directory that contains temporary libtool files.
12908 objdir=$objdir
12909
12910 # How to create reloadable object files.
12911 reload_flag=$lt_reload_flag
12912 reload_cmds=$lt_reload_cmds
12913
12914 # How to pass a linker flag through the compiler.
12915 wl=$lt_lt_prog_compiler_wl_CXX
12916
12917 # Object file suffix (normally "o").
12918 objext="$ac_objext"
12919
12920 # Old archive suffix (normally "a").
12921 libext="$libext"
12922
12923 # Shared library suffix (normally ".so").
12924 shrext_cmds='$shrext_cmds'
12925
12926 # Executable file suffix (normally "").
12927 exeext="$exeext"
12928
12929 # Additional compiler flags for building library objects.
12930 pic_flag=$lt_lt_prog_compiler_pic_CXX
12931 pic_mode=$pic_mode
12932
12933 # What is the maximum length of a command?
12934 max_cmd_len=$lt_cv_sys_max_cmd_len
12935
12936 # Does compiler simultaneously support -c and -o options?
12937 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12938
12939 # Must we lock files when doing compilation?
12940 need_locks=$lt_need_locks
12941
12942 # Do we need the lib prefix for modules?
12943 need_lib_prefix=$need_lib_prefix
12944
12945 # Do we need a version for libraries?
12946 need_version=$need_version
12947
12948 # Whether dlopen is supported.
12949 dlopen_support=$enable_dlopen
12950
12951 # Whether dlopen of programs is supported.
12952 dlopen_self=$enable_dlopen_self
12953
12954 # Whether dlopen of statically linked programs is supported.
12955 dlopen_self_static=$enable_dlopen_self_static
12956
12957 # Compiler flag to prevent dynamic linking.
12958 link_static_flag=$lt_lt_prog_compiler_static_CXX
12959
12960 # Compiler flag to turn off builtin functions.
12961 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12962
12963 # Compiler flag to allow reflexive dlopens.
12964 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12965
12966 # Compiler flag to generate shared objects directly from archives.
12967 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12968
12969 # Compiler flag to generate thread-safe objects.
12970 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12971
12972 # Library versioning type.
12973 version_type=$version_type
12974
12975 # Format of library name prefix.
12976 libname_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.
12980 library_names_spec=$lt_library_names_spec
12981
12982 # The coded name of the library, if different from the real name.
12983 soname_spec=$lt_soname_spec
12984
12985 # Commands used to build and install an old-style archive.
12986 RANLIB=$lt_RANLIB
12987 old_archive_cmds=$lt_old_archive_cmds_CXX
12988 old_postinstall_cmds=$lt_old_postinstall_cmds
12989 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12990
12991 # Create an old-style archive from a shared archive.
12992 old_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.
12995 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12996
12997 # Commands used to build and install a shared archive.
12998 archive_cmds=$lt_archive_cmds_CXX
12999 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13000 postinstall_cmds=$lt_postinstall_cmds
13001 postuninstall_cmds=$lt_postuninstall_cmds
13002
13003 # Commands used to build a loadable module (assumed same as above if empty)
13004 module_cmds=$lt_module_cmds_CXX
13005 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13006
13007 # Commands to strip libraries.
13008 old_striplib=$lt_old_striplib
13009 striplib=$lt_striplib
13010
13011 # Dependencies to place before the objects being linked to create a
13012 # shared library.
13013 predep_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.
13017 postdep_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.
13021 predeps=$lt_predeps_CXX
13022
13023 # Dependencies to place after the objects being linked to create a
13024 # shared library.
13025 postdeps=$lt_postdeps_CXX
13026
13027 # The library search path used internally by the compiler when linking
13028 # a shared library.
13029 compiler_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.
13032 deplibs_check_method=$lt_deplibs_check_method
13033
13034 # Command to use when deplibs_check_method == file_magic.
13035 file_magic_cmd=$lt_file_magic_cmd
13036
13037 # Flag that allows shared libraries with undefined symbols to be built.
13038 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13039
13040 # Flag that forces no undefined symbols.
13041 no_undefined_flag=$lt_no_undefined_flag_CXX
13042
13043 # Commands used to finish a libtool library installation in a directory.
13044 finish_cmds=$lt_finish_cmds
13045
13046 # Same as above, but a single script fragment to be evaled but not shown.
13047 finish_eval=$lt_finish_eval
13048
13049 # Take the output of nm and produce a listing of raw symbols and C names.
13050 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13051
13052 # Transform the output of nm in a proper C declaration
13053 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13054
13055 # Transform the output of nm in a C name address pair
13056 global_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.
13059 runpath_var=$runpath_var
13060
13061 # This is the shared library path variable.
13062 shlibpath_var=$shlibpath_var
13063
13064 # Is shlibpath searched before the hard-coded library search path?
13065 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13066
13067 # How to hardcode a shared library path into an executable.
13068 hardcode_action=$hardcode_action_CXX
13069
13070 # Whether we should hardcode library paths into libraries.
13071 hardcode_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.
13075 hardcode_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.
13080 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13081
13082 # Whether we need a single -rpath flag with a separated argument.
13083 hardcode_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.
13087 hardcode_direct=$hardcode_direct_CXX
13088
13089 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13090 # resulting binary.
13091 hardcode_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.
13095 hardcode_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.
13099 hardcode_automatic=$hardcode_automatic_CXX
13100
13101 # Variables whose values should be saved in libtool wrapper scripts and
13102 # restored at relink time.
13103 variables_saved_for_relink="$variables_saved_for_relink"
13104
13105 # Whether libtool must link a program against all its dependency libraries.
13106 link_all_deplibs=$link_all_deplibs_CXX
13107
13108 # Compile-time system search path for libraries
13109 sys_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
13112 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13113
13114 # Fix the shell variable \$srcfile for the compiler.
13115 fix_srcfile_path="$fix_srcfile_path_CXX"
13116
13117 # Set to yes if exported symbols are required.
13118 always_export_symbols=$always_export_symbols_CXX
13119
13120 # The commands to list exported symbols.
13121 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13122
13123 # The commands to extract the exported symbol list from a shared archive.
13124 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13125
13126 # Symbols that should not be listed in the preloaded symbols.
13127 exclude_expsyms=$lt_exclude_expsyms_CXX
13128
13129 # Symbols that must always be exported.
13130 include_expsyms=$lt_include_expsyms_CXX
13131
13132 # ### END LIBTOOL TAG CONFIG: $tagname
13133
13134 __EOF__
13135
13136
13137 else
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
13145 fi
13146
13147
13148 ac_ext=c
13149 ac_cpp='$CPP $CPPFLAGS'
13150 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13151 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13152 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13153
13154 CC=$lt_save_CC
13155 LDCXX=$LD
13156 LD=$lt_save_LD
13157 GCC=$lt_save_GCC
13158 with_gnu_ldcxx=$with_gnu_ld
13159 with_gnu_ld=$lt_save_with_gnu_ld
13160 lt_cv_path_LDCXX=$lt_cv_path_LD
13161 lt_cv_path_LD=$lt_save_path_LD
13162 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13163 lt_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
13173 ac_ext=f
13174 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13175 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13176 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13177
13178
13179 archive_cmds_need_lc_F77=no
13180 allow_undefined_flag_F77=
13181 always_export_symbols_F77=no
13182 archive_expsym_cmds_F77=
13183 export_dynamic_flag_spec_F77=
13184 hardcode_direct_F77=no
13185 hardcode_libdir_flag_spec_F77=
13186 hardcode_libdir_flag_spec_ld_F77=
13187 hardcode_libdir_separator_F77=
13188 hardcode_minus_L_F77=no
13189 hardcode_automatic_F77=no
13190 module_cmds_F77=
13191 module_expsym_cmds_F77=
13192 link_all_deplibs_F77=unknown
13193 old_archive_cmds_F77=$old_archive_cmds
13194 no_undefined_flag_F77=
13195 whole_archive_flag_spec_F77=
13196 enable_shared_with_static_runtimes_F77=no
13197
13198 # Source file extension for f77 test sources.
13199 ac_ext=f
13200
13201 # Object file extension for compiled f77 test sources.
13202 objext=o
13203 objext_F77=$objext
13204
13205 # Code to be used in simple compile tests
13206 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13207
13208 # Code to be used in simple link tests
13209 lt_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.
13214 LTCC=${LTCC-"$CC"}
13215
13216 # If no C compiler flags were specified, use CFLAGS.
13217 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13218
13219 # Allow CC to be a program name with arguments.
13220 compiler=$CC
13221
13222
13223 # save warnings/boilerplate of simple test code
13224 ac_outfile=conftest.$ac_objext
13225 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13226 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13227 _lt_compiler_boilerplate=`cat conftest.err`
13228 $rm conftest*
13229
13230 ac_outfile=conftest.$ac_objext
13231 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13232 eval "$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.
13238 lt_save_CC="$CC"
13239 CC=${F77-"f77"}
13240 compiler=$CC
13241 compiler_F77=$CC
13242 for 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
13249 done
13250 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13251
13252
13253 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13254 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13255 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13256 echo "${ECHO_T}$can_build_shared" >&6
13257
13258 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13259 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13260 test "$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.
13264 case $host_os in
13265 aix3*)
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 ;;
13272 aix4* | aix5*)
13273 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13274 test "$enable_shared" = yes && enable_static=no
13275 fi
13276 ;;
13277 esac
13278 echo "$as_me:$LINENO: result: $enable_shared" >&5
13279 echo "${ECHO_T}$enable_shared" >&6
13280
13281 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13282 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13283 # Make sure either enable_shared or enable_static is yes.
13284 test "$enable_shared" = yes || enable_static=yes
13285 echo "$as_me:$LINENO: result: $enable_static" >&5
13286 echo "${ECHO_T}$enable_static" >&6
13287
13288 GCC_F77="$G77"
13289 LD_F77="$LD"
13290
13291 lt_prog_compiler_wl_F77=
13292 lt_prog_compiler_pic_F77=
13293 lt_prog_compiler_static_F77=
13294
13295 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13296 echo $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
13505 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13506 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13507
13508 #
13509 # Check to make sure the PIC flag actually works.
13510 #
13511 if test -n "$lt_prog_compiler_pic_F77"; then
13512
13513 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13514 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13515 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13516 echo $ECHO_N "(cached) $ECHO_C" >&6
13517 else
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:'`
13531 (eval echo "\"\$as_me:13531: $lt_compile\"" >&5)
13532 (eval "$lt_compile" 2>conftest.err)
13533 ac_status=$?
13534 cat conftest.err >&5
13535 echo "$as_me:13535: \$? = $ac_status" >&5
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
13547 fi
13548 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13549 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13550
13551 if 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
13556 else
13557 lt_prog_compiler_pic_F77=
13558 lt_prog_compiler_can_build_shared_F77=no
13559 fi
13560
13561 fi
13562 case $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 ;;
13570 esac
13571
13572 #
13573 # Check to make sure the static flag actually works.
13574 #
13575 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13576 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13577 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13578 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13579 echo $ECHO_N "(cached) $ECHO_C" >&6
13580 else
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
13603 fi
13604 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13605 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
13606
13607 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13608 :
13609 else
13610 lt_prog_compiler_static_F77=
13611 fi
13612
13613
13614 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13615 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13616 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13617 echo $ECHO_N "(cached) $ECHO_C" >&6
13618 else
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:'`
13635 (eval echo "\"\$as_me:13635: $lt_compile\"" >&5)
13636 (eval "$lt_compile" 2>out/conftest.err)
13637 ac_status=$?
13638 cat out/conftest.err >&5
13639 echo "$as_me:13639: \$? = $ac_status" >&5
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
13660 fi
13661 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13662 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13663
13664
13665 hard_links="nottested"
13666 if 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
13669 echo $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
13677 echo "${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
13680 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13681 need_locks=warn
13682 fi
13683 else
13684 need_locks=no
13685 fi
13686
13687 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13688 echo $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
13734 done
13735 cc_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
13795 EOF
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
13917 EOF
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
14092 rm -f conftest.$ac_objext conftest$ac_exeext
14093 if { (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
14115 aix_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.
14118 if 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
14120 else
14121 echo "$as_me: failed program was:" >&5
14122 sed 's/^/| /' conftest.$ac_ext >&5
14123
14124 fi
14125 rm -f conftest.err conftest.$ac_objext \
14126 conftest$ac_exeext conftest.$ac_ext
14127 if 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
14143 rm -f conftest.$ac_objext conftest$ac_exeext
14144 if { (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
14166 aix_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.
14169 if 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
14171 else
14172 echo "$as_me: failed program was:" >&5
14173 sed 's/^/| /' conftest.$ac_ext >&5
14174
14175 fi
14176 rm -f conftest.err conftest.$ac_objext \
14177 conftest$ac_exeext conftest.$ac_ext
14178 if 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
14625 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14626 echo "${ECHO_T}$ld_shlibs_F77" >&6
14627 test "$ld_shlibs_F77" = no && can_build_shared=no
14628
14629 #
14630 # Do we need to explicitly link libc?
14631 #
14632 case "x$archive_cmds_need_lc_F77" in
14633 x|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
14647 echo $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
14685 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14686 ;;
14687 esac
14688 fi
14689 ;;
14690 esac
14691
14692 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14693 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14694 library_names_spec=
14695 libname_spec='lib$name'
14696 soname_spec=
14697 shrext_cmds=".so"
14698 postinstall_cmds=
14699 postuninstall_cmds=
14700 finish_cmds=
14701 finish_eval=
14702 shlibpath_var=
14703 shlibpath_overrides_runpath=unknown
14704 version_type=none
14705 dynamic_linker="$host_os ld.so"
14706 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14707 if 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
14718 else
14719 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14720 fi
14721 need_lib_prefix=unknown
14722 hardcode_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
14726 need_version=unknown
14727
14728 case $host_os in
14729 aix3*)
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
14738 aix4* | 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
14782 amigaos*)
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
14788 beos*)
14789 library_names_spec='${libname}${shared_ext}'
14790 dynamic_linker="$host_os ld.so"
14791 shlibpath_var=LIBRARY_PATH
14792 ;;
14793
14794 bsdi[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
14808 cygwin* | 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
14867 darwin* | 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
14886 dgux*)
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
14895 freebsd1*)
14896 dynamic_linker=no
14897 ;;
14898
14899 kfreebsd*-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
14911 freebsd* | 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
14955 gnu*)
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
14965 hpux9* | 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
15011 interix3*)
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
15023 irix5* | 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.
15061 linux*oldld* | linux*aout* | linux*coff*)
15062 dynamic_linker=no
15063 ;;
15064
15065 # This must be Linux ELF.
15066 linux*)
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*)
15084 echo '#line 15084 "configure"' > conftest.$ac_ext
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
15116 knetbsd*-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
15128 netbsd*)
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
15146 newsos6)
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
15153 nto-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
15163 openbsd*)
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
15189 os2*)
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
15198 osf3* | 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
15209 solaris*)
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
15222 sunos4*)
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
15234 sysv4 | 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
15258 sysv4*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
15267 sysv5* | 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
15290 uts4*)
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 ;;
15300 esac
15301 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15302 echo "${ECHO_T}$dynamic_linker" >&6
15303 test "$dynamic_linker" = no && can_build_shared=no
15304
15305 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15306 if test "$GCC" = yes; then
15307 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15308 fi
15309
15310 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15311 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15312 hardcode_action_F77=
15313 if 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
15330 else
15331 # We cannot hardcode anything, or else we can only hardcode existing
15332 # directories.
15333 hardcode_action_F77=unsupported
15334 fi
15335 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15336 echo "${ECHO_T}$hardcode_action_F77" >&6
15337
15338 if test "$hardcode_action_F77" = relink; then
15339 # Fast installation is not supported
15340 enable_fast_install=no
15341 elif test "$shlibpath_overrides_runpath" = yes ||
15342 test "$enable_shared" = no; then
15343 # Fast installation is not necessary
15344 enable_fast_install=needless
15345 fi
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.
15352 if 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
15434 cfgfile="$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.
15442 SHELL=$lt_SHELL
15443
15444 # Whether or not to build shared libraries.
15445 build_libtool_libs=$enable_shared
15446
15447 # Whether or not to build static libraries.
15448 build_old_libs=$enable_static
15449
15450 # Whether or not to add -lc for building shared libraries.
15451 build_libtool_need_lc=$archive_cmds_need_lc_F77
15452
15453 # Whether or not to disallow shared libs when runtime libs are static
15454 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15455
15456 # Whether or not to optimize for fast installation.
15457 fast_install=$enable_fast_install
15458
15459 # The host system.
15460 host_alias=$host_alias
15461 host=$host
15462 host_os=$host_os
15463
15464 # The build system.
15465 build_alias=$build_alias
15466 build=$build
15467 build_os=$build_os
15468
15469 # An echo program that does not interpret backslashes.
15470 echo=$lt_echo
15471
15472 # The archiver.
15473 AR=$lt_AR
15474 AR_FLAGS=$lt_AR_FLAGS
15475
15476 # A C compiler.
15477 LTCC=$lt_LTCC
15478
15479 # LTCC compiler flags.
15480 LTCFLAGS=$lt_LTCFLAGS
15481
15482 # A language-specific compiler.
15483 CC=$lt_compiler_F77
15484
15485 # Is the compiler the GNU C compiler?
15486 with_gcc=$GCC_F77
15487
15488 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
15489 gcc_ver=\`gcc -dumpversion\`
15490
15491 # An ERE matcher.
15492 EGREP=$lt_EGREP
15493
15494 # The linker used to build libraries.
15495 LD=$lt_LD_F77
15496
15497 # Whether we need hard or soft links.
15498 LN_S=$lt_LN_S
15499
15500 # A BSD-compatible nm program.
15501 NM=$lt_NM
15502
15503 # A symbol stripping program
15504 STRIP=$lt_STRIP
15505
15506 # Used to examine libraries when file_magic_cmd begins "file"
15507 MAGIC_CMD=$MAGIC_CMD
15508
15509 # Used on cygwin: DLL creation program.
15510 DLLTOOL="$DLLTOOL"
15511
15512 # Used on cygwin: object dumper.
15513 OBJDUMP="$OBJDUMP"
15514
15515 # Used on cygwin: assembler.
15516 AS="$AS"
15517
15518 # The name of the directory that contains temporary libtool files.
15519 objdir=$objdir
15520
15521 # How to create reloadable object files.
15522 reload_flag=$lt_reload_flag
15523 reload_cmds=$lt_reload_cmds
15524
15525 # How to pass a linker flag through the compiler.
15526 wl=$lt_lt_prog_compiler_wl_F77
15527
15528 # Object file suffix (normally "o").
15529 objext="$ac_objext"
15530
15531 # Old archive suffix (normally "a").
15532 libext="$libext"
15533
15534 # Shared library suffix (normally ".so").
15535 shrext_cmds='$shrext_cmds'
15536
15537 # Executable file suffix (normally "").
15538 exeext="$exeext"
15539
15540 # Additional compiler flags for building library objects.
15541 pic_flag=$lt_lt_prog_compiler_pic_F77
15542 pic_mode=$pic_mode
15543
15544 # What is the maximum length of a command?
15545 max_cmd_len=$lt_cv_sys_max_cmd_len
15546
15547 # Does compiler simultaneously support -c and -o options?
15548 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15549
15550 # Must we lock files when doing compilation?
15551 need_locks=$lt_need_locks
15552
15553 # Do we need the lib prefix for modules?
15554 need_lib_prefix=$need_lib_prefix
15555
15556 # Do we need a version for libraries?
15557 need_version=$need_version
15558
15559 # Whether dlopen is supported.
15560 dlopen_support=$enable_dlopen
15561
15562 # Whether dlopen of programs is supported.
15563 dlopen_self=$enable_dlopen_self
15564
15565 # Whether dlopen of statically linked programs is supported.
15566 dlopen_self_static=$enable_dlopen_self_static
15567
15568 # Compiler flag to prevent dynamic linking.
15569 link_static_flag=$lt_lt_prog_compiler_static_F77
15570
15571 # Compiler flag to turn off builtin functions.
15572 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15573
15574 # Compiler flag to allow reflexive dlopens.
15575 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15576
15577 # Compiler flag to generate shared objects directly from archives.
15578 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15579
15580 # Compiler flag to generate thread-safe objects.
15581 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15582
15583 # Library versioning type.
15584 version_type=$version_type
15585
15586 # Format of library name prefix.
15587 libname_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.
15591 library_names_spec=$lt_library_names_spec
15592
15593 # The coded name of the library, if different from the real name.
15594 soname_spec=$lt_soname_spec
15595
15596 # Commands used to build and install an old-style archive.
15597 RANLIB=$lt_RANLIB
15598 old_archive_cmds=$lt_old_archive_cmds_F77
15599 old_postinstall_cmds=$lt_old_postinstall_cmds
15600 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15601
15602 # Create an old-style archive from a shared archive.
15603 old_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.
15606 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15607
15608 # Commands used to build and install a shared archive.
15609 archive_cmds=$lt_archive_cmds_F77
15610 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15611 postinstall_cmds=$lt_postinstall_cmds
15612 postuninstall_cmds=$lt_postuninstall_cmds
15613
15614 # Commands used to build a loadable module (assumed same as above if empty)
15615 module_cmds=$lt_module_cmds_F77
15616 module_expsym_cmds=$lt_module_expsym_cmds_F77
15617
15618 # Commands to strip libraries.
15619 old_striplib=$lt_old_striplib
15620 striplib=$lt_striplib
15621
15622 # Dependencies to place before the objects being linked to create a
15623 # shared library.
15624 predep_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.
15628 postdep_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.
15632 predeps=$lt_predeps_F77
15633
15634 # Dependencies to place after the objects being linked to create a
15635 # shared library.
15636 postdeps=$lt_postdeps_F77
15637
15638 # The library search path used internally by the compiler when linking
15639 # a shared library.
15640 compiler_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.
15643 deplibs_check_method=$lt_deplibs_check_method
15644
15645 # Command to use when deplibs_check_method == file_magic.
15646 file_magic_cmd=$lt_file_magic_cmd
15647
15648 # Flag that allows shared libraries with undefined symbols to be built.
15649 allow_undefined_flag=$lt_allow_undefined_flag_F77
15650
15651 # Flag that forces no undefined symbols.
15652 no_undefined_flag=$lt_no_undefined_flag_F77
15653
15654 # Commands used to finish a libtool library installation in a directory.
15655 finish_cmds=$lt_finish_cmds
15656
15657 # Same as above, but a single script fragment to be evaled but not shown.
15658 finish_eval=$lt_finish_eval
15659
15660 # Take the output of nm and produce a listing of raw symbols and C names.
15661 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15662
15663 # Transform the output of nm in a proper C declaration
15664 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15665
15666 # Transform the output of nm in a C name address pair
15667 global_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.
15670 runpath_var=$runpath_var
15671
15672 # This is the shared library path variable.
15673 shlibpath_var=$shlibpath_var
15674
15675 # Is shlibpath searched before the hard-coded library search path?
15676 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15677
15678 # How to hardcode a shared library path into an executable.
15679 hardcode_action=$hardcode_action_F77
15680
15681 # Whether we should hardcode library paths into libraries.
15682 hardcode_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.
15686 hardcode_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.
15691 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15692
15693 # Whether we need a single -rpath flag with a separated argument.
15694 hardcode_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.
15698 hardcode_direct=$hardcode_direct_F77
15699
15700 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15701 # resulting binary.
15702 hardcode_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.
15706 hardcode_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.
15710 hardcode_automatic=$hardcode_automatic_F77
15711
15712 # Variables whose values should be saved in libtool wrapper scripts and
15713 # restored at relink time.
15714 variables_saved_for_relink="$variables_saved_for_relink"
15715
15716 # Whether libtool must link a program against all its dependency libraries.
15717 link_all_deplibs=$link_all_deplibs_F77
15718
15719 # Compile-time system search path for libraries
15720 sys_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
15723 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15724
15725 # Fix the shell variable \$srcfile for the compiler.
15726 fix_srcfile_path="$fix_srcfile_path_F77"
15727
15728 # Set to yes if exported symbols are required.
15729 always_export_symbols=$always_export_symbols_F77
15730
15731 # The commands to list exported symbols.
15732 export_symbols_cmds=$lt_export_symbols_cmds_F77
15733
15734 # The commands to extract the exported symbol list from a shared archive.
15735 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15736
15737 # Symbols that should not be listed in the preloaded symbols.
15738 exclude_expsyms=$lt_exclude_expsyms_F77
15739
15740 # Symbols that must always be exported.
15741 include_expsyms=$lt_include_expsyms_F77
15742
15743 # ### END LIBTOOL TAG CONFIG: $tagname
15744
15745 __EOF__
15746
15747
15748 else
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
15756 fi
15757
15758
15759 ac_ext=c
15760 ac_cpp='$CPP $CPPFLAGS'
15761 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15762 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15763 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15764
15765 CC="$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.
15778 ac_ext=java
15779
15780 # Object file extension for compiled Java test sources.
15781 objext=o
15782 objext_GCJ=$objext
15783
15784 # Code to be used in simple compile tests
15785 lt_simple_compile_test_code="class foo {}\n"
15786
15787 # Code to be used in simple link tests
15788 lt_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.
15793 LTCC=${LTCC-"$CC"}
15794
15795 # If no C compiler flags were specified, use CFLAGS.
15796 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15797
15798 # Allow CC to be a program name with arguments.
15799 compiler=$CC
15800
15801
15802 # save warnings/boilerplate of simple test code
15803 ac_outfile=conftest.$ac_objext
15804 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15805 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15806 _lt_compiler_boilerplate=`cat conftest.err`
15807 $rm conftest*
15808
15809 ac_outfile=conftest.$ac_objext
15810 printf "$lt_simple_link_test_code" >conftest.$ac_ext
15811 eval "$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.
15817 lt_save_CC="$CC"
15818 CC=${GCJ-"gcj"}
15819 compiler=$CC
15820 compiler_GCJ=$CC
15821 for 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
15828 done
15829 cc_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.
15833 archive_cmds_need_lc_GCJ=no
15834
15835 old_archive_cmds_GCJ=$old_archive_cmds
15836
15837
15838 lt_prog_compiler_no_builtin_flag_GCJ=
15839
15840 if test "$GCC" = yes; then
15841 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15842
15843
15844 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15845 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15846 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15847 echo $ECHO_N "(cached) $ECHO_C" >&6
15848 else
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:'`
15862 (eval echo "\"\$as_me:15862: $lt_compile\"" >&5)
15863 (eval "$lt_compile" 2>conftest.err)
15864 ac_status=$?
15865 cat conftest.err >&5
15866 echo "$as_me:15866: \$? = $ac_status" >&5
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
15878 fi
15879 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15880 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15881
15882 if 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"
15884 else
15885 :
15886 fi
15887
15888 fi
15889
15890 lt_prog_compiler_wl_GCJ=
15891 lt_prog_compiler_pic_GCJ=
15892 lt_prog_compiler_static_GCJ=
15893
15894 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15895 echo $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
16104 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16105 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16106
16107 #
16108 # Check to make sure the PIC flag actually works.
16109 #
16110 if test -n "$lt_prog_compiler_pic_GCJ"; then
16111
16112 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16113 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16114 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16115 echo $ECHO_N "(cached) $ECHO_C" >&6
16116 else
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:'`
16130 (eval echo "\"\$as_me:16130: $lt_compile\"" >&5)
16131 (eval "$lt_compile" 2>conftest.err)
16132 ac_status=$?
16133 cat conftest.err >&5
16134 echo "$as_me:16134: \$? = $ac_status" >&5
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
16146 fi
16147 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16148 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16149
16150 if 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
16155 else
16156 lt_prog_compiler_pic_GCJ=
16157 lt_prog_compiler_can_build_shared_GCJ=no
16158 fi
16159
16160 fi
16161 case $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 ;;
16169 esac
16170
16171 #
16172 # Check to make sure the static flag actually works.
16173 #
16174 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16175 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16176 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
16177 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16178 echo $ECHO_N "(cached) $ECHO_C" >&6
16179 else
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
16202 fi
16203 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16204 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
16205
16206 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16207 :
16208 else
16209 lt_prog_compiler_static_GCJ=
16210 fi
16211
16212
16213 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16214 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16215 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16216 echo $ECHO_N "(cached) $ECHO_C" >&6
16217 else
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:'`
16234 (eval echo "\"\$as_me:16234: $lt_compile\"" >&5)
16235 (eval "$lt_compile" 2>out/conftest.err)
16236 ac_status=$?
16237 cat out/conftest.err >&5
16238 echo "$as_me:16238: \$? = $ac_status" >&5
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
16259 fi
16260 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16261 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16262
16263
16264 hard_links="nottested"
16265 if 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
16268 echo $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
16276 echo "${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
16279 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16280 need_locks=warn
16281 fi
16282 else
16283 need_locks=no
16284 fi
16285
16286 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16287 echo $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
16333 done
16334 cc_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
16394 EOF
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
16516 EOF
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
16689 cat confdefs.h >>conftest.$ac_ext
16690 cat >>conftest.$ac_ext <<_ACEOF
16691 /* end confdefs.h. */
16692
16693 int
16694 main ()
16695 {
16696
16697 ;
16698 return 0;
16699 }
16700 _ACEOF
16701 rm -f conftest.$ac_objext conftest$ac_exeext
16702 if { (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
16724 aix_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.
16727 if 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
16729 else
16730 echo "$as_me: failed program was:" >&5
16731 sed 's/^/| /' conftest.$ac_ext >&5
16732
16733 fi
16734 rm -f conftest.err conftest.$ac_objext \
16735 conftest$ac_exeext conftest.$ac_ext
16736 if 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
16750 cat confdefs.h >>conftest.$ac_ext
16751 cat >>conftest.$ac_ext <<_ACEOF
16752 /* end confdefs.h. */
16753
16754 int
16755 main ()
16756 {
16757
16758 ;
16759 return 0;
16760 }
16761 _ACEOF
16762 rm -f conftest.$ac_objext conftest$ac_exeext
16763 if { (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
16785 aix_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.
16788 if 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
16790 else
16791 echo "$as_me: failed program was:" >&5
16792 sed 's/^/| /' conftest.$ac_ext >&5
16793
16794 fi
16795 rm -f conftest.err conftest.$ac_objext \
16796 conftest$ac_exeext conftest.$ac_ext
16797 if 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
17244 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17245 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17246 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17247
17248 #
17249 # Do we need to explicitly link libc?
17250 #
17251 case "x$archive_cmds_need_lc_GCJ" in
17252 x|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
17266 echo $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
17304 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17305 ;;
17306 esac
17307 fi
17308 ;;
17309 esac
17310
17311 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17312 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17313 library_names_spec=
17314 libname_spec='lib$name'
17315 soname_spec=
17316 shrext_cmds=".so"
17317 postinstall_cmds=
17318 postuninstall_cmds=
17319 finish_cmds=
17320 finish_eval=
17321 shlibpath_var=
17322 shlibpath_overrides_runpath=unknown
17323 version_type=none
17324 dynamic_linker="$host_os ld.so"
17325 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17326 if 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
17337 else
17338 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17339 fi
17340 need_lib_prefix=unknown
17341 hardcode_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
17345 need_version=unknown
17346
17347 case $host_os in
17348 aix3*)
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
17357 aix4* | 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
17401 amigaos*)
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
17407 beos*)
17408 library_names_spec='${libname}${shared_ext}'
17409 dynamic_linker="$host_os ld.so"
17410 shlibpath_var=LIBRARY_PATH
17411 ;;
17412
17413 bsdi[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
17427 cygwin* | 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
17486 darwin* | 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
17505 dgux*)
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
17514 freebsd1*)
17515 dynamic_linker=no
17516 ;;
17517
17518 kfreebsd*-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
17530 freebsd* | 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
17574 gnu*)
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
17584 hpux9* | 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
17630 interix3*)
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
17642 irix5* | 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.
17680 linux*oldld* | linux*aout* | linux*coff*)
17681 dynamic_linker=no
17682 ;;
17683
17684 # This must be Linux ELF.
17685 linux*)
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*)
17703 echo '#line 17703 "configure"' > conftest.$ac_ext
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
17735 knetbsd*-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
17747 netbsd*)
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
17765 newsos6)
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
17772 nto-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
17782 openbsd*)
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
17808 os2*)
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
17817 osf3* | 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
17828 solaris*)
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
17841 sunos4*)
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
17853 sysv4 | 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
17877 sysv4*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
17886 sysv5* | 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
17909 uts4*)
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 ;;
17919 esac
17920 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17921 echo "${ECHO_T}$dynamic_linker" >&6
17922 test "$dynamic_linker" = no && can_build_shared=no
17923
17924 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17925 if test "$GCC" = yes; then
17926 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17927 fi
17928
17929 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17930 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17931 hardcode_action_GCJ=
17932 if 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
17949 else
17950 # We cannot hardcode anything, or else we can only hardcode existing
17951 # directories.
17952 hardcode_action_GCJ=unsupported
17953 fi
17954 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17955 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17956
17957 if test "$hardcode_action_GCJ" = relink; then
17958 # Fast installation is not supported
17959 enable_fast_install=no
17960 elif test "$shlibpath_overrides_runpath" = yes ||
17961 test "$enable_shared" = no; then
17962 # Fast installation is not necessary
17963 enable_fast_install=needless
17964 fi
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.
17971 if 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
18053 cfgfile="$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.
18061 SHELL=$lt_SHELL
18062
18063 # Whether or not to build shared libraries.
18064 build_libtool_libs=$enable_shared
18065
18066 # Whether or not to build static libraries.
18067 build_old_libs=$enable_static
18068
18069 # Whether or not to add -lc for building shared libraries.
18070 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18071
18072 # Whether or not to disallow shared libs when runtime libs are static
18073 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18074
18075 # Whether or not to optimize for fast installation.
18076 fast_install=$enable_fast_install
18077
18078 # The host system.
18079 host_alias=$host_alias
18080 host=$host
18081 host_os=$host_os
18082
18083 # The build system.
18084 build_alias=$build_alias
18085 build=$build
18086 build_os=$build_os
18087
18088 # An echo program that does not interpret backslashes.
18089 echo=$lt_echo
18090
18091 # The archiver.
18092 AR=$lt_AR
18093 AR_FLAGS=$lt_AR_FLAGS
18094
18095 # A C compiler.
18096 LTCC=$lt_LTCC
18097
18098 # LTCC compiler flags.
18099 LTCFLAGS=$lt_LTCFLAGS
18100
18101 # A language-specific compiler.
18102 CC=$lt_compiler_GCJ
18103
18104 # Is the compiler the GNU C compiler?
18105 with_gcc=$GCC_GCJ
18106
18107 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
18108 gcc_ver=\`gcc -dumpversion\`
18109
18110 # An ERE matcher.
18111 EGREP=$lt_EGREP
18112
18113 # The linker used to build libraries.
18114 LD=$lt_LD_GCJ
18115
18116 # Whether we need hard or soft links.
18117 LN_S=$lt_LN_S
18118
18119 # A BSD-compatible nm program.
18120 NM=$lt_NM
18121
18122 # A symbol stripping program
18123 STRIP=$lt_STRIP
18124
18125 # Used to examine libraries when file_magic_cmd begins "file"
18126 MAGIC_CMD=$MAGIC_CMD
18127
18128 # Used on cygwin: DLL creation program.
18129 DLLTOOL="$DLLTOOL"
18130
18131 # Used on cygwin: object dumper.
18132 OBJDUMP="$OBJDUMP"
18133
18134 # Used on cygwin: assembler.
18135 AS="$AS"
18136
18137 # The name of the directory that contains temporary libtool files.
18138 objdir=$objdir
18139
18140 # How to create reloadable object files.
18141 reload_flag=$lt_reload_flag
18142 reload_cmds=$lt_reload_cmds
18143
18144 # How to pass a linker flag through the compiler.
18145 wl=$lt_lt_prog_compiler_wl_GCJ
18146
18147 # Object file suffix (normally "o").
18148 objext="$ac_objext"
18149
18150 # Old archive suffix (normally "a").
18151 libext="$libext"
18152
18153 # Shared library suffix (normally ".so").
18154 shrext_cmds='$shrext_cmds'
18155
18156 # Executable file suffix (normally "").
18157 exeext="$exeext"
18158
18159 # Additional compiler flags for building library objects.
18160 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18161 pic_mode=$pic_mode
18162
18163 # What is the maximum length of a command?
18164 max_cmd_len=$lt_cv_sys_max_cmd_len
18165
18166 # Does compiler simultaneously support -c and -o options?
18167 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18168
18169 # Must we lock files when doing compilation?
18170 need_locks=$lt_need_locks
18171
18172 # Do we need the lib prefix for modules?
18173 need_lib_prefix=$need_lib_prefix
18174
18175 # Do we need a version for libraries?
18176 need_version=$need_version
18177
18178 # Whether dlopen is supported.
18179 dlopen_support=$enable_dlopen
18180
18181 # Whether dlopen of programs is supported.
18182 dlopen_self=$enable_dlopen_self
18183
18184 # Whether dlopen of statically linked programs is supported.
18185 dlopen_self_static=$enable_dlopen_self_static
18186
18187 # Compiler flag to prevent dynamic linking.
18188 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18189
18190 # Compiler flag to turn off builtin functions.
18191 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18192
18193 # Compiler flag to allow reflexive dlopens.
18194 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18195
18196 # Compiler flag to generate shared objects directly from archives.
18197 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18198
18199 # Compiler flag to generate thread-safe objects.
18200 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18201
18202 # Library versioning type.
18203 version_type=$version_type
18204
18205 # Format of library name prefix.
18206 libname_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.
18210 library_names_spec=$lt_library_names_spec
18211
18212 # The coded name of the library, if different from the real name.
18213 soname_spec=$lt_soname_spec
18214
18215 # Commands used to build and install an old-style archive.
18216 RANLIB=$lt_RANLIB
18217 old_archive_cmds=$lt_old_archive_cmds_GCJ
18218 old_postinstall_cmds=$lt_old_postinstall_cmds
18219 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18220
18221 # Create an old-style archive from a shared archive.
18222 old_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.
18225 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18226
18227 # Commands used to build and install a shared archive.
18228 archive_cmds=$lt_archive_cmds_GCJ
18229 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18230 postinstall_cmds=$lt_postinstall_cmds
18231 postuninstall_cmds=$lt_postuninstall_cmds
18232
18233 # Commands used to build a loadable module (assumed same as above if empty)
18234 module_cmds=$lt_module_cmds_GCJ
18235 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18236
18237 # Commands to strip libraries.
18238 old_striplib=$lt_old_striplib
18239 striplib=$lt_striplib
18240
18241 # Dependencies to place before the objects being linked to create a
18242 # shared library.
18243 predep_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.
18247 postdep_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.
18251 predeps=$lt_predeps_GCJ
18252
18253 # Dependencies to place after the objects being linked to create a
18254 # shared library.
18255 postdeps=$lt_postdeps_GCJ
18256
18257 # The library search path used internally by the compiler when linking
18258 # a shared library.
18259 compiler_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.
18262 deplibs_check_method=$lt_deplibs_check_method
18263
18264 # Command to use when deplibs_check_method == file_magic.
18265 file_magic_cmd=$lt_file_magic_cmd
18266
18267 # Flag that allows shared libraries with undefined symbols to be built.
18268 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18269
18270 # Flag that forces no undefined symbols.
18271 no_undefined_flag=$lt_no_undefined_flag_GCJ
18272
18273 # Commands used to finish a libtool library installation in a directory.
18274 finish_cmds=$lt_finish_cmds
18275
18276 # Same as above, but a single script fragment to be evaled but not shown.
18277 finish_eval=$lt_finish_eval
18278
18279 # Take the output of nm and produce a listing of raw symbols and C names.
18280 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18281
18282 # Transform the output of nm in a proper C declaration
18283 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18284
18285 # Transform the output of nm in a C name address pair
18286 global_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.
18289 runpath_var=$runpath_var
18290
18291 # This is the shared library path variable.
18292 shlibpath_var=$shlibpath_var
18293
18294 # Is shlibpath searched before the hard-coded library search path?
18295 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18296
18297 # How to hardcode a shared library path into an executable.
18298 hardcode_action=$hardcode_action_GCJ
18299
18300 # Whether we should hardcode library paths into libraries.
18301 hardcode_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.
18305 hardcode_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.
18310 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18311
18312 # Whether we need a single -rpath flag with a separated argument.
18313 hardcode_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.
18317 hardcode_direct=$hardcode_direct_GCJ
18318
18319 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18320 # resulting binary.
18321 hardcode_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.
18325 hardcode_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.
18329 hardcode_automatic=$hardcode_automatic_GCJ
18330
18331 # Variables whose values should be saved in libtool wrapper scripts and
18332 # restored at relink time.
18333 variables_saved_for_relink="$variables_saved_for_relink"
18334
18335 # Whether libtool must link a program against all its dependency libraries.
18336 link_all_deplibs=$link_all_deplibs_GCJ
18337
18338 # Compile-time system search path for libraries
18339 sys_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
18342 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18343
18344 # Fix the shell variable \$srcfile for the compiler.
18345 fix_srcfile_path="$fix_srcfile_path_GCJ"
18346
18347 # Set to yes if exported symbols are required.
18348 always_export_symbols=$always_export_symbols_GCJ
18349
18350 # The commands to list exported symbols.
18351 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18352
18353 # The commands to extract the exported symbol list from a shared archive.
18354 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18355
18356 # Symbols that should not be listed in the preloaded symbols.
18357 exclude_expsyms=$lt_exclude_expsyms_GCJ
18358
18359 # Symbols that must always be exported.
18360 include_expsyms=$lt_include_expsyms_GCJ
18361
18362 # ### END LIBTOOL TAG CONFIG: $tagname
18363
18364 __EOF__
18365
18366
18367 else
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
18375 fi
18376
18377
18378 ac_ext=c
18379 ac_cpp='$CPP $CPPFLAGS'
18380 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18381 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18382 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18383
18384 CC="$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.
18396 ac_ext=rc
18397
18398 # Object file extension for compiled RC test sources.
18399 objext=o
18400 objext_RC=$objext
18401
18402 # Code to be used in simple compile tests
18403 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18404
18405 # Code to be used in simple link tests
18406 lt_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.
18411 LTCC=${LTCC-"$CC"}
18412
18413 # If no C compiler flags were specified, use CFLAGS.
18414 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18415
18416 # Allow CC to be a program name with arguments.
18417 compiler=$CC
18418
18419
18420 # save warnings/boilerplate of simple test code
18421 ac_outfile=conftest.$ac_objext
18422 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18423 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18424 _lt_compiler_boilerplate=`cat conftest.err`
18425 $rm conftest*
18426
18427 ac_outfile=conftest.$ac_objext
18428 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18429 eval "$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.
18435 lt_save_CC="$CC"
18436 CC=${RC-"windres"}
18437 compiler=$CC
18438 compiler_RC=$CC
18439 for 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
18446 done
18447 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18448
18449 lt_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.
18455 if 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
18537 cfgfile="$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.
18545 SHELL=$lt_SHELL
18546
18547 # Whether or not to build shared libraries.
18548 build_libtool_libs=$enable_shared
18549
18550 # Whether or not to build static libraries.
18551 build_old_libs=$enable_static
18552
18553 # Whether or not to add -lc for building shared libraries.
18554 build_libtool_need_lc=$archive_cmds_need_lc_RC
18555
18556 # Whether or not to disallow shared libs when runtime libs are static
18557 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18558
18559 # Whether or not to optimize for fast installation.
18560 fast_install=$enable_fast_install
18561
18562 # The host system.
18563 host_alias=$host_alias
18564 host=$host
18565 host_os=$host_os
18566
18567 # The build system.
18568 build_alias=$build_alias
18569 build=$build
18570 build_os=$build_os
18571
18572 # An echo program that does not interpret backslashes.
18573 echo=$lt_echo
18574
18575 # The archiver.
18576 AR=$lt_AR
18577 AR_FLAGS=$lt_AR_FLAGS
18578
18579 # A C compiler.
18580 LTCC=$lt_LTCC
18581
18582 # LTCC compiler flags.
18583 LTCFLAGS=$lt_LTCFLAGS
18584
18585 # A language-specific compiler.
18586 CC=$lt_compiler_RC
18587
18588 # Is the compiler the GNU C compiler?
18589 with_gcc=$GCC_RC
18590
18591 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
18592 gcc_ver=\`gcc -dumpversion\`
18593
18594 # An ERE matcher.
18595 EGREP=$lt_EGREP
18596
18597 # The linker used to build libraries.
18598 LD=$lt_LD_RC
18599
18600 # Whether we need hard or soft links.
18601 LN_S=$lt_LN_S
18602
18603 # A BSD-compatible nm program.
18604 NM=$lt_NM
18605
18606 # A symbol stripping program
18607 STRIP=$lt_STRIP
18608
18609 # Used to examine libraries when file_magic_cmd begins "file"
18610 MAGIC_CMD=$MAGIC_CMD
18611
18612 # Used on cygwin: DLL creation program.
18613 DLLTOOL="$DLLTOOL"
18614
18615 # Used on cygwin: object dumper.
18616 OBJDUMP="$OBJDUMP"
18617
18618 # Used on cygwin: assembler.
18619 AS="$AS"
18620
18621 # The name of the directory that contains temporary libtool files.
18622 objdir=$objdir
18623
18624 # How to create reloadable object files.
18625 reload_flag=$lt_reload_flag
18626 reload_cmds=$lt_reload_cmds
18627
18628 # How to pass a linker flag through the compiler.
18629 wl=$lt_lt_prog_compiler_wl_RC
18630
18631 # Object file suffix (normally "o").
18632 objext="$ac_objext"
18633
18634 # Old archive suffix (normally "a").
18635 libext="$libext"
18636
18637 # Shared library suffix (normally ".so").
18638 shrext_cmds='$shrext_cmds'
18639
18640 # Executable file suffix (normally "").
18641 exeext="$exeext"
18642
18643 # Additional compiler flags for building library objects.
18644 pic_flag=$lt_lt_prog_compiler_pic_RC
18645 pic_mode=$pic_mode
18646
18647 # What is the maximum length of a command?
18648 max_cmd_len=$lt_cv_sys_max_cmd_len
18649
18650 # Does compiler simultaneously support -c and -o options?
18651 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18652
18653 # Must we lock files when doing compilation?
18654 need_locks=$lt_need_locks
18655
18656 # Do we need the lib prefix for modules?
18657 need_lib_prefix=$need_lib_prefix
18658
18659 # Do we need a version for libraries?
18660 need_version=$need_version
18661
18662 # Whether dlopen is supported.
18663 dlopen_support=$enable_dlopen
18664
18665 # Whether dlopen of programs is supported.
18666 dlopen_self=$enable_dlopen_self
18667
18668 # Whether dlopen of statically linked programs is supported.
18669 dlopen_self_static=$enable_dlopen_self_static
18670
18671 # Compiler flag to prevent dynamic linking.
18672 link_static_flag=$lt_lt_prog_compiler_static_RC
18673
18674 # Compiler flag to turn off builtin functions.
18675 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18676
18677 # Compiler flag to allow reflexive dlopens.
18678 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18679
18680 # Compiler flag to generate shared objects directly from archives.
18681 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18682
18683 # Compiler flag to generate thread-safe objects.
18684 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18685
18686 # Library versioning type.
18687 version_type=$version_type
18688
18689 # Format of library name prefix.
18690 libname_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.
18694 library_names_spec=$lt_library_names_spec
18695
18696 # The coded name of the library, if different from the real name.
18697 soname_spec=$lt_soname_spec
18698
18699 # Commands used to build and install an old-style archive.
18700 RANLIB=$lt_RANLIB
18701 old_archive_cmds=$lt_old_archive_cmds_RC
18702 old_postinstall_cmds=$lt_old_postinstall_cmds
18703 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18704
18705 # Create an old-style archive from a shared archive.
18706 old_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.
18709 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18710
18711 # Commands used to build and install a shared archive.
18712 archive_cmds=$lt_archive_cmds_RC
18713 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18714 postinstall_cmds=$lt_postinstall_cmds
18715 postuninstall_cmds=$lt_postuninstall_cmds
18716
18717 # Commands used to build a loadable module (assumed same as above if empty)
18718 module_cmds=$lt_module_cmds_RC
18719 module_expsym_cmds=$lt_module_expsym_cmds_RC
18720
18721 # Commands to strip libraries.
18722 old_striplib=$lt_old_striplib
18723 striplib=$lt_striplib
18724
18725 # Dependencies to place before the objects being linked to create a
18726 # shared library.
18727 predep_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.
18731 postdep_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.
18735 predeps=$lt_predeps_RC
18736
18737 # Dependencies to place after the objects being linked to create a
18738 # shared library.
18739 postdeps=$lt_postdeps_RC
18740
18741 # The library search path used internally by the compiler when linking
18742 # a shared library.
18743 compiler_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.
18746 deplibs_check_method=$lt_deplibs_check_method
18747
18748 # Command to use when deplibs_check_method == file_magic.
18749 file_magic_cmd=$lt_file_magic_cmd
18750
18751 # Flag that allows shared libraries with undefined symbols to be built.
18752 allow_undefined_flag=$lt_allow_undefined_flag_RC
18753
18754 # Flag that forces no undefined symbols.
18755 no_undefined_flag=$lt_no_undefined_flag_RC
18756
18757 # Commands used to finish a libtool library installation in a directory.
18758 finish_cmds=$lt_finish_cmds
18759
18760 # Same as above, but a single script fragment to be evaled but not shown.
18761 finish_eval=$lt_finish_eval
18762
18763 # Take the output of nm and produce a listing of raw symbols and C names.
18764 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18765
18766 # Transform the output of nm in a proper C declaration
18767 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18768
18769 # Transform the output of nm in a C name address pair
18770 global_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.
18773 runpath_var=$runpath_var
18774
18775 # This is the shared library path variable.
18776 shlibpath_var=$shlibpath_var
18777
18778 # Is shlibpath searched before the hard-coded library search path?
18779 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18780
18781 # How to hardcode a shared library path into an executable.
18782 hardcode_action=$hardcode_action_RC
18783
18784 # Whether we should hardcode library paths into libraries.
18785 hardcode_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.
18789 hardcode_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.
18794 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18795
18796 # Whether we need a single -rpath flag with a separated argument.
18797 hardcode_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.
18801 hardcode_direct=$hardcode_direct_RC
18802
18803 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18804 # resulting binary.
18805 hardcode_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.
18809 hardcode_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.
18813 hardcode_automatic=$hardcode_automatic_RC
18814
18815 # Variables whose values should be saved in libtool wrapper scripts and
18816 # restored at relink time.
18817 variables_saved_for_relink="$variables_saved_for_relink"
18818
18819 # Whether libtool must link a program against all its dependency libraries.
18820 link_all_deplibs=$link_all_deplibs_RC
18821
18822 # Compile-time system search path for libraries
18823 sys_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
18826 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18827
18828 # Fix the shell variable \$srcfile for the compiler.
18829 fix_srcfile_path="$fix_srcfile_path_RC"
18830
18831 # Set to yes if exported symbols are required.
18832 always_export_symbols=$always_export_symbols_RC
18833
18834 # The commands to list exported symbols.
18835 export_symbols_cmds=$lt_export_symbols_cmds_RC
18836
18837 # The commands to extract the exported symbol list from a shared archive.
18838 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18839
18840 # Symbols that should not be listed in the preloaded symbols.
18841 exclude_expsyms=$lt_exclude_expsyms_RC
18842
18843 # Symbols that must always be exported.
18844 include_expsyms=$lt_include_expsyms_RC
18845
18846 # ### END LIBTOOL TAG CONFIG: $tagname
18847
18848 __EOF__
18849
18850
18851 else
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
18859 fi
18860
18861
18862 ac_ext=c
18863 ac_cpp='$CPP $CPPFLAGS'
18864 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18865 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18866 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18867
18868 CC="$lt_save_CC"
18869
18870 ;;
18871
18872 *)
18873 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18874 echo "$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
18894 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18895 { (exit 1); exit 1; }; }
18896 fi
18897 fi
18898
18899
18900
18901 # This can be used to rebuild libtool when needed
18902 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18903
18904 # Always use our own libtool.
18905 LIBTOOL='$(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
18928
18929
18930 echo "$as_me:$LINENO: checking spl license" >&5
18931 echo $ECHO_N "checking spl license... $ECHO_C" >&6
18932 LICENSE=GPL
18933 echo "$as_me:$LINENO: result: $LICENSE" >&5
18934 echo "${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.
18942 if test "${with_config+set}" = set; then
18943 withval="$with_config"
18944 SPL_CONFIG="$withval"
18945 fi;
18946
18947 echo "$as_me:$LINENO: checking spl config" >&5
18948 echo $ECHO_N "checking spl config... $ECHO_C" >&6
18949 echo "$as_me:$LINENO: result: $SPL_CONFIG" >&5
18950 echo "${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.
18958 if test "${with_linux+set}" = set; then
18959 withval="$with_linux"
18960 kernelsrc="$withval"
18961 fi;
18962
18963
18964 # Check whether --with-linux-obj or --without-linux-obj was given.
18965 if test "${with_linux_obj+set}" = set; then
18966 withval="$with_linux_obj"
18967 kernelbuild="$withval"
18968 fi;
18969
18970 echo "$as_me:$LINENO: checking kernel source directory" >&5
18971 echo $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
18980 echo "${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
18984 echo "$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
18996 echo "${ECHO_T}$kernelsrc" >&6
18997 echo "$as_me:$LINENO: checking kernel build directory" >&5
18998 echo $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
19009 echo "${ECHO_T}$kernelbuild" >&6
19010
19011 echo "$as_me:$LINENO: checking kernel source version" >&5
19012 echo $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
19032 echo "${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
19036 echo "$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
19043 echo "${ECHO_T}$kernsrcver" >&6
19044
19045 LINUX=${kernelsrc}
19046 LINUX_OBJ=${kernelbuild}
19047 LINUX_VERSION=${kernsrcver}
19048
19049
19050
19051
19052
19053
19054 modpost=$LINUX/scripts/Makefile.modpost
19055 echo "$as_me:$LINENO: checking kernel file name for module symbols" >&5
19056 echo $ECHO_N "checking kernel file name for module symbols... $ECHO_C" >&6
19057 if test -f "$modpost"; then
19058 if grep -q Modules.symvers $modpost; then
19059 LINUX_SYMBOLS=Modules.symvers
19060 else
19061 LINUX_SYMBOLS=Module.symvers
19062 fi
19063 else
19064 LINUX_SYMBOLS=NONE
19065 fi
19066 echo "$as_me:$LINENO: result: $LINUX_SYMBOLS" >&5
19067 echo "${ECHO_T}$LINUX_SYMBOLS" >&6
19068
19069
19070
19071
19072 KERNELMAKE_PARAMS="V=1"
19073
19074 abs_srcdir=`readlink -f ${srcdir}`
19075 KERNELCPPFLAGS="$KERNELCPPFLAGS -Wstrict-prototypes -Werror"
19076 KERNELCPPFLAGS="$KERNELCPPFLAGS -I${abs_srcdir} -I${abs_srcdir}/include"
19077
19078 if test "${LINUX_OBJ}" != "${LINUX}"; then
19079 KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
19080 fi
19081
19082
19083
19084
19085
19086 echo "$as_me:$LINENO: checking whether debugging is enabled" >&5
19087 echo $ECHO_N "checking whether debugging is enabled... $ECHO_C" >&6
19088 # Check whether --enable-debug or --disable-debug was given.
19089 if test "${enable_debug+set}" = set; then
19090 enableval="$enable_debug"
19091 case "$enableval" in
19092 yes) spl_ac_debug=yes ;;
19093 no) spl_ac_debug=no ;;
19094 *) echo "$as_me:$LINENO: result: Error!" >&5
19095 echo "${ECHO_T}Error!" >&6
19096 { { echo "$as_me:$LINENO: error: Bad value \"$enableval\" for --enable-debug" >&5
19097 echo "$as_me: error: Bad value \"$enableval\" for --enable-debug" >&2;}
19098 { (exit 1); exit 1; }; } ;;
19099 esac
19100
19101 fi;
19102 if test "$spl_ac_debug" = yes; then
19103 echo "$as_me:$LINENO: result: yes" >&5
19104 echo "${ECHO_T}yes" >&6
19105 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG"
19106 else
19107 echo "$as_me:$LINENO: result: no" >&5
19108 echo "${ECHO_T}no" >&6
19109 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DNDEBUG"
19110 fi
19111
19112
19113 echo "$as_me:$LINENO: checking whether kmem debugging is enabled" >&5
19114 echo $ECHO_N "checking whether kmem debugging is enabled... $ECHO_C" >&6
19115 # Check whether --enable-debug-kmem or --disable-debug-kmem was given.
19116 if test "${enable_debug_kmem+set}" = set; then
19117 enableval="$enable_debug_kmem"
19118 case "$enableval" in
19119 yes) spl_ac_debug_kmem=yes ;;
19120 no) spl_ac_debug_kmem=no ;;
19121 *) echo "$as_me:$LINENO: result: Error!" >&5
19122 echo "${ECHO_T}Error!" >&6
19123 { { echo "$as_me:$LINENO: error: Bad value \"$enableval\" for --enable-debug-kmem" >&5
19124 echo "$as_me: error: Bad value \"$enableval\" for --enable-debug-kmem" >&2;}
19125 { (exit 1); exit 1; }; } ;;
19126 esac
19127
19128 fi;
19129 if test "$spl_ac_debug_kmem" = yes; then
19130 echo "$as_me:$LINENO: result: yes" >&5
19131 echo "${ECHO_T}yes" >&6
19132
19133 cat >>confdefs.h <<\_ACEOF
19134 #define DEBUG_KMEM 1
19135 _ACEOF
19136
19137 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_KMEM"
19138 else
19139 echo "$as_me:$LINENO: result: no" >&5
19140 echo "${ECHO_T}no" >&6
19141 fi
19142
19143
19144 echo "$as_me:$LINENO: checking whether mutex debugging is enabled" >&5
19145 echo $ECHO_N "checking whether mutex debugging is enabled... $ECHO_C" >&6
19146 # Check whether --enable-debug-mutex or --disable-debug-mutex was given.
19147 if test "${enable_debug_mutex+set}" = set; then
19148 enableval="$enable_debug_mutex"
19149 case "$enableval" in
19150 yes) spl_ac_debug_mutex=yes ;;
19151 no) spl_ac_debug_mutex=no ;;
19152 *) echo "$as_me:$LINENO: result: Error!" >&5
19153 echo "${ECHO_T}Error!" >&6
19154 { { echo "$as_me:$LINENO: error: Bad value \"$enableval\" for --enable-debug-mutex" >&5
19155 echo "$as_me: error: Bad value \"$enableval\" for --enable-debug-mutex" >&2;}
19156 { (exit 1); exit 1; }; } ;;
19157 esac
19158
19159 fi;
19160 if test "$spl_ac_debug_mutex" = yes; then
19161 echo "$as_me:$LINENO: result: yes" >&5
19162 echo "${ECHO_T}yes" >&6
19163
19164 cat >>confdefs.h <<\_ACEOF
19165 #define DEBUG_MUTEX 1
19166 _ACEOF
19167
19168 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_MUTEX"
19169 else
19170 echo "$as_me:$LINENO: result: no" >&5
19171 echo "${ECHO_T}no" >&6
19172 fi
19173
19174
19175 echo "$as_me:$LINENO: checking whether kstat debugging is enabled" >&5
19176 echo $ECHO_N "checking whether kstat debugging is enabled... $ECHO_C" >&6
19177 # Check whether --enable-debug-kstat or --disable-debug-kstat was given.
19178 if test "${enable_debug_kstat+set}" = set; then
19179 enableval="$enable_debug_kstat"
19180 case "$enableval" in
19181 yes) spl_ac_debug_kstat=yes ;;
19182 no) spl_ac_debug_kstat=no ;;
19183 *) echo "$as_me:$LINENO: result: Error!" >&5
19184 echo "${ECHO_T}Error!" >&6
19185 { { echo "$as_me:$LINENO: error: Bad value \"$enableval\" for --enable-debug-kstat" >&5
19186 echo "$as_me: error: Bad value \"$enableval\" for --enable-debug-kstat" >&2;}
19187 { (exit 1); exit 1; }; } ;;
19188 esac
19189
19190 fi;
19191 if test "$spl_ac_debug_kstat" = yes; then
19192 echo "$as_me:$LINENO: result: yes" >&5
19193 echo "${ECHO_T}yes" >&6
19194
19195 cat >>confdefs.h <<\_ACEOF
19196 #define DEBUG_KSTAT 1
19197 _ACEOF
19198
19199 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_KSTAT"
19200 else
19201 echo "$as_me:$LINENO: result: no" >&5
19202 echo "${ECHO_T}no" >&6
19203 fi
19204
19205
19206 echo "$as_me:$LINENO: checking whether callb debugging is enabled" >&5
19207 echo $ECHO_N "checking whether callb debugging is enabled... $ECHO_C" >&6
19208 # Check whether --enable-debug-callb or --disable-debug-callb was given.
19209 if test "${enable_debug_callb+set}" = set; then
19210 enableval="$enable_debug_callb"
19211 case "$enableval" in
19212 yes) spl_ac_debug_callb=yes ;;
19213 no) spl_ac_debug_callb=no ;;
19214 *) echo "$as_me:$LINENO: result: Error!" >&5
19215 echo "${ECHO_T}Error!" >&6
19216 { { echo "$as_me:$LINENO: error: Bad value \"$enableval\" for --enable-debug-callb" >&5
19217 echo "$as_me: error: Bad value \"$enableval\" for --enable-debug-callb" >&2;}
19218 { (exit 1); exit 1; }; } ;;
19219 esac
19220
19221 fi;
19222 if test "$spl_ac_debug_callb" = yes; then
19223 echo "$as_me:$LINENO: result: yes" >&5
19224 echo "${ECHO_T}yes" >&6
19225
19226 cat >>confdefs.h <<\_ACEOF
19227 #define DEBUG_CALLB 1
19228 _ACEOF
19229
19230 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_CALLB"
19231 else
19232 echo "$as_me:$LINENO: result: no" >&5
19233 echo "${ECHO_T}no" >&6
19234 fi
19235
19236 echo "$as_me:$LINENO: checking whether kernel defines uintptr_t" >&5
19237 echo $ECHO_N "checking whether kernel defines uintptr_t... $ECHO_C" >&6
19238
19239
19240 cat >conftest.c <<_ACEOF
19241 /* confdefs.h. */
19242 _ACEOF
19243 cat confdefs.h >>conftest.$ac_ext
19244 cat >>conftest.$ac_ext <<_ACEOF
19245 /* end confdefs.h. */
19246
19247
19248 #include <linux/types.h>
19249
19250 int
19251 main (void)
19252 {
19253
19254 uintptr_t *ptr;
19255
19256 ;
19257 return 0;
19258 }
19259
19260 _ACEOF
19261
19262
19263 rm -Rf build && mkdir -p build
19264 echo "obj-m := conftest.o" >build/Makefile
19265 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'
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); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19272 (eval $ac_try) 2>&5
19273 ac_status=$?
19274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19275 (exit $ac_status); }; }; then
19276
19277 echo "$as_me:$LINENO: result: yes" >&5
19278 echo "${ECHO_T}yes" >&6
19279
19280 cat >>confdefs.h <<\_ACEOF
19281 #define HAVE_UINTPTR_T 1
19282 _ACEOF
19283
19284
19285 else
19286 echo "$as_me: failed program was:" >&5
19287 sed 's/^/| /' conftest.$ac_ext >&5
19288
19289 echo "$as_me:$LINENO: result: no" >&5
19290 echo "${ECHO_T}no" >&6
19291
19292
19293
19294 fi
19295
19296 rm -Rf build
19297
19298
19299
19300 echo "$as_me:$LINENO: checking whether kernel defines atomic64_t" >&5
19301 echo $ECHO_N "checking whether kernel defines atomic64_t... $ECHO_C" >&6
19302
19303
19304 cat >conftest.c <<_ACEOF
19305 /* confdefs.h. */
19306 _ACEOF
19307 cat confdefs.h >>conftest.$ac_ext
19308 cat >>conftest.$ac_ext <<_ACEOF
19309 /* end confdefs.h. */
19310
19311
19312 #include <asm/atomic.h>
19313
19314 int
19315 main (void)
19316 {
19317
19318 atomic64_t *ptr;
19319
19320 ;
19321 return 0;
19322 }
19323
19324 _ACEOF
19325
19326
19327 rm -Rf build && mkdir -p build
19328 echo "obj-m := conftest.o" >build/Makefile
19329 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'
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); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19336 (eval $ac_try) 2>&5
19337 ac_status=$?
19338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19339 (exit $ac_status); }; }; then
19340
19341 echo "$as_me:$LINENO: result: yes" >&5
19342 echo "${ECHO_T}yes" >&6
19343
19344 cat >>confdefs.h <<\_ACEOF
19345 #define HAVE_ATOMIC64_T 1
19346 _ACEOF
19347
19348
19349 else
19350 echo "$as_me: failed program was:" >&5
19351 sed 's/^/| /' conftest.$ac_ext >&5
19352
19353 echo "$as_me:$LINENO: result: no" >&5
19354 echo "${ECHO_T}no" >&6
19355
19356
19357
19358 fi
19359
19360 rm -Rf build
19361
19362
19363
19364 echo "$as_me:$LINENO: checking whether INIT_WORK wants 3 args" >&5
19365 echo $ECHO_N "checking whether INIT_WORK wants 3 args... $ECHO_C" >&6
19366
19367
19368 cat >conftest.c <<_ACEOF
19369 /* confdefs.h. */
19370 _ACEOF
19371 cat confdefs.h >>conftest.$ac_ext
19372 cat >>conftest.$ac_ext <<_ACEOF
19373 /* end confdefs.h. */
19374
19375
19376 #include <linux/workqueue.h>
19377
19378 int
19379 main (void)
19380 {
19381
19382 struct work_struct work;
19383 INIT_WORK(&work, NULL, NULL);
19384
19385 ;
19386 return 0;
19387 }
19388
19389 _ACEOF
19390
19391
19392 rm -Rf build && mkdir -p build
19393 echo "obj-m := conftest.o" >build/Makefile
19394 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'
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); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19401 (eval $ac_try) 2>&5
19402 ac_status=$?
19403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19404 (exit $ac_status); }; }; then
19405
19406 echo "$as_me:$LINENO: result: yes" >&5
19407 echo "${ECHO_T}yes" >&6
19408
19409 cat >>confdefs.h <<\_ACEOF
19410 #define HAVE_3ARGS_INIT_WORK 1
19411 _ACEOF
19412
19413
19414 else
19415 echo "$as_me: failed program was:" >&5
19416 sed 's/^/| /' conftest.$ac_ext >&5
19417
19418 echo "$as_me:$LINENO: result: no" >&5
19419 echo "${ECHO_T}no" >&6
19420
19421
19422
19423 fi
19424
19425 rm -Rf build
19426
19427
19428
19429 echo "$as_me:$LINENO: checking whether register_sysctl_table() wants 2 args" >&5
19430 echo $ECHO_N "checking whether register_sysctl_table() wants 2 args... $ECHO_C" >&6
19431
19432
19433 cat >conftest.c <<_ACEOF
19434 /* confdefs.h. */
19435 _ACEOF
19436 cat confdefs.h >>conftest.$ac_ext
19437 cat >>conftest.$ac_ext <<_ACEOF
19438 /* end confdefs.h. */
19439
19440
19441 #include <linux/sysctl.h>
19442
19443 int
19444 main (void)
19445 {
19446
19447 return register_sysctl_table(NULL,0);
19448
19449 ;
19450 return 0;
19451 }
19452
19453 _ACEOF
19454
19455
19456 rm -Rf build && mkdir -p build
19457 echo "obj-m := conftest.o" >build/Makefile
19458 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'
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); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19465 (eval $ac_try) 2>&5
19466 ac_status=$?
19467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19468 (exit $ac_status); }; }; then
19469
19470 echo "$as_me:$LINENO: result: yes" >&5
19471 echo "${ECHO_T}yes" >&6
19472
19473 cat >>confdefs.h <<\_ACEOF
19474 #define HAVE_2ARGS_REGISTER_SYSCTL 1
19475 _ACEOF
19476
19477
19478 else
19479 echo "$as_me: failed program was:" >&5
19480 sed 's/^/| /' conftest.$ac_ext >&5
19481
19482 echo "$as_me:$LINENO: result: no" >&5
19483 echo "${ECHO_T}no" >&6
19484
19485
19486
19487 fi
19488
19489 rm -Rf build
19490
19491
19492
19493
19494 echo "$as_me:$LINENO: checking whether set_shrinker() available" >&5
19495 echo $ECHO_N "checking whether set_shrinker() available... $ECHO_C" >&6
19496
19497
19498 cat >conftest.c <<_ACEOF
19499 /* confdefs.h. */
19500 _ACEOF
19501 cat confdefs.h >>conftest.$ac_ext
19502 cat >>conftest.$ac_ext <<_ACEOF
19503 /* end confdefs.h. */
19504
19505
19506 #include <linux/mm.h>
19507
19508 int
19509 main (void)
19510 {
19511
19512 return set_shrinker(DEFAULT_SEEKS, NULL);
19513
19514 ;
19515 return 0;
19516 }
19517
19518 _ACEOF
19519
19520
19521 rm -Rf build && mkdir -p build
19522 echo "obj-m := conftest.o" >build/Makefile
19523 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'
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); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19530 (eval $ac_try) 2>&5
19531 ac_status=$?
19532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19533 (exit $ac_status); }; }; then
19534
19535 echo "$as_me:$LINENO: result: yes" >&5
19536 echo "${ECHO_T}yes" >&6
19537
19538 cat >>confdefs.h <<\_ACEOF
19539 #define HAVE_SET_SHRINKER 1
19540 _ACEOF
19541
19542
19543 else
19544 echo "$as_me: failed program was:" >&5
19545 sed 's/^/| /' conftest.$ac_ext >&5
19546
19547 echo "$as_me:$LINENO: result: no" >&5
19548 echo "${ECHO_T}no" >&6
19549
19550
19551
19552 fi
19553
19554 rm -Rf build
19555
19556
19557
19558 echo "$as_me:$LINENO: checking whether struct path used in struct nameidata" >&5
19559 echo $ECHO_N "checking whether struct path used in struct nameidata... $ECHO_C" >&6
19560
19561
19562 cat >conftest.c <<_ACEOF
19563 /* confdefs.h. */
19564 _ACEOF
19565 cat confdefs.h >>conftest.$ac_ext
19566 cat >>conftest.$ac_ext <<_ACEOF
19567 /* end confdefs.h. */
19568
19569
19570 #include <linux/namei.h>
19571
19572 int
19573 main (void)
19574 {
19575
19576 struct nameidata nd;
19577
19578 nd.path.mnt = NULL;
19579 nd.path.dentry = NULL;
19580
19581 ;
19582 return 0;
19583 }
19584
19585 _ACEOF
19586
19587
19588 rm -Rf build && mkdir -p build
19589 echo "obj-m := conftest.o" >build/Makefile
19590 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'
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); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19597 (eval $ac_try) 2>&5
19598 ac_status=$?
19599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19600 (exit $ac_status); }; }; then
19601
19602 echo "$as_me:$LINENO: result: yes" >&5
19603 echo "${ECHO_T}yes" >&6
19604
19605 cat >>confdefs.h <<\_ACEOF
19606 #define HAVE_PATH_IN_NAMEIDATA 1
19607 _ACEOF
19608
19609
19610 else
19611 echo "$as_me: failed program was:" >&5
19612 sed 's/^/| /' conftest.$ac_ext >&5
19613
19614 echo "$as_me:$LINENO: result: no" >&5
19615 echo "${ECHO_T}no" >&6
19616
19617
19618
19619 fi
19620
19621 rm -Rf build
19622
19623
19624
19625
19626 echo "$as_me:$LINENO: checking whether symbol task_curr is exported" >&5
19627 echo $ECHO_N "checking whether symbol task_curr is exported... $ECHO_C" >&6
19628 grep -q -E '[[:space:]]task_curr[[:space:]]' \
19629 $LINUX_OBJ/Module*.symvers 2>/dev/null
19630 rc=$?
19631 if test $rc -ne 0; then
19632 export=0
19633 for file in kernel/sched.c; do
19634 grep -q -E "EXPORT_SYMBOL.*(task_curr)" \
19635 "$LINUX_OBJ/$file" 2>/dev/null
19636 rc=$?
19637 if test $rc -eq 0; then
19638 export=1
19639 break;
19640 fi
19641 done
19642 if test $export -eq 0; then
19643 echo "$as_me:$LINENO: result: no" >&5
19644 echo "${ECHO_T}no" >&6
19645
19646 else
19647 echo "$as_me:$LINENO: result: yes" >&5
19648 echo "${ECHO_T}yes" >&6
19649
19650 cat >>confdefs.h <<\_ACEOF
19651 #define HAVE_TASK_CURR 1
19652 _ACEOF
19653
19654 fi
19655 else
19656 echo "$as_me:$LINENO: result: yes" >&5
19657 echo "${ECHO_T}yes" >&6
19658
19659 cat >>confdefs.h <<\_ACEOF
19660 #define HAVE_TASK_CURR 1
19661 _ACEOF
19662
19663 fi
19664
19665
19666 echo "$as_me:$LINENO: checking whether unnumbered sysctl support exists" >&5
19667 echo $ECHO_N "checking whether unnumbered sysctl support exists... $ECHO_C" >&6
19668
19669
19670 cat >conftest.c <<_ACEOF
19671 /* confdefs.h. */
19672 _ACEOF
19673 cat confdefs.h >>conftest.$ac_ext
19674 cat >>conftest.$ac_ext <<_ACEOF
19675 /* end confdefs.h. */
19676
19677
19678 #include <linux/sysctl.h>
19679
19680 int
19681 main (void)
19682 {
19683
19684 #ifndef CTL_UNNUMBERED
19685 #error CTL_UNNUMBERED undefined
19686 #endif
19687
19688 ;
19689 return 0;
19690 }
19691
19692 _ACEOF
19693
19694
19695 rm -Rf build && mkdir -p build
19696 echo "obj-m := conftest.o" >build/Makefile
19697 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'
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); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19704 (eval $ac_try) 2>&5
19705 ac_status=$?
19706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19707 (exit $ac_status); }; }; then
19708
19709 echo "$as_me:$LINENO: result: yes" >&5
19710 echo "${ECHO_T}yes" >&6
19711
19712 cat >>confdefs.h <<\_ACEOF
19713 #define HAVE_CTL_UNNUMBERED 1
19714 _ACEOF
19715
19716
19717 else
19718 echo "$as_me: failed program was:" >&5
19719 sed 's/^/| /' conftest.$ac_ext >&5
19720
19721 echo "$as_me:$LINENO: result: no" >&5
19722 echo "${ECHO_T}no" >&6
19723
19724
19725
19726 fi
19727
19728 rm -Rf build
19729
19730
19731
19732 echo "$as_me:$LINENO: checking whether fls64() is available" >&5
19733 echo $ECHO_N "checking whether fls64() is available... $ECHO_C" >&6
19734
19735
19736 cat >conftest.c <<_ACEOF
19737 /* confdefs.h. */
19738 _ACEOF
19739 cat confdefs.h >>conftest.$ac_ext
19740 cat >>conftest.$ac_ext <<_ACEOF
19741 /* end confdefs.h. */
19742
19743
19744 #include <linux/bitops.h>
19745
19746 int
19747 main (void)
19748 {
19749
19750 return fls64(0);
19751
19752 ;
19753 return 0;
19754 }
19755
19756 _ACEOF
19757
19758
19759 rm -Rf build && mkdir -p build
19760 echo "obj-m := conftest.o" >build/Makefile
19761 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'
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); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19768 (eval $ac_try) 2>&5
19769 ac_status=$?
19770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19771 (exit $ac_status); }; }; then
19772
19773 echo "$as_me:$LINENO: result: yes" >&5
19774 echo "${ECHO_T}yes" >&6
19775
19776 cat >>confdefs.h <<\_ACEOF
19777 #define HAVE_FLS64 1
19778 _ACEOF
19779
19780
19781 else
19782 echo "$as_me: failed program was:" >&5
19783 sed 's/^/| /' conftest.$ac_ext >&5
19784
19785 echo "$as_me:$LINENO: result: no" >&5
19786 echo "${ECHO_T}no" >&6
19787
19788
19789
19790 fi
19791
19792 rm -Rf build
19793
19794
19795
19796
19797 echo "$as_me:$LINENO: checking whether symbol device_create is exported" >&5
19798 echo $ECHO_N "checking whether symbol device_create is exported... $ECHO_C" >&6
19799 grep -q -E '[[:space:]]device_create[[:space:]]' \
19800 $LINUX_OBJ/Module*.symvers 2>/dev/null
19801 rc=$?
19802 if test $rc -ne 0; then
19803 export=0
19804 for file in drivers/base/core.c; do
19805 grep -q -E "EXPORT_SYMBOL.*(device_create)" \
19806 "$LINUX_OBJ/$file" 2>/dev/null
19807 rc=$?
19808 if test $rc -eq 0; then
19809 export=1
19810 break;
19811 fi
19812 done
19813 if test $export -eq 0; then
19814 echo "$as_me:$LINENO: result: no" >&5
19815 echo "${ECHO_T}no" >&6
19816
19817 else
19818 echo "$as_me:$LINENO: result: yes" >&5
19819 echo "${ECHO_T}yes" >&6
19820
19821 cat >>confdefs.h <<\_ACEOF
19822 #define HAVE_DEVICE_CREATE 1
19823 _ACEOF
19824
19825 fi
19826 else
19827 echo "$as_me:$LINENO: result: yes" >&5
19828 echo "${ECHO_T}yes" >&6
19829
19830 cat >>confdefs.h <<\_ACEOF
19831 #define HAVE_DEVICE_CREATE 1
19832 _ACEOF
19833
19834 fi
19835
19836
19837
19838 echo "$as_me:$LINENO: checking whether device_create() wants 5 args" >&5
19839 echo $ECHO_N "checking whether device_create() wants 5 args... $ECHO_C" >&6
19840 tmp_flags="$EXTRA_KCFLAGS"
19841 EXTRA_KCFLAGS="-Werror"
19842
19843
19844 cat >conftest.c <<_ACEOF
19845 /* confdefs.h. */
19846 _ACEOF
19847 cat confdefs.h >>conftest.$ac_ext
19848 cat >>conftest.$ac_ext <<_ACEOF
19849 /* end confdefs.h. */
19850
19851
19852 #include <linux/device.h>
19853
19854 int
19855 main (void)
19856 {
19857
19858 device_create(NULL, NULL, 0, NULL, "%d", 1);
19859
19860 ;
19861 return 0;
19862 }
19863
19864 _ACEOF
19865
19866
19867 rm -Rf build && mkdir -p build
19868 echo "obj-m := conftest.o" >build/Makefile
19869 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'
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); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19876 (eval $ac_try) 2>&5
19877 ac_status=$?
19878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19879 (exit $ac_status); }; }; then
19880
19881 echo "$as_me:$LINENO: result: yes" >&5
19882 echo "${ECHO_T}yes" >&6
19883
19884 cat >>confdefs.h <<\_ACEOF
19885 #define HAVE_5ARGS_DEVICE_CREATE 1
19886 _ACEOF
19887
19888
19889 else
19890 echo "$as_me: failed program was:" >&5
19891 sed 's/^/| /' conftest.$ac_ext >&5
19892
19893 echo "$as_me:$LINENO: result: no" >&5
19894 echo "${ECHO_T}no" >&6
19895
19896
19897
19898 fi
19899
19900 rm -Rf build
19901
19902
19903 EXTRA_KCFLAGS="$tmp_flags"
19904
19905
19906 echo "$as_me:$LINENO: checking whether symbol class_device_create is exported" >&5
19907 echo $ECHO_N "checking whether symbol class_device_create is exported... $ECHO_C" >&6
19908 grep -q -E '[[:space:]]class_device_create[[:space:]]' \
19909 $LINUX_OBJ/Module*.symvers 2>/dev/null
19910 rc=$?
19911 if test $rc -ne 0; then
19912 export=0
19913 for file in drivers/base/class.c; do
19914 grep -q -E "EXPORT_SYMBOL.*(class_device_create)" \
19915 "$LINUX_OBJ/$file" 2>/dev/null
19916 rc=$?
19917 if test $rc -eq 0; then
19918 export=1
19919 break;
19920 fi
19921 done
19922 if test $export -eq 0; then
19923 echo "$as_me:$LINENO: result: no" >&5
19924 echo "${ECHO_T}no" >&6
19925
19926 else
19927 echo "$as_me:$LINENO: result: yes" >&5
19928 echo "${ECHO_T}yes" >&6
19929
19930 cat >>confdefs.h <<\_ACEOF
19931 #define HAVE_CLASS_DEVICE_CREATE 1
19932 _ACEOF
19933
19934 fi
19935 else
19936 echo "$as_me:$LINENO: result: yes" >&5
19937 echo "${ECHO_T}yes" >&6
19938
19939 cat >>confdefs.h <<\_ACEOF
19940 #define HAVE_CLASS_DEVICE_CREATE 1
19941 _ACEOF
19942
19943 fi
19944
19945
19946
19947 echo "$as_me:$LINENO: checking whether symbol set_normalized_timespec is exported" >&5
19948 echo $ECHO_N "checking whether symbol set_normalized_timespec is exported... $ECHO_C" >&6
19949 grep -q -E '[[:space:]]set_normalized_timespec[[:space:]]' \
19950 $LINUX_OBJ/Module*.symvers 2>/dev/null
19951 rc=$?
19952 if test $rc -ne 0; then
19953 export=0
19954 for file in kernel/time.c; do
19955 grep -q -E "EXPORT_SYMBOL.*(set_normalized_timespec)" \
19956 "$LINUX_OBJ/$file" 2>/dev/null
19957 rc=$?
19958 if test $rc -eq 0; then
19959 export=1
19960 break;
19961 fi
19962 done
19963 if test $export -eq 0; then
19964 echo "$as_me:$LINENO: result: no" >&5
19965 echo "${ECHO_T}no" >&6
19966
19967 else
19968 echo "$as_me:$LINENO: result: yes" >&5
19969 echo "${ECHO_T}yes" >&6
19970
19971 cat >>confdefs.h <<\_ACEOF
19972 #define HAVE_SET_NORMALIZED_TIMESPEC_EXPORT 1
19973 _ACEOF
19974
19975 fi
19976 else
19977 echo "$as_me:$LINENO: result: yes" >&5
19978 echo "${ECHO_T}yes" >&6
19979
19980 cat >>confdefs.h <<\_ACEOF
19981 #define HAVE_SET_NORMALIZED_TIMESPEC_EXPORT 1
19982 _ACEOF
19983
19984 fi
19985
19986
19987
19988 echo "$as_me:$LINENO: checking whether set_normalized_timespec() is an inline" >&5
19989 echo $ECHO_N "checking whether set_normalized_timespec() is an inline... $ECHO_C" >&6
19990
19991
19992 cat >conftest.c <<_ACEOF
19993 /* confdefs.h. */
19994 _ACEOF
19995 cat confdefs.h >>conftest.$ac_ext
19996 cat >>conftest.$ac_ext <<_ACEOF
19997 /* end confdefs.h. */
19998
19999
20000 #include <linux/time.h>
20001 void set_normalized_timespec(struct timespec *ts,
20002 time_t sec, long nsec) { }
20003
20004 int
20005 main (void)
20006 {
20007
20008 ;
20009 return 0;
20010 }
20011
20012 _ACEOF
20013
20014
20015 rm -Rf build && mkdir -p build
20016 echo "obj-m := conftest.o" >build/Makefile
20017 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'
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); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20024 (eval $ac_try) 2>&5
20025 ac_status=$?
20026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20027 (exit $ac_status); }; }; then
20028
20029 echo "$as_me:$LINENO: result: no" >&5
20030 echo "${ECHO_T}no" >&6
20031
20032 else
20033 echo "$as_me: failed program was:" >&5
20034 sed 's/^/| /' conftest.$ac_ext >&5
20035
20036 echo "$as_me:$LINENO: result: yes" >&5
20037 echo "${ECHO_T}yes" >&6
20038
20039 cat >>confdefs.h <<\_ACEOF
20040 #define HAVE_SET_NORMALIZED_TIMESPEC_INLINE 1
20041 _ACEOF
20042
20043
20044
20045
20046 fi
20047
20048 rm -Rf build
20049
20050
20051
20052
20053 echo "$as_me:$LINENO: checking whether timespec_sub() is available" >&5
20054 echo $ECHO_N "checking whether timespec_sub() is available... $ECHO_C" >&6
20055
20056
20057 cat >conftest.c <<_ACEOF
20058 /* confdefs.h. */
20059 _ACEOF
20060 cat confdefs.h >>conftest.$ac_ext
20061 cat >>conftest.$ac_ext <<_ACEOF
20062 /* end confdefs.h. */
20063
20064
20065 #include <linux/time.h>
20066
20067 int
20068 main (void)
20069 {
20070
20071 struct timespec a, b, c = { 0 };
20072 c = timespec_sub(a, b);
20073
20074 ;
20075 return 0;
20076 }
20077
20078 _ACEOF
20079
20080
20081 rm -Rf build && mkdir -p build
20082 echo "obj-m := conftest.o" >build/Makefile
20083 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'
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); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20090 (eval $ac_try) 2>&5
20091 ac_status=$?
20092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20093 (exit $ac_status); }; }; then
20094
20095 echo "$as_me:$LINENO: result: yes" >&5
20096 echo "${ECHO_T}yes" >&6
20097
20098 cat >>confdefs.h <<\_ACEOF
20099 #define HAVE_TIMESPEC_SUB 1
20100 _ACEOF
20101
20102
20103 else
20104 echo "$as_me: failed program was:" >&5
20105 sed 's/^/| /' conftest.$ac_ext >&5
20106
20107 echo "$as_me:$LINENO: result: no" >&5
20108 echo "${ECHO_T}no" >&6
20109
20110
20111
20112 fi
20113
20114 rm -Rf build
20115
20116
20117
20118
20119 echo "$as_me:$LINENO: checking whether init_utsname() is available" >&5
20120 echo $ECHO_N "checking whether init_utsname() is available... $ECHO_C" >&6
20121
20122
20123 cat >conftest.c <<_ACEOF
20124 /* confdefs.h. */
20125 _ACEOF
20126 cat confdefs.h >>conftest.$ac_ext
20127 cat >>conftest.$ac_ext <<_ACEOF
20128 /* end confdefs.h. */
20129
20130
20131 #include <linux/utsname.h>
20132
20133 int
20134 main (void)
20135 {
20136
20137 struct new_utsname *a = init_utsname();
20138
20139 ;
20140 return 0;
20141 }
20142
20143 _ACEOF
20144
20145
20146 rm -Rf build && mkdir -p build
20147 echo "obj-m := conftest.o" >build/Makefile
20148 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'
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); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20155 (eval $ac_try) 2>&5
20156 ac_status=$?
20157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20158 (exit $ac_status); }; }; then
20159
20160 echo "$as_me:$LINENO: result: yes" >&5
20161 echo "${ECHO_T}yes" >&6
20162
20163 cat >>confdefs.h <<\_ACEOF
20164 #define HAVE_INIT_UTSNAME 1
20165 _ACEOF
20166
20167
20168 else
20169 echo "$as_me: failed program was:" >&5
20170 sed 's/^/| /' conftest.$ac_ext >&5
20171
20172 echo "$as_me:$LINENO: result: no" >&5
20173 echo "${ECHO_T}no" >&6
20174
20175
20176
20177 fi
20178
20179 rm -Rf build
20180
20181
20182
20183
20184 echo "$as_me:$LINENO: checking whether header linux/fdtable.h exists" >&5
20185 echo $ECHO_N "checking whether header linux/fdtable.h exists... $ECHO_C" >&6
20186
20187
20188 cat >conftest.c <<_ACEOF
20189 /* confdefs.h. */
20190 _ACEOF
20191 cat confdefs.h >>conftest.$ac_ext
20192 cat >>conftest.$ac_ext <<_ACEOF
20193 /* end confdefs.h. */
20194
20195
20196 #include <linux/fdtable.h>
20197
20198 int
20199 main (void)
20200 {
20201
20202 return 0;
20203
20204 ;
20205 return 0;
20206 }
20207
20208 _ACEOF
20209
20210
20211 rm -Rf build && mkdir -p build
20212 echo "obj-m := conftest.o" >build/Makefile
20213 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'
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); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20220 (eval $ac_try) 2>&5
20221 ac_status=$?
20222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20223 (exit $ac_status); }; }; then
20224
20225
20226 cat >>confdefs.h <<\_ACEOF
20227 #define HAVE_FDTABLE_HEADER 1
20228 _ACEOF
20229
20230 echo "$as_me:$LINENO: result: yes" >&5
20231 echo "${ECHO_T}yes" >&6
20232
20233
20234 else
20235 echo "$as_me: failed program was:" >&5
20236 sed 's/^/| /' conftest.$ac_ext >&5
20237
20238 echo "$as_me:$LINENO: result: no" >&5
20239 echo "${ECHO_T}no" >&6
20240
20241
20242
20243
20244 fi
20245
20246 rm -Rf build
20247
20248
20249
20250
20251
20252 echo "$as_me:$LINENO: checking whether files_fdtable() is available" >&5
20253 echo $ECHO_N "checking whether files_fdtable() is available... $ECHO_C" >&6
20254
20255
20256 cat >conftest.c <<_ACEOF
20257 /* confdefs.h. */
20258 _ACEOF
20259 cat confdefs.h >>conftest.$ac_ext
20260 cat >>conftest.$ac_ext <<_ACEOF
20261 /* end confdefs.h. */
20262
20263
20264 #include <linux/sched.h>
20265 #include <linux/file.h>
20266 #ifdef HAVE_FDTABLE_HEADER
20267 #include <linux/fdtable.h>
20268 #endif
20269
20270 int
20271 main (void)
20272 {
20273
20274 struct files_struct *files = current->files;
20275 struct fdtable *fdt = files_fdtable(files);
20276
20277 ;
20278 return 0;
20279 }
20280
20281 _ACEOF
20282
20283
20284 rm -Rf build && mkdir -p build
20285 echo "obj-m := conftest.o" >build/Makefile
20286 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'
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); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20293 (eval $ac_try) 2>&5
20294 ac_status=$?
20295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20296 (exit $ac_status); }; }; then
20297
20298 echo "$as_me:$LINENO: result: yes" >&5
20299 echo "${ECHO_T}yes" >&6
20300
20301 cat >>confdefs.h <<\_ACEOF
20302 #define HAVE_FILES_FDTABLE 1
20303 _ACEOF
20304
20305
20306 else
20307 echo "$as_me: failed program was:" >&5
20308 sed 's/^/| /' conftest.$ac_ext >&5
20309
20310 echo "$as_me:$LINENO: result: no" >&5
20311 echo "${ECHO_T}no" >&6
20312
20313
20314
20315 fi
20316
20317 rm -Rf build
20318
20319
20320
20321
20322 echo "$as_me:$LINENO: checking whether header linux/uaccess.h exists" >&5
20323 echo $ECHO_N "checking whether header linux/uaccess.h exists... $ECHO_C" >&6
20324
20325
20326 cat >conftest.c <<_ACEOF
20327 /* confdefs.h. */
20328 _ACEOF
20329 cat confdefs.h >>conftest.$ac_ext
20330 cat >>conftest.$ac_ext <<_ACEOF
20331 /* end confdefs.h. */
20332
20333
20334 #include <linux/uaccess.h>
20335
20336 int
20337 main (void)
20338 {
20339
20340 return 0;
20341
20342 ;
20343 return 0;
20344 }
20345
20346 _ACEOF
20347
20348
20349 rm -Rf build && mkdir -p build
20350 echo "obj-m := conftest.o" >build/Makefile
20351 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'
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); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20358 (eval $ac_try) 2>&5
20359 ac_status=$?
20360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20361 (exit $ac_status); }; }; then
20362
20363
20364 cat >>confdefs.h <<\_ACEOF
20365 #define HAVE_UACCESS_HEADER 1
20366 _ACEOF
20367
20368 echo "$as_me:$LINENO: result: yes" >&5
20369 echo "${ECHO_T}yes" >&6
20370
20371
20372 else
20373 echo "$as_me: failed program was:" >&5
20374 sed 's/^/| /' conftest.$ac_ext >&5
20375
20376 echo "$as_me:$LINENO: result: no" >&5
20377 echo "${ECHO_T}no" >&6
20378
20379
20380
20381
20382 fi
20383
20384 rm -Rf build
20385
20386
20387
20388
20389
20390 echo "$as_me:$LINENO: checking whether kmalloc_node() is available" >&5
20391 echo $ECHO_N "checking whether kmalloc_node() is available... $ECHO_C" >&6
20392
20393
20394 cat >conftest.c <<_ACEOF
20395 /* confdefs.h. */
20396 _ACEOF
20397 cat confdefs.h >>conftest.$ac_ext
20398 cat >>conftest.$ac_ext <<_ACEOF
20399 /* end confdefs.h. */
20400
20401
20402 #include <linux/slab.h>
20403
20404 int
20405 main (void)
20406 {
20407
20408 void *a = kmalloc_node(1, GFP_KERNEL, 0);
20409
20410 ;
20411 return 0;
20412 }
20413
20414 _ACEOF
20415
20416
20417 rm -Rf build && mkdir -p build
20418 echo "obj-m := conftest.o" >build/Makefile
20419 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'
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); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20426 (eval $ac_try) 2>&5
20427 ac_status=$?
20428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20429 (exit $ac_status); }; }; then
20430
20431 echo "$as_me:$LINENO: result: yes" >&5
20432 echo "${ECHO_T}yes" >&6
20433
20434 cat >>confdefs.h <<\_ACEOF
20435 #define HAVE_KMALLOC_NODE 1
20436 _ACEOF
20437
20438
20439 else
20440 echo "$as_me: failed program was:" >&5
20441 sed 's/^/| /' conftest.$ac_ext >&5
20442
20443 echo "$as_me:$LINENO: result: no" >&5
20444 echo "${ECHO_T}no" >&6
20445
20446
20447
20448 fi
20449
20450 rm -Rf build
20451
20452
20453
20454
20455 echo "$as_me:$LINENO: checking whether symbol monotonic_clock is exported" >&5
20456 echo $ECHO_N "checking whether symbol monotonic_clock is exported... $ECHO_C" >&6
20457 grep -q -E '[[:space:]]monotonic_clock[[:space:]]' \
20458 $LINUX_OBJ/Module*.symvers 2>/dev/null
20459 rc=$?
20460 if test $rc -ne 0; then
20461 export=0
20462 for file in ; do
20463 grep -q -E "EXPORT_SYMBOL.*(monotonic_clock)" \
20464 "$LINUX_OBJ/$file" 2>/dev/null
20465 rc=$?
20466 if test $rc -eq 0; then
20467 export=1
20468 break;
20469 fi
20470 done
20471 if test $export -eq 0; then
20472 echo "$as_me:$LINENO: result: no" >&5
20473 echo "${ECHO_T}no" >&6
20474
20475 else
20476 echo "$as_me:$LINENO: result: yes" >&5
20477 echo "${ECHO_T}yes" >&6
20478
20479 cat >>confdefs.h <<\_ACEOF
20480 #define HAVE_MONOTONIC_CLOCK 1
20481 _ACEOF
20482
20483 fi
20484 else
20485 echo "$as_me:$LINENO: result: yes" >&5
20486 echo "${ECHO_T}yes" >&6
20487
20488 cat >>confdefs.h <<\_ACEOF
20489 #define HAVE_MONOTONIC_CLOCK 1
20490 _ACEOF
20491
20492 fi
20493
20494
20495
20496 echo "$as_me:$LINENO: checking whether struct inode has i_mutex" >&5
20497 echo $ECHO_N "checking whether struct inode has i_mutex... $ECHO_C" >&6
20498
20499
20500 cat >conftest.c <<_ACEOF
20501 /* confdefs.h. */
20502 _ACEOF
20503 cat confdefs.h >>conftest.$ac_ext
20504 cat >>conftest.$ac_ext <<_ACEOF
20505 /* end confdefs.h. */
20506
20507
20508 #include <linux/fs.h>
20509 #include <linux/mutex.h>
20510
20511 int
20512 main (void)
20513 {
20514
20515 struct inode i;
20516 mutex_init(&i.i_mutex);
20517
20518 ;
20519 return 0;
20520 }
20521
20522 _ACEOF
20523
20524
20525 rm -Rf build && mkdir -p build
20526 echo "obj-m := conftest.o" >build/Makefile
20527 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'
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); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20534 (eval $ac_try) 2>&5
20535 ac_status=$?
20536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20537 (exit $ac_status); }; }; then
20538
20539 echo "$as_me:$LINENO: result: yes" >&5
20540 echo "${ECHO_T}yes" >&6
20541
20542 cat >>confdefs.h <<\_ACEOF
20543 #define HAVE_INODE_I_MUTEX 1
20544 _ACEOF
20545
20546
20547 else
20548 echo "$as_me: failed program was:" >&5
20549 sed 's/^/| /' conftest.$ac_ext >&5
20550
20551 echo "$as_me:$LINENO: result: no" >&5
20552 echo "${ECHO_T}no" >&6
20553
20554
20555
20556 fi
20557
20558 rm -Rf build
20559
20560
20561
20562
20563 echo "$as_me:$LINENO: checking whether mutex_lock_nested() is available" >&5
20564 echo $ECHO_N "checking whether mutex_lock_nested() is available... $ECHO_C" >&6
20565
20566
20567 cat >conftest.c <<_ACEOF
20568 /* confdefs.h. */
20569 _ACEOF
20570 cat confdefs.h >>conftest.$ac_ext
20571 cat >>conftest.$ac_ext <<_ACEOF
20572 /* end confdefs.h. */
20573
20574
20575 #include <linux/mutex.h>
20576
20577 int
20578 main (void)
20579 {
20580
20581 struct mutex mutex;
20582 mutex_init(&mutex);
20583 mutex_lock_nested(&mutex, 0);
20584
20585 ;
20586 return 0;
20587 }
20588
20589 _ACEOF
20590
20591
20592 rm -Rf build && mkdir -p build
20593 echo "obj-m := conftest.o" >build/Makefile
20594 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'
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); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20601 (eval $ac_try) 2>&5
20602 ac_status=$?
20603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20604 (exit $ac_status); }; }; then
20605
20606 echo "$as_me:$LINENO: result: yes" >&5
20607 echo "${ECHO_T}yes" >&6
20608
20609 cat >>confdefs.h <<\_ACEOF
20610 #define HAVE_MUTEX_LOCK_NESTED 1
20611 _ACEOF
20612
20613
20614 else
20615 echo "$as_me: failed program was:" >&5
20616 sed 's/^/| /' conftest.$ac_ext >&5
20617
20618 echo "$as_me:$LINENO: result: no" >&5
20619 echo "${ECHO_T}no" >&6
20620
20621
20622
20623 fi
20624
20625 rm -Rf build
20626
20627
20628
20629
20630 echo "$as_me:$LINENO: checking whether symbol div64_64 is exported" >&5
20631 echo $ECHO_N "checking whether symbol div64_64 is exported... $ECHO_C" >&6
20632 grep -q -E '[[:space:]]div64_64[[:space:]]' \
20633 $LINUX_OBJ/Module*.symvers 2>/dev/null
20634 rc=$?
20635 if test $rc -ne 0; then
20636 export=0
20637 for file in ; do
20638 grep -q -E "EXPORT_SYMBOL.*(div64_64)" \
20639 "$LINUX_OBJ/$file" 2>/dev/null
20640 rc=$?
20641 if test $rc -eq 0; then
20642 export=1
20643 break;
20644 fi
20645 done
20646 if test $export -eq 0; then
20647 echo "$as_me:$LINENO: result: no" >&5
20648 echo "${ECHO_T}no" >&6
20649
20650 else
20651 echo "$as_me:$LINENO: result: yes" >&5
20652 echo "${ECHO_T}yes" >&6
20653
20654 cat >>confdefs.h <<\_ACEOF
20655 #define HAVE_DIV64_64 1
20656 _ACEOF
20657
20658 fi
20659 else
20660 echo "$as_me:$LINENO: result: yes" >&5
20661 echo "${ECHO_T}yes" >&6
20662
20663 cat >>confdefs.h <<\_ACEOF
20664 #define HAVE_DIV64_64 1
20665 _ACEOF
20666
20667 fi
20668
20669
20670
20671 echo "$as_me:$LINENO: checking whether symbol div64_u64 is exported" >&5
20672 echo $ECHO_N "checking whether symbol div64_u64 is exported... $ECHO_C" >&6
20673 grep -q -E '[[:space:]]div64_u64[[:space:]]' \
20674 $LINUX_OBJ/Module*.symvers 2>/dev/null
20675 rc=$?
20676 if test $rc -ne 0; then
20677 export=0
20678 for file in ; do
20679 grep -q -E "EXPORT_SYMBOL.*(div64_u64)" \
20680 "$LINUX_OBJ/$file" 2>/dev/null
20681 rc=$?
20682 if test $rc -eq 0; then
20683 export=1
20684 break;
20685 fi
20686 done
20687 if test $export -eq 0; then
20688 echo "$as_me:$LINENO: result: no" >&5
20689 echo "${ECHO_T}no" >&6
20690
20691 else
20692 echo "$as_me:$LINENO: result: yes" >&5
20693 echo "${ECHO_T}yes" >&6
20694
20695 cat >>confdefs.h <<\_ACEOF
20696 #define HAVE_DIV64_U64 1
20697 _ACEOF
20698
20699 fi
20700 else
20701 echo "$as_me:$LINENO: result: yes" >&5
20702 echo "${ECHO_T}yes" >&6
20703
20704 cat >>confdefs.h <<\_ACEOF
20705 #define HAVE_DIV64_U64 1
20706 _ACEOF
20707
20708 fi
20709
20710
20711
20712 echo "$as_me:$LINENO: checking whether on_each_cpu() wants 3 args" >&5
20713 echo $ECHO_N "checking whether on_each_cpu() wants 3 args... $ECHO_C" >&6
20714
20715
20716 cat >conftest.c <<_ACEOF
20717 /* confdefs.h. */
20718 _ACEOF
20719 cat confdefs.h >>conftest.$ac_ext
20720 cat >>conftest.$ac_ext <<_ACEOF
20721 /* end confdefs.h. */
20722
20723
20724 #include <linux/smp.h>
20725
20726 int
20727 main (void)
20728 {
20729
20730 on_each_cpu(NULL, NULL, 0);
20731
20732 ;
20733 return 0;
20734 }
20735
20736 _ACEOF
20737
20738
20739 rm -Rf build && mkdir -p build
20740 echo "obj-m := conftest.o" >build/Makefile
20741 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'
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); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20748 (eval $ac_try) 2>&5
20749 ac_status=$?
20750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20751 (exit $ac_status); }; }; then
20752
20753 echo "$as_me:$LINENO: result: yes" >&5
20754 echo "${ECHO_T}yes" >&6
20755
20756 cat >>confdefs.h <<\_ACEOF
20757 #define HAVE_3ARGS_ON_EACH_CPU 1
20758 _ACEOF
20759
20760
20761 else
20762 echo "$as_me: failed program was:" >&5
20763 sed 's/^/| /' conftest.$ac_ext >&5
20764
20765 echo "$as_me:$LINENO: result: no" >&5
20766 echo "${ECHO_T}no" >&6
20767
20768
20769
20770 fi
20771
20772 rm -Rf build
20773
20774
20775
20776
20777 echo "$as_me:$LINENO: checking whether symbol kallsyms_lookup_name is exported" >&5
20778 echo $ECHO_N "checking whether symbol kallsyms_lookup_name is exported... $ECHO_C" >&6
20779 grep -q -E '[[:space:]]kallsyms_lookup_name[[:space:]]' \
20780 $LINUX_OBJ/Module*.symvers 2>/dev/null
20781 rc=$?
20782 if test $rc -ne 0; then
20783 export=0
20784 for file in ; do
20785 grep -q -E "EXPORT_SYMBOL.*(kallsyms_lookup_name)" \
20786 "$LINUX_OBJ/$file" 2>/dev/null
20787 rc=$?
20788 if test $rc -eq 0; then
20789 export=1
20790 break;
20791 fi
20792 done
20793 if test $export -eq 0; then
20794 echo "$as_me:$LINENO: result: no" >&5
20795 echo "${ECHO_T}no" >&6
20796
20797 else
20798 echo "$as_me:$LINENO: result: yes" >&5
20799 echo "${ECHO_T}yes" >&6
20800
20801 cat >>confdefs.h <<\_ACEOF
20802 #define HAVE_KALLSYMS_LOOKUP_NAME 1
20803 _ACEOF
20804
20805 fi
20806 else
20807 echo "$as_me:$LINENO: result: yes" >&5
20808 echo "${ECHO_T}yes" >&6
20809
20810 cat >>confdefs.h <<\_ACEOF
20811 #define HAVE_KALLSYMS_LOOKUP_NAME 1
20812 _ACEOF
20813
20814 fi
20815
20816
20817
20818 echo "$as_me:$LINENO: checking whether symbol get_vmalloc_info is exported" >&5
20819 echo $ECHO_N "checking whether symbol get_vmalloc_info is exported... $ECHO_C" >&6
20820 grep -q -E '[[:space:]]get_vmalloc_info[[:space:]]' \
20821 $LINUX_OBJ/Module*.symvers 2>/dev/null
20822 rc=$?
20823 if test $rc -ne 0; then
20824 export=0
20825 for file in ; do
20826 grep -q -E "EXPORT_SYMBOL.*(get_vmalloc_info)" \
20827 "$LINUX_OBJ/$file" 2>/dev/null
20828 rc=$?
20829 if test $rc -eq 0; then
20830 export=1
20831 break;
20832 fi
20833 done
20834 if test $export -eq 0; then
20835 echo "$as_me:$LINENO: result: no" >&5
20836 echo "${ECHO_T}no" >&6
20837
20838 else
20839 echo "$as_me:$LINENO: result: yes" >&5
20840 echo "${ECHO_T}yes" >&6
20841
20842 cat >>confdefs.h <<\_ACEOF
20843 #define HAVE_GET_VMALLOC_INFO 1
20844 _ACEOF
20845
20846 fi
20847 else
20848 echo "$as_me:$LINENO: result: yes" >&5
20849 echo "${ECHO_T}yes" >&6
20850
20851 cat >>confdefs.h <<\_ACEOF
20852 #define HAVE_GET_VMALLOC_INFO 1
20853 _ACEOF
20854
20855 fi
20856
20857
20858
20859 echo "$as_me:$LINENO: checking whether symbol *_pgdat exist" >&5
20860 echo $ECHO_N "checking whether symbol *_pgdat exist... $ECHO_C" >&6
20861 grep -q -E 'first_online_pgdat' $LINUX/include/linux/mmzone.h 2>/dev/null
20862 rc=$?
20863 if test $rc -eq 0; then
20864 echo "$as_me:$LINENO: result: yes" >&5
20865 echo "${ECHO_T}yes" >&6
20866
20867 cat >>confdefs.h <<\_ACEOF
20868 #define HAVE_PGDAT_HELPERS 1
20869 _ACEOF
20870
20871 else
20872 echo "$as_me:$LINENO: result: no" >&5
20873 echo "${ECHO_T}no" >&6
20874 fi
20875
20876
20877 echo "$as_me:$LINENO: checking whether symbol first_online_pgdat is exported" >&5
20878 echo $ECHO_N "checking whether symbol first_online_pgdat is exported... $ECHO_C" >&6
20879 grep -q -E '[[:space:]]first_online_pgdat[[:space:]]' \
20880 $LINUX_OBJ/Module*.symvers 2>/dev/null
20881 rc=$?
20882 if test $rc -ne 0; then
20883 export=0
20884 for file in ; do
20885 grep -q -E "EXPORT_SYMBOL.*(first_online_pgdat)" \
20886 "$LINUX_OBJ/$file" 2>/dev/null
20887 rc=$?
20888 if test $rc -eq 0; then
20889 export=1
20890 break;
20891 fi
20892 done
20893 if test $export -eq 0; then
20894 echo "$as_me:$LINENO: result: no" >&5
20895 echo "${ECHO_T}no" >&6
20896
20897 else
20898 echo "$as_me:$LINENO: result: yes" >&5
20899 echo "${ECHO_T}yes" >&6
20900
20901 cat >>confdefs.h <<\_ACEOF
20902 #define HAVE_FIRST_ONLINE_PGDAT 1
20903 _ACEOF
20904
20905 fi
20906 else
20907 echo "$as_me:$LINENO: result: yes" >&5
20908 echo "${ECHO_T}yes" >&6
20909
20910 cat >>confdefs.h <<\_ACEOF
20911 #define HAVE_FIRST_ONLINE_PGDAT 1
20912 _ACEOF
20913
20914 fi
20915
20916
20917
20918 echo "$as_me:$LINENO: checking whether symbol next_online_pgdat is exported" >&5
20919 echo $ECHO_N "checking whether symbol next_online_pgdat is exported... $ECHO_C" >&6
20920 grep -q -E '[[:space:]]next_online_pgdat[[:space:]]' \
20921 $LINUX_OBJ/Module*.symvers 2>/dev/null
20922 rc=$?
20923 if test $rc -ne 0; then
20924 export=0
20925 for file in ; do
20926 grep -q -E "EXPORT_SYMBOL.*(next_online_pgdat)" \
20927 "$LINUX_OBJ/$file" 2>/dev/null
20928 rc=$?
20929 if test $rc -eq 0; then
20930 export=1
20931 break;
20932 fi
20933 done
20934 if test $export -eq 0; then
20935 echo "$as_me:$LINENO: result: no" >&5
20936 echo "${ECHO_T}no" >&6
20937
20938 else
20939 echo "$as_me:$LINENO: result: yes" >&5
20940 echo "${ECHO_T}yes" >&6
20941
20942 cat >>confdefs.h <<\_ACEOF
20943 #define HAVE_NEXT_ONLINE_PGDAT 1
20944 _ACEOF
20945
20946 fi
20947 else
20948 echo "$as_me:$LINENO: result: yes" >&5
20949 echo "${ECHO_T}yes" >&6
20950
20951 cat >>confdefs.h <<\_ACEOF
20952 #define HAVE_NEXT_ONLINE_PGDAT 1
20953 _ACEOF
20954
20955 fi
20956
20957
20958
20959 echo "$as_me:$LINENO: checking whether symbol next_zone is exported" >&5
20960 echo $ECHO_N "checking whether symbol next_zone is exported... $ECHO_C" >&6
20961 grep -q -E '[[:space:]]next_zone[[:space:]]' \
20962 $LINUX_OBJ/Module*.symvers 2>/dev/null
20963 rc=$?
20964 if test $rc -ne 0; then
20965 export=0
20966 for file in ; do
20967 grep -q -E "EXPORT_SYMBOL.*(next_zone)" \
20968 "$LINUX_OBJ/$file" 2>/dev/null
20969 rc=$?
20970 if test $rc -eq 0; then
20971 export=1
20972 break;
20973 fi
20974 done
20975 if test $export -eq 0; then
20976 echo "$as_me:$LINENO: result: no" >&5
20977 echo "${ECHO_T}no" >&6
20978
20979 else
20980 echo "$as_me:$LINENO: result: yes" >&5
20981 echo "${ECHO_T}yes" >&6
20982
20983 cat >>confdefs.h <<\_ACEOF
20984 #define HAVE_NEXT_ZONE 1
20985 _ACEOF
20986
20987 fi
20988 else
20989 echo "$as_me:$LINENO: result: yes" >&5
20990 echo "${ECHO_T}yes" >&6
20991
20992 cat >>confdefs.h <<\_ACEOF
20993 #define HAVE_NEXT_ZONE 1
20994 _ACEOF
20995
20996 fi
20997
20998
20999
21000 echo "$as_me:$LINENO: checking whether symbol pgdat_list is exported" >&5
21001 echo $ECHO_N "checking whether symbol pgdat_list is exported... $ECHO_C" >&6
21002 grep -q -E '[[:space:]]pgdat_list[[:space:]]' \
21003 $LINUX_OBJ/Module*.symvers 2>/dev/null
21004 rc=$?
21005 if test $rc -ne 0; then
21006 export=0
21007 for file in ; do
21008 grep -q -E "EXPORT_SYMBOL.*(pgdat_list)" \
21009 "$LINUX_OBJ/$file" 2>/dev/null
21010 rc=$?
21011 if test $rc -eq 0; then
21012 export=1
21013 break;
21014 fi
21015 done
21016 if test $export -eq 0; then
21017 echo "$as_me:$LINENO: result: no" >&5
21018 echo "${ECHO_T}no" >&6
21019
21020 else
21021 echo "$as_me:$LINENO: result: yes" >&5
21022 echo "${ECHO_T}yes" >&6
21023
21024 cat >>confdefs.h <<\_ACEOF
21025 #define HAVE_PGDAT_LIST 1
21026 _ACEOF
21027
21028 fi
21029 else
21030 echo "$as_me:$LINENO: result: yes" >&5
21031 echo "${ECHO_T}yes" >&6
21032
21033 cat >>confdefs.h <<\_ACEOF
21034 #define HAVE_PGDAT_LIST 1
21035 _ACEOF
21036
21037 fi
21038
21039
21040
21041 echo "$as_me:$LINENO: checking whether symbol get_zone_counts is exported" >&5
21042 echo $ECHO_N "checking whether symbol get_zone_counts is exported... $ECHO_C" >&6
21043 grep -q -E '[[:space:]]get_zone_counts[[:space:]]' \
21044 $LINUX_OBJ/Module*.symvers 2>/dev/null
21045 rc=$?
21046 if test $rc -ne 0; then
21047 export=0
21048 for file in ; do
21049 grep -q -E "EXPORT_SYMBOL.*(get_zone_counts)" \
21050 "$LINUX_OBJ/$file" 2>/dev/null
21051 rc=$?
21052 if test $rc -eq 0; then
21053 export=1
21054 break;
21055 fi
21056 done
21057 if test $export -eq 0; then
21058 echo "$as_me:$LINENO: result: no" >&5
21059 echo "${ECHO_T}no" >&6
21060
21061 else
21062 echo "$as_me:$LINENO: result: yes" >&5
21063 echo "${ECHO_T}yes" >&6
21064
21065 cat >>confdefs.h <<\_ACEOF
21066 #define HAVE_GET_ZONE_COUNTS 1
21067 _ACEOF
21068
21069 fi
21070 else
21071 echo "$as_me:$LINENO: result: yes" >&5
21072 echo "${ECHO_T}yes" >&6
21073
21074 cat >>confdefs.h <<\_ACEOF
21075 #define HAVE_GET_ZONE_COUNTS 1
21076 _ACEOF
21077
21078 fi
21079
21080
21081
21082 echo "$as_me:$LINENO: checking whether global_page_state() is available" >&5
21083 echo $ECHO_N "checking whether global_page_state() is available... $ECHO_C" >&6
21084
21085
21086 cat >conftest.c <<_ACEOF
21087 /* confdefs.h. */
21088 _ACEOF
21089 cat confdefs.h >>conftest.$ac_ext
21090 cat >>conftest.$ac_ext <<_ACEOF
21091 /* end confdefs.h. */
21092
21093
21094 #include <linux/vmstat.h>
21095
21096 int
21097 main (void)
21098 {
21099
21100 unsigned long state;
21101 state = global_page_state(NR_FREE_PAGES);
21102
21103 ;
21104 return 0;
21105 }
21106
21107 _ACEOF
21108
21109
21110 rm -Rf build && mkdir -p build
21111 echo "obj-m := conftest.o" >build/Makefile
21112 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'
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); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21119 (eval $ac_try) 2>&5
21120 ac_status=$?
21121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21122 (exit $ac_status); }; }; then
21123
21124 echo "$as_me:$LINENO: result: yes" >&5
21125 echo "${ECHO_T}yes" >&6
21126
21127 cat >>confdefs.h <<\_ACEOF
21128 #define HAVE_GLOBAL_PAGE_STATE 1
21129 _ACEOF
21130
21131
21132 else
21133 echo "$as_me: failed program was:" >&5
21134 sed 's/^/| /' conftest.$ac_ext >&5
21135
21136 echo "$as_me:$LINENO: result: no" >&5
21137 echo "${ECHO_T}no" >&6
21138
21139
21140
21141 fi
21142
21143 rm -Rf build
21144
21145
21146
21147
21148 echo "$as_me:$LINENO: checking whether free/inactive/active page state is available" >&5
21149 echo $ECHO_N "checking whether free/inactive/active page state is available... $ECHO_C" >&6
21150
21151
21152 cat >conftest.c <<_ACEOF
21153 /* confdefs.h. */
21154 _ACEOF
21155 cat confdefs.h >>conftest.$ac_ext
21156 cat >>conftest.$ac_ext <<_ACEOF
21157 /* end confdefs.h. */
21158
21159
21160 #include <linux/mmzone.h>
21161
21162 int
21163 main (void)
21164 {
21165
21166 enum zone_stat_item i1, i2, i3;
21167 i1 = NR_FREE_PAGES;
21168 i2 = NR_INACTIVE;
21169 i3 = NR_ACTIVE;
21170
21171 ;
21172 return 0;
21173 }
21174
21175 _ACEOF
21176
21177
21178 rm -Rf build && mkdir -p build
21179 echo "obj-m := conftest.o" >build/Makefile
21180 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'
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); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21187 (eval $ac_try) 2>&5
21188 ac_status=$?
21189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21190 (exit $ac_status); }; }; then
21191
21192 echo "$as_me:$LINENO: result: yes" >&5
21193 echo "${ECHO_T}yes" >&6
21194
21195 cat >>confdefs.h <<\_ACEOF
21196 #define HAVE_ZONE_STAT_ITEM_FIA 1
21197 _ACEOF
21198
21199
21200 else
21201 echo "$as_me: failed program was:" >&5
21202 sed 's/^/| /' conftest.$ac_ext >&5
21203
21204 echo "$as_me:$LINENO: result: no" >&5
21205 echo "${ECHO_T}no" >&6
21206
21207
21208
21209 fi
21210
21211 rm -Rf build
21212
21213
21214
21215 echo "$as_me:$LINENO: checking whether vfs_unlink() wants 2 args" >&5
21216 echo $ECHO_N "checking whether vfs_unlink() wants 2 args... $ECHO_C" >&6
21217
21218
21219 cat >conftest.c <<_ACEOF
21220 /* confdefs.h. */
21221 _ACEOF
21222 cat confdefs.h >>conftest.$ac_ext
21223 cat >>conftest.$ac_ext <<_ACEOF
21224 /* end confdefs.h. */
21225
21226
21227 #include <linux/fs.h>
21228
21229 int
21230 main (void)
21231 {
21232
21233 vfs_unlink(NULL, NULL);
21234
21235 ;
21236 return 0;
21237 }
21238
21239 _ACEOF
21240
21241
21242 rm -Rf build && mkdir -p build
21243 echo "obj-m := conftest.o" >build/Makefile
21244 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'
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); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21251 (eval $ac_try) 2>&5
21252 ac_status=$?
21253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21254 (exit $ac_status); }; }; then
21255
21256 echo "$as_me:$LINENO: result: yes" >&5
21257 echo "${ECHO_T}yes" >&6
21258
21259 cat >>confdefs.h <<\_ACEOF
21260 #define HAVE_2ARGS_VFS_UNLINK 1
21261 _ACEOF
21262
21263
21264 else
21265 echo "$as_me: failed program was:" >&5
21266 sed 's/^/| /' conftest.$ac_ext >&5
21267
21268 echo "$as_me:$LINENO: result: no" >&5
21269 echo "${ECHO_T}no" >&6
21270
21271
21272
21273 fi
21274
21275 rm -Rf build
21276
21277
21278
21279 echo "$as_me:$LINENO: checking whether vfs_rename() wants 4 args" >&5
21280 echo $ECHO_N "checking whether vfs_rename() wants 4 args... $ECHO_C" >&6
21281
21282
21283 cat >conftest.c <<_ACEOF
21284 /* confdefs.h. */
21285 _ACEOF
21286 cat confdefs.h >>conftest.$ac_ext
21287 cat >>conftest.$ac_ext <<_ACEOF
21288 /* end confdefs.h. */
21289
21290
21291 #include <linux/fs.h>
21292
21293 int
21294 main (void)
21295 {
21296
21297 vfs_rename(NULL, NULL, NULL, NULL);
21298
21299 ;
21300 return 0;
21301 }
21302
21303 _ACEOF
21304
21305
21306 rm -Rf build && mkdir -p build
21307 echo "obj-m := conftest.o" >build/Makefile
21308 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'
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); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21315 (eval $ac_try) 2>&5
21316 ac_status=$?
21317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21318 (exit $ac_status); }; }; then
21319
21320 echo "$as_me:$LINENO: result: yes" >&5
21321 echo "${ECHO_T}yes" >&6
21322
21323 cat >>confdefs.h <<\_ACEOF
21324 #define HAVE_4ARGS_VFS_RENAME 1
21325 _ACEOF
21326
21327
21328 else
21329 echo "$as_me: failed program was:" >&5
21330 sed 's/^/| /' conftest.$ac_ext >&5
21331
21332 echo "$as_me:$LINENO: result: no" >&5
21333 echo "${ECHO_T}no" >&6
21334
21335
21336
21337 fi
21338
21339 rm -Rf build
21340
21341
21342
21343 ;;
21344 user) ;;
21345 all)
21346
21347
21348 # Check whether --with-linux or --without-linux was given.
21349 if test "${with_linux+set}" = set; then
21350 withval="$with_linux"
21351 kernelsrc="$withval"
21352 fi;
21353
21354
21355 # Check whether --with-linux-obj or --without-linux-obj was given.
21356 if test "${with_linux_obj+set}" = set; then
21357 withval="$with_linux_obj"
21358 kernelbuild="$withval"
21359 fi;
21360
21361 echo "$as_me:$LINENO: checking kernel source directory" >&5
21362 echo $ECHO_N "checking kernel source directory... $ECHO_C" >&6
21363 if test -z "$kernelsrc"; then
21364 sourcelink=`ls -1d /usr/src/kernels/* /usr/src/linux-* \
21365 2>/dev/null | grep -v obj | tail -1`
21366
21367 if test -e ${sourcelink}; then
21368 kernelsrc=`readlink -f ${sourcelink}`
21369 else
21370 echo "$as_me:$LINENO: result: Not found" >&5
21371 echo "${ECHO_T}Not found" >&6
21372 { { echo "$as_me:$LINENO: error:
21373 *** Please specify the location of the kernel source
21374 *** with the '--with-linux=PATH' option" >&5
21375 echo "$as_me: error:
21376 *** Please specify the location of the kernel source
21377 *** with the '--with-linux=PATH' option" >&2;}
21378 { (exit 1); exit 1; }; }
21379 fi
21380 else
21381 if test "$kernelsrc" = "NONE"; then
21382 kernsrcver=NONE
21383 fi
21384 fi
21385
21386 echo "$as_me:$LINENO: result: $kernelsrc" >&5
21387 echo "${ECHO_T}$kernelsrc" >&6
21388 echo "$as_me:$LINENO: checking kernel build directory" >&5
21389 echo $ECHO_N "checking kernel build directory... $ECHO_C" >&6
21390 if test -z "$kernelbuild"; then
21391 if test -d ${kernelsrc}-obj; then
21392 kernelbuild=${kernelsrc}-obj/`arch`/`arch`
21393 elif test -d `dirname ${kernelsrc}`/build-`arch`; then
21394 kernelbuild=`dirname ${kernelsrc}`/build-`arch`
21395 else
21396 kernelbuild=${kernelsrc}
21397 fi
21398 fi
21399 echo "$as_me:$LINENO: result: $kernelbuild" >&5
21400 echo "${ECHO_T}$kernelbuild" >&6
21401
21402 echo "$as_me:$LINENO: checking kernel source version" >&5
21403 echo $ECHO_N "checking kernel source version... $ECHO_C" >&6
21404 if test -r $kernelbuild/include/linux/version.h &&
21405 fgrep -q UTS_RELEASE $kernelbuild/include/linux/version.h; then
21406
21407 kernsrcver=`(echo "#include <linux/version.h>";
21408 echo "kernsrcver=UTS_RELEASE") |
21409 cpp -I $kernelbuild/include |
21410 grep "^kernsrcver=" | cut -d \" -f 2`
21411
21412 elif test -r $kernelbuild/include/linux/utsrelease.h &&
21413 fgrep -q UTS_RELEASE $kernelbuild/include/linux/utsrelease.h; then
21414
21415 kernsrcver=`(echo "#include <linux/utsrelease.h>";
21416 echo "kernsrcver=UTS_RELEASE") |
21417 cpp -I $kernelbuild/include |
21418 grep "^kernsrcver=" | cut -d \" -f 2`
21419 fi
21420
21421 if test -z "$kernsrcver"; then
21422 echo "$as_me:$LINENO: result: Not found" >&5
21423 echo "${ECHO_T}Not found" >&6
21424 { { echo "$as_me:$LINENO: error:
21425 *** Cannot determine the version of the linux kernel source.
21426 *** Please prepare the kernel before running this script" >&5
21427 echo "$as_me: error:
21428 *** Cannot determine the version of the linux kernel source.
21429 *** Please prepare the kernel before running this script" >&2;}
21430 { (exit 1); exit 1; }; }
21431 fi
21432
21433 echo "$as_me:$LINENO: result: $kernsrcver" >&5
21434 echo "${ECHO_T}$kernsrcver" >&6
21435
21436 LINUX=${kernelsrc}
21437 LINUX_OBJ=${kernelbuild}
21438 LINUX_VERSION=${kernsrcver}
21439
21440
21441
21442
21443
21444
21445 modpost=$LINUX/scripts/Makefile.modpost
21446 echo "$as_me:$LINENO: checking kernel file name for module symbols" >&5
21447 echo $ECHO_N "checking kernel file name for module symbols... $ECHO_C" >&6
21448 if test -f "$modpost"; then
21449 if grep -q Modules.symvers $modpost; then
21450 LINUX_SYMBOLS=Modules.symvers
21451 else
21452 LINUX_SYMBOLS=Module.symvers
21453 fi
21454 else
21455 LINUX_SYMBOLS=NONE
21456 fi
21457 echo "$as_me:$LINENO: result: $LINUX_SYMBOLS" >&5
21458 echo "${ECHO_T}$LINUX_SYMBOLS" >&6
21459
21460
21461
21462
21463 KERNELMAKE_PARAMS="V=1"
21464
21465 abs_srcdir=`readlink -f ${srcdir}`
21466 KERNELCPPFLAGS="$KERNELCPPFLAGS -Wstrict-prototypes -Werror"
21467 KERNELCPPFLAGS="$KERNELCPPFLAGS -I${abs_srcdir} -I${abs_srcdir}/include"
21468
21469 if test "${LINUX_OBJ}" != "${LINUX}"; then
21470 KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
21471 fi
21472
21473
21474
21475
21476
21477 echo "$as_me:$LINENO: checking whether debugging is enabled" >&5
21478 echo $ECHO_N "checking whether debugging is enabled... $ECHO_C" >&6
21479 # Check whether --enable-debug or --disable-debug was given.
21480 if test "${enable_debug+set}" = set; then
21481 enableval="$enable_debug"
21482 case "$enableval" in
21483 yes) spl_ac_debug=yes ;;
21484 no) spl_ac_debug=no ;;
21485 *) echo "$as_me:$LINENO: result: Error!" >&5
21486 echo "${ECHO_T}Error!" >&6
21487 { { echo "$as_me:$LINENO: error: Bad value \"$enableval\" for --enable-debug" >&5
21488 echo "$as_me: error: Bad value \"$enableval\" for --enable-debug" >&2;}
21489 { (exit 1); exit 1; }; } ;;
21490 esac
21491
21492 fi;
21493 if test "$spl_ac_debug" = yes; then
21494 echo "$as_me:$LINENO: result: yes" >&5
21495 echo "${ECHO_T}yes" >&6
21496 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG"
21497 else
21498 echo "$as_me:$LINENO: result: no" >&5
21499 echo "${ECHO_T}no" >&6
21500 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DNDEBUG"
21501 fi
21502
21503
21504 echo "$as_me:$LINENO: checking whether kmem debugging is enabled" >&5
21505 echo $ECHO_N "checking whether kmem debugging is enabled... $ECHO_C" >&6
21506 # Check whether --enable-debug-kmem or --disable-debug-kmem was given.
21507 if test "${enable_debug_kmem+set}" = set; then
21508 enableval="$enable_debug_kmem"
21509 case "$enableval" in
21510 yes) spl_ac_debug_kmem=yes ;;
21511 no) spl_ac_debug_kmem=no ;;
21512 *) echo "$as_me:$LINENO: result: Error!" >&5
21513 echo "${ECHO_T}Error!" >&6
21514 { { echo "$as_me:$LINENO: error: Bad value \"$enableval\" for --enable-debug-kmem" >&5
21515 echo "$as_me: error: Bad value \"$enableval\" for --enable-debug-kmem" >&2;}
21516 { (exit 1); exit 1; }; } ;;
21517 esac
21518
21519 fi;
21520 if test "$spl_ac_debug_kmem" = yes; then
21521 echo "$as_me:$LINENO: result: yes" >&5
21522 echo "${ECHO_T}yes" >&6
21523
21524 cat >>confdefs.h <<\_ACEOF
21525 #define DEBUG_KMEM 1
21526 _ACEOF
21527
21528 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_KMEM"
21529 else
21530 echo "$as_me:$LINENO: result: no" >&5
21531 echo "${ECHO_T}no" >&6
21532 fi
21533
21534
21535 echo "$as_me:$LINENO: checking whether mutex debugging is enabled" >&5
21536 echo $ECHO_N "checking whether mutex debugging is enabled... $ECHO_C" >&6
21537 # Check whether --enable-debug-mutex or --disable-debug-mutex was given.
21538 if test "${enable_debug_mutex+set}" = set; then
21539 enableval="$enable_debug_mutex"
21540 case "$enableval" in
21541 yes) spl_ac_debug_mutex=yes ;;
21542 no) spl_ac_debug_mutex=no ;;
21543 *) echo "$as_me:$LINENO: result: Error!" >&5
21544 echo "${ECHO_T}Error!" >&6
21545 { { echo "$as_me:$LINENO: error: Bad value \"$enableval\" for --enable-debug-mutex" >&5
21546 echo "$as_me: error: Bad value \"$enableval\" for --enable-debug-mutex" >&2;}
21547 { (exit 1); exit 1; }; } ;;
21548 esac
21549
21550 fi;
21551 if test "$spl_ac_debug_mutex" = yes; then
21552 echo "$as_me:$LINENO: result: yes" >&5
21553 echo "${ECHO_T}yes" >&6
21554
21555 cat >>confdefs.h <<\_ACEOF
21556 #define DEBUG_MUTEX 1
21557 _ACEOF
21558
21559 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_MUTEX"
21560 else
21561 echo "$as_me:$LINENO: result: no" >&5
21562 echo "${ECHO_T}no" >&6
21563 fi
21564
21565
21566 echo "$as_me:$LINENO: checking whether kstat debugging is enabled" >&5
21567 echo $ECHO_N "checking whether kstat debugging is enabled... $ECHO_C" >&6
21568 # Check whether --enable-debug-kstat or --disable-debug-kstat was given.
21569 if test "${enable_debug_kstat+set}" = set; then
21570 enableval="$enable_debug_kstat"
21571 case "$enableval" in
21572 yes) spl_ac_debug_kstat=yes ;;
21573 no) spl_ac_debug_kstat=no ;;
21574 *) echo "$as_me:$LINENO: result: Error!" >&5
21575 echo "${ECHO_T}Error!" >&6
21576 { { echo "$as_me:$LINENO: error: Bad value \"$enableval\" for --enable-debug-kstat" >&5
21577 echo "$as_me: error: Bad value \"$enableval\" for --enable-debug-kstat" >&2;}
21578 { (exit 1); exit 1; }; } ;;
21579 esac
21580
21581 fi;
21582 if test "$spl_ac_debug_kstat" = yes; then
21583 echo "$as_me:$LINENO: result: yes" >&5
21584 echo "${ECHO_T}yes" >&6
21585
21586 cat >>confdefs.h <<\_ACEOF
21587 #define DEBUG_KSTAT 1
21588 _ACEOF
21589
21590 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_KSTAT"
21591 else
21592 echo "$as_me:$LINENO: result: no" >&5
21593 echo "${ECHO_T}no" >&6
21594 fi
21595
21596
21597 echo "$as_me:$LINENO: checking whether callb debugging is enabled" >&5
21598 echo $ECHO_N "checking whether callb debugging is enabled... $ECHO_C" >&6
21599 # Check whether --enable-debug-callb or --disable-debug-callb was given.
21600 if test "${enable_debug_callb+set}" = set; then
21601 enableval="$enable_debug_callb"
21602 case "$enableval" in
21603 yes) spl_ac_debug_callb=yes ;;
21604 no) spl_ac_debug_callb=no ;;
21605 *) echo "$as_me:$LINENO: result: Error!" >&5
21606 echo "${ECHO_T}Error!" >&6
21607 { { echo "$as_me:$LINENO: error: Bad value \"$enableval\" for --enable-debug-callb" >&5
21608 echo "$as_me: error: Bad value \"$enableval\" for --enable-debug-callb" >&2;}
21609 { (exit 1); exit 1; }; } ;;
21610 esac
21611
21612 fi;
21613 if test "$spl_ac_debug_callb" = yes; then
21614 echo "$as_me:$LINENO: result: yes" >&5
21615 echo "${ECHO_T}yes" >&6
21616
21617 cat >>confdefs.h <<\_ACEOF
21618 #define DEBUG_CALLB 1
21619 _ACEOF
21620
21621 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_CALLB"
21622 else
21623 echo "$as_me:$LINENO: result: no" >&5
21624 echo "${ECHO_T}no" >&6
21625 fi
21626
21627 echo "$as_me:$LINENO: checking whether kernel defines uintptr_t" >&5
21628 echo $ECHO_N "checking whether kernel defines uintptr_t... $ECHO_C" >&6
21629
21630
21631 cat >conftest.c <<_ACEOF
21632 /* confdefs.h. */
21633 _ACEOF
21634 cat confdefs.h >>conftest.$ac_ext
21635 cat >>conftest.$ac_ext <<_ACEOF
21636 /* end confdefs.h. */
21637
21638
21639 #include <linux/types.h>
21640
21641 int
21642 main (void)
21643 {
21644
21645 uintptr_t *ptr;
21646
21647 ;
21648 return 0;
21649 }
21650
21651 _ACEOF
21652
21653
21654 rm -Rf build && mkdir -p build
21655 echo "obj-m := conftest.o" >build/Makefile
21656 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'
21657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21658 (eval $ac_try) 2>&5
21659 ac_status=$?
21660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21661 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21663 (eval $ac_try) 2>&5
21664 ac_status=$?
21665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21666 (exit $ac_status); }; }; then
21667
21668 echo "$as_me:$LINENO: result: yes" >&5
21669 echo "${ECHO_T}yes" >&6
21670
21671 cat >>confdefs.h <<\_ACEOF
21672 #define HAVE_UINTPTR_T 1
21673 _ACEOF
21674
21675
21676 else
21677 echo "$as_me: failed program was:" >&5
21678 sed 's/^/| /' conftest.$ac_ext >&5
21679
21680 echo "$as_me:$LINENO: result: no" >&5
21681 echo "${ECHO_T}no" >&6
21682
21683
21684
21685 fi
21686
21687 rm -Rf build
21688
21689
21690
21691 echo "$as_me:$LINENO: checking whether kernel defines atomic64_t" >&5
21692 echo $ECHO_N "checking whether kernel defines atomic64_t... $ECHO_C" >&6
21693
21694
21695 cat >conftest.c <<_ACEOF
21696 /* confdefs.h. */
21697 _ACEOF
21698 cat confdefs.h >>conftest.$ac_ext
21699 cat >>conftest.$ac_ext <<_ACEOF
21700 /* end confdefs.h. */
21701
21702
21703 #include <asm/atomic.h>
21704
21705 int
21706 main (void)
21707 {
21708
21709 atomic64_t *ptr;
21710
21711 ;
21712 return 0;
21713 }
21714
21715 _ACEOF
21716
21717
21718 rm -Rf build && mkdir -p build
21719 echo "obj-m := conftest.o" >build/Makefile
21720 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'
21721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21722 (eval $ac_try) 2>&5
21723 ac_status=$?
21724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21725 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21727 (eval $ac_try) 2>&5
21728 ac_status=$?
21729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21730 (exit $ac_status); }; }; then
21731
21732 echo "$as_me:$LINENO: result: yes" >&5
21733 echo "${ECHO_T}yes" >&6
21734
21735 cat >>confdefs.h <<\_ACEOF
21736 #define HAVE_ATOMIC64_T 1
21737 _ACEOF
21738
21739
21740 else
21741 echo "$as_me: failed program was:" >&5
21742 sed 's/^/| /' conftest.$ac_ext >&5
21743
21744 echo "$as_me:$LINENO: result: no" >&5
21745 echo "${ECHO_T}no" >&6
21746
21747
21748
21749 fi
21750
21751 rm -Rf build
21752
21753
21754
21755 echo "$as_me:$LINENO: checking whether INIT_WORK wants 3 args" >&5
21756 echo $ECHO_N "checking whether INIT_WORK wants 3 args... $ECHO_C" >&6
21757
21758
21759 cat >conftest.c <<_ACEOF
21760 /* confdefs.h. */
21761 _ACEOF
21762 cat confdefs.h >>conftest.$ac_ext
21763 cat >>conftest.$ac_ext <<_ACEOF
21764 /* end confdefs.h. */
21765
21766
21767 #include <linux/workqueue.h>
21768
21769 int
21770 main (void)
21771 {
21772
21773 struct work_struct work;
21774 INIT_WORK(&work, NULL, NULL);
21775
21776 ;
21777 return 0;
21778 }
21779
21780 _ACEOF
21781
21782
21783 rm -Rf build && mkdir -p build
21784 echo "obj-m := conftest.o" >build/Makefile
21785 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'
21786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21787 (eval $ac_try) 2>&5
21788 ac_status=$?
21789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21790 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21792 (eval $ac_try) 2>&5
21793 ac_status=$?
21794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21795 (exit $ac_status); }; }; then
21796
21797 echo "$as_me:$LINENO: result: yes" >&5
21798 echo "${ECHO_T}yes" >&6
21799
21800 cat >>confdefs.h <<\_ACEOF
21801 #define HAVE_3ARGS_INIT_WORK 1
21802 _ACEOF
21803
21804
21805 else
21806 echo "$as_me: failed program was:" >&5
21807 sed 's/^/| /' conftest.$ac_ext >&5
21808
21809 echo "$as_me:$LINENO: result: no" >&5
21810 echo "${ECHO_T}no" >&6
21811
21812
21813
21814 fi
21815
21816 rm -Rf build
21817
21818
21819
21820 echo "$as_me:$LINENO: checking whether register_sysctl_table() wants 2 args" >&5
21821 echo $ECHO_N "checking whether register_sysctl_table() wants 2 args... $ECHO_C" >&6
21822
21823
21824 cat >conftest.c <<_ACEOF
21825 /* confdefs.h. */
21826 _ACEOF
21827 cat confdefs.h >>conftest.$ac_ext
21828 cat >>conftest.$ac_ext <<_ACEOF
21829 /* end confdefs.h. */
21830
21831
21832 #include <linux/sysctl.h>
21833
21834 int
21835 main (void)
21836 {
21837
21838 return register_sysctl_table(NULL,0);
21839
21840 ;
21841 return 0;
21842 }
21843
21844 _ACEOF
21845
21846
21847 rm -Rf build && mkdir -p build
21848 echo "obj-m := conftest.o" >build/Makefile
21849 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'
21850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21851 (eval $ac_try) 2>&5
21852 ac_status=$?
21853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21854 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21856 (eval $ac_try) 2>&5
21857 ac_status=$?
21858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21859 (exit $ac_status); }; }; then
21860
21861 echo "$as_me:$LINENO: result: yes" >&5
21862 echo "${ECHO_T}yes" >&6
21863
21864 cat >>confdefs.h <<\_ACEOF
21865 #define HAVE_2ARGS_REGISTER_SYSCTL 1
21866 _ACEOF
21867
21868
21869 else
21870 echo "$as_me: failed program was:" >&5
21871 sed 's/^/| /' conftest.$ac_ext >&5
21872
21873 echo "$as_me:$LINENO: result: no" >&5
21874 echo "${ECHO_T}no" >&6
21875
21876
21877
21878 fi
21879
21880 rm -Rf build
21881
21882
21883
21884
21885 echo "$as_me:$LINENO: checking whether set_shrinker() available" >&5
21886 echo $ECHO_N "checking whether set_shrinker() available... $ECHO_C" >&6
21887
21888
21889 cat >conftest.c <<_ACEOF
21890 /* confdefs.h. */
21891 _ACEOF
21892 cat confdefs.h >>conftest.$ac_ext
21893 cat >>conftest.$ac_ext <<_ACEOF
21894 /* end confdefs.h. */
21895
21896
21897 #include <linux/mm.h>
21898
21899 int
21900 main (void)
21901 {
21902
21903 return set_shrinker(DEFAULT_SEEKS, NULL);
21904
21905 ;
21906 return 0;
21907 }
21908
21909 _ACEOF
21910
21911
21912 rm -Rf build && mkdir -p build
21913 echo "obj-m := conftest.o" >build/Makefile
21914 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'
21915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21916 (eval $ac_try) 2>&5
21917 ac_status=$?
21918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21919 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21921 (eval $ac_try) 2>&5
21922 ac_status=$?
21923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21924 (exit $ac_status); }; }; then
21925
21926 echo "$as_me:$LINENO: result: yes" >&5
21927 echo "${ECHO_T}yes" >&6
21928
21929 cat >>confdefs.h <<\_ACEOF
21930 #define HAVE_SET_SHRINKER 1
21931 _ACEOF
21932
21933
21934 else
21935 echo "$as_me: failed program was:" >&5
21936 sed 's/^/| /' conftest.$ac_ext >&5
21937
21938 echo "$as_me:$LINENO: result: no" >&5
21939 echo "${ECHO_T}no" >&6
21940
21941
21942
21943 fi
21944
21945 rm -Rf build
21946
21947
21948
21949 echo "$as_me:$LINENO: checking whether struct path used in struct nameidata" >&5
21950 echo $ECHO_N "checking whether struct path used in struct nameidata... $ECHO_C" >&6
21951
21952
21953 cat >conftest.c <<_ACEOF
21954 /* confdefs.h. */
21955 _ACEOF
21956 cat confdefs.h >>conftest.$ac_ext
21957 cat >>conftest.$ac_ext <<_ACEOF
21958 /* end confdefs.h. */
21959
21960
21961 #include <linux/namei.h>
21962
21963 int
21964 main (void)
21965 {
21966
21967 struct nameidata nd;
21968
21969 nd.path.mnt = NULL;
21970 nd.path.dentry = NULL;
21971
21972 ;
21973 return 0;
21974 }
21975
21976 _ACEOF
21977
21978
21979 rm -Rf build && mkdir -p build
21980 echo "obj-m := conftest.o" >build/Makefile
21981 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'
21982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21983 (eval $ac_try) 2>&5
21984 ac_status=$?
21985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21986 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21988 (eval $ac_try) 2>&5
21989 ac_status=$?
21990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21991 (exit $ac_status); }; }; then
21992
21993 echo "$as_me:$LINENO: result: yes" >&5
21994 echo "${ECHO_T}yes" >&6
21995
21996 cat >>confdefs.h <<\_ACEOF
21997 #define HAVE_PATH_IN_NAMEIDATA 1
21998 _ACEOF
21999
22000
22001 else
22002 echo "$as_me: failed program was:" >&5
22003 sed 's/^/| /' conftest.$ac_ext >&5
22004
22005 echo "$as_me:$LINENO: result: no" >&5
22006 echo "${ECHO_T}no" >&6
22007
22008
22009
22010 fi
22011
22012 rm -Rf build
22013
22014
22015
22016
22017 echo "$as_me:$LINENO: checking whether symbol task_curr is exported" >&5
22018 echo $ECHO_N "checking whether symbol task_curr is exported... $ECHO_C" >&6
22019 grep -q -E '[[:space:]]task_curr[[:space:]]' \
22020 $LINUX_OBJ/Module*.symvers 2>/dev/null
22021 rc=$?
22022 if test $rc -ne 0; then
22023 export=0
22024 for file in kernel/sched.c; do
22025 grep -q -E "EXPORT_SYMBOL.*(task_curr)" \
22026 "$LINUX_OBJ/$file" 2>/dev/null
22027 rc=$?
22028 if test $rc -eq 0; then
22029 export=1
22030 break;
22031 fi
22032 done
22033 if test $export -eq 0; then
22034 echo "$as_me:$LINENO: result: no" >&5
22035 echo "${ECHO_T}no" >&6
22036
22037 else
22038 echo "$as_me:$LINENO: result: yes" >&5
22039 echo "${ECHO_T}yes" >&6
22040
22041 cat >>confdefs.h <<\_ACEOF
22042 #define HAVE_TASK_CURR 1
22043 _ACEOF
22044
22045 fi
22046 else
22047 echo "$as_me:$LINENO: result: yes" >&5
22048 echo "${ECHO_T}yes" >&6
22049
22050 cat >>confdefs.h <<\_ACEOF
22051 #define HAVE_TASK_CURR 1
22052 _ACEOF
22053
22054 fi
22055
22056
22057 echo "$as_me:$LINENO: checking whether unnumbered sysctl support exists" >&5
22058 echo $ECHO_N "checking whether unnumbered sysctl support exists... $ECHO_C" >&6
22059
22060
22061 cat >conftest.c <<_ACEOF
22062 /* confdefs.h. */
22063 _ACEOF
22064 cat confdefs.h >>conftest.$ac_ext
22065 cat >>conftest.$ac_ext <<_ACEOF
22066 /* end confdefs.h. */
22067
22068
22069 #include <linux/sysctl.h>
22070
22071 int
22072 main (void)
22073 {
22074
22075 #ifndef CTL_UNNUMBERED
22076 #error CTL_UNNUMBERED undefined
22077 #endif
22078
22079 ;
22080 return 0;
22081 }
22082
22083 _ACEOF
22084
22085
22086 rm -Rf build && mkdir -p build
22087 echo "obj-m := conftest.o" >build/Makefile
22088 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'
22089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22090 (eval $ac_try) 2>&5
22091 ac_status=$?
22092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22093 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
22094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22095 (eval $ac_try) 2>&5
22096 ac_status=$?
22097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22098 (exit $ac_status); }; }; then
22099
22100 echo "$as_me:$LINENO: result: yes" >&5
22101 echo "${ECHO_T}yes" >&6
22102
22103 cat >>confdefs.h <<\_ACEOF
22104 #define HAVE_CTL_UNNUMBERED 1
22105 _ACEOF
22106
22107
22108 else
22109 echo "$as_me: failed program was:" >&5
22110 sed 's/^/| /' conftest.$ac_ext >&5
22111
22112 echo "$as_me:$LINENO: result: no" >&5
22113 echo "${ECHO_T}no" >&6
22114
22115
22116
22117 fi
22118
22119 rm -Rf build
22120
22121
22122
22123 echo "$as_me:$LINENO: checking whether fls64() is available" >&5
22124 echo $ECHO_N "checking whether fls64() is available... $ECHO_C" >&6
22125
22126
22127 cat >conftest.c <<_ACEOF
22128 /* confdefs.h. */
22129 _ACEOF
22130 cat confdefs.h >>conftest.$ac_ext
22131 cat >>conftest.$ac_ext <<_ACEOF
22132 /* end confdefs.h. */
22133
22134
22135 #include <linux/bitops.h>
22136
22137 int
22138 main (void)
22139 {
22140
22141 return fls64(0);
22142
22143 ;
22144 return 0;
22145 }
22146
22147 _ACEOF
22148
22149
22150 rm -Rf build && mkdir -p build
22151 echo "obj-m := conftest.o" >build/Makefile
22152 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'
22153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22154 (eval $ac_try) 2>&5
22155 ac_status=$?
22156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22157 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
22158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22159 (eval $ac_try) 2>&5
22160 ac_status=$?
22161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22162 (exit $ac_status); }; }; then
22163
22164 echo "$as_me:$LINENO: result: yes" >&5
22165 echo "${ECHO_T}yes" >&6
22166
22167 cat >>confdefs.h <<\_ACEOF
22168 #define HAVE_FLS64 1
22169 _ACEOF
22170
22171
22172 else
22173 echo "$as_me: failed program was:" >&5
22174 sed 's/^/| /' conftest.$ac_ext >&5
22175
22176 echo "$as_me:$LINENO: result: no" >&5
22177 echo "${ECHO_T}no" >&6
22178
22179
22180
22181 fi
22182
22183 rm -Rf build
22184
22185
22186
22187
22188 echo "$as_me:$LINENO: checking whether symbol device_create is exported" >&5
22189 echo $ECHO_N "checking whether symbol device_create is exported... $ECHO_C" >&6
22190 grep -q -E '[[:space:]]device_create[[:space:]]' \
22191 $LINUX_OBJ/Module*.symvers 2>/dev/null
22192 rc=$?
22193 if test $rc -ne 0; then
22194 export=0
22195 for file in drivers/base/core.c; do
22196 grep -q -E "EXPORT_SYMBOL.*(device_create)" \
22197 "$LINUX_OBJ/$file" 2>/dev/null
22198 rc=$?
22199 if test $rc -eq 0; then
22200 export=1
22201 break;
22202 fi
22203 done
22204 if test $export -eq 0; then
22205 echo "$as_me:$LINENO: result: no" >&5
22206 echo "${ECHO_T}no" >&6
22207
22208 else
22209 echo "$as_me:$LINENO: result: yes" >&5
22210 echo "${ECHO_T}yes" >&6
22211
22212 cat >>confdefs.h <<\_ACEOF
22213 #define HAVE_DEVICE_CREATE 1
22214 _ACEOF
22215
22216 fi
22217 else
22218 echo "$as_me:$LINENO: result: yes" >&5
22219 echo "${ECHO_T}yes" >&6
22220
22221 cat >>confdefs.h <<\_ACEOF
22222 #define HAVE_DEVICE_CREATE 1
22223 _ACEOF
22224
22225 fi
22226
22227
22228
22229 echo "$as_me:$LINENO: checking whether device_create() wants 5 args" >&5
22230 echo $ECHO_N "checking whether device_create() wants 5 args... $ECHO_C" >&6
22231 tmp_flags="$EXTRA_KCFLAGS"
22232 EXTRA_KCFLAGS="-Werror"
22233
22234
22235 cat >conftest.c <<_ACEOF
22236 /* confdefs.h. */
22237 _ACEOF
22238 cat confdefs.h >>conftest.$ac_ext
22239 cat >>conftest.$ac_ext <<_ACEOF
22240 /* end confdefs.h. */
22241
22242
22243 #include <linux/device.h>
22244
22245 int
22246 main (void)
22247 {
22248
22249 device_create(NULL, NULL, 0, NULL, "%d", 1);
22250
22251 ;
22252 return 0;
22253 }
22254
22255 _ACEOF
22256
22257
22258 rm -Rf build && mkdir -p build
22259 echo "obj-m := conftest.o" >build/Makefile
22260 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'
22261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22262 (eval $ac_try) 2>&5
22263 ac_status=$?
22264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22265 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
22266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22267 (eval $ac_try) 2>&5
22268 ac_status=$?
22269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22270 (exit $ac_status); }; }; then
22271
22272 echo "$as_me:$LINENO: result: yes" >&5
22273 echo "${ECHO_T}yes" >&6
22274
22275 cat >>confdefs.h <<\_ACEOF
22276 #define HAVE_5ARGS_DEVICE_CREATE 1
22277 _ACEOF
22278
22279
22280 else
22281 echo "$as_me: failed program was:" >&5
22282 sed 's/^/| /' conftest.$ac_ext >&5
22283
22284 echo "$as_me:$LINENO: result: no" >&5
22285 echo "${ECHO_T}no" >&6
22286
22287
22288
22289 fi
22290
22291 rm -Rf build
22292
22293
22294 EXTRA_KCFLAGS="$tmp_flags"
22295
22296
22297 echo "$as_me:$LINENO: checking whether symbol class_device_create is exported" >&5
22298 echo $ECHO_N "checking whether symbol class_device_create is exported... $ECHO_C" >&6
22299 grep -q -E '[[:space:]]class_device_create[[:space:]]' \
22300 $LINUX_OBJ/Module*.symvers 2>/dev/null
22301 rc=$?
22302 if test $rc -ne 0; then
22303 export=0
22304 for file in drivers/base/class.c; do
22305 grep -q -E "EXPORT_SYMBOL.*(class_device_create)" \
22306 "$LINUX_OBJ/$file" 2>/dev/null
22307 rc=$?
22308 if test $rc -eq 0; then
22309 export=1
22310 break;
22311 fi
22312 done
22313 if test $export -eq 0; then
22314 echo "$as_me:$LINENO: result: no" >&5
22315 echo "${ECHO_T}no" >&6
22316
22317 else
22318 echo "$as_me:$LINENO: result: yes" >&5
22319 echo "${ECHO_T}yes" >&6
22320
22321 cat >>confdefs.h <<\_ACEOF
22322 #define HAVE_CLASS_DEVICE_CREATE 1
22323 _ACEOF
22324
22325 fi
22326 else
22327 echo "$as_me:$LINENO: result: yes" >&5
22328 echo "${ECHO_T}yes" >&6
22329
22330 cat >>confdefs.h <<\_ACEOF
22331 #define HAVE_CLASS_DEVICE_CREATE 1
22332 _ACEOF
22333
22334 fi
22335
22336
22337
22338 echo "$as_me:$LINENO: checking whether symbol set_normalized_timespec is exported" >&5
22339 echo $ECHO_N "checking whether symbol set_normalized_timespec is exported... $ECHO_C" >&6
22340 grep -q -E '[[:space:]]set_normalized_timespec[[:space:]]' \
22341 $LINUX_OBJ/Module*.symvers 2>/dev/null
22342 rc=$?
22343 if test $rc -ne 0; then
22344 export=0
22345 for file in kernel/time.c; do
22346 grep -q -E "EXPORT_SYMBOL.*(set_normalized_timespec)" \
22347 "$LINUX_OBJ/$file" 2>/dev/null
22348 rc=$?
22349 if test $rc -eq 0; then
22350 export=1
22351 break;
22352 fi
22353 done
22354 if test $export -eq 0; then
22355 echo "$as_me:$LINENO: result: no" >&5
22356 echo "${ECHO_T}no" >&6
22357
22358 else
22359 echo "$as_me:$LINENO: result: yes" >&5
22360 echo "${ECHO_T}yes" >&6
22361
22362 cat >>confdefs.h <<\_ACEOF
22363 #define HAVE_SET_NORMALIZED_TIMESPEC_EXPORT 1
22364 _ACEOF
22365
22366 fi
22367 else
22368 echo "$as_me:$LINENO: result: yes" >&5
22369 echo "${ECHO_T}yes" >&6
22370
22371 cat >>confdefs.h <<\_ACEOF
22372 #define HAVE_SET_NORMALIZED_TIMESPEC_EXPORT 1
22373 _ACEOF
22374
22375 fi
22376
22377
22378
22379 echo "$as_me:$LINENO: checking whether set_normalized_timespec() is an inline" >&5
22380 echo $ECHO_N "checking whether set_normalized_timespec() is an inline... $ECHO_C" >&6
22381
22382
22383 cat >conftest.c <<_ACEOF
22384 /* confdefs.h. */
22385 _ACEOF
22386 cat confdefs.h >>conftest.$ac_ext
22387 cat >>conftest.$ac_ext <<_ACEOF
22388 /* end confdefs.h. */
22389
22390
22391 #include <linux/time.h>
22392 void set_normalized_timespec(struct timespec *ts,
22393 time_t sec, long nsec) { }
22394
22395 int
22396 main (void)
22397 {
22398
22399 ;
22400 return 0;
22401 }
22402
22403 _ACEOF
22404
22405
22406 rm -Rf build && mkdir -p build
22407 echo "obj-m := conftest.o" >build/Makefile
22408 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'
22409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22410 (eval $ac_try) 2>&5
22411 ac_status=$?
22412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22413 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
22414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22415 (eval $ac_try) 2>&5
22416 ac_status=$?
22417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22418 (exit $ac_status); }; }; then
22419
22420 echo "$as_me:$LINENO: result: no" >&5
22421 echo "${ECHO_T}no" >&6
22422
22423 else
22424 echo "$as_me: failed program was:" >&5
22425 sed 's/^/| /' conftest.$ac_ext >&5
22426
22427 echo "$as_me:$LINENO: result: yes" >&5
22428 echo "${ECHO_T}yes" >&6
22429
22430 cat >>confdefs.h <<\_ACEOF
22431 #define HAVE_SET_NORMALIZED_TIMESPEC_INLINE 1
22432 _ACEOF
22433
22434
22435
22436
22437 fi
22438
22439 rm -Rf build
22440
22441
22442
22443
22444 echo "$as_me:$LINENO: checking whether timespec_sub() is available" >&5
22445 echo $ECHO_N "checking whether timespec_sub() is available... $ECHO_C" >&6
22446
22447
22448 cat >conftest.c <<_ACEOF
22449 /* confdefs.h. */
22450 _ACEOF
22451 cat confdefs.h >>conftest.$ac_ext
22452 cat >>conftest.$ac_ext <<_ACEOF
22453 /* end confdefs.h. */
22454
22455
22456 #include <linux/time.h>
22457
22458 int
22459 main (void)
22460 {
22461
22462 struct timespec a, b, c = { 0 };
22463 c = timespec_sub(a, b);
22464
22465 ;
22466 return 0;
22467 }
22468
22469 _ACEOF
22470
22471
22472 rm -Rf build && mkdir -p build
22473 echo "obj-m := conftest.o" >build/Makefile
22474 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'
22475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22476 (eval $ac_try) 2>&5
22477 ac_status=$?
22478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22479 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
22480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22481 (eval $ac_try) 2>&5
22482 ac_status=$?
22483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22484 (exit $ac_status); }; }; then
22485
22486 echo "$as_me:$LINENO: result: yes" >&5
22487 echo "${ECHO_T}yes" >&6
22488
22489 cat >>confdefs.h <<\_ACEOF
22490 #define HAVE_TIMESPEC_SUB 1
22491 _ACEOF
22492
22493
22494 else
22495 echo "$as_me: failed program was:" >&5
22496 sed 's/^/| /' conftest.$ac_ext >&5
22497
22498 echo "$as_me:$LINENO: result: no" >&5
22499 echo "${ECHO_T}no" >&6
22500
22501
22502
22503 fi
22504
22505 rm -Rf build
22506
22507
22508
22509
22510 echo "$as_me:$LINENO: checking whether init_utsname() is available" >&5
22511 echo $ECHO_N "checking whether init_utsname() is available... $ECHO_C" >&6
22512
22513
22514 cat >conftest.c <<_ACEOF
22515 /* confdefs.h. */
22516 _ACEOF
22517 cat confdefs.h >>conftest.$ac_ext
22518 cat >>conftest.$ac_ext <<_ACEOF
22519 /* end confdefs.h. */
22520
22521
22522 #include <linux/utsname.h>
22523
22524 int
22525 main (void)
22526 {
22527
22528 struct new_utsname *a = init_utsname();
22529
22530 ;
22531 return 0;
22532 }
22533
22534 _ACEOF
22535
22536
22537 rm -Rf build && mkdir -p build
22538 echo "obj-m := conftest.o" >build/Makefile
22539 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'
22540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22541 (eval $ac_try) 2>&5
22542 ac_status=$?
22543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22544 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
22545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22546 (eval $ac_try) 2>&5
22547 ac_status=$?
22548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22549 (exit $ac_status); }; }; then
22550
22551 echo "$as_me:$LINENO: result: yes" >&5
22552 echo "${ECHO_T}yes" >&6
22553
22554 cat >>confdefs.h <<\_ACEOF
22555 #define HAVE_INIT_UTSNAME 1
22556 _ACEOF
22557
22558
22559 else
22560 echo "$as_me: failed program was:" >&5
22561 sed 's/^/| /' conftest.$ac_ext >&5
22562
22563 echo "$as_me:$LINENO: result: no" >&5
22564 echo "${ECHO_T}no" >&6
22565
22566
22567
22568 fi
22569
22570 rm -Rf build
22571
22572
22573
22574
22575 echo "$as_me:$LINENO: checking whether header linux/fdtable.h exists" >&5
22576 echo $ECHO_N "checking whether header linux/fdtable.h exists... $ECHO_C" >&6
22577
22578
22579 cat >conftest.c <<_ACEOF
22580 /* confdefs.h. */
22581 _ACEOF
22582 cat confdefs.h >>conftest.$ac_ext
22583 cat >>conftest.$ac_ext <<_ACEOF
22584 /* end confdefs.h. */
22585
22586
22587 #include <linux/fdtable.h>
22588
22589 int
22590 main (void)
22591 {
22592
22593 return 0;
22594
22595 ;
22596 return 0;
22597 }
22598
22599 _ACEOF
22600
22601
22602 rm -Rf build && mkdir -p build
22603 echo "obj-m := conftest.o" >build/Makefile
22604 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'
22605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22606 (eval $ac_try) 2>&5
22607 ac_status=$?
22608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22609 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
22610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22611 (eval $ac_try) 2>&5
22612 ac_status=$?
22613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22614 (exit $ac_status); }; }; then
22615
22616
22617 cat >>confdefs.h <<\_ACEOF
22618 #define HAVE_FDTABLE_HEADER 1
22619 _ACEOF
22620
22621 echo "$as_me:$LINENO: result: yes" >&5
22622 echo "${ECHO_T}yes" >&6
22623
22624
22625 else
22626 echo "$as_me: failed program was:" >&5
22627 sed 's/^/| /' conftest.$ac_ext >&5
22628
22629 echo "$as_me:$LINENO: result: no" >&5
22630 echo "${ECHO_T}no" >&6
22631
22632
22633
22634
22635 fi
22636
22637 rm -Rf build
22638
22639
22640
22641
22642
22643 echo "$as_me:$LINENO: checking whether files_fdtable() is available" >&5
22644 echo $ECHO_N "checking whether files_fdtable() is available... $ECHO_C" >&6
22645
22646
22647 cat >conftest.c <<_ACEOF
22648 /* confdefs.h. */
22649 _ACEOF
22650 cat confdefs.h >>conftest.$ac_ext
22651 cat >>conftest.$ac_ext <<_ACEOF
22652 /* end confdefs.h. */
22653
22654
22655 #include <linux/sched.h>
22656 #include <linux/file.h>
22657 #ifdef HAVE_FDTABLE_HEADER
22658 #include <linux/fdtable.h>
22659 #endif
22660
22661 int
22662 main (void)
22663 {
22664
22665 struct files_struct *files = current->files;
22666 struct fdtable *fdt = files_fdtable(files);
22667
22668 ;
22669 return 0;
22670 }
22671
22672 _ACEOF
22673
22674
22675 rm -Rf build && mkdir -p build
22676 echo "obj-m := conftest.o" >build/Makefile
22677 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'
22678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22679 (eval $ac_try) 2>&5
22680 ac_status=$?
22681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22682 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
22683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22684 (eval $ac_try) 2>&5
22685 ac_status=$?
22686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22687 (exit $ac_status); }; }; then
22688
22689 echo "$as_me:$LINENO: result: yes" >&5
22690 echo "${ECHO_T}yes" >&6
22691
22692 cat >>confdefs.h <<\_ACEOF
22693 #define HAVE_FILES_FDTABLE 1
22694 _ACEOF
22695
22696
22697 else
22698 echo "$as_me: failed program was:" >&5
22699 sed 's/^/| /' conftest.$ac_ext >&5
22700
22701 echo "$as_me:$LINENO: result: no" >&5
22702 echo "${ECHO_T}no" >&6
22703
22704
22705
22706 fi
22707
22708 rm -Rf build
22709
22710
22711
22712
22713 echo "$as_me:$LINENO: checking whether header linux/uaccess.h exists" >&5
22714 echo $ECHO_N "checking whether header linux/uaccess.h exists... $ECHO_C" >&6
22715
22716
22717 cat >conftest.c <<_ACEOF
22718 /* confdefs.h. */
22719 _ACEOF
22720 cat confdefs.h >>conftest.$ac_ext
22721 cat >>conftest.$ac_ext <<_ACEOF
22722 /* end confdefs.h. */
22723
22724
22725 #include <linux/uaccess.h>
22726
22727 int
22728 main (void)
22729 {
22730
22731 return 0;
22732
22733 ;
22734 return 0;
22735 }
22736
22737 _ACEOF
22738
22739
22740 rm -Rf build && mkdir -p build
22741 echo "obj-m := conftest.o" >build/Makefile
22742 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'
22743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22744 (eval $ac_try) 2>&5
22745 ac_status=$?
22746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22747 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
22748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22749 (eval $ac_try) 2>&5
22750 ac_status=$?
22751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22752 (exit $ac_status); }; }; then
22753
22754
22755 cat >>confdefs.h <<\_ACEOF
22756 #define HAVE_UACCESS_HEADER 1
22757 _ACEOF
22758
22759 echo "$as_me:$LINENO: result: yes" >&5
22760 echo "${ECHO_T}yes" >&6
22761
22762
22763 else
22764 echo "$as_me: failed program was:" >&5
22765 sed 's/^/| /' conftest.$ac_ext >&5
22766
22767 echo "$as_me:$LINENO: result: no" >&5
22768 echo "${ECHO_T}no" >&6
22769
22770
22771
22772
22773 fi
22774
22775 rm -Rf build
22776
22777
22778
22779
22780
22781 echo "$as_me:$LINENO: checking whether kmalloc_node() is available" >&5
22782 echo $ECHO_N "checking whether kmalloc_node() is available... $ECHO_C" >&6
22783
22784
22785 cat >conftest.c <<_ACEOF
22786 /* confdefs.h. */
22787 _ACEOF
22788 cat confdefs.h >>conftest.$ac_ext
22789 cat >>conftest.$ac_ext <<_ACEOF
22790 /* end confdefs.h. */
22791
22792
22793 #include <linux/slab.h>
22794
22795 int
22796 main (void)
22797 {
22798
22799 void *a = kmalloc_node(1, GFP_KERNEL, 0);
22800
22801 ;
22802 return 0;
22803 }
22804
22805 _ACEOF
22806
22807
22808 rm -Rf build && mkdir -p build
22809 echo "obj-m := conftest.o" >build/Makefile
22810 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'
22811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22812 (eval $ac_try) 2>&5
22813 ac_status=$?
22814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22815 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
22816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22817 (eval $ac_try) 2>&5
22818 ac_status=$?
22819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22820 (exit $ac_status); }; }; then
22821
22822 echo "$as_me:$LINENO: result: yes" >&5
22823 echo "${ECHO_T}yes" >&6
22824
22825 cat >>confdefs.h <<\_ACEOF
22826 #define HAVE_KMALLOC_NODE 1
22827 _ACEOF
22828
22829
22830 else
22831 echo "$as_me: failed program was:" >&5
22832 sed 's/^/| /' conftest.$ac_ext >&5
22833
22834 echo "$as_me:$LINENO: result: no" >&5
22835 echo "${ECHO_T}no" >&6
22836
22837
22838
22839 fi
22840
22841 rm -Rf build
22842
22843
22844
22845
22846 echo "$as_me:$LINENO: checking whether symbol monotonic_clock is exported" >&5
22847 echo $ECHO_N "checking whether symbol monotonic_clock is exported... $ECHO_C" >&6
22848 grep -q -E '[[:space:]]monotonic_clock[[:space:]]' \
22849 $LINUX_OBJ/Module*.symvers 2>/dev/null
22850 rc=$?
22851 if test $rc -ne 0; then
22852 export=0
22853 for file in ; do
22854 grep -q -E "EXPORT_SYMBOL.*(monotonic_clock)" \
22855 "$LINUX_OBJ/$file" 2>/dev/null
22856 rc=$?
22857 if test $rc -eq 0; then
22858 export=1
22859 break;
22860 fi
22861 done
22862 if test $export -eq 0; then
22863 echo "$as_me:$LINENO: result: no" >&5
22864 echo "${ECHO_T}no" >&6
22865
22866 else
22867 echo "$as_me:$LINENO: result: yes" >&5
22868 echo "${ECHO_T}yes" >&6
22869
22870 cat >>confdefs.h <<\_ACEOF
22871 #define HAVE_MONOTONIC_CLOCK 1
22872 _ACEOF
22873
22874 fi
22875 else
22876 echo "$as_me:$LINENO: result: yes" >&5
22877 echo "${ECHO_T}yes" >&6
22878
22879 cat >>confdefs.h <<\_ACEOF
22880 #define HAVE_MONOTONIC_CLOCK 1
22881 _ACEOF
22882
22883 fi
22884
22885
22886
22887 echo "$as_me:$LINENO: checking whether struct inode has i_mutex" >&5
22888 echo $ECHO_N "checking whether struct inode has i_mutex... $ECHO_C" >&6
22889
22890
22891 cat >conftest.c <<_ACEOF
22892 /* confdefs.h. */
22893 _ACEOF
22894 cat confdefs.h >>conftest.$ac_ext
22895 cat >>conftest.$ac_ext <<_ACEOF
22896 /* end confdefs.h. */
22897
22898
22899 #include <linux/fs.h>
22900 #include <linux/mutex.h>
22901
22902 int
22903 main (void)
22904 {
22905
22906 struct inode i;
22907 mutex_init(&i.i_mutex);
22908
22909 ;
22910 return 0;
22911 }
22912
22913 _ACEOF
22914
22915
22916 rm -Rf build && mkdir -p build
22917 echo "obj-m := conftest.o" >build/Makefile
22918 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'
22919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22920 (eval $ac_try) 2>&5
22921 ac_status=$?
22922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22923 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
22924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22925 (eval $ac_try) 2>&5
22926 ac_status=$?
22927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22928 (exit $ac_status); }; }; then
22929
22930 echo "$as_me:$LINENO: result: yes" >&5
22931 echo "${ECHO_T}yes" >&6
22932
22933 cat >>confdefs.h <<\_ACEOF
22934 #define HAVE_INODE_I_MUTEX 1
22935 _ACEOF
22936
22937
22938 else
22939 echo "$as_me: failed program was:" >&5
22940 sed 's/^/| /' conftest.$ac_ext >&5
22941
22942 echo "$as_me:$LINENO: result: no" >&5
22943 echo "${ECHO_T}no" >&6
22944
22945
22946
22947 fi
22948
22949 rm -Rf build
22950
22951
22952
22953
22954 echo "$as_me:$LINENO: checking whether mutex_lock_nested() is available" >&5
22955 echo $ECHO_N "checking whether mutex_lock_nested() is available... $ECHO_C" >&6
22956
22957
22958 cat >conftest.c <<_ACEOF
22959 /* confdefs.h. */
22960 _ACEOF
22961 cat confdefs.h >>conftest.$ac_ext
22962 cat >>conftest.$ac_ext <<_ACEOF
22963 /* end confdefs.h. */
22964
22965
22966 #include <linux/mutex.h>
22967
22968 int
22969 main (void)
22970 {
22971
22972 struct mutex mutex;
22973 mutex_init(&mutex);
22974 mutex_lock_nested(&mutex, 0);
22975
22976 ;
22977 return 0;
22978 }
22979
22980 _ACEOF
22981
22982
22983 rm -Rf build && mkdir -p build
22984 echo "obj-m := conftest.o" >build/Makefile
22985 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'
22986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22987 (eval $ac_try) 2>&5
22988 ac_status=$?
22989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22990 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
22991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22992 (eval $ac_try) 2>&5
22993 ac_status=$?
22994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22995 (exit $ac_status); }; }; then
22996
22997 echo "$as_me:$LINENO: result: yes" >&5
22998 echo "${ECHO_T}yes" >&6
22999
23000 cat >>confdefs.h <<\_ACEOF
23001 #define HAVE_MUTEX_LOCK_NESTED 1
23002 _ACEOF
23003
23004
23005 else
23006 echo "$as_me: failed program was:" >&5
23007 sed 's/^/| /' conftest.$ac_ext >&5
23008
23009 echo "$as_me:$LINENO: result: no" >&5
23010 echo "${ECHO_T}no" >&6
23011
23012
23013
23014 fi
23015
23016 rm -Rf build
23017
23018
23019
23020
23021 echo "$as_me:$LINENO: checking whether symbol div64_64 is exported" >&5
23022 echo $ECHO_N "checking whether symbol div64_64 is exported... $ECHO_C" >&6
23023 grep -q -E '[[:space:]]div64_64[[:space:]]' \
23024 $LINUX_OBJ/Module*.symvers 2>/dev/null
23025 rc=$?
23026 if test $rc -ne 0; then
23027 export=0
23028 for file in ; do
23029 grep -q -E "EXPORT_SYMBOL.*(div64_64)" \
23030 "$LINUX_OBJ/$file" 2>/dev/null
23031 rc=$?
23032 if test $rc -eq 0; then
23033 export=1
23034 break;
23035 fi
23036 done
23037 if test $export -eq 0; then
23038 echo "$as_me:$LINENO: result: no" >&5
23039 echo "${ECHO_T}no" >&6
23040
23041 else
23042 echo "$as_me:$LINENO: result: yes" >&5
23043 echo "${ECHO_T}yes" >&6
23044
23045 cat >>confdefs.h <<\_ACEOF
23046 #define HAVE_DIV64_64 1
23047 _ACEOF
23048
23049 fi
23050 else
23051 echo "$as_me:$LINENO: result: yes" >&5
23052 echo "${ECHO_T}yes" >&6
23053
23054 cat >>confdefs.h <<\_ACEOF
23055 #define HAVE_DIV64_64 1
23056 _ACEOF
23057
23058 fi
23059
23060
23061
23062 echo "$as_me:$LINENO: checking whether symbol div64_u64 is exported" >&5
23063 echo $ECHO_N "checking whether symbol div64_u64 is exported... $ECHO_C" >&6
23064 grep -q -E '[[:space:]]div64_u64[[:space:]]' \
23065 $LINUX_OBJ/Module*.symvers 2>/dev/null
23066 rc=$?
23067 if test $rc -ne 0; then
23068 export=0
23069 for file in ; do
23070 grep -q -E "EXPORT_SYMBOL.*(div64_u64)" \
23071 "$LINUX_OBJ/$file" 2>/dev/null
23072 rc=$?
23073 if test $rc -eq 0; then
23074 export=1
23075 break;
23076 fi
23077 done
23078 if test $export -eq 0; then
23079 echo "$as_me:$LINENO: result: no" >&5
23080 echo "${ECHO_T}no" >&6
23081
23082 else
23083 echo "$as_me:$LINENO: result: yes" >&5
23084 echo "${ECHO_T}yes" >&6
23085
23086 cat >>confdefs.h <<\_ACEOF
23087 #define HAVE_DIV64_U64 1
23088 _ACEOF
23089
23090 fi
23091 else
23092 echo "$as_me:$LINENO: result: yes" >&5
23093 echo "${ECHO_T}yes" >&6
23094
23095 cat >>confdefs.h <<\_ACEOF
23096 #define HAVE_DIV64_U64 1
23097 _ACEOF
23098
23099 fi
23100
23101
23102
23103 echo "$as_me:$LINENO: checking whether on_each_cpu() wants 3 args" >&5
23104 echo $ECHO_N "checking whether on_each_cpu() wants 3 args... $ECHO_C" >&6
23105
23106
23107 cat >conftest.c <<_ACEOF
23108 /* confdefs.h. */
23109 _ACEOF
23110 cat confdefs.h >>conftest.$ac_ext
23111 cat >>conftest.$ac_ext <<_ACEOF
23112 /* end confdefs.h. */
23113
23114
23115 #include <linux/smp.h>
23116
23117 int
23118 main (void)
23119 {
23120
23121 on_each_cpu(NULL, NULL, 0);
23122
23123 ;
23124 return 0;
23125 }
23126
23127 _ACEOF
23128
23129
23130 rm -Rf build && mkdir -p build
23131 echo "obj-m := conftest.o" >build/Makefile
23132 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'
23133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23134 (eval $ac_try) 2>&5
23135 ac_status=$?
23136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23137 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
23138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23139 (eval $ac_try) 2>&5
23140 ac_status=$?
23141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23142 (exit $ac_status); }; }; then
23143
23144 echo "$as_me:$LINENO: result: yes" >&5
23145 echo "${ECHO_T}yes" >&6
23146
23147 cat >>confdefs.h <<\_ACEOF
23148 #define HAVE_3ARGS_ON_EACH_CPU 1
23149 _ACEOF
23150
23151
23152 else
23153 echo "$as_me: failed program was:" >&5
23154 sed 's/^/| /' conftest.$ac_ext >&5
23155
23156 echo "$as_me:$LINENO: result: no" >&5
23157 echo "${ECHO_T}no" >&6
23158
23159
23160
23161 fi
23162
23163 rm -Rf build
23164
23165
23166
23167
23168 echo "$as_me:$LINENO: checking whether symbol kallsyms_lookup_name is exported" >&5
23169 echo $ECHO_N "checking whether symbol kallsyms_lookup_name is exported... $ECHO_C" >&6
23170 grep -q -E '[[:space:]]kallsyms_lookup_name[[:space:]]' \
23171 $LINUX_OBJ/Module*.symvers 2>/dev/null
23172 rc=$?
23173 if test $rc -ne 0; then
23174 export=0
23175 for file in ; do
23176 grep -q -E "EXPORT_SYMBOL.*(kallsyms_lookup_name)" \
23177 "$LINUX_OBJ/$file" 2>/dev/null
23178 rc=$?
23179 if test $rc -eq 0; then
23180 export=1
23181 break;
23182 fi
23183 done
23184 if test $export -eq 0; then
23185 echo "$as_me:$LINENO: result: no" >&5
23186 echo "${ECHO_T}no" >&6
23187
23188 else
23189 echo "$as_me:$LINENO: result: yes" >&5
23190 echo "${ECHO_T}yes" >&6
23191
23192 cat >>confdefs.h <<\_ACEOF
23193 #define HAVE_KALLSYMS_LOOKUP_NAME 1
23194 _ACEOF
23195
23196 fi
23197 else
23198 echo "$as_me:$LINENO: result: yes" >&5
23199 echo "${ECHO_T}yes" >&6
23200
23201 cat >>confdefs.h <<\_ACEOF
23202 #define HAVE_KALLSYMS_LOOKUP_NAME 1
23203 _ACEOF
23204
23205 fi
23206
23207
23208
23209 echo "$as_me:$LINENO: checking whether symbol get_vmalloc_info is exported" >&5
23210 echo $ECHO_N "checking whether symbol get_vmalloc_info is exported... $ECHO_C" >&6
23211 grep -q -E '[[:space:]]get_vmalloc_info[[:space:]]' \
23212 $LINUX_OBJ/Module*.symvers 2>/dev/null
23213 rc=$?
23214 if test $rc -ne 0; then
23215 export=0
23216 for file in ; do
23217 grep -q -E "EXPORT_SYMBOL.*(get_vmalloc_info)" \
23218 "$LINUX_OBJ/$file" 2>/dev/null
23219 rc=$?
23220 if test $rc -eq 0; then
23221 export=1
23222 break;
23223 fi
23224 done
23225 if test $export -eq 0; then
23226 echo "$as_me:$LINENO: result: no" >&5
23227 echo "${ECHO_T}no" >&6
23228
23229 else
23230 echo "$as_me:$LINENO: result: yes" >&5
23231 echo "${ECHO_T}yes" >&6
23232
23233 cat >>confdefs.h <<\_ACEOF
23234 #define HAVE_GET_VMALLOC_INFO 1
23235 _ACEOF
23236
23237 fi
23238 else
23239 echo "$as_me:$LINENO: result: yes" >&5
23240 echo "${ECHO_T}yes" >&6
23241
23242 cat >>confdefs.h <<\_ACEOF
23243 #define HAVE_GET_VMALLOC_INFO 1
23244 _ACEOF
23245
23246 fi
23247
23248
23249
23250 echo "$as_me:$LINENO: checking whether symbol *_pgdat exist" >&5
23251 echo $ECHO_N "checking whether symbol *_pgdat exist... $ECHO_C" >&6
23252 grep -q -E 'first_online_pgdat' $LINUX/include/linux/mmzone.h 2>/dev/null
23253 rc=$?
23254 if test $rc -eq 0; then
23255 echo "$as_me:$LINENO: result: yes" >&5
23256 echo "${ECHO_T}yes" >&6
23257
23258 cat >>confdefs.h <<\_ACEOF
23259 #define HAVE_PGDAT_HELPERS 1
23260 _ACEOF
23261
23262 else
23263 echo "$as_me:$LINENO: result: no" >&5
23264 echo "${ECHO_T}no" >&6
23265 fi
23266
23267
23268 echo "$as_me:$LINENO: checking whether symbol first_online_pgdat is exported" >&5
23269 echo $ECHO_N "checking whether symbol first_online_pgdat is exported... $ECHO_C" >&6
23270 grep -q -E '[[:space:]]first_online_pgdat[[:space:]]' \
23271 $LINUX_OBJ/Module*.symvers 2>/dev/null
23272 rc=$?
23273 if test $rc -ne 0; then
23274 export=0
23275 for file in ; do
23276 grep -q -E "EXPORT_SYMBOL.*(first_online_pgdat)" \
23277 "$LINUX_OBJ/$file" 2>/dev/null
23278 rc=$?
23279 if test $rc -eq 0; then
23280 export=1
23281 break;
23282 fi
23283 done
23284 if test $export -eq 0; then
23285 echo "$as_me:$LINENO: result: no" >&5
23286 echo "${ECHO_T}no" >&6
23287
23288 else
23289 echo "$as_me:$LINENO: result: yes" >&5
23290 echo "${ECHO_T}yes" >&6
23291
23292 cat >>confdefs.h <<\_ACEOF
23293 #define HAVE_FIRST_ONLINE_PGDAT 1
23294 _ACEOF
23295
23296 fi
23297 else
23298 echo "$as_me:$LINENO: result: yes" >&5
23299 echo "${ECHO_T}yes" >&6
23300
23301 cat >>confdefs.h <<\_ACEOF
23302 #define HAVE_FIRST_ONLINE_PGDAT 1
23303 _ACEOF
23304
23305 fi
23306
23307
23308
23309 echo "$as_me:$LINENO: checking whether symbol next_online_pgdat is exported" >&5
23310 echo $ECHO_N "checking whether symbol next_online_pgdat is exported... $ECHO_C" >&6
23311 grep -q -E '[[:space:]]next_online_pgdat[[:space:]]' \
23312 $LINUX_OBJ/Module*.symvers 2>/dev/null
23313 rc=$?
23314 if test $rc -ne 0; then
23315 export=0
23316 for file in ; do
23317 grep -q -E "EXPORT_SYMBOL.*(next_online_pgdat)" \
23318 "$LINUX_OBJ/$file" 2>/dev/null
23319 rc=$?
23320 if test $rc -eq 0; then
23321 export=1
23322 break;
23323 fi
23324 done
23325 if test $export -eq 0; then
23326 echo "$as_me:$LINENO: result: no" >&5
23327 echo "${ECHO_T}no" >&6
23328
23329 else
23330 echo "$as_me:$LINENO: result: yes" >&5
23331 echo "${ECHO_T}yes" >&6
23332
23333 cat >>confdefs.h <<\_ACEOF
23334 #define HAVE_NEXT_ONLINE_PGDAT 1
23335 _ACEOF
23336
23337 fi
23338 else
23339 echo "$as_me:$LINENO: result: yes" >&5
23340 echo "${ECHO_T}yes" >&6
23341
23342 cat >>confdefs.h <<\_ACEOF
23343 #define HAVE_NEXT_ONLINE_PGDAT 1
23344 _ACEOF
23345
23346 fi
23347
23348
23349
23350 echo "$as_me:$LINENO: checking whether symbol next_zone is exported" >&5
23351 echo $ECHO_N "checking whether symbol next_zone is exported... $ECHO_C" >&6
23352 grep -q -E '[[:space:]]next_zone[[:space:]]' \
23353 $LINUX_OBJ/Module*.symvers 2>/dev/null
23354 rc=$?
23355 if test $rc -ne 0; then
23356 export=0
23357 for file in ; do
23358 grep -q -E "EXPORT_SYMBOL.*(next_zone)" \
23359 "$LINUX_OBJ/$file" 2>/dev/null
23360 rc=$?
23361 if test $rc -eq 0; then
23362 export=1
23363 break;
23364 fi
23365 done
23366 if test $export -eq 0; then
23367 echo "$as_me:$LINENO: result: no" >&5
23368 echo "${ECHO_T}no" >&6
23369
23370 else
23371 echo "$as_me:$LINENO: result: yes" >&5
23372 echo "${ECHO_T}yes" >&6
23373
23374 cat >>confdefs.h <<\_ACEOF
23375 #define HAVE_NEXT_ZONE 1
23376 _ACEOF
23377
23378 fi
23379 else
23380 echo "$as_me:$LINENO: result: yes" >&5
23381 echo "${ECHO_T}yes" >&6
23382
23383 cat >>confdefs.h <<\_ACEOF
23384 #define HAVE_NEXT_ZONE 1
23385 _ACEOF
23386
23387 fi
23388
23389
23390
23391 echo "$as_me:$LINENO: checking whether symbol pgdat_list is exported" >&5
23392 echo $ECHO_N "checking whether symbol pgdat_list is exported... $ECHO_C" >&6
23393 grep -q -E '[[:space:]]pgdat_list[[:space:]]' \
23394 $LINUX_OBJ/Module*.symvers 2>/dev/null
23395 rc=$?
23396 if test $rc -ne 0; then
23397 export=0
23398 for file in ; do
23399 grep -q -E "EXPORT_SYMBOL.*(pgdat_list)" \
23400 "$LINUX_OBJ/$file" 2>/dev/null
23401 rc=$?
23402 if test $rc -eq 0; then
23403 export=1
23404 break;
23405 fi
23406 done
23407 if test $export -eq 0; then
23408 echo "$as_me:$LINENO: result: no" >&5
23409 echo "${ECHO_T}no" >&6
23410
23411 else
23412 echo "$as_me:$LINENO: result: yes" >&5
23413 echo "${ECHO_T}yes" >&6
23414
23415 cat >>confdefs.h <<\_ACEOF
23416 #define HAVE_PGDAT_LIST 1
23417 _ACEOF
23418
23419 fi
23420 else
23421 echo "$as_me:$LINENO: result: yes" >&5
23422 echo "${ECHO_T}yes" >&6
23423
23424 cat >>confdefs.h <<\_ACEOF
23425 #define HAVE_PGDAT_LIST 1
23426 _ACEOF
23427
23428 fi
23429
23430
23431
23432 echo "$as_me:$LINENO: checking whether symbol get_zone_counts is exported" >&5
23433 echo $ECHO_N "checking whether symbol get_zone_counts is exported... $ECHO_C" >&6
23434 grep -q -E '[[:space:]]get_zone_counts[[:space:]]' \
23435 $LINUX_OBJ/Module*.symvers 2>/dev/null
23436 rc=$?
23437 if test $rc -ne 0; then
23438 export=0
23439 for file in ; do
23440 grep -q -E "EXPORT_SYMBOL.*(get_zone_counts)" \
23441 "$LINUX_OBJ/$file" 2>/dev/null
23442 rc=$?
23443 if test $rc -eq 0; then
23444 export=1
23445 break;
23446 fi
23447 done
23448 if test $export -eq 0; then
23449 echo "$as_me:$LINENO: result: no" >&5
23450 echo "${ECHO_T}no" >&6
23451
23452 else
23453 echo "$as_me:$LINENO: result: yes" >&5
23454 echo "${ECHO_T}yes" >&6
23455
23456 cat >>confdefs.h <<\_ACEOF
23457 #define HAVE_GET_ZONE_COUNTS 1
23458 _ACEOF
23459
23460 fi
23461 else
23462 echo "$as_me:$LINENO: result: yes" >&5
23463 echo "${ECHO_T}yes" >&6
23464
23465 cat >>confdefs.h <<\_ACEOF
23466 #define HAVE_GET_ZONE_COUNTS 1
23467 _ACEOF
23468
23469 fi
23470
23471
23472
23473 echo "$as_me:$LINENO: checking whether global_page_state() is available" >&5
23474 echo $ECHO_N "checking whether global_page_state() is available... $ECHO_C" >&6
23475
23476
23477 cat >conftest.c <<_ACEOF
23478 /* confdefs.h. */
23479 _ACEOF
23480 cat confdefs.h >>conftest.$ac_ext
23481 cat >>conftest.$ac_ext <<_ACEOF
23482 /* end confdefs.h. */
23483
23484
23485 #include <linux/vmstat.h>
23486
23487 int
23488 main (void)
23489 {
23490
23491 unsigned long state;
23492 state = global_page_state(NR_FREE_PAGES);
23493
23494 ;
23495 return 0;
23496 }
23497
23498 _ACEOF
23499
23500
23501 rm -Rf build && mkdir -p build
23502 echo "obj-m := conftest.o" >build/Makefile
23503 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'
23504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23505 (eval $ac_try) 2>&5
23506 ac_status=$?
23507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23508 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
23509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23510 (eval $ac_try) 2>&5
23511 ac_status=$?
23512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23513 (exit $ac_status); }; }; then
23514
23515 echo "$as_me:$LINENO: result: yes" >&5
23516 echo "${ECHO_T}yes" >&6
23517
23518 cat >>confdefs.h <<\_ACEOF
23519 #define HAVE_GLOBAL_PAGE_STATE 1
23520 _ACEOF
23521
23522
23523 else
23524 echo "$as_me: failed program was:" >&5
23525 sed 's/^/| /' conftest.$ac_ext >&5
23526
23527 echo "$as_me:$LINENO: result: no" >&5
23528 echo "${ECHO_T}no" >&6
23529
23530
23531
23532 fi
23533
23534 rm -Rf build
23535
23536
23537
23538
23539 echo "$as_me:$LINENO: checking whether free/inactive/active page state is available" >&5
23540 echo $ECHO_N "checking whether free/inactive/active page state is available... $ECHO_C" >&6
23541
23542
23543 cat >conftest.c <<_ACEOF
23544 /* confdefs.h. */
23545 _ACEOF
23546 cat confdefs.h >>conftest.$ac_ext
23547 cat >>conftest.$ac_ext <<_ACEOF
23548 /* end confdefs.h. */
23549
23550
23551 #include <linux/mmzone.h>
23552
23553 int
23554 main (void)
23555 {
23556
23557 enum zone_stat_item i1, i2, i3;
23558 i1 = NR_FREE_PAGES;
23559 i2 = NR_INACTIVE;
23560 i3 = NR_ACTIVE;
23561
23562 ;
23563 return 0;
23564 }
23565
23566 _ACEOF
23567
23568
23569 rm -Rf build && mkdir -p build
23570 echo "obj-m := conftest.o" >build/Makefile
23571 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'
23572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23573 (eval $ac_try) 2>&5
23574 ac_status=$?
23575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23576 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
23577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23578 (eval $ac_try) 2>&5
23579 ac_status=$?
23580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23581 (exit $ac_status); }; }; then
23582
23583 echo "$as_me:$LINENO: result: yes" >&5
23584 echo "${ECHO_T}yes" >&6
23585
23586 cat >>confdefs.h <<\_ACEOF
23587 #define HAVE_ZONE_STAT_ITEM_FIA 1
23588 _ACEOF
23589
23590
23591 else
23592 echo "$as_me: failed program was:" >&5
23593 sed 's/^/| /' conftest.$ac_ext >&5
23594
23595 echo "$as_me:$LINENO: result: no" >&5
23596 echo "${ECHO_T}no" >&6
23597
23598
23599
23600 fi
23601
23602 rm -Rf build
23603
23604
23605
23606 echo "$as_me:$LINENO: checking whether vfs_unlink() wants 2 args" >&5
23607 echo $ECHO_N "checking whether vfs_unlink() wants 2 args... $ECHO_C" >&6
23608
23609
23610 cat >conftest.c <<_ACEOF
23611 /* confdefs.h. */
23612 _ACEOF
23613 cat confdefs.h >>conftest.$ac_ext
23614 cat >>conftest.$ac_ext <<_ACEOF
23615 /* end confdefs.h. */
23616
23617
23618 #include <linux/fs.h>
23619
23620 int
23621 main (void)
23622 {
23623
23624 vfs_unlink(NULL, NULL);
23625
23626 ;
23627 return 0;
23628 }
23629
23630 _ACEOF
23631
23632
23633 rm -Rf build && mkdir -p build
23634 echo "obj-m := conftest.o" >build/Makefile
23635 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'
23636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23637 (eval $ac_try) 2>&5
23638 ac_status=$?
23639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23640 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
23641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23642 (eval $ac_try) 2>&5
23643 ac_status=$?
23644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23645 (exit $ac_status); }; }; then
23646
23647 echo "$as_me:$LINENO: result: yes" >&5
23648 echo "${ECHO_T}yes" >&6
23649
23650 cat >>confdefs.h <<\_ACEOF
23651 #define HAVE_2ARGS_VFS_UNLINK 1
23652 _ACEOF
23653
23654
23655 else
23656 echo "$as_me: failed program was:" >&5
23657 sed 's/^/| /' conftest.$ac_ext >&5
23658
23659 echo "$as_me:$LINENO: result: no" >&5
23660 echo "${ECHO_T}no" >&6
23661
23662
23663
23664 fi
23665
23666 rm -Rf build
23667
23668
23669
23670 echo "$as_me:$LINENO: checking whether vfs_rename() wants 4 args" >&5
23671 echo $ECHO_N "checking whether vfs_rename() wants 4 args... $ECHO_C" >&6
23672
23673
23674 cat >conftest.c <<_ACEOF
23675 /* confdefs.h. */
23676 _ACEOF
23677 cat confdefs.h >>conftest.$ac_ext
23678 cat >>conftest.$ac_ext <<_ACEOF
23679 /* end confdefs.h. */
23680
23681
23682 #include <linux/fs.h>
23683
23684 int
23685 main (void)
23686 {
23687
23688 vfs_rename(NULL, NULL, NULL, NULL);
23689
23690 ;
23691 return 0;
23692 }
23693
23694 _ACEOF
23695
23696
23697 rm -Rf build && mkdir -p build
23698 echo "obj-m := conftest.o" >build/Makefile
23699 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'
23700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23701 (eval $ac_try) 2>&5
23702 ac_status=$?
23703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23704 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
23705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23706 (eval $ac_try) 2>&5
23707 ac_status=$?
23708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23709 (exit $ac_status); }; }; then
23710
23711 echo "$as_me:$LINENO: result: yes" >&5
23712 echo "${ECHO_T}yes" >&6
23713
23714 cat >>confdefs.h <<\_ACEOF
23715 #define HAVE_4ARGS_VFS_RENAME 1
23716 _ACEOF
23717
23718
23719 else
23720 echo "$as_me: failed program was:" >&5
23721 sed 's/^/| /' conftest.$ac_ext >&5
23722
23723 echo "$as_me:$LINENO: result: no" >&5
23724 echo "${ECHO_T}no" >&6
23725
23726
23727
23728 fi
23729
23730 rm -Rf build
23731
23732
23733
23734
23735 ;;
23736 *)
23737 echo "$as_me:$LINENO: result: Error!" >&5
23738 echo "${ECHO_T}Error!" >&6
23739 { { echo "$as_me:$LINENO: error: Bad value \"$SPL_CONFIG\" for --with-config,
23740 user kernel|user|all" >&5
23741 echo "$as_me: error: Bad value \"$SPL_CONFIG\" for --with-config,
23742 user kernel|user|all" >&2;}
23743 { (exit 1); exit 1; }; } ;;
23744 esac
23745
23746
23747
23748 if test "$SPL_CONFIG" = user ||
23749 test "$SPL_CONFIG" = all; then
23750 CONFIG_USER_TRUE=
23751 CONFIG_USER_FALSE='#'
23752 else
23753 CONFIG_USER_TRUE='#'
23754 CONFIG_USER_FALSE=
23755 fi
23756
23757
23758
23759 if test "$SPL_CONFIG" = kernel ||
23760 test "$SPL_CONFIG" = all; then
23761 CONFIG_KERNEL_TRUE=
23762 CONFIG_KERNEL_FALSE='#'
23763 else
23764 CONFIG_KERNEL_TRUE='#'
23765 CONFIG_KERNEL_FALSE=
23766 fi
23767
23768
23769
23770 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"
23771
23772
23773 cat >confcache <<\_ACEOF
23774 # This file is a shell script that caches the results of configure
23775 # tests run on this system so they can be shared between configure
23776 # scripts and configure runs, see configure's option --config-cache.
23777 # It is not useful on other systems. If it contains results you don't
23778 # want to keep, you may remove or edit it.
23779 #
23780 # config.status only pays attention to the cache file if you give it
23781 # the --recheck option to rerun configure.
23782 #
23783 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23784 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23785 # following values.
23786
23787 _ACEOF
23788
23789 # The following way of writing the cache mishandles newlines in values,
23790 # but we know of no workaround that is simple, portable, and efficient.
23791 # So, don't put newlines in cache variables' values.
23792 # Ultrix sh set writes to stderr and can't be redirected directly,
23793 # and sets the high bit in the cache file unless we assign to the vars.
23794 {
23795 (set) 2>&1 |
23796 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23797 *ac_space=\ *)
23798 # `set' does not quote correctly, so add quotes (double-quote
23799 # substitution turns \\\\ into \\, and sed turns \\ into \).
23800 sed -n \
23801 "s/'/'\\\\''/g;
23802 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23803 ;;
23804 *)
23805 # `set' quotes correctly as required by POSIX, so do not add quotes.
23806 sed -n \
23807 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
23808 ;;
23809 esac;
23810 } |
23811 sed '
23812 t clear
23813 : clear
23814 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23815 t end
23816 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23817 : end' >>confcache
23818 if diff $cache_file confcache >/dev/null 2>&1; then :; else
23819 if test -w $cache_file; then
23820 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23821 cat confcache >$cache_file
23822 else
23823 echo "not updating unwritable cache $cache_file"
23824 fi
23825 fi
23826 rm -f confcache
23827
23828 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23829 # Let make expand exec_prefix.
23830 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23831
23832 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23833 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23834 # trailing colons and then remove the whole line if VPATH becomes empty
23835 # (actually we leave an empty line to preserve line numbers).
23836 if test "x$srcdir" = x.; then
23837 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23838 s/:*\$(srcdir):*/:/;
23839 s/:*\${srcdir}:*/:/;
23840 s/:*@srcdir@:*/:/;
23841 s/^\([^=]*=[ ]*\):*/\1/;
23842 s/:*$//;
23843 s/^[^=]*=[ ]*$//;
23844 }'
23845 fi
23846
23847 DEFS=-DHAVE_CONFIG_H
23848
23849 ac_libobjs=
23850 ac_ltlibobjs=
23851 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23852 # 1. Remove the extension, and $U if already installed.
23853 ac_i=`echo "$ac_i" |
23854 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
23855 # 2. Add them.
23856 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
23857 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
23858 done
23859 LIBOBJS=$ac_libobjs
23860
23861 LTLIBOBJS=$ac_ltlibobjs
23862
23863
23864 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
23865 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
23866 Usually this means the macro was only invoked conditionally." >&5
23867 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
23868 Usually this means the macro was only invoked conditionally." >&2;}
23869 { (exit 1); exit 1; }; }
23870 fi
23871 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
23872 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
23873 Usually this means the macro was only invoked conditionally." >&5
23874 echo "$as_me: error: conditional \"AMDEP\" was never defined.
23875 Usually this means the macro was only invoked conditionally." >&2;}
23876 { (exit 1); exit 1; }; }
23877 fi
23878 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23879 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
23880 Usually this means the macro was only invoked conditionally." >&5
23881 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
23882 Usually this means the macro was only invoked conditionally." >&2;}
23883 { (exit 1); exit 1; }; }
23884 fi
23885 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
23886 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
23887 Usually this means the macro was only invoked conditionally." >&5
23888 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
23889 Usually this means the macro was only invoked conditionally." >&2;}
23890 { (exit 1); exit 1; }; }
23891 fi
23892 if test -z "${CONFIG_USER_TRUE}" && test -z "${CONFIG_USER_FALSE}"; then
23893 { { echo "$as_me:$LINENO: error: conditional \"CONFIG_USER\" was never defined.
23894 Usually this means the macro was only invoked conditionally." >&5
23895 echo "$as_me: error: conditional \"CONFIG_USER\" was never defined.
23896 Usually this means the macro was only invoked conditionally." >&2;}
23897 { (exit 1); exit 1; }; }
23898 fi
23899 if test -z "${CONFIG_KERNEL_TRUE}" && test -z "${CONFIG_KERNEL_FALSE}"; then
23900 { { echo "$as_me:$LINENO: error: conditional \"CONFIG_KERNEL\" was never defined.
23901 Usually this means the macro was only invoked conditionally." >&5
23902 echo "$as_me: error: conditional \"CONFIG_KERNEL\" was never defined.
23903 Usually this means the macro was only invoked conditionally." >&2;}
23904 { (exit 1); exit 1; }; }
23905 fi
23906
23907 : ${CONFIG_STATUS=./config.status}
23908 ac_clean_files_save=$ac_clean_files
23909 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23910 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23911 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23912 cat >$CONFIG_STATUS <<_ACEOF
23913 #! $SHELL
23914 # Generated by $as_me.
23915 # Run this file to recreate the current configuration.
23916 # Compiler output produced by configure, useful for debugging
23917 # configure, is in config.log if it exists.
23918
23919 debug=false
23920 ac_cs_recheck=false
23921 ac_cs_silent=false
23922 SHELL=\${CONFIG_SHELL-$SHELL}
23923 _ACEOF
23924
23925 cat >>$CONFIG_STATUS <<\_ACEOF
23926 ## --------------------- ##
23927 ## M4sh Initialization. ##
23928 ## --------------------- ##
23929
23930 # Be Bourne compatible
23931 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23932 emulate sh
23933 NULLCMD=:
23934 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23935 # is contrary to our usage. Disable this feature.
23936 alias -g '${1+"$@"}'='"$@"'
23937 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23938 set -o posix
23939 fi
23940 DUALCASE=1; export DUALCASE # for MKS sh
23941
23942 # Support unset when possible.
23943 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23944 as_unset=unset
23945 else
23946 as_unset=false
23947 fi
23948
23949
23950 # Work around bugs in pre-3.0 UWIN ksh.
23951 $as_unset ENV MAIL MAILPATH
23952 PS1='$ '
23953 PS2='> '
23954 PS4='+ '
23955
23956 # NLS nuisances.
23957 for as_var in \
23958 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23959 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23960 LC_TELEPHONE LC_TIME
23961 do
23962 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23963 eval $as_var=C; export $as_var
23964 else
23965 $as_unset $as_var
23966 fi
23967 done
23968
23969 # Required to use basename.
23970 if expr a : '\(a\)' >/dev/null 2>&1; then
23971 as_expr=expr
23972 else
23973 as_expr=false
23974 fi
23975
23976 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
23977 as_basename=basename
23978 else
23979 as_basename=false
23980 fi
23981
23982
23983 # Name of the executable.
23984 as_me=`$as_basename "$0" ||
23985 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23986 X"$0" : 'X\(//\)$' \| \
23987 X"$0" : 'X\(/\)$' \| \
23988 . : '\(.\)' 2>/dev/null ||
23989 echo X/"$0" |
23990 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23991 /^X\/\(\/\/\)$/{ s//\1/; q; }
23992 /^X\/\(\/\).*/{ s//\1/; q; }
23993 s/.*/./; q'`
23994
23995
23996 # PATH needs CR, and LINENO needs CR and PATH.
23997 # Avoid depending upon Character Ranges.
23998 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23999 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24000 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24001 as_cr_digits='0123456789'
24002 as_cr_alnum=$as_cr_Letters$as_cr_digits
24003
24004 # The user is always right.
24005 if test "${PATH_SEPARATOR+set}" != set; then
24006 echo "#! /bin/sh" >conf$$.sh
24007 echo "exit 0" >>conf$$.sh
24008 chmod +x conf$$.sh
24009 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24010 PATH_SEPARATOR=';'
24011 else
24012 PATH_SEPARATOR=:
24013 fi
24014 rm -f conf$$.sh
24015 fi
24016
24017
24018 as_lineno_1=$LINENO
24019 as_lineno_2=$LINENO
24020 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24021 test "x$as_lineno_1" != "x$as_lineno_2" &&
24022 test "x$as_lineno_3" = "x$as_lineno_2" || {
24023 # Find who we are. Look in the path if we contain no path at all
24024 # relative or not.
24025 case $0 in
24026 *[\\/]* ) as_myself=$0 ;;
24027 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24028 for as_dir in $PATH
24029 do
24030 IFS=$as_save_IFS
24031 test -z "$as_dir" && as_dir=.
24032 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24033 done
24034
24035 ;;
24036 esac
24037 # We did not find ourselves, most probably we were run as `sh COMMAND'
24038 # in which case we are not to be found in the path.
24039 if test "x$as_myself" = x; then
24040 as_myself=$0
24041 fi
24042 if test ! -f "$as_myself"; then
24043 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
24044 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
24045 { (exit 1); exit 1; }; }
24046 fi
24047 case $CONFIG_SHELL in
24048 '')
24049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24050 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
24051 do
24052 IFS=$as_save_IFS
24053 test -z "$as_dir" && as_dir=.
24054 for as_base in sh bash ksh sh5; do
24055 case $as_dir in
24056 /*)
24057 if ("$as_dir/$as_base" -c '
24058 as_lineno_1=$LINENO
24059 as_lineno_2=$LINENO
24060 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24061 test "x$as_lineno_1" != "x$as_lineno_2" &&
24062 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
24063 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
24064 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
24065 CONFIG_SHELL=$as_dir/$as_base
24066 export CONFIG_SHELL
24067 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
24068 fi;;
24069 esac
24070 done
24071 done
24072 ;;
24073 esac
24074
24075 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24076 # uniformly replaced by the line number. The first 'sed' inserts a
24077 # line-number line before each line; the second 'sed' does the real
24078 # work. The second script uses 'N' to pair each line-number line
24079 # with the numbered line, and appends trailing '-' during
24080 # substitution so that $LINENO is not a special case at line end.
24081 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24082 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
24083 sed '=' <$as_myself |
24084 sed '
24085 N
24086 s,$,-,
24087 : loop
24088 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
24089 t loop
24090 s,-$,,
24091 s,^['$as_cr_digits']*\n,,
24092 ' >$as_me.lineno &&
24093 chmod +x $as_me.lineno ||
24094 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
24095 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
24096 { (exit 1); exit 1; }; }
24097
24098 # Don't try to exec as it changes $[0], causing all sort of problems
24099 # (the dirname of $[0] is not the place where we might find the
24100 # original and so on. Autoconf is especially sensible to this).
24101 . ./$as_me.lineno
24102 # Exit status is that of the last command.
24103 exit
24104 }
24105
24106
24107 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
24108 *c*,-n*) ECHO_N= ECHO_C='
24109 ' ECHO_T=' ' ;;
24110 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
24111 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
24112 esac
24113
24114 if expr a : '\(a\)' >/dev/null 2>&1; then
24115 as_expr=expr
24116 else
24117 as_expr=false
24118 fi
24119
24120 rm -f conf$$ conf$$.exe conf$$.file
24121 echo >conf$$.file
24122 if ln -s conf$$.file conf$$ 2>/dev/null; then
24123 # We could just check for DJGPP; but this test a) works b) is more generic
24124 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
24125 if test -f conf$$.exe; then
24126 # Don't use ln at all; we don't have any links
24127 as_ln_s='cp -p'
24128 else
24129 as_ln_s='ln -s'
24130 fi
24131 elif ln conf$$.file conf$$ 2>/dev/null; then
24132 as_ln_s=ln
24133 else
24134 as_ln_s='cp -p'
24135 fi
24136 rm -f conf$$ conf$$.exe conf$$.file
24137
24138 if mkdir -p . 2>/dev/null; then
24139 as_mkdir_p=:
24140 else
24141 test -d ./-p && rmdir ./-p
24142 as_mkdir_p=false
24143 fi
24144
24145 as_executable_p="test -f"
24146
24147 # Sed expression to map a string onto a valid CPP name.
24148 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24149
24150 # Sed expression to map a string onto a valid variable name.
24151 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24152
24153
24154 # IFS
24155 # We need space, tab and new line, in precisely that order.
24156 as_nl='
24157 '
24158 IFS=" $as_nl"
24159
24160 # CDPATH.
24161 $as_unset CDPATH
24162
24163 exec 6>&1
24164
24165 # Open the log real soon, to keep \$[0] and so on meaningful, and to
24166 # report actual input values of CONFIG_FILES etc. instead of their
24167 # values after options handling. Logging --version etc. is OK.
24168 exec 5>>config.log
24169 {
24170 echo
24171 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24172 ## Running $as_me. ##
24173 _ASBOX
24174 } >&5
24175 cat >&5 <<_CSEOF
24176
24177 This file was extended by $as_me, which was
24178 generated by GNU Autoconf 2.59. Invocation command line was
24179
24180 CONFIG_FILES = $CONFIG_FILES
24181 CONFIG_HEADERS = $CONFIG_HEADERS
24182 CONFIG_LINKS = $CONFIG_LINKS
24183 CONFIG_COMMANDS = $CONFIG_COMMANDS
24184 $ $0 $@
24185
24186 _CSEOF
24187 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
24188 echo >&5
24189 _ACEOF
24190
24191 # Files that config.status was made for.
24192 if test -n "$ac_config_files"; then
24193 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
24194 fi
24195
24196 if test -n "$ac_config_headers"; then
24197 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
24198 fi
24199
24200 if test -n "$ac_config_links"; then
24201 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
24202 fi
24203
24204 if test -n "$ac_config_commands"; then
24205 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
24206 fi
24207
24208 cat >>$CONFIG_STATUS <<\_ACEOF
24209
24210 ac_cs_usage="\
24211 \`$as_me' instantiates files from templates according to the
24212 current configuration.
24213
24214 Usage: $0 [OPTIONS] [FILE]...
24215
24216 -h, --help print this help, then exit
24217 -V, --version print version number, then exit
24218 -q, --quiet do not print progress messages
24219 -d, --debug don't remove temporary files
24220 --recheck update $as_me by reconfiguring in the same conditions
24221 --file=FILE[:TEMPLATE]
24222 instantiate the configuration file FILE
24223 --header=FILE[:TEMPLATE]
24224 instantiate the configuration header FILE
24225
24226 Configuration files:
24227 $config_files
24228
24229 Configuration headers:
24230 $config_headers
24231
24232 Configuration commands:
24233 $config_commands
24234
24235 Report bugs to <bug-autoconf@gnu.org>."
24236 _ACEOF
24237
24238 cat >>$CONFIG_STATUS <<_ACEOF
24239 ac_cs_version="\\
24240 config.status
24241 configured by $0, generated by GNU Autoconf 2.59,
24242 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
24243
24244 Copyright (C) 2003 Free Software Foundation, Inc.
24245 This config.status script is free software; the Free Software Foundation
24246 gives unlimited permission to copy, distribute and modify it."
24247 srcdir=$srcdir
24248 INSTALL="$INSTALL"
24249 _ACEOF
24250
24251 cat >>$CONFIG_STATUS <<\_ACEOF
24252 # If no file are specified by the user, then we need to provide default
24253 # value. By we need to know if files were specified by the user.
24254 ac_need_defaults=:
24255 while test $# != 0
24256 do
24257 case $1 in
24258 --*=*)
24259 ac_option=`expr "x$1" : 'x\([^=]*\)='`
24260 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
24261 ac_shift=:
24262 ;;
24263 -*)
24264 ac_option=$1
24265 ac_optarg=$2
24266 ac_shift=shift
24267 ;;
24268 *) # This is not an option, so the user has probably given explicit
24269 # arguments.
24270 ac_option=$1
24271 ac_need_defaults=false;;
24272 esac
24273
24274 case $ac_option in
24275 # Handling of the options.
24276 _ACEOF
24277 cat >>$CONFIG_STATUS <<\_ACEOF
24278 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24279 ac_cs_recheck=: ;;
24280 --version | --vers* | -V )
24281 echo "$ac_cs_version"; exit 0 ;;
24282 --he | --h)
24283 # Conflict between --help and --header
24284 { { echo "$as_me:$LINENO: error: ambiguous option: $1
24285 Try \`$0 --help' for more information." >&5
24286 echo "$as_me: error: ambiguous option: $1
24287 Try \`$0 --help' for more information." >&2;}
24288 { (exit 1); exit 1; }; };;
24289 --help | --hel | -h )
24290 echo "$ac_cs_usage"; exit 0 ;;
24291 --debug | --d* | -d )
24292 debug=: ;;
24293 --file | --fil | --fi | --f )
24294 $ac_shift
24295 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24296 ac_need_defaults=false;;
24297 --header | --heade | --head | --hea )
24298 $ac_shift
24299 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24300 ac_need_defaults=false;;
24301 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24302 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24303 ac_cs_silent=: ;;
24304
24305 # This is an error.
24306 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
24307 Try \`$0 --help' for more information." >&5
24308 echo "$as_me: error: unrecognized option: $1
24309 Try \`$0 --help' for more information." >&2;}
24310 { (exit 1); exit 1; }; } ;;
24311
24312 *) ac_config_targets="$ac_config_targets $1" ;;
24313
24314 esac
24315 shift
24316 done
24317
24318 ac_configure_extra_args=
24319
24320 if $ac_cs_silent; then
24321 exec 6>/dev/null
24322 ac_configure_extra_args="$ac_configure_extra_args --silent"
24323 fi
24324
24325 _ACEOF
24326 cat >>$CONFIG_STATUS <<_ACEOF
24327 if \$ac_cs_recheck; then
24328 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24329 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24330 fi
24331
24332 _ACEOF
24333
24334 cat >>$CONFIG_STATUS <<_ACEOF
24335 #
24336 # INIT-COMMANDS section.
24337 #
24338
24339 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
24340
24341 _ACEOF
24342
24343
24344
24345 cat >>$CONFIG_STATUS <<\_ACEOF
24346 for ac_config_target in $ac_config_targets
24347 do
24348 case "$ac_config_target" in
24349 # Handling of arguments.
24350 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24351 "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
24352 "cmd/Makefile" ) CONFIG_FILES="$CONFIG_FILES cmd/Makefile" ;;
24353 "module/Makefile" ) CONFIG_FILES="$CONFIG_FILES module/Makefile" ;;
24354 "module/spl/Makefile" ) CONFIG_FILES="$CONFIG_FILES module/spl/Makefile" ;;
24355 "module/splat/Makefile" ) CONFIG_FILES="$CONFIG_FILES module/splat/Makefile" ;;
24356 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
24357 "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
24358 "spl.spec" ) CONFIG_FILES="$CONFIG_FILES spl.spec" ;;
24359 "spl-modules.spec" ) CONFIG_FILES="$CONFIG_FILES spl-modules.spec" ;;
24360 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
24361 "spl_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS spl_config.h" ;;
24362 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24363 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24364 { (exit 1); exit 1; }; };;
24365 esac
24366 done
24367
24368 # If the user did not use the arguments to specify the items to instantiate,
24369 # then the envvar interface is used. Set only those that are not.
24370 # We use the long form for the default assignment because of an extremely
24371 # bizarre bug on SunOS 4.1.3.
24372 if $ac_need_defaults; then
24373 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24374 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24375 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24376 fi
24377
24378 # Have a temporary directory for convenience. Make it in the build tree
24379 # simply because there is no reason to put it here, and in addition,
24380 # creating and moving files from /tmp can sometimes cause problems.
24381 # Create a temporary directory, and hook for its removal unless debugging.
24382 $debug ||
24383 {
24384 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
24385 trap '{ (exit 1); exit 1; }' 1 2 13 15
24386 }
24387
24388 # Create a (secure) tmp directory for tmp files.
24389
24390 {
24391 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
24392 test -n "$tmp" && test -d "$tmp"
24393 } ||
24394 {
24395 tmp=./confstat$$-$RANDOM
24396 (umask 077 && mkdir $tmp)
24397 } ||
24398 {
24399 echo "$me: cannot create a temporary directory in ." >&2
24400 { (exit 1); exit 1; }
24401 }
24402
24403 _ACEOF
24404
24405 cat >>$CONFIG_STATUS <<_ACEOF
24406
24407 #
24408 # CONFIG_FILES section.
24409 #
24410
24411 # No need to generate the scripts if there are no CONFIG_FILES.
24412 # This happens for instance when ./config.status config.h
24413 if test -n "\$CONFIG_FILES"; then
24414 # Protect against being on the right side of a sed subst in config.status.
24415 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
24416 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
24417 s,@SHELL@,$SHELL,;t t
24418 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
24419 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
24420 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
24421 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
24422 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
24423 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
24424 s,@exec_prefix@,$exec_prefix,;t t
24425 s,@prefix@,$prefix,;t t
24426 s,@program_transform_name@,$program_transform_name,;t t
24427 s,@bindir@,$bindir,;t t
24428 s,@sbindir@,$sbindir,;t t
24429 s,@libexecdir@,$libexecdir,;t t
24430 s,@datadir@,$datadir,;t t
24431 s,@sysconfdir@,$sysconfdir,;t t
24432 s,@sharedstatedir@,$sharedstatedir,;t t
24433 s,@localstatedir@,$localstatedir,;t t
24434 s,@libdir@,$libdir,;t t
24435 s,@includedir@,$includedir,;t t
24436 s,@oldincludedir@,$oldincludedir,;t t
24437 s,@infodir@,$infodir,;t t
24438 s,@mandir@,$mandir,;t t
24439 s,@build_alias@,$build_alias,;t t
24440 s,@host_alias@,$host_alias,;t t
24441 s,@target_alias@,$target_alias,;t t
24442 s,@DEFS@,$DEFS,;t t
24443 s,@ECHO_C@,$ECHO_C,;t t
24444 s,@ECHO_N@,$ECHO_N,;t t
24445 s,@ECHO_T@,$ECHO_T,;t t
24446 s,@LIBS@,$LIBS,;t t
24447 s,@SPL_META_NAME@,$SPL_META_NAME,;t t
24448 s,@SPL_META_VERSION@,$SPL_META_VERSION,;t t
24449 s,@SPL_META_RELEASE@,$SPL_META_RELEASE,;t t
24450 s,@SPL_META_ALIAS@,$SPL_META_ALIAS,;t t
24451 s,@SPL_META_DATA@,$SPL_META_DATA,;t t
24452 s,@SPL_META_AUTHOR@,$SPL_META_AUTHOR,;t t
24453 s,@SPL_META_LT_CURRENT@,$SPL_META_LT_CURRENT,;t t
24454 s,@SPL_META_LT_REVISION@,$SPL_META_LT_REVISION,;t t
24455 s,@SPL_META_LT_AGE@,$SPL_META_LT_AGE,;t t
24456 s,@build@,$build,;t t
24457 s,@build_cpu@,$build_cpu,;t t
24458 s,@build_vendor@,$build_vendor,;t t
24459 s,@build_os@,$build_os,;t t
24460 s,@host@,$host,;t t
24461 s,@host_cpu@,$host_cpu,;t t
24462 s,@host_vendor@,$host_vendor,;t t
24463 s,@host_os@,$host_os,;t t
24464 s,@target@,$target,;t t
24465 s,@target_cpu@,$target_cpu,;t t
24466 s,@target_vendor@,$target_vendor,;t t
24467 s,@target_os@,$target_os,;t t
24468 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
24469 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
24470 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
24471 s,@CYGPATH_W@,$CYGPATH_W,;t t
24472 s,@PACKAGE@,$PACKAGE,;t t
24473 s,@VERSION@,$VERSION,;t t
24474 s,@ACLOCAL@,$ACLOCAL,;t t
24475 s,@AUTOCONF@,$AUTOCONF,;t t
24476 s,@AUTOMAKE@,$AUTOMAKE,;t t
24477 s,@AUTOHEADER@,$AUTOHEADER,;t t
24478 s,@MAKEINFO@,$MAKEINFO,;t t
24479 s,@install_sh@,$install_sh,;t t
24480 s,@STRIP@,$STRIP,;t t
24481 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
24482 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
24483 s,@mkdir_p@,$mkdir_p,;t t
24484 s,@AWK@,$AWK,;t t
24485 s,@SET_MAKE@,$SET_MAKE,;t t
24486 s,@am__leading_dot@,$am__leading_dot,;t t
24487 s,@AMTAR@,$AMTAR,;t t
24488 s,@am__tar@,$am__tar,;t t
24489 s,@am__untar@,$am__untar,;t t
24490 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
24491 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
24492 s,@MAINT@,$MAINT,;t t
24493 s,@CC@,$CC,;t t
24494 s,@CFLAGS@,$CFLAGS,;t t
24495 s,@LDFLAGS@,$LDFLAGS,;t t
24496 s,@CPPFLAGS@,$CPPFLAGS,;t t
24497 s,@ac_ct_CC@,$ac_ct_CC,;t t
24498 s,@EXEEXT@,$EXEEXT,;t t
24499 s,@OBJEXT@,$OBJEXT,;t t
24500 s,@DEPDIR@,$DEPDIR,;t t
24501 s,@am__include@,$am__include,;t t
24502 s,@am__quote@,$am__quote,;t t
24503 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
24504 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
24505 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
24506 s,@CCDEPMODE@,$CCDEPMODE,;t t
24507 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
24508 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
24509 s,@SED@,$SED,;t t
24510 s,@EGREP@,$EGREP,;t t
24511 s,@LN_S@,$LN_S,;t t
24512 s,@ECHO@,$ECHO,;t t
24513 s,@AR@,$AR,;t t
24514 s,@ac_ct_AR@,$ac_ct_AR,;t t
24515 s,@RANLIB@,$RANLIB,;t t
24516 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
24517 s,@CPP@,$CPP,;t t
24518 s,@CXX@,$CXX,;t t
24519 s,@CXXFLAGS@,$CXXFLAGS,;t t
24520 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
24521 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
24522 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
24523 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
24524 s,@CXXCPP@,$CXXCPP,;t t
24525 s,@F77@,$F77,;t t
24526 s,@FFLAGS@,$FFLAGS,;t t
24527 s,@ac_ct_F77@,$ac_ct_F77,;t t
24528 s,@LIBTOOL@,$LIBTOOL,;t t
24529 s,@LICENSE@,$LICENSE,;t t
24530 s,@SPL_CONFIG@,$SPL_CONFIG,;t t
24531 s,@LINUX@,$LINUX,;t t
24532 s,@LINUX_OBJ@,$LINUX_OBJ,;t t
24533 s,@LINUX_VERSION@,$LINUX_VERSION,;t t
24534 s,@LINUX_SYMBOLS@,$LINUX_SYMBOLS,;t t
24535 s,@KERNELMAKE_PARAMS@,$KERNELMAKE_PARAMS,;t t
24536 s,@KERNELCPPFLAGS@,$KERNELCPPFLAGS,;t t
24537 s,@CONFIG_USER_TRUE@,$CONFIG_USER_TRUE,;t t
24538 s,@CONFIG_USER_FALSE@,$CONFIG_USER_FALSE,;t t
24539 s,@CONFIG_KERNEL_TRUE@,$CONFIG_KERNEL_TRUE,;t t
24540 s,@CONFIG_KERNEL_FALSE@,$CONFIG_KERNEL_FALSE,;t t
24541 s,@LIBOBJS@,$LIBOBJS,;t t
24542 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
24543 CEOF
24544
24545 _ACEOF
24546
24547 cat >>$CONFIG_STATUS <<\_ACEOF
24548 # Split the substitutions into bite-sized pieces for seds with
24549 # small command number limits, like on Digital OSF/1 and HP-UX.
24550 ac_max_sed_lines=48
24551 ac_sed_frag=1 # Number of current file.
24552 ac_beg=1 # First line for current file.
24553 ac_end=$ac_max_sed_lines # Line after last line for current file.
24554 ac_more_lines=:
24555 ac_sed_cmds=
24556 while $ac_more_lines; do
24557 if test $ac_beg -gt 1; then
24558 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24559 else
24560 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24561 fi
24562 if test ! -s $tmp/subs.frag; then
24563 ac_more_lines=false
24564 else
24565 # The purpose of the label and of the branching condition is to
24566 # speed up the sed processing (if there are no `@' at all, there
24567 # is no need to browse any of the substitutions).
24568 # These are the two extra sed commands mentioned above.
24569 (echo ':t
24570 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
24571 if test -z "$ac_sed_cmds"; then
24572 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
24573 else
24574 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
24575 fi
24576 ac_sed_frag=`expr $ac_sed_frag + 1`
24577 ac_beg=$ac_end
24578 ac_end=`expr $ac_end + $ac_max_sed_lines`
24579 fi
24580 done
24581 if test -z "$ac_sed_cmds"; then
24582 ac_sed_cmds=cat
24583 fi
24584 fi # test -n "$CONFIG_FILES"
24585
24586 _ACEOF
24587 cat >>$CONFIG_STATUS <<\_ACEOF
24588 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
24589 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24590 case $ac_file in
24591 - | *:- | *:-:* ) # input from stdin
24592 cat >$tmp/stdin
24593 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24594 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24595 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24596 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24597 * ) ac_file_in=$ac_file.in ;;
24598 esac
24599
24600 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
24601 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24602 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24603 X"$ac_file" : 'X\(//\)[^/]' \| \
24604 X"$ac_file" : 'X\(//\)$' \| \
24605 X"$ac_file" : 'X\(/\)' \| \
24606 . : '\(.\)' 2>/dev/null ||
24607 echo X"$ac_file" |
24608 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24609 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24610 /^X\(\/\/\)$/{ s//\1/; q; }
24611 /^X\(\/\).*/{ s//\1/; q; }
24612 s/.*/./; q'`
24613 { if $as_mkdir_p; then
24614 mkdir -p "$ac_dir"
24615 else
24616 as_dir="$ac_dir"
24617 as_dirs=
24618 while test ! -d "$as_dir"; do
24619 as_dirs="$as_dir $as_dirs"
24620 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24621 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24622 X"$as_dir" : 'X\(//\)[^/]' \| \
24623 X"$as_dir" : 'X\(//\)$' \| \
24624 X"$as_dir" : 'X\(/\)' \| \
24625 . : '\(.\)' 2>/dev/null ||
24626 echo X"$as_dir" |
24627 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24628 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24629 /^X\(\/\/\)$/{ s//\1/; q; }
24630 /^X\(\/\).*/{ s//\1/; q; }
24631 s/.*/./; q'`
24632 done
24633 test ! -n "$as_dirs" || mkdir $as_dirs
24634 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24635 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24636 { (exit 1); exit 1; }; }; }
24637
24638 ac_builddir=.
24639
24640 if test "$ac_dir" != .; then
24641 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24642 # A "../" for each directory in $ac_dir_suffix.
24643 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24644 else
24645 ac_dir_suffix= ac_top_builddir=
24646 fi
24647
24648 case $srcdir in
24649 .) # No --srcdir option. We are building in place.
24650 ac_srcdir=.
24651 if test -z "$ac_top_builddir"; then
24652 ac_top_srcdir=.
24653 else
24654 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24655 fi ;;
24656 [\\/]* | ?:[\\/]* ) # Absolute path.
24657 ac_srcdir=$srcdir$ac_dir_suffix;
24658 ac_top_srcdir=$srcdir ;;
24659 *) # Relative path.
24660 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24661 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24662 esac
24663
24664 # Do not use `cd foo && pwd` to compute absolute paths, because
24665 # the directories may not exist.
24666 case `pwd` in
24667 .) ac_abs_builddir="$ac_dir";;
24668 *)
24669 case "$ac_dir" in
24670 .) ac_abs_builddir=`pwd`;;
24671 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24672 *) ac_abs_builddir=`pwd`/"$ac_dir";;
24673 esac;;
24674 esac
24675 case $ac_abs_builddir in
24676 .) ac_abs_top_builddir=${ac_top_builddir}.;;
24677 *)
24678 case ${ac_top_builddir}. in
24679 .) ac_abs_top_builddir=$ac_abs_builddir;;
24680 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24681 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24682 esac;;
24683 esac
24684 case $ac_abs_builddir in
24685 .) ac_abs_srcdir=$ac_srcdir;;
24686 *)
24687 case $ac_srcdir in
24688 .) ac_abs_srcdir=$ac_abs_builddir;;
24689 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24690 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24691 esac;;
24692 esac
24693 case $ac_abs_builddir in
24694 .) ac_abs_top_srcdir=$ac_top_srcdir;;
24695 *)
24696 case $ac_top_srcdir in
24697 .) ac_abs_top_srcdir=$ac_abs_builddir;;
24698 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24699 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24700 esac;;
24701 esac
24702
24703
24704 case $INSTALL in
24705 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24706 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
24707 esac
24708
24709 if test x"$ac_file" != x-; then
24710 { echo "$as_me:$LINENO: creating $ac_file" >&5
24711 echo "$as_me: creating $ac_file" >&6;}
24712 rm -f "$ac_file"
24713 fi
24714 # Let's still pretend it is `configure' which instantiates (i.e., don't
24715 # use $as_me), people would be surprised to read:
24716 # /* config.h. Generated by config.status. */
24717 if test x"$ac_file" = x-; then
24718 configure_input=
24719 else
24720 configure_input="$ac_file. "
24721 fi
24722 configure_input=$configure_input"Generated from `echo $ac_file_in |
24723 sed 's,.*/,,'` by configure."
24724
24725 # First look for the input files in the build tree, otherwise in the
24726 # src tree.
24727 ac_file_inputs=`IFS=:
24728 for f in $ac_file_in; do
24729 case $f in
24730 -) echo $tmp/stdin ;;
24731 [\\/$]*)
24732 # Absolute (can't be DOS-style, as IFS=:)
24733 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24734 echo "$as_me: error: cannot find input file: $f" >&2;}
24735 { (exit 1); exit 1; }; }
24736 echo "$f";;
24737 *) # Relative
24738 if test -f "$f"; then
24739 # Build tree
24740 echo "$f"
24741 elif test -f "$srcdir/$f"; then
24742 # Source tree
24743 echo "$srcdir/$f"
24744 else
24745 # /dev/null tree
24746 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24747 echo "$as_me: error: cannot find input file: $f" >&2;}
24748 { (exit 1); exit 1; }; }
24749 fi;;
24750 esac
24751 done` || { (exit 1); exit 1; }
24752 _ACEOF
24753 cat >>$CONFIG_STATUS <<_ACEOF
24754 sed "$ac_vpsub
24755 $extrasub
24756 _ACEOF
24757 cat >>$CONFIG_STATUS <<\_ACEOF
24758 :t
24759 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24760 s,@configure_input@,$configure_input,;t t
24761 s,@srcdir@,$ac_srcdir,;t t
24762 s,@abs_srcdir@,$ac_abs_srcdir,;t t
24763 s,@top_srcdir@,$ac_top_srcdir,;t t
24764 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24765 s,@builddir@,$ac_builddir,;t t
24766 s,@abs_builddir@,$ac_abs_builddir,;t t
24767 s,@top_builddir@,$ac_top_builddir,;t t
24768 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24769 s,@INSTALL@,$ac_INSTALL,;t t
24770 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24771 rm -f $tmp/stdin
24772 if test x"$ac_file" != x-; then
24773 mv $tmp/out $ac_file
24774 else
24775 cat $tmp/out
24776 rm -f $tmp/out
24777 fi
24778
24779 done
24780 _ACEOF
24781 cat >>$CONFIG_STATUS <<\_ACEOF
24782
24783 #
24784 # CONFIG_HEADER section.
24785 #
24786
24787 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24788 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24789 #
24790 # ac_d sets the value in "#define NAME VALUE" lines.
24791 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24792 ac_dB='[ ].*$,\1#\2'
24793 ac_dC=' '
24794 ac_dD=',;t'
24795 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24796 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24797 ac_uB='$,\1#\2define\3'
24798 ac_uC=' '
24799 ac_uD=',;t'
24800
24801 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24802 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24803 case $ac_file in
24804 - | *:- | *:-:* ) # input from stdin
24805 cat >$tmp/stdin
24806 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24807 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24808 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24809 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24810 * ) ac_file_in=$ac_file.in ;;
24811 esac
24812
24813 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24814 echo "$as_me: creating $ac_file" >&6;}
24815
24816 # First look for the input files in the build tree, otherwise in the
24817 # src tree.
24818 ac_file_inputs=`IFS=:
24819 for f in $ac_file_in; do
24820 case $f in
24821 -) echo $tmp/stdin ;;
24822 [\\/$]*)
24823 # Absolute (can't be DOS-style, as IFS=:)
24824 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24825 echo "$as_me: error: cannot find input file: $f" >&2;}
24826 { (exit 1); exit 1; }; }
24827 # Do quote $f, to prevent DOS paths from being IFS'd.
24828 echo "$f";;
24829 *) # Relative
24830 if test -f "$f"; then
24831 # Build tree
24832 echo "$f"
24833 elif test -f "$srcdir/$f"; then
24834 # Source tree
24835 echo "$srcdir/$f"
24836 else
24837 # /dev/null tree
24838 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24839 echo "$as_me: error: cannot find input file: $f" >&2;}
24840 { (exit 1); exit 1; }; }
24841 fi;;
24842 esac
24843 done` || { (exit 1); exit 1; }
24844 # Remove the trailing spaces.
24845 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
24846
24847 _ACEOF
24848
24849 # Transform confdefs.h into two sed scripts, `conftest.defines' and
24850 # `conftest.undefs', that substitutes the proper values into
24851 # config.h.in to produce config.h. The first handles `#define'
24852 # templates, and the second `#undef' templates.
24853 # And first: Protect against being on the right side of a sed subst in
24854 # config.status. Protect against being in an unquoted here document
24855 # in config.status.
24856 rm -f conftest.defines conftest.undefs
24857 # Using a here document instead of a string reduces the quoting nightmare.
24858 # Putting comments in sed scripts is not portable.
24859 #
24860 # `end' is used to avoid that the second main sed command (meant for
24861 # 0-ary CPP macros) applies to n-ary macro definitions.
24862 # See the Autoconf documentation for `clear'.
24863 cat >confdef2sed.sed <<\_ACEOF
24864 s/[\\&,]/\\&/g
24865 s,[\\$`],\\&,g
24866 t clear
24867 : clear
24868 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24869 t end
24870 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24871 : end
24872 _ACEOF
24873 # If some macros were called several times there might be several times
24874 # the same #defines, which is useless. Nevertheless, we may not want to
24875 # sort them, since we want the *last* AC-DEFINE to be honored.
24876 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24877 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24878 rm -f confdef2sed.sed
24879
24880 # This sed command replaces #undef with comments. This is necessary, for
24881 # example, in the case of _POSIX_SOURCE, which is predefined and required
24882 # on some systems where configure will not decide to define it.
24883 cat >>conftest.undefs <<\_ACEOF
24884 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24885 _ACEOF
24886
24887 # Break up conftest.defines because some shells have a limit on the size
24888 # of here documents, and old seds have small limits too (100 cmds).
24889 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24890 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24891 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24892 echo ' :' >>$CONFIG_STATUS
24893 rm -f conftest.tail
24894 while grep . conftest.defines >/dev/null
24895 do
24896 # Write a limited-size here document to $tmp/defines.sed.
24897 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24898 # Speed up: don't consider the non `#define' lines.
24899 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
24900 # Work around the forget-to-reset-the-flag bug.
24901 echo 't clr' >>$CONFIG_STATUS
24902 echo ': clr' >>$CONFIG_STATUS
24903 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24904 echo 'CEOF
24905 sed -f $tmp/defines.sed $tmp/in >$tmp/out
24906 rm -f $tmp/in
24907 mv $tmp/out $tmp/in
24908 ' >>$CONFIG_STATUS
24909 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24910 rm -f conftest.defines
24911 mv conftest.tail conftest.defines
24912 done
24913 rm -f conftest.defines
24914 echo ' fi # grep' >>$CONFIG_STATUS
24915 echo >>$CONFIG_STATUS
24916
24917 # Break up conftest.undefs because some shells have a limit on the size
24918 # of here documents, and old seds have small limits too (100 cmds).
24919 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
24920 rm -f conftest.tail
24921 while grep . conftest.undefs >/dev/null
24922 do
24923 # Write a limited-size here document to $tmp/undefs.sed.
24924 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24925 # Speed up: don't consider the non `#undef'
24926 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
24927 # Work around the forget-to-reset-the-flag bug.
24928 echo 't clr' >>$CONFIG_STATUS
24929 echo ': clr' >>$CONFIG_STATUS
24930 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24931 echo 'CEOF
24932 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24933 rm -f $tmp/in
24934 mv $tmp/out $tmp/in
24935 ' >>$CONFIG_STATUS
24936 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24937 rm -f conftest.undefs
24938 mv conftest.tail conftest.undefs
24939 done
24940 rm -f conftest.undefs
24941
24942 cat >>$CONFIG_STATUS <<\_ACEOF
24943 # Let's still pretend it is `configure' which instantiates (i.e., don't
24944 # use $as_me), people would be surprised to read:
24945 # /* config.h. Generated by config.status. */
24946 if test x"$ac_file" = x-; then
24947 echo "/* Generated by configure. */" >$tmp/config.h
24948 else
24949 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
24950 fi
24951 cat $tmp/in >>$tmp/config.h
24952 rm -f $tmp/in
24953 if test x"$ac_file" != x-; then
24954 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
24955 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24956 echo "$as_me: $ac_file is unchanged" >&6;}
24957 else
24958 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24959 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24960 X"$ac_file" : 'X\(//\)[^/]' \| \
24961 X"$ac_file" : 'X\(//\)$' \| \
24962 X"$ac_file" : 'X\(/\)' \| \
24963 . : '\(.\)' 2>/dev/null ||
24964 echo X"$ac_file" |
24965 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24966 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24967 /^X\(\/\/\)$/{ s//\1/; q; }
24968 /^X\(\/\).*/{ s//\1/; q; }
24969 s/.*/./; q'`
24970 { if $as_mkdir_p; then
24971 mkdir -p "$ac_dir"
24972 else
24973 as_dir="$ac_dir"
24974 as_dirs=
24975 while test ! -d "$as_dir"; do
24976 as_dirs="$as_dir $as_dirs"
24977 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24978 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24979 X"$as_dir" : 'X\(//\)[^/]' \| \
24980 X"$as_dir" : 'X\(//\)$' \| \
24981 X"$as_dir" : 'X\(/\)' \| \
24982 . : '\(.\)' 2>/dev/null ||
24983 echo X"$as_dir" |
24984 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24985 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24986 /^X\(\/\/\)$/{ s//\1/; q; }
24987 /^X\(\/\).*/{ s//\1/; q; }
24988 s/.*/./; q'`
24989 done
24990 test ! -n "$as_dirs" || mkdir $as_dirs
24991 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24992 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24993 { (exit 1); exit 1; }; }; }
24994
24995 rm -f $ac_file
24996 mv $tmp/config.h $ac_file
24997 fi
24998 else
24999 cat $tmp/config.h
25000 rm -f $tmp/config.h
25001 fi
25002 # Compute $ac_file's index in $config_headers.
25003 _am_stamp_count=1
25004 for _am_header in $config_headers :; do
25005 case $_am_header in
25006 $ac_file | $ac_file:* )
25007 break ;;
25008 * )
25009 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
25010 esac
25011 done
25012 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
25013 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25014 X$ac_file : 'X\(//\)[^/]' \| \
25015 X$ac_file : 'X\(//\)$' \| \
25016 X$ac_file : 'X\(/\)' \| \
25017 . : '\(.\)' 2>/dev/null ||
25018 echo X$ac_file |
25019 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25020 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25021 /^X\(\/\/\)$/{ s//\1/; q; }
25022 /^X\(\/\).*/{ s//\1/; q; }
25023 s/.*/./; q'`/stamp-h$_am_stamp_count
25024 done
25025 _ACEOF
25026 cat >>$CONFIG_STATUS <<\_ACEOF
25027
25028 #
25029 # CONFIG_COMMANDS section.
25030 #
25031 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
25032 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
25033 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
25034 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
25035 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25036 X"$ac_dest" : 'X\(//\)[^/]' \| \
25037 X"$ac_dest" : 'X\(//\)$' \| \
25038 X"$ac_dest" : 'X\(/\)' \| \
25039 . : '\(.\)' 2>/dev/null ||
25040 echo X"$ac_dest" |
25041 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25042 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25043 /^X\(\/\/\)$/{ s//\1/; q; }
25044 /^X\(\/\).*/{ s//\1/; q; }
25045 s/.*/./; q'`
25046 { if $as_mkdir_p; then
25047 mkdir -p "$ac_dir"
25048 else
25049 as_dir="$ac_dir"
25050 as_dirs=
25051 while test ! -d "$as_dir"; do
25052 as_dirs="$as_dir $as_dirs"
25053 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25054 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25055 X"$as_dir" : 'X\(//\)[^/]' \| \
25056 X"$as_dir" : 'X\(//\)$' \| \
25057 X"$as_dir" : 'X\(/\)' \| \
25058 . : '\(.\)' 2>/dev/null ||
25059 echo X"$as_dir" |
25060 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25061 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25062 /^X\(\/\/\)$/{ s//\1/; q; }
25063 /^X\(\/\).*/{ s//\1/; q; }
25064 s/.*/./; q'`
25065 done
25066 test ! -n "$as_dirs" || mkdir $as_dirs
25067 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25068 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25069 { (exit 1); exit 1; }; }; }
25070
25071 ac_builddir=.
25072
25073 if test "$ac_dir" != .; then
25074 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25075 # A "../" for each directory in $ac_dir_suffix.
25076 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25077 else
25078 ac_dir_suffix= ac_top_builddir=
25079 fi
25080
25081 case $srcdir in
25082 .) # No --srcdir option. We are building in place.
25083 ac_srcdir=.
25084 if test -z "$ac_top_builddir"; then
25085 ac_top_srcdir=.
25086 else
25087 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25088 fi ;;
25089 [\\/]* | ?:[\\/]* ) # Absolute path.
25090 ac_srcdir=$srcdir$ac_dir_suffix;
25091 ac_top_srcdir=$srcdir ;;
25092 *) # Relative path.
25093 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25094 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25095 esac
25096
25097 # Do not use `cd foo && pwd` to compute absolute paths, because
25098 # the directories may not exist.
25099 case `pwd` in
25100 .) ac_abs_builddir="$ac_dir";;
25101 *)
25102 case "$ac_dir" in
25103 .) ac_abs_builddir=`pwd`;;
25104 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25105 *) ac_abs_builddir=`pwd`/"$ac_dir";;
25106 esac;;
25107 esac
25108 case $ac_abs_builddir in
25109 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25110 *)
25111 case ${ac_top_builddir}. in
25112 .) ac_abs_top_builddir=$ac_abs_builddir;;
25113 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25114 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25115 esac;;
25116 esac
25117 case $ac_abs_builddir in
25118 .) ac_abs_srcdir=$ac_srcdir;;
25119 *)
25120 case $ac_srcdir in
25121 .) ac_abs_srcdir=$ac_abs_builddir;;
25122 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25123 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25124 esac;;
25125 esac
25126 case $ac_abs_builddir in
25127 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25128 *)
25129 case $ac_top_srcdir in
25130 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25131 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25132 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25133 esac;;
25134 esac
25135
25136
25137 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
25138 echo "$as_me: executing $ac_dest commands" >&6;}
25139 case $ac_dest in
25140 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
25141 # Strip MF so we end up with the name of the file.
25142 mf=`echo "$mf" | sed -e 's/:.*$//'`
25143 # Check whether this is an Automake generated Makefile or not.
25144 # We used to match only the files named `Makefile.in', but
25145 # some people rename them; so instead we look at the file content.
25146 # Grep'ing the first line is not enough: some people post-process
25147 # each Makefile.in and add a new line on top of each file to say so.
25148 # So let's grep whole file.
25149 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
25150 dirpart=`(dirname "$mf") 2>/dev/null ||
25151 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25152 X"$mf" : 'X\(//\)[^/]' \| \
25153 X"$mf" : 'X\(//\)$' \| \
25154 X"$mf" : 'X\(/\)' \| \
25155 . : '\(.\)' 2>/dev/null ||
25156 echo X"$mf" |
25157 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25158 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25159 /^X\(\/\/\)$/{ s//\1/; q; }
25160 /^X\(\/\).*/{ s//\1/; q; }
25161 s/.*/./; q'`
25162 else
25163 continue
25164 fi
25165 # Extract the definition of DEPDIR, am__include, and am__quote
25166 # from the Makefile without running `make'.
25167 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
25168 test -z "$DEPDIR" && continue
25169 am__include=`sed -n 's/^am__include = //p' < "$mf"`
25170 test -z "am__include" && continue
25171 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
25172 # When using ansi2knr, U may be empty or an underscore; expand it
25173 U=`sed -n 's/^U = //p' < "$mf"`
25174 # Find all dependency output files, they are included files with
25175 # $(DEPDIR) in their names. We invoke sed twice because it is the
25176 # simplest approach to changing $(DEPDIR) to its actual value in the
25177 # expansion.
25178 for file in `sed -n "
25179 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
25180 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
25181 # Make sure the directory exists.
25182 test -f "$dirpart/$file" && continue
25183 fdir=`(dirname "$file") 2>/dev/null ||
25184 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25185 X"$file" : 'X\(//\)[^/]' \| \
25186 X"$file" : 'X\(//\)$' \| \
25187 X"$file" : 'X\(/\)' \| \
25188 . : '\(.\)' 2>/dev/null ||
25189 echo X"$file" |
25190 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25191 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25192 /^X\(\/\/\)$/{ s//\1/; q; }
25193 /^X\(\/\).*/{ s//\1/; q; }
25194 s/.*/./; q'`
25195 { if $as_mkdir_p; then
25196 mkdir -p $dirpart/$fdir
25197 else
25198 as_dir=$dirpart/$fdir
25199 as_dirs=
25200 while test ! -d "$as_dir"; do
25201 as_dirs="$as_dir $as_dirs"
25202 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25203 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25204 X"$as_dir" : 'X\(//\)[^/]' \| \
25205 X"$as_dir" : 'X\(//\)$' \| \
25206 X"$as_dir" : 'X\(/\)' \| \
25207 . : '\(.\)' 2>/dev/null ||
25208 echo X"$as_dir" |
25209 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25210 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25211 /^X\(\/\/\)$/{ s//\1/; q; }
25212 /^X\(\/\).*/{ s//\1/; q; }
25213 s/.*/./; q'`
25214 done
25215 test ! -n "$as_dirs" || mkdir $as_dirs
25216 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
25217 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
25218 { (exit 1); exit 1; }; }; }
25219
25220 # echo "creating $dirpart/$file"
25221 echo '# dummy' > "$dirpart/$file"
25222 done
25223 done
25224 ;;
25225 esac
25226 done
25227 _ACEOF
25228
25229 cat >>$CONFIG_STATUS <<\_ACEOF
25230
25231 { (exit 0); exit 0; }
25232 _ACEOF
25233 chmod +x $CONFIG_STATUS
25234 ac_clean_files=$ac_clean_files_save
25235
25236
25237 # configure is writing to config.log, and then calls config.status.
25238 # config.status does its own redirection, appending to config.log.
25239 # Unfortunately, on DOS this fails, as config.log is still kept open
25240 # by configure, so config.status won't be able to write to it; its
25241 # output is simply discarded. So we exec the FD to /dev/null,
25242 # effectively closing config.log, so it can be properly (re)opened and
25243 # appended to by config.status. When coming back to configure, we
25244 # need to make the FD available again.
25245 if test "$no_create" != yes; then
25246 ac_cs_success=:
25247 ac_config_status_args=
25248 test "$silent" = yes &&
25249 ac_config_status_args="$ac_config_status_args --quiet"
25250 exec 5>/dev/null
25251 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25252 exec 5>>config.log
25253 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25254 # would make configure fail if this is the last instruction.
25255 $ac_cs_success || { (exit 1); exit 1; }
25256 fi
25257