2008-10-01 Kai Tietz <kai.tietz@onevision.com>
[official-gcc.git] / zlib / configure
blob144f0f519549d574bf6a785e93730f603d92a49e
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
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 ## --------------------- ##
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
22 DUALCASE=1; export DUALCASE # for MKS sh
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
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
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
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
49 done
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
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
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'`
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
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=:
96 rm -f conf$$.sh
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
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
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
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; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
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
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
154 esac
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 '
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; }; }
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
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
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
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'
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
216 rm -f conf$$ conf$$.exe conf$$.file
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
225 as_executable_p="test -f"
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'"
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'"
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
238 IFS=" $as_nl"
240 # CDPATH.
241 $as_unset CDPATH
245 # Check that we are running under the correct shell.
246 SHELL=${CONFIG_SHELL-/bin/sh}
248 case X$lt_ECHO in
249 X*--fallback-echo)
250 # Remove one level of quotation (which was required for Make).
251 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
253 esac
255 ECHO=${lt_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
262 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
263 # Yippee, $ECHO works!
265 else
266 # Restart under the correct shell.
267 exec $SHELL "$0" --no-reexec ${1+"$@"}
270 if test "X$1" = X--fallback-echo; then
271 # used as fallback echo
272 shift
273 cat <<_LT_EOF
275 _LT_EOF
276 exit 0
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
283 if test -z "$lt_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 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
290 then
291 break
293 done
296 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
297 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
298 test "X$echo_testing_string" = "X$echo_test_string"; then
300 else
301 # The Solaris, AIX, and Digital Unix default echo programs unquote
302 # backslashes. This makes it impossible to quote backslashes using
303 # echo "$something" | sed 's/\\/\\\\/g'
305 # So, first we look for a working echo in the user's PATH.
307 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
308 for dir in $PATH /usr/ucb; do
309 IFS="$lt_save_ifs"
310 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
311 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
312 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
313 test "X$echo_testing_string" = "X$echo_test_string"; then
314 ECHO="$dir/echo"
315 break
317 done
318 IFS="$lt_save_ifs"
320 if test "X$ECHO" = Xecho; then
321 # We didn't find a better echo, so look for alternatives.
322 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
323 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
324 test "X$echo_testing_string" = "X$echo_test_string"; then
325 # This shell has a builtin print -r that does the trick.
326 ECHO='print -r'
327 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
328 test "X$CONFIG_SHELL" != X/bin/ksh; then
329 # If we have ksh, try running configure again with it.
330 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
331 export ORIGINAL_CONFIG_SHELL
332 CONFIG_SHELL=/bin/ksh
333 export CONFIG_SHELL
334 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
335 else
336 # Try using printf.
337 ECHO='printf %s\n'
338 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
339 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
340 test "X$echo_testing_string" = "X$echo_test_string"; then
341 # Cool, printf works
343 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
344 test "X$echo_testing_string" = 'X\t' &&
345 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
346 test "X$echo_testing_string" = "X$echo_test_string"; then
347 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
348 export CONFIG_SHELL
349 SHELL="$CONFIG_SHELL"
350 export SHELL
351 ECHO="$CONFIG_SHELL $0 --fallback-echo"
352 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353 test "X$echo_testing_string" = 'X\t' &&
354 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355 test "X$echo_testing_string" = "X$echo_test_string"; then
356 ECHO="$CONFIG_SHELL $0 --fallback-echo"
357 else
358 # maybe with a smaller string...
359 prev=:
361 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
362 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
363 then
364 break
366 prev="$cmd"
367 done
369 if test "$prev" != 'sed 50q "$0"'; then
370 echo_test_string=`eval $prev`
371 export echo_test_string
372 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
373 else
374 # Oops. We lost completely, so just stick with echo.
375 ECHO=echo
383 # Copy echo and quote the copy suitably for passing to libtool from
384 # the Makefile, instead of quoting the original, which is used later.
385 lt_ECHO=$ECHO
386 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
387 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
393 # Name of the host.
394 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
395 # so uname gets run too.
396 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
398 exec 6>&1
401 # Initializations.
403 ac_default_prefix=/usr/local
404 ac_config_libobj_dir=.
405 cross_compiling=no
406 subdirs=
407 MFLAGS=
408 MAKEFLAGS=
409 SHELL=${CONFIG_SHELL-/bin/sh}
411 # Maximum number of lines to put in a shell here document.
412 # This variable seems obsolete. It should probably be removed, and
413 # only ac_max_sed_lines should be used.
414 : ${ac_max_here_lines=38}
416 # Identity of this package.
417 PACKAGE_NAME=
418 PACKAGE_TARNAME=
419 PACKAGE_VERSION=
420 PACKAGE_STRING=
421 PACKAGE_BUGREPORT=
423 ac_unique_file="zlib.h"
424 # Factoring default headers for most tests.
425 ac_includes_default="\
426 #include <stdio.h>
427 #if HAVE_SYS_TYPES_H
428 # include <sys/types.h>
429 #endif
430 #if HAVE_SYS_STAT_H
431 # include <sys/stat.h>
432 #endif
433 #if STDC_HEADERS
434 # include <stdlib.h>
435 # include <stddef.h>
436 #else
437 # if HAVE_STDLIB_H
438 # include <stdlib.h>
439 # endif
440 #endif
441 #if HAVE_STRING_H
442 # if !STDC_HEADERS && HAVE_MEMORY_H
443 # include <memory.h>
444 # endif
445 # include <string.h>
446 #endif
447 #if HAVE_STRINGS_H
448 # include <strings.h>
449 #endif
450 #if HAVE_INTTYPES_H
451 # include <inttypes.h>
452 #else
453 # if HAVE_STDINT_H
454 # include <stdint.h>
455 # endif
456 #endif
457 #if HAVE_UNISTD_H
458 # include <unistd.h>
459 #endif"
461 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 multi_basedir build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os mkinstalldirs 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 COMPPATH CC ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CFLAGS LIBTOOL SED EGREP FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S OBJDUMP ac_ct_OBJDUMP AR ac_ct_AR RANLIB ac_ct_RANLIB lt_ECHO DSYMUTIL ac_ct_DSYMUTIL NMEDIT ac_ct_NMEDIT LIPO ac_ct_LIPO OTOOL ac_ct_OTOOL OTOOL64 ac_ct_OTOOL64 CPP CPPFLAGS target_all toolexecdir toolexeclibdir TARGET_LIBRARY_TRUE TARGET_LIBRARY_FALSE LIBOBJS LTLIBOBJS'
462 ac_subst_files=''
463 ac_pwd=`pwd`
465 # Initialize some variables set by options.
466 ac_init_help=
467 ac_init_version=false
468 # The variables have the same names as the options, with
469 # dashes changed to underlines.
470 cache_file=/dev/null
471 exec_prefix=NONE
472 no_create=
473 no_recursion=
474 prefix=NONE
475 program_prefix=NONE
476 program_suffix=NONE
477 program_transform_name=s,x,x,
478 silent=
479 site=
480 srcdir=
481 verbose=
482 x_includes=NONE
483 x_libraries=NONE
485 # Installation directory options.
486 # These are left unexpanded so users can "make install exec_prefix=/foo"
487 # and all the variables that are supposed to be based on exec_prefix
488 # by default will actually change.
489 # Use braces instead of parens because sh, perl, etc. also accept them.
490 bindir='${exec_prefix}/bin'
491 sbindir='${exec_prefix}/sbin'
492 libexecdir='${exec_prefix}/libexec'
493 datadir='${prefix}/share'
494 sysconfdir='${prefix}/etc'
495 sharedstatedir='${prefix}/com'
496 localstatedir='${prefix}/var'
497 libdir='${exec_prefix}/lib'
498 includedir='${prefix}/include'
499 oldincludedir='/usr/include'
500 infodir='${prefix}/info'
501 mandir='${prefix}/man'
503 ac_prev=
504 for ac_option
506 # If the previous option needs an argument, assign it.
507 if test -n "$ac_prev"; then
508 eval "$ac_prev=\$ac_option"
509 ac_prev=
510 continue
513 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
515 # Accept the important Cygnus configure options, so we can diagnose typos.
517 case $ac_option in
519 -bindir | --bindir | --bindi | --bind | --bin | --bi)
520 ac_prev=bindir ;;
521 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
522 bindir=$ac_optarg ;;
524 -build | --build | --buil | --bui | --bu)
525 ac_prev=build_alias ;;
526 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
527 build_alias=$ac_optarg ;;
529 -cache-file | --cache-file | --cache-fil | --cache-fi \
530 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
531 ac_prev=cache_file ;;
532 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
533 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
534 cache_file=$ac_optarg ;;
536 --config-cache | -C)
537 cache_file=config.cache ;;
539 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
540 ac_prev=datadir ;;
541 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
542 | --da=*)
543 datadir=$ac_optarg ;;
545 -disable-* | --disable-*)
546 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
547 # Reject names that are not valid shell variable names.
548 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
549 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
550 { (exit 1); exit 1; }; }
551 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
552 eval "enable_$ac_feature=no" ;;
554 -enable-* | --enable-*)
555 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
556 # Reject names that are not valid shell variable names.
557 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
558 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
559 { (exit 1); exit 1; }; }
560 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
561 case $ac_option in
562 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
563 *) ac_optarg=yes ;;
564 esac
565 eval "enable_$ac_feature='$ac_optarg'" ;;
567 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
568 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
569 | --exec | --exe | --ex)
570 ac_prev=exec_prefix ;;
571 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
572 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
573 | --exec=* | --exe=* | --ex=*)
574 exec_prefix=$ac_optarg ;;
576 -gas | --gas | --ga | --g)
577 # Obsolete; use --with-gas.
578 with_gas=yes ;;
580 -help | --help | --hel | --he | -h)
581 ac_init_help=long ;;
582 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
583 ac_init_help=recursive ;;
584 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
585 ac_init_help=short ;;
587 -host | --host | --hos | --ho)
588 ac_prev=host_alias ;;
589 -host=* | --host=* | --hos=* | --ho=*)
590 host_alias=$ac_optarg ;;
592 -includedir | --includedir | --includedi | --included | --include \
593 | --includ | --inclu | --incl | --inc)
594 ac_prev=includedir ;;
595 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
596 | --includ=* | --inclu=* | --incl=* | --inc=*)
597 includedir=$ac_optarg ;;
599 -infodir | --infodir | --infodi | --infod | --info | --inf)
600 ac_prev=infodir ;;
601 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
602 infodir=$ac_optarg ;;
604 -libdir | --libdir | --libdi | --libd)
605 ac_prev=libdir ;;
606 -libdir=* | --libdir=* | --libdi=* | --libd=*)
607 libdir=$ac_optarg ;;
609 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
610 | --libexe | --libex | --libe)
611 ac_prev=libexecdir ;;
612 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
613 | --libexe=* | --libex=* | --libe=*)
614 libexecdir=$ac_optarg ;;
616 -localstatedir | --localstatedir | --localstatedi | --localstated \
617 | --localstate | --localstat | --localsta | --localst \
618 | --locals | --local | --loca | --loc | --lo)
619 ac_prev=localstatedir ;;
620 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
621 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
622 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
623 localstatedir=$ac_optarg ;;
625 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
626 ac_prev=mandir ;;
627 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
628 mandir=$ac_optarg ;;
630 -nfp | --nfp | --nf)
631 # Obsolete; use --without-fp.
632 with_fp=no ;;
634 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
635 | --no-cr | --no-c | -n)
636 no_create=yes ;;
638 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
639 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
640 no_recursion=yes ;;
642 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
643 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
644 | --oldin | --oldi | --old | --ol | --o)
645 ac_prev=oldincludedir ;;
646 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
647 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
648 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
649 oldincludedir=$ac_optarg ;;
651 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
652 ac_prev=prefix ;;
653 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
654 prefix=$ac_optarg ;;
656 -program-prefix | --program-prefix | --program-prefi | --program-pref \
657 | --program-pre | --program-pr | --program-p)
658 ac_prev=program_prefix ;;
659 -program-prefix=* | --program-prefix=* | --program-prefi=* \
660 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
661 program_prefix=$ac_optarg ;;
663 -program-suffix | --program-suffix | --program-suffi | --program-suff \
664 | --program-suf | --program-su | --program-s)
665 ac_prev=program_suffix ;;
666 -program-suffix=* | --program-suffix=* | --program-suffi=* \
667 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
668 program_suffix=$ac_optarg ;;
670 -program-transform-name | --program-transform-name \
671 | --program-transform-nam | --program-transform-na \
672 | --program-transform-n | --program-transform- \
673 | --program-transform | --program-transfor \
674 | --program-transfo | --program-transf \
675 | --program-trans | --program-tran \
676 | --progr-tra | --program-tr | --program-t)
677 ac_prev=program_transform_name ;;
678 -program-transform-name=* | --program-transform-name=* \
679 | --program-transform-nam=* | --program-transform-na=* \
680 | --program-transform-n=* | --program-transform-=* \
681 | --program-transform=* | --program-transfor=* \
682 | --program-transfo=* | --program-transf=* \
683 | --program-trans=* | --program-tran=* \
684 | --progr-tra=* | --program-tr=* | --program-t=*)
685 program_transform_name=$ac_optarg ;;
687 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
688 | -silent | --silent | --silen | --sile | --sil)
689 silent=yes ;;
691 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
692 ac_prev=sbindir ;;
693 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
694 | --sbi=* | --sb=*)
695 sbindir=$ac_optarg ;;
697 -sharedstatedir | --sharedstatedir | --sharedstatedi \
698 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
699 | --sharedst | --shareds | --shared | --share | --shar \
700 | --sha | --sh)
701 ac_prev=sharedstatedir ;;
702 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
703 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
704 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
705 | --sha=* | --sh=*)
706 sharedstatedir=$ac_optarg ;;
708 -site | --site | --sit)
709 ac_prev=site ;;
710 -site=* | --site=* | --sit=*)
711 site=$ac_optarg ;;
713 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
714 ac_prev=srcdir ;;
715 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
716 srcdir=$ac_optarg ;;
718 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
719 | --syscon | --sysco | --sysc | --sys | --sy)
720 ac_prev=sysconfdir ;;
721 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
722 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
723 sysconfdir=$ac_optarg ;;
725 -target | --target | --targe | --targ | --tar | --ta | --t)
726 ac_prev=target_alias ;;
727 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
728 target_alias=$ac_optarg ;;
730 -v | -verbose | --verbose | --verbos | --verbo | --verb)
731 verbose=yes ;;
733 -version | --version | --versio | --versi | --vers | -V)
734 ac_init_version=: ;;
736 -with-* | --with-*)
737 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
738 # Reject names that are not valid shell variable names.
739 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
740 { echo "$as_me: error: invalid package name: $ac_package" >&2
741 { (exit 1); exit 1; }; }
742 ac_package=`echo $ac_package| sed 's/-/_/g'`
743 case $ac_option in
744 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
745 *) ac_optarg=yes ;;
746 esac
747 eval "with_$ac_package='$ac_optarg'" ;;
749 -without-* | --without-*)
750 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
751 # Reject names that are not valid shell variable names.
752 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753 { echo "$as_me: error: invalid package name: $ac_package" >&2
754 { (exit 1); exit 1; }; }
755 ac_package=`echo $ac_package | sed 's/-/_/g'`
756 eval "with_$ac_package=no" ;;
758 --x)
759 # Obsolete; use --with-x.
760 with_x=yes ;;
762 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
763 | --x-incl | --x-inc | --x-in | --x-i)
764 ac_prev=x_includes ;;
765 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
766 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
767 x_includes=$ac_optarg ;;
769 -x-libraries | --x-libraries | --x-librarie | --x-librari \
770 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
771 ac_prev=x_libraries ;;
772 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
773 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
774 x_libraries=$ac_optarg ;;
776 -*) { echo "$as_me: error: unrecognized option: $ac_option
777 Try \`$0 --help' for more information." >&2
778 { (exit 1); exit 1; }; }
781 *=*)
782 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
783 # Reject names that are not valid shell variable names.
784 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
785 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
786 { (exit 1); exit 1; }; }
787 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
788 eval "$ac_envvar='$ac_optarg'"
789 export $ac_envvar ;;
792 # FIXME: should be removed in autoconf 3.0.
793 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
794 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
795 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
796 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
799 esac
800 done
802 if test -n "$ac_prev"; then
803 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
804 { echo "$as_me: error: missing argument to $ac_option" >&2
805 { (exit 1); exit 1; }; }
808 # Be sure to have absolute paths.
809 for ac_var in exec_prefix prefix
811 eval ac_val=$`echo $ac_var`
812 case $ac_val in
813 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
814 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
815 { (exit 1); exit 1; }; };;
816 esac
817 done
819 # Be sure to have absolute paths.
820 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
821 localstatedir libdir includedir oldincludedir infodir mandir
823 eval ac_val=$`echo $ac_var`
824 case $ac_val in
825 [\\/$]* | ?:[\\/]* ) ;;
826 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
827 { (exit 1); exit 1; }; };;
828 esac
829 done
831 # There might be people who depend on the old broken behavior: `$host'
832 # used to hold the argument of --host etc.
833 # FIXME: To remove some day.
834 build=$build_alias
835 host=$host_alias
836 target=$target_alias
838 # FIXME: To remove some day.
839 if test "x$host_alias" != x; then
840 if test "x$build_alias" = x; then
841 cross_compiling=maybe
842 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
843 If a cross compiler is detected then cross compile mode will be used." >&2
844 elif test "x$build_alias" != "x$host_alias"; then
845 cross_compiling=yes
849 ac_tool_prefix=
850 test -n "$host_alias" && ac_tool_prefix=$host_alias-
852 test "$silent" = yes && exec 6>/dev/null
855 # Find the source files, if location was not specified.
856 if test -z "$srcdir"; then
857 ac_srcdir_defaulted=yes
858 # Try the directory containing this script, then its parent.
859 ac_confdir=`(dirname "$0") 2>/dev/null ||
860 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
861 X"$0" : 'X\(//\)[^/]' \| \
862 X"$0" : 'X\(//\)$' \| \
863 X"$0" : 'X\(/\)' \| \
864 . : '\(.\)' 2>/dev/null ||
865 echo X"$0" |
866 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
867 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
868 /^X\(\/\/\)$/{ s//\1/; q; }
869 /^X\(\/\).*/{ s//\1/; q; }
870 s/.*/./; q'`
871 srcdir=$ac_confdir
872 if test ! -r $srcdir/$ac_unique_file; then
873 srcdir=..
875 else
876 ac_srcdir_defaulted=no
878 if test ! -r $srcdir/$ac_unique_file; then
879 if test "$ac_srcdir_defaulted" = yes; then
880 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
881 { (exit 1); exit 1; }; }
882 else
883 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
884 { (exit 1); exit 1; }; }
887 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
888 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
889 { (exit 1); exit 1; }; }
890 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
891 ac_env_build_alias_set=${build_alias+set}
892 ac_env_build_alias_value=$build_alias
893 ac_cv_env_build_alias_set=${build_alias+set}
894 ac_cv_env_build_alias_value=$build_alias
895 ac_env_host_alias_set=${host_alias+set}
896 ac_env_host_alias_value=$host_alias
897 ac_cv_env_host_alias_set=${host_alias+set}
898 ac_cv_env_host_alias_value=$host_alias
899 ac_env_target_alias_set=${target_alias+set}
900 ac_env_target_alias_value=$target_alias
901 ac_cv_env_target_alias_set=${target_alias+set}
902 ac_cv_env_target_alias_value=$target_alias
903 ac_env_CPP_set=${CPP+set}
904 ac_env_CPP_value=$CPP
905 ac_cv_env_CPP_set=${CPP+set}
906 ac_cv_env_CPP_value=$CPP
907 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
908 ac_env_CPPFLAGS_value=$CPPFLAGS
909 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
910 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
913 # Report the --help message.
915 if test "$ac_init_help" = "long"; then
916 # Omit some internal or obsolete options to make the list less imposing.
917 # This message is too long to be a string in the A/UX 3.1 sh.
918 cat <<_ACEOF
919 \`configure' configures this package to adapt to many kinds of systems.
921 Usage: $0 [OPTION]... [VAR=VALUE]...
923 To assign environment variables (e.g., CC, CFLAGS...), specify them as
924 VAR=VALUE. See below for descriptions of some of the useful variables.
926 Defaults for the options are specified in brackets.
928 Configuration:
929 -h, --help display this help and exit
930 --help=short display options specific to this package
931 --help=recursive display the short help of all the included packages
932 -V, --version display version information and exit
933 -q, --quiet, --silent do not print \`checking...' messages
934 --cache-file=FILE cache test results in FILE [disabled]
935 -C, --config-cache alias for \`--cache-file=config.cache'
936 -n, --no-create do not create output files
937 --srcdir=DIR find the sources in DIR [configure dir or \`..']
939 _ACEOF
941 cat <<_ACEOF
942 Installation directories:
943 --prefix=PREFIX install architecture-independent files in PREFIX
944 [$ac_default_prefix]
945 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
946 [PREFIX]
948 By default, \`make install' will install all the files in
949 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
950 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
951 for instance \`--prefix=\$HOME'.
953 For better control, use the options below.
955 Fine tuning of the installation directories:
956 --bindir=DIR user executables [EPREFIX/bin]
957 --sbindir=DIR system admin executables [EPREFIX/sbin]
958 --libexecdir=DIR program executables [EPREFIX/libexec]
959 --datadir=DIR read-only architecture-independent data [PREFIX/share]
960 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
961 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
962 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
963 --libdir=DIR object code libraries [EPREFIX/lib]
964 --includedir=DIR C header files [PREFIX/include]
965 --oldincludedir=DIR C header files for non-gcc [/usr/include]
966 --infodir=DIR info documentation [PREFIX/info]
967 --mandir=DIR man documentation [PREFIX/man]
968 _ACEOF
970 cat <<\_ACEOF
972 Program names:
973 --program-prefix=PREFIX prepend PREFIX to installed program names
974 --program-suffix=SUFFIX append SUFFIX to installed program names
975 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
977 System types:
978 --build=BUILD configure for building on BUILD [guessed]
979 --host=HOST cross-compile to build programs to run on HOST [BUILD]
980 --target=TARGET configure for building compilers for TARGET [HOST]
981 _ACEOF
984 if test -n "$ac_init_help"; then
986 cat <<\_ACEOF
988 Optional Features:
989 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
990 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
991 --enable-multilib build many library versions (default)
992 --enable-maintainer-mode enable make rules and dependencies not useful
993 (and sometimes confusing) to the casual installer
994 --disable-dependency-tracking speeds up one-time build
995 --enable-dependency-tracking do not reject slow dependency extractors
996 --enable-shared[=PKGS]
997 build shared libraries [default=yes]
998 --enable-static[=PKGS]
999 build static libraries [default=yes]
1000 --enable-fast-install[=PKGS]
1001 optimize for fast installation [default=yes]
1002 --disable-libtool-lock avoid locking (might break parallel builds)
1004 Optional Packages:
1005 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1006 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1007 --with-target-subdir=SUBDIR
1008 configuring in a subdirectory
1009 --with-cross-host=HOST configuring with a cross compiler
1010 --with-system-zlib use installed libz
1011 --with-pic try to use only PIC/non-PIC objects [default=use
1012 both]
1013 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1015 Some influential environment variables:
1016 CC C compiler command
1017 CFLAGS C compiler flags
1018 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1019 nonstandard directory <lib dir>
1020 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1021 headers in a nonstandard directory <include dir>
1022 CPP C preprocessor
1024 Use these variables to override the choices made by `configure' or to help
1025 it to find libraries and programs with nonstandard names/locations.
1027 _ACEOF
1030 if test "$ac_init_help" = "recursive"; then
1031 # If there are subdirs, report their specific --help.
1032 ac_popdir=`pwd`
1033 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1034 test -d $ac_dir || continue
1035 ac_builddir=.
1037 if test "$ac_dir" != .; then
1038 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1039 # A "../" for each directory in $ac_dir_suffix.
1040 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1041 else
1042 ac_dir_suffix= ac_top_builddir=
1045 case $srcdir in
1046 .) # No --srcdir option. We are building in place.
1047 ac_srcdir=.
1048 if test -z "$ac_top_builddir"; then
1049 ac_top_srcdir=.
1050 else
1051 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1052 fi ;;
1053 [\\/]* | ?:[\\/]* ) # Absolute path.
1054 ac_srcdir=$srcdir$ac_dir_suffix;
1055 ac_top_srcdir=$srcdir ;;
1056 *) # Relative path.
1057 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1058 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1059 esac
1061 # Do not use `cd foo && pwd` to compute absolute paths, because
1062 # the directories may not exist.
1063 case `pwd` in
1064 .) ac_abs_builddir="$ac_dir";;
1066 case "$ac_dir" in
1067 .) ac_abs_builddir=`pwd`;;
1068 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1069 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1070 esac;;
1071 esac
1072 case $ac_abs_builddir in
1073 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1075 case ${ac_top_builddir}. in
1076 .) ac_abs_top_builddir=$ac_abs_builddir;;
1077 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1078 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1079 esac;;
1080 esac
1081 case $ac_abs_builddir in
1082 .) ac_abs_srcdir=$ac_srcdir;;
1084 case $ac_srcdir in
1085 .) ac_abs_srcdir=$ac_abs_builddir;;
1086 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1087 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1088 esac;;
1089 esac
1090 case $ac_abs_builddir in
1091 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1093 case $ac_top_srcdir in
1094 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1095 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1096 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1097 esac;;
1098 esac
1100 cd $ac_dir
1101 # Check for guested configure; otherwise get Cygnus style configure.
1102 if test -f $ac_srcdir/configure.gnu; then
1103 echo
1104 $SHELL $ac_srcdir/configure.gnu --help=recursive
1105 elif test -f $ac_srcdir/configure; then
1106 echo
1107 $SHELL $ac_srcdir/configure --help=recursive
1108 elif test -f $ac_srcdir/configure.ac ||
1109 test -f $ac_srcdir/configure.in; then
1110 echo
1111 $ac_configure --help
1112 else
1113 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1115 cd $ac_popdir
1116 done
1119 test -n "$ac_init_help" && exit 0
1120 if $ac_init_version; then
1121 cat <<\_ACEOF
1123 Copyright (C) 2003 Free Software Foundation, Inc.
1124 This configure script is free software; the Free Software Foundation
1125 gives unlimited permission to copy, distribute and modify it.
1126 _ACEOF
1127 exit 0
1129 exec 5>config.log
1130 cat >&5 <<_ACEOF
1131 This file contains any messages produced by compilers while
1132 running configure, to aid debugging if configure makes a mistake.
1134 It was created by $as_me, which was
1135 generated by GNU Autoconf 2.59. Invocation command line was
1137 $ $0 $@
1139 _ACEOF
1141 cat <<_ASUNAME
1142 ## --------- ##
1143 ## Platform. ##
1144 ## --------- ##
1146 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1147 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1148 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1149 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1150 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1152 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1153 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1155 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1156 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1157 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1158 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1159 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1160 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1161 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1163 _ASUNAME
1165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1166 for as_dir in $PATH
1168 IFS=$as_save_IFS
1169 test -z "$as_dir" && as_dir=.
1170 echo "PATH: $as_dir"
1171 done
1173 } >&5
1175 cat >&5 <<_ACEOF
1178 ## ----------- ##
1179 ## Core tests. ##
1180 ## ----------- ##
1182 _ACEOF
1185 # Keep a trace of the command line.
1186 # Strip out --no-create and --no-recursion so they do not pile up.
1187 # Strip out --silent because we don't want to record it for future runs.
1188 # Also quote any args containing shell meta-characters.
1189 # Make two passes to allow for proper duplicate-argument suppression.
1190 ac_configure_args=
1191 ac_configure_args0=
1192 ac_configure_args1=
1193 ac_sep=
1194 ac_must_keep_next=false
1195 for ac_pass in 1 2
1197 for ac_arg
1199 case $ac_arg in
1200 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1201 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1202 | -silent | --silent | --silen | --sile | --sil)
1203 continue ;;
1204 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1205 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1206 esac
1207 case $ac_pass in
1208 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1210 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1211 if test $ac_must_keep_next = true; then
1212 ac_must_keep_next=false # Got value, back to normal.
1213 else
1214 case $ac_arg in
1215 *=* | --config-cache | -C | -disable-* | --disable-* \
1216 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1217 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1218 | -with-* | --with-* | -without-* | --without-* | --x)
1219 case "$ac_configure_args0 " in
1220 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1221 esac
1223 -* ) ac_must_keep_next=true ;;
1224 esac
1226 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1227 # Get rid of the leading space.
1228 ac_sep=" "
1230 esac
1231 done
1232 done
1233 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1234 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1236 # When interrupted or exit'd, cleanup temporary files, and complete
1237 # config.log. We remove comments because anyway the quotes in there
1238 # would cause problems or look ugly.
1239 # WARNING: Be sure not to use single quotes in there, as some shells,
1240 # such as our DU 5.0 friend, will then `close' the trap.
1241 trap 'exit_status=$?
1242 # Save into config.log some information that might help in debugging.
1244 echo
1246 cat <<\_ASBOX
1247 ## ---------------- ##
1248 ## Cache variables. ##
1249 ## ---------------- ##
1250 _ASBOX
1251 echo
1252 # The following way of writing the cache mishandles newlines in values,
1254 (set) 2>&1 |
1255 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1256 *ac_space=\ *)
1257 sed -n \
1258 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1259 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1262 sed -n \
1263 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1265 esac;
1267 echo
1269 cat <<\_ASBOX
1270 ## ----------------- ##
1271 ## Output variables. ##
1272 ## ----------------- ##
1273 _ASBOX
1274 echo
1275 for ac_var in $ac_subst_vars
1277 eval ac_val=$`echo $ac_var`
1278 echo "$ac_var='"'"'$ac_val'"'"'"
1279 done | sort
1280 echo
1282 if test -n "$ac_subst_files"; then
1283 cat <<\_ASBOX
1284 ## ------------- ##
1285 ## Output files. ##
1286 ## ------------- ##
1287 _ASBOX
1288 echo
1289 for ac_var in $ac_subst_files
1291 eval ac_val=$`echo $ac_var`
1292 echo "$ac_var='"'"'$ac_val'"'"'"
1293 done | sort
1294 echo
1297 if test -s confdefs.h; then
1298 cat <<\_ASBOX
1299 ## ----------- ##
1300 ## confdefs.h. ##
1301 ## ----------- ##
1302 _ASBOX
1303 echo
1304 sed "/^$/d" confdefs.h | sort
1305 echo
1307 test "$ac_signal" != 0 &&
1308 echo "$as_me: caught signal $ac_signal"
1309 echo "$as_me: exit $exit_status"
1310 } >&5
1311 rm -f core *.core &&
1312 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1313 exit $exit_status
1315 for ac_signal in 1 2 13 15; do
1316 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1317 done
1318 ac_signal=0
1320 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1321 rm -rf conftest* confdefs.h
1322 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1323 echo >confdefs.h
1325 # Predefined preprocessor variables.
1327 cat >>confdefs.h <<_ACEOF
1328 #define PACKAGE_NAME "$PACKAGE_NAME"
1329 _ACEOF
1332 cat >>confdefs.h <<_ACEOF
1333 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1334 _ACEOF
1337 cat >>confdefs.h <<_ACEOF
1338 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1339 _ACEOF
1342 cat >>confdefs.h <<_ACEOF
1343 #define PACKAGE_STRING "$PACKAGE_STRING"
1344 _ACEOF
1347 cat >>confdefs.h <<_ACEOF
1348 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1349 _ACEOF
1352 # Let the site file select an alternate cache file if it wants to.
1353 # Prefer explicitly selected file to automatically selected ones.
1354 if test -z "$CONFIG_SITE"; then
1355 if test "x$prefix" != xNONE; then
1356 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1357 else
1358 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1361 for ac_site_file in $CONFIG_SITE; do
1362 if test -r "$ac_site_file"; then
1363 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1364 echo "$as_me: loading site script $ac_site_file" >&6;}
1365 sed 's/^/| /' "$ac_site_file" >&5
1366 . "$ac_site_file"
1368 done
1370 if test -r "$cache_file"; then
1371 # Some versions of bash will fail to source /dev/null (special
1372 # files actually), so we avoid doing that.
1373 if test -f "$cache_file"; then
1374 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1375 echo "$as_me: loading cache $cache_file" >&6;}
1376 case $cache_file in
1377 [\\/]* | ?:[\\/]* ) . $cache_file;;
1378 *) . ./$cache_file;;
1379 esac
1381 else
1382 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1383 echo "$as_me: creating cache $cache_file" >&6;}
1384 >$cache_file
1387 # Check that the precious variables saved in the cache have kept the same
1388 # value.
1389 ac_cache_corrupted=false
1390 for ac_var in `(set) 2>&1 |
1391 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1392 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1393 eval ac_new_set=\$ac_env_${ac_var}_set
1394 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1395 eval ac_new_val="\$ac_env_${ac_var}_value"
1396 case $ac_old_set,$ac_new_set in
1397 set,)
1398 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1399 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1400 ac_cache_corrupted=: ;;
1401 ,set)
1402 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1403 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1404 ac_cache_corrupted=: ;;
1405 ,);;
1407 if test "x$ac_old_val" != "x$ac_new_val"; then
1408 # differences in whitespace do not lead to failure.
1409 ac_old_val_w=`echo x $ac_old_val`
1410 ac_new_val_w=`echo x $ac_new_val`
1411 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1412 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1413 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1414 ac_cache_corrupted=:
1415 else
1416 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1417 echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1418 eval $ac_var=\$ac_old_val
1420 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1421 echo "$as_me: former value: \`$ac_old_val'" >&2;}
1422 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1423 echo "$as_me: current value: \`$ac_new_val'" >&2;}
1424 fi;;
1425 esac
1426 # Pass precious variables to config.status.
1427 if test "$ac_new_set" = set; then
1428 case $ac_new_val in
1429 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1430 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1431 *) ac_arg=$ac_var=$ac_new_val ;;
1432 esac
1433 case " $ac_configure_args " in
1434 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1435 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1436 esac
1438 done
1439 if $ac_cache_corrupted; then
1440 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1441 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1442 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1443 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1444 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1445 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1446 { (exit 1); exit 1; }; }
1449 ac_ext=c
1450 ac_cpp='$CPP $CPPFLAGS'
1451 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1452 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1453 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1478 # Default to --enable-multilib
1479 # Check whether --enable-multilib or --disable-multilib was given.
1480 if test "${enable_multilib+set}" = set; then
1481 enableval="$enable_multilib"
1482 case "$enableval" in
1483 yes) multilib=yes ;;
1484 no) multilib=no ;;
1485 *) { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
1486 echo "$as_me: error: bad value $enableval for multilib option" >&2;}
1487 { (exit 1); exit 1; }; } ;;
1488 esac
1489 else
1490 multilib=yes
1493 # We may get other options which we leave undocumented:
1494 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1495 # See config-ml.in if you want the gory details.
1497 if test "$srcdir" = "."; then
1498 if test "$with_target_subdir" != "."; then
1499 multi_basedir="$srcdir/$with_multisrctop../.."
1500 else
1501 multi_basedir="$srcdir/$with_multisrctop.."
1503 else
1504 multi_basedir="$srcdir/.."
1508 # Even if the default multilib is not a cross compilation,
1509 # it may be that some of the other multilibs are.
1510 if test $cross_compiling = no && test $multilib = yes \
1511 && test "x${with_multisubdir}" != x ; then
1512 cross_compiling=maybe
1515 ac_config_commands="$ac_config_commands default-1"
1518 ac_aux_dir=
1519 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1520 if test -f $ac_dir/install-sh; then
1521 ac_aux_dir=$ac_dir
1522 ac_install_sh="$ac_aux_dir/install-sh -c"
1523 break
1524 elif test -f $ac_dir/install.sh; then
1525 ac_aux_dir=$ac_dir
1526 ac_install_sh="$ac_aux_dir/install.sh -c"
1527 break
1528 elif test -f $ac_dir/shtool; then
1529 ac_aux_dir=$ac_dir
1530 ac_install_sh="$ac_aux_dir/shtool install -c"
1531 break
1533 done
1534 if test -z "$ac_aux_dir"; then
1535 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1536 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1537 { (exit 1); exit 1; }; }
1539 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1540 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1541 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1543 # Make sure we can run config.sub.
1544 $ac_config_sub sun4 >/dev/null 2>&1 ||
1545 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1546 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1547 { (exit 1); exit 1; }; }
1549 echo "$as_me:$LINENO: checking build system type" >&5
1550 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1551 if test "${ac_cv_build+set}" = set; then
1552 echo $ECHO_N "(cached) $ECHO_C" >&6
1553 else
1554 ac_cv_build_alias=$build_alias
1555 test -z "$ac_cv_build_alias" &&
1556 ac_cv_build_alias=`$ac_config_guess`
1557 test -z "$ac_cv_build_alias" &&
1558 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1559 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1560 { (exit 1); exit 1; }; }
1561 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1562 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1563 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1564 { (exit 1); exit 1; }; }
1567 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1568 echo "${ECHO_T}$ac_cv_build" >&6
1569 build=$ac_cv_build
1570 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1571 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1572 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1575 echo "$as_me:$LINENO: checking host system type" >&5
1576 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1577 if test "${ac_cv_host+set}" = set; then
1578 echo $ECHO_N "(cached) $ECHO_C" >&6
1579 else
1580 ac_cv_host_alias=$host_alias
1581 test -z "$ac_cv_host_alias" &&
1582 ac_cv_host_alias=$ac_cv_build_alias
1583 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1584 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1585 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1586 { (exit 1); exit 1; }; }
1589 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1590 echo "${ECHO_T}$ac_cv_host" >&6
1591 host=$ac_cv_host
1592 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1593 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1594 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1597 echo "$as_me:$LINENO: checking target system type" >&5
1598 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1599 if test "${ac_cv_target+set}" = set; then
1600 echo $ECHO_N "(cached) $ECHO_C" >&6
1601 else
1602 ac_cv_target_alias=$target_alias
1603 test "x$ac_cv_target_alias" = "x" &&
1604 ac_cv_target_alias=$ac_cv_host_alias
1605 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1606 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1607 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1608 { (exit 1); exit 1; }; }
1611 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1612 echo "${ECHO_T}$ac_cv_target" >&6
1613 target=$ac_cv_target
1614 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1615 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1616 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1619 # The aliases save the names the user supplied, while $host etc.
1620 # will get canonicalized.
1621 test -n "$target_alias" &&
1622 test "$program_prefix$program_suffix$program_transform_name" = \
1623 NONENONEs,x,x, &&
1624 program_prefix=${target_alias}-
1626 # This works around an automake problem.
1627 mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
1630 am__api_version="1.9"
1631 # Find a good install program. We prefer a C program (faster),
1632 # so one script is as good as another. But avoid the broken or
1633 # incompatible versions:
1634 # SysV /etc/install, /usr/sbin/install
1635 # SunOS /usr/etc/install
1636 # IRIX /sbin/install
1637 # AIX /bin/install
1638 # AmigaOS /C/install, which installs bootblocks on floppy discs
1639 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1640 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1641 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1642 # OS/2's system install, which has a completely different semantic
1643 # ./install, which can be erroneously created by make from ./install.sh.
1644 # Reject install programs that cannot install multiple files.
1645 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1646 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1647 if test -z "$INSTALL"; then
1648 if test "${ac_cv_path_install+set}" = set; then
1649 echo $ECHO_N "(cached) $ECHO_C" >&6
1650 else
1651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1652 for as_dir in $PATH
1654 IFS=$as_save_IFS
1655 test -z "$as_dir" && as_dir=.
1656 # Account for people who put trailing slashes in PATH elements.
1657 case $as_dir/ in
1658 ./ | .// | /cC/* | \
1659 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1660 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1661 /usr/ucb/* ) ;;
1663 # OSF1 and SCO ODT 3.0 have their own names for install.
1664 # Don't use installbsd from OSF since it installs stuff as root
1665 # by default.
1666 for ac_prog in ginstall scoinst install; do
1667 for ac_exec_ext in '' $ac_executable_extensions; do
1668 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1669 if test $ac_prog = install &&
1670 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1671 # AIX install. It has an incompatible calling convention.
1673 elif test $ac_prog = install &&
1674 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1675 # program-specific install script used by HP pwplus--don't use.
1677 else
1678 rm -rf conftest.one conftest.two conftest.dir
1679 echo one > conftest.one
1680 echo two > conftest.two
1681 mkdir conftest.dir
1682 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
1683 test -s conftest.one && test -s conftest.two &&
1684 test -s conftest.dir/conftest.one &&
1685 test -s conftest.dir/conftest.two
1686 then
1687 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1688 break 3
1692 done
1693 done
1695 esac
1696 done
1698 rm -rf conftest.one conftest.two conftest.dir
1701 if test "${ac_cv_path_install+set}" = set; then
1702 INSTALL=$ac_cv_path_install
1703 else
1704 # As a last resort, use the slow shell script. Don't cache a
1705 # value for INSTALL within a source directory, because that will
1706 # break other packages using the cache if that directory is
1707 # removed, or if the value is a relative name.
1708 INSTALL=$ac_install_sh
1711 echo "$as_me:$LINENO: result: $INSTALL" >&5
1712 echo "${ECHO_T}$INSTALL" >&6
1714 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1715 # It thinks the first close brace ends the variable substitution.
1716 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1718 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1720 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1722 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1723 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1724 # Just in case
1725 sleep 1
1726 echo timestamp > conftest.file
1727 # Do `set' in a subshell so we don't clobber the current shell's
1728 # arguments. Must try -L first in case configure is actually a
1729 # symlink; some systems play weird games with the mod time of symlinks
1730 # (eg FreeBSD returns the mod time of the symlink's containing
1731 # directory).
1732 if (
1733 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1734 if test "$*" = "X"; then
1735 # -L didn't work.
1736 set X `ls -t $srcdir/configure conftest.file`
1738 rm -f conftest.file
1739 if test "$*" != "X $srcdir/configure conftest.file" \
1740 && test "$*" != "X conftest.file $srcdir/configure"; then
1742 # If neither matched, then we have a broken ls. This can happen
1743 # if, for instance, CONFIG_SHELL is bash and it inherits a
1744 # broken ls alias from the environment. This has actually
1745 # happened. Such a system could not be considered "sane".
1746 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1747 alias in your environment" >&5
1748 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1749 alias in your environment" >&2;}
1750 { (exit 1); exit 1; }; }
1753 test "$2" = conftest.file
1755 then
1756 # Ok.
1758 else
1759 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1760 Check your system clock" >&5
1761 echo "$as_me: error: newly created file is older than distributed files!
1762 Check your system clock" >&2;}
1763 { (exit 1); exit 1; }; }
1765 echo "$as_me:$LINENO: result: yes" >&5
1766 echo "${ECHO_T}yes" >&6
1767 test "$program_prefix" != NONE &&
1768 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1769 # Use a double $ so make ignores it.
1770 test "$program_suffix" != NONE &&
1771 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1772 # Double any \ or $. echo might interpret backslashes.
1773 # By default was `s,x,x', remove it if useless.
1774 cat <<\_ACEOF >conftest.sed
1775 s/[\\$]/&&/g;s/;s,x,x,$//
1776 _ACEOF
1777 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1778 rm conftest.sed
1780 # expand $ac_aux_dir to an absolute path
1781 am_aux_dir=`cd $ac_aux_dir && pwd`
1783 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1784 # Use eval to expand $SHELL
1785 if eval "$MISSING --run true"; then
1786 am_missing_run="$MISSING --run "
1787 else
1788 am_missing_run=
1789 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1790 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1793 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1794 # We used to keeping the `.' as first argument, in order to
1795 # allow $(mkdir_p) to be used without argument. As in
1796 # $(mkdir_p) $(somedir)
1797 # where $(somedir) is conditionally defined. However this is wrong
1798 # for two reasons:
1799 # 1. if the package is installed by a user who cannot write `.'
1800 # make install will fail,
1801 # 2. the above comment should most certainly read
1802 # $(mkdir_p) $(DESTDIR)$(somedir)
1803 # so it does not work when $(somedir) is undefined and
1804 # $(DESTDIR) is not.
1805 # To support the latter case, we have to write
1806 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1807 # so the `.' trick is pointless.
1808 mkdir_p='mkdir -p --'
1809 else
1810 # On NextStep and OpenStep, the `mkdir' command does not
1811 # recognize any option. It will interpret all options as
1812 # directories to create, and then abort because `.' already
1813 # exists.
1814 for d in ./-p ./--version;
1816 test -d $d && rmdir $d
1817 done
1818 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1819 if test -f "$ac_aux_dir/mkinstalldirs"; then
1820 mkdir_p='$(mkinstalldirs)'
1821 else
1822 mkdir_p='$(install_sh) -d'
1826 for ac_prog in gawk mawk nawk awk
1828 # Extract the first word of "$ac_prog", so it can be a program name with args.
1829 set dummy $ac_prog; ac_word=$2
1830 echo "$as_me:$LINENO: checking for $ac_word" >&5
1831 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1832 if test "${ac_cv_prog_AWK+set}" = set; then
1833 echo $ECHO_N "(cached) $ECHO_C" >&6
1834 else
1835 if test -n "$AWK"; then
1836 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1837 else
1838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1839 for as_dir in $PATH
1841 IFS=$as_save_IFS
1842 test -z "$as_dir" && as_dir=.
1843 for ac_exec_ext in '' $ac_executable_extensions; do
1844 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1845 ac_cv_prog_AWK="$ac_prog"
1846 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1847 break 2
1849 done
1850 done
1854 AWK=$ac_cv_prog_AWK
1855 if test -n "$AWK"; then
1856 echo "$as_me:$LINENO: result: $AWK" >&5
1857 echo "${ECHO_T}$AWK" >&6
1858 else
1859 echo "$as_me:$LINENO: result: no" >&5
1860 echo "${ECHO_T}no" >&6
1863 test -n "$AWK" && break
1864 done
1866 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1867 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1868 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1869 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1870 echo $ECHO_N "(cached) $ECHO_C" >&6
1871 else
1872 cat >conftest.make <<\_ACEOF
1873 all:
1874 @echo 'ac_maketemp="$(MAKE)"'
1875 _ACEOF
1876 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1877 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1878 if test -n "$ac_maketemp"; then
1879 eval ac_cv_prog_make_${ac_make}_set=yes
1880 else
1881 eval ac_cv_prog_make_${ac_make}_set=no
1883 rm -f conftest.make
1885 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1886 echo "$as_me:$LINENO: result: yes" >&5
1887 echo "${ECHO_T}yes" >&6
1888 SET_MAKE=
1889 else
1890 echo "$as_me:$LINENO: result: no" >&5
1891 echo "${ECHO_T}no" >&6
1892 SET_MAKE="MAKE=${MAKE-make}"
1895 rm -rf .tst 2>/dev/null
1896 mkdir .tst 2>/dev/null
1897 if test -d .tst; then
1898 am__leading_dot=.
1899 else
1900 am__leading_dot=_
1902 rmdir .tst 2>/dev/null
1904 # test to see if srcdir already configured
1905 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1906 test -f $srcdir/config.status; then
1907 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1908 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1909 { (exit 1); exit 1; }; }
1912 # test whether we have cygpath
1913 if test -z "$CYGPATH_W"; then
1914 if (cygpath --version) >/dev/null 2>/dev/null; then
1915 CYGPATH_W='cygpath -w'
1916 else
1917 CYGPATH_W=echo
1922 # Define the identity of the package.
1923 PACKAGE=zlib
1924 VERSION=1.1.4
1927 cat >>confdefs.h <<_ACEOF
1928 #define PACKAGE "$PACKAGE"
1929 _ACEOF
1932 cat >>confdefs.h <<_ACEOF
1933 #define VERSION "$VERSION"
1934 _ACEOF
1936 # Some tools Automake needs.
1938 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1941 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1944 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1947 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1950 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1952 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1954 # Installed binaries are usually stripped using `strip' when the user
1955 # run `make install-strip'. However `strip' might not be the right
1956 # tool to use in cross-compilation environments, therefore Automake
1957 # will honor the `STRIP' environment variable to overrule this program.
1958 if test "$cross_compiling" != no; then
1959 if test -n "$ac_tool_prefix"; then
1960 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1961 set dummy ${ac_tool_prefix}strip; ac_word=$2
1962 echo "$as_me:$LINENO: checking for $ac_word" >&5
1963 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1964 if test "${ac_cv_prog_STRIP+set}" = set; then
1965 echo $ECHO_N "(cached) $ECHO_C" >&6
1966 else
1967 if test -n "$STRIP"; then
1968 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1969 else
1970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1971 for as_dir in $PATH
1973 IFS=$as_save_IFS
1974 test -z "$as_dir" && as_dir=.
1975 for ac_exec_ext in '' $ac_executable_extensions; do
1976 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1977 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1978 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1979 break 2
1981 done
1982 done
1986 STRIP=$ac_cv_prog_STRIP
1987 if test -n "$STRIP"; then
1988 echo "$as_me:$LINENO: result: $STRIP" >&5
1989 echo "${ECHO_T}$STRIP" >&6
1990 else
1991 echo "$as_me:$LINENO: result: no" >&5
1992 echo "${ECHO_T}no" >&6
1996 if test -z "$ac_cv_prog_STRIP"; then
1997 ac_ct_STRIP=$STRIP
1998 # Extract the first word of "strip", so it can be a program name with args.
1999 set dummy strip; ac_word=$2
2000 echo "$as_me:$LINENO: checking for $ac_word" >&5
2001 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2002 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2003 echo $ECHO_N "(cached) $ECHO_C" >&6
2004 else
2005 if test -n "$ac_ct_STRIP"; then
2006 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2007 else
2008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2009 for as_dir in $PATH
2011 IFS=$as_save_IFS
2012 test -z "$as_dir" && as_dir=.
2013 for ac_exec_ext in '' $ac_executable_extensions; do
2014 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2015 ac_cv_prog_ac_ct_STRIP="strip"
2016 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2017 break 2
2019 done
2020 done
2022 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2025 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2026 if test -n "$ac_ct_STRIP"; then
2027 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2028 echo "${ECHO_T}$ac_ct_STRIP" >&6
2029 else
2030 echo "$as_me:$LINENO: result: no" >&5
2031 echo "${ECHO_T}no" >&6
2034 STRIP=$ac_ct_STRIP
2035 else
2036 STRIP="$ac_cv_prog_STRIP"
2040 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2042 # We need awk for the "check" target. The system "awk" is bad on
2043 # some platforms.
2044 # Always define AMTAR for backward compatibility.
2046 AMTAR=${AMTAR-"${am_missing_run}tar"}
2048 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2055 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2056 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
2057 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
2058 if test "${enable_maintainer_mode+set}" = set; then
2059 enableval="$enable_maintainer_mode"
2060 USE_MAINTAINER_MODE=$enableval
2061 else
2062 USE_MAINTAINER_MODE=no
2064 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2065 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
2068 if test $USE_MAINTAINER_MODE = yes; then
2069 MAINTAINER_MODE_TRUE=
2070 MAINTAINER_MODE_FALSE='#'
2071 else
2072 MAINTAINER_MODE_TRUE='#'
2073 MAINTAINER_MODE_FALSE=
2076 MAINT=$MAINTAINER_MODE_TRUE
2081 # Check whether --with-target-subdir or --without-target-subdir was given.
2082 if test "${with_target_subdir+set}" = set; then
2083 withval="$with_target_subdir"
2087 if test -z "$with_target_subdir" || test "$with_target_subdir" = "."; then
2088 COMPPATH=.
2089 else
2090 COMPPATH=..
2095 # Check whether --with-cross-host or --without-cross-host was given.
2096 if test "${with_cross_host+set}" = set; then
2097 withval="$with_cross_host"
2101 # Check whether --enable-multilib or --disable-multilib was given.
2102 if test "${enable_multilib+set}" = set; then
2103 enableval="$enable_multilib"
2104 case "${enableval}" in
2105 yes) multilib=yes ;;
2106 no) multilib=no ;;
2107 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for multilib option" >&5
2108 echo "$as_me: error: bad value ${enableval} for multilib option" >&2;}
2109 { (exit 1); exit 1; }; } ;;
2110 esac
2111 else
2112 test -z "$with_target_subdir" && multilib=no || multilib=yes
2115 # Check whether --with-system-zlib or --without-system-zlib was given.
2116 if test "${with_system_zlib+set}" = set; then
2117 withval="$with_system_zlib"
2121 # Make sure we don't test executables when making cross-tools.
2124 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
2125 # We must force CC to /not/ be precious variables; otherwise
2126 # the wrong, non-multilib-adjusted value will be used in multilibs.
2127 # As a side effect, we have to subst CFLAGS ourselves.
2131 ac_ext=c
2132 ac_cpp='$CPP $CPPFLAGS'
2133 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2134 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2135 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2136 if test -n "$ac_tool_prefix"; then
2137 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2138 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2139 echo "$as_me:$LINENO: checking for $ac_word" >&5
2140 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2141 if test "${ac_cv_prog_CC+set}" = set; then
2142 echo $ECHO_N "(cached) $ECHO_C" >&6
2143 else
2144 if test -n "$CC"; then
2145 ac_cv_prog_CC="$CC" # Let the user override the test.
2146 else
2147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2148 for as_dir in $PATH
2150 IFS=$as_save_IFS
2151 test -z "$as_dir" && as_dir=.
2152 for ac_exec_ext in '' $ac_executable_extensions; do
2153 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2154 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2155 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2156 break 2
2158 done
2159 done
2163 CC=$ac_cv_prog_CC
2164 if test -n "$CC"; then
2165 echo "$as_me:$LINENO: result: $CC" >&5
2166 echo "${ECHO_T}$CC" >&6
2167 else
2168 echo "$as_me:$LINENO: result: no" >&5
2169 echo "${ECHO_T}no" >&6
2173 if test -z "$ac_cv_prog_CC"; then
2174 ac_ct_CC=$CC
2175 # Extract the first word of "gcc", so it can be a program name with args.
2176 set dummy gcc; ac_word=$2
2177 echo "$as_me:$LINENO: checking for $ac_word" >&5
2178 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2179 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2180 echo $ECHO_N "(cached) $ECHO_C" >&6
2181 else
2182 if test -n "$ac_ct_CC"; then
2183 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2184 else
2185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2186 for as_dir in $PATH
2188 IFS=$as_save_IFS
2189 test -z "$as_dir" && as_dir=.
2190 for ac_exec_ext in '' $ac_executable_extensions; do
2191 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2192 ac_cv_prog_ac_ct_CC="gcc"
2193 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2194 break 2
2196 done
2197 done
2201 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2202 if test -n "$ac_ct_CC"; then
2203 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2204 echo "${ECHO_T}$ac_ct_CC" >&6
2205 else
2206 echo "$as_me:$LINENO: result: no" >&5
2207 echo "${ECHO_T}no" >&6
2210 CC=$ac_ct_CC
2211 else
2212 CC="$ac_cv_prog_CC"
2215 if test -z "$CC"; then
2216 if test -n "$ac_tool_prefix"; then
2217 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2218 set dummy ${ac_tool_prefix}cc; ac_word=$2
2219 echo "$as_me:$LINENO: checking for $ac_word" >&5
2220 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2221 if test "${ac_cv_prog_CC+set}" = set; then
2222 echo $ECHO_N "(cached) $ECHO_C" >&6
2223 else
2224 if test -n "$CC"; then
2225 ac_cv_prog_CC="$CC" # Let the user override the test.
2226 else
2227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2228 for as_dir in $PATH
2230 IFS=$as_save_IFS
2231 test -z "$as_dir" && as_dir=.
2232 for ac_exec_ext in '' $ac_executable_extensions; do
2233 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2234 ac_cv_prog_CC="${ac_tool_prefix}cc"
2235 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2236 break 2
2238 done
2239 done
2243 CC=$ac_cv_prog_CC
2244 if test -n "$CC"; then
2245 echo "$as_me:$LINENO: result: $CC" >&5
2246 echo "${ECHO_T}$CC" >&6
2247 else
2248 echo "$as_me:$LINENO: result: no" >&5
2249 echo "${ECHO_T}no" >&6
2253 if test -z "$ac_cv_prog_CC"; then
2254 ac_ct_CC=$CC
2255 # Extract the first word of "cc", so it can be a program name with args.
2256 set dummy cc; ac_word=$2
2257 echo "$as_me:$LINENO: checking for $ac_word" >&5
2258 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2259 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2260 echo $ECHO_N "(cached) $ECHO_C" >&6
2261 else
2262 if test -n "$ac_ct_CC"; then
2263 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2264 else
2265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2266 for as_dir in $PATH
2268 IFS=$as_save_IFS
2269 test -z "$as_dir" && as_dir=.
2270 for ac_exec_ext in '' $ac_executable_extensions; do
2271 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2272 ac_cv_prog_ac_ct_CC="cc"
2273 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2274 break 2
2276 done
2277 done
2281 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2282 if test -n "$ac_ct_CC"; then
2283 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2284 echo "${ECHO_T}$ac_ct_CC" >&6
2285 else
2286 echo "$as_me:$LINENO: result: no" >&5
2287 echo "${ECHO_T}no" >&6
2290 CC=$ac_ct_CC
2291 else
2292 CC="$ac_cv_prog_CC"
2296 if test -z "$CC"; then
2297 # Extract the first word of "cc", so it can be a program name with args.
2298 set dummy cc; ac_word=$2
2299 echo "$as_me:$LINENO: checking for $ac_word" >&5
2300 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2301 if test "${ac_cv_prog_CC+set}" = set; then
2302 echo $ECHO_N "(cached) $ECHO_C" >&6
2303 else
2304 if test -n "$CC"; then
2305 ac_cv_prog_CC="$CC" # Let the user override the test.
2306 else
2307 ac_prog_rejected=no
2308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2309 for as_dir in $PATH
2311 IFS=$as_save_IFS
2312 test -z "$as_dir" && as_dir=.
2313 for ac_exec_ext in '' $ac_executable_extensions; do
2314 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2315 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2316 ac_prog_rejected=yes
2317 continue
2319 ac_cv_prog_CC="cc"
2320 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2321 break 2
2323 done
2324 done
2326 if test $ac_prog_rejected = yes; then
2327 # We found a bogon in the path, so make sure we never use it.
2328 set dummy $ac_cv_prog_CC
2329 shift
2330 if test $# != 0; then
2331 # We chose a different compiler from the bogus one.
2332 # However, it has the same basename, so the bogon will be chosen
2333 # first if we set CC to just the basename; use the full file name.
2334 shift
2335 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2340 CC=$ac_cv_prog_CC
2341 if test -n "$CC"; then
2342 echo "$as_me:$LINENO: result: $CC" >&5
2343 echo "${ECHO_T}$CC" >&6
2344 else
2345 echo "$as_me:$LINENO: result: no" >&5
2346 echo "${ECHO_T}no" >&6
2350 if test -z "$CC"; then
2351 if test -n "$ac_tool_prefix"; then
2352 for ac_prog in cl
2354 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2355 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2356 echo "$as_me:$LINENO: checking for $ac_word" >&5
2357 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2358 if test "${ac_cv_prog_CC+set}" = set; then
2359 echo $ECHO_N "(cached) $ECHO_C" >&6
2360 else
2361 if test -n "$CC"; then
2362 ac_cv_prog_CC="$CC" # Let the user override the test.
2363 else
2364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2365 for as_dir in $PATH
2367 IFS=$as_save_IFS
2368 test -z "$as_dir" && as_dir=.
2369 for ac_exec_ext in '' $ac_executable_extensions; do
2370 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2371 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2372 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2373 break 2
2375 done
2376 done
2380 CC=$ac_cv_prog_CC
2381 if test -n "$CC"; then
2382 echo "$as_me:$LINENO: result: $CC" >&5
2383 echo "${ECHO_T}$CC" >&6
2384 else
2385 echo "$as_me:$LINENO: result: no" >&5
2386 echo "${ECHO_T}no" >&6
2389 test -n "$CC" && break
2390 done
2392 if test -z "$CC"; then
2393 ac_ct_CC=$CC
2394 for ac_prog in cl
2396 # Extract the first word of "$ac_prog", so it can be a program name with args.
2397 set dummy $ac_prog; ac_word=$2
2398 echo "$as_me:$LINENO: checking for $ac_word" >&5
2399 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2400 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2401 echo $ECHO_N "(cached) $ECHO_C" >&6
2402 else
2403 if test -n "$ac_ct_CC"; then
2404 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2405 else
2406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2407 for as_dir in $PATH
2409 IFS=$as_save_IFS
2410 test -z "$as_dir" && as_dir=.
2411 for ac_exec_ext in '' $ac_executable_extensions; do
2412 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2413 ac_cv_prog_ac_ct_CC="$ac_prog"
2414 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2415 break 2
2417 done
2418 done
2422 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2423 if test -n "$ac_ct_CC"; then
2424 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2425 echo "${ECHO_T}$ac_ct_CC" >&6
2426 else
2427 echo "$as_me:$LINENO: result: no" >&5
2428 echo "${ECHO_T}no" >&6
2431 test -n "$ac_ct_CC" && break
2432 done
2434 CC=$ac_ct_CC
2440 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2441 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2442 { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2443 See \`config.log' for more details." >&5
2444 echo "$as_me: error: no acceptable C compiler found in \$PATH
2445 See \`config.log' for more details." >&2;}
2446 { (exit 1); exit 1; }; }; }
2448 # Provide some information about the compiler.
2449 echo "$as_me:$LINENO:" \
2450 "checking for C compiler version" >&5
2451 ac_compiler=`set X $ac_compile; echo $2`
2452 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2453 (eval $ac_compiler --version </dev/null >&5) 2>&5
2454 ac_status=$?
2455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2456 (exit $ac_status); }
2457 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2458 (eval $ac_compiler -v </dev/null >&5) 2>&5
2459 ac_status=$?
2460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2461 (exit $ac_status); }
2462 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2463 (eval $ac_compiler -V </dev/null >&5) 2>&5
2464 ac_status=$?
2465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2466 (exit $ac_status); }
2468 cat >conftest.$ac_ext <<_ACEOF
2469 /* confdefs.h. */
2470 _ACEOF
2471 cat confdefs.h >>conftest.$ac_ext
2472 cat >>conftest.$ac_ext <<_ACEOF
2473 /* end confdefs.h. */
2476 main ()
2480 return 0;
2482 _ACEOF
2483 # FIXME: Cleanup?
2484 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2485 (eval $ac_link) 2>&5
2486 ac_status=$?
2487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2488 (exit $ac_status); }; then
2489 gcc_no_link=no
2490 else
2491 gcc_no_link=yes
2494 if test x$gcc_no_link = xyes; then
2495 # Setting cross_compile will disable run tests; it will
2496 # also disable AC_CHECK_FILE but that's generally
2497 # correct if we can't link.
2498 cross_compiling=yes
2499 EXEEXT=
2500 else
2501 cat >conftest.$ac_ext <<_ACEOF
2502 /* confdefs.h. */
2503 _ACEOF
2504 cat confdefs.h >>conftest.$ac_ext
2505 cat >>conftest.$ac_ext <<_ACEOF
2506 /* end confdefs.h. */
2509 main ()
2513 return 0;
2515 _ACEOF
2516 ac_clean_files_save=$ac_clean_files
2517 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2518 # Try to create an executable without -o first, disregard a.out.
2519 # It will help us diagnose broken compilers, and finding out an intuition
2520 # of exeext.
2521 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2522 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2523 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2524 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2525 (eval $ac_link_default) 2>&5
2526 ac_status=$?
2527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2528 (exit $ac_status); }; then
2529 # Find the output, starting from the most likely. This scheme is
2530 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2531 # resort.
2533 # Be careful to initialize this variable, since it used to be cached.
2534 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2535 ac_cv_exeext=
2536 # b.out is created by i960 compilers.
2537 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2539 test -f "$ac_file" || continue
2540 case $ac_file in
2541 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2543 conftest.$ac_ext )
2544 # This is the source file.
2546 [ab].out )
2547 # We found the default executable, but exeext='' is most
2548 # certainly right.
2549 break;;
2550 *.* )
2551 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2552 # FIXME: I believe we export ac_cv_exeext for Libtool,
2553 # but it would be cool to find out if it's true. Does anybody
2554 # maintain Libtool? --akim.
2555 export ac_cv_exeext
2556 break;;
2558 break;;
2559 esac
2560 done
2561 else
2562 echo "$as_me: failed program was:" >&5
2563 sed 's/^/| /' conftest.$ac_ext >&5
2565 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2566 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2567 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2568 See \`config.log' for more details." >&5
2569 echo "$as_me: error: C compiler cannot create executables
2570 See \`config.log' for more details." >&2;}
2571 { (exit 77); exit 77; }; }; }
2574 ac_exeext=$ac_cv_exeext
2575 echo "$as_me:$LINENO: result: $ac_file" >&5
2576 echo "${ECHO_T}$ac_file" >&6
2578 # Check the compiler produces executables we can run. If not, either
2579 # the compiler is broken, or we cross compile.
2580 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2581 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2582 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2583 # If not cross compiling, check that we can run a simple program.
2584 if test "$cross_compiling" != yes; then
2585 if { ac_try='./$ac_file'
2586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2587 (eval $ac_try) 2>&5
2588 ac_status=$?
2589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2590 (exit $ac_status); }; }; then
2591 cross_compiling=no
2592 else
2593 if test "$cross_compiling" = maybe; then
2594 cross_compiling=yes
2595 else
2596 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2597 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2598 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2599 If you meant to cross compile, use \`--host'.
2600 See \`config.log' for more details." >&5
2601 echo "$as_me: error: cannot run C compiled programs.
2602 If you meant to cross compile, use \`--host'.
2603 See \`config.log' for more details." >&2;}
2604 { (exit 1); exit 1; }; }; }
2608 echo "$as_me:$LINENO: result: yes" >&5
2609 echo "${ECHO_T}yes" >&6
2611 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2612 ac_clean_files=$ac_clean_files_save
2613 # Check the compiler produces executables we can run. If not, either
2614 # the compiler is broken, or we cross compile.
2615 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2616 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2617 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2618 echo "${ECHO_T}$cross_compiling" >&6
2620 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2621 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2623 (eval $ac_link) 2>&5
2624 ac_status=$?
2625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2626 (exit $ac_status); }; then
2627 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2628 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2629 # work properly (i.e., refer to `conftest.exe'), while it won't with
2630 # `rm'.
2631 for ac_file in conftest.exe conftest conftest.*; do
2632 test -f "$ac_file" || continue
2633 case $ac_file in
2634 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2635 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2636 export ac_cv_exeext
2637 break;;
2638 * ) break;;
2639 esac
2640 done
2641 else
2642 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2643 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2644 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2645 See \`config.log' for more details." >&5
2646 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2647 See \`config.log' for more details." >&2;}
2648 { (exit 1); exit 1; }; }; }
2651 rm -f conftest$ac_cv_exeext
2652 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2653 echo "${ECHO_T}$ac_cv_exeext" >&6
2655 rm -f conftest.$ac_ext
2656 EXEEXT=$ac_cv_exeext
2657 ac_exeext=$EXEEXT
2659 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2660 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2661 if test "${ac_cv_objext+set}" = set; then
2662 echo $ECHO_N "(cached) $ECHO_C" >&6
2663 else
2664 cat >conftest.$ac_ext <<_ACEOF
2665 /* confdefs.h. */
2666 _ACEOF
2667 cat confdefs.h >>conftest.$ac_ext
2668 cat >>conftest.$ac_ext <<_ACEOF
2669 /* end confdefs.h. */
2672 main ()
2676 return 0;
2678 _ACEOF
2679 rm -f conftest.o conftest.obj
2680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2681 (eval $ac_compile) 2>&5
2682 ac_status=$?
2683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2684 (exit $ac_status); }; then
2685 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2686 case $ac_file in
2687 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2688 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2689 break;;
2690 esac
2691 done
2692 else
2693 echo "$as_me: failed program was:" >&5
2694 sed 's/^/| /' conftest.$ac_ext >&5
2696 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2697 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2698 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2699 See \`config.log' for more details." >&5
2700 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2701 See \`config.log' for more details." >&2;}
2702 { (exit 1); exit 1; }; }; }
2705 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2707 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2708 echo "${ECHO_T}$ac_cv_objext" >&6
2709 OBJEXT=$ac_cv_objext
2710 ac_objext=$OBJEXT
2711 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2712 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2713 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2714 echo $ECHO_N "(cached) $ECHO_C" >&6
2715 else
2716 cat >conftest.$ac_ext <<_ACEOF
2717 /* confdefs.h. */
2718 _ACEOF
2719 cat confdefs.h >>conftest.$ac_ext
2720 cat >>conftest.$ac_ext <<_ACEOF
2721 /* end confdefs.h. */
2724 main ()
2726 #ifndef __GNUC__
2727 choke me
2728 #endif
2731 return 0;
2733 _ACEOF
2734 rm -f conftest.$ac_objext
2735 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2736 (eval $ac_compile) 2>conftest.er1
2737 ac_status=$?
2738 grep -v '^ *+' conftest.er1 >conftest.err
2739 rm -f conftest.er1
2740 cat conftest.err >&5
2741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2742 (exit $ac_status); } &&
2743 { ac_try='test -z "$ac_c_werror_flag"
2744 || test ! -s conftest.err'
2745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2746 (eval $ac_try) 2>&5
2747 ac_status=$?
2748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2749 (exit $ac_status); }; } &&
2750 { ac_try='test -s conftest.$ac_objext'
2751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2752 (eval $ac_try) 2>&5
2753 ac_status=$?
2754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2755 (exit $ac_status); }; }; then
2756 ac_compiler_gnu=yes
2757 else
2758 echo "$as_me: failed program was:" >&5
2759 sed 's/^/| /' conftest.$ac_ext >&5
2761 ac_compiler_gnu=no
2763 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2764 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2767 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2768 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2769 GCC=`test $ac_compiler_gnu = yes && echo yes`
2770 ac_test_CFLAGS=${CFLAGS+set}
2771 ac_save_CFLAGS=$CFLAGS
2772 CFLAGS="-g"
2773 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2774 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2775 if test "${ac_cv_prog_cc_g+set}" = set; then
2776 echo $ECHO_N "(cached) $ECHO_C" >&6
2777 else
2778 cat >conftest.$ac_ext <<_ACEOF
2779 /* confdefs.h. */
2780 _ACEOF
2781 cat confdefs.h >>conftest.$ac_ext
2782 cat >>conftest.$ac_ext <<_ACEOF
2783 /* end confdefs.h. */
2786 main ()
2790 return 0;
2792 _ACEOF
2793 rm -f conftest.$ac_objext
2794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2795 (eval $ac_compile) 2>conftest.er1
2796 ac_status=$?
2797 grep -v '^ *+' conftest.er1 >conftest.err
2798 rm -f conftest.er1
2799 cat conftest.err >&5
2800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2801 (exit $ac_status); } &&
2802 { ac_try='test -z "$ac_c_werror_flag"
2803 || test ! -s conftest.err'
2804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2805 (eval $ac_try) 2>&5
2806 ac_status=$?
2807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2808 (exit $ac_status); }; } &&
2809 { ac_try='test -s conftest.$ac_objext'
2810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2811 (eval $ac_try) 2>&5
2812 ac_status=$?
2813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2814 (exit $ac_status); }; }; then
2815 ac_cv_prog_cc_g=yes
2816 else
2817 echo "$as_me: failed program was:" >&5
2818 sed 's/^/| /' conftest.$ac_ext >&5
2820 ac_cv_prog_cc_g=no
2822 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2824 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2825 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2826 if test "$ac_test_CFLAGS" = set; then
2827 CFLAGS=$ac_save_CFLAGS
2828 elif test $ac_cv_prog_cc_g = yes; then
2829 if test "$GCC" = yes; then
2830 CFLAGS="-g -O2"
2831 else
2832 CFLAGS="-g"
2834 else
2835 if test "$GCC" = yes; then
2836 CFLAGS="-O2"
2837 else
2838 CFLAGS=
2841 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2842 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2843 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2844 echo $ECHO_N "(cached) $ECHO_C" >&6
2845 else
2846 ac_cv_prog_cc_stdc=no
2847 ac_save_CC=$CC
2848 cat >conftest.$ac_ext <<_ACEOF
2849 /* confdefs.h. */
2850 _ACEOF
2851 cat confdefs.h >>conftest.$ac_ext
2852 cat >>conftest.$ac_ext <<_ACEOF
2853 /* end confdefs.h. */
2854 #include <stdarg.h>
2855 #include <stdio.h>
2856 #include <sys/types.h>
2857 #include <sys/stat.h>
2858 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2859 struct buf { int x; };
2860 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2861 static char *e (p, i)
2862 char **p;
2863 int i;
2865 return p[i];
2867 static char *f (char * (*g) (char **, int), char **p, ...)
2869 char *s;
2870 va_list v;
2871 va_start (v,p);
2872 s = g (p, va_arg (v,int));
2873 va_end (v);
2874 return s;
2877 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2878 function prototypes and stuff, but not '\xHH' hex character constants.
2879 These don't provoke an error unfortunately, instead are silently treated
2880 as 'x'. The following induces an error, until -std1 is added to get
2881 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2882 array size at least. It's necessary to write '\x00'==0 to get something
2883 that's true only with -std1. */
2884 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2886 int test (int i, double x);
2887 struct s1 {int (*f) (int a);};
2888 struct s2 {int (*f) (double a);};
2889 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2890 int argc;
2891 char **argv;
2893 main ()
2895 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2897 return 0;
2899 _ACEOF
2900 # Don't try gcc -ansi; that turns off useful extensions and
2901 # breaks some systems' header files.
2902 # AIX -qlanglvl=ansi
2903 # Ultrix and OSF/1 -std1
2904 # HP-UX 10.20 and later -Ae
2905 # HP-UX older versions -Aa -D_HPUX_SOURCE
2906 # SVR4 -Xc -D__EXTENSIONS__
2907 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2909 CC="$ac_save_CC $ac_arg"
2910 rm -f conftest.$ac_objext
2911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2912 (eval $ac_compile) 2>conftest.er1
2913 ac_status=$?
2914 grep -v '^ *+' conftest.er1 >conftest.err
2915 rm -f conftest.er1
2916 cat conftest.err >&5
2917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2918 (exit $ac_status); } &&
2919 { ac_try='test -z "$ac_c_werror_flag"
2920 || test ! -s conftest.err'
2921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2922 (eval $ac_try) 2>&5
2923 ac_status=$?
2924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2925 (exit $ac_status); }; } &&
2926 { ac_try='test -s conftest.$ac_objext'
2927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2928 (eval $ac_try) 2>&5
2929 ac_status=$?
2930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2931 (exit $ac_status); }; }; then
2932 ac_cv_prog_cc_stdc=$ac_arg
2933 break
2934 else
2935 echo "$as_me: failed program was:" >&5
2936 sed 's/^/| /' conftest.$ac_ext >&5
2939 rm -f conftest.err conftest.$ac_objext
2940 done
2941 rm -f conftest.$ac_ext conftest.$ac_objext
2942 CC=$ac_save_CC
2946 case "x$ac_cv_prog_cc_stdc" in
2947 x|xno)
2948 echo "$as_me:$LINENO: result: none needed" >&5
2949 echo "${ECHO_T}none needed" >&6 ;;
2951 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2952 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2953 CC="$CC $ac_cv_prog_cc_stdc" ;;
2954 esac
2956 # Some people use a C++ compiler to compile C. Since we use `exit',
2957 # in C++ we need to declare it. In case someone uses the same compiler
2958 # for both compiling C and C++ we need to have the C++ compiler decide
2959 # the declaration of exit, since it's the most demanding environment.
2960 cat >conftest.$ac_ext <<_ACEOF
2961 #ifndef __cplusplus
2962 choke me
2963 #endif
2964 _ACEOF
2965 rm -f conftest.$ac_objext
2966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2967 (eval $ac_compile) 2>conftest.er1
2968 ac_status=$?
2969 grep -v '^ *+' conftest.er1 >conftest.err
2970 rm -f conftest.er1
2971 cat conftest.err >&5
2972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2973 (exit $ac_status); } &&
2974 { ac_try='test -z "$ac_c_werror_flag"
2975 || test ! -s conftest.err'
2976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2977 (eval $ac_try) 2>&5
2978 ac_status=$?
2979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2980 (exit $ac_status); }; } &&
2981 { ac_try='test -s conftest.$ac_objext'
2982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2983 (eval $ac_try) 2>&5
2984 ac_status=$?
2985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2986 (exit $ac_status); }; }; then
2987 for ac_declaration in \
2988 '' \
2989 'extern "C" void std::exit (int) throw (); using std::exit;' \
2990 'extern "C" void std::exit (int); using std::exit;' \
2991 'extern "C" void exit (int) throw ();' \
2992 'extern "C" void exit (int);' \
2993 'void exit (int);'
2995 cat >conftest.$ac_ext <<_ACEOF
2996 /* confdefs.h. */
2997 _ACEOF
2998 cat confdefs.h >>conftest.$ac_ext
2999 cat >>conftest.$ac_ext <<_ACEOF
3000 /* end confdefs.h. */
3001 $ac_declaration
3002 #include <stdlib.h>
3004 main ()
3006 exit (42);
3008 return 0;
3010 _ACEOF
3011 rm -f conftest.$ac_objext
3012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3013 (eval $ac_compile) 2>conftest.er1
3014 ac_status=$?
3015 grep -v '^ *+' conftest.er1 >conftest.err
3016 rm -f conftest.er1
3017 cat conftest.err >&5
3018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3019 (exit $ac_status); } &&
3020 { ac_try='test -z "$ac_c_werror_flag"
3021 || test ! -s conftest.err'
3022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3023 (eval $ac_try) 2>&5
3024 ac_status=$?
3025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3026 (exit $ac_status); }; } &&
3027 { ac_try='test -s conftest.$ac_objext'
3028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3029 (eval $ac_try) 2>&5
3030 ac_status=$?
3031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3032 (exit $ac_status); }; }; then
3034 else
3035 echo "$as_me: failed program was:" >&5
3036 sed 's/^/| /' conftest.$ac_ext >&5
3038 continue
3040 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3041 cat >conftest.$ac_ext <<_ACEOF
3042 /* confdefs.h. */
3043 _ACEOF
3044 cat confdefs.h >>conftest.$ac_ext
3045 cat >>conftest.$ac_ext <<_ACEOF
3046 /* end confdefs.h. */
3047 $ac_declaration
3049 main ()
3051 exit (42);
3053 return 0;
3055 _ACEOF
3056 rm -f conftest.$ac_objext
3057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3058 (eval $ac_compile) 2>conftest.er1
3059 ac_status=$?
3060 grep -v '^ *+' conftest.er1 >conftest.err
3061 rm -f conftest.er1
3062 cat conftest.err >&5
3063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3064 (exit $ac_status); } &&
3065 { ac_try='test -z "$ac_c_werror_flag"
3066 || test ! -s conftest.err'
3067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3068 (eval $ac_try) 2>&5
3069 ac_status=$?
3070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3071 (exit $ac_status); }; } &&
3072 { ac_try='test -s conftest.$ac_objext'
3073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3074 (eval $ac_try) 2>&5
3075 ac_status=$?
3076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3077 (exit $ac_status); }; }; then
3078 break
3079 else
3080 echo "$as_me: failed program was:" >&5
3081 sed 's/^/| /' conftest.$ac_ext >&5
3084 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3085 done
3086 rm -f conftest*
3087 if test -n "$ac_declaration"; then
3088 echo '#ifdef __cplusplus' >>confdefs.h
3089 echo $ac_declaration >>confdefs.h
3090 echo '#endif' >>confdefs.h
3093 else
3094 echo "$as_me: failed program was:" >&5
3095 sed 's/^/| /' conftest.$ac_ext >&5
3098 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3099 ac_ext=c
3100 ac_cpp='$CPP $CPPFLAGS'
3101 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3102 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3103 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3104 DEPDIR="${am__leading_dot}deps"
3106 ac_config_commands="$ac_config_commands depfiles"
3109 am_make=${MAKE-make}
3110 cat > confinc << 'END'
3111 am__doit:
3112 @echo done
3113 .PHONY: am__doit
3115 # If we don't find an include directive, just comment out the code.
3116 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3117 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3118 am__include="#"
3119 am__quote=
3120 _am_result=none
3121 # First try GNU make style include.
3122 echo "include confinc" > confmf
3123 # We grep out `Entering directory' and `Leaving directory'
3124 # messages which can occur if `w' ends up in MAKEFLAGS.
3125 # In particular we don't look at `^make:' because GNU make might
3126 # be invoked under some other name (usually "gmake"), in which
3127 # case it prints its new name instead of `make'.
3128 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3129 am__include=include
3130 am__quote=
3131 _am_result=GNU
3133 # Now try BSD make style include.
3134 if test "$am__include" = "#"; then
3135 echo '.include "confinc"' > confmf
3136 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3137 am__include=.include
3138 am__quote="\""
3139 _am_result=BSD
3144 echo "$as_me:$LINENO: result: $_am_result" >&5
3145 echo "${ECHO_T}$_am_result" >&6
3146 rm -f confinc confmf
3148 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3149 if test "${enable_dependency_tracking+set}" = set; then
3150 enableval="$enable_dependency_tracking"
3153 if test "x$enable_dependency_tracking" != xno; then
3154 am_depcomp="$ac_aux_dir/depcomp"
3155 AMDEPBACKSLASH='\'
3159 if test "x$enable_dependency_tracking" != xno; then
3160 AMDEP_TRUE=
3161 AMDEP_FALSE='#'
3162 else
3163 AMDEP_TRUE='#'
3164 AMDEP_FALSE=
3170 depcc="$CC" am_compiler_list=
3172 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3173 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3174 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3175 echo $ECHO_N "(cached) $ECHO_C" >&6
3176 else
3177 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3178 # We make a subdir and do the tests there. Otherwise we can end up
3179 # making bogus files that we don't know about and never remove. For
3180 # instance it was reported that on HP-UX the gcc test will end up
3181 # making a dummy file named `D' -- because `-MD' means `put the output
3182 # in D'.
3183 mkdir conftest.dir
3184 # Copy depcomp to subdir because otherwise we won't find it if we're
3185 # using a relative directory.
3186 cp "$am_depcomp" conftest.dir
3187 cd conftest.dir
3188 # We will build objects and dependencies in a subdirectory because
3189 # it helps to detect inapplicable dependency modes. For instance
3190 # both Tru64's cc and ICC support -MD to output dependencies as a
3191 # side effect of compilation, but ICC will put the dependencies in
3192 # the current directory while Tru64 will put them in the object
3193 # directory.
3194 mkdir sub
3196 am_cv_CC_dependencies_compiler_type=none
3197 if test "$am_compiler_list" = ""; then
3198 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3200 for depmode in $am_compiler_list; do
3201 # Setup a source with many dependencies, because some compilers
3202 # like to wrap large dependency lists on column 80 (with \), and
3203 # we should not choose a depcomp mode which is confused by this.
3205 # We need to recreate these files for each test, as the compiler may
3206 # overwrite some of them when testing with obscure command lines.
3207 # This happens at least with the AIX C compiler.
3208 : > sub/conftest.c
3209 for i in 1 2 3 4 5 6; do
3210 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3211 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3212 # Solaris 8's {/usr,}/bin/sh.
3213 touch sub/conftst$i.h
3214 done
3215 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3217 case $depmode in
3218 nosideeffect)
3219 # after this tag, mechanisms are not by side-effect, so they'll
3220 # only be used when explicitly requested
3221 if test "x$enable_dependency_tracking" = xyes; then
3222 continue
3223 else
3224 break
3227 none) break ;;
3228 esac
3229 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3230 # mode. It turns out that the SunPro C++ compiler does not properly
3231 # handle `-M -o', and we need to detect this.
3232 if depmode=$depmode \
3233 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3234 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3235 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3236 >/dev/null 2>conftest.err &&
3237 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3238 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3239 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3240 # icc doesn't choke on unknown options, it will just issue warnings
3241 # or remarks (even with -Werror). So we grep stderr for any message
3242 # that says an option was ignored or not supported.
3243 # When given -MP, icc 7.0 and 7.1 complain thusly:
3244 # icc: Command line warning: ignoring option '-M'; no argument required
3245 # The diagnosis changed in icc 8.0:
3246 # icc: Command line remark: option '-MP' not supported
3247 if (grep 'ignoring option' conftest.err ||
3248 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3249 am_cv_CC_dependencies_compiler_type=$depmode
3250 break
3253 done
3255 cd ..
3256 rm -rf conftest.dir
3257 else
3258 am_cv_CC_dependencies_compiler_type=none
3262 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3263 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3264 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3269 test "x$enable_dependency_tracking" != xno \
3270 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3271 am__fastdepCC_TRUE=
3272 am__fastdepCC_FALSE='#'
3273 else
3274 am__fastdepCC_TRUE='#'
3275 am__fastdepCC_FALSE=
3283 case `pwd` in
3284 *\ * | *\ *)
3285 { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3286 echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3287 esac
3291 macro_version='2.2.6'
3292 macro_revision='1.3012'
3306 ltmain="$ac_aux_dir/ltmain.sh"
3308 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3309 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3310 if test "${lt_cv_path_SED+set}" = set; then
3311 echo $ECHO_N "(cached) $ECHO_C" >&6
3312 else
3313 # Loop through the user's path and test for sed and gsed.
3314 # Then use that list of sed's as ones to test for truncation.
3315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3316 for as_dir in $PATH
3318 IFS=$as_save_IFS
3319 test -z "$as_dir" && as_dir=.
3320 for lt_ac_prog in sed gsed; do
3321 for ac_exec_ext in '' $ac_executable_extensions; do
3322 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3323 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3325 done
3326 done
3327 done
3328 IFS=$as_save_IFS
3329 lt_ac_max=0
3330 lt_ac_count=0
3331 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3332 # along with /bin/sed that truncates output.
3333 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3334 test ! -f $lt_ac_sed && continue
3335 cat /dev/null > conftest.in
3336 lt_ac_count=0
3337 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3338 # Check for GNU sed and select it if it is found.
3339 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3340 lt_cv_path_SED=$lt_ac_sed
3341 break
3343 while true; do
3344 cat conftest.in conftest.in >conftest.tmp
3345 mv conftest.tmp conftest.in
3346 cp conftest.in conftest.nl
3347 echo >>conftest.nl
3348 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3349 cmp -s conftest.out conftest.nl || break
3350 # 10000 chars as input seems more than enough
3351 test $lt_ac_count -gt 10 && break
3352 lt_ac_count=`expr $lt_ac_count + 1`
3353 if test $lt_ac_count -gt $lt_ac_max; then
3354 lt_ac_max=$lt_ac_count
3355 lt_cv_path_SED=$lt_ac_sed
3357 done
3358 done
3362 SED=$lt_cv_path_SED
3364 echo "$as_me:$LINENO: result: $SED" >&5
3365 echo "${ECHO_T}$SED" >&6
3367 test -z "$SED" && SED=sed
3368 Xsed="$SED -e 1s/^X//"
3380 echo "$as_me:$LINENO: checking for egrep" >&5
3381 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3382 if test "${ac_cv_prog_egrep+set}" = set; then
3383 echo $ECHO_N "(cached) $ECHO_C" >&6
3384 else
3385 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3386 then ac_cv_prog_egrep='grep -E'
3387 else ac_cv_prog_egrep='egrep'
3390 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3391 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3392 EGREP=$ac_cv_prog_egrep
3395 echo "$as_me:$LINENO: checking for fgrep" >&5
3396 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
3397 if test "${ac_cv_prog_fgrep+set}" = set; then
3398 echo $ECHO_N "(cached) $ECHO_C" >&6
3399 else
3400 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
3401 then ac_cv_prog_fgrep='grep -F'
3402 else ac_cv_prog_fgrep='fgrep'
3405 echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
3406 echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
3407 FGREP=$ac_cv_prog_fgrep
3410 test -z "$GREP" && GREP=grep
3430 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3431 if test "${with_gnu_ld+set}" = set; then
3432 withval="$with_gnu_ld"
3433 test "$withval" = no || with_gnu_ld=yes
3434 else
3435 with_gnu_ld=no
3437 ac_prog=ld
3438 if test "$GCC" = yes; then
3439 # Check if gcc -print-prog-name=ld gives a path.
3440 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3441 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3442 case $host in
3443 *-*-mingw*)
3444 # gcc leaves a trailing carriage return which upsets mingw
3445 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3447 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3448 esac
3449 case $ac_prog in
3450 # Accept absolute paths.
3451 [\\/]* | ?:[\\/]*)
3452 re_direlt='/[^/][^/]*/\.\./'
3453 # Canonicalize the pathname of ld
3454 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3455 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3456 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3457 done
3458 test -z "$LD" && LD="$ac_prog"
3461 # If it fails, then pretend we aren't using GCC.
3462 ac_prog=ld
3465 # If it is relative, then search for the first ld in PATH.
3466 with_gnu_ld=unknown
3468 esac
3469 elif test "$with_gnu_ld" = yes; then
3470 echo "$as_me:$LINENO: checking for GNU ld" >&5
3471 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3472 else
3473 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3474 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3476 if test "${lt_cv_path_LD+set}" = set; then
3477 echo $ECHO_N "(cached) $ECHO_C" >&6
3478 else
3479 if test -z "$LD"; then
3480 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3481 for ac_dir in $PATH; do
3482 IFS="$lt_save_ifs"
3483 test -z "$ac_dir" && ac_dir=.
3484 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3485 lt_cv_path_LD="$ac_dir/$ac_prog"
3486 # Check to see if the program is GNU ld. I'd rather use --version,
3487 # but apparently some variants of GNU ld only accept -v.
3488 # Break only if it was the GNU/non-GNU ld that we prefer.
3489 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3490 *GNU* | *'with BFD'*)
3491 test "$with_gnu_ld" != no && break
3494 test "$with_gnu_ld" != yes && break
3496 esac
3498 done
3499 IFS="$lt_save_ifs"
3500 else
3501 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3505 LD="$lt_cv_path_LD"
3506 if test -n "$LD"; then
3507 echo "$as_me:$LINENO: result: $LD" >&5
3508 echo "${ECHO_T}$LD" >&6
3509 else
3510 echo "$as_me:$LINENO: result: no" >&5
3511 echo "${ECHO_T}no" >&6
3513 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3514 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3515 { (exit 1); exit 1; }; }
3516 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3517 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3518 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3519 echo $ECHO_N "(cached) $ECHO_C" >&6
3520 else
3521 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3522 case `$LD -v 2>&1 </dev/null` in
3523 *GNU* | *'with BFD'*)
3524 lt_cv_prog_gnu_ld=yes
3527 lt_cv_prog_gnu_ld=no
3529 esac
3531 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3532 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3533 with_gnu_ld=$lt_cv_prog_gnu_ld
3543 echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
3544 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
3545 if test "${lt_cv_path_NM+set}" = set; then
3546 echo $ECHO_N "(cached) $ECHO_C" >&6
3547 else
3548 if test -n "$NM"; then
3549 # Let the user override the test.
3550 lt_cv_path_NM="$NM"
3551 else
3552 lt_nm_to_check="${ac_tool_prefix}nm"
3553 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3554 lt_nm_to_check="$lt_nm_to_check nm"
3556 for lt_tmp_nm in $lt_nm_to_check; do
3557 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3558 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3559 IFS="$lt_save_ifs"
3560 test -z "$ac_dir" && ac_dir=.
3561 tmp_nm="$ac_dir/$lt_tmp_nm"
3562 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3563 # Check to see if the nm accepts a BSD-compat flag.
3564 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3565 # nm: unknown option "B" ignored
3566 # Tru64's nm complains that /dev/null is an invalid object file
3567 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3568 */dev/null* | *'Invalid file or object type'*)
3569 lt_cv_path_NM="$tmp_nm -B"
3570 break
3573 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3574 */dev/null*)
3575 lt_cv_path_NM="$tmp_nm -p"
3576 break
3579 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3580 continue # so that we can try to find one that supports BSD flags
3582 esac
3584 esac
3586 done
3587 IFS="$lt_save_ifs"
3588 done
3589 : ${lt_cv_path_NM=no}
3592 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3593 echo "${ECHO_T}$lt_cv_path_NM" >&6
3594 if test "$lt_cv_path_NM" != "no"; then
3595 NM="$lt_cv_path_NM"
3596 else
3597 # Didn't find any BSD compatible name lister, look for dumpbin.
3598 if test -n "$ac_tool_prefix"; then
3599 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3601 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3602 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3603 echo "$as_me:$LINENO: checking for $ac_word" >&5
3604 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3605 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
3606 echo $ECHO_N "(cached) $ECHO_C" >&6
3607 else
3608 if test -n "$DUMPBIN"; then
3609 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
3610 else
3611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3612 for as_dir in $PATH
3614 IFS=$as_save_IFS
3615 test -z "$as_dir" && as_dir=.
3616 for ac_exec_ext in '' $ac_executable_extensions; do
3617 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3618 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
3619 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3620 break 2
3622 done
3623 done
3627 DUMPBIN=$ac_cv_prog_DUMPBIN
3628 if test -n "$DUMPBIN"; then
3629 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
3630 echo "${ECHO_T}$DUMPBIN" >&6
3631 else
3632 echo "$as_me:$LINENO: result: no" >&5
3633 echo "${ECHO_T}no" >&6
3636 test -n "$DUMPBIN" && break
3637 done
3639 if test -z "$DUMPBIN"; then
3640 ac_ct_DUMPBIN=$DUMPBIN
3641 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3643 # Extract the first word of "$ac_prog", so it can be a program name with args.
3644 set dummy $ac_prog; ac_word=$2
3645 echo "$as_me:$LINENO: checking for $ac_word" >&5
3646 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3647 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
3648 echo $ECHO_N "(cached) $ECHO_C" >&6
3649 else
3650 if test -n "$ac_ct_DUMPBIN"; then
3651 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
3652 else
3653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3654 for as_dir in $PATH
3656 IFS=$as_save_IFS
3657 test -z "$as_dir" && as_dir=.
3658 for ac_exec_ext in '' $ac_executable_extensions; do
3659 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3660 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
3661 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3662 break 2
3664 done
3665 done
3669 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
3670 if test -n "$ac_ct_DUMPBIN"; then
3671 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
3672 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
3673 else
3674 echo "$as_me:$LINENO: result: no" >&5
3675 echo "${ECHO_T}no" >&6
3678 test -n "$ac_ct_DUMPBIN" && break
3679 done
3680 test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
3682 DUMPBIN=$ac_ct_DUMPBIN
3686 if test "$DUMPBIN" != ":"; then
3687 NM="$DUMPBIN"
3690 test -z "$NM" && NM=nm
3697 echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
3698 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
3699 if test "${lt_cv_nm_interface+set}" = set; then
3700 echo $ECHO_N "(cached) $ECHO_C" >&6
3701 else
3702 lt_cv_nm_interface="BSD nm"
3703 echo "int some_variable = 0;" > conftest.$ac_ext
3704 (eval echo "\"\$as_me:3704: $ac_compile\"" >&5)
3705 (eval "$ac_compile" 2>conftest.err)
3706 cat conftest.err >&5
3707 (eval echo "\"\$as_me:3707: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
3708 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3709 cat conftest.err >&5
3710 (eval echo "\"\$as_me:3710: output\"" >&5)
3711 cat conftest.out >&5
3712 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3713 lt_cv_nm_interface="MS dumpbin"
3715 rm -f conftest*
3717 echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
3718 echo "${ECHO_T}$lt_cv_nm_interface" >&6
3720 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3721 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3722 LN_S=$as_ln_s
3723 if test "$LN_S" = "ln -s"; then
3724 echo "$as_me:$LINENO: result: yes" >&5
3725 echo "${ECHO_T}yes" >&6
3726 else
3727 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3728 echo "${ECHO_T}no, using $LN_S" >&6
3731 # find the maximum length of command line arguments
3732 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
3733 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
3734 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
3735 echo $ECHO_N "(cached) $ECHO_C" >&6
3736 else
3738 teststring="ABCD"
3740 case $build_os in
3741 msdosdjgpp*)
3742 # On DJGPP, this test can blow up pretty badly due to problems in libc
3743 # (any single argument exceeding 2000 bytes causes a buffer overrun
3744 # during glob expansion). Even if it were fixed, the result of this
3745 # check would be larger than it should be.
3746 lt_cv_sys_max_cmd_len=12288; # 12K is about right
3749 gnu*)
3750 # Under GNU Hurd, this test is not required because there is
3751 # no limit to the length of command line arguments.
3752 # Libtool will interpret -1 as no limit whatsoever
3753 lt_cv_sys_max_cmd_len=-1;
3756 cygwin* | mingw* | cegcc*)
3757 # On Win9x/ME, this test blows up -- it succeeds, but takes
3758 # about 5 minutes as the teststring grows exponentially.
3759 # Worse, since 9x/ME are not pre-emptively multitasking,
3760 # you end up with a "frozen" computer, even though with patience
3761 # the test eventually succeeds (with a max line length of 256k).
3762 # Instead, let's just punt: use the minimum linelength reported by
3763 # all of the supported platforms: 8192 (on NT/2K/XP).
3764 lt_cv_sys_max_cmd_len=8192;
3767 amigaos*)
3768 # On AmigaOS with pdksh, this test takes hours, literally.
3769 # So we just punt and use a minimum line length of 8192.
3770 lt_cv_sys_max_cmd_len=8192;
3773 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3774 # This has been around since 386BSD, at least. Likely further.
3775 if test -x /sbin/sysctl; then
3776 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3777 elif test -x /usr/sbin/sysctl; then
3778 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3779 else
3780 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
3782 # And add a safety zone
3783 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3784 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3787 interix*)
3788 # We know the value 262144 and hardcode it with a safety zone (like BSD)
3789 lt_cv_sys_max_cmd_len=196608
3792 osf*)
3793 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
3794 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
3795 # nice to cause kernel panics so lets avoid the loop below.
3796 # First set a reasonable default.
3797 lt_cv_sys_max_cmd_len=16384
3799 if test -x /sbin/sysconfig; then
3800 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
3801 *1*) lt_cv_sys_max_cmd_len=-1 ;;
3802 esac
3805 sco3.2v5*)
3806 lt_cv_sys_max_cmd_len=102400
3808 sysv5* | sco5v6* | sysv4.2uw2*)
3809 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
3810 if test -n "$kargmax"; then
3811 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
3812 else
3813 lt_cv_sys_max_cmd_len=32768
3817 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
3818 if test -n "$lt_cv_sys_max_cmd_len"; then
3819 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3820 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3821 else
3822 # Make teststring a little bigger before we do anything with it.
3823 # a 1K string should be a reasonable start.
3824 for i in 1 2 3 4 5 6 7 8 ; do
3825 teststring=$teststring$teststring
3826 done
3827 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
3828 # If test is not a shell built-in, we'll probably end up computing a
3829 # maximum length that is only half of the actual maximum length, but
3830 # we can't tell.
3831 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
3832 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
3833 test $i != 17 # 1/2 MB should be enough
3835 i=`expr $i + 1`
3836 teststring=$teststring$teststring
3837 done
3838 # Only check the string length outside the loop.
3839 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
3840 teststring=
3841 # Add a significant safety factor because C++ compilers can tack on
3842 # massive amounts of additional arguments before passing them to the
3843 # linker. It appears as though 1/2 is a usable value.
3844 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
3847 esac
3851 if test -n $lt_cv_sys_max_cmd_len ; then
3852 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
3853 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
3854 else
3855 echo "$as_me:$LINENO: result: none" >&5
3856 echo "${ECHO_T}none" >&6
3858 max_cmd_len=$lt_cv_sys_max_cmd_len
3865 : ${CP="cp -f"}
3866 : ${MV="mv -f"}
3867 : ${RM="rm -f"}
3869 echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
3870 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
3871 # Try some XSI features
3872 xsi_shell=no
3873 ( _lt_dummy="a/b/c"
3874 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
3875 = c,a/b,, \
3876 && eval 'test $(( 1 + 1 )) -eq 2 \
3877 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
3878 && xsi_shell=yes
3879 echo "$as_me:$LINENO: result: $xsi_shell" >&5
3880 echo "${ECHO_T}$xsi_shell" >&6
3883 echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
3884 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
3885 lt_shell_append=no
3886 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
3887 >/dev/null 2>&1 \
3888 && lt_shell_append=yes
3889 echo "$as_me:$LINENO: result: $lt_shell_append" >&5
3890 echo "${ECHO_T}$lt_shell_append" >&6
3893 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
3894 lt_unset=unset
3895 else
3896 lt_unset=false
3903 # test EBCDIC or ASCII
3904 case `echo X|tr X '\101'` in
3905 A) # ASCII based system
3906 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
3907 lt_SP2NL='tr \040 \012'
3908 lt_NL2SP='tr \015\012 \040\040'
3910 *) # EBCDIC based system
3911 lt_SP2NL='tr \100 \n'
3912 lt_NL2SP='tr \r\n \100\100'
3914 esac
3924 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3925 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3926 if test "${lt_cv_ld_reload_flag+set}" = set; then
3927 echo $ECHO_N "(cached) $ECHO_C" >&6
3928 else
3929 lt_cv_ld_reload_flag='-r'
3931 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3932 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3933 reload_flag=$lt_cv_ld_reload_flag
3934 case $reload_flag in
3935 "" | " "*) ;;
3936 *) reload_flag=" $reload_flag" ;;
3937 esac
3938 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3939 case $host_os in
3940 darwin*)
3941 if test "$GCC" = yes; then
3942 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3943 else
3944 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3947 esac
3957 if test -n "$ac_tool_prefix"; then
3958 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
3959 set dummy ${ac_tool_prefix}objdump; ac_word=$2
3960 echo "$as_me:$LINENO: checking for $ac_word" >&5
3961 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3962 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
3963 echo $ECHO_N "(cached) $ECHO_C" >&6
3964 else
3965 if test -n "$OBJDUMP"; then
3966 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3967 else
3968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3969 for as_dir in $PATH
3971 IFS=$as_save_IFS
3972 test -z "$as_dir" && as_dir=.
3973 for ac_exec_ext in '' $ac_executable_extensions; do
3974 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3975 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
3976 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3977 break 2
3979 done
3980 done
3984 OBJDUMP=$ac_cv_prog_OBJDUMP
3985 if test -n "$OBJDUMP"; then
3986 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
3987 echo "${ECHO_T}$OBJDUMP" >&6
3988 else
3989 echo "$as_me:$LINENO: result: no" >&5
3990 echo "${ECHO_T}no" >&6
3994 if test -z "$ac_cv_prog_OBJDUMP"; then
3995 ac_ct_OBJDUMP=$OBJDUMP
3996 # Extract the first word of "objdump", so it can be a program name with args.
3997 set dummy objdump; ac_word=$2
3998 echo "$as_me:$LINENO: checking for $ac_word" >&5
3999 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4000 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4001 echo $ECHO_N "(cached) $ECHO_C" >&6
4002 else
4003 if test -n "$ac_ct_OBJDUMP"; then
4004 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4005 else
4006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4007 for as_dir in $PATH
4009 IFS=$as_save_IFS
4010 test -z "$as_dir" && as_dir=.
4011 for ac_exec_ext in '' $ac_executable_extensions; do
4012 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4013 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4014 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4015 break 2
4017 done
4018 done
4020 test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
4023 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4024 if test -n "$ac_ct_OBJDUMP"; then
4025 echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4026 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
4027 else
4028 echo "$as_me:$LINENO: result: no" >&5
4029 echo "${ECHO_T}no" >&6
4032 OBJDUMP=$ac_ct_OBJDUMP
4033 else
4034 OBJDUMP="$ac_cv_prog_OBJDUMP"
4037 test -z "$OBJDUMP" && OBJDUMP=objdump
4047 echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4048 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
4049 if test "${lt_cv_deplibs_check_method+set}" = set; then
4050 echo $ECHO_N "(cached) $ECHO_C" >&6
4051 else
4052 lt_cv_file_magic_cmd='$MAGIC_CMD'
4053 lt_cv_file_magic_test_file=
4054 lt_cv_deplibs_check_method='unknown'
4055 # Need to set the preceding variable on all platforms that support
4056 # interlibrary dependencies.
4057 # 'none' -- dependencies not supported.
4058 # `unknown' -- same as none, but documents that we really don't know.
4059 # 'pass_all' -- all dependencies passed with no checks.
4060 # 'test_compile' -- check by making test program.
4061 # 'file_magic [[regex]]' -- check by looking for files in library path
4062 # which responds to the $file_magic_cmd with a given extended regex.
4063 # If you have `file' or equivalent on your system and you're not sure
4064 # whether `pass_all' will *always* work, you probably want this one.
4066 case $host_os in
4067 aix[4-9]*)
4068 lt_cv_deplibs_check_method=pass_all
4071 beos*)
4072 lt_cv_deplibs_check_method=pass_all
4075 bsdi[45]*)
4076 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4077 lt_cv_file_magic_cmd='/usr/bin/file -L'
4078 lt_cv_file_magic_test_file=/shlib/libc.so
4081 cygwin*)
4082 # func_win32_libid is a shell function defined in ltmain.sh
4083 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4084 lt_cv_file_magic_cmd='func_win32_libid'
4087 mingw* | pw32*)
4088 # Base MSYS/MinGW do not provide the 'file' command needed by
4089 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4090 # unless we find 'file', for example because we are cross-compiling.
4091 if ( file / ) >/dev/null 2>&1; then
4092 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4093 lt_cv_file_magic_cmd='func_win32_libid'
4094 else
4095 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4096 lt_cv_file_magic_cmd='$OBJDUMP -f'
4100 cegcc)
4101 # use the weaker test based on 'objdump'. See mingw*.
4102 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4103 lt_cv_file_magic_cmd='$OBJDUMP -f'
4106 darwin* | rhapsody*)
4107 lt_cv_deplibs_check_method=pass_all
4110 freebsd* | dragonfly*)
4111 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4112 case $host_cpu in
4113 i*86 )
4114 # Not sure whether the presence of OpenBSD here was a mistake.
4115 # Let's accept both of them until this is cleared up.
4116 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4117 lt_cv_file_magic_cmd=/usr/bin/file
4118 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4120 esac
4121 else
4122 lt_cv_deplibs_check_method=pass_all
4126 gnu*)
4127 lt_cv_deplibs_check_method=pass_all
4130 hpux10.20* | hpux11*)
4131 lt_cv_file_magic_cmd=/usr/bin/file
4132 case $host_cpu in
4133 ia64*)
4134 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4135 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4137 hppa*64*)
4138 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]'
4139 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4142 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4143 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4145 esac
4148 interix[3-9]*)
4149 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4150 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4153 irix5* | irix6* | nonstopux*)
4154 case $LD in
4155 *-32|*"-32 ") libmagic=32-bit;;
4156 *-n32|*"-n32 ") libmagic=N32;;
4157 *-64|*"-64 ") libmagic=64-bit;;
4158 *) libmagic=never-match;;
4159 esac
4160 lt_cv_deplibs_check_method=pass_all
4163 # This must be Linux ELF.
4164 linux* | k*bsd*-gnu)
4165 lt_cv_deplibs_check_method=pass_all
4168 netbsd*)
4169 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4170 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4171 else
4172 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4176 newos6*)
4177 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4178 lt_cv_file_magic_cmd=/usr/bin/file
4179 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4182 *nto* | *qnx*)
4183 lt_cv_deplibs_check_method=pass_all
4186 openbsd*)
4187 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4188 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4189 else
4190 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4194 osf3* | osf4* | osf5*)
4195 lt_cv_deplibs_check_method=pass_all
4198 rdos*)
4199 lt_cv_deplibs_check_method=pass_all
4202 solaris*)
4203 lt_cv_deplibs_check_method=pass_all
4206 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4207 lt_cv_deplibs_check_method=pass_all
4210 sysv4 | sysv4.3*)
4211 case $host_vendor in
4212 motorola)
4213 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]'
4214 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4216 ncr)
4217 lt_cv_deplibs_check_method=pass_all
4219 sequent)
4220 lt_cv_file_magic_cmd='/bin/file'
4221 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4223 sni)
4224 lt_cv_file_magic_cmd='/bin/file'
4225 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4226 lt_cv_file_magic_test_file=/lib/libc.so
4228 siemens)
4229 lt_cv_deplibs_check_method=pass_all
4232 lt_cv_deplibs_check_method=pass_all
4234 esac
4237 tpf*)
4238 lt_cv_deplibs_check_method=pass_all
4240 esac
4243 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4244 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4245 file_magic_cmd=$lt_cv_file_magic_cmd
4246 deplibs_check_method=$lt_cv_deplibs_check_method
4247 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4260 if test -n "$ac_tool_prefix"; then
4261 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4262 set dummy ${ac_tool_prefix}ar; ac_word=$2
4263 echo "$as_me:$LINENO: checking for $ac_word" >&5
4264 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4265 if test "${ac_cv_prog_AR+set}" = set; then
4266 echo $ECHO_N "(cached) $ECHO_C" >&6
4267 else
4268 if test -n "$AR"; then
4269 ac_cv_prog_AR="$AR" # Let the user override the test.
4270 else
4271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4272 for as_dir in $PATH
4274 IFS=$as_save_IFS
4275 test -z "$as_dir" && as_dir=.
4276 for ac_exec_ext in '' $ac_executable_extensions; do
4277 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4278 ac_cv_prog_AR="${ac_tool_prefix}ar"
4279 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4280 break 2
4282 done
4283 done
4287 AR=$ac_cv_prog_AR
4288 if test -n "$AR"; then
4289 echo "$as_me:$LINENO: result: $AR" >&5
4290 echo "${ECHO_T}$AR" >&6
4291 else
4292 echo "$as_me:$LINENO: result: no" >&5
4293 echo "${ECHO_T}no" >&6
4297 if test -z "$ac_cv_prog_AR"; then
4298 ac_ct_AR=$AR
4299 # Extract the first word of "ar", so it can be a program name with args.
4300 set dummy ar; ac_word=$2
4301 echo "$as_me:$LINENO: checking for $ac_word" >&5
4302 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4303 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4304 echo $ECHO_N "(cached) $ECHO_C" >&6
4305 else
4306 if test -n "$ac_ct_AR"; then
4307 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4308 else
4309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4310 for as_dir in $PATH
4312 IFS=$as_save_IFS
4313 test -z "$as_dir" && as_dir=.
4314 for ac_exec_ext in '' $ac_executable_extensions; do
4315 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4316 ac_cv_prog_ac_ct_AR="ar"
4317 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4318 break 2
4320 done
4321 done
4323 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
4326 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4327 if test -n "$ac_ct_AR"; then
4328 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4329 echo "${ECHO_T}$ac_ct_AR" >&6
4330 else
4331 echo "$as_me:$LINENO: result: no" >&5
4332 echo "${ECHO_T}no" >&6
4335 AR=$ac_ct_AR
4336 else
4337 AR="$ac_cv_prog_AR"
4340 test -z "$AR" && AR=ar
4341 test -z "$AR_FLAGS" && AR_FLAGS=cru
4353 if test -n "$ac_tool_prefix"; then
4354 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4355 set dummy ${ac_tool_prefix}strip; ac_word=$2
4356 echo "$as_me:$LINENO: checking for $ac_word" >&5
4357 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4358 if test "${ac_cv_prog_STRIP+set}" = set; then
4359 echo $ECHO_N "(cached) $ECHO_C" >&6
4360 else
4361 if test -n "$STRIP"; then
4362 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4363 else
4364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4365 for as_dir in $PATH
4367 IFS=$as_save_IFS
4368 test -z "$as_dir" && as_dir=.
4369 for ac_exec_ext in '' $ac_executable_extensions; do
4370 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4371 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4372 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4373 break 2
4375 done
4376 done
4380 STRIP=$ac_cv_prog_STRIP
4381 if test -n "$STRIP"; then
4382 echo "$as_me:$LINENO: result: $STRIP" >&5
4383 echo "${ECHO_T}$STRIP" >&6
4384 else
4385 echo "$as_me:$LINENO: result: no" >&5
4386 echo "${ECHO_T}no" >&6
4390 if test -z "$ac_cv_prog_STRIP"; then
4391 ac_ct_STRIP=$STRIP
4392 # Extract the first word of "strip", so it can be a program name with args.
4393 set dummy strip; ac_word=$2
4394 echo "$as_me:$LINENO: checking for $ac_word" >&5
4395 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4396 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4397 echo $ECHO_N "(cached) $ECHO_C" >&6
4398 else
4399 if test -n "$ac_ct_STRIP"; then
4400 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4401 else
4402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4403 for as_dir in $PATH
4405 IFS=$as_save_IFS
4406 test -z "$as_dir" && as_dir=.
4407 for ac_exec_ext in '' $ac_executable_extensions; do
4408 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4409 ac_cv_prog_ac_ct_STRIP="strip"
4410 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4411 break 2
4413 done
4414 done
4416 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4419 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4420 if test -n "$ac_ct_STRIP"; then
4421 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4422 echo "${ECHO_T}$ac_ct_STRIP" >&6
4423 else
4424 echo "$as_me:$LINENO: result: no" >&5
4425 echo "${ECHO_T}no" >&6
4428 STRIP=$ac_ct_STRIP
4429 else
4430 STRIP="$ac_cv_prog_STRIP"
4433 test -z "$STRIP" && STRIP=:
4440 if test -n "$ac_tool_prefix"; then
4441 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4442 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4443 echo "$as_me:$LINENO: checking for $ac_word" >&5
4444 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4445 if test "${ac_cv_prog_RANLIB+set}" = set; then
4446 echo $ECHO_N "(cached) $ECHO_C" >&6
4447 else
4448 if test -n "$RANLIB"; then
4449 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4450 else
4451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4452 for as_dir in $PATH
4454 IFS=$as_save_IFS
4455 test -z "$as_dir" && as_dir=.
4456 for ac_exec_ext in '' $ac_executable_extensions; do
4457 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4458 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4459 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4460 break 2
4462 done
4463 done
4467 RANLIB=$ac_cv_prog_RANLIB
4468 if test -n "$RANLIB"; then
4469 echo "$as_me:$LINENO: result: $RANLIB" >&5
4470 echo "${ECHO_T}$RANLIB" >&6
4471 else
4472 echo "$as_me:$LINENO: result: no" >&5
4473 echo "${ECHO_T}no" >&6
4477 if test -z "$ac_cv_prog_RANLIB"; then
4478 ac_ct_RANLIB=$RANLIB
4479 # Extract the first word of "ranlib", so it can be a program name with args.
4480 set dummy ranlib; ac_word=$2
4481 echo "$as_me:$LINENO: checking for $ac_word" >&5
4482 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4483 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4484 echo $ECHO_N "(cached) $ECHO_C" >&6
4485 else
4486 if test -n "$ac_ct_RANLIB"; then
4487 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4488 else
4489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4490 for as_dir in $PATH
4492 IFS=$as_save_IFS
4493 test -z "$as_dir" && as_dir=.
4494 for ac_exec_ext in '' $ac_executable_extensions; do
4495 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4496 ac_cv_prog_ac_ct_RANLIB="ranlib"
4497 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4498 break 2
4500 done
4501 done
4503 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4506 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4507 if test -n "$ac_ct_RANLIB"; then
4508 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4509 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4510 else
4511 echo "$as_me:$LINENO: result: no" >&5
4512 echo "${ECHO_T}no" >&6
4515 RANLIB=$ac_ct_RANLIB
4516 else
4517 RANLIB="$ac_cv_prog_RANLIB"
4520 test -z "$RANLIB" && RANLIB=:
4527 # Determine commands to create old-style static archives.
4528 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
4529 old_postinstall_cmds='chmod 644 $oldlib'
4530 old_postuninstall_cmds=
4532 if test -n "$RANLIB"; then
4533 case $host_os in
4534 openbsd*)
4535 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
4538 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
4540 esac
4541 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4577 # If no C compiler was specified, use CC.
4578 LTCC=${LTCC-"$CC"}
4580 # If no C compiler flags were specified, use CFLAGS.
4581 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4583 # Allow CC to be a program name with arguments.
4584 compiler=$CC
4587 # Check for command to grab the raw symbol name followed by C symbol from nm.
4588 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
4589 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
4590 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4591 echo $ECHO_N "(cached) $ECHO_C" >&6
4592 else
4594 # These are sane defaults that work on at least a few old systems.
4595 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
4597 # Character class describing NM global symbol codes.
4598 symcode='[BCDEGRST]'
4600 # Regexp to match symbols that can be accessed directly from C.
4601 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4603 # Define system-specific variables.
4604 case $host_os in
4605 aix*)
4606 symcode='[BCDT]'
4608 cygwin* | mingw* | pw32* | cegcc*)
4609 symcode='[ABCDGISTW]'
4611 hpux*)
4612 if test "$host_cpu" = ia64; then
4613 symcode='[ABCDEGRST]'
4616 irix* | nonstopux*)
4617 symcode='[BCDEGRST]'
4619 osf*)
4620 symcode='[BCDEGQRST]'
4622 solaris*)
4623 symcode='[BDRT]'
4625 sco3.2v5*)
4626 symcode='[DT]'
4628 sysv4.2uw2*)
4629 symcode='[DT]'
4631 sysv5* | sco5v6* | unixware* | OpenUNIX*)
4632 symcode='[ABDT]'
4634 sysv4)
4635 symcode='[DFNSTU]'
4637 esac
4639 # If we're using GNU nm, then use its standard symbol codes.
4640 case `$NM -V 2>&1` in
4641 *GNU* | *'with BFD'*)
4642 symcode='[ABCDGIRSTW]' ;;
4643 esac
4645 # Transform an extracted symbol line into a proper C declaration.
4646 # Some systems (esp. on ia64) link data and code symbols differently,
4647 # so use this general approach.
4648 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4650 # Transform an extracted symbol line into symbol name and symbol address
4651 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
4652 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
4654 # Handle CRLF in mingw tool chain
4655 opt_cr=
4656 case $build_os in
4657 mingw*)
4658 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4660 esac
4662 # Try without a prefix underscore, then with it.
4663 for ac_symprfx in "" "_"; do
4665 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4666 symxfrm="\\1 $ac_symprfx\\2 \\2"
4668 # Write the raw and C identifiers.
4669 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4670 # Fake it for dumpbin and say T for any non-static function
4671 # and D for any global variable.
4672 # Also find C++ and __fastcall symbols from MSVC++,
4673 # which start with @ or ?.
4674 lt_cv_sys_global_symbol_pipe="$AWK '"\
4675 " {last_section=section; section=\$ 3};"\
4676 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
4677 " \$ 0!~/External *\|/{next};"\
4678 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
4679 " {if(hide[section]) next};"\
4680 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
4681 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
4682 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
4683 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
4684 " ' prfx=^$ac_symprfx"
4685 else
4686 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4689 # Check to see that the pipe works correctly.
4690 pipe_works=no
4692 rm -f conftest*
4693 cat > conftest.$ac_ext <<_LT_EOF
4694 #ifdef __cplusplus
4695 extern "C" {
4696 #endif
4697 char nm_test_var;
4698 void nm_test_func(void);
4699 void nm_test_func(void){}
4700 #ifdef __cplusplus
4702 #endif
4703 int main(){nm_test_var='a';nm_test_func();return(0);}
4704 _LT_EOF
4706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4707 (eval $ac_compile) 2>&5
4708 ac_status=$?
4709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4710 (exit $ac_status); }; then
4711 # Now try to grab the symbols.
4712 nlist=conftest.nm
4713 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4714 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4715 ac_status=$?
4716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4717 (exit $ac_status); } && test -s "$nlist"; then
4718 # Try sorting and uniquifying the output.
4719 if sort "$nlist" | uniq > "$nlist"T; then
4720 mv -f "$nlist"T "$nlist"
4721 else
4722 rm -f "$nlist"T
4725 # Make sure that we snagged all the symbols we need.
4726 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
4727 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
4728 cat <<_LT_EOF > conftest.$ac_ext
4729 #ifdef __cplusplus
4730 extern "C" {
4731 #endif
4733 _LT_EOF
4734 # Now generate the symbol file.
4735 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
4737 cat <<_LT_EOF >> conftest.$ac_ext
4739 /* The mapping between symbol names and symbols. */
4740 const struct {
4741 const char *name;
4742 void *address;
4744 lt__PROGRAM__LTX_preloaded_symbols[] =
4746 { "@PROGRAM@", (void *) 0 },
4747 _LT_EOF
4748 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
4749 cat <<\_LT_EOF >> conftest.$ac_ext
4750 {0, (void *) 0}
4753 /* This works around a problem in FreeBSD linker */
4754 #ifdef FREEBSD_WORKAROUND
4755 static const void *lt_preloaded_setup() {
4756 return lt__PROGRAM__LTX_preloaded_symbols;
4758 #endif
4760 #ifdef __cplusplus
4762 #endif
4763 _LT_EOF
4764 # Now try linking the two files.
4765 mv conftest.$ac_objext conftstm.$ac_objext
4766 lt_save_LIBS="$LIBS"
4767 lt_save_CFLAGS="$CFLAGS"
4768 LIBS="conftstm.$ac_objext"
4769 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
4770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4771 (eval $ac_link) 2>&5
4772 ac_status=$?
4773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4774 (exit $ac_status); } && test -s conftest${ac_exeext}; then
4775 pipe_works=yes
4777 LIBS="$lt_save_LIBS"
4778 CFLAGS="$lt_save_CFLAGS"
4779 else
4780 echo "cannot find nm_test_func in $nlist" >&5
4782 else
4783 echo "cannot find nm_test_var in $nlist" >&5
4785 else
4786 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4788 else
4789 echo "$progname: failed program was:" >&5
4790 cat conftest.$ac_ext >&5
4792 rm -rf conftest* conftst*
4794 # Do not use the global_symbol_pipe unless it works.
4795 if test "$pipe_works" = yes; then
4796 break
4797 else
4798 lt_cv_sys_global_symbol_pipe=
4800 done
4804 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4805 lt_cv_sys_global_symbol_to_cdecl=
4807 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
4808 echo "$as_me:$LINENO: result: failed" >&5
4809 echo "${ECHO_T}failed" >&6
4810 else
4811 echo "$as_me:$LINENO: result: ok" >&5
4812 echo "${ECHO_T}ok" >&6
4837 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4838 if test "${enable_libtool_lock+set}" = set; then
4839 enableval="$enable_libtool_lock"
4842 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4844 # Some flags need to be propagated to the compiler or linker for good
4845 # libtool support.
4846 case $host in
4847 ia64-*-hpux*)
4848 # Find out which ABI we are using.
4849 echo 'int i;' > conftest.$ac_ext
4850 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4851 (eval $ac_compile) 2>&5
4852 ac_status=$?
4853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4854 (exit $ac_status); }; then
4855 case `/usr/bin/file conftest.$ac_objext` in
4856 *ELF-32*)
4857 HPUX_IA64_MODE="32"
4859 *ELF-64*)
4860 HPUX_IA64_MODE="64"
4862 esac
4864 rm -rf conftest*
4866 *-*-irix6*)
4867 # Find out which ABI we are using.
4868 echo '#line 4868 "configure"' > conftest.$ac_ext
4869 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4870 (eval $ac_compile) 2>&5
4871 ac_status=$?
4872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4873 (exit $ac_status); }; then
4874 if test "$lt_cv_prog_gnu_ld" = yes; then
4875 case `/usr/bin/file conftest.$ac_objext` in
4876 *32-bit*)
4877 LD="${LD-ld} -melf32bsmip"
4879 *N32*)
4880 LD="${LD-ld} -melf32bmipn32"
4882 *64-bit*)
4883 LD="${LD-ld} -melf64bmip"
4885 esac
4886 else
4887 case `/usr/bin/file conftest.$ac_objext` in
4888 *32-bit*)
4889 LD="${LD-ld} -32"
4891 *N32*)
4892 LD="${LD-ld} -n32"
4894 *64-bit*)
4895 LD="${LD-ld} -64"
4897 esac
4900 rm -rf conftest*
4903 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4904 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
4905 # Find out which ABI we are using.
4906 echo 'int i;' > conftest.$ac_ext
4907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4908 (eval $ac_compile) 2>&5
4909 ac_status=$?
4910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4911 (exit $ac_status); }; then
4912 case `/usr/bin/file conftest.o` in
4913 *32-bit*)
4914 case $host in
4915 x86_64-*kfreebsd*-gnu)
4916 LD="${LD-ld} -m elf_i386_fbsd"
4918 x86_64-*linux*)
4919 LD="${LD-ld} -m elf_i386"
4921 ppc64-*linux*|powerpc64-*linux*)
4922 LD="${LD-ld} -m elf32ppclinux"
4924 s390x-*linux*)
4925 LD="${LD-ld} -m elf_s390"
4927 sparc64-*linux*)
4928 LD="${LD-ld} -m elf32_sparc"
4930 esac
4932 *64-bit*)
4933 case $host in
4934 x86_64-*kfreebsd*-gnu)
4935 LD="${LD-ld} -m elf_x86_64_fbsd"
4937 x86_64-*linux*)
4938 LD="${LD-ld} -m elf_x86_64"
4940 ppc*-*linux*|powerpc*-*linux*)
4941 LD="${LD-ld} -m elf64ppc"
4943 s390*-*linux*|s390*-*tpf*)
4944 LD="${LD-ld} -m elf64_s390"
4946 sparc*-*linux*)
4947 LD="${LD-ld} -m elf64_sparc"
4949 esac
4951 esac
4953 rm -rf conftest*
4956 *-*-sco3.2v5*)
4957 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4958 SAVE_CFLAGS="$CFLAGS"
4959 CFLAGS="$CFLAGS -belf"
4960 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4961 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4962 if test "${lt_cv_cc_needs_belf+set}" = set; then
4963 echo $ECHO_N "(cached) $ECHO_C" >&6
4964 else
4965 ac_ext=c
4966 ac_cpp='$CPP $CPPFLAGS'
4967 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4968 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4969 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4971 if test x$gcc_no_link = xyes; then
4972 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
4973 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
4974 { (exit 1); exit 1; }; }
4976 cat >conftest.$ac_ext <<_ACEOF
4977 /* confdefs.h. */
4978 _ACEOF
4979 cat confdefs.h >>conftest.$ac_ext
4980 cat >>conftest.$ac_ext <<_ACEOF
4981 /* end confdefs.h. */
4984 main ()
4988 return 0;
4990 _ACEOF
4991 rm -f conftest.$ac_objext conftest$ac_exeext
4992 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4993 (eval $ac_link) 2>conftest.er1
4994 ac_status=$?
4995 grep -v '^ *+' conftest.er1 >conftest.err
4996 rm -f conftest.er1
4997 cat conftest.err >&5
4998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4999 (exit $ac_status); } &&
5000 { ac_try='test -z "$ac_c_werror_flag"
5001 || test ! -s conftest.err'
5002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5003 (eval $ac_try) 2>&5
5004 ac_status=$?
5005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5006 (exit $ac_status); }; } &&
5007 { ac_try='test -s conftest$ac_exeext'
5008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5009 (eval $ac_try) 2>&5
5010 ac_status=$?
5011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5012 (exit $ac_status); }; }; then
5013 lt_cv_cc_needs_belf=yes
5014 else
5015 echo "$as_me: failed program was:" >&5
5016 sed 's/^/| /' conftest.$ac_ext >&5
5018 lt_cv_cc_needs_belf=no
5020 rm -f conftest.err conftest.$ac_objext \
5021 conftest$ac_exeext conftest.$ac_ext
5022 ac_ext=c
5023 ac_cpp='$CPP $CPPFLAGS'
5024 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5025 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5026 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5029 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5030 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5031 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5032 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5033 CFLAGS="$SAVE_CFLAGS"
5036 sparc*-*solaris*)
5037 # Find out which ABI we are using.
5038 echo 'int i;' > conftest.$ac_ext
5039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5040 (eval $ac_compile) 2>&5
5041 ac_status=$?
5042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5043 (exit $ac_status); }; then
5044 case `/usr/bin/file conftest.o` in
5045 *64-bit*)
5046 case $lt_cv_prog_gnu_ld in
5047 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5049 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5050 LD="${LD-ld} -64"
5053 esac
5055 esac
5057 rm -rf conftest*
5059 esac
5061 need_locks="$enable_libtool_lock"
5064 case $host_os in
5065 rhapsody* | darwin*)
5066 if test -n "$ac_tool_prefix"; then
5067 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5068 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5069 echo "$as_me:$LINENO: checking for $ac_word" >&5
5070 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5071 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
5072 echo $ECHO_N "(cached) $ECHO_C" >&6
5073 else
5074 if test -n "$DSYMUTIL"; then
5075 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5076 else
5077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5078 for as_dir in $PATH
5080 IFS=$as_save_IFS
5081 test -z "$as_dir" && as_dir=.
5082 for ac_exec_ext in '' $ac_executable_extensions; do
5083 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5084 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5085 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5086 break 2
5088 done
5089 done
5093 DSYMUTIL=$ac_cv_prog_DSYMUTIL
5094 if test -n "$DSYMUTIL"; then
5095 echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
5096 echo "${ECHO_T}$DSYMUTIL" >&6
5097 else
5098 echo "$as_me:$LINENO: result: no" >&5
5099 echo "${ECHO_T}no" >&6
5103 if test -z "$ac_cv_prog_DSYMUTIL"; then
5104 ac_ct_DSYMUTIL=$DSYMUTIL
5105 # Extract the first word of "dsymutil", so it can be a program name with args.
5106 set dummy dsymutil; ac_word=$2
5107 echo "$as_me:$LINENO: checking for $ac_word" >&5
5108 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5109 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
5110 echo $ECHO_N "(cached) $ECHO_C" >&6
5111 else
5112 if test -n "$ac_ct_DSYMUTIL"; then
5113 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5114 else
5115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5116 for as_dir in $PATH
5118 IFS=$as_save_IFS
5119 test -z "$as_dir" && as_dir=.
5120 for ac_exec_ext in '' $ac_executable_extensions; do
5121 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5122 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5123 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5124 break 2
5126 done
5127 done
5129 test -z "$ac_cv_prog_ac_ct_DSYMUTIL" && ac_cv_prog_ac_ct_DSYMUTIL=":"
5132 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5133 if test -n "$ac_ct_DSYMUTIL"; then
5134 echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
5135 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6
5136 else
5137 echo "$as_me:$LINENO: result: no" >&5
5138 echo "${ECHO_T}no" >&6
5141 DSYMUTIL=$ac_ct_DSYMUTIL
5142 else
5143 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5146 if test -n "$ac_tool_prefix"; then
5147 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5148 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5149 echo "$as_me:$LINENO: checking for $ac_word" >&5
5150 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5151 if test "${ac_cv_prog_NMEDIT+set}" = set; then
5152 echo $ECHO_N "(cached) $ECHO_C" >&6
5153 else
5154 if test -n "$NMEDIT"; then
5155 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5156 else
5157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5158 for as_dir in $PATH
5160 IFS=$as_save_IFS
5161 test -z "$as_dir" && as_dir=.
5162 for ac_exec_ext in '' $ac_executable_extensions; do
5163 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5164 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5165 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5166 break 2
5168 done
5169 done
5173 NMEDIT=$ac_cv_prog_NMEDIT
5174 if test -n "$NMEDIT"; then
5175 echo "$as_me:$LINENO: result: $NMEDIT" >&5
5176 echo "${ECHO_T}$NMEDIT" >&6
5177 else
5178 echo "$as_me:$LINENO: result: no" >&5
5179 echo "${ECHO_T}no" >&6
5183 if test -z "$ac_cv_prog_NMEDIT"; then
5184 ac_ct_NMEDIT=$NMEDIT
5185 # Extract the first word of "nmedit", so it can be a program name with args.
5186 set dummy nmedit; ac_word=$2
5187 echo "$as_me:$LINENO: checking for $ac_word" >&5
5188 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5189 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
5190 echo $ECHO_N "(cached) $ECHO_C" >&6
5191 else
5192 if test -n "$ac_ct_NMEDIT"; then
5193 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5194 else
5195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5196 for as_dir in $PATH
5198 IFS=$as_save_IFS
5199 test -z "$as_dir" && as_dir=.
5200 for ac_exec_ext in '' $ac_executable_extensions; do
5201 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5202 ac_cv_prog_ac_ct_NMEDIT="nmedit"
5203 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5204 break 2
5206 done
5207 done
5209 test -z "$ac_cv_prog_ac_ct_NMEDIT" && ac_cv_prog_ac_ct_NMEDIT=":"
5212 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
5213 if test -n "$ac_ct_NMEDIT"; then
5214 echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
5215 echo "${ECHO_T}$ac_ct_NMEDIT" >&6
5216 else
5217 echo "$as_me:$LINENO: result: no" >&5
5218 echo "${ECHO_T}no" >&6
5221 NMEDIT=$ac_ct_NMEDIT
5222 else
5223 NMEDIT="$ac_cv_prog_NMEDIT"
5226 if test -n "$ac_tool_prefix"; then
5227 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
5228 set dummy ${ac_tool_prefix}lipo; ac_word=$2
5229 echo "$as_me:$LINENO: checking for $ac_word" >&5
5230 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5231 if test "${ac_cv_prog_LIPO+set}" = set; then
5232 echo $ECHO_N "(cached) $ECHO_C" >&6
5233 else
5234 if test -n "$LIPO"; then
5235 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
5236 else
5237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5238 for as_dir in $PATH
5240 IFS=$as_save_IFS
5241 test -z "$as_dir" && as_dir=.
5242 for ac_exec_ext in '' $ac_executable_extensions; do
5243 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5244 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
5245 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5246 break 2
5248 done
5249 done
5253 LIPO=$ac_cv_prog_LIPO
5254 if test -n "$LIPO"; then
5255 echo "$as_me:$LINENO: result: $LIPO" >&5
5256 echo "${ECHO_T}$LIPO" >&6
5257 else
5258 echo "$as_me:$LINENO: result: no" >&5
5259 echo "${ECHO_T}no" >&6
5263 if test -z "$ac_cv_prog_LIPO"; then
5264 ac_ct_LIPO=$LIPO
5265 # Extract the first word of "lipo", so it can be a program name with args.
5266 set dummy lipo; ac_word=$2
5267 echo "$as_me:$LINENO: checking for $ac_word" >&5
5268 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5269 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
5270 echo $ECHO_N "(cached) $ECHO_C" >&6
5271 else
5272 if test -n "$ac_ct_LIPO"; then
5273 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
5274 else
5275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5276 for as_dir in $PATH
5278 IFS=$as_save_IFS
5279 test -z "$as_dir" && as_dir=.
5280 for ac_exec_ext in '' $ac_executable_extensions; do
5281 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5282 ac_cv_prog_ac_ct_LIPO="lipo"
5283 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5284 break 2
5286 done
5287 done
5289 test -z "$ac_cv_prog_ac_ct_LIPO" && ac_cv_prog_ac_ct_LIPO=":"
5292 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
5293 if test -n "$ac_ct_LIPO"; then
5294 echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
5295 echo "${ECHO_T}$ac_ct_LIPO" >&6
5296 else
5297 echo "$as_me:$LINENO: result: no" >&5
5298 echo "${ECHO_T}no" >&6
5301 LIPO=$ac_ct_LIPO
5302 else
5303 LIPO="$ac_cv_prog_LIPO"
5306 if test -n "$ac_tool_prefix"; then
5307 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
5308 set dummy ${ac_tool_prefix}otool; ac_word=$2
5309 echo "$as_me:$LINENO: checking for $ac_word" >&5
5310 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5311 if test "${ac_cv_prog_OTOOL+set}" = set; then
5312 echo $ECHO_N "(cached) $ECHO_C" >&6
5313 else
5314 if test -n "$OTOOL"; then
5315 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
5316 else
5317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5318 for as_dir in $PATH
5320 IFS=$as_save_IFS
5321 test -z "$as_dir" && as_dir=.
5322 for ac_exec_ext in '' $ac_executable_extensions; do
5323 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5324 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
5325 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5326 break 2
5328 done
5329 done
5333 OTOOL=$ac_cv_prog_OTOOL
5334 if test -n "$OTOOL"; then
5335 echo "$as_me:$LINENO: result: $OTOOL" >&5
5336 echo "${ECHO_T}$OTOOL" >&6
5337 else
5338 echo "$as_me:$LINENO: result: no" >&5
5339 echo "${ECHO_T}no" >&6
5343 if test -z "$ac_cv_prog_OTOOL"; then
5344 ac_ct_OTOOL=$OTOOL
5345 # Extract the first word of "otool", so it can be a program name with args.
5346 set dummy otool; ac_word=$2
5347 echo "$as_me:$LINENO: checking for $ac_word" >&5
5348 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5349 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
5350 echo $ECHO_N "(cached) $ECHO_C" >&6
5351 else
5352 if test -n "$ac_ct_OTOOL"; then
5353 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
5354 else
5355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5356 for as_dir in $PATH
5358 IFS=$as_save_IFS
5359 test -z "$as_dir" && as_dir=.
5360 for ac_exec_ext in '' $ac_executable_extensions; do
5361 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5362 ac_cv_prog_ac_ct_OTOOL="otool"
5363 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5364 break 2
5366 done
5367 done
5369 test -z "$ac_cv_prog_ac_ct_OTOOL" && ac_cv_prog_ac_ct_OTOOL=":"
5372 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
5373 if test -n "$ac_ct_OTOOL"; then
5374 echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
5375 echo "${ECHO_T}$ac_ct_OTOOL" >&6
5376 else
5377 echo "$as_me:$LINENO: result: no" >&5
5378 echo "${ECHO_T}no" >&6
5381 OTOOL=$ac_ct_OTOOL
5382 else
5383 OTOOL="$ac_cv_prog_OTOOL"
5386 if test -n "$ac_tool_prefix"; then
5387 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
5388 set dummy ${ac_tool_prefix}otool64; ac_word=$2
5389 echo "$as_me:$LINENO: checking for $ac_word" >&5
5390 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5391 if test "${ac_cv_prog_OTOOL64+set}" = set; then
5392 echo $ECHO_N "(cached) $ECHO_C" >&6
5393 else
5394 if test -n "$OTOOL64"; then
5395 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
5396 else
5397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5398 for as_dir in $PATH
5400 IFS=$as_save_IFS
5401 test -z "$as_dir" && as_dir=.
5402 for ac_exec_ext in '' $ac_executable_extensions; do
5403 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5404 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
5405 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5406 break 2
5408 done
5409 done
5413 OTOOL64=$ac_cv_prog_OTOOL64
5414 if test -n "$OTOOL64"; then
5415 echo "$as_me:$LINENO: result: $OTOOL64" >&5
5416 echo "${ECHO_T}$OTOOL64" >&6
5417 else
5418 echo "$as_me:$LINENO: result: no" >&5
5419 echo "${ECHO_T}no" >&6
5423 if test -z "$ac_cv_prog_OTOOL64"; then
5424 ac_ct_OTOOL64=$OTOOL64
5425 # Extract the first word of "otool64", so it can be a program name with args.
5426 set dummy otool64; ac_word=$2
5427 echo "$as_me:$LINENO: checking for $ac_word" >&5
5428 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5429 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
5430 echo $ECHO_N "(cached) $ECHO_C" >&6
5431 else
5432 if test -n "$ac_ct_OTOOL64"; then
5433 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
5434 else
5435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5436 for as_dir in $PATH
5438 IFS=$as_save_IFS
5439 test -z "$as_dir" && as_dir=.
5440 for ac_exec_ext in '' $ac_executable_extensions; do
5441 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5442 ac_cv_prog_ac_ct_OTOOL64="otool64"
5443 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5444 break 2
5446 done
5447 done
5449 test -z "$ac_cv_prog_ac_ct_OTOOL64" && ac_cv_prog_ac_ct_OTOOL64=":"
5452 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
5453 if test -n "$ac_ct_OTOOL64"; then
5454 echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
5455 echo "${ECHO_T}$ac_ct_OTOOL64" >&6
5456 else
5457 echo "$as_me:$LINENO: result: no" >&5
5458 echo "${ECHO_T}no" >&6
5461 OTOOL64=$ac_ct_OTOOL64
5462 else
5463 OTOOL64="$ac_cv_prog_OTOOL64"
5492 echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
5493 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6
5494 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
5495 echo $ECHO_N "(cached) $ECHO_C" >&6
5496 else
5497 lt_cv_apple_cc_single_mod=no
5498 if test -z "${LT_MULTI_MODULE}"; then
5499 # By default we will add the -single_module flag. You can override
5500 # by either setting the environment variable LT_MULTI_MODULE
5501 # non-empty at configure time, or by adding -multi_module to the
5502 # link flags.
5503 rm -rf libconftest.dylib*
5504 echo "int foo(void){return 1;}" > conftest.c
5505 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5506 -dynamiclib -Wl,-single_module conftest.c" >&5
5507 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5508 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
5509 _lt_result=$?
5510 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
5511 lt_cv_apple_cc_single_mod=yes
5512 else
5513 cat conftest.err >&5
5515 rm -rf libconftest.dylib*
5516 rm -f conftest.*
5519 echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
5520 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6
5521 echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
5522 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6
5523 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
5524 echo $ECHO_N "(cached) $ECHO_C" >&6
5525 else
5526 lt_cv_ld_exported_symbols_list=no
5527 save_LDFLAGS=$LDFLAGS
5528 echo "_main" > conftest.sym
5529 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
5530 if test x$gcc_no_link = xyes; then
5531 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5532 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5533 { (exit 1); exit 1; }; }
5535 cat >conftest.$ac_ext <<_ACEOF
5536 /* confdefs.h. */
5537 _ACEOF
5538 cat confdefs.h >>conftest.$ac_ext
5539 cat >>conftest.$ac_ext <<_ACEOF
5540 /* end confdefs.h. */
5543 main ()
5547 return 0;
5549 _ACEOF
5550 rm -f conftest.$ac_objext conftest$ac_exeext
5551 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5552 (eval $ac_link) 2>conftest.er1
5553 ac_status=$?
5554 grep -v '^ *+' conftest.er1 >conftest.err
5555 rm -f conftest.er1
5556 cat conftest.err >&5
5557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5558 (exit $ac_status); } &&
5559 { ac_try='test -z "$ac_c_werror_flag"
5560 || test ! -s conftest.err'
5561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5562 (eval $ac_try) 2>&5
5563 ac_status=$?
5564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5565 (exit $ac_status); }; } &&
5566 { ac_try='test -s conftest$ac_exeext'
5567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5568 (eval $ac_try) 2>&5
5569 ac_status=$?
5570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5571 (exit $ac_status); }; }; then
5572 lt_cv_ld_exported_symbols_list=yes
5573 else
5574 echo "$as_me: failed program was:" >&5
5575 sed 's/^/| /' conftest.$ac_ext >&5
5577 lt_cv_ld_exported_symbols_list=no
5579 rm -f conftest.err conftest.$ac_objext \
5580 conftest$ac_exeext conftest.$ac_ext
5581 LDFLAGS="$save_LDFLAGS"
5584 echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
5585 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6
5586 case $host_os in
5587 rhapsody* | darwin1.[012])
5588 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
5589 darwin1.*)
5590 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5591 darwin*) # darwin 5.x on
5592 # if running on 10.5 or later, the deployment target defaults
5593 # to the OS version, if on x86, and 10.4, the deployment
5594 # target defaults to 10.4. Don't you love it?
5595 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
5596 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
5597 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5598 10.[012]*)
5599 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5600 10.*)
5601 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5602 esac
5604 esac
5605 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
5606 _lt_dar_single_mod='$single_module'
5608 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
5609 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
5610 else
5611 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
5613 if test "$DSYMUTIL" != ":"; then
5614 _lt_dsymutil='~$DSYMUTIL $lib || :'
5615 else
5616 _lt_dsymutil=
5619 esac
5621 ac_ext=c
5622 ac_cpp='$CPP $CPPFLAGS'
5623 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5624 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5625 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5626 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5627 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5628 # On Suns, sometimes $CPP names a directory.
5629 if test -n "$CPP" && test -d "$CPP"; then
5630 CPP=
5632 if test -z "$CPP"; then
5633 if test "${ac_cv_prog_CPP+set}" = set; then
5634 echo $ECHO_N "(cached) $ECHO_C" >&6
5635 else
5636 # Double quotes because CPP needs to be expanded
5637 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5639 ac_preproc_ok=false
5640 for ac_c_preproc_warn_flag in '' yes
5642 # Use a header file that comes with gcc, so configuring glibc
5643 # with a fresh cross-compiler works.
5644 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5645 # <limits.h> exists even on freestanding compilers.
5646 # On the NeXT, cc -E runs the code through the compiler's parser,
5647 # not just through cpp. "Syntax error" is here to catch this case.
5648 cat >conftest.$ac_ext <<_ACEOF
5649 /* confdefs.h. */
5650 _ACEOF
5651 cat confdefs.h >>conftest.$ac_ext
5652 cat >>conftest.$ac_ext <<_ACEOF
5653 /* end confdefs.h. */
5654 #ifdef __STDC__
5655 # include <limits.h>
5656 #else
5657 # include <assert.h>
5658 #endif
5659 Syntax error
5660 _ACEOF
5661 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5662 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5663 ac_status=$?
5664 grep -v '^ *+' conftest.er1 >conftest.err
5665 rm -f conftest.er1
5666 cat conftest.err >&5
5667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5668 (exit $ac_status); } >/dev/null; then
5669 if test -s conftest.err; then
5670 ac_cpp_err=$ac_c_preproc_warn_flag
5671 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5672 else
5673 ac_cpp_err=
5675 else
5676 ac_cpp_err=yes
5678 if test -z "$ac_cpp_err"; then
5680 else
5681 echo "$as_me: failed program was:" >&5
5682 sed 's/^/| /' conftest.$ac_ext >&5
5684 # Broken: fails on valid input.
5685 continue
5687 rm -f conftest.err conftest.$ac_ext
5689 # OK, works on sane cases. Now check whether non-existent headers
5690 # can be detected and how.
5691 cat >conftest.$ac_ext <<_ACEOF
5692 /* confdefs.h. */
5693 _ACEOF
5694 cat confdefs.h >>conftest.$ac_ext
5695 cat >>conftest.$ac_ext <<_ACEOF
5696 /* end confdefs.h. */
5697 #include <ac_nonexistent.h>
5698 _ACEOF
5699 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5700 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5701 ac_status=$?
5702 grep -v '^ *+' conftest.er1 >conftest.err
5703 rm -f conftest.er1
5704 cat conftest.err >&5
5705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5706 (exit $ac_status); } >/dev/null; then
5707 if test -s conftest.err; then
5708 ac_cpp_err=$ac_c_preproc_warn_flag
5709 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5710 else
5711 ac_cpp_err=
5713 else
5714 ac_cpp_err=yes
5716 if test -z "$ac_cpp_err"; then
5717 # Broken: success on invalid input.
5718 continue
5719 else
5720 echo "$as_me: failed program was:" >&5
5721 sed 's/^/| /' conftest.$ac_ext >&5
5723 # Passes both tests.
5724 ac_preproc_ok=:
5725 break
5727 rm -f conftest.err conftest.$ac_ext
5729 done
5730 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5731 rm -f conftest.err conftest.$ac_ext
5732 if $ac_preproc_ok; then
5733 break
5736 done
5737 ac_cv_prog_CPP=$CPP
5740 CPP=$ac_cv_prog_CPP
5741 else
5742 ac_cv_prog_CPP=$CPP
5744 echo "$as_me:$LINENO: result: $CPP" >&5
5745 echo "${ECHO_T}$CPP" >&6
5746 ac_preproc_ok=false
5747 for ac_c_preproc_warn_flag in '' yes
5749 # Use a header file that comes with gcc, so configuring glibc
5750 # with a fresh cross-compiler works.
5751 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5752 # <limits.h> exists even on freestanding compilers.
5753 # On the NeXT, cc -E runs the code through the compiler's parser,
5754 # not just through cpp. "Syntax error" is here to catch this case.
5755 cat >conftest.$ac_ext <<_ACEOF
5756 /* confdefs.h. */
5757 _ACEOF
5758 cat confdefs.h >>conftest.$ac_ext
5759 cat >>conftest.$ac_ext <<_ACEOF
5760 /* end confdefs.h. */
5761 #ifdef __STDC__
5762 # include <limits.h>
5763 #else
5764 # include <assert.h>
5765 #endif
5766 Syntax error
5767 _ACEOF
5768 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5769 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5770 ac_status=$?
5771 grep -v '^ *+' conftest.er1 >conftest.err
5772 rm -f conftest.er1
5773 cat conftest.err >&5
5774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5775 (exit $ac_status); } >/dev/null; then
5776 if test -s conftest.err; then
5777 ac_cpp_err=$ac_c_preproc_warn_flag
5778 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5779 else
5780 ac_cpp_err=
5782 else
5783 ac_cpp_err=yes
5785 if test -z "$ac_cpp_err"; then
5787 else
5788 echo "$as_me: failed program was:" >&5
5789 sed 's/^/| /' conftest.$ac_ext >&5
5791 # Broken: fails on valid input.
5792 continue
5794 rm -f conftest.err conftest.$ac_ext
5796 # OK, works on sane cases. Now check whether non-existent headers
5797 # can be detected and how.
5798 cat >conftest.$ac_ext <<_ACEOF
5799 /* confdefs.h. */
5800 _ACEOF
5801 cat confdefs.h >>conftest.$ac_ext
5802 cat >>conftest.$ac_ext <<_ACEOF
5803 /* end confdefs.h. */
5804 #include <ac_nonexistent.h>
5805 _ACEOF
5806 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5807 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5808 ac_status=$?
5809 grep -v '^ *+' conftest.er1 >conftest.err
5810 rm -f conftest.er1
5811 cat conftest.err >&5
5812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5813 (exit $ac_status); } >/dev/null; then
5814 if test -s conftest.err; then
5815 ac_cpp_err=$ac_c_preproc_warn_flag
5816 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5817 else
5818 ac_cpp_err=
5820 else
5821 ac_cpp_err=yes
5823 if test -z "$ac_cpp_err"; then
5824 # Broken: success on invalid input.
5825 continue
5826 else
5827 echo "$as_me: failed program was:" >&5
5828 sed 's/^/| /' conftest.$ac_ext >&5
5830 # Passes both tests.
5831 ac_preproc_ok=:
5832 break
5834 rm -f conftest.err conftest.$ac_ext
5836 done
5837 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5838 rm -f conftest.err conftest.$ac_ext
5839 if $ac_preproc_ok; then
5841 else
5842 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5843 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5844 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5845 See \`config.log' for more details." >&5
5846 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5847 See \`config.log' for more details." >&2;}
5848 { (exit 1); exit 1; }; }; }
5851 ac_ext=c
5852 ac_cpp='$CPP $CPPFLAGS'
5853 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5854 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5855 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5858 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5859 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5860 if test "${ac_cv_header_stdc+set}" = set; then
5861 echo $ECHO_N "(cached) $ECHO_C" >&6
5862 else
5863 cat >conftest.$ac_ext <<_ACEOF
5864 /* confdefs.h. */
5865 _ACEOF
5866 cat confdefs.h >>conftest.$ac_ext
5867 cat >>conftest.$ac_ext <<_ACEOF
5868 /* end confdefs.h. */
5869 #include <stdlib.h>
5870 #include <stdarg.h>
5871 #include <string.h>
5872 #include <float.h>
5875 main ()
5879 return 0;
5881 _ACEOF
5882 rm -f conftest.$ac_objext
5883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5884 (eval $ac_compile) 2>conftest.er1
5885 ac_status=$?
5886 grep -v '^ *+' conftest.er1 >conftest.err
5887 rm -f conftest.er1
5888 cat conftest.err >&5
5889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5890 (exit $ac_status); } &&
5891 { ac_try='test -z "$ac_c_werror_flag"
5892 || test ! -s conftest.err'
5893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5894 (eval $ac_try) 2>&5
5895 ac_status=$?
5896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5897 (exit $ac_status); }; } &&
5898 { ac_try='test -s conftest.$ac_objext'
5899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5900 (eval $ac_try) 2>&5
5901 ac_status=$?
5902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5903 (exit $ac_status); }; }; then
5904 ac_cv_header_stdc=yes
5905 else
5906 echo "$as_me: failed program was:" >&5
5907 sed 's/^/| /' conftest.$ac_ext >&5
5909 ac_cv_header_stdc=no
5911 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5913 if test $ac_cv_header_stdc = yes; then
5914 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5915 cat >conftest.$ac_ext <<_ACEOF
5916 /* confdefs.h. */
5917 _ACEOF
5918 cat confdefs.h >>conftest.$ac_ext
5919 cat >>conftest.$ac_ext <<_ACEOF
5920 /* end confdefs.h. */
5921 #include <string.h>
5923 _ACEOF
5924 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5925 $EGREP "memchr" >/dev/null 2>&1; then
5927 else
5928 ac_cv_header_stdc=no
5930 rm -f conftest*
5934 if test $ac_cv_header_stdc = yes; then
5935 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5936 cat >conftest.$ac_ext <<_ACEOF
5937 /* confdefs.h. */
5938 _ACEOF
5939 cat confdefs.h >>conftest.$ac_ext
5940 cat >>conftest.$ac_ext <<_ACEOF
5941 /* end confdefs.h. */
5942 #include <stdlib.h>
5944 _ACEOF
5945 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5946 $EGREP "free" >/dev/null 2>&1; then
5948 else
5949 ac_cv_header_stdc=no
5951 rm -f conftest*
5955 if test $ac_cv_header_stdc = yes; then
5956 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5957 if test "$cross_compiling" = yes; then
5959 else
5960 cat >conftest.$ac_ext <<_ACEOF
5961 /* confdefs.h. */
5962 _ACEOF
5963 cat confdefs.h >>conftest.$ac_ext
5964 cat >>conftest.$ac_ext <<_ACEOF
5965 /* end confdefs.h. */
5966 #include <ctype.h>
5967 #if ((' ' & 0x0FF) == 0x020)
5968 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5969 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5970 #else
5971 # define ISLOWER(c) \
5972 (('a' <= (c) && (c) <= 'i') \
5973 || ('j' <= (c) && (c) <= 'r') \
5974 || ('s' <= (c) && (c) <= 'z'))
5975 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5976 #endif
5978 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5980 main ()
5982 int i;
5983 for (i = 0; i < 256; i++)
5984 if (XOR (islower (i), ISLOWER (i))
5985 || toupper (i) != TOUPPER (i))
5986 exit(2);
5987 exit (0);
5989 _ACEOF
5990 rm -f conftest$ac_exeext
5991 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5992 (eval $ac_link) 2>&5
5993 ac_status=$?
5994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5995 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5997 (eval $ac_try) 2>&5
5998 ac_status=$?
5999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6000 (exit $ac_status); }; }; then
6002 else
6003 echo "$as_me: program exited with status $ac_status" >&5
6004 echo "$as_me: failed program was:" >&5
6005 sed 's/^/| /' conftest.$ac_ext >&5
6007 ( exit $ac_status )
6008 ac_cv_header_stdc=no
6010 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6014 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6015 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6016 if test $ac_cv_header_stdc = yes; then
6018 cat >>confdefs.h <<\_ACEOF
6019 #define STDC_HEADERS 1
6020 _ACEOF
6024 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6034 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6035 inttypes.h stdint.h unistd.h
6037 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6038 echo "$as_me:$LINENO: checking for $ac_header" >&5
6039 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6040 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6041 echo $ECHO_N "(cached) $ECHO_C" >&6
6042 else
6043 cat >conftest.$ac_ext <<_ACEOF
6044 /* confdefs.h. */
6045 _ACEOF
6046 cat confdefs.h >>conftest.$ac_ext
6047 cat >>conftest.$ac_ext <<_ACEOF
6048 /* end confdefs.h. */
6049 $ac_includes_default
6051 #include <$ac_header>
6052 _ACEOF
6053 rm -f conftest.$ac_objext
6054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6055 (eval $ac_compile) 2>conftest.er1
6056 ac_status=$?
6057 grep -v '^ *+' conftest.er1 >conftest.err
6058 rm -f conftest.er1
6059 cat conftest.err >&5
6060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6061 (exit $ac_status); } &&
6062 { ac_try='test -z "$ac_c_werror_flag"
6063 || test ! -s conftest.err'
6064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6065 (eval $ac_try) 2>&5
6066 ac_status=$?
6067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6068 (exit $ac_status); }; } &&
6069 { ac_try='test -s conftest.$ac_objext'
6070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6071 (eval $ac_try) 2>&5
6072 ac_status=$?
6073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6074 (exit $ac_status); }; }; then
6075 eval "$as_ac_Header=yes"
6076 else
6077 echo "$as_me: failed program was:" >&5
6078 sed 's/^/| /' conftest.$ac_ext >&5
6080 eval "$as_ac_Header=no"
6082 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6084 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6085 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6086 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6087 cat >>confdefs.h <<_ACEOF
6088 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6089 _ACEOF
6093 done
6097 for ac_header in dlfcn.h
6099 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6100 echo "$as_me:$LINENO: checking for $ac_header" >&5
6101 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6102 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6103 echo $ECHO_N "(cached) $ECHO_C" >&6
6104 else
6105 cat >conftest.$ac_ext <<_ACEOF
6106 /* confdefs.h. */
6107 _ACEOF
6108 cat confdefs.h >>conftest.$ac_ext
6109 cat >>conftest.$ac_ext <<_ACEOF
6110 /* end confdefs.h. */
6111 $ac_includes_default
6113 #include <$ac_header>
6114 _ACEOF
6115 rm -f conftest.$ac_objext
6116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6117 (eval $ac_compile) 2>conftest.er1
6118 ac_status=$?
6119 grep -v '^ *+' conftest.er1 >conftest.err
6120 rm -f conftest.er1
6121 cat conftest.err >&5
6122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6123 (exit $ac_status); } &&
6124 { ac_try='test -z "$ac_c_werror_flag"
6125 || test ! -s conftest.err'
6126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6127 (eval $ac_try) 2>&5
6128 ac_status=$?
6129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6130 (exit $ac_status); }; } &&
6131 { ac_try='test -s conftest.$ac_objext'
6132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6133 (eval $ac_try) 2>&5
6134 ac_status=$?
6135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6136 (exit $ac_status); }; }; then
6137 eval "$as_ac_Header=yes"
6138 else
6139 echo "$as_me: failed program was:" >&5
6140 sed 's/^/| /' conftest.$ac_ext >&5
6142 eval "$as_ac_Header=no"
6144 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6146 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6147 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6148 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6149 cat >>confdefs.h <<_ACEOF
6150 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6151 _ACEOF
6155 done
6159 # Set options
6163 enable_dlopen=no
6166 enable_win32_dll=no
6169 # Check whether --enable-shared or --disable-shared was given.
6170 if test "${enable_shared+set}" = set; then
6171 enableval="$enable_shared"
6172 p=${PACKAGE-default}
6173 case $enableval in
6174 yes) enable_shared=yes ;;
6175 no) enable_shared=no ;;
6177 enable_shared=no
6178 # Look at the argument we got. We use all the common list separators.
6179 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6180 for pkg in $enableval; do
6181 IFS="$lt_save_ifs"
6182 if test "X$pkg" = "X$p"; then
6183 enable_shared=yes
6185 done
6186 IFS="$lt_save_ifs"
6188 esac
6189 else
6190 enable_shared=yes
6200 # Check whether --enable-static or --disable-static was given.
6201 if test "${enable_static+set}" = set; then
6202 enableval="$enable_static"
6203 p=${PACKAGE-default}
6204 case $enableval in
6205 yes) enable_static=yes ;;
6206 no) enable_static=no ;;
6208 enable_static=no
6209 # Look at the argument we got. We use all the common list separators.
6210 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6211 for pkg in $enableval; do
6212 IFS="$lt_save_ifs"
6213 if test "X$pkg" = "X$p"; then
6214 enable_static=yes
6216 done
6217 IFS="$lt_save_ifs"
6219 esac
6220 else
6221 enable_static=yes
6232 # Check whether --with-pic or --without-pic was given.
6233 if test "${with_pic+set}" = set; then
6234 withval="$with_pic"
6235 pic_mode="$withval"
6236 else
6237 pic_mode=default
6240 test -z "$pic_mode" && pic_mode=default
6248 # Check whether --enable-fast-install or --disable-fast-install was given.
6249 if test "${enable_fast_install+set}" = set; then
6250 enableval="$enable_fast_install"
6251 p=${PACKAGE-default}
6252 case $enableval in
6253 yes) enable_fast_install=yes ;;
6254 no) enable_fast_install=no ;;
6256 enable_fast_install=no
6257 # Look at the argument we got. We use all the common list separators.
6258 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6259 for pkg in $enableval; do
6260 IFS="$lt_save_ifs"
6261 if test "X$pkg" = "X$p"; then
6262 enable_fast_install=yes
6264 done
6265 IFS="$lt_save_ifs"
6267 esac
6268 else
6269 enable_fast_install=yes
6281 # This can be used to rebuild libtool when needed
6282 LIBTOOL_DEPS="$ltmain"
6284 # Always use our own libtool.
6285 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6311 test -z "$LN_S" && LN_S="ln -s"
6326 if test -n "${ZSH_VERSION+set}" ; then
6327 setopt NO_GLOB_SUBST
6330 echo "$as_me:$LINENO: checking for objdir" >&5
6331 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6332 if test "${lt_cv_objdir+set}" = set; then
6333 echo $ECHO_N "(cached) $ECHO_C" >&6
6334 else
6335 rm -f .libs 2>/dev/null
6336 mkdir .libs 2>/dev/null
6337 if test -d .libs; then
6338 lt_cv_objdir=.libs
6339 else
6340 # MS-DOS does not allow filenames that begin with a dot.
6341 lt_cv_objdir=_libs
6343 rmdir .libs 2>/dev/null
6345 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6346 echo "${ECHO_T}$lt_cv_objdir" >&6
6347 objdir=$lt_cv_objdir
6353 cat >>confdefs.h <<_ACEOF
6354 #define LT_OBJDIR "$lt_cv_objdir/"
6355 _ACEOF
6373 case $host_os in
6374 aix3*)
6375 # AIX sometimes has problems with the GCC collect2 program. For some
6376 # reason, if we set the COLLECT_NAMES environment variable, the problems
6377 # vanish in a puff of smoke.
6378 if test "X${COLLECT_NAMES+set}" != Xset; then
6379 COLLECT_NAMES=
6380 export COLLECT_NAMES
6383 esac
6385 # Sed substitution that helps us do robust quoting. It backslashifies
6386 # metacharacters that are still active within double-quoted strings.
6387 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6389 # Same as above, but do not quote variable references.
6390 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6392 # Sed substitution to delay expansion of an escaped shell variable in a
6393 # double_quote_subst'ed string.
6394 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6396 # Sed substitution to delay expansion of an escaped single quote.
6397 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6399 # Sed substitution to avoid accidental globbing in evaled expressions
6400 no_glob_subst='s/\*/\\\*/g'
6402 # Global variables:
6403 ofile=libtool
6404 can_build_shared=yes
6406 # All known linkers require a `.a' archive for static linking (except MSVC,
6407 # which needs '.lib').
6408 libext=a
6410 with_gnu_ld="$lt_cv_prog_gnu_ld"
6412 old_CC="$CC"
6413 old_CFLAGS="$CFLAGS"
6415 # Set sane defaults for various variables
6416 test -z "$CC" && CC=cc
6417 test -z "$LTCC" && LTCC=$CC
6418 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6419 test -z "$LD" && LD=ld
6420 test -z "$ac_objext" && ac_objext=o
6422 for cc_temp in $compiler""; do
6423 case $cc_temp in
6424 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6425 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6426 \-*) ;;
6427 *) break;;
6428 esac
6429 done
6430 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6433 # Only perform the check for file, if the check method requires it
6434 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6435 case $deplibs_check_method in
6436 file_magic*)
6437 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6438 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6439 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6440 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6441 echo $ECHO_N "(cached) $ECHO_C" >&6
6442 else
6443 case $MAGIC_CMD in
6444 [\\/*] | ?:[\\/]*)
6445 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6448 lt_save_MAGIC_CMD="$MAGIC_CMD"
6449 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6450 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6451 for ac_dir in $ac_dummy; do
6452 IFS="$lt_save_ifs"
6453 test -z "$ac_dir" && ac_dir=.
6454 if test -f $ac_dir/${ac_tool_prefix}file; then
6455 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6456 if test -n "$file_magic_test_file"; then
6457 case $deplibs_check_method in
6458 "file_magic "*)
6459 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6460 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6461 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6462 $EGREP "$file_magic_regex" > /dev/null; then
6464 else
6465 cat <<_LT_EOF 1>&2
6467 *** Warning: the command libtool uses to detect shared libraries,
6468 *** $file_magic_cmd, produces output that libtool cannot recognize.
6469 *** The result is that libtool may fail to recognize shared libraries
6470 *** as such. This will affect the creation of libtool libraries that
6471 *** depend on shared libraries, but programs linked with such libtool
6472 *** libraries will work regardless of this problem. Nevertheless, you
6473 *** may want to report the problem to your system manager and/or to
6474 *** bug-libtool@gnu.org
6476 _LT_EOF
6477 fi ;;
6478 esac
6480 break
6482 done
6483 IFS="$lt_save_ifs"
6484 MAGIC_CMD="$lt_save_MAGIC_CMD"
6486 esac
6489 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6490 if test -n "$MAGIC_CMD"; then
6491 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6492 echo "${ECHO_T}$MAGIC_CMD" >&6
6493 else
6494 echo "$as_me:$LINENO: result: no" >&5
6495 echo "${ECHO_T}no" >&6
6502 if test -z "$lt_cv_path_MAGIC_CMD"; then
6503 if test -n "$ac_tool_prefix"; then
6504 echo "$as_me:$LINENO: checking for file" >&5
6505 echo $ECHO_N "checking for file... $ECHO_C" >&6
6506 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6507 echo $ECHO_N "(cached) $ECHO_C" >&6
6508 else
6509 case $MAGIC_CMD in
6510 [\\/*] | ?:[\\/]*)
6511 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6514 lt_save_MAGIC_CMD="$MAGIC_CMD"
6515 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6516 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6517 for ac_dir in $ac_dummy; do
6518 IFS="$lt_save_ifs"
6519 test -z "$ac_dir" && ac_dir=.
6520 if test -f $ac_dir/file; then
6521 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6522 if test -n "$file_magic_test_file"; then
6523 case $deplibs_check_method in
6524 "file_magic "*)
6525 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6526 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6527 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6528 $EGREP "$file_magic_regex" > /dev/null; then
6530 else
6531 cat <<_LT_EOF 1>&2
6533 *** Warning: the command libtool uses to detect shared libraries,
6534 *** $file_magic_cmd, produces output that libtool cannot recognize.
6535 *** The result is that libtool may fail to recognize shared libraries
6536 *** as such. This will affect the creation of libtool libraries that
6537 *** depend on shared libraries, but programs linked with such libtool
6538 *** libraries will work regardless of this problem. Nevertheless, you
6539 *** may want to report the problem to your system manager and/or to
6540 *** bug-libtool@gnu.org
6542 _LT_EOF
6543 fi ;;
6544 esac
6546 break
6548 done
6549 IFS="$lt_save_ifs"
6550 MAGIC_CMD="$lt_save_MAGIC_CMD"
6552 esac
6555 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6556 if test -n "$MAGIC_CMD"; then
6557 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6558 echo "${ECHO_T}$MAGIC_CMD" >&6
6559 else
6560 echo "$as_me:$LINENO: result: no" >&5
6561 echo "${ECHO_T}no" >&6
6565 else
6566 MAGIC_CMD=:
6572 esac
6574 # Use C for the default configuration in the libtool script
6576 lt_save_CC="$CC"
6577 ac_ext=c
6578 ac_cpp='$CPP $CPPFLAGS'
6579 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6580 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6581 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6584 # Source file extension for C test sources.
6585 ac_ext=c
6587 # Object file extension for compiled C test sources.
6588 objext=o
6589 objext=$objext
6591 # Code to be used in simple compile tests
6592 lt_simple_compile_test_code="int some_variable = 0;"
6594 # Code to be used in simple link tests
6595 lt_simple_link_test_code='int main(){return(0);}'
6603 # If no C compiler was specified, use CC.
6604 LTCC=${LTCC-"$CC"}
6606 # If no C compiler flags were specified, use CFLAGS.
6607 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6609 # Allow CC to be a program name with arguments.
6610 compiler=$CC
6612 # Save the default compiler, since it gets overwritten when the other
6613 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6614 compiler_DEFAULT=$CC
6616 # save warnings/boilerplate of simple test code
6617 ac_outfile=conftest.$ac_objext
6618 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6619 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6620 _lt_compiler_boilerplate=`cat conftest.err`
6621 $RM conftest*
6623 ac_outfile=conftest.$ac_objext
6624 echo "$lt_simple_link_test_code" >conftest.$ac_ext
6625 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6626 _lt_linker_boilerplate=`cat conftest.err`
6627 $RM -r conftest*
6630 ## CAVEAT EMPTOR:
6631 ## There is no encapsulation within the following macros, do not change
6632 ## the running order or otherwise move them around unless you know exactly
6633 ## what you are doing...
6634 if test -n "$compiler"; then
6636 lt_prog_compiler_no_builtin_flag=
6638 if test "$GCC" = yes; then
6639 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6641 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6642 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6643 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6644 echo $ECHO_N "(cached) $ECHO_C" >&6
6645 else
6646 lt_cv_prog_compiler_rtti_exceptions=no
6647 ac_outfile=conftest.$ac_objext
6648 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6649 lt_compiler_flag="-fno-rtti -fno-exceptions"
6650 # Insert the option either (1) after the last *FLAGS variable, or
6651 # (2) before a word containing "conftest.", or (3) at the end.
6652 # Note that $ac_compile itself does not contain backslashes and begins
6653 # with a dollar sign (not a hyphen), so the echo should work correctly.
6654 # The option is referenced via a variable to avoid confusing sed.
6655 lt_compile=`echo "$ac_compile" | $SED \
6656 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6657 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6658 -e 's:$: $lt_compiler_flag:'`
6659 (eval echo "\"\$as_me:6659: $lt_compile\"" >&5)
6660 (eval "$lt_compile" 2>conftest.err)
6661 ac_status=$?
6662 cat conftest.err >&5
6663 echo "$as_me:6663: \$? = $ac_status" >&5
6664 if (exit $ac_status) && test -s "$ac_outfile"; then
6665 # The compiler can only warn and ignore the option if not recognized
6666 # So say no if there are warnings other than the usual output.
6667 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6668 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6669 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6670 lt_cv_prog_compiler_rtti_exceptions=yes
6673 $RM conftest*
6676 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6677 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6679 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6680 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6681 else
6692 lt_prog_compiler_wl=
6693 lt_prog_compiler_pic=
6694 lt_prog_compiler_static=
6696 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6697 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6699 if test "$GCC" = yes; then
6700 lt_prog_compiler_wl='-Wl,'
6701 lt_prog_compiler_static='-static'
6703 case $host_os in
6704 aix*)
6705 # All AIX code is PIC.
6706 if test "$host_cpu" = ia64; then
6707 # AIX 5 now supports IA64 processor
6708 lt_prog_compiler_static='-Bstatic'
6712 amigaos*)
6713 case $host_cpu in
6714 powerpc)
6715 # see comment about AmigaOS4 .so support
6716 lt_prog_compiler_pic='-fPIC'
6718 m68k)
6719 # FIXME: we need at least 68020 code to build shared libraries, but
6720 # adding the `-m68020' flag to GCC prevents building anything better,
6721 # like `-m68040'.
6722 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6724 esac
6727 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6728 # PIC is the default for these OSes.
6731 mingw* | cygwin* | pw32* | os2* | cegcc*)
6732 # This hack is so that the source file can tell whether it is being
6733 # built for inclusion in a dll (and should export symbols for example).
6734 # Although the cygwin gcc ignores -fPIC, still need this for old-style
6735 # (--disable-auto-import) libraries
6736 lt_prog_compiler_pic='-DDLL_EXPORT'
6739 darwin* | rhapsody*)
6740 # PIC is the default on this platform
6741 # Common symbols not allowed in MH_DYLIB files
6742 lt_prog_compiler_pic='-fno-common'
6745 hpux*)
6746 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
6747 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
6748 # sets the default TLS model and affects inlining.
6749 case $host_cpu in
6750 hppa*64*)
6751 # +Z the default
6754 lt_prog_compiler_pic='-fPIC'
6756 esac
6759 interix[3-9]*)
6760 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6761 # Instead, we relocate shared libraries at runtime.
6764 msdosdjgpp*)
6765 # Just because we use GCC doesn't mean we suddenly get shared libraries
6766 # on systems that don't support them.
6767 lt_prog_compiler_can_build_shared=no
6768 enable_shared=no
6771 *nto* | *qnx*)
6772 # QNX uses GNU C++, but need to define -shared option too, otherwise
6773 # it will coredump.
6774 lt_prog_compiler_pic='-fPIC -shared'
6777 sysv4*MP*)
6778 if test -d /usr/nec; then
6779 lt_prog_compiler_pic=-Kconform_pic
6784 lt_prog_compiler_pic='-fPIC'
6786 esac
6787 else
6788 # PORTME Check for flag to pass linker flags through the system compiler.
6789 case $host_os in
6790 aix*)
6791 lt_prog_compiler_wl='-Wl,'
6792 if test "$host_cpu" = ia64; then
6793 # AIX 5 now supports IA64 processor
6794 lt_prog_compiler_static='-Bstatic'
6795 else
6796 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6800 mingw* | cygwin* | pw32* | os2* | cegcc*)
6801 # This hack is so that the source file can tell whether it is being
6802 # built for inclusion in a dll (and should export symbols for example).
6803 lt_prog_compiler_pic='-DDLL_EXPORT'
6806 hpux9* | hpux10* | hpux11*)
6807 lt_prog_compiler_wl='-Wl,'
6808 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6809 # not for PA HP-UX.
6810 case $host_cpu in
6811 hppa*64*|ia64*)
6812 # +Z the default
6815 lt_prog_compiler_pic='+Z'
6817 esac
6818 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6819 lt_prog_compiler_static='${wl}-a ${wl}archive'
6822 irix5* | irix6* | nonstopux*)
6823 lt_prog_compiler_wl='-Wl,'
6824 # PIC (with -KPIC) is the default.
6825 lt_prog_compiler_static='-non_shared'
6828 linux* | k*bsd*-gnu)
6829 case $cc_basename in
6830 # old Intel for x86_64 which still supported -KPIC.
6831 ecc*)
6832 lt_prog_compiler_wl='-Wl,'
6833 lt_prog_compiler_pic='-KPIC'
6834 lt_prog_compiler_static='-static'
6836 # icc used to be incompatible with GCC.
6837 # ICC 10 doesn't accept -KPIC any more.
6838 icc* | ifort*)
6839 lt_prog_compiler_wl='-Wl,'
6840 lt_prog_compiler_pic='-fPIC'
6841 lt_prog_compiler_static='-static'
6843 # Lahey Fortran 8.1.
6844 lf95*)
6845 lt_prog_compiler_wl='-Wl,'
6846 lt_prog_compiler_pic='--shared'
6847 lt_prog_compiler_static='--static'
6849 pgcc* | pgf77* | pgf90* | pgf95*)
6850 # Portland Group compilers (*not* the Pentium gcc compiler,
6851 # which looks to be a dead project)
6852 lt_prog_compiler_wl='-Wl,'
6853 lt_prog_compiler_pic='-fpic'
6854 lt_prog_compiler_static='-Bstatic'
6856 ccc*)
6857 lt_prog_compiler_wl='-Wl,'
6858 # All Alpha code is PIC.
6859 lt_prog_compiler_static='-non_shared'
6861 xl*)
6862 # IBM XL C 8.0/Fortran 10.1 on PPC
6863 lt_prog_compiler_wl='-Wl,'
6864 lt_prog_compiler_pic='-qpic'
6865 lt_prog_compiler_static='-qstaticlink'
6868 case `$CC -V 2>&1 | sed 5q` in
6869 *Sun\ C*)
6870 # Sun C 5.9
6871 lt_prog_compiler_pic='-KPIC'
6872 lt_prog_compiler_static='-Bstatic'
6873 lt_prog_compiler_wl='-Wl,'
6875 *Sun\ F*)
6876 # Sun Fortran 8.3 passes all unrecognized flags to the linker
6877 lt_prog_compiler_pic='-KPIC'
6878 lt_prog_compiler_static='-Bstatic'
6879 lt_prog_compiler_wl=''
6881 esac
6883 esac
6886 newsos6)
6887 lt_prog_compiler_pic='-KPIC'
6888 lt_prog_compiler_static='-Bstatic'
6891 *nto* | *qnx*)
6892 # QNX uses GNU C++, but need to define -shared option too, otherwise
6893 # it will coredump.
6894 lt_prog_compiler_pic='-fPIC -shared'
6897 osf3* | osf4* | osf5*)
6898 lt_prog_compiler_wl='-Wl,'
6899 # All OSF/1 code is PIC.
6900 lt_prog_compiler_static='-non_shared'
6903 rdos*)
6904 lt_prog_compiler_static='-non_shared'
6907 solaris*)
6908 lt_prog_compiler_pic='-KPIC'
6909 lt_prog_compiler_static='-Bstatic'
6910 case $cc_basename in
6911 f77* | f90* | f95*)
6912 lt_prog_compiler_wl='-Qoption ld ';;
6914 lt_prog_compiler_wl='-Wl,';;
6915 esac
6918 sunos4*)
6919 lt_prog_compiler_wl='-Qoption ld '
6920 lt_prog_compiler_pic='-PIC'
6921 lt_prog_compiler_static='-Bstatic'
6924 sysv4 | sysv4.2uw2* | sysv4.3*)
6925 lt_prog_compiler_wl='-Wl,'
6926 lt_prog_compiler_pic='-KPIC'
6927 lt_prog_compiler_static='-Bstatic'
6930 sysv4*MP*)
6931 if test -d /usr/nec ;then
6932 lt_prog_compiler_pic='-Kconform_pic'
6933 lt_prog_compiler_static='-Bstatic'
6937 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6938 lt_prog_compiler_wl='-Wl,'
6939 lt_prog_compiler_pic='-KPIC'
6940 lt_prog_compiler_static='-Bstatic'
6943 unicos*)
6944 lt_prog_compiler_wl='-Wl,'
6945 lt_prog_compiler_can_build_shared=no
6948 uts4*)
6949 lt_prog_compiler_pic='-pic'
6950 lt_prog_compiler_static='-Bstatic'
6954 lt_prog_compiler_can_build_shared=no
6956 esac
6959 case $host_os in
6960 # For platforms which do not support PIC, -DPIC is meaningless:
6961 *djgpp*)
6962 lt_prog_compiler_pic=
6965 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6967 esac
6968 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6969 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6977 # Check to make sure the PIC flag actually works.
6979 if test -n "$lt_prog_compiler_pic"; then
6980 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6981 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6982 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
6983 echo $ECHO_N "(cached) $ECHO_C" >&6
6984 else
6985 lt_cv_prog_compiler_pic_works=no
6986 ac_outfile=conftest.$ac_objext
6987 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6988 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6989 # Insert the option either (1) after the last *FLAGS variable, or
6990 # (2) before a word containing "conftest.", or (3) at the end.
6991 # Note that $ac_compile itself does not contain backslashes and begins
6992 # with a dollar sign (not a hyphen), so the echo should work correctly.
6993 # The option is referenced via a variable to avoid confusing sed.
6994 lt_compile=`echo "$ac_compile" | $SED \
6995 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6996 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6997 -e 's:$: $lt_compiler_flag:'`
6998 (eval echo "\"\$as_me:6998: $lt_compile\"" >&5)
6999 (eval "$lt_compile" 2>conftest.err)
7000 ac_status=$?
7001 cat conftest.err >&5
7002 echo "$as_me:7002: \$? = $ac_status" >&5
7003 if (exit $ac_status) && test -s "$ac_outfile"; then
7004 # The compiler can only warn and ignore the option if not recognized
7005 # So say no if there are warnings other than the usual output.
7006 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7007 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7008 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7009 lt_cv_prog_compiler_pic_works=yes
7012 $RM conftest*
7015 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7016 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6
7018 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7019 case $lt_prog_compiler_pic in
7020 "" | " "*) ;;
7021 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7022 esac
7023 else
7024 lt_prog_compiler_pic=
7025 lt_prog_compiler_can_build_shared=no
7036 # Check to make sure the static flag actually works.
7038 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7039 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7040 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7041 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7042 echo $ECHO_N "(cached) $ECHO_C" >&6
7043 else
7044 lt_cv_prog_compiler_static_works=no
7045 save_LDFLAGS="$LDFLAGS"
7046 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7047 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7048 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7049 # The linker can only warn and ignore the option if not recognized
7050 # So say no if there are warnings
7051 if test -s conftest.err; then
7052 # Append any errors to the config.log.
7053 cat conftest.err 1>&5
7054 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7055 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7056 if diff conftest.exp conftest.er2 >/dev/null; then
7057 lt_cv_prog_compiler_static_works=yes
7059 else
7060 lt_cv_prog_compiler_static_works=yes
7063 $RM -r conftest*
7064 LDFLAGS="$save_LDFLAGS"
7067 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7068 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6
7070 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7072 else
7073 lt_prog_compiler_static=
7082 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7083 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7084 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7085 echo $ECHO_N "(cached) $ECHO_C" >&6
7086 else
7087 lt_cv_prog_compiler_c_o=no
7088 $RM -r conftest 2>/dev/null
7089 mkdir conftest
7090 cd conftest
7091 mkdir out
7092 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7094 lt_compiler_flag="-o out/conftest2.$ac_objext"
7095 # Insert the option either (1) after the last *FLAGS variable, or
7096 # (2) before a word containing "conftest.", or (3) at the end.
7097 # Note that $ac_compile itself does not contain backslashes and begins
7098 # with a dollar sign (not a hyphen), so the echo should work correctly.
7099 lt_compile=`echo "$ac_compile" | $SED \
7100 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7101 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7102 -e 's:$: $lt_compiler_flag:'`
7103 (eval echo "\"\$as_me:7103: $lt_compile\"" >&5)
7104 (eval "$lt_compile" 2>out/conftest.err)
7105 ac_status=$?
7106 cat out/conftest.err >&5
7107 echo "$as_me:7107: \$? = $ac_status" >&5
7108 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7109 then
7110 # The compiler can only warn and ignore the option if not recognized
7111 # So say no if there are warnings
7112 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7113 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7114 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7115 lt_cv_prog_compiler_c_o=yes
7118 chmod u+w . 2>&5
7119 $RM conftest*
7120 # SGI C++ compiler will create directory out/ii_files/ for
7121 # template instantiation
7122 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7123 $RM out/* && rmdir out
7124 cd ..
7125 $RM -r conftest
7126 $RM conftest*
7129 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7130 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7137 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7138 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7139 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7140 echo $ECHO_N "(cached) $ECHO_C" >&6
7141 else
7142 lt_cv_prog_compiler_c_o=no
7143 $RM -r conftest 2>/dev/null
7144 mkdir conftest
7145 cd conftest
7146 mkdir out
7147 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7149 lt_compiler_flag="-o out/conftest2.$ac_objext"
7150 # Insert the option either (1) after the last *FLAGS variable, or
7151 # (2) before a word containing "conftest.", or (3) at the end.
7152 # Note that $ac_compile itself does not contain backslashes and begins
7153 # with a dollar sign (not a hyphen), so the echo should work correctly.
7154 lt_compile=`echo "$ac_compile" | $SED \
7155 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7156 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7157 -e 's:$: $lt_compiler_flag:'`
7158 (eval echo "\"\$as_me:7158: $lt_compile\"" >&5)
7159 (eval "$lt_compile" 2>out/conftest.err)
7160 ac_status=$?
7161 cat out/conftest.err >&5
7162 echo "$as_me:7162: \$? = $ac_status" >&5
7163 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7164 then
7165 # The compiler can only warn and ignore the option if not recognized
7166 # So say no if there are warnings
7167 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7168 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7169 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7170 lt_cv_prog_compiler_c_o=yes
7173 chmod u+w . 2>&5
7174 $RM conftest*
7175 # SGI C++ compiler will create directory out/ii_files/ for
7176 # template instantiation
7177 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7178 $RM out/* && rmdir out
7179 cd ..
7180 $RM -r conftest
7181 $RM conftest*
7184 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7185 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7190 hard_links="nottested"
7191 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7192 # do not overwrite the value of need_locks provided by the user
7193 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7194 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7195 hard_links=yes
7196 $RM conftest*
7197 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7198 touch conftest.a
7199 ln conftest.a conftest.b 2>&5 || hard_links=no
7200 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7201 echo "$as_me:$LINENO: result: $hard_links" >&5
7202 echo "${ECHO_T}$hard_links" >&6
7203 if test "$hard_links" = no; then
7204 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7205 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7206 need_locks=warn
7208 else
7209 need_locks=no
7217 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7218 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7220 runpath_var=
7221 allow_undefined_flag=
7222 always_export_symbols=no
7223 archive_cmds=
7224 archive_expsym_cmds=
7225 compiler_needs_object=no
7226 enable_shared_with_static_runtimes=no
7227 export_dynamic_flag_spec=
7228 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7229 hardcode_automatic=no
7230 hardcode_direct=no
7231 hardcode_direct_absolute=no
7232 hardcode_libdir_flag_spec=
7233 hardcode_libdir_flag_spec_ld=
7234 hardcode_libdir_separator=
7235 hardcode_minus_L=no
7236 hardcode_shlibpath_var=unsupported
7237 inherit_rpath=no
7238 link_all_deplibs=unknown
7239 module_cmds=
7240 module_expsym_cmds=
7241 old_archive_from_new_cmds=
7242 old_archive_from_expsyms_cmds=
7243 thread_safe_flag_spec=
7244 whole_archive_flag_spec=
7245 # include_expsyms should be a list of space-separated symbols to be *always*
7246 # included in the symbol list
7247 include_expsyms=
7248 # exclude_expsyms can be an extended regexp of symbols to exclude
7249 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7250 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7251 # as well as any symbol that contains `d'.
7252 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7253 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7254 # platforms (ab)use it in PIC code, but their linkers get confused if
7255 # the symbol is explicitly referenced. Since portable code cannot
7256 # rely on this symbol name, it's probably fine to never include it in
7257 # preloaded symbol tables.
7258 # Exclude shared library initialization/finalization symbols.
7259 extract_expsyms_cmds=
7261 case $host_os in
7262 cygwin* | mingw* | pw32* | cegcc*)
7263 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7264 # When not using gcc, we currently assume that we are using
7265 # Microsoft Visual C++.
7266 if test "$GCC" != yes; then
7267 with_gnu_ld=no
7270 interix*)
7271 # we just hope/assume this is gcc and not c89 (= MSVC++)
7272 with_gnu_ld=yes
7274 openbsd*)
7275 with_gnu_ld=no
7277 esac
7279 ld_shlibs=yes
7280 if test "$with_gnu_ld" = yes; then
7281 # If archive_cmds runs LD, not CC, wlarc should be empty
7282 wlarc='${wl}'
7284 # Set some defaults for GNU ld with shared library support. These
7285 # are reset later if shared libraries are not supported. Putting them
7286 # here allows them to be overridden if necessary.
7287 runpath_var=LD_RUN_PATH
7288 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7289 export_dynamic_flag_spec='${wl}--export-dynamic'
7290 # ancient GNU ld didn't support --whole-archive et. al.
7291 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7292 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7293 else
7294 whole_archive_flag_spec=
7296 supports_anon_versioning=no
7297 case `$LD -v 2>&1` in
7298 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7299 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7300 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7301 *\ 2.11.*) ;; # other 2.11 versions
7302 *) supports_anon_versioning=yes ;;
7303 esac
7305 # See if GNU ld supports shared libraries.
7306 case $host_os in
7307 aix[3-9]*)
7308 # On AIX/PPC, the GNU linker is very broken
7309 if test "$host_cpu" != ia64; then
7310 ld_shlibs=no
7311 cat <<_LT_EOF 1>&2
7313 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7314 *** to be unable to reliably create shared libraries on AIX.
7315 *** Therefore, libtool is disabling shared libraries support. If you
7316 *** really care for shared libraries, you may want to modify your PATH
7317 *** so that a non-GNU linker is found, and then restart.
7319 _LT_EOF
7323 amigaos*)
7324 case $host_cpu in
7325 powerpc)
7326 # see comment about AmigaOS4 .so support
7327 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7328 archive_expsym_cmds=''
7330 m68k)
7331 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)'
7332 hardcode_libdir_flag_spec='-L$libdir'
7333 hardcode_minus_L=yes
7335 esac
7338 beos*)
7339 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7340 allow_undefined_flag=unsupported
7341 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7342 # support --undefined. This deserves some investigation. FIXME
7343 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7344 else
7345 ld_shlibs=no
7349 cygwin* | mingw* | pw32* | cegcc*)
7350 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7351 # as there is no search path for DLLs.
7352 hardcode_libdir_flag_spec='-L$libdir'
7353 allow_undefined_flag=unsupported
7354 always_export_symbols=no
7355 enable_shared_with_static_runtimes=yes
7356 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7358 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7359 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7360 # If the export-symbols file already is a .def file (1st line
7361 # is EXPORTS), use it as is; otherwise, prepend...
7362 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7363 cp $export_symbols $output_objdir/$soname.def;
7364 else
7365 echo EXPORTS > $output_objdir/$soname.def;
7366 cat $export_symbols >> $output_objdir/$soname.def;
7368 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7369 else
7370 ld_shlibs=no
7374 interix[3-9]*)
7375 hardcode_direct=no
7376 hardcode_shlibpath_var=no
7377 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7378 export_dynamic_flag_spec='${wl}-E'
7379 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7380 # Instead, shared libraries are loaded at an image base (0x10000000 by
7381 # default) and relocated if they conflict, which is a slow very memory
7382 # consuming and fragmenting process. To avoid this, we pick a random,
7383 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7384 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7385 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7386 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'
7389 gnu* | linux* | tpf* | k*bsd*-gnu)
7390 tmp_diet=no
7391 if test "$host_os" = linux-dietlibc; then
7392 case $cc_basename in
7393 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7394 esac
7396 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7397 && test "$tmp_diet" = no
7398 then
7399 tmp_addflag=
7400 tmp_sharedflag='-shared'
7401 case $cc_basename,$host_cpu in
7402 pgcc*) # Portland Group C compiler
7403 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'
7404 tmp_addflag=' $pic_flag'
7406 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7407 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'
7408 tmp_addflag=' $pic_flag -Mnomain' ;;
7409 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7410 tmp_addflag=' -i_dynamic' ;;
7411 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7412 tmp_addflag=' -i_dynamic -nofor_main' ;;
7413 ifc* | ifort*) # Intel Fortran compiler
7414 tmp_addflag=' -nofor_main' ;;
7415 lf95*) # Lahey Fortran 8.1
7416 whole_archive_flag_spec=
7417 tmp_sharedflag='--shared' ;;
7418 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
7419 tmp_sharedflag='-qmkshrobj'
7420 tmp_addflag= ;;
7421 esac
7422 case `$CC -V 2>&1 | sed 5q` in
7423 *Sun\ C*) # Sun C 5.9
7424 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7425 compiler_needs_object=yes
7426 tmp_sharedflag='-G' ;;
7427 *Sun\ F*) # Sun Fortran 8.3
7428 tmp_sharedflag='-G' ;;
7429 esac
7430 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7432 if test "x$supports_anon_versioning" = xyes; then
7433 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7434 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7435 echo "local: *; };" >> $output_objdir/$libname.ver~
7436 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7439 case $cc_basename in
7440 xlf*)
7441 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
7442 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
7443 hardcode_libdir_flag_spec=
7444 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7445 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
7446 if test "x$supports_anon_versioning" = xyes; then
7447 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7448 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7449 echo "local: *; };" >> $output_objdir/$libname.ver~
7450 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
7453 esac
7454 else
7455 ld_shlibs=no
7459 netbsd*)
7460 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7461 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7462 wlarc=
7463 else
7464 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7465 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7469 solaris*)
7470 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7471 ld_shlibs=no
7472 cat <<_LT_EOF 1>&2
7474 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7475 *** create shared libraries on Solaris systems. Therefore, libtool
7476 *** is disabling shared libraries support. We urge you to upgrade GNU
7477 *** binutils to release 2.9.1 or newer. Another option is to modify
7478 *** your PATH or compiler configuration so that the native linker is
7479 *** used, and then restart.
7481 _LT_EOF
7482 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7483 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7484 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7485 else
7486 ld_shlibs=no
7490 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7491 case `$LD -v 2>&1` in
7492 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7493 ld_shlibs=no
7494 cat <<_LT_EOF 1>&2
7496 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7497 *** reliably create shared libraries on SCO systems. Therefore, libtool
7498 *** is disabling shared libraries support. We urge you to upgrade GNU
7499 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7500 *** your PATH or compiler configuration so that the native linker is
7501 *** used, and then restart.
7503 _LT_EOF
7506 # For security reasons, it is highly recommended that you always
7507 # use absolute paths for naming shared libraries, and exclude the
7508 # DT_RUNPATH tag from executables and libraries. But doing so
7509 # requires that you compile everything twice, which is a pain.
7510 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7511 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7512 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7513 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7514 else
7515 ld_shlibs=no
7518 esac
7521 sunos4*)
7522 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7523 wlarc=
7524 hardcode_direct=yes
7525 hardcode_shlibpath_var=no
7529 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7530 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7531 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7532 else
7533 ld_shlibs=no
7536 esac
7538 if test "$ld_shlibs" = no; then
7539 runpath_var=
7540 hardcode_libdir_flag_spec=
7541 export_dynamic_flag_spec=
7542 whole_archive_flag_spec=
7544 else
7545 # PORTME fill in a description of your system's linker (not GNU ld)
7546 case $host_os in
7547 aix3*)
7548 allow_undefined_flag=unsupported
7549 always_export_symbols=yes
7550 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'
7551 # Note: this linker hardcodes the directories in LIBPATH if there
7552 # are no directories specified by -L.
7553 hardcode_minus_L=yes
7554 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7555 # Neither direct hardcoding nor static linking is supported with a
7556 # broken collect2.
7557 hardcode_direct=unsupported
7561 aix[4-9]*)
7562 if test "$host_cpu" = ia64; then
7563 # On IA64, the linker does run time linking by default, so we don't
7564 # have to do anything special.
7565 aix_use_runtimelinking=no
7566 exp_sym_flag='-Bexport'
7567 no_entry_flag=""
7568 else
7569 # If we're using GNU nm, then we don't want the "-C" option.
7570 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7571 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7572 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'
7573 else
7574 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'
7576 aix_use_runtimelinking=no
7578 # Test if we are trying to use run time linking or normal
7579 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7580 # need to do runtime linking.
7581 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
7582 for ld_flag in $LDFLAGS; do
7583 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7584 aix_use_runtimelinking=yes
7585 break
7587 done
7589 esac
7591 exp_sym_flag='-bexport'
7592 no_entry_flag='-bnoentry'
7595 # When large executables or shared objects are built, AIX ld can
7596 # have problems creating the table of contents. If linking a library
7597 # or program results in "error TOC overflow" add -mminimal-toc to
7598 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7599 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7601 archive_cmds=''
7602 hardcode_direct=yes
7603 hardcode_direct_absolute=yes
7604 hardcode_libdir_separator=':'
7605 link_all_deplibs=yes
7606 file_list_spec='${wl}-f,'
7608 if test "$GCC" = yes; then
7609 case $host_os in aix4.[012]|aix4.[012].*)
7610 # We only want to do this on AIX 4.2 and lower, the check
7611 # below for broken collect2 doesn't work under 4.3+
7612 collect2name=`${CC} -print-prog-name=collect2`
7613 if test -f "$collect2name" &&
7614 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7615 then
7616 # We have reworked collect2
7618 else
7619 # We have old collect2
7620 hardcode_direct=unsupported
7621 # It fails to find uninstalled libraries when the uninstalled
7622 # path is not listed in the libpath. Setting hardcode_minus_L
7623 # to unsupported forces relinking
7624 hardcode_minus_L=yes
7625 hardcode_libdir_flag_spec='-L$libdir'
7626 hardcode_libdir_separator=
7629 esac
7630 shared_flag='-shared'
7631 if test "$aix_use_runtimelinking" = yes; then
7632 shared_flag="$shared_flag "'${wl}-G'
7634 else
7635 # not using gcc
7636 if test "$host_cpu" = ia64; then
7637 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7638 # chokes on -Wl,-G. The following line is correct:
7639 shared_flag='-G'
7640 else
7641 if test "$aix_use_runtimelinking" = yes; then
7642 shared_flag='${wl}-G'
7643 else
7644 shared_flag='${wl}-bM:SRE'
7649 export_dynamic_flag_spec='${wl}-bexpall'
7650 # It seems that -bexpall does not export symbols beginning with
7651 # underscore (_), so it is better to generate a list of symbols to export.
7652 always_export_symbols=yes
7653 if test "$aix_use_runtimelinking" = yes; then
7654 # Warning - without using the other runtime loading flags (-brtl),
7655 # -berok will link without error, but may produce a broken library.
7656 allow_undefined_flag='-berok'
7657 # Determine the default libpath from the value encoded in an
7658 # empty executable.
7659 if test x$gcc_no_link = xyes; then
7660 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7661 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7662 { (exit 1); exit 1; }; }
7664 cat >conftest.$ac_ext <<_ACEOF
7665 /* confdefs.h. */
7666 _ACEOF
7667 cat confdefs.h >>conftest.$ac_ext
7668 cat >>conftest.$ac_ext <<_ACEOF
7669 /* end confdefs.h. */
7672 main ()
7676 return 0;
7678 _ACEOF
7679 rm -f conftest.$ac_objext conftest$ac_exeext
7680 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7681 (eval $ac_link) 2>conftest.er1
7682 ac_status=$?
7683 grep -v '^ *+' conftest.er1 >conftest.err
7684 rm -f conftest.er1
7685 cat conftest.err >&5
7686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7687 (exit $ac_status); } &&
7688 { ac_try='test -z "$ac_c_werror_flag"
7689 || test ! -s conftest.err'
7690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7691 (eval $ac_try) 2>&5
7692 ac_status=$?
7693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7694 (exit $ac_status); }; } &&
7695 { ac_try='test -s conftest$ac_exeext'
7696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7697 (eval $ac_try) 2>&5
7698 ac_status=$?
7699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7700 (exit $ac_status); }; }; then
7702 lt_aix_libpath_sed='
7703 /Import File Strings/,/^$/ {
7704 /^0/ {
7705 s/^0 *\(.*\)$/\1/
7709 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7710 # Check for a 64-bit object if we didn't find anything.
7711 if test -z "$aix_libpath"; then
7712 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7714 else
7715 echo "$as_me: failed program was:" >&5
7716 sed 's/^/| /' conftest.$ac_ext >&5
7719 rm -f conftest.err conftest.$ac_objext \
7720 conftest$ac_exeext conftest.$ac_ext
7721 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7723 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7724 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 "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7725 else
7726 if test "$host_cpu" = ia64; then
7727 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7728 allow_undefined_flag="-z nodefs"
7729 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"
7730 else
7731 # Determine the default libpath from the value encoded in an
7732 # empty executable.
7733 if test x$gcc_no_link = xyes; then
7734 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7735 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7736 { (exit 1); exit 1; }; }
7738 cat >conftest.$ac_ext <<_ACEOF
7739 /* confdefs.h. */
7740 _ACEOF
7741 cat confdefs.h >>conftest.$ac_ext
7742 cat >>conftest.$ac_ext <<_ACEOF
7743 /* end confdefs.h. */
7746 main ()
7750 return 0;
7752 _ACEOF
7753 rm -f conftest.$ac_objext conftest$ac_exeext
7754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7755 (eval $ac_link) 2>conftest.er1
7756 ac_status=$?
7757 grep -v '^ *+' conftest.er1 >conftest.err
7758 rm -f conftest.er1
7759 cat conftest.err >&5
7760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7761 (exit $ac_status); } &&
7762 { ac_try='test -z "$ac_c_werror_flag"
7763 || test ! -s conftest.err'
7764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7765 (eval $ac_try) 2>&5
7766 ac_status=$?
7767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7768 (exit $ac_status); }; } &&
7769 { ac_try='test -s conftest$ac_exeext'
7770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7771 (eval $ac_try) 2>&5
7772 ac_status=$?
7773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7774 (exit $ac_status); }; }; then
7776 lt_aix_libpath_sed='
7777 /Import File Strings/,/^$/ {
7778 /^0/ {
7779 s/^0 *\(.*\)$/\1/
7783 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7784 # Check for a 64-bit object if we didn't find anything.
7785 if test -z "$aix_libpath"; then
7786 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7788 else
7789 echo "$as_me: failed program was:" >&5
7790 sed 's/^/| /' conftest.$ac_ext >&5
7793 rm -f conftest.err conftest.$ac_objext \
7794 conftest$ac_exeext conftest.$ac_ext
7795 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7797 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7798 # Warning - without using the other run time loading flags,
7799 # -berok will link without error, but may produce a broken library.
7800 no_undefined_flag=' ${wl}-bernotok'
7801 allow_undefined_flag=' ${wl}-berok'
7802 # Exported symbols can be pulled into shared objects from archives
7803 whole_archive_flag_spec='$convenience'
7804 archive_cmds_need_lc=yes
7805 # This is similar to how AIX traditionally builds its shared libraries.
7806 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'
7811 amigaos*)
7812 case $host_cpu in
7813 powerpc)
7814 # see comment about AmigaOS4 .so support
7815 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7816 archive_expsym_cmds=''
7818 m68k)
7819 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)'
7820 hardcode_libdir_flag_spec='-L$libdir'
7821 hardcode_minus_L=yes
7823 esac
7826 bsdi[45]*)
7827 export_dynamic_flag_spec=-rdynamic
7830 cygwin* | mingw* | pw32* | cegcc*)
7831 # When not using gcc, we currently assume that we are using
7832 # Microsoft Visual C++.
7833 # hardcode_libdir_flag_spec is actually meaningless, as there is
7834 # no search path for DLLs.
7835 hardcode_libdir_flag_spec=' '
7836 allow_undefined_flag=unsupported
7837 # Tell ltmain to make .lib files, not .a files.
7838 libext=lib
7839 # Tell ltmain to make .dll files, not .so files.
7840 shrext_cmds=".dll"
7841 # FIXME: Setting linknames here is a bad hack.
7842 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
7843 # The linker will automatically build a .lib file if we build a DLL.
7844 old_archive_from_new_cmds='true'
7845 # FIXME: Should let the user specify the lib program.
7846 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
7847 fix_srcfile_path='`cygpath -w "$srcfile"`'
7848 enable_shared_with_static_runtimes=yes
7851 darwin* | rhapsody*)
7854 archive_cmds_need_lc=no
7855 hardcode_direct=no
7856 hardcode_automatic=yes
7857 hardcode_shlibpath_var=unsupported
7858 whole_archive_flag_spec=''
7859 link_all_deplibs=yes
7860 allow_undefined_flag="$_lt_dar_allow_undefined"
7861 case $cc_basename in
7862 ifort*) _lt_dar_can_shared=yes ;;
7863 *) _lt_dar_can_shared=$GCC ;;
7864 esac
7865 if test "$_lt_dar_can_shared" = "yes"; then
7866 output_verbose_link_cmd=echo
7867 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
7868 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
7869 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
7870 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
7872 else
7873 ld_shlibs=no
7878 dgux*)
7879 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7880 hardcode_libdir_flag_spec='-L$libdir'
7881 hardcode_shlibpath_var=no
7884 freebsd1*)
7885 ld_shlibs=no
7888 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7889 # support. Future versions do this automatically, but an explicit c++rt0.o
7890 # does not break anything, and helps significantly (at the cost of a little
7891 # extra space).
7892 freebsd2.2*)
7893 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7894 hardcode_libdir_flag_spec='-R$libdir'
7895 hardcode_direct=yes
7896 hardcode_shlibpath_var=no
7899 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7900 freebsd2*)
7901 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7902 hardcode_direct=yes
7903 hardcode_minus_L=yes
7904 hardcode_shlibpath_var=no
7907 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7908 freebsd* | dragonfly*)
7909 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7910 hardcode_libdir_flag_spec='-R$libdir'
7911 hardcode_direct=yes
7912 hardcode_shlibpath_var=no
7915 hpux9*)
7916 if test "$GCC" = yes; then
7917 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'
7918 else
7919 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'
7921 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7922 hardcode_libdir_separator=:
7923 hardcode_direct=yes
7925 # hardcode_minus_L: Not really in the search PATH,
7926 # but as the default location of the library.
7927 hardcode_minus_L=yes
7928 export_dynamic_flag_spec='${wl}-E'
7931 hpux10*)
7932 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7933 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7934 else
7935 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7937 if test "$with_gnu_ld" = no; then
7938 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7939 hardcode_libdir_flag_spec_ld='+b $libdir'
7940 hardcode_libdir_separator=:
7941 hardcode_direct=yes
7942 hardcode_direct_absolute=yes
7943 export_dynamic_flag_spec='${wl}-E'
7944 # hardcode_minus_L: Not really in the search PATH,
7945 # but as the default location of the library.
7946 hardcode_minus_L=yes
7950 hpux11*)
7951 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7952 case $host_cpu in
7953 hppa*64*)
7954 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7956 ia64*)
7957 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7960 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7962 esac
7963 else
7964 case $host_cpu in
7965 hppa*64*)
7966 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7968 ia64*)
7969 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7972 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7974 esac
7976 if test "$with_gnu_ld" = no; then
7977 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7978 hardcode_libdir_separator=:
7980 case $host_cpu in
7981 hppa*64*|ia64*)
7982 hardcode_direct=no
7983 hardcode_shlibpath_var=no
7986 hardcode_direct=yes
7987 hardcode_direct_absolute=yes
7988 export_dynamic_flag_spec='${wl}-E'
7990 # hardcode_minus_L: Not really in the search PATH,
7991 # but as the default location of the library.
7992 hardcode_minus_L=yes
7994 esac
7998 irix5* | irix6* | nonstopux*)
7999 if test "$GCC" = yes; then
8000 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8001 # Try to use the -exported_symbol ld option, if it does not
8002 # work, assume that -exports_file does not work either and
8003 # implicitly export all symbols.
8004 save_LDFLAGS="$LDFLAGS"
8005 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8006 if test x$gcc_no_link = xyes; then
8007 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8008 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8009 { (exit 1); exit 1; }; }
8011 cat >conftest.$ac_ext <<_ACEOF
8012 int foo(void) {}
8013 _ACEOF
8014 rm -f conftest.$ac_objext conftest$ac_exeext
8015 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8016 (eval $ac_link) 2>conftest.er1
8017 ac_status=$?
8018 grep -v '^ *+' conftest.er1 >conftest.err
8019 rm -f conftest.er1
8020 cat conftest.err >&5
8021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8022 (exit $ac_status); } &&
8023 { ac_try='test -z "$ac_c_werror_flag"
8024 || test ! -s conftest.err'
8025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8026 (eval $ac_try) 2>&5
8027 ac_status=$?
8028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8029 (exit $ac_status); }; } &&
8030 { ac_try='test -s conftest$ac_exeext'
8031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8032 (eval $ac_try) 2>&5
8033 ac_status=$?
8034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8035 (exit $ac_status); }; }; then
8036 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
8038 else
8039 echo "$as_me: failed program was:" >&5
8040 sed 's/^/| /' conftest.$ac_ext >&5
8043 rm -f conftest.err conftest.$ac_objext \
8044 conftest$ac_exeext conftest.$ac_ext
8045 LDFLAGS="$save_LDFLAGS"
8046 else
8047 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8048 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
8050 archive_cmds_need_lc='no'
8051 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8052 hardcode_libdir_separator=:
8053 inherit_rpath=yes
8054 link_all_deplibs=yes
8057 netbsd*)
8058 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8059 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8060 else
8061 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8063 hardcode_libdir_flag_spec='-R$libdir'
8064 hardcode_direct=yes
8065 hardcode_shlibpath_var=no
8068 newsos6)
8069 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8070 hardcode_direct=yes
8071 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8072 hardcode_libdir_separator=:
8073 hardcode_shlibpath_var=no
8076 *nto* | *qnx*)
8079 openbsd*)
8080 if test -f /usr/libexec/ld.so; then
8081 hardcode_direct=yes
8082 hardcode_shlibpath_var=no
8083 hardcode_direct_absolute=yes
8084 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8085 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8086 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8087 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8088 export_dynamic_flag_spec='${wl}-E'
8089 else
8090 case $host_os in
8091 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8092 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8093 hardcode_libdir_flag_spec='-R$libdir'
8096 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8097 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8099 esac
8101 else
8102 ld_shlibs=no
8106 os2*)
8107 hardcode_libdir_flag_spec='-L$libdir'
8108 hardcode_minus_L=yes
8109 allow_undefined_flag=unsupported
8110 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'
8111 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8114 osf3*)
8115 if test "$GCC" = yes; then
8116 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8117 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8118 else
8119 allow_undefined_flag=' -expect_unresolved \*'
8120 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8122 archive_cmds_need_lc='no'
8123 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8124 hardcode_libdir_separator=:
8127 osf4* | osf5*) # as osf3* with the addition of -msym flag
8128 if test "$GCC" = yes; then
8129 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8130 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8131 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8132 else
8133 allow_undefined_flag=' -expect_unresolved \*'
8134 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8135 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
8136 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
8138 # Both c and cxx compiler support -rpath directly
8139 hardcode_libdir_flag_spec='-rpath $libdir'
8141 archive_cmds_need_lc='no'
8142 hardcode_libdir_separator=:
8145 solaris*)
8146 no_undefined_flag=' -z defs'
8147 if test "$GCC" = yes; then
8148 wlarc='${wl}'
8149 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8150 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8151 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8152 else
8153 case `$CC -V 2>&1` in
8154 *"Compilers 5.0"*)
8155 wlarc=''
8156 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8157 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8158 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8161 wlarc='${wl}'
8162 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8163 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8164 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8166 esac
8168 hardcode_libdir_flag_spec='-R$libdir'
8169 hardcode_shlibpath_var=no
8170 case $host_os in
8171 solaris2.[0-5] | solaris2.[0-5].*) ;;
8173 # The compiler driver will combine and reorder linker options,
8174 # but understands `-z linker_flag'. GCC discards it without `$wl',
8175 # but is careful enough not to reorder.
8176 # Supported since Solaris 2.6 (maybe 2.5.1?)
8177 if test "$GCC" = yes; then
8178 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8179 else
8180 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8183 esac
8184 link_all_deplibs=yes
8187 sunos4*)
8188 if test "x$host_vendor" = xsequent; then
8189 # Use $CC to link under sequent, because it throws in some extra .o
8190 # files that make .init and .fini sections work.
8191 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8192 else
8193 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8195 hardcode_libdir_flag_spec='-L$libdir'
8196 hardcode_direct=yes
8197 hardcode_minus_L=yes
8198 hardcode_shlibpath_var=no
8201 sysv4)
8202 case $host_vendor in
8203 sni)
8204 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8205 hardcode_direct=yes # is this really true???
8207 siemens)
8208 ## LD is ld it makes a PLAMLIB
8209 ## CC just makes a GrossModule.
8210 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8211 reload_cmds='$CC -r -o $output$reload_objs'
8212 hardcode_direct=no
8214 motorola)
8215 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8216 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8218 esac
8219 runpath_var='LD_RUN_PATH'
8220 hardcode_shlibpath_var=no
8223 sysv4.3*)
8224 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8225 hardcode_shlibpath_var=no
8226 export_dynamic_flag_spec='-Bexport'
8229 sysv4*MP*)
8230 if test -d /usr/nec; then
8231 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8232 hardcode_shlibpath_var=no
8233 runpath_var=LD_RUN_PATH
8234 hardcode_runpath_var=yes
8235 ld_shlibs=yes
8239 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8240 no_undefined_flag='${wl}-z,text'
8241 archive_cmds_need_lc=no
8242 hardcode_shlibpath_var=no
8243 runpath_var='LD_RUN_PATH'
8245 if test "$GCC" = yes; then
8246 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8247 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8248 else
8249 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8250 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8254 sysv5* | sco3.2v5* | sco5v6*)
8255 # Note: We can NOT use -z defs as we might desire, because we do not
8256 # link with -lc, and that would cause any symbols used from libc to
8257 # always be unresolved, which means just about no library would
8258 # ever link correctly. If we're not using GNU ld we use -z text
8259 # though, which does catch some bad symbols but isn't as heavy-handed
8260 # as -z defs.
8261 no_undefined_flag='${wl}-z,text'
8262 allow_undefined_flag='${wl}-z,nodefs'
8263 archive_cmds_need_lc=no
8264 hardcode_shlibpath_var=no
8265 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8266 hardcode_libdir_separator=':'
8267 link_all_deplibs=yes
8268 export_dynamic_flag_spec='${wl}-Bexport'
8269 runpath_var='LD_RUN_PATH'
8271 if test "$GCC" = yes; then
8272 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8273 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8274 else
8275 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8276 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8280 uts4*)
8281 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8282 hardcode_libdir_flag_spec='-L$libdir'
8283 hardcode_shlibpath_var=no
8287 ld_shlibs=no
8289 esac
8291 if test x$host_vendor = xsni; then
8292 case $host in
8293 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8294 export_dynamic_flag_spec='${wl}-Blargedynsym'
8296 esac
8300 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8301 echo "${ECHO_T}$ld_shlibs" >&6
8302 test "$ld_shlibs" = no && can_build_shared=no
8304 with_gnu_ld=$with_gnu_ld
8321 # Do we need to explicitly link libc?
8323 case "x$archive_cmds_need_lc" in
8324 x|xyes)
8325 # Assume -lc should be added
8326 archive_cmds_need_lc=yes
8328 if test "$enable_shared" = yes && test "$GCC" = yes; then
8329 case $archive_cmds in
8330 *'~'*)
8331 # FIXME: we may have to deal with multi-command sequences.
8333 '$CC '*)
8334 # Test whether the compiler implicitly links with -lc since on some
8335 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8336 # to ld, don't add -lc before -lgcc.
8337 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8338 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8339 $RM conftest*
8340 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8343 (eval $ac_compile) 2>&5
8344 ac_status=$?
8345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8346 (exit $ac_status); } 2>conftest.err; then
8347 soname=conftest
8348 lib=conftest
8349 libobjs=conftest.$ac_objext
8350 deplibs=
8351 wl=$lt_prog_compiler_wl
8352 pic_flag=$lt_prog_compiler_pic
8353 compiler_flags=-v
8354 linker_flags=-v
8355 verstring=
8356 output_objdir=.
8357 libname=conftest
8358 lt_save_allow_undefined_flag=$allow_undefined_flag
8359 allow_undefined_flag=
8360 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
8361 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8362 ac_status=$?
8363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8364 (exit $ac_status); }
8365 then
8366 archive_cmds_need_lc=no
8367 else
8368 archive_cmds_need_lc=yes
8370 allow_undefined_flag=$lt_save_allow_undefined_flag
8371 else
8372 cat conftest.err 1>&5
8374 $RM conftest*
8375 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8376 echo "${ECHO_T}$archive_cmds_need_lc" >&6
8378 esac
8381 esac
8539 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8540 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8542 if test "$GCC" = yes; then
8543 case $host_os in
8544 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8545 *) lt_awk_arg="/^libraries:/" ;;
8546 esac
8547 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8548 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8549 # if the path contains ";" then we assume it to be the separator
8550 # otherwise default to the standard path separator (i.e. ":") - it is
8551 # assumed that no part of a normal pathname contains ";" but that should
8552 # okay in the real world where ";" in dirpaths is itself problematic.
8553 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8554 else
8555 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8557 # Ok, now we have the path, separated by spaces, we can step through it
8558 # and add multilib dir if necessary.
8559 lt_tmp_lt_search_path_spec=
8560 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8561 for lt_sys_path in $lt_search_path_spec; do
8562 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8563 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8564 else
8565 test -d "$lt_sys_path" && \
8566 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8568 done
8569 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8570 BEGIN {RS=" "; FS="/|\n";} {
8571 lt_foo="";
8572 lt_count=0;
8573 for (lt_i = NF; lt_i > 0; lt_i--) {
8574 if ($lt_i != "" && $lt_i != ".") {
8575 if ($lt_i == "..") {
8576 lt_count++;
8577 } else {
8578 if (lt_count == 0) {
8579 lt_foo="/" $lt_i lt_foo;
8580 } else {
8581 lt_count--;
8586 if (lt_foo != "") { lt_freq[lt_foo]++; }
8587 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8589 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8590 else
8591 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8593 library_names_spec=
8594 libname_spec='lib$name'
8595 soname_spec=
8596 shrext_cmds=".so"
8597 postinstall_cmds=
8598 postuninstall_cmds=
8599 finish_cmds=
8600 finish_eval=
8601 shlibpath_var=
8602 shlibpath_overrides_runpath=unknown
8603 version_type=none
8604 dynamic_linker="$host_os ld.so"
8605 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8606 need_lib_prefix=unknown
8607 hardcode_into_libs=no
8609 # when you set need_version to no, make sure it does not cause -set_version
8610 # flags to be left without arguments
8611 need_version=unknown
8613 case $host_os in
8614 aix3*)
8615 version_type=linux
8616 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8617 shlibpath_var=LIBPATH
8619 # AIX 3 has no versioning support, so we append a major version to the name.
8620 soname_spec='${libname}${release}${shared_ext}$major'
8623 aix[4-9]*)
8624 version_type=linux
8625 need_lib_prefix=no
8626 need_version=no
8627 hardcode_into_libs=yes
8628 if test "$host_cpu" = ia64; then
8629 # AIX 5 supports IA64
8630 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8631 shlibpath_var=LD_LIBRARY_PATH
8632 else
8633 # With GCC up to 2.95.x, collect2 would create an import file
8634 # for dependence libraries. The import file would start with
8635 # the line `#! .'. This would cause the generated library to
8636 # depend on `.', always an invalid library. This was fixed in
8637 # development snapshots of GCC prior to 3.0.
8638 case $host_os in
8639 aix4 | aix4.[01] | aix4.[01].*)
8640 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8641 echo ' yes '
8642 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
8644 else
8645 can_build_shared=no
8648 esac
8649 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8650 # soname into executable. Probably we can add versioning support to
8651 # collect2, so additional links can be useful in future.
8652 if test "$aix_use_runtimelinking" = yes; then
8653 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8654 # instead of lib<name>.a to let people know that these are not
8655 # typical AIX shared libraries.
8656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8657 else
8658 # We preserve .a as extension for shared libraries through AIX4.2
8659 # and later when we are not doing run time linking.
8660 library_names_spec='${libname}${release}.a $libname.a'
8661 soname_spec='${libname}${release}${shared_ext}$major'
8663 shlibpath_var=LIBPATH
8667 amigaos*)
8668 case $host_cpu in
8669 powerpc)
8670 # Since July 2007 AmigaOS4 officially supports .so libraries.
8671 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
8672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8674 m68k)
8675 library_names_spec='$libname.ixlibrary $libname.a'
8676 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8677 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'
8679 esac
8682 beos*)
8683 library_names_spec='${libname}${shared_ext}'
8684 dynamic_linker="$host_os ld.so"
8685 shlibpath_var=LIBRARY_PATH
8688 bsdi[45]*)
8689 version_type=linux
8690 need_version=no
8691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8692 soname_spec='${libname}${release}${shared_ext}$major'
8693 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8694 shlibpath_var=LD_LIBRARY_PATH
8695 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8696 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8697 # the default ld.so.conf also contains /usr/contrib/lib and
8698 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8699 # libtool to hard-code these into programs
8702 cygwin* | mingw* | pw32* | cegcc*)
8703 version_type=windows
8704 shrext_cmds=".dll"
8705 need_version=no
8706 need_lib_prefix=no
8708 case $GCC,$host_os in
8709 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
8710 library_names_spec='$libname.dll.a'
8711 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8712 postinstall_cmds='base_file=`basename \${file}`~
8713 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8714 dldir=$destdir/`dirname \$dlpath`~
8715 test -d \$dldir || mkdir -p \$dldir~
8716 $install_prog $dir/$dlname \$dldir/$dlname~
8717 chmod a+x \$dldir/$dlname~
8718 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8719 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8721 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8722 dlpath=$dir/\$dldll~
8723 $RM \$dlpath'
8724 shlibpath_overrides_runpath=yes
8726 case $host_os in
8727 cygwin*)
8728 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8729 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8730 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8732 mingw* | cegcc*)
8733 # MinGW DLLs use traditional 'lib' prefix
8734 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8735 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8736 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
8737 # It is most probably a Windows format PATH printed by
8738 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8739 # path with ; separators, and with drive letters. We can handle the
8740 # drive letters (cygwin fileutils understands them), so leave them,
8741 # especially as we might pass files found there to a mingw objdump,
8742 # which wouldn't understand a cygwinified path. Ahh.
8743 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8744 else
8745 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8748 pw32*)
8749 # pw32 DLLs use 'pw' prefix rather than 'lib'
8750 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8752 esac
8756 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8758 esac
8759 dynamic_linker='Win32 ld.exe'
8760 # FIXME: first we should search . and the directory the executable is in
8761 shlibpath_var=PATH
8764 darwin* | rhapsody*)
8765 dynamic_linker="$host_os dyld"
8766 version_type=darwin
8767 need_lib_prefix=no
8768 need_version=no
8769 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8770 soname_spec='${libname}${release}${major}$shared_ext'
8771 shlibpath_overrides_runpath=yes
8772 shlibpath_var=DYLD_LIBRARY_PATH
8773 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8775 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8776 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8779 dgux*)
8780 version_type=linux
8781 need_lib_prefix=no
8782 need_version=no
8783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8784 soname_spec='${libname}${release}${shared_ext}$major'
8785 shlibpath_var=LD_LIBRARY_PATH
8788 freebsd1*)
8789 dynamic_linker=no
8792 freebsd* | dragonfly*)
8793 # DragonFly does not have aout. When/if they implement a new
8794 # versioning mechanism, adjust this.
8795 if test -x /usr/bin/objformat; then
8796 objformat=`/usr/bin/objformat`
8797 else
8798 case $host_os in
8799 freebsd[123]*) objformat=aout ;;
8800 *) objformat=elf ;;
8801 esac
8803 version_type=freebsd-$objformat
8804 case $version_type in
8805 freebsd-elf*)
8806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8807 need_version=no
8808 need_lib_prefix=no
8810 freebsd-*)
8811 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8812 need_version=yes
8814 esac
8815 shlibpath_var=LD_LIBRARY_PATH
8816 case $host_os in
8817 freebsd2*)
8818 shlibpath_overrides_runpath=yes
8820 freebsd3.[01]* | freebsdelf3.[01]*)
8821 shlibpath_overrides_runpath=yes
8822 hardcode_into_libs=yes
8824 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8825 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8826 shlibpath_overrides_runpath=no
8827 hardcode_into_libs=yes
8829 *) # from 4.6 on, and DragonFly
8830 shlibpath_overrides_runpath=yes
8831 hardcode_into_libs=yes
8833 esac
8836 gnu*)
8837 version_type=linux
8838 need_lib_prefix=no
8839 need_version=no
8840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8841 soname_spec='${libname}${release}${shared_ext}$major'
8842 shlibpath_var=LD_LIBRARY_PATH
8843 hardcode_into_libs=yes
8846 hpux9* | hpux10* | hpux11*)
8847 # Give a soname corresponding to the major version so that dld.sl refuses to
8848 # link against other versions.
8849 version_type=sunos
8850 need_lib_prefix=no
8851 need_version=no
8852 case $host_cpu in
8853 ia64*)
8854 shrext_cmds='.so'
8855 hardcode_into_libs=yes
8856 dynamic_linker="$host_os dld.so"
8857 shlibpath_var=LD_LIBRARY_PATH
8858 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8860 soname_spec='${libname}${release}${shared_ext}$major'
8861 if test "X$HPUX_IA64_MODE" = X32; then
8862 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8863 else
8864 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8866 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8868 hppa*64*)
8869 shrext_cmds='.sl'
8870 hardcode_into_libs=yes
8871 dynamic_linker="$host_os dld.sl"
8872 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8873 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8875 soname_spec='${libname}${release}${shared_ext}$major'
8876 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8877 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8880 shrext_cmds='.sl'
8881 dynamic_linker="$host_os dld.sl"
8882 shlibpath_var=SHLIB_PATH
8883 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8885 soname_spec='${libname}${release}${shared_ext}$major'
8887 esac
8888 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8889 postinstall_cmds='chmod 555 $lib'
8892 interix[3-9]*)
8893 version_type=linux
8894 need_lib_prefix=no
8895 need_version=no
8896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8897 soname_spec='${libname}${release}${shared_ext}$major'
8898 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8899 shlibpath_var=LD_LIBRARY_PATH
8900 shlibpath_overrides_runpath=no
8901 hardcode_into_libs=yes
8904 irix5* | irix6* | nonstopux*)
8905 case $host_os in
8906 nonstopux*) version_type=nonstopux ;;
8908 if test "$lt_cv_prog_gnu_ld" = yes; then
8909 version_type=linux
8910 else
8911 version_type=irix
8912 fi ;;
8913 esac
8914 need_lib_prefix=no
8915 need_version=no
8916 soname_spec='${libname}${release}${shared_ext}$major'
8917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8918 case $host_os in
8919 irix5* | nonstopux*)
8920 libsuff= shlibsuff=
8923 case $LD in # libtool.m4 will add one of these switches to LD
8924 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8925 libsuff= shlibsuff= libmagic=32-bit;;
8926 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8927 libsuff=32 shlibsuff=N32 libmagic=N32;;
8928 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8929 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8930 *) libsuff= shlibsuff= libmagic=never-match;;
8931 esac
8933 esac
8934 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8935 shlibpath_overrides_runpath=no
8936 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8937 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8938 hardcode_into_libs=yes
8941 # No shared lib support for Linux oldld, aout, or coff.
8942 linux*oldld* | linux*aout* | linux*coff*)
8943 dynamic_linker=no
8946 # This must be Linux ELF.
8947 linux* | k*bsd*-gnu)
8948 version_type=linux
8949 need_lib_prefix=no
8950 need_version=no
8951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8952 soname_spec='${libname}${release}${shared_ext}$major'
8953 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8954 shlibpath_var=LD_LIBRARY_PATH
8955 shlibpath_overrides_runpath=no
8956 # Some binutils ld are patched to set DT_RUNPATH
8957 save_LDFLAGS=$LDFLAGS
8958 save_libdir=$libdir
8959 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
8960 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
8961 if test x$gcc_no_link = xyes; then
8962 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8963 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8964 { (exit 1); exit 1; }; }
8966 cat >conftest.$ac_ext <<_ACEOF
8967 /* confdefs.h. */
8968 _ACEOF
8969 cat confdefs.h >>conftest.$ac_ext
8970 cat >>conftest.$ac_ext <<_ACEOF
8971 /* end confdefs.h. */
8974 main ()
8978 return 0;
8980 _ACEOF
8981 rm -f conftest.$ac_objext conftest$ac_exeext
8982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8983 (eval $ac_link) 2>conftest.er1
8984 ac_status=$?
8985 grep -v '^ *+' conftest.er1 >conftest.err
8986 rm -f conftest.er1
8987 cat conftest.err >&5
8988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8989 (exit $ac_status); } &&
8990 { ac_try='test -z "$ac_c_werror_flag"
8991 || test ! -s conftest.err'
8992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8993 (eval $ac_try) 2>&5
8994 ac_status=$?
8995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8996 (exit $ac_status); }; } &&
8997 { ac_try='test -s conftest$ac_exeext'
8998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8999 (eval $ac_try) 2>&5
9000 ac_status=$?
9001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9002 (exit $ac_status); }; }; then
9003 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
9004 shlibpath_overrides_runpath=yes
9007 else
9008 echo "$as_me: failed program was:" >&5
9009 sed 's/^/| /' conftest.$ac_ext >&5
9012 rm -f conftest.err conftest.$ac_objext \
9013 conftest$ac_exeext conftest.$ac_ext
9014 LDFLAGS=$save_LDFLAGS
9015 libdir=$save_libdir
9017 # This implies no fast_install, which is unacceptable.
9018 # Some rework will be needed to allow for fast_install
9019 # before this can be enabled.
9020 hardcode_into_libs=yes
9022 # Append ld.so.conf contents to the search path
9023 if test -f /etc/ld.so.conf; then
9024 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9025 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9028 # We used to test for /lib/ld.so.1 and disable shared libraries on
9029 # powerpc, because MkLinux only supported shared libraries with the
9030 # GNU dynamic linker. Since this was broken with cross compilers,
9031 # most powerpc-linux boxes support dynamic linking these days and
9032 # people can always --disable-shared, the test was removed, and we
9033 # assume the GNU/Linux dynamic linker is in use.
9034 dynamic_linker='GNU/Linux ld.so'
9037 netbsd*)
9038 version_type=sunos
9039 need_lib_prefix=no
9040 need_version=no
9041 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9043 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9044 dynamic_linker='NetBSD (a.out) ld.so'
9045 else
9046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9047 soname_spec='${libname}${release}${shared_ext}$major'
9048 dynamic_linker='NetBSD ld.elf_so'
9050 shlibpath_var=LD_LIBRARY_PATH
9051 shlibpath_overrides_runpath=yes
9052 hardcode_into_libs=yes
9055 newsos6)
9056 version_type=linux
9057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9058 shlibpath_var=LD_LIBRARY_PATH
9059 shlibpath_overrides_runpath=yes
9062 *nto* | *qnx*)
9063 version_type=qnx
9064 need_lib_prefix=no
9065 need_version=no
9066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9067 soname_spec='${libname}${release}${shared_ext}$major'
9068 shlibpath_var=LD_LIBRARY_PATH
9069 shlibpath_overrides_runpath=no
9070 hardcode_into_libs=yes
9071 dynamic_linker='ldqnx.so'
9074 openbsd*)
9075 version_type=sunos
9076 sys_lib_dlsearch_path_spec="/usr/lib"
9077 need_lib_prefix=no
9078 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9079 case $host_os in
9080 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9081 *) need_version=no ;;
9082 esac
9083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9084 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9085 shlibpath_var=LD_LIBRARY_PATH
9086 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9087 case $host_os in
9088 openbsd2.[89] | openbsd2.[89].*)
9089 shlibpath_overrides_runpath=no
9092 shlibpath_overrides_runpath=yes
9094 esac
9095 else
9096 shlibpath_overrides_runpath=yes
9100 os2*)
9101 libname_spec='$name'
9102 shrext_cmds=".dll"
9103 need_lib_prefix=no
9104 library_names_spec='$libname${shared_ext} $libname.a'
9105 dynamic_linker='OS/2 ld.exe'
9106 shlibpath_var=LIBPATH
9109 osf3* | osf4* | osf5*)
9110 version_type=osf
9111 need_lib_prefix=no
9112 need_version=no
9113 soname_spec='${libname}${release}${shared_ext}$major'
9114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9115 shlibpath_var=LD_LIBRARY_PATH
9116 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9117 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9120 rdos*)
9121 dynamic_linker=no
9124 solaris*)
9125 version_type=linux
9126 need_lib_prefix=no
9127 need_version=no
9128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9129 soname_spec='${libname}${release}${shared_ext}$major'
9130 shlibpath_var=LD_LIBRARY_PATH
9131 shlibpath_overrides_runpath=yes
9132 hardcode_into_libs=yes
9133 # ldd complains unless libraries are executable
9134 postinstall_cmds='chmod +x $lib'
9137 sunos4*)
9138 version_type=sunos
9139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9140 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9141 shlibpath_var=LD_LIBRARY_PATH
9142 shlibpath_overrides_runpath=yes
9143 if test "$with_gnu_ld" = yes; then
9144 need_lib_prefix=no
9146 need_version=yes
9149 sysv4 | sysv4.3*)
9150 version_type=linux
9151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9152 soname_spec='${libname}${release}${shared_ext}$major'
9153 shlibpath_var=LD_LIBRARY_PATH
9154 case $host_vendor in
9155 sni)
9156 shlibpath_overrides_runpath=no
9157 need_lib_prefix=no
9158 runpath_var=LD_RUN_PATH
9160 siemens)
9161 need_lib_prefix=no
9163 motorola)
9164 need_lib_prefix=no
9165 need_version=no
9166 shlibpath_overrides_runpath=no
9167 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9169 esac
9172 sysv4*MP*)
9173 if test -d /usr/nec ;then
9174 version_type=linux
9175 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9176 soname_spec='$libname${shared_ext}.$major'
9177 shlibpath_var=LD_LIBRARY_PATH
9181 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9182 version_type=freebsd-elf
9183 need_lib_prefix=no
9184 need_version=no
9185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9186 soname_spec='${libname}${release}${shared_ext}$major'
9187 shlibpath_var=LD_LIBRARY_PATH
9188 shlibpath_overrides_runpath=yes
9189 hardcode_into_libs=yes
9190 if test "$with_gnu_ld" = yes; then
9191 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9192 else
9193 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9194 case $host_os in
9195 sco3.2v5*)
9196 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9198 esac
9200 sys_lib_dlsearch_path_spec='/usr/lib'
9203 tpf*)
9204 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9205 version_type=linux
9206 need_lib_prefix=no
9207 need_version=no
9208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9209 shlibpath_var=LD_LIBRARY_PATH
9210 shlibpath_overrides_runpath=no
9211 hardcode_into_libs=yes
9214 uts4*)
9215 version_type=linux
9216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9217 soname_spec='${libname}${release}${shared_ext}$major'
9218 shlibpath_var=LD_LIBRARY_PATH
9222 dynamic_linker=no
9224 esac
9225 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9226 echo "${ECHO_T}$dynamic_linker" >&6
9227 test "$dynamic_linker" = no && can_build_shared=no
9229 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9230 if test "$GCC" = yes; then
9231 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9234 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9235 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9237 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9238 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9327 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9328 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9329 hardcode_action=
9330 if test -n "$hardcode_libdir_flag_spec" ||
9331 test -n "$runpath_var" ||
9332 test "X$hardcode_automatic" = "Xyes" ; then
9334 # We can hardcode non-existent directories.
9335 if test "$hardcode_direct" != no &&
9336 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9337 # have to relink, otherwise we might link with an installed library
9338 # when we should be linking with a yet-to-be-installed one
9339 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9340 test "$hardcode_minus_L" != no; then
9341 # Linking always hardcodes the temporary library directory.
9342 hardcode_action=relink
9343 else
9344 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9345 hardcode_action=immediate
9347 else
9348 # We cannot hardcode anything, or else we can only hardcode existing
9349 # directories.
9350 hardcode_action=unsupported
9352 echo "$as_me:$LINENO: result: $hardcode_action" >&5
9353 echo "${ECHO_T}$hardcode_action" >&6
9355 if test "$hardcode_action" = relink ||
9356 test "$inherit_rpath" = yes; then
9357 # Fast installation is not supported
9358 enable_fast_install=no
9359 elif test "$shlibpath_overrides_runpath" = yes ||
9360 test "$enable_shared" = no; then
9361 # Fast installation is not necessary
9362 enable_fast_install=needless
9370 if test "x$enable_dlopen" != xyes; then
9371 enable_dlopen=unknown
9372 enable_dlopen_self=unknown
9373 enable_dlopen_self_static=unknown
9374 else
9375 lt_cv_dlopen=no
9376 lt_cv_dlopen_libs=
9378 case $host_os in
9379 beos*)
9380 lt_cv_dlopen="load_add_on"
9381 lt_cv_dlopen_libs=
9382 lt_cv_dlopen_self=yes
9385 mingw* | pw32* | cegcc*)
9386 lt_cv_dlopen="LoadLibrary"
9387 lt_cv_dlopen_libs=
9390 cygwin*)
9391 lt_cv_dlopen="dlopen"
9392 lt_cv_dlopen_libs=
9395 darwin*)
9396 # if libdl is installed we need to link against it
9397 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9398 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9399 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9400 echo $ECHO_N "(cached) $ECHO_C" >&6
9401 else
9402 ac_check_lib_save_LIBS=$LIBS
9403 LIBS="-ldl $LIBS"
9404 if test x$gcc_no_link = xyes; then
9405 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9406 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9407 { (exit 1); exit 1; }; }
9409 cat >conftest.$ac_ext <<_ACEOF
9410 /* confdefs.h. */
9411 _ACEOF
9412 cat confdefs.h >>conftest.$ac_ext
9413 cat >>conftest.$ac_ext <<_ACEOF
9414 /* end confdefs.h. */
9416 /* Override any gcc2 internal prototype to avoid an error. */
9417 #ifdef __cplusplus
9418 extern "C"
9419 #endif
9420 /* We use char because int might match the return type of a gcc2
9421 builtin and then its argument prototype would still apply. */
9422 char dlopen ();
9424 main ()
9426 dlopen ();
9428 return 0;
9430 _ACEOF
9431 rm -f conftest.$ac_objext conftest$ac_exeext
9432 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9433 (eval $ac_link) 2>conftest.er1
9434 ac_status=$?
9435 grep -v '^ *+' conftest.er1 >conftest.err
9436 rm -f conftest.er1
9437 cat conftest.err >&5
9438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9439 (exit $ac_status); } &&
9440 { ac_try='test -z "$ac_c_werror_flag"
9441 || test ! -s conftest.err'
9442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9443 (eval $ac_try) 2>&5
9444 ac_status=$?
9445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9446 (exit $ac_status); }; } &&
9447 { ac_try='test -s conftest$ac_exeext'
9448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9449 (eval $ac_try) 2>&5
9450 ac_status=$?
9451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9452 (exit $ac_status); }; }; then
9453 ac_cv_lib_dl_dlopen=yes
9454 else
9455 echo "$as_me: failed program was:" >&5
9456 sed 's/^/| /' conftest.$ac_ext >&5
9458 ac_cv_lib_dl_dlopen=no
9460 rm -f conftest.err conftest.$ac_objext \
9461 conftest$ac_exeext conftest.$ac_ext
9462 LIBS=$ac_check_lib_save_LIBS
9464 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9465 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9466 if test $ac_cv_lib_dl_dlopen = yes; then
9467 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9468 else
9470 lt_cv_dlopen="dyld"
9471 lt_cv_dlopen_libs=
9472 lt_cv_dlopen_self=yes
9479 echo "$as_me:$LINENO: checking for shl_load" >&5
9480 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9481 if test "${ac_cv_func_shl_load+set}" = set; then
9482 echo $ECHO_N "(cached) $ECHO_C" >&6
9483 else
9484 if test x$gcc_no_link = xyes; then
9485 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9486 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9487 { (exit 1); exit 1; }; }
9489 cat >conftest.$ac_ext <<_ACEOF
9490 /* confdefs.h. */
9491 _ACEOF
9492 cat confdefs.h >>conftest.$ac_ext
9493 cat >>conftest.$ac_ext <<_ACEOF
9494 /* end confdefs.h. */
9495 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9496 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9497 #define shl_load innocuous_shl_load
9499 /* System header to define __stub macros and hopefully few prototypes,
9500 which can conflict with char shl_load (); below.
9501 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9502 <limits.h> exists even on freestanding compilers. */
9504 #ifdef __STDC__
9505 # include <limits.h>
9506 #else
9507 # include <assert.h>
9508 #endif
9510 #undef shl_load
9512 /* Override any gcc2 internal prototype to avoid an error. */
9513 #ifdef __cplusplus
9514 extern "C"
9516 #endif
9517 /* We use char because int might match the return type of a gcc2
9518 builtin and then its argument prototype would still apply. */
9519 char shl_load ();
9520 /* The GNU C library defines this for functions which it implements
9521 to always fail with ENOSYS. Some functions are actually named
9522 something starting with __ and the normal name is an alias. */
9523 #if defined (__stub_shl_load) || defined (__stub___shl_load)
9524 choke me
9525 #else
9526 char (*f) () = shl_load;
9527 #endif
9528 #ifdef __cplusplus
9530 #endif
9533 main ()
9535 return f != shl_load;
9537 return 0;
9539 _ACEOF
9540 rm -f conftest.$ac_objext conftest$ac_exeext
9541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9542 (eval $ac_link) 2>conftest.er1
9543 ac_status=$?
9544 grep -v '^ *+' conftest.er1 >conftest.err
9545 rm -f conftest.er1
9546 cat conftest.err >&5
9547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9548 (exit $ac_status); } &&
9549 { ac_try='test -z "$ac_c_werror_flag"
9550 || test ! -s conftest.err'
9551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9552 (eval $ac_try) 2>&5
9553 ac_status=$?
9554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9555 (exit $ac_status); }; } &&
9556 { ac_try='test -s conftest$ac_exeext'
9557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9558 (eval $ac_try) 2>&5
9559 ac_status=$?
9560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9561 (exit $ac_status); }; }; then
9562 ac_cv_func_shl_load=yes
9563 else
9564 echo "$as_me: failed program was:" >&5
9565 sed 's/^/| /' conftest.$ac_ext >&5
9567 ac_cv_func_shl_load=no
9569 rm -f conftest.err conftest.$ac_objext \
9570 conftest$ac_exeext conftest.$ac_ext
9572 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9573 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9574 if test $ac_cv_func_shl_load = yes; then
9575 lt_cv_dlopen="shl_load"
9576 else
9577 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9578 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9579 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9580 echo $ECHO_N "(cached) $ECHO_C" >&6
9581 else
9582 ac_check_lib_save_LIBS=$LIBS
9583 LIBS="-ldld $LIBS"
9584 if test x$gcc_no_link = xyes; then
9585 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9586 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9587 { (exit 1); exit 1; }; }
9589 cat >conftest.$ac_ext <<_ACEOF
9590 /* confdefs.h. */
9591 _ACEOF
9592 cat confdefs.h >>conftest.$ac_ext
9593 cat >>conftest.$ac_ext <<_ACEOF
9594 /* end confdefs.h. */
9596 /* Override any gcc2 internal prototype to avoid an error. */
9597 #ifdef __cplusplus
9598 extern "C"
9599 #endif
9600 /* We use char because int might match the return type of a gcc2
9601 builtin and then its argument prototype would still apply. */
9602 char shl_load ();
9604 main ()
9606 shl_load ();
9608 return 0;
9610 _ACEOF
9611 rm -f conftest.$ac_objext conftest$ac_exeext
9612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9613 (eval $ac_link) 2>conftest.er1
9614 ac_status=$?
9615 grep -v '^ *+' conftest.er1 >conftest.err
9616 rm -f conftest.er1
9617 cat conftest.err >&5
9618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9619 (exit $ac_status); } &&
9620 { ac_try='test -z "$ac_c_werror_flag"
9621 || test ! -s conftest.err'
9622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9623 (eval $ac_try) 2>&5
9624 ac_status=$?
9625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9626 (exit $ac_status); }; } &&
9627 { ac_try='test -s conftest$ac_exeext'
9628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9629 (eval $ac_try) 2>&5
9630 ac_status=$?
9631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9632 (exit $ac_status); }; }; then
9633 ac_cv_lib_dld_shl_load=yes
9634 else
9635 echo "$as_me: failed program was:" >&5
9636 sed 's/^/| /' conftest.$ac_ext >&5
9638 ac_cv_lib_dld_shl_load=no
9640 rm -f conftest.err conftest.$ac_objext \
9641 conftest$ac_exeext conftest.$ac_ext
9642 LIBS=$ac_check_lib_save_LIBS
9644 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9645 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9646 if test $ac_cv_lib_dld_shl_load = yes; then
9647 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9648 else
9649 echo "$as_me:$LINENO: checking for dlopen" >&5
9650 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9651 if test "${ac_cv_func_dlopen+set}" = set; then
9652 echo $ECHO_N "(cached) $ECHO_C" >&6
9653 else
9654 if test x$gcc_no_link = xyes; then
9655 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9656 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9657 { (exit 1); exit 1; }; }
9659 cat >conftest.$ac_ext <<_ACEOF
9660 /* confdefs.h. */
9661 _ACEOF
9662 cat confdefs.h >>conftest.$ac_ext
9663 cat >>conftest.$ac_ext <<_ACEOF
9664 /* end confdefs.h. */
9665 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9666 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9667 #define dlopen innocuous_dlopen
9669 /* System header to define __stub macros and hopefully few prototypes,
9670 which can conflict with char dlopen (); below.
9671 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9672 <limits.h> exists even on freestanding compilers. */
9674 #ifdef __STDC__
9675 # include <limits.h>
9676 #else
9677 # include <assert.h>
9678 #endif
9680 #undef dlopen
9682 /* Override any gcc2 internal prototype to avoid an error. */
9683 #ifdef __cplusplus
9684 extern "C"
9686 #endif
9687 /* We use char because int might match the return type of a gcc2
9688 builtin and then its argument prototype would still apply. */
9689 char dlopen ();
9690 /* The GNU C library defines this for functions which it implements
9691 to always fail with ENOSYS. Some functions are actually named
9692 something starting with __ and the normal name is an alias. */
9693 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9694 choke me
9695 #else
9696 char (*f) () = dlopen;
9697 #endif
9698 #ifdef __cplusplus
9700 #endif
9703 main ()
9705 return f != dlopen;
9707 return 0;
9709 _ACEOF
9710 rm -f conftest.$ac_objext conftest$ac_exeext
9711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9712 (eval $ac_link) 2>conftest.er1
9713 ac_status=$?
9714 grep -v '^ *+' conftest.er1 >conftest.err
9715 rm -f conftest.er1
9716 cat conftest.err >&5
9717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9718 (exit $ac_status); } &&
9719 { ac_try='test -z "$ac_c_werror_flag"
9720 || test ! -s conftest.err'
9721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9722 (eval $ac_try) 2>&5
9723 ac_status=$?
9724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9725 (exit $ac_status); }; } &&
9726 { ac_try='test -s conftest$ac_exeext'
9727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9728 (eval $ac_try) 2>&5
9729 ac_status=$?
9730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9731 (exit $ac_status); }; }; then
9732 ac_cv_func_dlopen=yes
9733 else
9734 echo "$as_me: failed program was:" >&5
9735 sed 's/^/| /' conftest.$ac_ext >&5
9737 ac_cv_func_dlopen=no
9739 rm -f conftest.err conftest.$ac_objext \
9740 conftest$ac_exeext conftest.$ac_ext
9742 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9743 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9744 if test $ac_cv_func_dlopen = yes; then
9745 lt_cv_dlopen="dlopen"
9746 else
9747 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9748 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9749 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9750 echo $ECHO_N "(cached) $ECHO_C" >&6
9751 else
9752 ac_check_lib_save_LIBS=$LIBS
9753 LIBS="-ldl $LIBS"
9754 if test x$gcc_no_link = xyes; then
9755 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9756 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9757 { (exit 1); exit 1; }; }
9759 cat >conftest.$ac_ext <<_ACEOF
9760 /* confdefs.h. */
9761 _ACEOF
9762 cat confdefs.h >>conftest.$ac_ext
9763 cat >>conftest.$ac_ext <<_ACEOF
9764 /* end confdefs.h. */
9766 /* Override any gcc2 internal prototype to avoid an error. */
9767 #ifdef __cplusplus
9768 extern "C"
9769 #endif
9770 /* We use char because int might match the return type of a gcc2
9771 builtin and then its argument prototype would still apply. */
9772 char dlopen ();
9774 main ()
9776 dlopen ();
9778 return 0;
9780 _ACEOF
9781 rm -f conftest.$ac_objext conftest$ac_exeext
9782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9783 (eval $ac_link) 2>conftest.er1
9784 ac_status=$?
9785 grep -v '^ *+' conftest.er1 >conftest.err
9786 rm -f conftest.er1
9787 cat conftest.err >&5
9788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9789 (exit $ac_status); } &&
9790 { ac_try='test -z "$ac_c_werror_flag"
9791 || test ! -s conftest.err'
9792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9793 (eval $ac_try) 2>&5
9794 ac_status=$?
9795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9796 (exit $ac_status); }; } &&
9797 { ac_try='test -s conftest$ac_exeext'
9798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9799 (eval $ac_try) 2>&5
9800 ac_status=$?
9801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9802 (exit $ac_status); }; }; then
9803 ac_cv_lib_dl_dlopen=yes
9804 else
9805 echo "$as_me: failed program was:" >&5
9806 sed 's/^/| /' conftest.$ac_ext >&5
9808 ac_cv_lib_dl_dlopen=no
9810 rm -f conftest.err conftest.$ac_objext \
9811 conftest$ac_exeext conftest.$ac_ext
9812 LIBS=$ac_check_lib_save_LIBS
9814 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9815 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9816 if test $ac_cv_lib_dl_dlopen = yes; then
9817 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9818 else
9819 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9820 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9821 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9822 echo $ECHO_N "(cached) $ECHO_C" >&6
9823 else
9824 ac_check_lib_save_LIBS=$LIBS
9825 LIBS="-lsvld $LIBS"
9826 if test x$gcc_no_link = xyes; then
9827 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9828 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9829 { (exit 1); exit 1; }; }
9831 cat >conftest.$ac_ext <<_ACEOF
9832 /* confdefs.h. */
9833 _ACEOF
9834 cat confdefs.h >>conftest.$ac_ext
9835 cat >>conftest.$ac_ext <<_ACEOF
9836 /* end confdefs.h. */
9838 /* Override any gcc2 internal prototype to avoid an error. */
9839 #ifdef __cplusplus
9840 extern "C"
9841 #endif
9842 /* We use char because int might match the return type of a gcc2
9843 builtin and then its argument prototype would still apply. */
9844 char dlopen ();
9846 main ()
9848 dlopen ();
9850 return 0;
9852 _ACEOF
9853 rm -f conftest.$ac_objext conftest$ac_exeext
9854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9855 (eval $ac_link) 2>conftest.er1
9856 ac_status=$?
9857 grep -v '^ *+' conftest.er1 >conftest.err
9858 rm -f conftest.er1
9859 cat conftest.err >&5
9860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9861 (exit $ac_status); } &&
9862 { ac_try='test -z "$ac_c_werror_flag"
9863 || test ! -s conftest.err'
9864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9865 (eval $ac_try) 2>&5
9866 ac_status=$?
9867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9868 (exit $ac_status); }; } &&
9869 { ac_try='test -s conftest$ac_exeext'
9870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9871 (eval $ac_try) 2>&5
9872 ac_status=$?
9873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9874 (exit $ac_status); }; }; then
9875 ac_cv_lib_svld_dlopen=yes
9876 else
9877 echo "$as_me: failed program was:" >&5
9878 sed 's/^/| /' conftest.$ac_ext >&5
9880 ac_cv_lib_svld_dlopen=no
9882 rm -f conftest.err conftest.$ac_objext \
9883 conftest$ac_exeext conftest.$ac_ext
9884 LIBS=$ac_check_lib_save_LIBS
9886 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9887 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9888 if test $ac_cv_lib_svld_dlopen = yes; then
9889 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9890 else
9891 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9892 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9893 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9894 echo $ECHO_N "(cached) $ECHO_C" >&6
9895 else
9896 ac_check_lib_save_LIBS=$LIBS
9897 LIBS="-ldld $LIBS"
9898 if test x$gcc_no_link = xyes; then
9899 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9900 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9901 { (exit 1); exit 1; }; }
9903 cat >conftest.$ac_ext <<_ACEOF
9904 /* confdefs.h. */
9905 _ACEOF
9906 cat confdefs.h >>conftest.$ac_ext
9907 cat >>conftest.$ac_ext <<_ACEOF
9908 /* end confdefs.h. */
9910 /* Override any gcc2 internal prototype to avoid an error. */
9911 #ifdef __cplusplus
9912 extern "C"
9913 #endif
9914 /* We use char because int might match the return type of a gcc2
9915 builtin and then its argument prototype would still apply. */
9916 char dld_link ();
9918 main ()
9920 dld_link ();
9922 return 0;
9924 _ACEOF
9925 rm -f conftest.$ac_objext conftest$ac_exeext
9926 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9927 (eval $ac_link) 2>conftest.er1
9928 ac_status=$?
9929 grep -v '^ *+' conftest.er1 >conftest.err
9930 rm -f conftest.er1
9931 cat conftest.err >&5
9932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9933 (exit $ac_status); } &&
9934 { ac_try='test -z "$ac_c_werror_flag"
9935 || test ! -s conftest.err'
9936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9937 (eval $ac_try) 2>&5
9938 ac_status=$?
9939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9940 (exit $ac_status); }; } &&
9941 { ac_try='test -s conftest$ac_exeext'
9942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9943 (eval $ac_try) 2>&5
9944 ac_status=$?
9945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9946 (exit $ac_status); }; }; then
9947 ac_cv_lib_dld_dld_link=yes
9948 else
9949 echo "$as_me: failed program was:" >&5
9950 sed 's/^/| /' conftest.$ac_ext >&5
9952 ac_cv_lib_dld_dld_link=no
9954 rm -f conftest.err conftest.$ac_objext \
9955 conftest$ac_exeext conftest.$ac_ext
9956 LIBS=$ac_check_lib_save_LIBS
9958 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9959 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9960 if test $ac_cv_lib_dld_dld_link = yes; then
9961 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
9980 esac
9982 if test "x$lt_cv_dlopen" != xno; then
9983 enable_dlopen=yes
9984 else
9985 enable_dlopen=no
9988 case $lt_cv_dlopen in
9989 dlopen)
9990 save_CPPFLAGS="$CPPFLAGS"
9991 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9993 save_LDFLAGS="$LDFLAGS"
9994 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9996 save_LIBS="$LIBS"
9997 LIBS="$lt_cv_dlopen_libs $LIBS"
9999 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10000 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10001 if test "${lt_cv_dlopen_self+set}" = set; then
10002 echo $ECHO_N "(cached) $ECHO_C" >&6
10003 else
10004 if test "$cross_compiling" = yes; then :
10005 lt_cv_dlopen_self=cross
10006 else
10007 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10008 lt_status=$lt_dlunknown
10009 cat > conftest.$ac_ext <<_LT_EOF
10010 #line 10010 "configure"
10011 #include "confdefs.h"
10013 #if HAVE_DLFCN_H
10014 #include <dlfcn.h>
10015 #endif
10017 #include <stdio.h>
10019 #ifdef RTLD_GLOBAL
10020 # define LT_DLGLOBAL RTLD_GLOBAL
10021 #else
10022 # ifdef DL_GLOBAL
10023 # define LT_DLGLOBAL DL_GLOBAL
10024 # else
10025 # define LT_DLGLOBAL 0
10026 # endif
10027 #endif
10029 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10030 find out it does not work in some platform. */
10031 #ifndef LT_DLLAZY_OR_NOW
10032 # ifdef RTLD_LAZY
10033 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10034 # else
10035 # ifdef DL_LAZY
10036 # define LT_DLLAZY_OR_NOW DL_LAZY
10037 # else
10038 # ifdef RTLD_NOW
10039 # define LT_DLLAZY_OR_NOW RTLD_NOW
10040 # else
10041 # ifdef DL_NOW
10042 # define LT_DLLAZY_OR_NOW DL_NOW
10043 # else
10044 # define LT_DLLAZY_OR_NOW 0
10045 # endif
10046 # endif
10047 # endif
10048 # endif
10049 #endif
10051 void fnord() { int i=42;}
10052 int main ()
10054 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10055 int status = $lt_dlunknown;
10057 if (self)
10059 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10060 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10061 /* dlclose (self); */
10063 else
10064 puts (dlerror ());
10066 return status;
10068 _LT_EOF
10069 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10070 (eval $ac_link) 2>&5
10071 ac_status=$?
10072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10073 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10074 (./conftest; exit; ) >&5 2>/dev/null
10075 lt_status=$?
10076 case x$lt_status in
10077 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10078 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10079 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10080 esac
10081 else :
10082 # compilation failed
10083 lt_cv_dlopen_self=no
10086 rm -fr conftest*
10090 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10091 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10093 if test "x$lt_cv_dlopen_self" = xyes; then
10094 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10095 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10096 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10097 if test "${lt_cv_dlopen_self_static+set}" = set; then
10098 echo $ECHO_N "(cached) $ECHO_C" >&6
10099 else
10100 if test "$cross_compiling" = yes; then :
10101 lt_cv_dlopen_self_static=cross
10102 else
10103 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10104 lt_status=$lt_dlunknown
10105 cat > conftest.$ac_ext <<_LT_EOF
10106 #line 10106 "configure"
10107 #include "confdefs.h"
10109 #if HAVE_DLFCN_H
10110 #include <dlfcn.h>
10111 #endif
10113 #include <stdio.h>
10115 #ifdef RTLD_GLOBAL
10116 # define LT_DLGLOBAL RTLD_GLOBAL
10117 #else
10118 # ifdef DL_GLOBAL
10119 # define LT_DLGLOBAL DL_GLOBAL
10120 # else
10121 # define LT_DLGLOBAL 0
10122 # endif
10123 #endif
10125 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10126 find out it does not work in some platform. */
10127 #ifndef LT_DLLAZY_OR_NOW
10128 # ifdef RTLD_LAZY
10129 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10130 # else
10131 # ifdef DL_LAZY
10132 # define LT_DLLAZY_OR_NOW DL_LAZY
10133 # else
10134 # ifdef RTLD_NOW
10135 # define LT_DLLAZY_OR_NOW RTLD_NOW
10136 # else
10137 # ifdef DL_NOW
10138 # define LT_DLLAZY_OR_NOW DL_NOW
10139 # else
10140 # define LT_DLLAZY_OR_NOW 0
10141 # endif
10142 # endif
10143 # endif
10144 # endif
10145 #endif
10147 void fnord() { int i=42;}
10148 int main ()
10150 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10151 int status = $lt_dlunknown;
10153 if (self)
10155 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10156 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10157 /* dlclose (self); */
10159 else
10160 puts (dlerror ());
10162 return status;
10164 _LT_EOF
10165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10166 (eval $ac_link) 2>&5
10167 ac_status=$?
10168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10169 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10170 (./conftest; exit; ) >&5 2>/dev/null
10171 lt_status=$?
10172 case x$lt_status in
10173 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10174 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10175 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10176 esac
10177 else :
10178 # compilation failed
10179 lt_cv_dlopen_self_static=no
10182 rm -fr conftest*
10186 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10187 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10190 CPPFLAGS="$save_CPPFLAGS"
10191 LDFLAGS="$save_LDFLAGS"
10192 LIBS="$save_LIBS"
10194 esac
10196 case $lt_cv_dlopen_self in
10197 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10198 *) enable_dlopen_self=unknown ;;
10199 esac
10201 case $lt_cv_dlopen_self_static in
10202 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10203 *) enable_dlopen_self_static=unknown ;;
10204 esac
10223 striplib=
10224 old_striplib=
10225 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10226 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10227 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10228 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10229 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10230 echo "$as_me:$LINENO: result: yes" >&5
10231 echo "${ECHO_T}yes" >&6
10232 else
10233 # FIXME - insert some real tests, host_os isn't really good enough
10234 case $host_os in
10235 darwin*)
10236 if test -n "$STRIP" ; then
10237 striplib="$STRIP -x"
10238 old_striplib="$STRIP -S"
10239 echo "$as_me:$LINENO: result: yes" >&5
10240 echo "${ECHO_T}yes" >&6
10241 else
10242 echo "$as_me:$LINENO: result: no" >&5
10243 echo "${ECHO_T}no" >&6
10247 echo "$as_me:$LINENO: result: no" >&5
10248 echo "${ECHO_T}no" >&6
10250 esac
10264 # Report which library types will actually be built
10265 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10266 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10267 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10268 echo "${ECHO_T}$can_build_shared" >&6
10270 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10271 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10272 test "$can_build_shared" = "no" && enable_shared=no
10274 # On AIX, shared libraries and static libraries use the same namespace, and
10275 # are all built from PIC.
10276 case $host_os in
10277 aix3*)
10278 test "$enable_shared" = yes && enable_static=no
10279 if test -n "$RANLIB"; then
10280 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10281 postinstall_cmds='$RANLIB $lib'
10285 aix[4-9]*)
10286 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10287 test "$enable_shared" = yes && enable_static=no
10290 esac
10291 echo "$as_me:$LINENO: result: $enable_shared" >&5
10292 echo "${ECHO_T}$enable_shared" >&6
10294 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10295 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10296 # Make sure either enable_shared or enable_static is yes.
10297 test "$enable_shared" = yes || enable_static=yes
10298 echo "$as_me:$LINENO: result: $enable_static" >&5
10299 echo "${ECHO_T}$enable_static" >&6
10305 ac_ext=c
10306 ac_cpp='$CPP $CPPFLAGS'
10307 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10308 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10309 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10311 CC="$lt_save_CC"
10325 ac_config_commands="$ac_config_commands libtool"
10330 # Only expand once:
10334 # Find CPP now so that any conditional tests below won't do it and
10335 # thereby make the resulting definitions conditional.
10336 ac_ext=c
10337 ac_cpp='$CPP $CPPFLAGS'
10338 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10339 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10340 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10341 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
10342 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
10343 # On Suns, sometimes $CPP names a directory.
10344 if test -n "$CPP" && test -d "$CPP"; then
10345 CPP=
10347 if test -z "$CPP"; then
10348 if test "${ac_cv_prog_CPP+set}" = set; then
10349 echo $ECHO_N "(cached) $ECHO_C" >&6
10350 else
10351 # Double quotes because CPP needs to be expanded
10352 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
10354 ac_preproc_ok=false
10355 for ac_c_preproc_warn_flag in '' yes
10357 # Use a header file that comes with gcc, so configuring glibc
10358 # with a fresh cross-compiler works.
10359 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10360 # <limits.h> exists even on freestanding compilers.
10361 # On the NeXT, cc -E runs the code through the compiler's parser,
10362 # not just through cpp. "Syntax error" is here to catch this case.
10363 cat >conftest.$ac_ext <<_ACEOF
10364 /* confdefs.h. */
10365 _ACEOF
10366 cat confdefs.h >>conftest.$ac_ext
10367 cat >>conftest.$ac_ext <<_ACEOF
10368 /* end confdefs.h. */
10369 #ifdef __STDC__
10370 # include <limits.h>
10371 #else
10372 # include <assert.h>
10373 #endif
10374 Syntax error
10375 _ACEOF
10376 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10377 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10378 ac_status=$?
10379 grep -v '^ *+' conftest.er1 >conftest.err
10380 rm -f conftest.er1
10381 cat conftest.err >&5
10382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10383 (exit $ac_status); } >/dev/null; then
10384 if test -s conftest.err; then
10385 ac_cpp_err=$ac_c_preproc_warn_flag
10386 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10387 else
10388 ac_cpp_err=
10390 else
10391 ac_cpp_err=yes
10393 if test -z "$ac_cpp_err"; then
10395 else
10396 echo "$as_me: failed program was:" >&5
10397 sed 's/^/| /' conftest.$ac_ext >&5
10399 # Broken: fails on valid input.
10400 continue
10402 rm -f conftest.err conftest.$ac_ext
10404 # OK, works on sane cases. Now check whether non-existent headers
10405 # can be detected and how.
10406 cat >conftest.$ac_ext <<_ACEOF
10407 /* confdefs.h. */
10408 _ACEOF
10409 cat confdefs.h >>conftest.$ac_ext
10410 cat >>conftest.$ac_ext <<_ACEOF
10411 /* end confdefs.h. */
10412 #include <ac_nonexistent.h>
10413 _ACEOF
10414 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10415 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10416 ac_status=$?
10417 grep -v '^ *+' conftest.er1 >conftest.err
10418 rm -f conftest.er1
10419 cat conftest.err >&5
10420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10421 (exit $ac_status); } >/dev/null; then
10422 if test -s conftest.err; then
10423 ac_cpp_err=$ac_c_preproc_warn_flag
10424 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10425 else
10426 ac_cpp_err=
10428 else
10429 ac_cpp_err=yes
10431 if test -z "$ac_cpp_err"; then
10432 # Broken: success on invalid input.
10433 continue
10434 else
10435 echo "$as_me: failed program was:" >&5
10436 sed 's/^/| /' conftest.$ac_ext >&5
10438 # Passes both tests.
10439 ac_preproc_ok=:
10440 break
10442 rm -f conftest.err conftest.$ac_ext
10444 done
10445 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10446 rm -f conftest.err conftest.$ac_ext
10447 if $ac_preproc_ok; then
10448 break
10451 done
10452 ac_cv_prog_CPP=$CPP
10455 CPP=$ac_cv_prog_CPP
10456 else
10457 ac_cv_prog_CPP=$CPP
10459 echo "$as_me:$LINENO: result: $CPP" >&5
10460 echo "${ECHO_T}$CPP" >&6
10461 ac_preproc_ok=false
10462 for ac_c_preproc_warn_flag in '' yes
10464 # Use a header file that comes with gcc, so configuring glibc
10465 # with a fresh cross-compiler works.
10466 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10467 # <limits.h> exists even on freestanding compilers.
10468 # On the NeXT, cc -E runs the code through the compiler's parser,
10469 # not just through cpp. "Syntax error" is here to catch this case.
10470 cat >conftest.$ac_ext <<_ACEOF
10471 /* confdefs.h. */
10472 _ACEOF
10473 cat confdefs.h >>conftest.$ac_ext
10474 cat >>conftest.$ac_ext <<_ACEOF
10475 /* end confdefs.h. */
10476 #ifdef __STDC__
10477 # include <limits.h>
10478 #else
10479 # include <assert.h>
10480 #endif
10481 Syntax error
10482 _ACEOF
10483 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10484 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10485 ac_status=$?
10486 grep -v '^ *+' conftest.er1 >conftest.err
10487 rm -f conftest.er1
10488 cat conftest.err >&5
10489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10490 (exit $ac_status); } >/dev/null; then
10491 if test -s conftest.err; then
10492 ac_cpp_err=$ac_c_preproc_warn_flag
10493 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10494 else
10495 ac_cpp_err=
10497 else
10498 ac_cpp_err=yes
10500 if test -z "$ac_cpp_err"; then
10502 else
10503 echo "$as_me: failed program was:" >&5
10504 sed 's/^/| /' conftest.$ac_ext >&5
10506 # Broken: fails on valid input.
10507 continue
10509 rm -f conftest.err conftest.$ac_ext
10511 # OK, works on sane cases. Now check whether non-existent headers
10512 # can be detected and how.
10513 cat >conftest.$ac_ext <<_ACEOF
10514 /* confdefs.h. */
10515 _ACEOF
10516 cat confdefs.h >>conftest.$ac_ext
10517 cat >>conftest.$ac_ext <<_ACEOF
10518 /* end confdefs.h. */
10519 #include <ac_nonexistent.h>
10520 _ACEOF
10521 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10522 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10523 ac_status=$?
10524 grep -v '^ *+' conftest.er1 >conftest.err
10525 rm -f conftest.er1
10526 cat conftest.err >&5
10527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10528 (exit $ac_status); } >/dev/null; then
10529 if test -s conftest.err; then
10530 ac_cpp_err=$ac_c_preproc_warn_flag
10531 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10532 else
10533 ac_cpp_err=
10535 else
10536 ac_cpp_err=yes
10538 if test -z "$ac_cpp_err"; then
10539 # Broken: success on invalid input.
10540 continue
10541 else
10542 echo "$as_me: failed program was:" >&5
10543 sed 's/^/| /' conftest.$ac_ext >&5
10545 # Passes both tests.
10546 ac_preproc_ok=:
10547 break
10549 rm -f conftest.err conftest.$ac_ext
10551 done
10552 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10553 rm -f conftest.err conftest.$ac_ext
10554 if $ac_preproc_ok; then
10556 else
10557 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
10558 echo "$as_me: error: in \`$ac_pwd':" >&2;}
10559 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
10560 See \`config.log' for more details." >&5
10561 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
10562 See \`config.log' for more details." >&2;}
10563 { (exit 1); exit 1; }; }; }
10566 ac_ext=c
10567 ac_cpp='$CPP $CPPFLAGS'
10568 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10569 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10570 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10573 if test -n "$with_cross_host"; then
10574 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
10575 # may not work correctly, because the compiler may not be able to
10576 # link executables.
10578 # We assume newlib. This lets us hard-code the functions we know
10579 # we'll have.
10580 cat >>confdefs.h <<\_ACEOF
10581 #define HAVE_MEMCPY 1
10582 _ACEOF
10584 cat >>confdefs.h <<\_ACEOF
10585 #define HAVE_STRERROR 1
10586 _ACEOF
10589 # We ignore --with-system-zlib in this case.
10590 target_all=libzgcj.la
10591 else
10592 if test x$gcc_no_link = xyes; then
10593 if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
10594 ac_cv_func_mmap_fixed_mapped=no
10597 if test "x${ac_cv_func_mmap_fixed_mapped}" != xno; then
10600 for ac_header in stdlib.h unistd.h
10602 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10603 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10604 echo "$as_me:$LINENO: checking for $ac_header" >&5
10605 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10606 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10607 echo $ECHO_N "(cached) $ECHO_C" >&6
10609 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10610 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10611 else
10612 # Is the header compilable?
10613 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10614 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10615 cat >conftest.$ac_ext <<_ACEOF
10616 /* confdefs.h. */
10617 _ACEOF
10618 cat confdefs.h >>conftest.$ac_ext
10619 cat >>conftest.$ac_ext <<_ACEOF
10620 /* end confdefs.h. */
10621 $ac_includes_default
10622 #include <$ac_header>
10623 _ACEOF
10624 rm -f conftest.$ac_objext
10625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10626 (eval $ac_compile) 2>conftest.er1
10627 ac_status=$?
10628 grep -v '^ *+' conftest.er1 >conftest.err
10629 rm -f conftest.er1
10630 cat conftest.err >&5
10631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10632 (exit $ac_status); } &&
10633 { ac_try='test -z "$ac_c_werror_flag"
10634 || test ! -s conftest.err'
10635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10636 (eval $ac_try) 2>&5
10637 ac_status=$?
10638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10639 (exit $ac_status); }; } &&
10640 { ac_try='test -s conftest.$ac_objext'
10641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10642 (eval $ac_try) 2>&5
10643 ac_status=$?
10644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10645 (exit $ac_status); }; }; then
10646 ac_header_compiler=yes
10647 else
10648 echo "$as_me: failed program was:" >&5
10649 sed 's/^/| /' conftest.$ac_ext >&5
10651 ac_header_compiler=no
10653 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10654 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10655 echo "${ECHO_T}$ac_header_compiler" >&6
10657 # Is the header present?
10658 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10659 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10660 cat >conftest.$ac_ext <<_ACEOF
10661 /* confdefs.h. */
10662 _ACEOF
10663 cat confdefs.h >>conftest.$ac_ext
10664 cat >>conftest.$ac_ext <<_ACEOF
10665 /* end confdefs.h. */
10666 #include <$ac_header>
10667 _ACEOF
10668 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10669 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10670 ac_status=$?
10671 grep -v '^ *+' conftest.er1 >conftest.err
10672 rm -f conftest.er1
10673 cat conftest.err >&5
10674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10675 (exit $ac_status); } >/dev/null; then
10676 if test -s conftest.err; then
10677 ac_cpp_err=$ac_c_preproc_warn_flag
10678 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10679 else
10680 ac_cpp_err=
10682 else
10683 ac_cpp_err=yes
10685 if test -z "$ac_cpp_err"; then
10686 ac_header_preproc=yes
10687 else
10688 echo "$as_me: failed program was:" >&5
10689 sed 's/^/| /' conftest.$ac_ext >&5
10691 ac_header_preproc=no
10693 rm -f conftest.err conftest.$ac_ext
10694 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10695 echo "${ECHO_T}$ac_header_preproc" >&6
10697 # So? What about this header?
10698 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10699 yes:no: )
10700 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10701 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10702 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10703 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10704 ac_header_preproc=yes
10706 no:yes:* )
10707 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10708 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10709 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10710 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10711 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10712 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10713 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10714 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10715 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10716 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10717 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10718 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10720 cat <<\_ASBOX
10721 ## ------------------------------------------ ##
10722 ## Report this to the AC_PACKAGE_NAME lists. ##
10723 ## ------------------------------------------ ##
10724 _ASBOX
10726 sed "s/^/$as_me: WARNING: /" >&2
10728 esac
10729 echo "$as_me:$LINENO: checking for $ac_header" >&5
10730 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10731 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10732 echo $ECHO_N "(cached) $ECHO_C" >&6
10733 else
10734 eval "$as_ac_Header=\$ac_header_preproc"
10736 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10737 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10740 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10741 cat >>confdefs.h <<_ACEOF
10742 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10743 _ACEOF
10747 done
10750 for ac_func in getpagesize
10752 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10753 echo "$as_me:$LINENO: checking for $ac_func" >&5
10754 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10755 if eval "test \"\${$as_ac_var+set}\" = set"; then
10756 echo $ECHO_N "(cached) $ECHO_C" >&6
10757 else
10758 if test x$gcc_no_link = xyes; then
10759 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10760 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10761 { (exit 1); exit 1; }; }
10763 cat >conftest.$ac_ext <<_ACEOF
10764 /* confdefs.h. */
10765 _ACEOF
10766 cat confdefs.h >>conftest.$ac_ext
10767 cat >>conftest.$ac_ext <<_ACEOF
10768 /* end confdefs.h. */
10769 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10770 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10771 #define $ac_func innocuous_$ac_func
10773 /* System header to define __stub macros and hopefully few prototypes,
10774 which can conflict with char $ac_func (); below.
10775 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10776 <limits.h> exists even on freestanding compilers. */
10778 #ifdef __STDC__
10779 # include <limits.h>
10780 #else
10781 # include <assert.h>
10782 #endif
10784 #undef $ac_func
10786 /* Override any gcc2 internal prototype to avoid an error. */
10787 #ifdef __cplusplus
10788 extern "C"
10790 #endif
10791 /* We use char because int might match the return type of a gcc2
10792 builtin and then its argument prototype would still apply. */
10793 char $ac_func ();
10794 /* The GNU C library defines this for functions which it implements
10795 to always fail with ENOSYS. Some functions are actually named
10796 something starting with __ and the normal name is an alias. */
10797 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10798 choke me
10799 #else
10800 char (*f) () = $ac_func;
10801 #endif
10802 #ifdef __cplusplus
10804 #endif
10807 main ()
10809 return f != $ac_func;
10811 return 0;
10813 _ACEOF
10814 rm -f conftest.$ac_objext conftest$ac_exeext
10815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10816 (eval $ac_link) 2>conftest.er1
10817 ac_status=$?
10818 grep -v '^ *+' conftest.er1 >conftest.err
10819 rm -f conftest.er1
10820 cat conftest.err >&5
10821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10822 (exit $ac_status); } &&
10823 { ac_try='test -z "$ac_c_werror_flag"
10824 || test ! -s conftest.err'
10825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10826 (eval $ac_try) 2>&5
10827 ac_status=$?
10828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10829 (exit $ac_status); }; } &&
10830 { ac_try='test -s conftest$ac_exeext'
10831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10832 (eval $ac_try) 2>&5
10833 ac_status=$?
10834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10835 (exit $ac_status); }; }; then
10836 eval "$as_ac_var=yes"
10837 else
10838 echo "$as_me: failed program was:" >&5
10839 sed 's/^/| /' conftest.$ac_ext >&5
10841 eval "$as_ac_var=no"
10843 rm -f conftest.err conftest.$ac_objext \
10844 conftest$ac_exeext conftest.$ac_ext
10846 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10847 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10848 if test `eval echo '${'$as_ac_var'}'` = yes; then
10849 cat >>confdefs.h <<_ACEOF
10850 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10851 _ACEOF
10854 done
10856 echo "$as_me:$LINENO: checking for working mmap" >&5
10857 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
10858 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10859 echo $ECHO_N "(cached) $ECHO_C" >&6
10860 else
10861 if test "$cross_compiling" = yes; then
10862 ac_cv_func_mmap_fixed_mapped=no
10863 else
10864 cat >conftest.$ac_ext <<_ACEOF
10865 /* confdefs.h. */
10866 _ACEOF
10867 cat confdefs.h >>conftest.$ac_ext
10868 cat >>conftest.$ac_ext <<_ACEOF
10869 /* end confdefs.h. */
10870 $ac_includes_default
10871 /* malloc might have been renamed as rpl_malloc. */
10872 #undef malloc
10874 /* Thanks to Mike Haertel and Jim Avera for this test.
10875 Here is a matrix of mmap possibilities:
10876 mmap private not fixed
10877 mmap private fixed at somewhere currently unmapped
10878 mmap private fixed at somewhere already mapped
10879 mmap shared not fixed
10880 mmap shared fixed at somewhere currently unmapped
10881 mmap shared fixed at somewhere already mapped
10882 For private mappings, we should verify that changes cannot be read()
10883 back from the file, nor mmap's back from the file at a different
10884 address. (There have been systems where private was not correctly
10885 implemented like the infamous i386 svr4.0, and systems where the
10886 VM page cache was not coherent with the file system buffer cache
10887 like early versions of FreeBSD and possibly contemporary NetBSD.)
10888 For shared mappings, we should conversely verify that changes get
10889 propagated back to all the places they're supposed to be.
10891 Grep wants private fixed already mapped.
10892 The main things grep needs to know about mmap are:
10893 * does it exist and is it safe to write into the mmap'd area
10894 * how to use it (BSD variants) */
10896 #include <fcntl.h>
10897 #include <sys/mman.h>
10899 #if !STDC_HEADERS && !HAVE_STDLIB_H
10900 char *malloc ();
10901 #endif
10903 /* This mess was copied from the GNU getpagesize.h. */
10904 #if !HAVE_GETPAGESIZE
10905 /* Assume that all systems that can run configure have sys/param.h. */
10906 # if !HAVE_SYS_PARAM_H
10907 # define HAVE_SYS_PARAM_H 1
10908 # endif
10910 # ifdef _SC_PAGESIZE
10911 # define getpagesize() sysconf(_SC_PAGESIZE)
10912 # else /* no _SC_PAGESIZE */
10913 # if HAVE_SYS_PARAM_H
10914 # include <sys/param.h>
10915 # ifdef EXEC_PAGESIZE
10916 # define getpagesize() EXEC_PAGESIZE
10917 # else /* no EXEC_PAGESIZE */
10918 # ifdef NBPG
10919 # define getpagesize() NBPG * CLSIZE
10920 # ifndef CLSIZE
10921 # define CLSIZE 1
10922 # endif /* no CLSIZE */
10923 # else /* no NBPG */
10924 # ifdef NBPC
10925 # define getpagesize() NBPC
10926 # else /* no NBPC */
10927 # ifdef PAGESIZE
10928 # define getpagesize() PAGESIZE
10929 # endif /* PAGESIZE */
10930 # endif /* no NBPC */
10931 # endif /* no NBPG */
10932 # endif /* no EXEC_PAGESIZE */
10933 # else /* no HAVE_SYS_PARAM_H */
10934 # define getpagesize() 8192 /* punt totally */
10935 # endif /* no HAVE_SYS_PARAM_H */
10936 # endif /* no _SC_PAGESIZE */
10938 #endif /* no HAVE_GETPAGESIZE */
10941 main ()
10943 char *data, *data2, *data3;
10944 int i, pagesize;
10945 int fd;
10947 pagesize = getpagesize ();
10949 /* First, make a file with some known garbage in it. */
10950 data = (char *) malloc (pagesize);
10951 if (!data)
10952 exit (1);
10953 for (i = 0; i < pagesize; ++i)
10954 *(data + i) = rand ();
10955 umask (0);
10956 fd = creat ("conftest.mmap", 0600);
10957 if (fd < 0)
10958 exit (1);
10959 if (write (fd, data, pagesize) != pagesize)
10960 exit (1);
10961 close (fd);
10963 /* Next, try to mmap the file at a fixed address which already has
10964 something else allocated at it. If we can, also make sure that
10965 we see the same garbage. */
10966 fd = open ("conftest.mmap", O_RDWR);
10967 if (fd < 0)
10968 exit (1);
10969 data2 = (char *) malloc (2 * pagesize);
10970 if (!data2)
10971 exit (1);
10972 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
10973 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10974 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10975 exit (1);
10976 for (i = 0; i < pagesize; ++i)
10977 if (*(data + i) != *(data2 + i))
10978 exit (1);
10980 /* Finally, make sure that changes to the mapped area do not
10981 percolate back to the file as seen by read(). (This is a bug on
10982 some variants of i386 svr4.0.) */
10983 for (i = 0; i < pagesize; ++i)
10984 *(data2 + i) = *(data2 + i) + 1;
10985 data3 = (char *) malloc (pagesize);
10986 if (!data3)
10987 exit (1);
10988 if (read (fd, data3, pagesize) != pagesize)
10989 exit (1);
10990 for (i = 0; i < pagesize; ++i)
10991 if (*(data + i) != *(data3 + i))
10992 exit (1);
10993 close (fd);
10994 exit (0);
10996 _ACEOF
10997 rm -f conftest$ac_exeext
10998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10999 (eval $ac_link) 2>&5
11000 ac_status=$?
11001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11002 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11004 (eval $ac_try) 2>&5
11005 ac_status=$?
11006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11007 (exit $ac_status); }; }; then
11008 ac_cv_func_mmap_fixed_mapped=yes
11009 else
11010 echo "$as_me: program exited with status $ac_status" >&5
11011 echo "$as_me: failed program was:" >&5
11012 sed 's/^/| /' conftest.$ac_ext >&5
11014 ( exit $ac_status )
11015 ac_cv_func_mmap_fixed_mapped=no
11017 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11020 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
11021 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
11022 if test $ac_cv_func_mmap_fixed_mapped = yes; then
11024 cat >>confdefs.h <<\_ACEOF
11025 #define HAVE_MMAP 1
11026 _ACEOF
11029 rm -f conftest.mmap
11034 for ac_func in memcpy strerror
11036 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11037 echo "$as_me:$LINENO: checking for $ac_func" >&5
11038 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11039 if eval "test \"\${$as_ac_var+set}\" = set"; then
11040 echo $ECHO_N "(cached) $ECHO_C" >&6
11041 else
11042 if test x$gcc_no_link = xyes; then
11043 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11044 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11045 { (exit 1); exit 1; }; }
11047 cat >conftest.$ac_ext <<_ACEOF
11048 /* confdefs.h. */
11049 _ACEOF
11050 cat confdefs.h >>conftest.$ac_ext
11051 cat >>conftest.$ac_ext <<_ACEOF
11052 /* end confdefs.h. */
11053 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11054 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11055 #define $ac_func innocuous_$ac_func
11057 /* System header to define __stub macros and hopefully few prototypes,
11058 which can conflict with char $ac_func (); below.
11059 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11060 <limits.h> exists even on freestanding compilers. */
11062 #ifdef __STDC__
11063 # include <limits.h>
11064 #else
11065 # include <assert.h>
11066 #endif
11068 #undef $ac_func
11070 /* Override any gcc2 internal prototype to avoid an error. */
11071 #ifdef __cplusplus
11072 extern "C"
11074 #endif
11075 /* We use char because int might match the return type of a gcc2
11076 builtin and then its argument prototype would still apply. */
11077 char $ac_func ();
11078 /* The GNU C library defines this for functions which it implements
11079 to always fail with ENOSYS. Some functions are actually named
11080 something starting with __ and the normal name is an alias. */
11081 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11082 choke me
11083 #else
11084 char (*f) () = $ac_func;
11085 #endif
11086 #ifdef __cplusplus
11088 #endif
11091 main ()
11093 return f != $ac_func;
11095 return 0;
11097 _ACEOF
11098 rm -f conftest.$ac_objext conftest$ac_exeext
11099 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11100 (eval $ac_link) 2>conftest.er1
11101 ac_status=$?
11102 grep -v '^ *+' conftest.er1 >conftest.err
11103 rm -f conftest.er1
11104 cat conftest.err >&5
11105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11106 (exit $ac_status); } &&
11107 { ac_try='test -z "$ac_c_werror_flag"
11108 || test ! -s conftest.err'
11109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11110 (eval $ac_try) 2>&5
11111 ac_status=$?
11112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11113 (exit $ac_status); }; } &&
11114 { ac_try='test -s conftest$ac_exeext'
11115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11116 (eval $ac_try) 2>&5
11117 ac_status=$?
11118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11119 (exit $ac_status); }; }; then
11120 eval "$as_ac_var=yes"
11121 else
11122 echo "$as_me: failed program was:" >&5
11123 sed 's/^/| /' conftest.$ac_ext >&5
11125 eval "$as_ac_var=no"
11127 rm -f conftest.err conftest.$ac_objext \
11128 conftest$ac_exeext conftest.$ac_ext
11130 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11131 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11132 if test `eval echo '${'$as_ac_var'}'` = yes; then
11133 cat >>confdefs.h <<_ACEOF
11134 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11135 _ACEOF
11138 done
11141 if test "$with_system_zlib" = yes; then
11142 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
11143 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
11144 if test "${ac_cv_lib_z_deflate+set}" = set; then
11145 echo $ECHO_N "(cached) $ECHO_C" >&6
11146 else
11147 ac_check_lib_save_LIBS=$LIBS
11148 LIBS="-lz $LIBS"
11149 if test x$gcc_no_link = xyes; then
11150 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11151 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11152 { (exit 1); exit 1; }; }
11154 cat >conftest.$ac_ext <<_ACEOF
11155 /* confdefs.h. */
11156 _ACEOF
11157 cat confdefs.h >>conftest.$ac_ext
11158 cat >>conftest.$ac_ext <<_ACEOF
11159 /* end confdefs.h. */
11161 /* Override any gcc2 internal prototype to avoid an error. */
11162 #ifdef __cplusplus
11163 extern "C"
11164 #endif
11165 /* We use char because int might match the return type of a gcc2
11166 builtin and then its argument prototype would still apply. */
11167 char deflate ();
11169 main ()
11171 deflate ();
11173 return 0;
11175 _ACEOF
11176 rm -f conftest.$ac_objext conftest$ac_exeext
11177 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11178 (eval $ac_link) 2>conftest.er1
11179 ac_status=$?
11180 grep -v '^ *+' conftest.er1 >conftest.err
11181 rm -f conftest.er1
11182 cat conftest.err >&5
11183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11184 (exit $ac_status); } &&
11185 { ac_try='test -z "$ac_c_werror_flag"
11186 || test ! -s conftest.err'
11187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11188 (eval $ac_try) 2>&5
11189 ac_status=$?
11190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11191 (exit $ac_status); }; } &&
11192 { ac_try='test -s conftest$ac_exeext'
11193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11194 (eval $ac_try) 2>&5
11195 ac_status=$?
11196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11197 (exit $ac_status); }; }; then
11198 ac_cv_lib_z_deflate=yes
11199 else
11200 echo "$as_me: failed program was:" >&5
11201 sed 's/^/| /' conftest.$ac_ext >&5
11203 ac_cv_lib_z_deflate=no
11205 rm -f conftest.err conftest.$ac_objext \
11206 conftest$ac_exeext conftest.$ac_ext
11207 LIBS=$ac_check_lib_save_LIBS
11209 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
11210 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
11211 if test $ac_cv_lib_z_deflate = yes; then
11212 target_all=
11213 else
11214 target_all=libzgcj.la
11217 else
11218 target_all=libzgcj.la
11225 for ac_header in unistd.h
11227 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11228 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11229 echo "$as_me:$LINENO: checking for $ac_header" >&5
11230 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11231 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11232 echo $ECHO_N "(cached) $ECHO_C" >&6
11234 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11235 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11236 else
11237 # Is the header compilable?
11238 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11239 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11240 cat >conftest.$ac_ext <<_ACEOF
11241 /* confdefs.h. */
11242 _ACEOF
11243 cat confdefs.h >>conftest.$ac_ext
11244 cat >>conftest.$ac_ext <<_ACEOF
11245 /* end confdefs.h. */
11246 $ac_includes_default
11247 #include <$ac_header>
11248 _ACEOF
11249 rm -f conftest.$ac_objext
11250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11251 (eval $ac_compile) 2>conftest.er1
11252 ac_status=$?
11253 grep -v '^ *+' conftest.er1 >conftest.err
11254 rm -f conftest.er1
11255 cat conftest.err >&5
11256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11257 (exit $ac_status); } &&
11258 { ac_try='test -z "$ac_c_werror_flag"
11259 || test ! -s conftest.err'
11260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11261 (eval $ac_try) 2>&5
11262 ac_status=$?
11263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11264 (exit $ac_status); }; } &&
11265 { ac_try='test -s conftest.$ac_objext'
11266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11267 (eval $ac_try) 2>&5
11268 ac_status=$?
11269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11270 (exit $ac_status); }; }; then
11271 ac_header_compiler=yes
11272 else
11273 echo "$as_me: failed program was:" >&5
11274 sed 's/^/| /' conftest.$ac_ext >&5
11276 ac_header_compiler=no
11278 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11279 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11280 echo "${ECHO_T}$ac_header_compiler" >&6
11282 # Is the header present?
11283 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11284 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11285 cat >conftest.$ac_ext <<_ACEOF
11286 /* confdefs.h. */
11287 _ACEOF
11288 cat confdefs.h >>conftest.$ac_ext
11289 cat >>conftest.$ac_ext <<_ACEOF
11290 /* end confdefs.h. */
11291 #include <$ac_header>
11292 _ACEOF
11293 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11294 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11295 ac_status=$?
11296 grep -v '^ *+' conftest.er1 >conftest.err
11297 rm -f conftest.er1
11298 cat conftest.err >&5
11299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11300 (exit $ac_status); } >/dev/null; then
11301 if test -s conftest.err; then
11302 ac_cpp_err=$ac_c_preproc_warn_flag
11303 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11304 else
11305 ac_cpp_err=
11307 else
11308 ac_cpp_err=yes
11310 if test -z "$ac_cpp_err"; then
11311 ac_header_preproc=yes
11312 else
11313 echo "$as_me: failed program was:" >&5
11314 sed 's/^/| /' conftest.$ac_ext >&5
11316 ac_header_preproc=no
11318 rm -f conftest.err conftest.$ac_ext
11319 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11320 echo "${ECHO_T}$ac_header_preproc" >&6
11322 # So? What about this header?
11323 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11324 yes:no: )
11325 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11326 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11327 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11328 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11329 ac_header_preproc=yes
11331 no:yes:* )
11332 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11333 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11334 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11335 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11336 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11337 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11338 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11339 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11340 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11341 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11342 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11343 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11345 cat <<\_ASBOX
11346 ## ------------------------------------------ ##
11347 ## Report this to the AC_PACKAGE_NAME lists. ##
11348 ## ------------------------------------------ ##
11349 _ASBOX
11351 sed "s/^/$as_me: WARNING: /" >&2
11353 esac
11354 echo "$as_me:$LINENO: checking for $ac_header" >&5
11355 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11356 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11357 echo $ECHO_N "(cached) $ECHO_C" >&6
11358 else
11359 eval "$as_ac_Header=\$ac_header_preproc"
11361 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11362 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11365 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11366 cat >>confdefs.h <<_ACEOF
11367 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11368 _ACEOF
11372 done
11375 if test -n "$with_cross_host" &&
11376 test x"$with_cross_host" != x"no"; then
11377 toolexecdir='$(exec_prefix)/$(target_alias)'
11378 toolexeclibdir='$(toolexecdir)/lib'
11379 else
11380 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
11381 toolexeclibdir='$(libdir)'
11383 if test "$GCC" = yes && $CC -print-multi-os-directory > /dev/null 2>&1; then
11384 multiosdir=/`$CC -print-multi-os-directory`
11385 case $multiosdir in
11386 /.) multiosdir= ;; # Avoid trailing /.
11387 esac
11388 else
11389 multiosdir=
11391 toolexeclibdir=${toolexeclibdir}${multiosdir}
11397 if test -n "$with_target_subdir"; then
11398 TARGET_LIBRARY_TRUE=
11399 TARGET_LIBRARY_FALSE='#'
11400 else
11401 TARGET_LIBRARY_TRUE='#'
11402 TARGET_LIBRARY_FALSE=
11406 if test "${multilib}" = "yes"; then
11407 multilib_arg="--enable-multilib"
11408 else
11409 multilib_arg=
11412 ac_config_files="$ac_config_files Makefile"
11414 cat >confcache <<\_ACEOF
11415 # This file is a shell script that caches the results of configure
11416 # tests run on this system so they can be shared between configure
11417 # scripts and configure runs, see configure's option --config-cache.
11418 # It is not useful on other systems. If it contains results you don't
11419 # want to keep, you may remove or edit it.
11421 # config.status only pays attention to the cache file if you give it
11422 # the --recheck option to rerun configure.
11424 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11425 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11426 # following values.
11428 _ACEOF
11430 # The following way of writing the cache mishandles newlines in values,
11431 # but we know of no workaround that is simple, portable, and efficient.
11432 # So, don't put newlines in cache variables' values.
11433 # Ultrix sh set writes to stderr and can't be redirected directly,
11434 # and sets the high bit in the cache file unless we assign to the vars.
11436 (set) 2>&1 |
11437 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11438 *ac_space=\ *)
11439 # `set' does not quote correctly, so add quotes (double-quote
11440 # substitution turns \\\\ into \\, and sed turns \\ into \).
11441 sed -n \
11442 "s/'/'\\\\''/g;
11443 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11446 # `set' quotes correctly as required by POSIX, so do not add quotes.
11447 sed -n \
11448 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11450 esac;
11452 sed '
11453 t clear
11454 : clear
11455 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11456 t end
11457 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11458 : end' >>confcache
11459 if diff $cache_file confcache >/dev/null 2>&1; then :; else
11460 if test -w $cache_file; then
11461 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11462 cat confcache >$cache_file
11463 else
11464 echo "not updating unwritable cache $cache_file"
11467 rm -f confcache
11469 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11470 # Let make expand exec_prefix.
11471 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11473 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11474 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11475 # trailing colons and then remove the whole line if VPATH becomes empty
11476 # (actually we leave an empty line to preserve line numbers).
11477 if test "x$srcdir" = x.; then
11478 ac_vpsub='/^[ ]*VPATH[ ]*=/{
11479 s/:*\$(srcdir):*/:/;
11480 s/:*\${srcdir}:*/:/;
11481 s/:*@srcdir@:*/:/;
11482 s/^\([^=]*=[ ]*\):*/\1/;
11483 s/:*$//;
11484 s/^[^=]*=[ ]*$//;
11488 # Transform confdefs.h into DEFS.
11489 # Protect against shell expansion while executing Makefile rules.
11490 # Protect against Makefile macro expansion.
11492 # If the first sed substitution is executed (which looks for macros that
11493 # take arguments), then we branch to the quote section. Otherwise,
11494 # look for a macro that doesn't take arguments.
11495 cat >confdef2opt.sed <<\_ACEOF
11496 t clear
11497 : clear
11498 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
11499 t quote
11500 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
11501 t quote
11503 : quote
11504 s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
11505 s,\[,\\&,g
11506 s,\],\\&,g
11507 s,\$,$$,g
11509 _ACEOF
11510 # We use echo to avoid assuming a particular line-breaking character.
11511 # The extra dot is to prevent the shell from consuming trailing
11512 # line-breaks from the sub-command output. A line-break within
11513 # single-quotes doesn't work because, if this script is created in a
11514 # platform that uses two characters for line-breaks (e.g., DOS), tr
11515 # would break.
11516 ac_LF_and_DOT=`echo; echo .`
11517 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
11518 rm -f confdef2opt.sed
11521 ac_libobjs=
11522 ac_ltlibobjs=
11523 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11524 # 1. Remove the extension, and $U if already installed.
11525 ac_i=`echo "$ac_i" |
11526 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
11527 # 2. Add them.
11528 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
11529 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
11530 done
11531 LIBOBJS=$ac_libobjs
11533 LTLIBOBJS=$ac_ltlibobjs
11536 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11537 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
11538 Usually this means the macro was only invoked conditionally." >&5
11539 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
11540 Usually this means the macro was only invoked conditionally." >&2;}
11541 { (exit 1); exit 1; }; }
11543 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11544 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
11545 Usually this means the macro was only invoked conditionally." >&5
11546 echo "$as_me: error: conditional \"AMDEP\" was never defined.
11547 Usually this means the macro was only invoked conditionally." >&2;}
11548 { (exit 1); exit 1; }; }
11550 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11551 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
11552 Usually this means the macro was only invoked conditionally." >&5
11553 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
11554 Usually this means the macro was only invoked conditionally." >&2;}
11555 { (exit 1); exit 1; }; }
11557 if test -z "${TARGET_LIBRARY_TRUE}" && test -z "${TARGET_LIBRARY_FALSE}"; then
11558 { { echo "$as_me:$LINENO: error: conditional \"TARGET_LIBRARY\" was never defined.
11559 Usually this means the macro was only invoked conditionally." >&5
11560 echo "$as_me: error: conditional \"TARGET_LIBRARY\" was never defined.
11561 Usually this means the macro was only invoked conditionally." >&2;}
11562 { (exit 1); exit 1; }; }
11565 : ${CONFIG_STATUS=./config.status}
11566 ac_clean_files_save=$ac_clean_files
11567 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11568 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11569 echo "$as_me: creating $CONFIG_STATUS" >&6;}
11570 cat >$CONFIG_STATUS <<_ACEOF
11571 #! $SHELL
11572 # Generated by $as_me.
11573 # Run this file to recreate the current configuration.
11574 # Compiler output produced by configure, useful for debugging
11575 # configure, is in config.log if it exists.
11577 debug=false
11578 ac_cs_recheck=false
11579 ac_cs_silent=false
11580 SHELL=\${CONFIG_SHELL-$SHELL}
11581 _ACEOF
11583 cat >>$CONFIG_STATUS <<\_ACEOF
11584 ## --------------------- ##
11585 ## M4sh Initialization. ##
11586 ## --------------------- ##
11588 # Be Bourne compatible
11589 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11590 emulate sh
11591 NULLCMD=:
11592 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11593 # is contrary to our usage. Disable this feature.
11594 alias -g '${1+"$@"}'='"$@"'
11595 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11596 set -o posix
11598 DUALCASE=1; export DUALCASE # for MKS sh
11600 # Support unset when possible.
11601 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11602 as_unset=unset
11603 else
11604 as_unset=false
11608 # Work around bugs in pre-3.0 UWIN ksh.
11609 $as_unset ENV MAIL MAILPATH
11610 PS1='$ '
11611 PS2='> '
11612 PS4='+ '
11614 # NLS nuisances.
11615 for as_var in \
11616 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11617 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11618 LC_TELEPHONE LC_TIME
11620 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11621 eval $as_var=C; export $as_var
11622 else
11623 $as_unset $as_var
11625 done
11627 # Required to use basename.
11628 if expr a : '\(a\)' >/dev/null 2>&1; then
11629 as_expr=expr
11630 else
11631 as_expr=false
11634 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
11635 as_basename=basename
11636 else
11637 as_basename=false
11641 # Name of the executable.
11642 as_me=`$as_basename "$0" ||
11643 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11644 X"$0" : 'X\(//\)$' \| \
11645 X"$0" : 'X\(/\)$' \| \
11646 . : '\(.\)' 2>/dev/null ||
11647 echo X/"$0" |
11648 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11649 /^X\/\(\/\/\)$/{ s//\1/; q; }
11650 /^X\/\(\/\).*/{ s//\1/; q; }
11651 s/.*/./; q'`
11654 # PATH needs CR, and LINENO needs CR and PATH.
11655 # Avoid depending upon Character Ranges.
11656 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11657 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11658 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11659 as_cr_digits='0123456789'
11660 as_cr_alnum=$as_cr_Letters$as_cr_digits
11662 # The user is always right.
11663 if test "${PATH_SEPARATOR+set}" != set; then
11664 echo "#! /bin/sh" >conf$$.sh
11665 echo "exit 0" >>conf$$.sh
11666 chmod +x conf$$.sh
11667 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11668 PATH_SEPARATOR=';'
11669 else
11670 PATH_SEPARATOR=:
11672 rm -f conf$$.sh
11676 as_lineno_1=$LINENO
11677 as_lineno_2=$LINENO
11678 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11679 test "x$as_lineno_1" != "x$as_lineno_2" &&
11680 test "x$as_lineno_3" = "x$as_lineno_2" || {
11681 # Find who we are. Look in the path if we contain no path at all
11682 # relative or not.
11683 case $0 in
11684 *[\\/]* ) as_myself=$0 ;;
11685 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11686 for as_dir in $PATH
11688 IFS=$as_save_IFS
11689 test -z "$as_dir" && as_dir=.
11690 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11691 done
11694 esac
11695 # We did not find ourselves, most probably we were run as `sh COMMAND'
11696 # in which case we are not to be found in the path.
11697 if test "x$as_myself" = x; then
11698 as_myself=$0
11700 if test ! -f "$as_myself"; then
11701 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11702 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11703 { (exit 1); exit 1; }; }
11705 case $CONFIG_SHELL in
11707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11708 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11710 IFS=$as_save_IFS
11711 test -z "$as_dir" && as_dir=.
11712 for as_base in sh bash ksh sh5; do
11713 case $as_dir in
11715 if ("$as_dir/$as_base" -c '
11716 as_lineno_1=$LINENO
11717 as_lineno_2=$LINENO
11718 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11719 test "x$as_lineno_1" != "x$as_lineno_2" &&
11720 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
11721 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11722 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11723 CONFIG_SHELL=$as_dir/$as_base
11724 export CONFIG_SHELL
11725 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11726 fi;;
11727 esac
11728 done
11729 done
11731 esac
11733 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11734 # uniformly replaced by the line number. The first 'sed' inserts a
11735 # line-number line before each line; the second 'sed' does the real
11736 # work. The second script uses 'N' to pair each line-number line
11737 # with the numbered line, and appends trailing '-' during
11738 # substitution so that $LINENO is not a special case at line end.
11739 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11740 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
11741 sed '=' <$as_myself |
11742 sed '
11744 s,$,-,
11745 : loop
11746 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11747 t loop
11748 s,-$,,
11749 s,^['$as_cr_digits']*\n,,
11750 ' >$as_me.lineno &&
11751 chmod +x $as_me.lineno ||
11752 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11753 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11754 { (exit 1); exit 1; }; }
11756 # Don't try to exec as it changes $[0], causing all sort of problems
11757 # (the dirname of $[0] is not the place where we might find the
11758 # original and so on. Autoconf is especially sensible to this).
11759 . ./$as_me.lineno
11760 # Exit status is that of the last command.
11761 exit
11765 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11766 *c*,-n*) ECHO_N= ECHO_C='
11767 ' ECHO_T=' ' ;;
11768 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11769 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
11770 esac
11772 if expr a : '\(a\)' >/dev/null 2>&1; then
11773 as_expr=expr
11774 else
11775 as_expr=false
11778 rm -f conf$$ conf$$.exe conf$$.file
11779 echo >conf$$.file
11780 if ln -s conf$$.file conf$$ 2>/dev/null; then
11781 # We could just check for DJGPP; but this test a) works b) is more generic
11782 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11783 if test -f conf$$.exe; then
11784 # Don't use ln at all; we don't have any links
11785 as_ln_s='cp -p'
11786 else
11787 as_ln_s='ln -s'
11789 elif ln conf$$.file conf$$ 2>/dev/null; then
11790 as_ln_s=ln
11791 else
11792 as_ln_s='cp -p'
11794 rm -f conf$$ conf$$.exe conf$$.file
11796 if mkdir -p . 2>/dev/null; then
11797 as_mkdir_p=:
11798 else
11799 test -d ./-p && rmdir ./-p
11800 as_mkdir_p=false
11803 as_executable_p="test -f"
11805 # Sed expression to map a string onto a valid CPP name.
11806 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11808 # Sed expression to map a string onto a valid variable name.
11809 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11812 # IFS
11813 # We need space, tab and new line, in precisely that order.
11814 as_nl='
11816 IFS=" $as_nl"
11818 # CDPATH.
11819 $as_unset CDPATH
11821 exec 6>&1
11823 # Open the log real soon, to keep \$[0] and so on meaningful, and to
11824 # report actual input values of CONFIG_FILES etc. instead of their
11825 # values after options handling. Logging --version etc. is OK.
11826 exec 5>>config.log
11828 echo
11829 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11830 ## Running $as_me. ##
11831 _ASBOX
11832 } >&5
11833 cat >&5 <<_CSEOF
11835 This file was extended by $as_me, which was
11836 generated by GNU Autoconf 2.59. Invocation command line was
11838 CONFIG_FILES = $CONFIG_FILES
11839 CONFIG_HEADERS = $CONFIG_HEADERS
11840 CONFIG_LINKS = $CONFIG_LINKS
11841 CONFIG_COMMANDS = $CONFIG_COMMANDS
11842 $ $0 $@
11844 _CSEOF
11845 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11846 echo >&5
11847 _ACEOF
11849 # Files that config.status was made for.
11850 if test -n "$ac_config_files"; then
11851 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11854 if test -n "$ac_config_headers"; then
11855 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11858 if test -n "$ac_config_links"; then
11859 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11862 if test -n "$ac_config_commands"; then
11863 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11866 cat >>$CONFIG_STATUS <<\_ACEOF
11868 ac_cs_usage="\
11869 \`$as_me' instantiates files from templates according to the
11870 current configuration.
11872 Usage: $0 [OPTIONS] [FILE]...
11874 -h, --help print this help, then exit
11875 -V, --version print version number, then exit
11876 -q, --quiet do not print progress messages
11877 -d, --debug don't remove temporary files
11878 --recheck update $as_me by reconfiguring in the same conditions
11879 --file=FILE[:TEMPLATE]
11880 instantiate the configuration file FILE
11882 Configuration files:
11883 $config_files
11885 Configuration commands:
11886 $config_commands
11888 Report bugs to <bug-autoconf@gnu.org>."
11889 _ACEOF
11891 cat >>$CONFIG_STATUS <<_ACEOF
11892 ac_cs_version="\\
11893 config.status
11894 configured by $0, generated by GNU Autoconf 2.59,
11895 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11897 Copyright (C) 2003 Free Software Foundation, Inc.
11898 This config.status script is free software; the Free Software Foundation
11899 gives unlimited permission to copy, distribute and modify it."
11900 srcdir=$srcdir
11901 INSTALL="$INSTALL"
11902 _ACEOF
11904 cat >>$CONFIG_STATUS <<\_ACEOF
11905 # If no file are specified by the user, then we need to provide default
11906 # value. By we need to know if files were specified by the user.
11907 ac_need_defaults=:
11908 while test $# != 0
11910 case $1 in
11911 --*=*)
11912 ac_option=`expr "x$1" : 'x\([^=]*\)='`
11913 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
11914 ac_shift=:
11917 ac_option=$1
11918 ac_optarg=$2
11919 ac_shift=shift
11921 *) # This is not an option, so the user has probably given explicit
11922 # arguments.
11923 ac_option=$1
11924 ac_need_defaults=false;;
11925 esac
11927 case $ac_option in
11928 # Handling of the options.
11929 _ACEOF
11930 cat >>$CONFIG_STATUS <<\_ACEOF
11931 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11932 ac_cs_recheck=: ;;
11933 --version | --vers* | -V )
11934 echo "$ac_cs_version"; exit 0 ;;
11935 --he | --h)
11936 # Conflict between --help and --header
11937 { { echo "$as_me:$LINENO: error: ambiguous option: $1
11938 Try \`$0 --help' for more information." >&5
11939 echo "$as_me: error: ambiguous option: $1
11940 Try \`$0 --help' for more information." >&2;}
11941 { (exit 1); exit 1; }; };;
11942 --help | --hel | -h )
11943 echo "$ac_cs_usage"; exit 0 ;;
11944 --debug | --d* | -d )
11945 debug=: ;;
11946 --file | --fil | --fi | --f )
11947 $ac_shift
11948 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11949 ac_need_defaults=false;;
11950 --header | --heade | --head | --hea )
11951 $ac_shift
11952 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11953 ac_need_defaults=false;;
11954 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11955 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11956 ac_cs_silent=: ;;
11958 # This is an error.
11959 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
11960 Try \`$0 --help' for more information." >&5
11961 echo "$as_me: error: unrecognized option: $1
11962 Try \`$0 --help' for more information." >&2;}
11963 { (exit 1); exit 1; }; } ;;
11965 *) ac_config_targets="$ac_config_targets $1" ;;
11967 esac
11968 shift
11969 done
11971 ac_configure_extra_args=
11973 if $ac_cs_silent; then
11974 exec 6>/dev/null
11975 ac_configure_extra_args="$ac_configure_extra_args --silent"
11978 _ACEOF
11979 cat >>$CONFIG_STATUS <<_ACEOF
11980 if \$ac_cs_recheck; then
11981 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11982 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11985 _ACEOF
11987 cat >>$CONFIG_STATUS <<_ACEOF
11989 # INIT-COMMANDS section.
11993 srcdir="$srcdir"
11994 host="$host"
11995 target="$target"
11996 with_multisubdir="$with_multisubdir"
11997 with_multisrctop="$with_multisrctop"
11998 with_target_subdir="$with_target_subdir"
11999 ac_configure_args="${multilib_arg} ${ac_configure_args}"
12000 multi_basedir="$multi_basedir"
12001 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
12002 CC="$CC"
12003 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12006 # The HP-UX ksh and POSIX shell print the target directory to stdout
12007 # if CDPATH is set.
12008 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12010 sed_quote_subst='$sed_quote_subst'
12011 double_quote_subst='$double_quote_subst'
12012 delay_variable_subst='$delay_variable_subst'
12013 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
12014 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
12015 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
12016 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
12017 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
12018 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
12019 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
12020 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
12021 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
12022 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
12023 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
12024 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
12025 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
12026 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
12027 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
12028 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
12029 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
12030 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
12031 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
12032 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
12033 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
12034 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
12035 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
12036 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
12037 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
12038 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
12039 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
12040 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12041 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
12042 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
12043 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
12044 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
12045 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12046 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
12047 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
12048 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12049 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12050 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12051 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
12052 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12053 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
12054 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
12055 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
12056 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
12057 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
12058 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12059 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
12060 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
12061 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
12062 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
12063 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
12064 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
12065 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
12066 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
12067 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
12068 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
12069 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
12070 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
12071 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
12072 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
12073 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
12074 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
12075 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12076 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12077 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
12078 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
12079 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12080 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12081 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
12082 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12083 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12084 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12085 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12086 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12087 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12088 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
12089 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12090 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12091 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12092 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
12093 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
12094 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
12095 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
12096 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
12097 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12098 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
12099 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
12100 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
12101 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
12102 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
12103 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12104 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12105 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12106 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12107 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
12108 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
12109 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12110 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
12111 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
12112 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12113 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12114 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
12115 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12116 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
12117 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12118 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12119 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12120 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12121 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
12122 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
12123 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12124 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12125 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
12126 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
12127 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
12128 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
12129 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
12130 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
12132 LTCC='$LTCC'
12133 LTCFLAGS='$LTCFLAGS'
12134 compiler='$compiler_DEFAULT'
12136 # Quote evaled strings.
12137 for var in SED \
12138 GREP \
12139 EGREP \
12140 FGREP \
12141 LD \
12142 NM \
12143 LN_S \
12144 lt_SP2NL \
12145 lt_NL2SP \
12146 reload_flag \
12147 OBJDUMP \
12148 deplibs_check_method \
12149 file_magic_cmd \
12150 AR \
12151 AR_FLAGS \
12152 STRIP \
12153 RANLIB \
12154 CC \
12155 CFLAGS \
12156 compiler \
12157 lt_cv_sys_global_symbol_pipe \
12158 lt_cv_sys_global_symbol_to_cdecl \
12159 lt_cv_sys_global_symbol_to_c_name_address \
12160 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12161 SHELL \
12162 ECHO \
12163 lt_prog_compiler_no_builtin_flag \
12164 lt_prog_compiler_wl \
12165 lt_prog_compiler_pic \
12166 lt_prog_compiler_static \
12167 lt_cv_prog_compiler_c_o \
12168 need_locks \
12169 DSYMUTIL \
12170 NMEDIT \
12171 LIPO \
12172 OTOOL \
12173 OTOOL64 \
12174 shrext_cmds \
12175 export_dynamic_flag_spec \
12176 whole_archive_flag_spec \
12177 compiler_needs_object \
12178 with_gnu_ld \
12179 allow_undefined_flag \
12180 no_undefined_flag \
12181 hardcode_libdir_flag_spec \
12182 hardcode_libdir_flag_spec_ld \
12183 hardcode_libdir_separator \
12184 fix_srcfile_path \
12185 exclude_expsyms \
12186 include_expsyms \
12187 file_list_spec \
12188 variables_saved_for_relink \
12189 libname_spec \
12190 library_names_spec \
12191 soname_spec \
12192 finish_eval \
12193 old_striplib \
12194 striplib; do
12195 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12196 *[\\\\\\\`\\"\\\$]*)
12197 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12200 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12202 esac
12203 done
12205 # Double-quote double-evaled strings.
12206 for var in reload_cmds \
12207 old_postinstall_cmds \
12208 old_postuninstall_cmds \
12209 old_archive_cmds \
12210 extract_expsyms_cmds \
12211 old_archive_from_new_cmds \
12212 old_archive_from_expsyms_cmds \
12213 archive_cmds \
12214 archive_expsym_cmds \
12215 module_cmds \
12216 module_expsym_cmds \
12217 export_symbols_cmds \
12218 prelink_cmds \
12219 postinstall_cmds \
12220 postuninstall_cmds \
12221 finish_cmds \
12222 sys_lib_search_path_spec \
12223 sys_lib_dlsearch_path_spec; do
12224 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12225 *[\\\\\\\`\\"\\\$]*)
12226 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12229 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12231 esac
12232 done
12234 # Fix-up fallback echo if it was mangled by the above quoting rules.
12235 case \$lt_ECHO in
12236 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
12238 esac
12240 ac_aux_dir='$ac_aux_dir'
12241 xsi_shell='$xsi_shell'
12242 lt_shell_append='$lt_shell_append'
12244 # See if we are running on zsh, and set the options which allow our
12245 # commands through without removal of \ escapes INIT.
12246 if test -n "\${ZSH_VERSION+set}" ; then
12247 setopt NO_GLOB_SUBST
12251 PACKAGE='$PACKAGE'
12252 VERSION='$VERSION'
12253 TIMESTAMP='$TIMESTAMP'
12254 RM='$RM'
12255 ofile='$ofile'
12260 _ACEOF
12264 cat >>$CONFIG_STATUS <<\_ACEOF
12265 for ac_config_target in $ac_config_targets
12267 case "$ac_config_target" in
12268 # Handling of arguments.
12269 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12270 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
12271 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12272 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12273 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12274 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12275 { (exit 1); exit 1; }; };;
12276 esac
12277 done
12279 # If the user did not use the arguments to specify the items to instantiate,
12280 # then the envvar interface is used. Set only those that are not.
12281 # We use the long form for the default assignment because of an extremely
12282 # bizarre bug on SunOS 4.1.3.
12283 if $ac_need_defaults; then
12284 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12285 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12288 # Have a temporary directory for convenience. Make it in the build tree
12289 # simply because there is no reason to put it here, and in addition,
12290 # creating and moving files from /tmp can sometimes cause problems.
12291 # Create a temporary directory, and hook for its removal unless debugging.
12292 $debug ||
12294 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12295 trap '{ (exit 1); exit 1; }' 1 2 13 15
12298 # Create a (secure) tmp directory for tmp files.
12301 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12302 test -n "$tmp" && test -d "$tmp"
12303 } ||
12305 tmp=./confstat$$-$RANDOM
12306 (umask 077 && mkdir $tmp)
12307 } ||
12309 echo "$me: cannot create a temporary directory in ." >&2
12310 { (exit 1); exit 1; }
12313 _ACEOF
12315 cat >>$CONFIG_STATUS <<_ACEOF
12318 # CONFIG_FILES section.
12321 # No need to generate the scripts if there are no CONFIG_FILES.
12322 # This happens for instance when ./config.status config.h
12323 if test -n "\$CONFIG_FILES"; then
12324 # Protect against being on the right side of a sed subst in config.status.
12325 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12326 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12327 s,@SHELL@,$SHELL,;t t
12328 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12329 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12330 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12331 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12332 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12333 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12334 s,@exec_prefix@,$exec_prefix,;t t
12335 s,@prefix@,$prefix,;t t
12336 s,@program_transform_name@,$program_transform_name,;t t
12337 s,@bindir@,$bindir,;t t
12338 s,@sbindir@,$sbindir,;t t
12339 s,@libexecdir@,$libexecdir,;t t
12340 s,@datadir@,$datadir,;t t
12341 s,@sysconfdir@,$sysconfdir,;t t
12342 s,@sharedstatedir@,$sharedstatedir,;t t
12343 s,@localstatedir@,$localstatedir,;t t
12344 s,@libdir@,$libdir,;t t
12345 s,@includedir@,$includedir,;t t
12346 s,@oldincludedir@,$oldincludedir,;t t
12347 s,@infodir@,$infodir,;t t
12348 s,@mandir@,$mandir,;t t
12349 s,@build_alias@,$build_alias,;t t
12350 s,@host_alias@,$host_alias,;t t
12351 s,@target_alias@,$target_alias,;t t
12352 s,@DEFS@,$DEFS,;t t
12353 s,@ECHO_C@,$ECHO_C,;t t
12354 s,@ECHO_N@,$ECHO_N,;t t
12355 s,@ECHO_T@,$ECHO_T,;t t
12356 s,@LIBS@,$LIBS,;t t
12357 s,@multi_basedir@,$multi_basedir,;t t
12358 s,@build@,$build,;t t
12359 s,@build_cpu@,$build_cpu,;t t
12360 s,@build_vendor@,$build_vendor,;t t
12361 s,@build_os@,$build_os,;t t
12362 s,@host@,$host,;t t
12363 s,@host_cpu@,$host_cpu,;t t
12364 s,@host_vendor@,$host_vendor,;t t
12365 s,@host_os@,$host_os,;t t
12366 s,@target@,$target,;t t
12367 s,@target_cpu@,$target_cpu,;t t
12368 s,@target_vendor@,$target_vendor,;t t
12369 s,@target_os@,$target_os,;t t
12370 s,@mkinstalldirs@,$mkinstalldirs,;t t
12371 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12372 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12373 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12374 s,@CYGPATH_W@,$CYGPATH_W,;t t
12375 s,@PACKAGE@,$PACKAGE,;t t
12376 s,@VERSION@,$VERSION,;t t
12377 s,@ACLOCAL@,$ACLOCAL,;t t
12378 s,@AUTOCONF@,$AUTOCONF,;t t
12379 s,@AUTOMAKE@,$AUTOMAKE,;t t
12380 s,@AUTOHEADER@,$AUTOHEADER,;t t
12381 s,@MAKEINFO@,$MAKEINFO,;t t
12382 s,@install_sh@,$install_sh,;t t
12383 s,@STRIP@,$STRIP,;t t
12384 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
12385 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
12386 s,@mkdir_p@,$mkdir_p,;t t
12387 s,@AWK@,$AWK,;t t
12388 s,@SET_MAKE@,$SET_MAKE,;t t
12389 s,@am__leading_dot@,$am__leading_dot,;t t
12390 s,@AMTAR@,$AMTAR,;t t
12391 s,@am__tar@,$am__tar,;t t
12392 s,@am__untar@,$am__untar,;t t
12393 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
12394 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
12395 s,@MAINT@,$MAINT,;t t
12396 s,@COMPPATH@,$COMPPATH,;t t
12397 s,@CC@,$CC,;t t
12398 s,@ac_ct_CC@,$ac_ct_CC,;t t
12399 s,@EXEEXT@,$EXEEXT,;t t
12400 s,@OBJEXT@,$OBJEXT,;t t
12401 s,@DEPDIR@,$DEPDIR,;t t
12402 s,@am__include@,$am__include,;t t
12403 s,@am__quote@,$am__quote,;t t
12404 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
12405 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
12406 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
12407 s,@CCDEPMODE@,$CCDEPMODE,;t t
12408 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
12409 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
12410 s,@CFLAGS@,$CFLAGS,;t t
12411 s,@LIBTOOL@,$LIBTOOL,;t t
12412 s,@SED@,$SED,;t t
12413 s,@EGREP@,$EGREP,;t t
12414 s,@FGREP@,$FGREP,;t t
12415 s,@GREP@,$GREP,;t t
12416 s,@LD@,$LD,;t t
12417 s,@DUMPBIN@,$DUMPBIN,;t t
12418 s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
12419 s,@NM@,$NM,;t t
12420 s,@LN_S@,$LN_S,;t t
12421 s,@OBJDUMP@,$OBJDUMP,;t t
12422 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
12423 s,@AR@,$AR,;t t
12424 s,@ac_ct_AR@,$ac_ct_AR,;t t
12425 s,@RANLIB@,$RANLIB,;t t
12426 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
12427 s,@lt_ECHO@,$lt_ECHO,;t t
12428 s,@DSYMUTIL@,$DSYMUTIL,;t t
12429 s,@ac_ct_DSYMUTIL@,$ac_ct_DSYMUTIL,;t t
12430 s,@NMEDIT@,$NMEDIT,;t t
12431 s,@ac_ct_NMEDIT@,$ac_ct_NMEDIT,;t t
12432 s,@LIPO@,$LIPO,;t t
12433 s,@ac_ct_LIPO@,$ac_ct_LIPO,;t t
12434 s,@OTOOL@,$OTOOL,;t t
12435 s,@ac_ct_OTOOL@,$ac_ct_OTOOL,;t t
12436 s,@OTOOL64@,$OTOOL64,;t t
12437 s,@ac_ct_OTOOL64@,$ac_ct_OTOOL64,;t t
12438 s,@CPP@,$CPP,;t t
12439 s,@CPPFLAGS@,$CPPFLAGS,;t t
12440 s,@target_all@,$target_all,;t t
12441 s,@toolexecdir@,$toolexecdir,;t t
12442 s,@toolexeclibdir@,$toolexeclibdir,;t t
12443 s,@TARGET_LIBRARY_TRUE@,$TARGET_LIBRARY_TRUE,;t t
12444 s,@TARGET_LIBRARY_FALSE@,$TARGET_LIBRARY_FALSE,;t t
12445 s,@LIBOBJS@,$LIBOBJS,;t t
12446 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
12447 CEOF
12449 _ACEOF
12451 cat >>$CONFIG_STATUS <<\_ACEOF
12452 # Split the substitutions into bite-sized pieces for seds with
12453 # small command number limits, like on Digital OSF/1 and HP-UX.
12454 ac_max_sed_lines=48
12455 ac_sed_frag=1 # Number of current file.
12456 ac_beg=1 # First line for current file.
12457 ac_end=$ac_max_sed_lines # Line after last line for current file.
12458 ac_more_lines=:
12459 ac_sed_cmds=
12460 while $ac_more_lines; do
12461 if test $ac_beg -gt 1; then
12462 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12463 else
12464 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12466 if test ! -s $tmp/subs.frag; then
12467 ac_more_lines=false
12468 else
12469 # The purpose of the label and of the branching condition is to
12470 # speed up the sed processing (if there are no `@' at all, there
12471 # is no need to browse any of the substitutions).
12472 # These are the two extra sed commands mentioned above.
12473 (echo ':t
12474 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12475 if test -z "$ac_sed_cmds"; then
12476 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12477 else
12478 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12480 ac_sed_frag=`expr $ac_sed_frag + 1`
12481 ac_beg=$ac_end
12482 ac_end=`expr $ac_end + $ac_max_sed_lines`
12484 done
12485 if test -z "$ac_sed_cmds"; then
12486 ac_sed_cmds=cat
12488 fi # test -n "$CONFIG_FILES"
12490 _ACEOF
12491 cat >>$CONFIG_STATUS <<\_ACEOF
12492 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
12493 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12494 case $ac_file in
12495 - | *:- | *:-:* ) # input from stdin
12496 cat >$tmp/stdin
12497 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12498 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12499 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12500 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12501 * ) ac_file_in=$ac_file.in ;;
12502 esac
12504 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12505 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12506 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12507 X"$ac_file" : 'X\(//\)[^/]' \| \
12508 X"$ac_file" : 'X\(//\)$' \| \
12509 X"$ac_file" : 'X\(/\)' \| \
12510 . : '\(.\)' 2>/dev/null ||
12511 echo X"$ac_file" |
12512 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12513 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12514 /^X\(\/\/\)$/{ s//\1/; q; }
12515 /^X\(\/\).*/{ s//\1/; q; }
12516 s/.*/./; q'`
12517 { if $as_mkdir_p; then
12518 mkdir -p "$ac_dir"
12519 else
12520 as_dir="$ac_dir"
12521 as_dirs=
12522 while test ! -d "$as_dir"; do
12523 as_dirs="$as_dir $as_dirs"
12524 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12525 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12526 X"$as_dir" : 'X\(//\)[^/]' \| \
12527 X"$as_dir" : 'X\(//\)$' \| \
12528 X"$as_dir" : 'X\(/\)' \| \
12529 . : '\(.\)' 2>/dev/null ||
12530 echo X"$as_dir" |
12531 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12532 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12533 /^X\(\/\/\)$/{ s//\1/; q; }
12534 /^X\(\/\).*/{ s//\1/; q; }
12535 s/.*/./; q'`
12536 done
12537 test ! -n "$as_dirs" || mkdir $as_dirs
12538 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12539 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12540 { (exit 1); exit 1; }; }; }
12542 ac_builddir=.
12544 if test "$ac_dir" != .; then
12545 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12546 # A "../" for each directory in $ac_dir_suffix.
12547 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12548 else
12549 ac_dir_suffix= ac_top_builddir=
12552 case $srcdir in
12553 .) # No --srcdir option. We are building in place.
12554 ac_srcdir=.
12555 if test -z "$ac_top_builddir"; then
12556 ac_top_srcdir=.
12557 else
12558 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12559 fi ;;
12560 [\\/]* | ?:[\\/]* ) # Absolute path.
12561 ac_srcdir=$srcdir$ac_dir_suffix;
12562 ac_top_srcdir=$srcdir ;;
12563 *) # Relative path.
12564 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12565 ac_top_srcdir=$ac_top_builddir$srcdir ;;
12566 esac
12568 # Do not use `cd foo && pwd` to compute absolute paths, because
12569 # the directories may not exist.
12570 case `pwd` in
12571 .) ac_abs_builddir="$ac_dir";;
12573 case "$ac_dir" in
12574 .) ac_abs_builddir=`pwd`;;
12575 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12576 *) ac_abs_builddir=`pwd`/"$ac_dir";;
12577 esac;;
12578 esac
12579 case $ac_abs_builddir in
12580 .) ac_abs_top_builddir=${ac_top_builddir}.;;
12582 case ${ac_top_builddir}. in
12583 .) ac_abs_top_builddir=$ac_abs_builddir;;
12584 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12585 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12586 esac;;
12587 esac
12588 case $ac_abs_builddir in
12589 .) ac_abs_srcdir=$ac_srcdir;;
12591 case $ac_srcdir in
12592 .) ac_abs_srcdir=$ac_abs_builddir;;
12593 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12594 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12595 esac;;
12596 esac
12597 case $ac_abs_builddir in
12598 .) ac_abs_top_srcdir=$ac_top_srcdir;;
12600 case $ac_top_srcdir in
12601 .) ac_abs_top_srcdir=$ac_abs_builddir;;
12602 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12603 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12604 esac;;
12605 esac
12608 case $INSTALL in
12609 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12610 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
12611 esac
12613 if test x"$ac_file" != x-; then
12614 { echo "$as_me:$LINENO: creating $ac_file" >&5
12615 echo "$as_me: creating $ac_file" >&6;}
12616 rm -f "$ac_file"
12618 # Let's still pretend it is `configure' which instantiates (i.e., don't
12619 # use $as_me), people would be surprised to read:
12620 # /* config.h. Generated by config.status. */
12621 if test x"$ac_file" = x-; then
12622 configure_input=
12623 else
12624 configure_input="$ac_file. "
12626 configure_input=$configure_input"Generated from `echo $ac_file_in |
12627 sed 's,.*/,,'` by configure."
12629 # First look for the input files in the build tree, otherwise in the
12630 # src tree.
12631 ac_file_inputs=`IFS=:
12632 for f in $ac_file_in; do
12633 case $f in
12634 -) echo $tmp/stdin ;;
12635 [\\/$]*)
12636 # Absolute (can't be DOS-style, as IFS=:)
12637 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12638 echo "$as_me: error: cannot find input file: $f" >&2;}
12639 { (exit 1); exit 1; }; }
12640 echo "$f";;
12641 *) # Relative
12642 if test -f "$f"; then
12643 # Build tree
12644 echo "$f"
12645 elif test -f "$srcdir/$f"; then
12646 # Source tree
12647 echo "$srcdir/$f"
12648 else
12649 # /dev/null tree
12650 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12651 echo "$as_me: error: cannot find input file: $f" >&2;}
12652 { (exit 1); exit 1; }; }
12653 fi;;
12654 esac
12655 done` || { (exit 1); exit 1; }
12656 _ACEOF
12657 cat >>$CONFIG_STATUS <<_ACEOF
12658 sed "$ac_vpsub
12659 $extrasub
12660 _ACEOF
12661 cat >>$CONFIG_STATUS <<\_ACEOF
12663 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12664 s,@configure_input@,$configure_input,;t t
12665 s,@srcdir@,$ac_srcdir,;t t
12666 s,@abs_srcdir@,$ac_abs_srcdir,;t t
12667 s,@top_srcdir@,$ac_top_srcdir,;t t
12668 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
12669 s,@builddir@,$ac_builddir,;t t
12670 s,@abs_builddir@,$ac_abs_builddir,;t t
12671 s,@top_builddir@,$ac_top_builddir,;t t
12672 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
12673 s,@INSTALL@,$ac_INSTALL,;t t
12674 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
12675 rm -f $tmp/stdin
12676 if test x"$ac_file" != x-; then
12677 mv $tmp/out $ac_file
12678 else
12679 cat $tmp/out
12680 rm -f $tmp/out
12683 done
12684 _ACEOF
12685 cat >>$CONFIG_STATUS <<\_ACEOF
12688 # CONFIG_COMMANDS section.
12690 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
12691 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
12692 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
12693 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
12694 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12695 X"$ac_dest" : 'X\(//\)[^/]' \| \
12696 X"$ac_dest" : 'X\(//\)$' \| \
12697 X"$ac_dest" : 'X\(/\)' \| \
12698 . : '\(.\)' 2>/dev/null ||
12699 echo X"$ac_dest" |
12700 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12701 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12702 /^X\(\/\/\)$/{ s//\1/; q; }
12703 /^X\(\/\).*/{ s//\1/; q; }
12704 s/.*/./; q'`
12705 { if $as_mkdir_p; then
12706 mkdir -p "$ac_dir"
12707 else
12708 as_dir="$ac_dir"
12709 as_dirs=
12710 while test ! -d "$as_dir"; do
12711 as_dirs="$as_dir $as_dirs"
12712 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12713 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12714 X"$as_dir" : 'X\(//\)[^/]' \| \
12715 X"$as_dir" : 'X\(//\)$' \| \
12716 X"$as_dir" : 'X\(/\)' \| \
12717 . : '\(.\)' 2>/dev/null ||
12718 echo X"$as_dir" |
12719 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12720 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12721 /^X\(\/\/\)$/{ s//\1/; q; }
12722 /^X\(\/\).*/{ s//\1/; q; }
12723 s/.*/./; q'`
12724 done
12725 test ! -n "$as_dirs" || mkdir $as_dirs
12726 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12727 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12728 { (exit 1); exit 1; }; }; }
12730 ac_builddir=.
12732 if test "$ac_dir" != .; then
12733 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12734 # A "../" for each directory in $ac_dir_suffix.
12735 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12736 else
12737 ac_dir_suffix= ac_top_builddir=
12740 case $srcdir in
12741 .) # No --srcdir option. We are building in place.
12742 ac_srcdir=.
12743 if test -z "$ac_top_builddir"; then
12744 ac_top_srcdir=.
12745 else
12746 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12747 fi ;;
12748 [\\/]* | ?:[\\/]* ) # Absolute path.
12749 ac_srcdir=$srcdir$ac_dir_suffix;
12750 ac_top_srcdir=$srcdir ;;
12751 *) # Relative path.
12752 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12753 ac_top_srcdir=$ac_top_builddir$srcdir ;;
12754 esac
12756 # Do not use `cd foo && pwd` to compute absolute paths, because
12757 # the directories may not exist.
12758 case `pwd` in
12759 .) ac_abs_builddir="$ac_dir";;
12761 case "$ac_dir" in
12762 .) ac_abs_builddir=`pwd`;;
12763 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12764 *) ac_abs_builddir=`pwd`/"$ac_dir";;
12765 esac;;
12766 esac
12767 case $ac_abs_builddir in
12768 .) ac_abs_top_builddir=${ac_top_builddir}.;;
12770 case ${ac_top_builddir}. in
12771 .) ac_abs_top_builddir=$ac_abs_builddir;;
12772 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12773 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12774 esac;;
12775 esac
12776 case $ac_abs_builddir in
12777 .) ac_abs_srcdir=$ac_srcdir;;
12779 case $ac_srcdir in
12780 .) ac_abs_srcdir=$ac_abs_builddir;;
12781 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12782 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12783 esac;;
12784 esac
12785 case $ac_abs_builddir in
12786 .) ac_abs_top_srcdir=$ac_top_srcdir;;
12788 case $ac_top_srcdir in
12789 .) ac_abs_top_srcdir=$ac_abs_builddir;;
12790 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12791 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12792 esac;;
12793 esac
12796 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
12797 echo "$as_me: executing $ac_dest commands" >&6;}
12798 case $ac_dest in
12799 default-1 )
12800 # Only add multilib support code if we just rebuilt the top-level
12801 # Makefile.
12802 case " $CONFIG_FILES " in
12803 *" Makefile "*)
12804 ac_file=Makefile . ${multi_basedir}/config-ml.in
12806 esac ;;
12807 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
12808 # Strip MF so we end up with the name of the file.
12809 mf=`echo "$mf" | sed -e 's/:.*$//'`
12810 # Check whether this is an Automake generated Makefile or not.
12811 # We used to match only the files named `Makefile.in', but
12812 # some people rename them; so instead we look at the file content.
12813 # Grep'ing the first line is not enough: some people post-process
12814 # each Makefile.in and add a new line on top of each file to say so.
12815 # So let's grep whole file.
12816 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
12817 dirpart=`(dirname "$mf") 2>/dev/null ||
12818 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12819 X"$mf" : 'X\(//\)[^/]' \| \
12820 X"$mf" : 'X\(//\)$' \| \
12821 X"$mf" : 'X\(/\)' \| \
12822 . : '\(.\)' 2>/dev/null ||
12823 echo X"$mf" |
12824 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12825 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12826 /^X\(\/\/\)$/{ s//\1/; q; }
12827 /^X\(\/\).*/{ s//\1/; q; }
12828 s/.*/./; q'`
12829 else
12830 continue
12832 # Extract the definition of DEPDIR, am__include, and am__quote
12833 # from the Makefile without running `make'.
12834 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12835 test -z "$DEPDIR" && continue
12836 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12837 test -z "am__include" && continue
12838 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12839 # When using ansi2knr, U may be empty or an underscore; expand it
12840 U=`sed -n 's/^U = //p' < "$mf"`
12841 # Find all dependency output files, they are included files with
12842 # $(DEPDIR) in their names. We invoke sed twice because it is the
12843 # simplest approach to changing $(DEPDIR) to its actual value in the
12844 # expansion.
12845 for file in `sed -n "
12846 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12847 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12848 # Make sure the directory exists.
12849 test -f "$dirpart/$file" && continue
12850 fdir=`(dirname "$file") 2>/dev/null ||
12851 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12852 X"$file" : 'X\(//\)[^/]' \| \
12853 X"$file" : 'X\(//\)$' \| \
12854 X"$file" : 'X\(/\)' \| \
12855 . : '\(.\)' 2>/dev/null ||
12856 echo X"$file" |
12857 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12858 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12859 /^X\(\/\/\)$/{ s//\1/; q; }
12860 /^X\(\/\).*/{ s//\1/; q; }
12861 s/.*/./; q'`
12862 { if $as_mkdir_p; then
12863 mkdir -p $dirpart/$fdir
12864 else
12865 as_dir=$dirpart/$fdir
12866 as_dirs=
12867 while test ! -d "$as_dir"; do
12868 as_dirs="$as_dir $as_dirs"
12869 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12870 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12871 X"$as_dir" : 'X\(//\)[^/]' \| \
12872 X"$as_dir" : 'X\(//\)$' \| \
12873 X"$as_dir" : 'X\(/\)' \| \
12874 . : '\(.\)' 2>/dev/null ||
12875 echo X"$as_dir" |
12876 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12877 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12878 /^X\(\/\/\)$/{ s//\1/; q; }
12879 /^X\(\/\).*/{ s//\1/; q; }
12880 s/.*/./; q'`
12881 done
12882 test ! -n "$as_dirs" || mkdir $as_dirs
12883 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
12884 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
12885 { (exit 1); exit 1; }; }; }
12887 # echo "creating $dirpart/$file"
12888 echo '# dummy' > "$dirpart/$file"
12889 done
12890 done
12892 libtool )
12894 # See if we are running on zsh, and set the options which allow our
12895 # commands through without removal of \ escapes.
12896 if test -n "${ZSH_VERSION+set}" ; then
12897 setopt NO_GLOB_SUBST
12900 cfgfile="${ofile}T"
12901 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
12902 $RM "$cfgfile"
12904 cat <<_LT_EOF >> "$cfgfile"
12905 #! $SHELL
12907 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12908 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
12909 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12910 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
12912 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
12913 # 2006, 2007, 2008 Free Software Foundation, Inc.
12914 # Written by Gordon Matzigkeit, 1996
12916 # This file is part of GNU Libtool.
12918 # GNU Libtool is free software; you can redistribute it and/or
12919 # modify it under the terms of the GNU General Public License as
12920 # published by the Free Software Foundation; either version 2 of
12921 # the License, or (at your option) any later version.
12923 # As a special exception to the GNU General Public License,
12924 # if you distribute this file as part of a program or library that
12925 # is built using GNU Libtool, you may include this file under the
12926 # same distribution terms that you use for the rest of that program.
12928 # GNU Libtool is distributed in the hope that it will be useful,
12929 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12930 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12931 # GNU General Public License for more details.
12933 # You should have received a copy of the GNU General Public License
12934 # along with GNU Libtool; see the file COPYING. If not, a copy
12935 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
12936 # obtained by writing to the Free Software Foundation, Inc.,
12937 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
12940 # The names of the tagged configurations supported by this script.
12941 available_tags=""
12943 # ### BEGIN LIBTOOL CONFIG
12945 # Which release of libtool.m4 was used?
12946 macro_version=$macro_version
12947 macro_revision=$macro_revision
12949 # Whether or not to build shared libraries.
12950 build_libtool_libs=$enable_shared
12952 # Whether or not to build static libraries.
12953 build_old_libs=$enable_static
12955 # What type of objects to build.
12956 pic_mode=$pic_mode
12958 # Whether or not to optimize for fast installation.
12959 fast_install=$enable_fast_install
12961 # The host system.
12962 host_alias=$host_alias
12963 host=$host
12964 host_os=$host_os
12966 # The build system.
12967 build_alias=$build_alias
12968 build=$build
12969 build_os=$build_os
12971 # A sed program that does not truncate output.
12972 SED=$lt_SED
12974 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
12975 Xsed="\$SED -e 1s/^X//"
12977 # A grep program that handles long lines.
12978 GREP=$lt_GREP
12980 # An ERE matcher.
12981 EGREP=$lt_EGREP
12983 # A literal string matcher.
12984 FGREP=$lt_FGREP
12986 # A BSD- or MS-compatible name lister.
12987 NM=$lt_NM
12989 # Whether we need soft or hard links.
12990 LN_S=$lt_LN_S
12992 # What is the maximum length of a command?
12993 max_cmd_len=$max_cmd_len
12995 # Object file suffix (normally "o").
12996 objext=$ac_objext
12998 # Executable file suffix (normally "").
12999 exeext=$exeext
13001 # whether the shell understands "unset".
13002 lt_unset=$lt_unset
13004 # turn spaces into newlines.
13005 SP2NL=$lt_lt_SP2NL
13007 # turn newlines into spaces.
13008 NL2SP=$lt_lt_NL2SP
13010 # How to create reloadable object files.
13011 reload_flag=$lt_reload_flag
13012 reload_cmds=$lt_reload_cmds
13014 # An object symbol dumper.
13015 OBJDUMP=$lt_OBJDUMP
13017 # Method to check whether dependent libraries are shared objects.
13018 deplibs_check_method=$lt_deplibs_check_method
13020 # Command to use when deplibs_check_method == "file_magic".
13021 file_magic_cmd=$lt_file_magic_cmd
13023 # The archiver.
13024 AR=$lt_AR
13025 AR_FLAGS=$lt_AR_FLAGS
13027 # A symbol stripping program.
13028 STRIP=$lt_STRIP
13030 # Commands used to install an old-style archive.
13031 RANLIB=$lt_RANLIB
13032 old_postinstall_cmds=$lt_old_postinstall_cmds
13033 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13035 # A C compiler.
13036 LTCC=$lt_CC
13038 # LTCC compiler flags.
13039 LTCFLAGS=$lt_CFLAGS
13041 # Take the output of nm and produce a listing of raw symbols and C names.
13042 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13044 # Transform the output of nm in a proper C declaration.
13045 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13047 # Transform the output of nm in a C name address pair.
13048 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13050 # Transform the output of nm in a C name address pair when lib prefix is needed.
13051 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13053 # The name of the directory that contains temporary libtool files.
13054 objdir=$objdir
13056 # Shell to use when invoking shell scripts.
13057 SHELL=$lt_SHELL
13059 # An echo program that does not interpret backslashes.
13060 ECHO=$lt_ECHO
13062 # Used to examine libraries when file_magic_cmd begins with "file".
13063 MAGIC_CMD=$MAGIC_CMD
13065 # Must we lock files when doing compilation?
13066 need_locks=$lt_need_locks
13068 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13069 DSYMUTIL=$lt_DSYMUTIL
13071 # Tool to change global to local symbols on Mac OS X.
13072 NMEDIT=$lt_NMEDIT
13074 # Tool to manipulate fat objects and archives on Mac OS X.
13075 LIPO=$lt_LIPO
13077 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
13078 OTOOL=$lt_OTOOL
13080 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13081 OTOOL64=$lt_OTOOL64
13083 # Old archive suffix (normally "a").
13084 libext=$libext
13086 # Shared library suffix (normally ".so").
13087 shrext_cmds=$lt_shrext_cmds
13089 # The commands to extract the exported symbol list from a shared archive.
13090 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13092 # Variables whose values should be saved in libtool wrapper scripts and
13093 # restored at link time.
13094 variables_saved_for_relink=$lt_variables_saved_for_relink
13096 # Do we need the "lib" prefix for modules?
13097 need_lib_prefix=$need_lib_prefix
13099 # Do we need a version for libraries?
13100 need_version=$need_version
13102 # Library versioning type.
13103 version_type=$version_type
13105 # Shared library runtime path variable.
13106 runpath_var=$runpath_var
13108 # Shared library path variable.
13109 shlibpath_var=$shlibpath_var
13111 # Is shlibpath searched before the hard-coded library search path?
13112 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13114 # Format of library name prefix.
13115 libname_spec=$lt_libname_spec
13117 # List of archive names. First name is the real one, the rest are links.
13118 # The last name is the one that the linker finds with -lNAME
13119 library_names_spec=$lt_library_names_spec
13121 # The coded name of the library, if different from the real name.
13122 soname_spec=$lt_soname_spec
13124 # Command to use after installation of a shared archive.
13125 postinstall_cmds=$lt_postinstall_cmds
13127 # Command to use after uninstallation of a shared archive.
13128 postuninstall_cmds=$lt_postuninstall_cmds
13130 # Commands used to finish a libtool library installation in a directory.
13131 finish_cmds=$lt_finish_cmds
13133 # As "finish_cmds", except a single script fragment to be evaled but
13134 # not shown.
13135 finish_eval=$lt_finish_eval
13137 # Whether we should hardcode library paths into libraries.
13138 hardcode_into_libs=$hardcode_into_libs
13140 # Compile-time system search path for libraries.
13141 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13143 # Run-time system search path for libraries.
13144 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13146 # Whether dlopen is supported.
13147 dlopen_support=$enable_dlopen
13149 # Whether dlopen of programs is supported.
13150 dlopen_self=$enable_dlopen_self
13152 # Whether dlopen of statically linked programs is supported.
13153 dlopen_self_static=$enable_dlopen_self_static
13155 # Commands to strip libraries.
13156 old_striplib=$lt_old_striplib
13157 striplib=$lt_striplib
13160 # The linker used to build libraries.
13161 LD=$lt_LD
13163 # Commands used to build an old-style archive.
13164 old_archive_cmds=$lt_old_archive_cmds
13166 # A language specific compiler.
13167 CC=$lt_compiler
13169 # Is the compiler the GNU compiler?
13170 with_gcc=$GCC
13172 # Compiler flag to turn off builtin functions.
13173 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13175 # How to pass a linker flag through the compiler.
13176 wl=$lt_lt_prog_compiler_wl
13178 # Additional compiler flags for building library objects.
13179 pic_flag=$lt_lt_prog_compiler_pic
13181 # Compiler flag to prevent dynamic linking.
13182 link_static_flag=$lt_lt_prog_compiler_static
13184 # Does compiler simultaneously support -c and -o options?
13185 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13187 # Whether or not to add -lc for building shared libraries.
13188 build_libtool_need_lc=$archive_cmds_need_lc
13190 # Whether or not to disallow shared libs when runtime libs are static.
13191 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13193 # Compiler flag to allow reflexive dlopens.
13194 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13196 # Compiler flag to generate shared objects directly from archives.
13197 whole_archive_flag_spec=$lt_whole_archive_flag_spec
13199 # Whether the compiler copes with passing no objects directly.
13200 compiler_needs_object=$lt_compiler_needs_object
13202 # Create an old-style archive from a shared archive.
13203 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13205 # Create a temporary old-style archive to link instead of a shared archive.
13206 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13208 # Commands used to build a shared archive.
13209 archive_cmds=$lt_archive_cmds
13210 archive_expsym_cmds=$lt_archive_expsym_cmds
13212 # Commands used to build a loadable module if different from building
13213 # a shared archive.
13214 module_cmds=$lt_module_cmds
13215 module_expsym_cmds=$lt_module_expsym_cmds
13217 # Whether we are building with GNU ld or not.
13218 with_gnu_ld=$lt_with_gnu_ld
13220 # Flag that allows shared libraries with undefined symbols to be built.
13221 allow_undefined_flag=$lt_allow_undefined_flag
13223 # Flag that enforces no undefined symbols.
13224 no_undefined_flag=$lt_no_undefined_flag
13226 # Flag to hardcode \$libdir into a binary during linking.
13227 # This must work even if \$libdir does not exist
13228 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13230 # If ld is used when linking, flag to hardcode \$libdir into a binary
13231 # during linking. This must work even if \$libdir does not exist.
13232 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13234 # Whether we need a single "-rpath" flag with a separated argument.
13235 hardcode_libdir_separator=$lt_hardcode_libdir_separator
13237 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13238 # DIR into the resulting binary.
13239 hardcode_direct=$hardcode_direct
13241 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13242 # DIR into the resulting binary and the resulting library dependency is
13243 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13244 # library is relocated.
13245 hardcode_direct_absolute=$hardcode_direct_absolute
13247 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13248 # into the resulting binary.
13249 hardcode_minus_L=$hardcode_minus_L
13251 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13252 # into the resulting binary.
13253 hardcode_shlibpath_var=$hardcode_shlibpath_var
13255 # Set to "yes" if building a shared library automatically hardcodes DIR
13256 # into the library and all subsequent libraries and executables linked
13257 # against it.
13258 hardcode_automatic=$hardcode_automatic
13260 # Set to yes if linker adds runtime paths of dependent libraries
13261 # to runtime path list.
13262 inherit_rpath=$inherit_rpath
13264 # Whether libtool must link a program against all its dependency libraries.
13265 link_all_deplibs=$link_all_deplibs
13267 # Fix the shell variable \$srcfile for the compiler.
13268 fix_srcfile_path=$lt_fix_srcfile_path
13270 # Set to "yes" if exported symbols are required.
13271 always_export_symbols=$always_export_symbols
13273 # The commands to list exported symbols.
13274 export_symbols_cmds=$lt_export_symbols_cmds
13276 # Symbols that should not be listed in the preloaded symbols.
13277 exclude_expsyms=$lt_exclude_expsyms
13279 # Symbols that must always be exported.
13280 include_expsyms=$lt_include_expsyms
13282 # Commands necessary for linking programs (against libraries) with templates.
13283 prelink_cmds=$lt_prelink_cmds
13285 # Specify filename containing input files.
13286 file_list_spec=$lt_file_list_spec
13288 # How to hardcode a shared library path into an executable.
13289 hardcode_action=$hardcode_action
13291 # ### END LIBTOOL CONFIG
13293 _LT_EOF
13295 case $host_os in
13296 aix3*)
13297 cat <<\_LT_EOF >> "$cfgfile"
13298 # AIX sometimes has problems with the GCC collect2 program. For some
13299 # reason, if we set the COLLECT_NAMES environment variable, the problems
13300 # vanish in a puff of smoke.
13301 if test "X${COLLECT_NAMES+set}" != Xset; then
13302 COLLECT_NAMES=
13303 export COLLECT_NAMES
13305 _LT_EOF
13307 esac
13310 ltmain="$ac_aux_dir/ltmain.sh"
13313 # We use sed instead of cat because bash on DJGPP gets confused if
13314 # if finds mixed CR/LF and LF-only lines. Since sed operates in
13315 # text mode, it properly converts lines to CR/LF. This bash problem
13316 # is reportedly fixed, but why not run on old versions too?
13317 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13318 || (rm -f "$cfgfile"; exit 1)
13320 case $xsi_shell in
13321 yes)
13322 cat << \_LT_EOF >> "$cfgfile"
13324 # func_dirname file append nondir_replacement
13325 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
13326 # otherwise set result to NONDIR_REPLACEMENT.
13327 func_dirname ()
13329 case ${1} in
13330 */*) func_dirname_result="${1%/*}${2}" ;;
13331 * ) func_dirname_result="${3}" ;;
13332 esac
13335 # func_basename file
13336 func_basename ()
13338 func_basename_result="${1##*/}"
13341 # func_dirname_and_basename file append nondir_replacement
13342 # perform func_basename and func_dirname in a single function
13343 # call:
13344 # dirname: Compute the dirname of FILE. If nonempty,
13345 # add APPEND to the result, otherwise set result
13346 # to NONDIR_REPLACEMENT.
13347 # value returned in "$func_dirname_result"
13348 # basename: Compute filename of FILE.
13349 # value retuned in "$func_basename_result"
13350 # Implementation must be kept synchronized with func_dirname
13351 # and func_basename. For efficiency, we do not delegate to
13352 # those functions but instead duplicate the functionality here.
13353 func_dirname_and_basename ()
13355 case ${1} in
13356 */*) func_dirname_result="${1%/*}${2}" ;;
13357 * ) func_dirname_result="${3}" ;;
13358 esac
13359 func_basename_result="${1##*/}"
13362 # func_stripname prefix suffix name
13363 # strip PREFIX and SUFFIX off of NAME.
13364 # PREFIX and SUFFIX must not contain globbing or regex special
13365 # characters, hashes, percent signs, but SUFFIX may contain a leading
13366 # dot (in which case that matches only a dot).
13367 func_stripname ()
13369 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13370 # positional parameters, so assign one to ordinary parameter first.
13371 func_stripname_result=${3}
13372 func_stripname_result=${func_stripname_result#"${1}"}
13373 func_stripname_result=${func_stripname_result%"${2}"}
13376 # func_opt_split
13377 func_opt_split ()
13379 func_opt_split_opt=${1%%=*}
13380 func_opt_split_arg=${1#*=}
13383 # func_lo2o object
13384 func_lo2o ()
13386 case ${1} in
13387 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13388 *) func_lo2o_result=${1} ;;
13389 esac
13392 # func_xform libobj-or-source
13393 func_xform ()
13395 func_xform_result=${1%.*}.lo
13398 # func_arith arithmetic-term...
13399 func_arith ()
13401 func_arith_result=$(( $* ))
13404 # func_len string
13405 # STRING may not start with a hyphen.
13406 func_len ()
13408 func_len_result=${#1}
13411 _LT_EOF
13413 *) # Bourne compatible functions.
13414 cat << \_LT_EOF >> "$cfgfile"
13416 # func_dirname file append nondir_replacement
13417 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
13418 # otherwise set result to NONDIR_REPLACEMENT.
13419 func_dirname ()
13421 # Extract subdirectory from the argument.
13422 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
13423 if test "X$func_dirname_result" = "X${1}"; then
13424 func_dirname_result="${3}"
13425 else
13426 func_dirname_result="$func_dirname_result${2}"
13430 # func_basename file
13431 func_basename ()
13433 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
13437 # func_stripname prefix suffix name
13438 # strip PREFIX and SUFFIX off of NAME.
13439 # PREFIX and SUFFIX must not contain globbing or regex special
13440 # characters, hashes, percent signs, but SUFFIX may contain a leading
13441 # dot (in which case that matches only a dot).
13442 # func_strip_suffix prefix name
13443 func_stripname ()
13445 case ${2} in
13446 .*) func_stripname_result=`$ECHO "X${3}" \
13447 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
13448 *) func_stripname_result=`$ECHO "X${3}" \
13449 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
13450 esac
13453 # sed scripts:
13454 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13455 my_sed_long_arg='1s/^-[^=]*=//'
13457 # func_opt_split
13458 func_opt_split ()
13460 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
13461 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
13464 # func_lo2o object
13465 func_lo2o ()
13467 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
13470 # func_xform libobj-or-source
13471 func_xform ()
13473 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
13476 # func_arith arithmetic-term...
13477 func_arith ()
13479 func_arith_result=`expr "$@"`
13482 # func_len string
13483 # STRING may not start with a hyphen.
13484 func_len ()
13486 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13489 _LT_EOF
13490 esac
13492 case $lt_shell_append in
13493 yes)
13494 cat << \_LT_EOF >> "$cfgfile"
13496 # func_append var value
13497 # Append VALUE to the end of shell variable VAR.
13498 func_append ()
13500 eval "$1+=\$2"
13502 _LT_EOF
13505 cat << \_LT_EOF >> "$cfgfile"
13507 # func_append var value
13508 # Append VALUE to the end of shell variable VAR.
13509 func_append ()
13511 eval "$1=\$$1\$2"
13514 _LT_EOF
13516 esac
13519 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13520 || (rm -f "$cfgfile"; exit 1)
13522 mv -f "$cfgfile" "$ofile" ||
13523 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13524 chmod +x "$ofile"
13527 esac
13528 done
13529 _ACEOF
13531 cat >>$CONFIG_STATUS <<\_ACEOF
13533 { (exit 0); exit 0; }
13534 _ACEOF
13535 chmod +x $CONFIG_STATUS
13536 ac_clean_files=$ac_clean_files_save
13539 # configure is writing to config.log, and then calls config.status.
13540 # config.status does its own redirection, appending to config.log.
13541 # Unfortunately, on DOS this fails, as config.log is still kept open
13542 # by configure, so config.status won't be able to write to it; its
13543 # output is simply discarded. So we exec the FD to /dev/null,
13544 # effectively closing config.log, so it can be properly (re)opened and
13545 # appended to by config.status. When coming back to configure, we
13546 # need to make the FD available again.
13547 if test "$no_create" != yes; then
13548 ac_cs_success=:
13549 ac_config_status_args=
13550 test "$silent" = yes &&
13551 ac_config_status_args="$ac_config_status_args --quiet"
13552 exec 5>/dev/null
13553 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13554 exec 5>>config.log
13555 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13556 # would make configure fail if this is the last instruction.
13557 $ac_cs_success || { (exit 1); exit 1; }