2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57 for ntfsprogs 1.7.2-WIP.
5 # Report bugs to <linux-ntfs-dev@lists.sourceforge.net>.
7 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
8 # Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26 # Support unset when possible.
27 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
46 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C; export $as_var
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" || {
107 # Find who we are. Look in the path if we contain no path at all
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x; then
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
130 case $CONFIG_SHELL in
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
136 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do
140 if ("$as_dir/$as_base" -c '
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148 CONFIG_SHELL=$as_dir/$as_base
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
174 s,^['$as_cr_digits']*\n,,
176 chmod +x $as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
184 # Exit status is that of the last command.
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c*,-n*) ECHO_N= ECHO_C='
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
196 if expr a : '\(a\)' >/dev/null 2>&1; then
202 rm -f conf$$ conf$$.exe conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe; then
208 # Don't use ln at all; we don't have any links
213 elif ln conf$$.file conf$$ 2>/dev/null; then
218 rm -f conf$$ conf$$.exe conf$$.file
220 if mkdir -p . 2>/dev/null; then
226 as_executable_p="test -f"
228 # Sed expression to map a string onto a valid CPP name.
229 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
231 # Sed expression to map a string onto a valid variable name.
232 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
236 # We need space, tab and new line, in precisely that order.
245 # Find the correct PATH separator. Usually this is `:', but
246 # DJGPP uses `;' like DOS.
247 if test "X${PATH_SEPARATOR+set}" != Xset; then
248 UNAME=${UNAME-`uname 2>/dev/null`}
250 *-DOS) lt_cv_sys_path_separator=';' ;;
251 *) lt_cv_sys_path_separator=':' ;;
253 PATH_SEPARATOR=$lt_cv_sys_path_separator
257 # Check that we are running under the correct shell.
258 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Remove one level of quotation (which was required for Make).
263 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
268 if test "X$1" = X--no-reexec; then
269 # Discard the --no-reexec flag, and continue.
271 elif test "X$1" = X--fallback-echo; then
272 # Avoid inline document here, it may be left over
274 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
275 # Yippee, $echo works!
278 # Restart under the correct shell.
279 exec $SHELL "$0" --no-reexec ${1+"$@"}
282 if test "X$1" = X--fallback-echo; then
283 # used as fallback echo
291 # The HP-UX ksh and POSIX shell print the target directory to stdout
293 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
295 if test -z "$ECHO"; then
296 if test "X${echo_test_string+set}" != Xset; then
297 # find a string as large as possible, as long as the shell can cope with it
298 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
299 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
300 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
301 echo_test_string="`eval $cmd`" &&
302 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
309 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
310 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
311 test "X$echo_testing_string" = "X$echo_test_string"; then
314 # The Solaris, AIX, and Digital Unix default echo programs unquote
315 # backslashes. This makes it impossible to quote backslashes using
316 # echo "$something" | sed 's/\\/\\\\/g'
318 # So, first we look for a working echo in the user's PATH.
320 IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
321 for dir in $PATH /usr/ucb; do
322 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
323 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
324 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
325 test "X$echo_testing_string" = "X$echo_test_string"; then
332 if test "X$echo" = Xecho; then
333 # We didn't find a better echo, so look for alternatives.
334 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
335 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
336 test "X$echo_testing_string" = "X$echo_test_string"; then
337 # This shell has a builtin print -r that does the trick.
339 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
340 test "X$CONFIG_SHELL" != X/bin/ksh; then
341 # If we have ksh, try running configure again with it.
342 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
343 export ORIGINAL_CONFIG_SHELL
344 CONFIG_SHELL=/bin/ksh
346 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
350 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
351 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
352 test "X$echo_testing_string" = "X$echo_test_string"; then
355 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
356 test "X$echo_testing_string" = 'X\t' &&
357 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
358 test "X$echo_testing_string" = "X$echo_test_string"; then
359 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
361 SHELL="$CONFIG_SHELL"
363 echo="$CONFIG_SHELL $0 --fallback-echo"
364 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
365 test "X$echo_testing_string" = 'X\t' &&
366 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
367 test "X$echo_testing_string" = "X$echo_test_string"; then
368 echo="$CONFIG_SHELL $0 --fallback-echo"
370 # maybe with a smaller string...
373 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
374 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
381 if test "$prev" != 'sed 50q "$0"'; then
382 echo_test_string=`eval $prev`
383 export echo_test_string
384 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
386 # Oops. We lost completely, so just stick with echo.
395 # Copy echo and quote the copy suitably for passing to libtool from
396 # the Makefile, instead of quoting the original, which is used later.
398 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
399 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
405 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
406 # so uname gets run too.
407 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
414 ac_default_prefix=/usr/local
415 ac_config_libobj_dir=.
420 SHELL=${CONFIG_SHELL-/bin/sh}
422 # Maximum number of lines to put in a shell here document.
423 # This variable seems obsolete. It should probably be removed, and
424 # only ac_max_sed_lines should be used.
425 : ${ac_max_here_lines=38}
427 # Identity of this package.
428 PACKAGE_NAME='ntfsprogs'
429 PACKAGE_TARNAME='ntfsprogs'
430 PACKAGE_VERSION='1.7.2-WIP'
431 PACKAGE_STRING='ntfsprogs 1.7.2-WIP'
432 PACKAGE_BUGREPORT='linux-ntfs-dev@lists.sourceforge.net'
434 ac_unique_file="config.h.in"
435 ac_default_prefix=/usr/local
436 # Factoring default headers for most tests.
437 ac_includes_default="\
440 # include <sys/types.h>
443 # include <sys/stat.h>
454 # if !STDC_HEADERS && HAVE_MEMORY_H
460 # include <strings.h>
463 # include <inttypes.h>
473 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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT DEBUG_TRUE DEBUG_FALSE REALLYSTATIC_TRUE REALLYSTATIC_FALSE CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CXXDEPMODE CC CFLAGS ac_ct_CC CCDEPMODE LN_S RANLIB ac_ct_RANLIB ECHO CPP EGREP LIBTOOL LIBTOOL_DEPS all_includes all_libraries AUTODIRS GCC_NEEDS_MS_EXTENSIONS_TRUE GCC_NEEDS_MS_EXTENSIONS_FALSE LIBOBJS LTLIBOBJS'
476 # Initialize some variables set by options.
478 ac_init_version=false
479 # The variables have the same names as the options, with
480 # dashes changed to underlines.
488 program_transform_name=s,x,x,
496 # Installation directory options.
497 # These are left unexpanded so users can "make install exec_prefix=/foo"
498 # and all the variables that are supposed to be based on exec_prefix
499 # by default will actually change.
500 # Use braces instead of parens because sh, perl, etc. also accept them.
501 bindir='${exec_prefix}/bin'
502 sbindir='${exec_prefix}/sbin'
503 libexecdir='${exec_prefix}/libexec'
504 datadir='${prefix}/share'
505 sysconfdir='${prefix}/etc'
506 sharedstatedir='${prefix}/com'
507 localstatedir='${prefix}/var'
508 libdir='${exec_prefix}/lib'
509 includedir='${prefix}/include'
510 oldincludedir='/usr/include'
511 infodir='${prefix}/info'
512 mandir='${prefix}/man'
517 # If the previous option needs an argument, assign it.
518 if test -n "$ac_prev"; then
519 eval "$ac_prev=\$ac_option"
524 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
526 # Accept the important Cygnus configure options, so we can diagnose typos.
530 -bindir | --bindir | --bindi | --bind | --bin | --bi)
532 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535 -build | --build | --buil | --bui | --bu)
536 ac_prev=build_alias ;;
537 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
538 build_alias=$ac_optarg ;;
540 -cache-file | --cache-file | --cache-fil | --cache-fi \
541 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
542 ac_prev=cache_file ;;
543 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
544 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
545 cache_file=$ac_optarg ;;
548 cache_file=config.cache ;;
550 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
552 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
554 datadir=$ac_optarg ;;
556 -disable-* | --disable-*)
557 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
558 # Reject names that are not valid shell variable names.
559 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
560 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
561 { (exit 1); exit 1; }; }
562 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
563 eval "enable_$ac_feature=no" ;;
565 -enable-* | --enable-*)
566 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
567 # Reject names that are not valid shell variable names.
568 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
569 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
570 { (exit 1); exit 1; }; }
571 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
573 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576 eval "enable_$ac_feature='$ac_optarg'" ;;
578 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
579 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
580 | --exec | --exe | --ex)
581 ac_prev=exec_prefix ;;
582 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
583 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
584 | --exec=* | --exe=* | --ex=*)
585 exec_prefix=$ac_optarg ;;
587 -gas | --gas | --ga | --g)
588 # Obsolete; use --with-gas.
591 -help | --help | --hel | --he | -h)
593 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
594 ac_init_help=recursive ;;
595 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
596 ac_init_help=short ;;
598 -host | --host | --hos | --ho)
599 ac_prev=host_alias ;;
600 -host=* | --host=* | --hos=* | --ho=*)
601 host_alias=$ac_optarg ;;
603 -includedir | --includedir | --includedi | --included | --include \
604 | --includ | --inclu | --incl | --inc)
605 ac_prev=includedir ;;
606 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
607 | --includ=* | --inclu=* | --incl=* | --inc=*)
608 includedir=$ac_optarg ;;
610 -infodir | --infodir | --infodi | --infod | --info | --inf)
612 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
613 infodir=$ac_optarg ;;
615 -libdir | --libdir | --libdi | --libd)
617 -libdir=* | --libdir=* | --libdi=* | --libd=*)
620 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
621 | --libexe | --libex | --libe)
622 ac_prev=libexecdir ;;
623 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
624 | --libexe=* | --libex=* | --libe=*)
625 libexecdir=$ac_optarg ;;
627 -localstatedir | --localstatedir | --localstatedi | --localstated \
628 | --localstate | --localstat | --localsta | --localst \
629 | --locals | --local | --loca | --loc | --lo)
630 ac_prev=localstatedir ;;
631 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
632 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
633 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
634 localstatedir=$ac_optarg ;;
636 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
638 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
642 # Obsolete; use --without-fp.
645 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
646 | --no-cr | --no-c | -n)
649 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
650 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
654 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
655 | --oldin | --oldi | --old | --ol | --o)
656 ac_prev=oldincludedir ;;
657 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
658 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
659 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
660 oldincludedir=$ac_optarg ;;
662 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
664 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667 -program-prefix | --program-prefix | --program-prefi | --program-pref \
668 | --program-pre | --program-pr | --program-p)
669 ac_prev=program_prefix ;;
670 -program-prefix=* | --program-prefix=* | --program-prefi=* \
671 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
672 program_prefix=$ac_optarg ;;
674 -program-suffix | --program-suffix | --program-suffi | --program-suff \
675 | --program-suf | --program-su | --program-s)
676 ac_prev=program_suffix ;;
677 -program-suffix=* | --program-suffix=* | --program-suffi=* \
678 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
679 program_suffix=$ac_optarg ;;
681 -program-transform-name | --program-transform-name \
682 | --program-transform-nam | --program-transform-na \
683 | --program-transform-n | --program-transform- \
684 | --program-transform | --program-transfor \
685 | --program-transfo | --program-transf \
686 | --program-trans | --program-tran \
687 | --progr-tra | --program-tr | --program-t)
688 ac_prev=program_transform_name ;;
689 -program-transform-name=* | --program-transform-name=* \
690 | --program-transform-nam=* | --program-transform-na=* \
691 | --program-transform-n=* | --program-transform-=* \
692 | --program-transform=* | --program-transfor=* \
693 | --program-transfo=* | --program-transf=* \
694 | --program-trans=* | --program-tran=* \
695 | --progr-tra=* | --program-tr=* | --program-t=*)
696 program_transform_name=$ac_optarg ;;
698 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
699 | -silent | --silent | --silen | --sile | --sil)
702 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
704 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
706 sbindir=$ac_optarg ;;
708 -sharedstatedir | --sharedstatedir | --sharedstatedi \
709 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
710 | --sharedst | --shareds | --shared | --share | --shar \
712 ac_prev=sharedstatedir ;;
713 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
714 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
715 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
717 sharedstatedir=$ac_optarg ;;
719 -site | --site | --sit)
721 -site=* | --site=* | --sit=*)
724 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
726 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
730 | --syscon | --sysco | --sysc | --sys | --sy)
731 ac_prev=sysconfdir ;;
732 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
733 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
734 sysconfdir=$ac_optarg ;;
736 -target | --target | --targe | --targ | --tar | --ta | --t)
737 ac_prev=target_alias ;;
738 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
739 target_alias=$ac_optarg ;;
741 -v | -verbose | --verbose | --verbos | --verbo | --verb)
744 -version | --version | --versio | --versi | --vers | -V)
748 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
749 # Reject names that are not valid shell variable names.
750 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
751 { echo "$as_me: error: invalid package name: $ac_package" >&2
752 { (exit 1); exit 1; }; }
753 ac_package=`echo $ac_package| sed 's/-/_/g'`
755 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758 eval "with_$ac_package='$ac_optarg'" ;;
760 -without-* | --without-*)
761 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
762 # Reject names that are not valid shell variable names.
763 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
764 { echo "$as_me: error: invalid package name: $ac_package" >&2
765 { (exit 1); exit 1; }; }
766 ac_package=`echo $ac_package | sed 's/-/_/g'`
767 eval "with_$ac_package=no" ;;
770 # Obsolete; use --with-x.
773 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
774 | --x-incl | --x-inc | --x-in | --x-i)
775 ac_prev=x_includes ;;
776 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
777 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
778 x_includes=$ac_optarg ;;
780 -x-libraries | --x-libraries | --x-librarie | --x-librari \
781 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
782 ac_prev=x_libraries ;;
783 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
784 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
785 x_libraries=$ac_optarg ;;
787 -*) { echo "$as_me: error: unrecognized option: $ac_option
788 Try \`$0 --help' for more information." >&2
789 { (exit 1); exit 1; }; }
793 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
794 # Reject names that are not valid shell variable names.
795 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
796 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
797 { (exit 1); exit 1; }; }
798 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
799 eval "$ac_envvar='$ac_optarg'"
803 # FIXME: should be removed in autoconf 3.0.
804 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
805 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
806 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
807 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
813 if test -n "$ac_prev"; then
814 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
815 { echo "$as_me: error: missing argument to $ac_option" >&2
816 { (exit 1); exit 1; }; }
819 # Be sure to have absolute paths.
820 for ac_var in exec_prefix prefix
822 eval ac_val=$`echo $ac_var`
824 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
825 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
826 { (exit 1); exit 1; }; };;
830 # Be sure to have absolute paths.
831 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
832 localstatedir libdir includedir oldincludedir infodir mandir
834 eval ac_val=$`echo $ac_var`
836 [\\/$]* | ?:[\\/]* ) ;;
837 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
838 { (exit 1); exit 1; }; };;
842 # There might be people who depend on the old broken behavior: `$host'
843 # used to hold the argument of --host etc.
844 # FIXME: To remove some day.
849 # FIXME: To remove some day.
850 if test "x$host_alias" != x; then
851 if test "x$build_alias" = x; then
852 cross_compiling=maybe
853 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
854 If a cross compiler is detected then cross compile mode will be used." >&2
855 elif test "x$build_alias" != "x$host_alias"; then
861 test -n "$host_alias" && ac_tool_prefix=$host_alias-
863 test "$silent" = yes && exec 6>/dev/null
866 # Find the source files, if location was not specified.
867 if test -z "$srcdir"; then
868 ac_srcdir_defaulted=yes
869 # Try the directory containing this script, then its parent.
870 ac_confdir=`(dirname "$0") 2>/dev/null ||
871 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
872 X"$0" : 'X\(//\)[^/]' \| \
873 X"$0" : 'X\(//\)$' \| \
874 X"$0" : 'X\(/\)' \| \
875 . : '\(.\)' 2>/dev/null ||
877 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
878 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
879 /^X\(\/\/\)$/{ s//\1/; q; }
880 /^X\(\/\).*/{ s//\1/; q; }
883 if test ! -r $srcdir/$ac_unique_file; then
887 ac_srcdir_defaulted=no
889 if test ! -r $srcdir/$ac_unique_file; then
890 if test "$ac_srcdir_defaulted" = yes; then
891 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
892 { (exit 1); exit 1; }; }
894 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
895 { (exit 1); exit 1; }; }
898 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
899 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
900 { (exit 1); exit 1; }; }
901 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
902 ac_env_build_alias_set=${build_alias+set}
903 ac_env_build_alias_value=$build_alias
904 ac_cv_env_build_alias_set=${build_alias+set}
905 ac_cv_env_build_alias_value=$build_alias
906 ac_env_host_alias_set=${host_alias+set}
907 ac_env_host_alias_value=$host_alias
908 ac_cv_env_host_alias_set=${host_alias+set}
909 ac_cv_env_host_alias_value=$host_alias
910 ac_env_target_alias_set=${target_alias+set}
911 ac_env_target_alias_value=$target_alias
912 ac_cv_env_target_alias_set=${target_alias+set}
913 ac_cv_env_target_alias_value=$target_alias
914 ac_env_CXX_set=${CXX+set}
915 ac_env_CXX_value=$CXX
916 ac_cv_env_CXX_set=${CXX+set}
917 ac_cv_env_CXX_value=$CXX
918 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
919 ac_env_CXXFLAGS_value=$CXXFLAGS
920 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
921 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
922 ac_env_LDFLAGS_set=${LDFLAGS+set}
923 ac_env_LDFLAGS_value=$LDFLAGS
924 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
925 ac_cv_env_LDFLAGS_value=$LDFLAGS
926 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
927 ac_env_CPPFLAGS_value=$CPPFLAGS
928 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
929 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
930 ac_env_CC_set=${CC+set}
932 ac_cv_env_CC_set=${CC+set}
933 ac_cv_env_CC_value=$CC
934 ac_env_CFLAGS_set=${CFLAGS+set}
935 ac_env_CFLAGS_value=$CFLAGS
936 ac_cv_env_CFLAGS_set=${CFLAGS+set}
937 ac_cv_env_CFLAGS_value=$CFLAGS
938 ac_env_CPP_set=${CPP+set}
939 ac_env_CPP_value=$CPP
940 ac_cv_env_CPP_set=${CPP+set}
941 ac_cv_env_CPP_value=$CPP
944 # Report the --help message.
946 if test "$ac_init_help" = "long"; then
947 # Omit some internal or obsolete options to make the list less imposing.
948 # This message is too long to be a string in the A/UX 3.1 sh.
950 \`configure' configures ntfsprogs 1.7.2-WIP to adapt to many kinds of systems.
952 Usage: $0 [OPTION]... [VAR=VALUE]...
954 To assign environment variables (e.g., CC, CFLAGS...), specify them as
955 VAR=VALUE. See below for descriptions of some of the useful variables.
957 Defaults for the options are specified in brackets.
960 -h, --help display this help and exit
961 --help=short display options specific to this package
962 --help=recursive display the short help of all the included packages
963 -V, --version display version information and exit
964 -q, --quiet, --silent do not print \`checking...' messages
965 --cache-file=FILE cache test results in FILE [disabled]
966 -C, --config-cache alias for \`--cache-file=config.cache'
967 -n, --no-create do not create output files
968 --srcdir=DIR find the sources in DIR [configure dir or \`..']
973 Installation directories:
974 --prefix=PREFIX install architecture-independent files in PREFIX
976 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
979 By default, \`make install' will install all the files in
980 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
981 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
982 for instance \`--prefix=\$HOME'.
984 For better control, use the options below.
986 Fine tuning of the installation directories:
987 --bindir=DIR user executables [EPREFIX/bin]
988 --sbindir=DIR system admin executables [EPREFIX/sbin]
989 --libexecdir=DIR program executables [EPREFIX/libexec]
990 --datadir=DIR read-only architecture-independent data [PREFIX/share]
991 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
992 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
993 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
994 --libdir=DIR object code libraries [EPREFIX/lib]
995 --includedir=DIR C header files [PREFIX/include]
996 --oldincludedir=DIR C header files for non-gcc [/usr/include]
997 --infodir=DIR info documentation [PREFIX/info]
998 --mandir=DIR man documentation [PREFIX/man]
1004 --program-prefix=PREFIX prepend PREFIX to installed program names
1005 --program-suffix=SUFFIX append SUFFIX to installed program names
1006 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1009 --build=BUILD configure for building on BUILD [guessed]
1010 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1011 --target=TARGET configure for building compilers for TARGET [HOST]
1015 if test -n "$ac_init_help"; then
1016 case $ac_init_help in
1017 short | recursive ) echo "Configuration of ntfsprogs 1.7.2-WIP:";;
1022 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1023 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1024 --enable-maintainer-mode enable make rules and dependencies not useful
1025 (and sometimes confusing) to the casual installer
1026 --enable-debug enable debugging
1027 --enable-really-static completely static binaries
1028 --disable-dependency-tracking Speeds up one-time builds
1029 --enable-dependency-tracking Do not reject slow dependency extractors
1030 --enable-shared=PKGS build shared libraries default=yes
1031 --enable-static=PKGS build static libraries default=yes
1032 --enable-fast-install=PKGS optimize for fast installation default=yes
1033 --disable-libtool-lock avoid locking (might break parallel builds)
1036 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1037 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1038 --with-gnu-ld assume the C compiler uses GNU ld default=no
1039 --with-pic try to use only PIC/non-PIC objects default=use both
1041 Some influential environment variables:
1042 CXX C++ compiler command
1043 CXXFLAGS C++ compiler flags
1044 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1045 nonstandard directory <lib dir>
1046 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1047 headers in a nonstandard directory <include dir>
1048 CC C compiler command
1049 CFLAGS C compiler flags
1052 Use these variables to override the choices made by `configure' or to help
1053 it to find libraries and programs with nonstandard names/locations.
1055 Report bugs to <linux-ntfs-dev@lists.sourceforge.net>.
1059 if test "$ac_init_help" = "recursive"; then
1060 # If there are subdirs, report their specific --help.
1062 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1063 test -d $ac_dir || continue
1066 if test "$ac_dir" != .; then
1067 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1068 # A "../" for each directory in $ac_dir_suffix.
1069 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1071 ac_dir_suffix= ac_top_builddir=
1075 .) # No --srcdir option. We are building in place.
1077 if test -z "$ac_top_builddir"; then
1080 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1082 [\\/]* | ?:[\\/]* ) # Absolute path.
1083 ac_srcdir=$srcdir$ac_dir_suffix;
1084 ac_top_srcdir=$srcdir ;;
1086 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1087 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1089 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1091 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1092 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
1093 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1094 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1097 # Check for guested configure; otherwise get Cygnus style configure.
1098 if test -f $ac_srcdir/configure.gnu; then
1100 $SHELL $ac_srcdir/configure.gnu --help=recursive
1101 elif test -f $ac_srcdir/configure; then
1103 $SHELL $ac_srcdir/configure --help=recursive
1104 elif test -f $ac_srcdir/configure.ac ||
1105 test -f $ac_srcdir/configure.in; then
1107 $ac_configure --help
1109 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1115 test -n "$ac_init_help" && exit 0
1116 if $ac_init_version; then
1118 ntfsprogs configure 1.7.2-WIP
1119 generated by GNU Autoconf 2.57
1121 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1122 Free Software Foundation, Inc.
1123 This configure script is free software; the Free Software Foundation
1124 gives unlimited permission to copy, distribute and modify it.
1130 This file contains any messages produced by compilers while
1131 running configure, to aid debugging if configure makes a mistake.
1133 It was created by ntfsprogs $as_me 1.7.2-WIP, which was
1134 generated by GNU Autoconf 2.57. Invocation command line was
1145 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1146 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1147 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1148 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1149 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1151 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1152 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1154 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1155 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1156 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1157 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1158 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1159 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1160 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1168 test -z "$as_dir" && as_dir=.
1169 echo "PATH: $as_dir"
1184 # Keep a trace of the command line.
1185 # Strip out --no-create and --no-recursion so they do not pile up.
1186 # Strip out --silent because we don't want to record it for future runs.
1187 # Also quote any args containing shell meta-characters.
1188 # Make two passes to allow for proper duplicate-argument suppression.
1193 ac_must_keep_next=false
1199 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1200 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1201 | -silent | --silent | --silen | --sile | --sil)
1203 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1204 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1207 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1209 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1210 if test $ac_must_keep_next = true; then
1211 ac_must_keep_next=false # Got value, back to normal.
1214 *=* | --config-cache | -C | -disable-* | --disable-* \
1215 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1216 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1217 | -with-* | --with-* | -without-* | --without-* | --x)
1218 case "$ac_configure_args0 " in
1219 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1222 -* ) ac_must_keep_next=true ;;
1225 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1226 # Get rid of the leading space.
1232 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1233 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1235 # When interrupted or exit'd, cleanup temporary files, and complete
1236 # config.log. We remove comments because anyway the quotes in there
1237 # would cause problems or look ugly.
1238 # WARNING: Be sure not to use single quotes in there, as some shells,
1239 # such as our DU 5.0 friend, will then `close' the trap.
1240 trap 'exit_status=$?
1241 # Save into config.log some information that might help in debugging.
1246 ## ---------------- ##
1247 ## Cache variables. ##
1248 ## ---------------- ##
1251 # The following way of writing the cache mishandles newlines in values,
1254 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1257 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1258 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1262 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1269 ## ----------------- ##
1270 ## Output variables. ##
1271 ## ----------------- ##
1274 for ac_var in $ac_subst_vars
1276 eval ac_val=$`echo $ac_var`
1277 echo "$ac_var='"'"'$ac_val'"'"'"
1281 if test -n "$ac_subst_files"; then
1288 for ac_var in $ac_subst_files
1290 eval ac_val=$`echo $ac_var`
1291 echo "$ac_var='"'"'$ac_val'"'"'"
1296 if test -s confdefs.h; then
1303 sed "/^$/d" confdefs.h | sort
1306 test "$ac_signal" != 0 &&
1307 echo "$as_me: caught signal $ac_signal"
1308 echo "$as_me: exit $exit_status"
1310 rm -f core core.* *.core &&
1311 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1314 for ac_signal in 1 2 13 15; do
1315 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1319 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1320 rm -rf conftest* confdefs.h
1321 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1324 # Predefined preprocessor variables.
1326 cat >>confdefs.h <<_ACEOF
1327 #define PACKAGE_NAME "$PACKAGE_NAME"
1331 cat >>confdefs.h <<_ACEOF
1332 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1336 cat >>confdefs.h <<_ACEOF
1337 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1341 cat >>confdefs.h <<_ACEOF
1342 #define PACKAGE_STRING "$PACKAGE_STRING"
1346 cat >>confdefs.h <<_ACEOF
1347 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1351 # Let the site file select an alternate cache file if it wants to.
1352 # Prefer explicitly selected file to automatically selected ones.
1353 if test -z "$CONFIG_SITE"; then
1354 if test "x$prefix" != xNONE; then
1355 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1357 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1360 for ac_site_file in $CONFIG_SITE; do
1361 if test -r "$ac_site_file"; then
1362 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1363 echo "$as_me: loading site script $ac_site_file" >&6;}
1364 sed 's/^/| /' "$ac_site_file" >&5
1369 if test -r "$cache_file"; then
1370 # Some versions of bash will fail to source /dev/null (special
1371 # files actually), so we avoid doing that.
1372 if test -f "$cache_file"; then
1373 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1374 echo "$as_me: loading cache $cache_file" >&6;}
1376 [\\/]* | ?:[\\/]* ) . $cache_file;;
1377 *) . ./$cache_file;;
1381 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1382 echo "$as_me: creating cache $cache_file" >&6;}
1386 # Check that the precious variables saved in the cache have kept the same
1388 ac_cache_corrupted=false
1389 for ac_var in `(set) 2>&1 |
1390 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1391 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1392 eval ac_new_set=\$ac_env_${ac_var}_set
1393 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1394 eval ac_new_val="\$ac_env_${ac_var}_value"
1395 case $ac_old_set,$ac_new_set in
1397 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1398 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1399 ac_cache_corrupted=: ;;
1401 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1402 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1403 ac_cache_corrupted=: ;;
1406 if test "x$ac_old_val" != "x$ac_new_val"; then
1407 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1408 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1409 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1410 echo "$as_me: former value: $ac_old_val" >&2;}
1411 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1412 echo "$as_me: current value: $ac_new_val" >&2;}
1413 ac_cache_corrupted=:
1416 # Pass precious variables to config.status.
1417 if test "$ac_new_set" = set; then
1419 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1420 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1421 *) ac_arg=$ac_var=$ac_new_val ;;
1423 case " $ac_configure_args " in
1424 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1425 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1429 if $ac_cache_corrupted; then
1430 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1431 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1432 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1433 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1434 { (exit 1); exit 1; }; }
1438 ac_cpp='$CPP $CPPFLAGS'
1439 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1440 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1441 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1470 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1471 if test -f $ac_dir/install-sh; then
1473 ac_install_sh="$ac_aux_dir/install-sh -c"
1475 elif test -f $ac_dir/install.sh; then
1477 ac_install_sh="$ac_aux_dir/install.sh -c"
1479 elif test -f $ac_dir/shtool; then
1481 ac_install_sh="$ac_aux_dir/shtool install -c"
1485 if test -z "$ac_aux_dir"; then
1486 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1487 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1488 { (exit 1); exit 1; }; }
1490 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1491 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1492 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1494 # Make sure we can run config.sub.
1495 $ac_config_sub sun4 >/dev/null 2>&1 ||
1496 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1497 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1498 { (exit 1); exit 1; }; }
1500 echo "$as_me:$LINENO: checking build system type" >&5
1501 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1502 if test "${ac_cv_build+set}" = set; then
1503 echo $ECHO_N "(cached) $ECHO_C" >&6
1505 ac_cv_build_alias=$build_alias
1506 test -z "$ac_cv_build_alias" &&
1507 ac_cv_build_alias=`$ac_config_guess`
1508 test -z "$ac_cv_build_alias" &&
1509 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1510 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1511 { (exit 1); exit 1; }; }
1512 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1513 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1514 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1515 { (exit 1); exit 1; }; }
1518 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1519 echo "${ECHO_T}$ac_cv_build" >&6
1521 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1522 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1523 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1526 echo "$as_me:$LINENO: checking host system type" >&5
1527 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1528 if test "${ac_cv_host+set}" = set; then
1529 echo $ECHO_N "(cached) $ECHO_C" >&6
1531 ac_cv_host_alias=$host_alias
1532 test -z "$ac_cv_host_alias" &&
1533 ac_cv_host_alias=$ac_cv_build_alias
1534 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1535 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1536 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1537 { (exit 1); exit 1; }; }
1540 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1541 echo "${ECHO_T}$ac_cv_host" >&6
1543 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1544 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1545 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1548 echo "$as_me:$LINENO: checking target system type" >&5
1549 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1550 if test "${ac_cv_target+set}" = set; then
1551 echo $ECHO_N "(cached) $ECHO_C" >&6
1553 ac_cv_target_alias=$target_alias
1554 test "x$ac_cv_target_alias" = "x" &&
1555 ac_cv_target_alias=$ac_cv_host_alias
1556 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1557 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1558 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1559 { (exit 1); exit 1; }; }
1562 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1563 echo "${ECHO_T}$ac_cv_target" >&6
1564 target=$ac_cv_target
1565 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1566 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1567 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1570 # The aliases save the names the user supplied, while $host etc.
1571 # will get canonicalized.
1572 test -n "$target_alias" &&
1573 test "$program_prefix$program_suffix$program_transform_name" = \
1575 program_prefix=${target_alias}-
1577 # Add the stamp file to the list of files AC keeps track of,
1578 # along with our hook.
1579 ac_config_headers="$ac_config_headers config.h"
1583 am__api_version="1.6"
1584 # Find a good install program. We prefer a C program (faster),
1585 # so one script is as good as another. But avoid the broken or
1586 # incompatible versions:
1587 # SysV /etc/install, /usr/sbin/install
1588 # SunOS /usr/etc/install
1589 # IRIX /sbin/install
1591 # AmigaOS /C/install, which installs bootblocks on floppy discs
1592 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1593 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1594 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1595 # ./install, which can be erroneously created by make from ./install.sh.
1596 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1597 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1598 if test -z "$INSTALL"; then
1599 if test "${ac_cv_path_install+set}" = set; then
1600 echo $ECHO_N "(cached) $ECHO_C" >&6
1602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1606 test -z "$as_dir" && as_dir=.
1607 # Account for people who put trailing slashes in PATH elements.
1609 ./ | .// | /cC/* | \
1610 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1613 # OSF1 and SCO ODT 3.0 have their own names for install.
1614 # Don't use installbsd from OSF since it installs stuff as root
1616 for ac_prog in ginstall scoinst install; do
1617 for ac_exec_ext in '' $ac_executable_extensions; do
1618 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1619 if test $ac_prog = install &&
1620 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1621 # AIX install. It has an incompatible calling convention.
1623 elif test $ac_prog = install &&
1624 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1625 # program-specific install script used by HP pwplus--don't use.
1628 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1640 if test "${ac_cv_path_install+set}" = set; then
1641 INSTALL=$ac_cv_path_install
1643 # As a last resort, use the slow shell script. We don't cache a
1644 # path for INSTALL within a source directory, because that will
1645 # break other packages using the cache if that directory is
1646 # removed, or if the path is relative.
1647 INSTALL=$ac_install_sh
1650 echo "$as_me:$LINENO: result: $INSTALL" >&5
1651 echo "${ECHO_T}$INSTALL" >&6
1653 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1654 # It thinks the first close brace ends the variable substitution.
1655 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1657 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1659 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1661 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1662 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1665 echo timestamp > conftest.file
1666 # Do `set' in a subshell so we don't clobber the current shell's
1667 # arguments. Must try -L first in case configure is actually a
1668 # symlink; some systems play weird games with the mod time of symlinks
1669 # (eg FreeBSD returns the mod time of the symlink's containing
1672 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1673 if test "$*" = "X"; then
1675 set X `ls -t $srcdir/configure conftest.file`
1678 if test "$*" != "X $srcdir/configure conftest.file" \
1679 && test "$*" != "X conftest.file $srcdir/configure"; then
1681 # If neither matched, then we have a broken ls. This can happen
1682 # if, for instance, CONFIG_SHELL is bash and it inherits a
1683 # broken ls alias from the environment. This has actually
1684 # happened. Such a system could not be considered "sane".
1685 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1686 alias in your environment" >&5
1687 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1688 alias in your environment" >&2;}
1689 { (exit 1); exit 1; }; }
1692 test "$2" = conftest.file
1698 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1699 Check your system clock" >&5
1700 echo "$as_me: error: newly created file is older than distributed files!
1701 Check your system clock" >&2;}
1702 { (exit 1); exit 1; }; }
1704 echo "$as_me:$LINENO: result: yes" >&5
1705 echo "${ECHO_T}yes" >&6
1706 test "$program_prefix" != NONE &&
1707 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1708 # Use a double $ so make ignores it.
1709 test "$program_suffix" != NONE &&
1710 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1711 # Double any \ or $. echo might interpret backslashes.
1712 # By default was `s,x,x', remove it if useless.
1713 cat <<\_ACEOF >conftest.sed
1714 s/[\\$]/&&/g;s/;s,x,x,$//
1716 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1720 # expand $ac_aux_dir to an absolute path
1721 am_aux_dir=`cd $ac_aux_dir && pwd`
1723 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1724 # Use eval to expand $SHELL
1725 if eval "$MISSING --run true"; then
1726 am_missing_run="$MISSING --run "
1729 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1730 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1733 for ac_prog in gawk mawk nawk awk
1735 # Extract the first word of "$ac_prog", so it can be a program name with args.
1736 set dummy $ac_prog; ac_word=$2
1737 echo "$as_me:$LINENO: checking for $ac_word" >&5
1738 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1739 if test "${ac_cv_prog_AWK+set}" = set; then
1740 echo $ECHO_N "(cached) $ECHO_C" >&6
1742 if test -n "$AWK"; then
1743 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1749 test -z "$as_dir" && as_dir=.
1750 for ac_exec_ext in '' $ac_executable_extensions; do
1751 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1752 ac_cv_prog_AWK="$ac_prog"
1753 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1762 if test -n "$AWK"; then
1763 echo "$as_me:$LINENO: result: $AWK" >&5
1764 echo "${ECHO_T}$AWK" >&6
1766 echo "$as_me:$LINENO: result: no" >&5
1767 echo "${ECHO_T}no" >&6
1770 test -n "$AWK" && break
1773 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1774 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1775 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1776 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1777 echo $ECHO_N "(cached) $ECHO_C" >&6
1779 cat >conftest.make <<\_ACEOF
1781 @echo 'ac_maketemp="$(MAKE)"'
1783 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1784 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1785 if test -n "$ac_maketemp"; then
1786 eval ac_cv_prog_make_${ac_make}_set=yes
1788 eval ac_cv_prog_make_${ac_make}_set=no
1792 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1793 echo "$as_me:$LINENO: result: yes" >&5
1794 echo "${ECHO_T}yes" >&6
1797 echo "$as_me:$LINENO: result: no" >&5
1798 echo "${ECHO_T}no" >&6
1799 SET_MAKE="MAKE=${MAKE-make}"
1802 # test to see if srcdir already configured
1803 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1804 test -f $srcdir/config.status; then
1805 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1806 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1807 { (exit 1); exit 1; }; }
1810 # Define the identity of the package.
1815 cat >>confdefs.h <<_ACEOF
1816 #define PACKAGE "$PACKAGE"
1820 cat >>confdefs.h <<_ACEOF
1821 #define VERSION "$VERSION"
1824 # Some tools Automake needs.
1826 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1829 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1832 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1835 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1838 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1841 AMTAR=${AMTAR-"${am_missing_run}tar"}
1843 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1845 # Installed binaries are usually stripped using `strip' when the user
1846 # run `make install-strip'. However `strip' might not be the right
1847 # tool to use in cross-compilation environments, therefore Automake
1848 # will honor the `STRIP' environment variable to overrule this program.
1849 if test "$cross_compiling" != no; then
1850 if test -n "$ac_tool_prefix"; then
1851 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1852 set dummy ${ac_tool_prefix}strip; ac_word=$2
1853 echo "$as_me:$LINENO: checking for $ac_word" >&5
1854 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1855 if test "${ac_cv_prog_STRIP+set}" = set; then
1856 echo $ECHO_N "(cached) $ECHO_C" >&6
1858 if test -n "$STRIP"; then
1859 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1865 test -z "$as_dir" && as_dir=.
1866 for ac_exec_ext in '' $ac_executable_extensions; do
1867 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1868 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1869 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1877 STRIP=$ac_cv_prog_STRIP
1878 if test -n "$STRIP"; then
1879 echo "$as_me:$LINENO: result: $STRIP" >&5
1880 echo "${ECHO_T}$STRIP" >&6
1882 echo "$as_me:$LINENO: result: no" >&5
1883 echo "${ECHO_T}no" >&6
1887 if test -z "$ac_cv_prog_STRIP"; then
1889 # Extract the first word of "strip", so it can be a program name with args.
1890 set dummy strip; ac_word=$2
1891 echo "$as_me:$LINENO: checking for $ac_word" >&5
1892 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1893 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1894 echo $ECHO_N "(cached) $ECHO_C" >&6
1896 if test -n "$ac_ct_STRIP"; then
1897 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1903 test -z "$as_dir" && as_dir=.
1904 for ac_exec_ext in '' $ac_executable_extensions; do
1905 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1906 ac_cv_prog_ac_ct_STRIP="strip"
1907 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1913 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1916 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1917 if test -n "$ac_ct_STRIP"; then
1918 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1919 echo "${ECHO_T}$ac_ct_STRIP" >&6
1921 echo "$as_me:$LINENO: result: no" >&5
1922 echo "${ECHO_T}no" >&6
1927 STRIP="$ac_cv_prog_STRIP"
1931 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1933 # We need awk for the "check" target. The system "awk" is bad on
1939 # This is required to get past a stupid configure bug when making the rpm.
1940 # Basically it is broken to specify the host as a command line argument to
1941 # configure on its own, i.e. without giving --host=. It is supposed to work
1942 # but doesn't. So this sets host and erases nonopt effectively moving the
1943 # standalone command line option into the --host= form.
1944 if test "x$nonopt" != "xNONE"; then
1949 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1950 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1951 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1952 if test "${enable_maintainer_mode+set}" = set; then
1953 enableval="$enable_maintainer_mode"
1954 USE_MAINTAINER_MODE=$enableval
1956 USE_MAINTAINER_MODE=no
1958 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1959 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1962 if test $USE_MAINTAINER_MODE = yes; then
1963 MAINTAINER_MODE_TRUE=
1964 MAINTAINER_MODE_FALSE='#'
1966 MAINTAINER_MODE_TRUE='#'
1967 MAINTAINER_MODE_FALSE=
1970 MAINT=$MAINTAINER_MODE_TRUE
1975 if test "x$prefix" = "xNONE"; then
1976 prefix=$ac_default_prefix
1977 ac_configure_args="$ac_configure_args --prefix $prefix"
1980 # Command-line options.
1981 # Check whether --enable-debug or --disable-debug was given.
1982 if test "${enable_debug+set}" = set; then
1983 enableval="$enable_debug"
1990 # Check whether --enable-really-static or --disable-really-static was given.
1991 if test "${enable_really_static+set}" = set; then
1992 enableval="$enable_really_static"
1995 enable_really_static=no
2001 if test "$enable_debug" = yes; then
2011 if test "$enable_really_static" = yes; then
2013 REALLYSTATIC_FALSE='#'
2015 REALLYSTATIC_TRUE='#'
2020 # Checks for programs.
2022 ac_cpp='$CXXCPP $CPPFLAGS'
2023 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2024 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2025 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2026 if test -n "$ac_tool_prefix"; then
2027 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2029 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2030 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2031 echo "$as_me:$LINENO: checking for $ac_word" >&5
2032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2033 if test "${ac_cv_prog_CXX+set}" = set; then
2034 echo $ECHO_N "(cached) $ECHO_C" >&6
2036 if test -n "$CXX"; then
2037 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2043 test -z "$as_dir" && as_dir=.
2044 for ac_exec_ext in '' $ac_executable_extensions; do
2045 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2046 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2047 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2056 if test -n "$CXX"; then
2057 echo "$as_me:$LINENO: result: $CXX" >&5
2058 echo "${ECHO_T}$CXX" >&6
2060 echo "$as_me:$LINENO: result: no" >&5
2061 echo "${ECHO_T}no" >&6
2064 test -n "$CXX" && break
2067 if test -z "$CXX"; then
2069 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2071 # Extract the first word of "$ac_prog", so it can be a program name with args.
2072 set dummy $ac_prog; ac_word=$2
2073 echo "$as_me:$LINENO: checking for $ac_word" >&5
2074 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2075 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2076 echo $ECHO_N "(cached) $ECHO_C" >&6
2078 if test -n "$ac_ct_CXX"; then
2079 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2085 test -z "$as_dir" && as_dir=.
2086 for ac_exec_ext in '' $ac_executable_extensions; do
2087 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2088 ac_cv_prog_ac_ct_CXX="$ac_prog"
2089 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2097 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2098 if test -n "$ac_ct_CXX"; then
2099 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2100 echo "${ECHO_T}$ac_ct_CXX" >&6
2102 echo "$as_me:$LINENO: result: no" >&5
2103 echo "${ECHO_T}no" >&6
2106 test -n "$ac_ct_CXX" && break
2108 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2114 # Provide some information about the compiler.
2115 echo "$as_me:$LINENO:" \
2116 "checking for C++ compiler version" >&5
2117 ac_compiler=`set X $ac_compile; echo $2`
2118 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2119 (eval $ac_compiler --version </dev/null >&5) 2>&5
2121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2122 (exit $ac_status); }
2123 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2124 (eval $ac_compiler -v </dev/null >&5) 2>&5
2126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2127 (exit $ac_status); }
2128 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2129 (eval $ac_compiler -V </dev/null >&5) 2>&5
2131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2132 (exit $ac_status); }
2134 cat >conftest.$ac_ext <<_ACEOF
2135 #line $LINENO "configure"
2138 cat confdefs.h >>conftest.$ac_ext
2139 cat >>conftest.$ac_ext <<_ACEOF
2140 /* end confdefs.h. */
2150 ac_clean_files_save=$ac_clean_files
2151 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2152 # Try to create an executable without -o first, disregard a.out.
2153 # It will help us diagnose broken compilers, and finding out an intuition
2155 echo "$as_me:$LINENO: checking for C++ compiler default output" >&5
2156 echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
2157 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2158 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2159 (eval $ac_link_default) 2>&5
2161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2162 (exit $ac_status); }; then
2163 # Find the output, starting from the most likely. This scheme is
2164 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2167 # Be careful to initialize this variable, since it used to be cached.
2168 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2170 # b.out is created by i960 compilers.
2171 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2173 test -f "$ac_file" || continue
2175 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2178 # This is the source file.
2181 # We found the default executable, but exeext='' is most
2185 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2186 # FIXME: I believe we export ac_cv_exeext for Libtool,
2187 # but it would be cool to find out if it's true. Does anybody
2188 # maintain Libtool? --akim.
2196 echo "$as_me: failed program was:" >&5
2197 sed 's/^/| /' conftest.$ac_ext >&5
2199 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2200 See \`config.log' for more details." >&5
2201 echo "$as_me: error: C++ compiler cannot create executables
2202 See \`config.log' for more details." >&2;}
2203 { (exit 77); exit 77; }; }
2206 ac_exeext=$ac_cv_exeext
2207 echo "$as_me:$LINENO: result: $ac_file" >&5
2208 echo "${ECHO_T}$ac_file" >&6
2210 # Check the compiler produces executables we can run. If not, either
2211 # the compiler is broken, or we cross compile.
2212 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2213 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2214 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2215 # If not cross compiling, check that we can run a simple program.
2216 if test "$cross_compiling" != yes; then
2217 if { ac_try='./$ac_file'
2218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2222 (exit $ac_status); }; }; then
2225 if test "$cross_compiling" = maybe; then
2228 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2229 If you meant to cross compile, use \`--host'.
2230 See \`config.log' for more details." >&5
2231 echo "$as_me: error: cannot run C++ compiled programs.
2232 If you meant to cross compile, use \`--host'.
2233 See \`config.log' for more details." >&2;}
2234 { (exit 1); exit 1; }; }
2238 echo "$as_me:$LINENO: result: yes" >&5
2239 echo "${ECHO_T}yes" >&6
2241 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2242 ac_clean_files=$ac_clean_files_save
2243 # Check the compiler produces executables we can run. If not, either
2244 # the compiler is broken, or we cross compile.
2245 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2246 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2247 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2248 echo "${ECHO_T}$cross_compiling" >&6
2250 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2251 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2253 (eval $ac_link) 2>&5
2255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2256 (exit $ac_status); }; then
2257 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2258 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2259 # work properly (i.e., refer to `conftest.exe'), while it won't with
2261 for ac_file in conftest.exe conftest conftest.*; do
2262 test -f "$ac_file" || continue
2264 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2265 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2272 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2273 See \`config.log' for more details." >&5
2274 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2275 See \`config.log' for more details." >&2;}
2276 { (exit 1); exit 1; }; }
2279 rm -f conftest$ac_cv_exeext
2280 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2281 echo "${ECHO_T}$ac_cv_exeext" >&6
2283 rm -f conftest.$ac_ext
2284 EXEEXT=$ac_cv_exeext
2286 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2287 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2288 if test "${ac_cv_objext+set}" = set; then
2289 echo $ECHO_N "(cached) $ECHO_C" >&6
2291 cat >conftest.$ac_ext <<_ACEOF
2292 #line $LINENO "configure"
2295 cat confdefs.h >>conftest.$ac_ext
2296 cat >>conftest.$ac_ext <<_ACEOF
2297 /* end confdefs.h. */
2307 rm -f conftest.o conftest.obj
2308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2309 (eval $ac_compile) 2>&5
2311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2312 (exit $ac_status); }; then
2313 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2315 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2316 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2321 echo "$as_me: failed program was:" >&5
2322 sed 's/^/| /' conftest.$ac_ext >&5
2324 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2325 See \`config.log' for more details." >&5
2326 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2327 See \`config.log' for more details." >&2;}
2328 { (exit 1); exit 1; }; }
2331 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2333 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2334 echo "${ECHO_T}$ac_cv_objext" >&6
2335 OBJEXT=$ac_cv_objext
2337 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2338 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2339 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2340 echo $ECHO_N "(cached) $ECHO_C" >&6
2342 cat >conftest.$ac_ext <<_ACEOF
2343 #line $LINENO "configure"
2346 cat confdefs.h >>conftest.$ac_ext
2347 cat >>conftest.$ac_ext <<_ACEOF
2348 /* end confdefs.h. */
2361 rm -f conftest.$ac_objext
2362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2363 (eval $ac_compile) 2>&5
2365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2366 (exit $ac_status); } &&
2367 { ac_try='test -s conftest.$ac_objext'
2368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2372 (exit $ac_status); }; }; then
2375 echo "$as_me: failed program was:" >&5
2376 sed 's/^/| /' conftest.$ac_ext >&5
2380 rm -f conftest.$ac_objext conftest.$ac_ext
2381 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2384 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2385 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2386 GXX=`test $ac_compiler_gnu = yes && echo yes`
2387 ac_test_CXXFLAGS=${CXXFLAGS+set}
2388 ac_save_CXXFLAGS=$CXXFLAGS
2390 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2391 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2392 if test "${ac_cv_prog_cxx_g+set}" = set; then
2393 echo $ECHO_N "(cached) $ECHO_C" >&6
2395 cat >conftest.$ac_ext <<_ACEOF
2396 #line $LINENO "configure"
2399 cat confdefs.h >>conftest.$ac_ext
2400 cat >>conftest.$ac_ext <<_ACEOF
2401 /* end confdefs.h. */
2411 rm -f conftest.$ac_objext
2412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2413 (eval $ac_compile) 2>&5
2415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2416 (exit $ac_status); } &&
2417 { ac_try='test -s conftest.$ac_objext'
2418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2422 (exit $ac_status); }; }; then
2423 ac_cv_prog_cxx_g=yes
2425 echo "$as_me: failed program was:" >&5
2426 sed 's/^/| /' conftest.$ac_ext >&5
2430 rm -f conftest.$ac_objext conftest.$ac_ext
2432 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2433 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2434 if test "$ac_test_CXXFLAGS" = set; then
2435 CXXFLAGS=$ac_save_CXXFLAGS
2436 elif test $ac_cv_prog_cxx_g = yes; then
2437 if test "$GXX" = yes; then
2443 if test "$GXX" = yes; then
2449 for ac_declaration in \
2451 '#include <stdlib.h>' \
2452 'extern "C" void std::exit (int) throw (); using std::exit;' \
2453 'extern "C" void std::exit (int); using std::exit;' \
2454 'extern "C" void exit (int) throw ();' \
2455 'extern "C" void exit (int);' \
2458 cat >conftest.$ac_ext <<_ACEOF
2459 #line $LINENO "configure"
2462 cat confdefs.h >>conftest.$ac_ext
2463 cat >>conftest.$ac_ext <<_ACEOF
2464 /* end confdefs.h. */
2475 rm -f conftest.$ac_objext
2476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2477 (eval $ac_compile) 2>&5
2479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2480 (exit $ac_status); } &&
2481 { ac_try='test -s conftest.$ac_objext'
2482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2486 (exit $ac_status); }; }; then
2489 echo "$as_me: failed program was:" >&5
2490 sed 's/^/| /' conftest.$ac_ext >&5
2494 rm -f conftest.$ac_objext conftest.$ac_ext
2495 cat >conftest.$ac_ext <<_ACEOF
2496 #line $LINENO "configure"
2499 cat confdefs.h >>conftest.$ac_ext
2500 cat >>conftest.$ac_ext <<_ACEOF
2501 /* end confdefs.h. */
2511 rm -f conftest.$ac_objext
2512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2513 (eval $ac_compile) 2>&5
2515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2516 (exit $ac_status); } &&
2517 { ac_try='test -s conftest.$ac_objext'
2518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2522 (exit $ac_status); }; }; then
2525 echo "$as_me: failed program was:" >&5
2526 sed 's/^/| /' conftest.$ac_ext >&5
2529 rm -f conftest.$ac_objext conftest.$ac_ext
2532 if test -n "$ac_declaration"; then
2533 echo '#ifdef __cplusplus' >>confdefs.h
2534 echo $ac_declaration >>confdefs.h
2535 echo '#endif' >>confdefs.h
2539 ac_cpp='$CPP $CPPFLAGS'
2540 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2541 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2542 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2543 rm -f .deps 2>/dev/null
2544 mkdir .deps 2>/dev/null
2545 if test -d .deps; then
2548 # MS-DOS does not allow filenames that begin with a dot.
2551 rmdir .deps 2>/dev/null
2554 ac_config_commands="$ac_config_commands depfiles"
2557 am_make=${MAKE-make}
2558 cat > confinc << 'END'
2562 # If we don't find an include directive, just comment out the code.
2563 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2564 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2568 # First try GNU make style include.
2569 echo "include confinc" > confmf
2570 # We grep out `Entering directory' and `Leaving directory'
2571 # messages which can occur if `w' ends up in MAKEFLAGS.
2572 # In particular we don't look at `^make:' because GNU make might
2573 # be invoked under some other name (usually "gmake"), in which
2574 # case it prints its new name instead of `make'.
2575 if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
2580 # Now try BSD make style include.
2581 if test "$am__include" = "#"; then
2582 echo '.include "confinc"' > confmf
2583 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2584 am__include=.include
2591 echo "$as_me:$LINENO: result: $_am_result" >&5
2592 echo "${ECHO_T}$_am_result" >&6
2593 rm -f confinc confmf
2595 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2596 if test "${enable_dependency_tracking+set}" = set; then
2597 enableval="$enable_dependency_tracking"
2600 if test "x$enable_dependency_tracking" != xno; then
2601 am_depcomp="$ac_aux_dir/depcomp"
2606 if test "x$enable_dependency_tracking" != xno; then
2617 depcc="$CXX" am_compiler_list=
2619 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2620 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2621 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
2622 echo $ECHO_N "(cached) $ECHO_C" >&6
2624 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2625 # We make a subdir and do the tests there. Otherwise we can end up
2626 # making bogus files that we don't know about and never remove. For
2627 # instance it was reported that on HP-UX the gcc test will end up
2628 # making a dummy file named `D' -- because `-MD' means `put the output
2631 # Copy depcomp to subdir because otherwise we won't find it if we're
2632 # using a relative directory.
2633 cp "$am_depcomp" conftest.dir
2636 am_cv_CXX_dependencies_compiler_type=none
2637 if test "$am_compiler_list" = ""; then
2638 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2640 for depmode in $am_compiler_list; do
2641 # We need to recreate these files for each test, as the compiler may
2642 # overwrite some of them when testing with obscure command lines.
2643 # This happens at least with the AIX C compiler.
2644 echo '#include "conftest.h"' > conftest.c
2645 echo 'int i;' > conftest.h
2646 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2650 # after this tag, mechanisms are not by side-effect, so they'll
2651 # only be used when explicitly requested
2652 if test "x$enable_dependency_tracking" = xyes; then
2660 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2661 # mode. It turns out that the SunPro C++ compiler does not properly
2662 # handle `-M -o', and we need to detect this.
2663 if depmode=$depmode \
2664 source=conftest.c object=conftest.o \
2665 depfile=conftest.Po tmpdepfile=conftest.TPo \
2666 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
2667 grep conftest.h conftest.Po > /dev/null 2>&1 &&
2668 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2669 am_cv_CXX_dependencies_compiler_type=$depmode
2677 am_cv_CXX_dependencies_compiler_type=none
2681 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
2682 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
2683 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
2687 ac_cpp='$CPP $CPPFLAGS'
2688 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2689 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2690 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2691 if test -n "$ac_tool_prefix"; then
2692 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2693 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2694 echo "$as_me:$LINENO: checking for $ac_word" >&5
2695 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2696 if test "${ac_cv_prog_CC+set}" = set; then
2697 echo $ECHO_N "(cached) $ECHO_C" >&6
2699 if test -n "$CC"; then
2700 ac_cv_prog_CC="$CC" # Let the user override the test.
2702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2706 test -z "$as_dir" && as_dir=.
2707 for ac_exec_ext in '' $ac_executable_extensions; do
2708 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2709 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2710 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2719 if test -n "$CC"; then
2720 echo "$as_me:$LINENO: result: $CC" >&5
2721 echo "${ECHO_T}$CC" >&6
2723 echo "$as_me:$LINENO: result: no" >&5
2724 echo "${ECHO_T}no" >&6
2728 if test -z "$ac_cv_prog_CC"; then
2730 # Extract the first word of "gcc", so it can be a program name with args.
2731 set dummy gcc; ac_word=$2
2732 echo "$as_me:$LINENO: checking for $ac_word" >&5
2733 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2734 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2735 echo $ECHO_N "(cached) $ECHO_C" >&6
2737 if test -n "$ac_ct_CC"; then
2738 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2744 test -z "$as_dir" && as_dir=.
2745 for ac_exec_ext in '' $ac_executable_extensions; do
2746 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2747 ac_cv_prog_ac_ct_CC="gcc"
2748 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2756 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2757 if test -n "$ac_ct_CC"; then
2758 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2759 echo "${ECHO_T}$ac_ct_CC" >&6
2761 echo "$as_me:$LINENO: result: no" >&5
2762 echo "${ECHO_T}no" >&6
2770 if test -z "$CC"; then
2771 if test -n "$ac_tool_prefix"; then
2772 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2773 set dummy ${ac_tool_prefix}cc; ac_word=$2
2774 echo "$as_me:$LINENO: checking for $ac_word" >&5
2775 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2776 if test "${ac_cv_prog_CC+set}" = set; then
2777 echo $ECHO_N "(cached) $ECHO_C" >&6
2779 if test -n "$CC"; then
2780 ac_cv_prog_CC="$CC" # Let the user override the test.
2782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2786 test -z "$as_dir" && as_dir=.
2787 for ac_exec_ext in '' $ac_executable_extensions; do
2788 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2789 ac_cv_prog_CC="${ac_tool_prefix}cc"
2790 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2799 if test -n "$CC"; then
2800 echo "$as_me:$LINENO: result: $CC" >&5
2801 echo "${ECHO_T}$CC" >&6
2803 echo "$as_me:$LINENO: result: no" >&5
2804 echo "${ECHO_T}no" >&6
2808 if test -z "$ac_cv_prog_CC"; then
2810 # Extract the first word of "cc", so it can be a program name with args.
2811 set dummy cc; ac_word=$2
2812 echo "$as_me:$LINENO: checking for $ac_word" >&5
2813 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2814 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2815 echo $ECHO_N "(cached) $ECHO_C" >&6
2817 if test -n "$ac_ct_CC"; then
2818 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2824 test -z "$as_dir" && as_dir=.
2825 for ac_exec_ext in '' $ac_executable_extensions; do
2826 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2827 ac_cv_prog_ac_ct_CC="cc"
2828 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2836 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2837 if test -n "$ac_ct_CC"; then
2838 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2839 echo "${ECHO_T}$ac_ct_CC" >&6
2841 echo "$as_me:$LINENO: result: no" >&5
2842 echo "${ECHO_T}no" >&6
2851 if test -z "$CC"; then
2852 # Extract the first word of "cc", so it can be a program name with args.
2853 set dummy cc; ac_word=$2
2854 echo "$as_me:$LINENO: checking for $ac_word" >&5
2855 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2856 if test "${ac_cv_prog_CC+set}" = set; then
2857 echo $ECHO_N "(cached) $ECHO_C" >&6
2859 if test -n "$CC"; then
2860 ac_cv_prog_CC="$CC" # Let the user override the test.
2863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2867 test -z "$as_dir" && as_dir=.
2868 for ac_exec_ext in '' $ac_executable_extensions; do
2869 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2870 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2871 ac_prog_rejected=yes
2875 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2881 if test $ac_prog_rejected = yes; then
2882 # We found a bogon in the path, so make sure we never use it.
2883 set dummy $ac_cv_prog_CC
2885 if test $# != 0; then
2886 # We chose a different compiler from the bogus one.
2887 # However, it has the same basename, so the bogon will be chosen
2888 # first if we set CC to just the basename; use the full file name.
2890 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2896 if test -n "$CC"; then
2897 echo "$as_me:$LINENO: result: $CC" >&5
2898 echo "${ECHO_T}$CC" >&6
2900 echo "$as_me:$LINENO: result: no" >&5
2901 echo "${ECHO_T}no" >&6
2905 if test -z "$CC"; then
2906 if test -n "$ac_tool_prefix"; then
2909 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2910 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2911 echo "$as_me:$LINENO: checking for $ac_word" >&5
2912 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2913 if test "${ac_cv_prog_CC+set}" = set; then
2914 echo $ECHO_N "(cached) $ECHO_C" >&6
2916 if test -n "$CC"; then
2917 ac_cv_prog_CC="$CC" # Let the user override the test.
2919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2923 test -z "$as_dir" && as_dir=.
2924 for ac_exec_ext in '' $ac_executable_extensions; do
2925 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2926 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2927 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2936 if test -n "$CC"; then
2937 echo "$as_me:$LINENO: result: $CC" >&5
2938 echo "${ECHO_T}$CC" >&6
2940 echo "$as_me:$LINENO: result: no" >&5
2941 echo "${ECHO_T}no" >&6
2944 test -n "$CC" && break
2947 if test -z "$CC"; then
2951 # Extract the first word of "$ac_prog", so it can be a program name with args.
2952 set dummy $ac_prog; ac_word=$2
2953 echo "$as_me:$LINENO: checking for $ac_word" >&5
2954 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2955 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2956 echo $ECHO_N "(cached) $ECHO_C" >&6
2958 if test -n "$ac_ct_CC"; then
2959 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2965 test -z "$as_dir" && as_dir=.
2966 for ac_exec_ext in '' $ac_executable_extensions; do
2967 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2968 ac_cv_prog_ac_ct_CC="$ac_prog"
2969 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2977 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2978 if test -n "$ac_ct_CC"; then
2979 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2980 echo "${ECHO_T}$ac_ct_CC" >&6
2982 echo "$as_me:$LINENO: result: no" >&5
2983 echo "${ECHO_T}no" >&6
2986 test -n "$ac_ct_CC" && break
2995 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2996 See \`config.log' for more details." >&5
2997 echo "$as_me: error: no acceptable C compiler found in \$PATH
2998 See \`config.log' for more details." >&2;}
2999 { (exit 1); exit 1; }; }
3001 # Provide some information about the compiler.
3002 echo "$as_me:$LINENO:" \
3003 "checking for C compiler version" >&5
3004 ac_compiler=`set X $ac_compile; echo $2`
3005 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3006 (eval $ac_compiler --version </dev/null >&5) 2>&5
3008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3009 (exit $ac_status); }
3010 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3011 (eval $ac_compiler -v </dev/null >&5) 2>&5
3013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3014 (exit $ac_status); }
3015 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3016 (eval $ac_compiler -V </dev/null >&5) 2>&5
3018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3019 (exit $ac_status); }
3021 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3022 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3023 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3024 echo $ECHO_N "(cached) $ECHO_C" >&6
3026 cat >conftest.$ac_ext <<_ACEOF
3027 #line $LINENO "configure"
3030 cat confdefs.h >>conftest.$ac_ext
3031 cat >>conftest.$ac_ext <<_ACEOF
3032 /* end confdefs.h. */
3045 rm -f conftest.$ac_objext
3046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3047 (eval $ac_compile) 2>&5
3049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050 (exit $ac_status); } &&
3051 { ac_try='test -s conftest.$ac_objext'
3052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3056 (exit $ac_status); }; }; then
3059 echo "$as_me: failed program was:" >&5
3060 sed 's/^/| /' conftest.$ac_ext >&5
3064 rm -f conftest.$ac_objext conftest.$ac_ext
3065 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3068 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3069 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3070 GCC=`test $ac_compiler_gnu = yes && echo yes`
3071 ac_test_CFLAGS=${CFLAGS+set}
3072 ac_save_CFLAGS=$CFLAGS
3074 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3075 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3076 if test "${ac_cv_prog_cc_g+set}" = set; then
3077 echo $ECHO_N "(cached) $ECHO_C" >&6
3079 cat >conftest.$ac_ext <<_ACEOF
3080 #line $LINENO "configure"
3083 cat confdefs.h >>conftest.$ac_ext
3084 cat >>conftest.$ac_ext <<_ACEOF
3085 /* end confdefs.h. */
3095 rm -f conftest.$ac_objext
3096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3097 (eval $ac_compile) 2>&5
3099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3100 (exit $ac_status); } &&
3101 { ac_try='test -s conftest.$ac_objext'
3102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3106 (exit $ac_status); }; }; then
3109 echo "$as_me: failed program was:" >&5
3110 sed 's/^/| /' conftest.$ac_ext >&5
3114 rm -f conftest.$ac_objext conftest.$ac_ext
3116 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3117 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3118 if test "$ac_test_CFLAGS" = set; then
3119 CFLAGS=$ac_save_CFLAGS
3120 elif test $ac_cv_prog_cc_g = yes; then
3121 if test "$GCC" = yes; then
3127 if test "$GCC" = yes; then
3133 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3134 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3135 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3136 echo $ECHO_N "(cached) $ECHO_C" >&6
3138 ac_cv_prog_cc_stdc=no
3140 cat >conftest.$ac_ext <<_ACEOF
3141 #line $LINENO "configure"
3144 cat confdefs.h >>conftest.$ac_ext
3145 cat >>conftest.$ac_ext <<_ACEOF
3146 /* end confdefs.h. */
3149 #include <sys/types.h>
3150 #include <sys/stat.h>
3151 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3152 struct buf { int x; };
3153 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3154 static char *e (p, i)
3160 static char *f (char * (*g) (char **, int), char **p, ...)
3165 s = g (p, va_arg (v,int));
3169 int test (int i, double x);
3170 struct s1 {int (*f) (int a);};
3171 struct s2 {int (*f) (double a);};
3172 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3178 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3183 # Don't try gcc -ansi; that turns off useful extensions and
3184 # breaks some systems' header files.
3185 # AIX -qlanglvl=ansi
3186 # Ultrix and OSF/1 -std1
3187 # HP-UX 10.20 and later -Ae
3188 # HP-UX older versions -Aa -D_HPUX_SOURCE
3189 # SVR4 -Xc -D__EXTENSIONS__
3190 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3192 CC="$ac_save_CC $ac_arg"
3193 rm -f conftest.$ac_objext
3194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3195 (eval $ac_compile) 2>&5
3197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3198 (exit $ac_status); } &&
3199 { ac_try='test -s conftest.$ac_objext'
3200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3204 (exit $ac_status); }; }; then
3205 ac_cv_prog_cc_stdc=$ac_arg
3208 echo "$as_me: failed program was:" >&5
3209 sed 's/^/| /' conftest.$ac_ext >&5
3212 rm -f conftest.$ac_objext
3214 rm -f conftest.$ac_ext conftest.$ac_objext
3219 case "x$ac_cv_prog_cc_stdc" in
3221 echo "$as_me:$LINENO: result: none needed" >&5
3222 echo "${ECHO_T}none needed" >&6 ;;
3224 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3225 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3226 CC="$CC $ac_cv_prog_cc_stdc" ;;
3229 # Some people use a C++ compiler to compile C. Since we use `exit',
3230 # in C++ we need to declare it. In case someone uses the same compiler
3231 # for both compiling C and C++ we need to have the C++ compiler decide
3232 # the declaration of exit, since it's the most demanding environment.
3233 cat >conftest.$ac_ext <<_ACEOF
3238 rm -f conftest.$ac_objext
3239 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3240 (eval $ac_compile) 2>&5
3242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3243 (exit $ac_status); } &&
3244 { ac_try='test -s conftest.$ac_objext'
3245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3249 (exit $ac_status); }; }; then
3250 for ac_declaration in \
3252 '#include <stdlib.h>' \
3253 'extern "C" void std::exit (int) throw (); using std::exit;' \
3254 'extern "C" void std::exit (int); using std::exit;' \
3255 'extern "C" void exit (int) throw ();' \
3256 'extern "C" void exit (int);' \
3259 cat >conftest.$ac_ext <<_ACEOF
3260 #line $LINENO "configure"
3263 cat confdefs.h >>conftest.$ac_ext
3264 cat >>conftest.$ac_ext <<_ACEOF
3265 /* end confdefs.h. */
3276 rm -f conftest.$ac_objext
3277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3278 (eval $ac_compile) 2>&5
3280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3281 (exit $ac_status); } &&
3282 { ac_try='test -s conftest.$ac_objext'
3283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3287 (exit $ac_status); }; }; then
3290 echo "$as_me: failed program was:" >&5
3291 sed 's/^/| /' conftest.$ac_ext >&5
3295 rm -f conftest.$ac_objext conftest.$ac_ext
3296 cat >conftest.$ac_ext <<_ACEOF
3297 #line $LINENO "configure"
3300 cat confdefs.h >>conftest.$ac_ext
3301 cat >>conftest.$ac_ext <<_ACEOF
3302 /* end confdefs.h. */
3312 rm -f conftest.$ac_objext
3313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3314 (eval $ac_compile) 2>&5
3316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3317 (exit $ac_status); } &&
3318 { ac_try='test -s conftest.$ac_objext'
3319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3323 (exit $ac_status); }; }; then
3326 echo "$as_me: failed program was:" >&5
3327 sed 's/^/| /' conftest.$ac_ext >&5
3330 rm -f conftest.$ac_objext conftest.$ac_ext
3333 if test -n "$ac_declaration"; then
3334 echo '#ifdef __cplusplus' >>confdefs.h
3335 echo $ac_declaration >>confdefs.h
3336 echo '#endif' >>confdefs.h
3340 echo "$as_me: failed program was:" >&5
3341 sed 's/^/| /' conftest.$ac_ext >&5
3344 rm -f conftest.$ac_objext conftest.$ac_ext
3346 ac_cpp='$CPP $CPPFLAGS'
3347 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3348 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3349 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3351 depcc="$CC" am_compiler_list=
3353 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3354 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3355 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3356 echo $ECHO_N "(cached) $ECHO_C" >&6
3358 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3359 # We make a subdir and do the tests there. Otherwise we can end up
3360 # making bogus files that we don't know about and never remove. For
3361 # instance it was reported that on HP-UX the gcc test will end up
3362 # making a dummy file named `D' -- because `-MD' means `put the output
3365 # Copy depcomp to subdir because otherwise we won't find it if we're
3366 # using a relative directory.
3367 cp "$am_depcomp" conftest.dir
3370 am_cv_CC_dependencies_compiler_type=none
3371 if test "$am_compiler_list" = ""; then
3372 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3374 for depmode in $am_compiler_list; do
3375 # We need to recreate these files for each test, as the compiler may
3376 # overwrite some of them when testing with obscure command lines.
3377 # This happens at least with the AIX C compiler.
3378 echo '#include "conftest.h"' > conftest.c
3379 echo 'int i;' > conftest.h
3380 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
3384 # after this tag, mechanisms are not by side-effect, so they'll
3385 # only be used when explicitly requested
3386 if test "x$enable_dependency_tracking" = xyes; then
3394 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3395 # mode. It turns out that the SunPro C++ compiler does not properly
3396 # handle `-M -o', and we need to detect this.
3397 if depmode=$depmode \
3398 source=conftest.c object=conftest.o \
3399 depfile=conftest.Po tmpdepfile=conftest.TPo \
3400 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
3401 grep conftest.h conftest.Po > /dev/null 2>&1 &&
3402 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3403 am_cv_CC_dependencies_compiler_type=$depmode
3411 am_cv_CC_dependencies_compiler_type=none
3415 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3416 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3417 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3420 # Find a good install program. We prefer a C program (faster),
3421 # so one script is as good as another. But avoid the broken or
3422 # incompatible versions:
3423 # SysV /etc/install, /usr/sbin/install
3424 # SunOS /usr/etc/install
3425 # IRIX /sbin/install
3427 # AmigaOS /C/install, which installs bootblocks on floppy discs
3428 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3429 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3430 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3431 # ./install, which can be erroneously created by make from ./install.sh.
3432 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3433 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3434 if test -z "$INSTALL"; then
3435 if test "${ac_cv_path_install+set}" = set; then
3436 echo $ECHO_N "(cached) $ECHO_C" >&6
3438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3442 test -z "$as_dir" && as_dir=.
3443 # Account for people who put trailing slashes in PATH elements.
3445 ./ | .// | /cC/* | \
3446 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3449 # OSF1 and SCO ODT 3.0 have their own names for install.
3450 # Don't use installbsd from OSF since it installs stuff as root
3452 for ac_prog in ginstall scoinst install; do
3453 for ac_exec_ext in '' $ac_executable_extensions; do
3454 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3455 if test $ac_prog = install &&
3456 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3457 # AIX install. It has an incompatible calling convention.
3459 elif test $ac_prog = install &&
3460 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3461 # program-specific install script used by HP pwplus--don't use.
3464 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3476 if test "${ac_cv_path_install+set}" = set; then
3477 INSTALL=$ac_cv_path_install
3479 # As a last resort, use the slow shell script. We don't cache a
3480 # path for INSTALL within a source directory, because that will
3481 # break other packages using the cache if that directory is
3482 # removed, or if the path is relative.
3483 INSTALL=$ac_install_sh
3486 echo "$as_me:$LINENO: result: $INSTALL" >&5
3487 echo "${ECHO_T}$INSTALL" >&6
3489 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3490 # It thinks the first close brace ends the variable substitution.
3491 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3493 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3495 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3497 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3498 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3500 if test "$LN_S" = "ln -s"; then
3501 echo "$as_me:$LINENO: result: yes" >&5
3502 echo "${ECHO_T}yes" >&6
3504 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3505 echo "${ECHO_T}no, using $LN_S" >&6
3508 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3509 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3510 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
3511 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3512 echo $ECHO_N "(cached) $ECHO_C" >&6
3514 cat >conftest.make <<\_ACEOF
3516 @echo 'ac_maketemp="$(MAKE)"'
3518 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3519 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3520 if test -n "$ac_maketemp"; then
3521 eval ac_cv_prog_make_${ac_make}_set=yes
3523 eval ac_cv_prog_make_${ac_make}_set=no
3527 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3528 echo "$as_me:$LINENO: result: yes" >&5
3529 echo "${ECHO_T}yes" >&6
3532 echo "$as_me:$LINENO: result: no" >&5
3533 echo "${ECHO_T}no" >&6
3534 SET_MAKE="MAKE=${MAKE-make}"
3537 if test -n "$ac_tool_prefix"; then
3538 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3539 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3540 echo "$as_me:$LINENO: checking for $ac_word" >&5
3541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3542 if test "${ac_cv_prog_RANLIB+set}" = set; then
3543 echo $ECHO_N "(cached) $ECHO_C" >&6
3545 if test -n "$RANLIB"; then
3546 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3552 test -z "$as_dir" && as_dir=.
3553 for ac_exec_ext in '' $ac_executable_extensions; do
3554 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3555 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3556 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3564 RANLIB=$ac_cv_prog_RANLIB
3565 if test -n "$RANLIB"; then
3566 echo "$as_me:$LINENO: result: $RANLIB" >&5
3567 echo "${ECHO_T}$RANLIB" >&6
3569 echo "$as_me:$LINENO: result: no" >&5
3570 echo "${ECHO_T}no" >&6
3574 if test -z "$ac_cv_prog_RANLIB"; then
3575 ac_ct_RANLIB=$RANLIB
3576 # Extract the first word of "ranlib", so it can be a program name with args.
3577 set dummy ranlib; ac_word=$2
3578 echo "$as_me:$LINENO: checking for $ac_word" >&5
3579 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3580 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3581 echo $ECHO_N "(cached) $ECHO_C" >&6
3583 if test -n "$ac_ct_RANLIB"; then
3584 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3590 test -z "$as_dir" && as_dir=.
3591 for ac_exec_ext in '' $ac_executable_extensions; do
3592 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3593 ac_cv_prog_ac_ct_RANLIB="ranlib"
3594 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3600 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3603 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3604 if test -n "$ac_ct_RANLIB"; then
3605 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3606 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3608 echo "$as_me:$LINENO: result: no" >&5
3609 echo "${ECHO_T}no" >&6
3612 RANLIB=$ac_ct_RANLIB
3614 RANLIB="$ac_cv_prog_RANLIB"
3618 # create a working libtool-script
3619 if test -z "$LIBTOOL"; then
3621 ac_cpp='$CPP $CPPFLAGS'
3622 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3623 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3624 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3626 # Check whether --enable-shared or --disable-shared was given.
3627 if test "${enable_shared+set}" = set; then
3628 enableval="$enable_shared"
3629 p=${PACKAGE-default}
3631 yes) enable_shared=yes ;;
3632 no) enable_shared=no ;;
3635 # Look at the argument we got. We use all the common list separators.
3636 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3637 for pkg in $enableval; do
3638 if test "X$pkg" = "X$p"; then
3648 # Check whether --enable-static or --disable-static was given.
3649 if test "${enable_static+set}" = set; then
3650 enableval="$enable_static"
3651 p=${PACKAGE-default}
3653 yes) enable_static=yes ;;
3654 no) enable_static=no ;;
3657 # Look at the argument we got. We use all the common list separators.
3658 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3659 for pkg in $enableval; do
3660 if test "X$pkg" = "X$p"; then
3670 # Check whether --enable-fast-install or --disable-fast-install was given.
3671 if test "${enable_fast_install+set}" = set; then
3672 enableval="$enable_fast_install"
3673 p=${PACKAGE-default}
3675 yes) enable_fast_install=yes ;;
3676 no) enable_fast_install=no ;;
3678 enable_fast_install=no
3679 # Look at the argument we got. We use all the common list separators.
3680 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3681 for pkg in $enableval; do
3682 if test "X$pkg" = "X$p"; then
3683 enable_fast_install=yes
3690 enable_fast_install=yes
3692 # Find the correct PATH separator. Usually this is `:', but
3693 # DJGPP uses `;' like DOS.
3694 if test "X${PATH_SEPARATOR+set}" != Xset; then
3695 UNAME=${UNAME-`uname 2>/dev/null`}
3697 *-DOS) lt_cv_sys_path_separator=';' ;;
3698 *) lt_cv_sys_path_separator=':' ;;
3700 PATH_SEPARATOR=$lt_cv_sys_path_separator
3704 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3705 if test "${with_gnu_ld+set}" = set; then
3706 withval="$with_gnu_ld"
3707 test "$withval" = no || with_gnu_ld=yes
3712 if test "$GCC" = yes; then
3713 # Check if gcc -print-prog-name=ld gives a path.
3714 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3715 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3718 # gcc leaves a trailing carriage return which upsets mingw
3719 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3721 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3724 # Accept absolute paths.
3725 [\\/]* | [A-Za-z]:[\\/]*)
3726 re_direlt='/[^/][^/]*/\.\./'
3727 # Canonicalize the path of ld
3728 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3729 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3730 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3732 test -z "$LD" && LD="$ac_prog"
3735 # If it fails, then pretend we aren't using GCC.
3739 # If it is relative, then search for the first ld in PATH.
3743 elif test "$with_gnu_ld" = yes; then
3744 echo "$as_me:$LINENO: checking for GNU ld" >&5
3745 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3747 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3748 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3750 if test "${lt_cv_path_LD+set}" = set; then
3751 echo $ECHO_N "(cached) $ECHO_C" >&6
3753 if test -z "$LD"; then
3754 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3755 for ac_dir in $PATH; do
3756 test -z "$ac_dir" && ac_dir=.
3757 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3758 lt_cv_path_LD="$ac_dir/$ac_prog"
3759 # Check to see if the program is GNU ld. I'd rather use --version,
3760 # but apparently some GNU ld's only accept -v.
3761 # Break only if it was the GNU/non-GNU ld that we prefer.
3762 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3763 test "$with_gnu_ld" != no && break
3765 test "$with_gnu_ld" != yes && break
3771 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3776 if test -n "$LD"; then
3777 echo "$as_me:$LINENO: result: $LD" >&5
3778 echo "${ECHO_T}$LD" >&6
3780 echo "$as_me:$LINENO: result: no" >&5
3781 echo "${ECHO_T}no" >&6
3783 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3784 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3785 { (exit 1); exit 1; }; }
3786 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3787 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3788 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3789 echo $ECHO_N "(cached) $ECHO_C" >&6
3791 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3792 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3793 lt_cv_prog_gnu_ld=yes
3795 lt_cv_prog_gnu_ld=no
3798 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3799 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3800 with_gnu_ld=$lt_cv_prog_gnu_ld
3803 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3804 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3805 if test "${lt_cv_ld_reload_flag+set}" = set; then
3806 echo $ECHO_N "(cached) $ECHO_C" >&6
3808 lt_cv_ld_reload_flag='-r'
3810 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3811 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3812 reload_flag=$lt_cv_ld_reload_flag
3813 test -n "$reload_flag" && reload_flag=" $reload_flag"
3815 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3816 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3817 if test "${lt_cv_path_NM+set}" = set; then
3818 echo $ECHO_N "(cached) $ECHO_C" >&6
3820 if test -n "$NM"; then
3821 # Let the user override the test.
3824 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3825 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3826 test -z "$ac_dir" && ac_dir=.
3827 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3828 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3829 # Check to see if the nm accepts a BSD-compat flag.
3830 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3831 # nm: unknown option "B" ignored
3832 # Tru64's nm complains that /dev/null is an invalid object file
3833 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3834 lt_cv_path_NM="$tmp_nm -B"
3836 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3837 lt_cv_path_NM="$tmp_nm -p"
3840 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3841 continue # so that we can try to find one that supports BSD flags
3846 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3851 echo "$as_me:$LINENO: result: $NM" >&5
3852 echo "${ECHO_T}$NM" >&6
3854 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3855 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3856 if test "${lt_cv_path_SED+set}" = set; then
3857 echo $ECHO_N "(cached) $ECHO_C" >&6
3859 # Loop through the user's path and test for sed and gsed.
3860 # Then use that list of sed's as ones to test for truncation.
3861 as_executable_p="test -f"
3862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3866 test -z "$as_dir" && as_dir=.
3867 for ac_prog in sed gsed; do
3868 for ac_exec_ext in '' $ac_executable_extensions; do
3869 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3870 _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
3876 # Create a temporary directory, and hook for its removal unless debugging.
3879 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3880 trap '{ (exit 1); exit 1; }' 1 2 13 15
3883 # Create a (secure) tmp directory for tmp files.
3886 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
3887 test -n "$tmp" && test -d "$tmp"
3890 tmp=$TMPDIR/sed$$-$RANDOM
3891 (umask 077 && mkdir $tmp)
3894 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
3895 { (exit 1); exit 1; }
3899 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3900 # along with /bin/sed that truncates output.
3901 for _sed in $_sed_list /usr/xpg4/bin/sed; do
3902 test ! -f ${_sed} && break
3903 cat /dev/null > "$tmp/sed.in"
3905 echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
3906 # Check for GNU sed and select it if it is found.
3907 if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
3908 lt_cv_path_SED=${_sed}
3912 cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
3913 mv "$tmp/sed.tmp" "$tmp/sed.in"
3914 cp "$tmp/sed.in" "$tmp/sed.nl"
3915 echo >>"$tmp/sed.nl"
3916 ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
3917 cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
3918 # 40000 chars as input seems more than enough
3919 test $_count -gt 10 && break
3920 _count=`expr $_count + 1`
3921 if test $_count -gt $_max; then
3923 lt_cv_path_SED=$_sed
3931 if test "X$SED" != "X"; then
3936 echo "$as_me:$LINENO: result: $SED" >&5
3937 echo "${ECHO_T}$SED" >&6
3939 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3940 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3941 if test "${lt_cv_deplibs_check_method+set}" = set; then
3942 echo $ECHO_N "(cached) $ECHO_C" >&6
3944 lt_cv_file_magic_cmd='$MAGIC_CMD'
3945 lt_cv_file_magic_test_file=
3946 lt_cv_deplibs_check_method='unknown'
3947 # Need to set the preceding variable on all platforms that support
3948 # interlibrary dependencies.
3949 # 'none' -- dependencies not supported.
3950 # `unknown' -- same as none, but documents that we really don't know.
3951 # 'pass_all' -- all dependencies passed with no checks.
3952 # 'test_compile' -- check by making test program.
3953 # 'file_magic [[regex]]' -- check by looking for files in library path
3954 # which responds to the $file_magic_cmd with a given egrep regex.
3955 # If you have `file' or equivalent on your system and you're not sure
3956 # whether `pass_all' will *always* work, you probably want this one.
3960 lt_cv_deplibs_check_method=pass_all
3964 lt_cv_deplibs_check_method=pass_all
3968 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3969 lt_cv_file_magic_cmd='/usr/bin/file -L'
3970 lt_cv_file_magic_test_file=/shlib/libc.so
3973 cygwin* | mingw* | pw32*)
3974 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3975 lt_cv_file_magic_cmd='$OBJDUMP -f'
3978 darwin* | rhapsody*)
3979 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3980 lt_cv_file_magic_cmd='/usr/bin/file -L'
3982 rhapsody* | darwin1.[012])
3983 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3986 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3992 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3995 # Not sure whether the presence of OpenBSD here was a mistake.
3996 # Let's accept both of them until this is cleared up.
3997 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3998 lt_cv_file_magic_cmd=/usr/bin/file
3999 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4003 lt_cv_deplibs_check_method=pass_all
4008 lt_cv_deplibs_check_method=pass_all
4012 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4013 lt_cv_file_magic_cmd=/usr/bin/file
4014 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4017 irix5* | irix6* | nonstopux*)
4019 irix5* | nonstopux*)
4020 # this will be overridden with pass_all, but let us keep it just in case
4021 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4025 *-32|*"-32 ") libmagic=32-bit;;
4026 *-n32|*"-n32 ") libmagic=N32;;
4027 *-64|*"-64 ") libmagic=64-bit;;
4028 *) libmagic=never-match;;
4030 # this will be overridden with pass_all, but let us keep it just in case
4031 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4034 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4035 lt_cv_deplibs_check_method=pass_all
4038 # This must be Linux ELF.
4041 alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64* | s390* | x86_64*)
4042 lt_cv_deplibs_check_method=pass_all ;;
4044 # glibc up to 2.1.1 does not perform some relocations on ARM
4045 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4047 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4051 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4052 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
4054 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
4059 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4060 lt_cv_file_magic_cmd=/usr/bin/file
4061 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4065 lt_cv_file_magic_cmd=/usr/bin/file
4066 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4067 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4068 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4070 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4074 osf3* | osf4* | osf5*)
4075 # this will be overridden with pass_all, but let us keep it just in case
4076 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4077 lt_cv_file_magic_test_file=/shlib/libc.so
4078 lt_cv_deplibs_check_method=pass_all
4082 lt_cv_deplibs_check_method=pass_all
4086 lt_cv_deplibs_check_method=pass_all
4087 lt_cv_file_magic_test_file=/lib/libc.so
4090 sysv5uw[78]* | sysv4*uw2*)
4091 lt_cv_deplibs_check_method=pass_all
4094 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4095 case $host_vendor in
4097 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]'
4098 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4101 lt_cv_deplibs_check_method=pass_all
4104 lt_cv_file_magic_cmd='/bin/file'
4105 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4108 lt_cv_file_magic_cmd='/bin/file'
4109 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4110 lt_cv_file_magic_test_file=/lib/libc.so
4113 lt_cv_deplibs_check_method=pass_all
4120 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4121 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4122 file_magic_cmd=$lt_cv_file_magic_cmd
4123 deplibs_check_method=$lt_cv_deplibs_check_method
4132 # Check for command to grab the raw symbol name followed by C symbol from nm.
4133 echo "$as_me:$LINENO: checking command to parse $NM output" >&5
4134 echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
4135 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4136 echo $ECHO_N "(cached) $ECHO_C" >&6
4139 # These are sane defaults that work on at least a few old systems.
4140 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
4142 # Character class describing NM global symbol codes.
4143 symcode='[BCDEGRST]'
4145 # Regexp to match symbols that can be accessed directly from C.
4146 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4148 # Transform the above into a raw symbol and a C symbol.
4149 symxfrm='\1 \2\3 \3'
4151 # Transform an extracted symbol line into a proper C declaration
4152 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
4154 # Transform an extracted symbol line into symbol name and symbol address
4155 lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
4157 # Define system-specific variables.
4162 cygwin* | mingw* | pw32*)
4163 symcode='[ABCDGISTW]'
4165 hpux*) # Its linker distinguishes data from code symbols
4166 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4167 lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
4170 symcode='[BCDEGRST]'
4173 symcode='[BCDEGQRST]'
4183 # Handle CRLF in mingw tool chain
4187 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4191 # If we're using GNU nm, then use its standard symbol codes.
4192 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
4193 symcode='[ABCDGISTW]'
4196 # Try without a prefix undercore, then with it.
4197 for ac_symprfx in "" "_"; do
4199 # Write the raw and C identifiers.
4200 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
4202 # Check to see that the pipe works correctly.
4205 cat > conftest.$ac_ext <<EOF
4210 void nm_test_func(){}
4214 int main(){nm_test_var='a';nm_test_func();return(0);}
4217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4218 (eval $ac_compile) 2>&5
4220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4221 (exit $ac_status); }; then
4222 # Now try to grab the symbols.
4224 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4225 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4228 (exit $ac_status); } && test -s "$nlist"; then
4229 # Try sorting and uniquifying the output.
4230 if sort "$nlist" | uniq > "$nlist"T; then
4231 mv -f "$nlist"T "$nlist"
4236 # Make sure that we snagged all the symbols we need.
4237 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
4238 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
4239 cat <<EOF > conftest.$ac_ext
4245 # Now generate the symbol file.
4246 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
4248 cat <<EOF >> conftest.$ac_ext
4249 #if defined (__STDC__) && __STDC__
4250 # define lt_ptr void *
4252 # define lt_ptr char *
4256 /* The mapping between symbol names and symbols. */
4261 lt_preloaded_symbols[] =
4264 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
4265 cat <<\EOF >> conftest.$ac_ext
4273 # Now try linking the two files.
4274 mv conftest.$ac_objext conftstm.$ac_objext
4276 save_CFLAGS="$CFLAGS"
4277 LIBS="conftstm.$ac_objext"
4278 CFLAGS="$CFLAGS$no_builtin_flag"
4279 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4280 (eval $ac_link) 2>&5
4282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4283 (exit $ac_status); } && test -s conftest$ac_exeext; then
4287 CFLAGS="$save_CFLAGS"
4289 echo "cannot find nm_test_func in $nlist" >&5
4292 echo "cannot find nm_test_var in $nlist" >&5
4295 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4298 echo "$progname: failed program was:" >&5
4299 cat conftest.$ac_ext >&5
4301 rm -f conftest* conftst*
4303 # Do not use the global_symbol_pipe unless it works.
4304 if test "$pipe_works" = yes; then
4307 lt_cv_sys_global_symbol_pipe=
4313 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
4314 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4315 global_symbol_to_cdecl=
4316 global_symbol_to_c_name_address=
4318 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
4319 global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
4321 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
4323 echo "$as_me:$LINENO: result: failed" >&5
4324 echo "${ECHO_T}failed" >&6
4326 echo "$as_me:$LINENO: result: ok" >&5
4327 echo "${ECHO_T}ok" >&6
4331 ac_cpp='$CPP $CPPFLAGS'
4332 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4333 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4334 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4335 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4336 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4337 # On Suns, sometimes $CPP names a directory.
4338 if test -n "$CPP" && test -d "$CPP"; then
4341 if test -z "$CPP"; then
4342 if test "${ac_cv_prog_CPP+set}" = set; then
4343 echo $ECHO_N "(cached) $ECHO_C" >&6
4345 # Double quotes because CPP needs to be expanded
4346 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4349 for ac_c_preproc_warn_flag in '' yes
4351 # Use a header file that comes with gcc, so configuring glibc
4352 # with a fresh cross-compiler works.
4353 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4354 # <limits.h> exists even on freestanding compilers.
4355 # On the NeXT, cc -E runs the code through the compiler's parser,
4356 # not just through cpp. "Syntax error" is here to catch this case.
4357 cat >conftest.$ac_ext <<_ACEOF
4358 #line $LINENO "configure"
4361 cat confdefs.h >>conftest.$ac_ext
4362 cat >>conftest.$ac_ext <<_ACEOF
4363 /* end confdefs.h. */
4365 # include <limits.h>
4367 # include <assert.h>
4371 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4372 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4374 grep -v '^ *+' conftest.er1 >conftest.err
4376 cat conftest.err >&5
4377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4378 (exit $ac_status); } >/dev/null; then
4379 if test -s conftest.err; then
4380 ac_cpp_err=$ac_c_preproc_warn_flag
4387 if test -z "$ac_cpp_err"; then
4390 echo "$as_me: failed program was:" >&5
4391 sed 's/^/| /' conftest.$ac_ext >&5
4393 # Broken: fails on valid input.
4396 rm -f conftest.err conftest.$ac_ext
4398 # OK, works on sane cases. Now check whether non-existent headers
4399 # can be detected and how.
4400 cat >conftest.$ac_ext <<_ACEOF
4401 #line $LINENO "configure"
4404 cat confdefs.h >>conftest.$ac_ext
4405 cat >>conftest.$ac_ext <<_ACEOF
4406 /* end confdefs.h. */
4407 #include <ac_nonexistent.h>
4409 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4410 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4412 grep -v '^ *+' conftest.er1 >conftest.err
4414 cat conftest.err >&5
4415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4416 (exit $ac_status); } >/dev/null; then
4417 if test -s conftest.err; then
4418 ac_cpp_err=$ac_c_preproc_warn_flag
4425 if test -z "$ac_cpp_err"; then
4426 # Broken: success on invalid input.
4429 echo "$as_me: failed program was:" >&5
4430 sed 's/^/| /' conftest.$ac_ext >&5
4432 # Passes both tests.
4436 rm -f conftest.err conftest.$ac_ext
4439 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4440 rm -f conftest.err conftest.$ac_ext
4441 if $ac_preproc_ok; then
4453 echo "$as_me:$LINENO: result: $CPP" >&5
4454 echo "${ECHO_T}$CPP" >&6
4456 for ac_c_preproc_warn_flag in '' yes
4458 # Use a header file that comes with gcc, so configuring glibc
4459 # with a fresh cross-compiler works.
4460 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4461 # <limits.h> exists even on freestanding compilers.
4462 # On the NeXT, cc -E runs the code through the compiler's parser,
4463 # not just through cpp. "Syntax error" is here to catch this case.
4464 cat >conftest.$ac_ext <<_ACEOF
4465 #line $LINENO "configure"
4468 cat confdefs.h >>conftest.$ac_ext
4469 cat >>conftest.$ac_ext <<_ACEOF
4470 /* end confdefs.h. */
4472 # include <limits.h>
4474 # include <assert.h>
4478 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4479 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4481 grep -v '^ *+' conftest.er1 >conftest.err
4483 cat conftest.err >&5
4484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4485 (exit $ac_status); } >/dev/null; then
4486 if test -s conftest.err; then
4487 ac_cpp_err=$ac_c_preproc_warn_flag
4494 if test -z "$ac_cpp_err"; then
4497 echo "$as_me: failed program was:" >&5
4498 sed 's/^/| /' conftest.$ac_ext >&5
4500 # Broken: fails on valid input.
4503 rm -f conftest.err conftest.$ac_ext
4505 # OK, works on sane cases. Now check whether non-existent headers
4506 # can be detected and how.
4507 cat >conftest.$ac_ext <<_ACEOF
4508 #line $LINENO "configure"
4511 cat confdefs.h >>conftest.$ac_ext
4512 cat >>conftest.$ac_ext <<_ACEOF
4513 /* end confdefs.h. */
4514 #include <ac_nonexistent.h>
4516 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4517 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4519 grep -v '^ *+' conftest.er1 >conftest.err
4521 cat conftest.err >&5
4522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4523 (exit $ac_status); } >/dev/null; then
4524 if test -s conftest.err; then
4525 ac_cpp_err=$ac_c_preproc_warn_flag
4532 if test -z "$ac_cpp_err"; then
4533 # Broken: success on invalid input.
4536 echo "$as_me: failed program was:" >&5
4537 sed 's/^/| /' conftest.$ac_ext >&5
4539 # Passes both tests.
4543 rm -f conftest.err conftest.$ac_ext
4546 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4547 rm -f conftest.err conftest.$ac_ext
4548 if $ac_preproc_ok; then
4551 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4552 See \`config.log' for more details." >&5
4553 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4554 See \`config.log' for more details." >&2;}
4555 { (exit 1); exit 1; }; }
4559 ac_cpp='$CPP $CPPFLAGS'
4560 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4561 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4562 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4565 echo "$as_me:$LINENO: checking for egrep" >&5
4566 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4567 if test "${ac_cv_prog_egrep+set}" = set; then
4568 echo $ECHO_N "(cached) $ECHO_C" >&6
4570 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4571 then ac_cv_prog_egrep='grep -E'
4572 else ac_cv_prog_egrep='egrep'
4575 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4576 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4577 EGREP=$ac_cv_prog_egrep
4580 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4581 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4582 if test "${ac_cv_header_stdc+set}" = set; then
4583 echo $ECHO_N "(cached) $ECHO_C" >&6
4585 cat >conftest.$ac_ext <<_ACEOF
4586 #line $LINENO "configure"
4589 cat confdefs.h >>conftest.$ac_ext
4590 cat >>conftest.$ac_ext <<_ACEOF
4591 /* end confdefs.h. */
4605 rm -f conftest.$ac_objext
4606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4607 (eval $ac_compile) 2>&5
4609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4610 (exit $ac_status); } &&
4611 { ac_try='test -s conftest.$ac_objext'
4612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4616 (exit $ac_status); }; }; then
4617 ac_cv_header_stdc=yes
4619 echo "$as_me: failed program was:" >&5
4620 sed 's/^/| /' conftest.$ac_ext >&5
4622 ac_cv_header_stdc=no
4624 rm -f conftest.$ac_objext conftest.$ac_ext
4626 if test $ac_cv_header_stdc = yes; then
4627 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4628 cat >conftest.$ac_ext <<_ACEOF
4629 #line $LINENO "configure"
4632 cat confdefs.h >>conftest.$ac_ext
4633 cat >>conftest.$ac_ext <<_ACEOF
4634 /* end confdefs.h. */
4638 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4639 $EGREP "memchr" >/dev/null 2>&1; then
4642 ac_cv_header_stdc=no
4648 if test $ac_cv_header_stdc = yes; then
4649 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4650 cat >conftest.$ac_ext <<_ACEOF
4651 #line $LINENO "configure"
4654 cat confdefs.h >>conftest.$ac_ext
4655 cat >>conftest.$ac_ext <<_ACEOF
4656 /* end confdefs.h. */
4660 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4661 $EGREP "free" >/dev/null 2>&1; then
4664 ac_cv_header_stdc=no
4670 if test $ac_cv_header_stdc = yes; then
4671 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4672 if test "$cross_compiling" = yes; then
4675 cat >conftest.$ac_ext <<_ACEOF
4676 #line $LINENO "configure"
4679 cat confdefs.h >>conftest.$ac_ext
4680 cat >>conftest.$ac_ext <<_ACEOF
4681 /* end confdefs.h. */
4683 #if ((' ' & 0x0FF) == 0x020)
4684 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4685 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4687 # define ISLOWER(c) \
4688 (('a' <= (c) && (c) <= 'i') \
4689 || ('j' <= (c) && (c) <= 'r') \
4690 || ('s' <= (c) && (c) <= 'z'))
4691 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4694 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4699 for (i = 0; i < 256; i++)
4700 if (XOR (islower (i), ISLOWER (i))
4701 || toupper (i) != TOUPPER (i))
4706 rm -f conftest$ac_exeext
4707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4708 (eval $ac_link) 2>&5
4710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4711 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4716 (exit $ac_status); }; }; then
4719 echo "$as_me: program exited with status $ac_status" >&5
4720 echo "$as_me: failed program was:" >&5
4721 sed 's/^/| /' conftest.$ac_ext >&5
4724 ac_cv_header_stdc=no
4726 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4730 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4731 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4732 if test $ac_cv_header_stdc = yes; then
4734 cat >>confdefs.h <<\_ACEOF
4735 #define STDC_HEADERS 1
4740 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4750 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4751 inttypes.h stdint.h unistd.h
4753 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4754 echo "$as_me:$LINENO: checking for $ac_header" >&5
4755 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4756 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4757 echo $ECHO_N "(cached) $ECHO_C" >&6
4759 cat >conftest.$ac_ext <<_ACEOF
4760 #line $LINENO "configure"
4763 cat confdefs.h >>conftest.$ac_ext
4764 cat >>conftest.$ac_ext <<_ACEOF
4765 /* end confdefs.h. */
4766 $ac_includes_default
4768 #include <$ac_header>
4770 rm -f conftest.$ac_objext
4771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4772 (eval $ac_compile) 2>&5
4774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4775 (exit $ac_status); } &&
4776 { ac_try='test -s conftest.$ac_objext'
4777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4781 (exit $ac_status); }; }; then
4782 eval "$as_ac_Header=yes"
4784 echo "$as_me: failed program was:" >&5
4785 sed 's/^/| /' conftest.$ac_ext >&5
4787 eval "$as_ac_Header=no"
4789 rm -f conftest.$ac_objext conftest.$ac_ext
4791 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4792 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4793 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4794 cat >>confdefs.h <<_ACEOF
4795 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4804 for ac_header in dlfcn.h
4806 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4807 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4808 echo "$as_me:$LINENO: checking for $ac_header" >&5
4809 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4810 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4811 echo $ECHO_N "(cached) $ECHO_C" >&6
4813 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4814 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4816 # Is the header compilable?
4817 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4818 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4819 cat >conftest.$ac_ext <<_ACEOF
4820 #line $LINENO "configure"
4823 cat confdefs.h >>conftest.$ac_ext
4824 cat >>conftest.$ac_ext <<_ACEOF
4825 /* end confdefs.h. */
4826 $ac_includes_default
4827 #include <$ac_header>
4829 rm -f conftest.$ac_objext
4830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4831 (eval $ac_compile) 2>&5
4833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4834 (exit $ac_status); } &&
4835 { ac_try='test -s conftest.$ac_objext'
4836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4840 (exit $ac_status); }; }; then
4841 ac_header_compiler=yes
4843 echo "$as_me: failed program was:" >&5
4844 sed 's/^/| /' conftest.$ac_ext >&5
4846 ac_header_compiler=no
4848 rm -f conftest.$ac_objext conftest.$ac_ext
4849 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4850 echo "${ECHO_T}$ac_header_compiler" >&6
4852 # Is the header present?
4853 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4854 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4855 cat >conftest.$ac_ext <<_ACEOF
4856 #line $LINENO "configure"
4859 cat confdefs.h >>conftest.$ac_ext
4860 cat >>conftest.$ac_ext <<_ACEOF
4861 /* end confdefs.h. */
4862 #include <$ac_header>
4864 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4865 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4867 grep -v '^ *+' conftest.er1 >conftest.err
4869 cat conftest.err >&5
4870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4871 (exit $ac_status); } >/dev/null; then
4872 if test -s conftest.err; then
4873 ac_cpp_err=$ac_c_preproc_warn_flag
4880 if test -z "$ac_cpp_err"; then
4881 ac_header_preproc=yes
4883 echo "$as_me: failed program was:" >&5
4884 sed 's/^/| /' conftest.$ac_ext >&5
4886 ac_header_preproc=no
4888 rm -f conftest.err conftest.$ac_ext
4889 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4890 echo "${ECHO_T}$ac_header_preproc" >&6
4892 # So? What about this header?
4893 case $ac_header_compiler:$ac_header_preproc in
4895 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4896 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4897 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4898 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4901 ## ------------------------------------ ##
4902 ## Report this to bug-autoconf@gnu.org. ##
4903 ## ------------------------------------ ##
4906 sed "s/^/$as_me: WARNING: /" >&2
4909 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4910 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4911 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4912 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4913 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4914 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4917 ## ------------------------------------ ##
4918 ## Report this to bug-autoconf@gnu.org. ##
4919 ## ------------------------------------ ##
4922 sed "s/^/$as_me: WARNING: /" >&2
4925 echo "$as_me:$LINENO: checking for $ac_header" >&5
4926 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4927 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4928 echo $ECHO_N "(cached) $ECHO_C" >&6
4930 eval "$as_ac_Header=$ac_header_preproc"
4932 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4933 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4936 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4937 cat >>confdefs.h <<_ACEOF
4938 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4950 # Only perform the check for file, if the check method requires it
4951 case $deplibs_check_method in
4953 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4954 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4955 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4956 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4957 echo $ECHO_N "(cached) $ECHO_C" >&6
4961 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4964 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4967 ac_save_MAGIC_CMD="$MAGIC_CMD"
4968 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4969 ac_dummy="/usr/bin:$PATH"
4970 for ac_dir in $ac_dummy; do
4971 test -z "$ac_dir" && ac_dir=.
4972 if test -f $ac_dir/${ac_tool_prefix}file; then
4973 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4974 if test -n "$file_magic_test_file"; then
4975 case $deplibs_check_method in
4977 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4978 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4979 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4980 egrep "$file_magic_regex" > /dev/null; then
4985 *** Warning: the command libtool uses to detect shared libraries,
4986 *** $file_magic_cmd, produces output that libtool cannot recognize.
4987 *** The result is that libtool may fail to recognize shared libraries
4988 *** as such. This will affect the creation of libtool libraries that
4989 *** depend on shared libraries, but programs linked with such libtool
4990 *** libraries will work regardless of this problem. Nevertheless, you
4991 *** may want to report the problem to your system manager and/or to
4992 *** bug-libtool@gnu.org
5002 MAGIC_CMD="$ac_save_MAGIC_CMD"
5007 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5008 if test -n "$MAGIC_CMD"; then
5009 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5010 echo "${ECHO_T}$MAGIC_CMD" >&6
5012 echo "$as_me:$LINENO: result: no" >&5
5013 echo "${ECHO_T}no" >&6
5016 if test -z "$lt_cv_path_MAGIC_CMD"; then
5017 if test -n "$ac_tool_prefix"; then
5018 echo "$as_me:$LINENO: checking for file" >&5
5019 echo $ECHO_N "checking for file... $ECHO_C" >&6
5020 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5021 echo $ECHO_N "(cached) $ECHO_C" >&6
5025 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5028 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
5031 ac_save_MAGIC_CMD="$MAGIC_CMD"
5032 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5033 ac_dummy="/usr/bin:$PATH"
5034 for ac_dir in $ac_dummy; do
5035 test -z "$ac_dir" && ac_dir=.
5036 if test -f $ac_dir/file; then
5037 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5038 if test -n "$file_magic_test_file"; then
5039 case $deplibs_check_method in
5041 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5042 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5043 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5044 egrep "$file_magic_regex" > /dev/null; then
5049 *** Warning: the command libtool uses to detect shared libraries,
5050 *** $file_magic_cmd, produces output that libtool cannot recognize.
5051 *** The result is that libtool may fail to recognize shared libraries
5052 *** as such. This will affect the creation of libtool libraries that
5053 *** depend on shared libraries, but programs linked with such libtool
5054 *** libraries will work regardless of this problem. Nevertheless, you
5055 *** may want to report the problem to your system manager and/or to
5056 *** bug-libtool@gnu.org
5066 MAGIC_CMD="$ac_save_MAGIC_CMD"
5071 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5072 if test -n "$MAGIC_CMD"; then
5073 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5074 echo "${ECHO_T}$MAGIC_CMD" >&6
5076 echo "$as_me:$LINENO: result: no" >&5
5077 echo "${ECHO_T}no" >&6
5089 if test -n "$ac_tool_prefix"; then
5090 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5091 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5092 echo "$as_me:$LINENO: checking for $ac_word" >&5
5093 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5094 if test "${ac_cv_prog_RANLIB+set}" = set; then
5095 echo $ECHO_N "(cached) $ECHO_C" >&6
5097 if test -n "$RANLIB"; then
5098 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5104 test -z "$as_dir" && as_dir=.
5105 for ac_exec_ext in '' $ac_executable_extensions; do
5106 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5107 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5108 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5116 RANLIB=$ac_cv_prog_RANLIB
5117 if test -n "$RANLIB"; then
5118 echo "$as_me:$LINENO: result: $RANLIB" >&5
5119 echo "${ECHO_T}$RANLIB" >&6
5121 echo "$as_me:$LINENO: result: no" >&5
5122 echo "${ECHO_T}no" >&6
5126 if test -z "$ac_cv_prog_RANLIB"; then
5127 ac_ct_RANLIB=$RANLIB
5128 # Extract the first word of "ranlib", so it can be a program name with args.
5129 set dummy ranlib; ac_word=$2
5130 echo "$as_me:$LINENO: checking for $ac_word" >&5
5131 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5132 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5133 echo $ECHO_N "(cached) $ECHO_C" >&6
5135 if test -n "$ac_ct_RANLIB"; then
5136 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5142 test -z "$as_dir" && as_dir=.
5143 for ac_exec_ext in '' $ac_executable_extensions; do
5144 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5145 ac_cv_prog_ac_ct_RANLIB="ranlib"
5146 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5152 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5155 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5156 if test -n "$ac_ct_RANLIB"; then
5157 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5158 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5160 echo "$as_me:$LINENO: result: no" >&5
5161 echo "${ECHO_T}no" >&6
5164 RANLIB=$ac_ct_RANLIB
5166 RANLIB="$ac_cv_prog_RANLIB"
5169 if test -n "$ac_tool_prefix"; then
5170 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5171 set dummy ${ac_tool_prefix}strip; ac_word=$2
5172 echo "$as_me:$LINENO: checking for $ac_word" >&5
5173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5174 if test "${ac_cv_prog_STRIP+set}" = set; then
5175 echo $ECHO_N "(cached) $ECHO_C" >&6
5177 if test -n "$STRIP"; then
5178 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5184 test -z "$as_dir" && as_dir=.
5185 for ac_exec_ext in '' $ac_executable_extensions; do
5186 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5187 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5188 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5196 STRIP=$ac_cv_prog_STRIP
5197 if test -n "$STRIP"; then
5198 echo "$as_me:$LINENO: result: $STRIP" >&5
5199 echo "${ECHO_T}$STRIP" >&6
5201 echo "$as_me:$LINENO: result: no" >&5
5202 echo "${ECHO_T}no" >&6
5206 if test -z "$ac_cv_prog_STRIP"; then
5208 # Extract the first word of "strip", so it can be a program name with args.
5209 set dummy strip; ac_word=$2
5210 echo "$as_me:$LINENO: checking for $ac_word" >&5
5211 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5212 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5213 echo $ECHO_N "(cached) $ECHO_C" >&6
5215 if test -n "$ac_ct_STRIP"; then
5216 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5222 test -z "$as_dir" && as_dir=.
5223 for ac_exec_ext in '' $ac_executable_extensions; do
5224 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5225 ac_cv_prog_ac_ct_STRIP="strip"
5226 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5232 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5235 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5236 if test -n "$ac_ct_STRIP"; then
5237 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5238 echo "${ECHO_T}$ac_ct_STRIP" >&6
5240 echo "$as_me:$LINENO: result: no" >&5
5241 echo "${ECHO_T}no" >&6
5246 STRIP="$ac_cv_prog_STRIP"
5253 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5254 if test "${enable_libtool_lock+set}" = set; then
5255 enableval="$enable_libtool_lock"
5258 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5260 # Some flags need to be propagated to the compiler or linker for good
5264 # Find out which ABI we are using.
5265 echo '#line 5265 "configure"' > conftest.$ac_ext
5266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5267 (eval $ac_compile) 2>&5
5269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5270 (exit $ac_status); }; then
5271 case `/usr/bin/file conftest.$ac_objext` in
5287 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5288 SAVE_CFLAGS="$CFLAGS"
5289 CFLAGS="$CFLAGS -belf"
5290 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5291 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5292 if test "${lt_cv_cc_needs_belf+set}" = set; then
5293 echo $ECHO_N "(cached) $ECHO_C" >&6
5298 ac_cpp='$CPP $CPPFLAGS'
5299 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5300 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5301 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5303 cat >conftest.$ac_ext <<_ACEOF
5304 #line $LINENO "configure"
5307 cat confdefs.h >>conftest.$ac_ext
5308 cat >>conftest.$ac_ext <<_ACEOF
5309 /* end confdefs.h. */
5319 rm -f conftest.$ac_objext conftest$ac_exeext
5320 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5321 (eval $ac_link) 2>&5
5323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5324 (exit $ac_status); } &&
5325 { ac_try='test -s conftest$ac_exeext'
5326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5330 (exit $ac_status); }; }; then
5331 lt_cv_cc_needs_belf=yes
5333 echo "$as_me: failed program was:" >&5
5334 sed 's/^/| /' conftest.$ac_ext >&5
5336 lt_cv_cc_needs_belf=no
5338 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5340 ac_cpp='$CPP $CPPFLAGS'
5341 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5342 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5343 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5346 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5347 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5348 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5349 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5350 CFLAGS="$SAVE_CFLAGS"
5357 # Sed substitution that helps us do robust quoting. It backslashifies
5358 # metacharacters that are still active within double-quoted strings.
5359 Xsed='sed -e s/^X//'
5360 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5362 # Same as above, but do not quote variable references.
5363 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5365 # Sed substitution to delay expansion of an escaped shell variable in a
5366 # double_quote_subst'ed string.
5367 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5373 default_ofile=libtool
5374 can_build_shared=yes
5376 # All known linkers require a `.a' archive for static linking (except M$VC,
5377 # which needs '.lib').
5379 ltmain="$ac_aux_dir/ltmain.sh"
5380 ofile="$default_ofile"
5381 with_gnu_ld="$lt_cv_prog_gnu_ld"
5382 need_locks="$enable_libtool_lock"
5385 old_CFLAGS="$CFLAGS"
5387 # Set sane defaults for various variables
5388 test -z "$AR" && AR=ar
5389 test -z "$AR_FLAGS" && AR_FLAGS=cru
5390 test -z "$AS" && AS=as
5391 test -z "$CC" && CC=cc
5392 test -z "$DLLTOOL" && DLLTOOL=dlltool
5393 test -z "$LD" && LD=ld
5394 test -z "$LN_S" && LN_S="ln -s"
5395 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5396 test -z "$NM" && NM=nm
5397 test -z "$OBJDUMP" && OBJDUMP=objdump
5398 test -z "$RANLIB" && RANLIB=:
5399 test -z "$STRIP" && STRIP=:
5400 test -z "$ac_objext" && ac_objext=o
5402 if test x"$host" != x"$build"; then
5403 ac_tool_prefix=${host_alias}-
5408 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
5411 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
5416 # AIX sometimes has problems with the GCC collect2 program. For some
5417 # reason, if we set the COLLECT_NAMES environment variable, the problems
5418 # vanish in a puff of smoke.
5419 if test "X${COLLECT_NAMES+set}" != Xset; then
5421 export COLLECT_NAMES
5426 # Determine commands to create old-style static archives.
5427 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5428 old_postinstall_cmds='chmod 644 $oldlib'
5429 old_postuninstall_cmds=
5431 if test -n "$RANLIB"; then
5434 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5437 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5440 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5443 # Allow CC to be a program name with arguments.
5447 echo "$as_me:$LINENO: checking for objdir" >&5
5448 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5449 rm -f .libs 2>/dev/null
5450 mkdir .libs 2>/dev/null
5451 if test -d .libs; then
5454 # MS-DOS does not allow filenames that begin with a dot.
5457 rmdir .libs 2>/dev/null
5458 echo "$as_me:$LINENO: result: $objdir" >&5
5459 echo "${ECHO_T}$objdir" >&6
5463 # Check whether --with-pic or --without-pic was given.
5464 if test "${with_pic+set}" = set; then
5470 test -z "$pic_mode" && pic_mode=default
5472 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
5473 # in isolation, and that seeing it set (from the cache) indicates that
5474 # the associated values are set (in the cache) correctly too.
5475 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5476 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5477 if test "${lt_cv_prog_cc_pic+set}" = set; then
5478 echo $ECHO_N "(cached) $ECHO_C" >&6
5481 lt_cv_prog_cc_shlib=
5483 lt_cv_prog_cc_static=
5484 lt_cv_prog_cc_no_builtin=
5485 lt_cv_prog_cc_can_build_shared=$can_build_shared
5487 if test "$GCC" = yes; then
5488 lt_cv_prog_cc_wl='-Wl,'
5489 lt_cv_prog_cc_static='-static'
5493 # Below there is a dirty hack to force normal static linking with -ldl
5494 # The problem is because libdl dynamically linked with both libc and
5495 # libC (AIX C++ library), which obviously doesn't included in libraries
5496 # list by gcc. This cause undefined symbols with -static flags.
5497 # This hack allows C programs to be linked with "-static -ldl", but
5498 # not sure about C++ programs.
5499 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
5502 # FIXME: we need at least 68020 code to build shared libraries, but
5503 # adding the `-m68020' flag to GCC prevents building anything better,
5505 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
5507 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5508 # PIC is the default for these OSes.
5510 darwin* | rhapsody*)
5511 # PIC is the default on this platform
5512 # Common symbols not allowed in MH_DYLIB files
5513 lt_cv_prog_cc_pic='-fno-common'
5515 cygwin* | mingw* | pw32* | os2*)
5516 # This hack is so that the source file can tell whether it is being
5517 # built for inclusion in a dll (and should export symbols for example).
5518 lt_cv_prog_cc_pic='-DDLL_EXPORT'
5521 if test -d /usr/nec; then
5522 lt_cv_prog_cc_pic=-Kconform_pic
5526 lt_cv_prog_cc_pic='-fPIC'
5530 # PORTME Check for PIC flags for the system compiler.
5532 aix3* | aix4* | aix5*)
5533 lt_cv_prog_cc_wl='-Wl,'
5534 # All AIX code is PIC.
5535 if test "$host_cpu" = ia64; then
5536 # AIX 5 now supports IA64 processor
5537 lt_cv_prog_cc_static='-Bstatic'
5539 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
5543 hpux9* | hpux10* | hpux11*)
5544 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
5545 lt_cv_prog_cc_wl='-Wl,'
5546 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
5547 lt_cv_prog_cc_pic='+Z'
5550 irix5* | irix6* | nonstopux*)
5551 lt_cv_prog_cc_wl='-Wl,'
5552 lt_cv_prog_cc_static='-non_shared'
5553 # PIC (with -KPIC) is the default.
5556 cygwin* | mingw* | pw32* | os2*)
5557 # This hack is so that the source file can tell whether it is being
5558 # built for inclusion in a dll (and should export symbols for example).
5559 lt_cv_prog_cc_pic='-DDLL_EXPORT'
5563 lt_cv_prog_cc_pic='-KPIC'
5564 lt_cv_prog_cc_static='-Bstatic'
5567 osf3* | osf4* | osf5*)
5568 # All OSF/1 code is PIC.
5569 lt_cv_prog_cc_wl='-Wl,'
5570 lt_cv_prog_cc_static='-non_shared'
5574 lt_cv_prog_cc_pic='-Kpic'
5575 lt_cv_prog_cc_static='-dn'
5576 lt_cv_prog_cc_shlib='-belf'
5580 lt_cv_prog_cc_pic='-KPIC'
5581 lt_cv_prog_cc_static='-Bstatic'
5582 lt_cv_prog_cc_wl='-Wl,'
5586 lt_cv_prog_cc_pic='-PIC'
5587 lt_cv_prog_cc_static='-Bstatic'
5588 lt_cv_prog_cc_wl='-Qoption ld '
5591 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5592 lt_cv_prog_cc_pic='-KPIC'
5593 lt_cv_prog_cc_static='-Bstatic'
5594 lt_cv_prog_cc_wl='-Wl,'
5598 lt_cv_prog_cc_pic='-pic'
5599 lt_cv_prog_cc_static='-Bstatic'
5603 if test -d /usr/nec ;then
5604 lt_cv_prog_cc_pic='-Kconform_pic'
5605 lt_cv_prog_cc_static='-Bstatic'
5610 lt_cv_prog_cc_can_build_shared=no
5617 if test -z "$lt_cv_prog_cc_pic"; then
5618 echo "$as_me:$LINENO: result: none" >&5
5619 echo "${ECHO_T}none" >&6
5621 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
5622 echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
5624 # Check to make sure the pic_flag actually works.
5625 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
5626 echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
5627 if test "${lt_cv_prog_cc_pic_works+set}" = set; then
5628 echo $ECHO_N "(cached) $ECHO_C" >&6
5630 save_CFLAGS="$CFLAGS"
5631 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
5632 cat >conftest.$ac_ext <<_ACEOF
5633 #line $LINENO "configure"
5636 cat confdefs.h >>conftest.$ac_ext
5637 cat >>conftest.$ac_ext <<_ACEOF
5638 /* end confdefs.h. */
5648 rm -f conftest.$ac_objext
5649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5650 (eval $ac_compile) 2>&5
5652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5653 (exit $ac_status); } &&
5654 { ac_try='test -s conftest.$ac_objext'
5655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5659 (exit $ac_status); }; }; then
5661 hpux9* | hpux10* | hpux11*)
5662 # On HP-UX, both CC and GCC only warn that PIC is supported... then
5663 # they create non-PIC objects. So, if there were any warnings, we
5664 # assume that PIC is not supported.
5665 if test -s conftest.err; then
5666 lt_cv_prog_cc_pic_works=no
5668 lt_cv_prog_cc_pic_works=yes
5672 lt_cv_prog_cc_pic_works=yes
5677 echo "$as_me: failed program was:" >&5
5678 sed 's/^/| /' conftest.$ac_ext >&5
5680 lt_cv_prog_cc_pic_works=no
5683 rm -f conftest.$ac_objext conftest.$ac_ext
5684 CFLAGS="$save_CFLAGS"
5689 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
5691 lt_cv_prog_cc_can_build_shared=no
5693 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
5696 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
5697 echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
5700 # Check for any special shared library compilation flags.
5701 if test -n "$lt_cv_prog_cc_shlib"; then
5702 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
5703 echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
5704 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
5706 { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5707 echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5708 lt_cv_prog_cc_can_build_shared=no
5712 echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
5713 echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
5714 if test "${lt_cv_prog_cc_static_works+set}" = set; then
5715 echo $ECHO_N "(cached) $ECHO_C" >&6
5717 lt_cv_prog_cc_static_works=no
5718 save_LDFLAGS="$LDFLAGS"
5719 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
5720 cat >conftest.$ac_ext <<_ACEOF
5721 #line $LINENO "configure"
5724 cat confdefs.h >>conftest.$ac_ext
5725 cat >>conftest.$ac_ext <<_ACEOF
5726 /* end confdefs.h. */
5736 rm -f conftest.$ac_objext conftest$ac_exeext
5737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5738 (eval $ac_link) 2>&5
5740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5741 (exit $ac_status); } &&
5742 { ac_try='test -s conftest$ac_exeext'
5743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5747 (exit $ac_status); }; }; then
5748 lt_cv_prog_cc_static_works=yes
5750 echo "$as_me: failed program was:" >&5
5751 sed 's/^/| /' conftest.$ac_ext >&5
5754 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5755 LDFLAGS="$save_LDFLAGS"
5760 # Belt *and* braces to stop my trousers falling down:
5761 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
5762 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
5763 echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
5765 pic_flag="$lt_cv_prog_cc_pic"
5766 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
5767 wl="$lt_cv_prog_cc_wl"
5768 link_static_flag="$lt_cv_prog_cc_static"
5769 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
5770 can_build_shared="$lt_cv_prog_cc_can_build_shared"
5773 # Check to see if options -o and -c are simultaneously supported by compiler
5774 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
5775 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
5776 if test "${lt_cv_compiler_c_o+set}" = set; then
5777 echo $ECHO_N "(cached) $ECHO_C" >&6
5780 $rm -r conftest 2>/dev/null
5783 echo "int some_variable = 0;" > conftest.$ac_ext
5785 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5786 # that will create temporary files in the current directory regardless of
5787 # the output directory. Thus, making CWD read-only will cause this test
5788 # to fail, enabling locking or at least warning the user not to do parallel
5791 save_CFLAGS="$CFLAGS"
5792 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
5794 if { (eval echo configure:5794: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
5795 # The compiler can only warn and ignore the option if not recognized
5796 # So say no if there are warnings
5797 if test -s out/conftest.err; then
5798 lt_cv_compiler_c_o=no
5800 lt_cv_compiler_c_o=yes
5803 # Append any errors to the config.log.
5804 cat out/conftest.err 1>&5
5805 lt_cv_compiler_c_o=no
5807 CFLAGS="$save_CFLAGS"
5813 $rm -r conftest 2>/dev/null
5817 compiler_c_o=$lt_cv_compiler_c_o
5818 echo "$as_me:$LINENO: result: $compiler_c_o" >&5
5819 echo "${ECHO_T}$compiler_c_o" >&6
5821 if test x"$compiler_c_o" = x"yes"; then
5822 # Check to see if we can write to a .lo
5823 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
5824 echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
5825 if test "${lt_cv_compiler_o_lo+set}" = set; then
5826 echo $ECHO_N "(cached) $ECHO_C" >&6
5829 lt_cv_compiler_o_lo=no
5830 save_CFLAGS="$CFLAGS"
5831 CFLAGS="$CFLAGS -c -o conftest.lo"
5832 save_objext="$ac_objext"
5834 cat >conftest.$ac_ext <<_ACEOF
5835 #line $LINENO "configure"
5838 cat confdefs.h >>conftest.$ac_ext
5839 cat >>conftest.$ac_ext <<_ACEOF
5840 /* end confdefs.h. */
5845 int some_variable = 0;
5850 rm -f conftest.$ac_objext
5851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5852 (eval $ac_compile) 2>&5
5854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5855 (exit $ac_status); } &&
5856 { ac_try='test -s conftest.$ac_objext'
5857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5861 (exit $ac_status); }; }; then
5862 # The compiler can only warn and ignore the option if not recognized
5863 # So say no if there are warnings
5864 if test -s conftest.err; then
5865 lt_cv_compiler_o_lo=no
5867 lt_cv_compiler_o_lo=yes
5871 echo "$as_me: failed program was:" >&5
5872 sed 's/^/| /' conftest.$ac_ext >&5
5875 rm -f conftest.$ac_objext conftest.$ac_ext
5876 ac_objext="$save_objext"
5877 CFLAGS="$save_CFLAGS"
5881 compiler_o_lo=$lt_cv_compiler_o_lo
5882 echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
5883 echo "${ECHO_T}$compiler_o_lo" >&6
5888 # Check to see if we can do hard links to lock some files if needed
5889 hard_links="nottested"
5890 if test "$compiler_c_o" = no && test "$need_locks" != no; then
5891 # do not overwrite the value of need_locks provided by the user
5892 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
5893 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
5896 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5898 ln conftest.a conftest.b 2>&5 || hard_links=no
5899 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5900 echo "$as_me:$LINENO: result: $hard_links" >&5
5901 echo "${ECHO_T}$hard_links" >&6
5902 if test "$hard_links" = no; then
5903 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
5904 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
5911 if test "$GCC" = yes; then
5912 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5913 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5914 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5915 echo "int some_variable = 0;" > conftest.$ac_ext
5916 save_CFLAGS="$CFLAGS"
5917 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5918 compiler_rtti_exceptions=no
5919 cat >conftest.$ac_ext <<_ACEOF
5920 #line $LINENO "configure"
5923 cat confdefs.h >>conftest.$ac_ext
5924 cat >>conftest.$ac_ext <<_ACEOF
5925 /* end confdefs.h. */
5930 int some_variable = 0;
5935 rm -f conftest.$ac_objext
5936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5937 (eval $ac_compile) 2>&5
5939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5940 (exit $ac_status); } &&
5941 { ac_try='test -s conftest.$ac_objext'
5942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5946 (exit $ac_status); }; }; then
5947 # The compiler can only warn and ignore the option if not recognized
5948 # So say no if there are warnings
5949 if test -s conftest.err; then
5950 compiler_rtti_exceptions=no
5952 compiler_rtti_exceptions=yes
5956 echo "$as_me: failed program was:" >&5
5957 sed 's/^/| /' conftest.$ac_ext >&5
5960 rm -f conftest.$ac_objext conftest.$ac_ext
5961 CFLAGS="$save_CFLAGS"
5962 echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
5963 echo "${ECHO_T}$compiler_rtti_exceptions" >&6
5965 if test "$compiler_rtti_exceptions" = "yes"; then
5966 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
5968 no_builtin_flag=' -fno-builtin'
5972 # See if the linker supports building shared libraries.
5973 echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
5974 echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
5976 allow_undefined_flag=
5978 need_lib_prefix=unknown
5979 need_version=unknown
5980 # when you set need_version to no, make sure it does not cause -set_version
5981 # flags to be left without arguments
5983 archive_expsym_cmds=
5984 old_archive_from_new_cmds=
5985 old_archive_from_expsyms_cmds=
5986 export_dynamic_flag_spec=
5987 whole_archive_flag_spec=
5988 thread_safe_flag_spec=
5989 hardcode_into_libs=no
5990 hardcode_libdir_flag_spec=
5991 hardcode_libdir_separator=
5994 hardcode_shlibpath_var=unsupported
5996 link_all_deplibs=unknown
5997 always_export_symbols=no
5998 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
5999 # include_expsyms should be a list of space-separated symbols to be *always*
6000 # included in the symbol list
6002 # exclude_expsyms can be an egrep regular expression of symbols to exclude
6003 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6004 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6005 # as well as any symbol that contains `d'.
6006 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6007 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6008 # platforms (ab)use it in PIC code, but their linkers get confused if
6009 # the symbol is explicitly referenced. Since portable code cannot
6010 # rely on this symbol name, it's probably fine to never include it in
6011 # preloaded symbol tables.
6012 extract_expsyms_cmds=
6015 cygwin* | mingw* | pw32*)
6016 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6017 # When not using gcc, we currently assume that we are using
6018 # Microsoft Visual C++.
6019 if test "$GCC" != yes; then
6029 if test "$with_gnu_ld" = yes; then
6030 # If archive_cmds runs LD, not CC, wlarc should be empty
6033 # See if GNU ld supports shared libraries.
6035 aix3* | aix4* | aix5*)
6036 # On AIX, the GNU linker is very broken
6037 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
6041 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6042 *** to be unable to reliably create shared libraries on AIX.
6043 *** Therefore, libtool is disabling shared libraries support. If you
6044 *** really care for shared libraries, you may want to modify your PATH
6045 *** so that a non-GNU linker is found, and then restart.
6051 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)'
6052 hardcode_libdir_flag_spec='-L$libdir'
6053 hardcode_minus_L=yes
6055 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6056 # that the semantics of dynamic libraries on AmigaOS, at least up
6057 # to version 4, is to share data among multiple programs linked
6058 # with the same dynamic library. Since this doesn't match the
6059 # behavior of shared libraries on other platforms, we can use
6065 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6066 allow_undefined_flag=unsupported
6067 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6068 # support --undefined. This deserves some investigation. FIXME
6069 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6075 cygwin* | mingw* | pw32*)
6076 # hardcode_libdir_flag_spec is actually meaningless, as there is
6077 # no search path for DLLs.
6078 hardcode_libdir_flag_spec='-L$libdir'
6079 allow_undefined_flag=unsupported
6080 always_export_symbols=yes
6082 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
6083 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
6084 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
6085 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
6086 else $CC -o impgen impgen.c ; fi)~
6087 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
6089 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
6091 # cygwin and mingw dlls have different entry points and sets of symbols
6093 # FIXME: what about values for MSVC?
6094 dll_entry=__cygwin_dll_entry@12
6095 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
6099 dll_entry=_DllMainCRTStartup@12
6100 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
6104 # mingw and cygwin differ, and it's simplest to just exclude the union
6105 # of the two symbol sets.
6106 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
6108 # recent cygwin and mingw systems supply a stub DllMain which the user
6109 # can override, but on older systems we have to supply one (in ltdll.c)
6110 if test "x$lt_cv_need_dllmain" = "xyes"; then
6111 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
6112 ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
6113 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
6119 # Extract the symbol export list from an `--export-all' def file,
6120 # then regenerate the def file from the symbol export list, so that
6121 # the compiled dll only exports the symbol export list.
6122 # Be careful not to strip the DATA tag left be newer dlltools.
6123 export_symbols_cmds="$ltdll_cmds"'
6124 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
6125 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
6127 # If the export-symbols file already is a .def file (1st line
6128 # is EXPORTS), use it as is.
6129 # If DATA tags from a recent dlltool are present, honour them!
6130 archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
6131 cp $export_symbols $output_objdir/$soname-def;
6133 echo EXPORTS > $output_objdir/$soname-def;
6135 cat $export_symbols | while read symbol; do
6138 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
6139 4) echo " \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
6140 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
6142 _lt_hint=`expr 1 + \$_lt_hint`;
6146 $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
6147 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
6148 $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
6149 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
6150 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
6154 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6155 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6158 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6159 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6164 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
6168 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6169 *** create shared libraries on Solaris systems. Therefore, libtool
6170 *** is disabling shared libraries support. We urge you to upgrade GNU
6171 *** binutils to release 2.9.1 or newer. Another option is to modify
6172 *** your PATH or compiler configuration so that the native linker is
6173 *** used, and then restart.
6176 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6177 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6178 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6185 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6188 hardcode_shlibpath_var=no
6192 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6193 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6194 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6201 if test "$ld_shlibs" = yes; then
6202 runpath_var=LD_RUN_PATH
6203 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6204 export_dynamic_flag_spec='${wl}--export-dynamic'
6206 cygwin* | mingw* | pw32*)
6207 # dlltool doesn't understand --whole-archive et. al.
6208 whole_archive_flag_spec=
6211 # ancient GNU ld didn't support --whole-archive et. al.
6212 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
6213 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6215 whole_archive_flag_spec=
6221 # PORTME fill in a description of your system's linker (not GNU ld)
6224 allow_undefined_flag=unsupported
6225 always_export_symbols=yes
6226 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'
6227 # Note: this linker hardcodes the directories in LIBPATH if there
6228 # are no directories specified by -L.
6229 hardcode_minus_L=yes
6230 if test "$GCC" = yes && test -z "$link_static_flag"; then
6231 # Neither direct hardcoding nor static linking is supported with a
6233 hardcode_direct=unsupported
6238 if test "$host_cpu" = ia64; then
6239 # On IA64, the linker does run time linking by default, so we don't
6240 # have to do anything special.
6241 aix_use_runtimelinking=no
6242 exp_sym_flag='-Bexport'
6245 aix_use_runtimelinking=no
6247 # Test if we are trying to use run time linking or normal
6248 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6249 # need to do runtime linking.
6250 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6251 for ld_flag in $LDFLAGS; do
6254 aix_use_runtimelinking=yes
6261 exp_sym_flag='-bexport'
6262 no_entry_flag='-bnoentry'
6265 # When large executables or shared objects are built, AIX ld can
6266 # have problems creating the table of contents. If linking a library
6267 # or program results in "error TOC overflow" add -mminimal-toc to
6268 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6269 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6273 hardcode_libdir_separator=':'
6274 if test "$GCC" = yes; then
6275 case $host_os in aix4.[012]|aix4.[012].*)
6276 collect2name=`${CC} -print-prog-name=collect2`
6277 if test -f "$collect2name" && \
6278 strings "$collect2name" | grep resolve_lib_name >/dev/null
6280 # We have reworked collect2
6283 # We have old collect2
6284 hardcode_direct=unsupported
6285 # It fails to find uninstalled libraries when the uninstalled
6286 # path is not listed in the libpath. Setting hardcode_minus_L
6287 # to unsupported forces relinking
6288 hardcode_minus_L=yes
6289 hardcode_libdir_flag_spec='-L$libdir'
6290 hardcode_libdir_separator=
6294 shared_flag='-shared'
6297 if test "$host_cpu" = ia64; then
6298 shared_flag='${wl}-G'
6300 if test "$aix_use_runtimelinking" = yes; then
6301 shared_flag='${wl}-G'
6303 shared_flag='${wl}-bM:SRE'
6308 # It seems that -bexpall can do strange things, so it is better to
6309 # generate a list of symbols to export.
6310 always_export_symbols=yes
6311 if test "$aix_use_runtimelinking" = yes; then
6312 # Warning - without using the other runtime loading flags (-brtl),
6313 # -berok will link without error, but may produce a broken library.
6314 allow_undefined_flag='-berok'
6315 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
6316 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
6318 if test "$host_cpu" = ia64; then
6319 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6320 allow_undefined_flag="-z nodefs"
6321 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
6323 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
6324 # Warning - without using the other run time loading flags,
6325 # -berok will link without error, but may produce a broken library.
6326 allow_undefined_flag='${wl}-berok'
6327 # This is a bit strange, but is similar to how AIX traditionally builds
6328 # it's shared libraries.
6329 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname'
6335 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)'
6336 hardcode_libdir_flag_spec='-L$libdir'
6337 hardcode_minus_L=yes
6338 # see comment about different semantics on the GNU ld section
6342 cygwin* | mingw* | pw32*)
6343 # When not using gcc, we currently assume that we are using
6344 # Microsoft Visual C++.
6345 # hardcode_libdir_flag_spec is actually meaningless, as there is
6346 # no search path for DLLs.
6347 hardcode_libdir_flag_spec=' '
6348 allow_undefined_flag=unsupported
6349 # Tell ltmain to make .lib files, not .a files.
6351 # FIXME: Setting linknames here is a bad hack.
6352 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
6353 # The linker will automatically build a .lib file if we build a DLL.
6354 old_archive_from_new_cmds='true'
6355 # FIXME: Should let the user specify the lib program.
6356 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6357 fix_srcfile_path='`cygpath -w "$srcfile"`'
6360 darwin* | rhapsody*)
6362 rhapsody* | darwin1.[012])
6363 allow_undefined_flag='-undefined suppress'
6366 allow_undefined_flag='-flat_namespace -undefined suppress'
6369 # FIXME: Relying on posixy $() will cause problems for
6370 # cross-compilation, but unfortunately the echo tests do not
6371 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
6372 # `"' quotes if we put them in here... so don't!
6373 archive_cmds='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs && $CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib ${lib}-master.o $deplibs$linker_flags $(test .$module != .yes && echo -install_name $rpath/$soname $verstring)'
6374 # We need to add '_' to the symbols in $export_symbols first
6375 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
6377 hardcode_shlibpath_var=no
6378 whole_archive_flag_spec='-all_load $convenience'
6385 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6386 # support. Future versions do this automatically, but an explicit c++rt0.o
6387 # does not break anything, and helps significantly (at the cost of a little
6390 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6391 hardcode_libdir_flag_spec='-R$libdir'
6393 hardcode_shlibpath_var=no
6396 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6398 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6400 hardcode_minus_L=yes
6401 hardcode_shlibpath_var=no
6404 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6406 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6407 hardcode_libdir_flag_spec='-R$libdir'
6409 hardcode_shlibpath_var=no
6412 hpux9* | hpux10* | hpux11*)
6414 hpux9*) 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' ;;
6415 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
6417 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6418 hardcode_libdir_separator=:
6420 hardcode_minus_L=yes # Not in the search PATH, but as the default
6421 # location of the library.
6422 export_dynamic_flag_spec='${wl}-E'
6425 irix5* | irix6* | nonstopux*)
6426 if test "$GCC" = yes; then
6427 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6428 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6430 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6431 hardcode_libdir_flag_spec='-rpath $libdir'
6433 hardcode_libdir_separator=:
6434 link_all_deplibs=yes
6438 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6439 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6441 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6443 hardcode_libdir_flag_spec='-R$libdir'
6445 hardcode_shlibpath_var=no
6449 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6451 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6452 hardcode_libdir_separator=:
6453 hardcode_shlibpath_var=no
6458 hardcode_shlibpath_var=no
6459 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6460 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6461 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6462 export_dynamic_flag_spec='${wl}-E'
6465 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6466 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6467 hardcode_libdir_flag_spec='-R$libdir'
6470 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6471 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6478 hardcode_libdir_flag_spec='-L$libdir'
6479 hardcode_minus_L=yes
6480 allow_undefined_flag=unsupported
6481 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'
6482 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6486 if test "$GCC" = yes; then
6487 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6488 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6490 allow_undefined_flag=' -expect_unresolved \*'
6491 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6493 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6494 hardcode_libdir_separator=:
6497 osf4* | osf5*) # as osf3* with the addition of -msym flag
6498 if test "$GCC" = yes; then
6499 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6500 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6501 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6503 allow_undefined_flag=' -expect_unresolved \*'
6504 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6505 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6506 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
6508 #Both c and cxx compiler support -rpath directly
6509 hardcode_libdir_flag_spec='-rpath $libdir'
6511 hardcode_libdir_separator=:
6515 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6516 hardcode_shlibpath_var=no
6517 runpath_var=LD_RUN_PATH
6518 hardcode_runpath_var=yes
6519 export_dynamic_flag_spec='${wl}-Bexport'
6523 # gcc --version < 3.0 without binutils cannot create self contained
6524 # shared libraries reliably, requiring libgcc.a to resolve some of
6525 # the object symbols generated in some cases. Libraries that use
6526 # assert need libgcc.a to resolve __eprintf, for example. Linking
6527 # a copy of libgcc.a into every shared library to guarantee resolving
6528 # such symbols causes other problems: According to Tim Van Holder
6529 # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
6530 # (to the application) exception stack for one thing.
6531 no_undefined_flag=' -z defs'
6532 if test "$GCC" = yes; then
6533 case `$CC --version 2>/dev/null` in
6537 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
6538 *** create self contained shared libraries on Solaris systems, without
6539 *** introducing a dependency on libgcc.a. Therefore, libtool is disabling
6540 *** -no-undefined support, which will at least allow you to build shared
6541 *** libraries. However, you may find that when you link such libraries
6542 *** into an application without using GCC, you have to manually add
6543 *** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
6544 *** upgrade to a newer version of GCC. Another option is to rebuild your
6545 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
6552 # $CC -shared without GNU ld will not create a library from C++
6553 # object files and a static libstdc++, better avoid it by now
6554 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6555 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6556 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6557 hardcode_libdir_flag_spec='-R$libdir'
6558 hardcode_shlibpath_var=no
6560 solaris2.[0-5] | solaris2.[0-5].*) ;;
6561 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6562 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6564 link_all_deplibs=yes
6568 if test "x$host_vendor" = xsequent; then
6569 # Use $CC to link under sequent, because it throws in some extra .o
6570 # files that make .init and .fini sections work.
6571 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6573 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6575 hardcode_libdir_flag_spec='-L$libdir'
6577 hardcode_minus_L=yes
6578 hardcode_shlibpath_var=no
6582 case $host_vendor in
6584 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6585 hardcode_direct=yes # is this really true???
6588 ## LD is ld it makes a PLAMLIB
6589 ## CC just makes a GrossModule.
6590 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6591 reload_cmds='$CC -r -o $output$reload_objs'
6595 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6596 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6599 runpath_var='LD_RUN_PATH'
6600 hardcode_shlibpath_var=no
6604 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6605 hardcode_shlibpath_var=no
6606 export_dynamic_flag_spec='-Bexport'
6610 no_undefined_flag=' -z text'
6611 # $CC -shared without GNU ld will not create a library from C++
6612 # object files and a static libstdc++, better avoid it by now
6613 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6614 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6615 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6616 hardcode_libdir_flag_spec=
6617 hardcode_shlibpath_var=no
6618 runpath_var='LD_RUN_PATH'
6622 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6623 hardcode_libdir_flag_spec='-L$libdir'
6624 hardcode_shlibpath_var=no
6628 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6629 hardcode_libdir_flag_spec='-L$libdir'
6630 hardcode_shlibpath_var=no
6634 if test -d /usr/nec; then
6635 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6636 hardcode_shlibpath_var=no
6637 runpath_var=LD_RUN_PATH
6638 hardcode_runpath_var=yes
6644 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6647 hardcode_shlibpath_var=no
6648 hardcode_runpath_var=yes
6649 runpath_var=LD_RUN_PATH
6652 sysv5uw7* | unixware7*)
6653 no_undefined_flag='${wl}-z ${wl}text'
6654 if test "$GCC" = yes; then
6655 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6657 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6659 runpath_var='LD_RUN_PATH'
6660 hardcode_shlibpath_var=no
6668 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
6669 echo "${ECHO_T}$ld_shlibs" >&6
6670 test "$ld_shlibs" = no && can_build_shared=no
6672 # Check hardcoding attributes.
6673 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
6674 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
6676 if test -n "$hardcode_libdir_flag_spec" || \
6677 test -n "$runpath_var"; then
6679 # We can hardcode non-existant directories.
6680 if test "$hardcode_direct" != no &&
6681 # If the only mechanism to avoid hardcoding is shlibpath_var, we
6682 # have to relink, otherwise we might link with an installed library
6683 # when we should be linking with a yet-to-be-installed one
6684 ## test "$hardcode_shlibpath_var" != no &&
6685 test "$hardcode_minus_L" != no; then
6686 # Linking always hardcodes the temporary library directory.
6687 hardcode_action=relink
6689 # We can link without hardcoding, and we can hardcode nonexisting dirs.
6690 hardcode_action=immediate
6693 # We cannot hardcode anything, or else we can only hardcode existing
6695 hardcode_action=unsupported
6697 echo "$as_me:$LINENO: result: $hardcode_action" >&5
6698 echo "${ECHO_T}$hardcode_action" >&6
6702 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
6703 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
6704 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6705 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6706 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6707 echo "$as_me:$LINENO: result: yes" >&5
6708 echo "${ECHO_T}yes" >&6
6710 echo "$as_me:$LINENO: result: no" >&5
6711 echo "${ECHO_T}no" >&6
6714 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6715 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6717 # PORTME Fill in your ld.so characteristics
6718 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6719 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6721 libname_spec='lib$name'
6728 shlibpath_overrides_runpath=unknown
6730 dynamic_linker="$host_os ld.so"
6731 sys_lib_dlsearch_path_spec="/lib /usr/lib"
6732 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6737 library_names_spec='${libname}${release}.so$versuffix $libname.a'
6738 shlibpath_var=LIBPATH
6740 # AIX has no versioning support, so we append a major version to the name.
6741 soname_spec='${libname}${release}.so$major'
6748 hardcode_into_libs=yes
6749 if test "$host_cpu" = ia64; then
6750 # AIX 5 supports IA64
6751 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
6752 shlibpath_var=LD_LIBRARY_PATH
6754 # With GCC up to 2.95.x, collect2 would create an import file
6755 # for dependence libraries. The import file would start with
6756 # the line `#! .'. This would cause the generated library to
6757 # depend on `.', always an invalid library. This was fixed in
6758 # development snapshots of GCC prior to 3.0.
6760 aix4 | aix4.[01] | aix4.[01].*)
6761 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6763 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6770 # AIX (on Power*) has no versioning support, so currently we can
6771 # not hardcode correct soname into executable. Probably we can
6772 # add versioning support to collect2, so additional links can
6773 # be useful in future.
6774 if test "$aix_use_runtimelinking" = yes; then
6775 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6776 # instead of lib<name>.a to let people know that these are not
6777 # typical AIX shared libraries.
6778 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6780 # We preserve .a as extension for shared libraries through AIX4.2
6781 # and later when we are not doing run time linking.
6782 library_names_spec='${libname}${release}.a $libname.a'
6783 soname_spec='${libname}${release}.so$major'
6785 shlibpath_var=LIBPATH
6787 hardcode_into_libs=yes
6791 library_names_spec='$libname.ixlibrary $libname.a'
6792 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6793 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'
6797 library_names_spec='${libname}.so'
6798 dynamic_linker="$host_os ld.so"
6799 shlibpath_var=LIBRARY_PATH
6805 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6806 soname_spec='${libname}${release}.so$major'
6807 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6808 shlibpath_var=LD_LIBRARY_PATH
6809 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6810 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6811 export_dynamic_flag_spec=-rdynamic
6812 # the default ld.so.conf also contains /usr/contrib/lib and
6813 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6814 # libtool to hard-code these into programs
6817 cygwin* | mingw* | pw32*)
6818 version_type=windows
6821 case $GCC,$host_os in
6823 library_names_spec='$libname.dll.a'
6824 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6825 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
6826 dldir=$destdir/`dirname \$dlpath`~
6827 test -d \$dldir || mkdir -p \$dldir~
6828 $install_prog .libs/$dlname \$dldir/$dlname'
6829 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
6830 dlpath=$dir/\$dldll~
6834 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6835 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
6838 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
6841 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
6844 dynamic_linker='Win32 ld.exe'
6845 # FIXME: first we should search . and the directory the executable is in
6849 darwin* | rhapsody*)
6850 dynamic_linker="$host_os dyld"
6854 # FIXME: Relying on posixy $() will cause problems for
6855 # cross-compilation, but unfortunately the echo tests do not
6856 # yet detect zsh echo's removal of \ escapes.
6857 library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
6858 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
6859 shlibpath_overrides_runpath=yes
6860 shlibpath_var=DYLD_LIBRARY_PATH
6868 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6869 version_type=freebsd-$objformat
6870 case $version_type in
6872 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6877 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
6881 shlibpath_var=LD_LIBRARY_PATH
6884 shlibpath_overrides_runpath=yes
6887 shlibpath_overrides_runpath=no
6888 hardcode_into_libs=yes
6897 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
6898 soname_spec='${libname}${release}.so$major'
6899 shlibpath_var=LD_LIBRARY_PATH
6900 hardcode_into_libs=yes
6903 hpux9* | hpux10* | hpux11*)
6904 # Give a soname corresponding to the major version so that dld.sl refuses to
6905 # link against other versions.
6906 dynamic_linker="$host_os dld.sl"
6910 shlibpath_var=SHLIB_PATH
6911 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6912 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
6913 soname_spec='${libname}${release}.sl$major'
6914 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6915 postinstall_cmds='chmod 555 $lib'
6918 irix5* | irix6* | nonstopux*)
6920 nonstopux*) version_type=nonstopux ;;
6921 *) version_type=irix ;;
6925 soname_spec='${libname}${release}.so$major'
6926 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
6928 irix5* | nonstopux*)
6932 case $LD in # libtool.m4 will add one of these switches to LD
6933 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
6934 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
6935 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
6936 *) libsuff= shlibsuff= libmagic=never-match;;
6940 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6941 shlibpath_overrides_runpath=no
6942 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6943 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6946 # No shared lib support for Linux oldld, aout, or coff.
6947 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
6951 # This must be Linux ELF.
6956 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6957 soname_spec='${libname}${release}.so$major'
6958 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6959 shlibpath_var=LD_LIBRARY_PATH
6960 shlibpath_overrides_runpath=no
6961 # This implies no fast_install, which is unacceptable.
6962 # Some rework will be needed to allow for fast_install
6963 # before this can be enabled.
6964 hardcode_into_libs=yes
6966 # We used to test for /lib/ld.so.1 and disable shared libraries on
6967 # powerpc, because MkLinux only supported shared libraries with the
6968 # GNU dynamic linker. Since this was broken with cross compilers,
6969 # most powerpc-linux boxes support dynamic linking these days and
6970 # people can always --disable-shared, the test was removed, and we
6971 # assume the GNU/Linux dynamic linker is in use.
6972 dynamic_linker='GNU/Linux ld.so'
6974 # Find out which ABI we are using (multilib Linux x86_64 hack).
6978 echo '#line 6978 "configure"' > conftest.$ac_ext
6979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6980 (eval $ac_compile) 2>&5
6982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6983 (exit $ac_status); }; then
6984 case `/usr/bin/file conftest.$ac_objext` in
6995 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
6996 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
7003 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7004 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
7005 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7006 dynamic_linker='NetBSD (a.out) ld.so'
7008 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
7009 soname_spec='${libname}${release}.so$major'
7010 dynamic_linker='NetBSD ld.elf_so'
7012 shlibpath_var=LD_LIBRARY_PATH
7013 shlibpath_overrides_runpath=yes
7014 hardcode_into_libs=yes
7019 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7020 shlibpath_var=LD_LIBRARY_PATH
7021 shlibpath_overrides_runpath=yes
7028 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7030 openbsd2.[89] | openbsd2.[89].*)
7031 shlibpath_overrides_runpath=no
7034 shlibpath_overrides_runpath=yes
7038 shlibpath_overrides_runpath=yes
7040 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
7041 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7042 shlibpath_var=LD_LIBRARY_PATH
7046 libname_spec='$name'
7048 library_names_spec='$libname.dll $libname.a'
7049 dynamic_linker='OS/2 ld.exe'
7050 shlibpath_var=LIBPATH
7053 osf3* | osf4* | osf5*)
7056 soname_spec='${libname}${release}.so$major'
7057 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7058 shlibpath_var=LD_LIBRARY_PATH
7059 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7060 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7061 hardcode_into_libs=yes
7066 soname_spec='${libname}${release}.so$major'
7067 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7068 shlibpath_var=LD_LIBRARY_PATH
7075 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7076 soname_spec='${libname}${release}.so$major'
7077 shlibpath_var=LD_LIBRARY_PATH
7078 shlibpath_overrides_runpath=yes
7079 hardcode_into_libs=yes
7080 # ldd complains unless libraries are executable
7081 postinstall_cmds='chmod +x $lib'
7086 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
7087 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7088 shlibpath_var=LD_LIBRARY_PATH
7089 shlibpath_overrides_runpath=yes
7090 if test "$with_gnu_ld" = yes; then
7096 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7098 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7099 soname_spec='${libname}${release}.so$major'
7100 shlibpath_var=LD_LIBRARY_PATH
7101 case $host_vendor in
7103 shlibpath_overrides_runpath=no
7105 export_dynamic_flag_spec='${wl}-Blargedynsym'
7106 runpath_var=LD_RUN_PATH
7114 shlibpath_overrides_runpath=no
7115 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7122 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7123 soname_spec='${libname}${release}.so$major'
7124 shlibpath_var=LD_LIBRARY_PATH
7131 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7132 soname_spec='${libname}${release}.so$major'
7133 shlibpath_var=LD_LIBRARY_PATH
7137 if test -d /usr/nec ;then
7139 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
7140 soname_spec='$libname.so.$major'
7141 shlibpath_var=LD_LIBRARY_PATH
7149 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7150 echo "${ECHO_T}$dynamic_linker" >&6
7151 test "$dynamic_linker" = no && can_build_shared=no
7153 # Report the final consequences.
7154 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
7155 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
7156 echo "$as_me:$LINENO: result: $can_build_shared" >&5
7157 echo "${ECHO_T}$can_build_shared" >&6
7159 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
7160 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
7161 test "$can_build_shared" = "no" && enable_shared=no
7163 # On AIX, shared libraries and static libraries use the same namespace, and
7164 # are all built from PIC.
7167 test "$enable_shared" = yes && enable_static=no
7168 if test -n "$RANLIB"; then
7169 archive_cmds="$archive_cmds~\$RANLIB \$lib"
7170 postinstall_cmds='$RANLIB $lib'
7175 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
7176 test "$enable_shared" = yes && enable_static=no
7180 echo "$as_me:$LINENO: result: $enable_shared" >&5
7181 echo "${ECHO_T}$enable_shared" >&6
7183 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
7184 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
7185 # Make sure either enable_shared or enable_static is yes.
7186 test "$enable_shared" = yes || enable_static=yes
7187 echo "$as_me:$LINENO: result: $enable_static" >&5
7188 echo "${ECHO_T}$enable_static" >&6
7190 if test "$hardcode_action" = relink; then
7191 # Fast installation is not supported
7192 enable_fast_install=no
7193 elif test "$shlibpath_overrides_runpath" = yes ||
7194 test "$enable_shared" = no; then
7195 # Fast installation is not necessary
7196 enable_fast_install=needless
7199 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7200 if test "$GCC" = yes; then
7201 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7204 if test "x$enable_dlopen" != xyes; then
7205 enable_dlopen=unknown
7206 enable_dlopen_self=unknown
7207 enable_dlopen_self_static=unknown
7214 lt_cv_dlopen="load_add_on"
7216 lt_cv_dlopen_self=yes
7219 cygwin* | mingw* | pw32*)
7220 lt_cv_dlopen="LoadLibrary"
7225 echo "$as_me:$LINENO: checking for shl_load" >&5
7226 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7227 if test "${ac_cv_func_shl_load+set}" = set; then
7228 echo $ECHO_N "(cached) $ECHO_C" >&6
7230 cat >conftest.$ac_ext <<_ACEOF
7231 #line $LINENO "configure"
7234 cat confdefs.h >>conftest.$ac_ext
7235 cat >>conftest.$ac_ext <<_ACEOF
7236 /* end confdefs.h. */
7237 /* System header to define __stub macros and hopefully few prototypes,
7238 which can conflict with char shl_load (); below.
7239 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7240 <limits.h> exists even on freestanding compilers. */
7242 # include <limits.h>
7244 # include <assert.h>
7246 /* Override any gcc2 internal prototype to avoid an error. */
7251 /* We use char because int might match the return type of a gcc2
7252 builtin and then its argument prototype would still apply. */
7254 /* The GNU C library defines this for functions which it implements
7255 to always fail with ENOSYS. Some functions are actually named
7256 something starting with __ and the normal name is an alias. */
7257 #if defined (__stub_shl_load) || defined (__stub___shl_load)
7260 char (*f) () = shl_load;
7269 return f != shl_load;
7274 rm -f conftest.$ac_objext conftest$ac_exeext
7275 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7276 (eval $ac_link) 2>&5
7278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7279 (exit $ac_status); } &&
7280 { ac_try='test -s conftest$ac_exeext'
7281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7285 (exit $ac_status); }; }; then
7286 ac_cv_func_shl_load=yes
7288 echo "$as_me: failed program was:" >&5
7289 sed 's/^/| /' conftest.$ac_ext >&5
7291 ac_cv_func_shl_load=no
7293 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7295 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7296 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7297 if test $ac_cv_func_shl_load = yes; then
7298 lt_cv_dlopen="shl_load"
7300 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7301 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7302 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7303 echo $ECHO_N "(cached) $ECHO_C" >&6
7305 ac_check_lib_save_LIBS=$LIBS
7307 cat >conftest.$ac_ext <<_ACEOF
7308 #line $LINENO "configure"
7311 cat confdefs.h >>conftest.$ac_ext
7312 cat >>conftest.$ac_ext <<_ACEOF
7313 /* end confdefs.h. */
7315 /* Override any gcc2 internal prototype to avoid an error. */
7319 /* We use char because int might match the return type of a gcc2
7320 builtin and then its argument prototype would still apply. */
7330 rm -f conftest.$ac_objext conftest$ac_exeext
7331 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7332 (eval $ac_link) 2>&5
7334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7335 (exit $ac_status); } &&
7336 { ac_try='test -s conftest$ac_exeext'
7337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7341 (exit $ac_status); }; }; then
7342 ac_cv_lib_dld_shl_load=yes
7344 echo "$as_me: failed program was:" >&5
7345 sed 's/^/| /' conftest.$ac_ext >&5
7347 ac_cv_lib_dld_shl_load=no
7349 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7350 LIBS=$ac_check_lib_save_LIBS
7352 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7353 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7354 if test $ac_cv_lib_dld_shl_load = yes; then
7355 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
7357 echo "$as_me:$LINENO: checking for dlopen" >&5
7358 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7359 if test "${ac_cv_func_dlopen+set}" = set; then
7360 echo $ECHO_N "(cached) $ECHO_C" >&6
7362 cat >conftest.$ac_ext <<_ACEOF
7363 #line $LINENO "configure"
7366 cat confdefs.h >>conftest.$ac_ext
7367 cat >>conftest.$ac_ext <<_ACEOF
7368 /* end confdefs.h. */
7369 /* System header to define __stub macros and hopefully few prototypes,
7370 which can conflict with char dlopen (); below.
7371 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7372 <limits.h> exists even on freestanding compilers. */
7374 # include <limits.h>
7376 # include <assert.h>
7378 /* Override any gcc2 internal prototype to avoid an error. */
7383 /* We use char because int might match the return type of a gcc2
7384 builtin and then its argument prototype would still apply. */
7386 /* The GNU C library defines this for functions which it implements
7387 to always fail with ENOSYS. Some functions are actually named
7388 something starting with __ and the normal name is an alias. */
7389 #if defined (__stub_dlopen) || defined (__stub___dlopen)
7392 char (*f) () = dlopen;
7406 rm -f conftest.$ac_objext conftest$ac_exeext
7407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7408 (eval $ac_link) 2>&5
7410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7411 (exit $ac_status); } &&
7412 { ac_try='test -s conftest$ac_exeext'
7413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7417 (exit $ac_status); }; }; then
7418 ac_cv_func_dlopen=yes
7420 echo "$as_me: failed program was:" >&5
7421 sed 's/^/| /' conftest.$ac_ext >&5
7423 ac_cv_func_dlopen=no
7425 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7427 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
7428 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
7429 if test $ac_cv_func_dlopen = yes; then
7430 lt_cv_dlopen="dlopen"
7432 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7433 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7434 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7435 echo $ECHO_N "(cached) $ECHO_C" >&6
7437 ac_check_lib_save_LIBS=$LIBS
7439 cat >conftest.$ac_ext <<_ACEOF
7440 #line $LINENO "configure"
7443 cat confdefs.h >>conftest.$ac_ext
7444 cat >>conftest.$ac_ext <<_ACEOF
7445 /* end confdefs.h. */
7447 /* Override any gcc2 internal prototype to avoid an error. */
7451 /* We use char because int might match the return type of a gcc2
7452 builtin and then its argument prototype would still apply. */
7462 rm -f conftest.$ac_objext conftest$ac_exeext
7463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7464 (eval $ac_link) 2>&5
7466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7467 (exit $ac_status); } &&
7468 { ac_try='test -s conftest$ac_exeext'
7469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7473 (exit $ac_status); }; }; then
7474 ac_cv_lib_dl_dlopen=yes
7476 echo "$as_me: failed program was:" >&5
7477 sed 's/^/| /' conftest.$ac_ext >&5
7479 ac_cv_lib_dl_dlopen=no
7481 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7482 LIBS=$ac_check_lib_save_LIBS
7484 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7485 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7486 if test $ac_cv_lib_dl_dlopen = yes; then
7487 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7489 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7490 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7491 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7492 echo $ECHO_N "(cached) $ECHO_C" >&6
7494 ac_check_lib_save_LIBS=$LIBS
7496 cat >conftest.$ac_ext <<_ACEOF
7497 #line $LINENO "configure"
7500 cat confdefs.h >>conftest.$ac_ext
7501 cat >>conftest.$ac_ext <<_ACEOF
7502 /* end confdefs.h. */
7504 /* Override any gcc2 internal prototype to avoid an error. */
7508 /* We use char because int might match the return type of a gcc2
7509 builtin and then its argument prototype would still apply. */
7519 rm -f conftest.$ac_objext conftest$ac_exeext
7520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7521 (eval $ac_link) 2>&5
7523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7524 (exit $ac_status); } &&
7525 { ac_try='test -s conftest$ac_exeext'
7526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7530 (exit $ac_status); }; }; then
7531 ac_cv_lib_svld_dlopen=yes
7533 echo "$as_me: failed program was:" >&5
7534 sed 's/^/| /' conftest.$ac_ext >&5
7536 ac_cv_lib_svld_dlopen=no
7538 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7539 LIBS=$ac_check_lib_save_LIBS
7541 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7542 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7543 if test $ac_cv_lib_svld_dlopen = yes; then
7544 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
7546 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7547 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7548 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7549 echo $ECHO_N "(cached) $ECHO_C" >&6
7551 ac_check_lib_save_LIBS=$LIBS
7553 cat >conftest.$ac_ext <<_ACEOF
7554 #line $LINENO "configure"
7557 cat confdefs.h >>conftest.$ac_ext
7558 cat >>conftest.$ac_ext <<_ACEOF
7559 /* end confdefs.h. */
7561 /* Override any gcc2 internal prototype to avoid an error. */
7565 /* We use char because int might match the return type of a gcc2
7566 builtin and then its argument prototype would still apply. */
7576 rm -f conftest.$ac_objext conftest$ac_exeext
7577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7578 (eval $ac_link) 2>&5
7580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7581 (exit $ac_status); } &&
7582 { ac_try='test -s conftest$ac_exeext'
7583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7587 (exit $ac_status); }; }; then
7588 ac_cv_lib_dld_dld_link=yes
7590 echo "$as_me: failed program was:" >&5
7591 sed 's/^/| /' conftest.$ac_ext >&5
7593 ac_cv_lib_dld_dld_link=no
7595 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7596 LIBS=$ac_check_lib_save_LIBS
7598 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7599 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7600 if test $ac_cv_lib_dld_dld_link = yes; then
7601 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
7622 if test "x$lt_cv_dlopen" != xno; then
7628 case $lt_cv_dlopen in
7630 save_CPPFLAGS="$CPPFLAGS"
7631 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
7633 save_LDFLAGS="$LDFLAGS"
7634 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
7637 LIBS="$lt_cv_dlopen_libs $LIBS"
7639 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
7640 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
7641 if test "${lt_cv_dlopen_self+set}" = set; then
7642 echo $ECHO_N "(cached) $ECHO_C" >&6
7644 if test "$cross_compiling" = yes; then :
7645 lt_cv_dlopen_self=cross
7647 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7648 lt_status=$lt_dlunknown
7649 cat > conftest.$ac_ext <<EOF
7650 #line 7650 "configure"
7651 #include "confdefs.h"
7660 # define LT_DLGLOBAL RTLD_GLOBAL
7663 # define LT_DLGLOBAL DL_GLOBAL
7665 # define LT_DLGLOBAL 0
7669 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7670 find out it does not work in some platform. */
7671 #ifndef LT_DLLAZY_OR_NOW
7673 # define LT_DLLAZY_OR_NOW RTLD_LAZY
7676 # define LT_DLLAZY_OR_NOW DL_LAZY
7679 # define LT_DLLAZY_OR_NOW RTLD_NOW
7682 # define LT_DLLAZY_OR_NOW DL_NOW
7684 # define LT_DLLAZY_OR_NOW 0
7692 extern "C" void exit (int);
7695 void fnord() { int i=42;}
7698 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7699 int status = $lt_dlunknown;
7703 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7704 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7705 /* dlclose (self); */
7711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7712 (eval $ac_link) 2>&5
7714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7715 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7716 (./conftest; exit; ) 2>/dev/null
7719 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
7720 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
7721 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
7724 # compilation failed
7725 lt_cv_dlopen_self=no
7732 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
7733 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
7735 if test "x$lt_cv_dlopen_self" = xyes; then
7736 LDFLAGS="$LDFLAGS $link_static_flag"
7737 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
7738 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
7739 if test "${lt_cv_dlopen_self_static+set}" = set; then
7740 echo $ECHO_N "(cached) $ECHO_C" >&6
7742 if test "$cross_compiling" = yes; then :
7743 lt_cv_dlopen_self_static=cross
7745 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7746 lt_status=$lt_dlunknown
7747 cat > conftest.$ac_ext <<EOF
7748 #line 7748 "configure"
7749 #include "confdefs.h"
7758 # define LT_DLGLOBAL RTLD_GLOBAL
7761 # define LT_DLGLOBAL DL_GLOBAL
7763 # define LT_DLGLOBAL 0
7767 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7768 find out it does not work in some platform. */
7769 #ifndef LT_DLLAZY_OR_NOW
7771 # define LT_DLLAZY_OR_NOW RTLD_LAZY
7774 # define LT_DLLAZY_OR_NOW DL_LAZY
7777 # define LT_DLLAZY_OR_NOW RTLD_NOW
7780 # define LT_DLLAZY_OR_NOW DL_NOW
7782 # define LT_DLLAZY_OR_NOW 0
7790 extern "C" void exit (int);
7793 void fnord() { int i=42;}
7796 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7797 int status = $lt_dlunknown;
7801 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7802 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7803 /* dlclose (self); */
7809 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7810 (eval $ac_link) 2>&5
7812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7813 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7814 (./conftest; exit; ) 2>/dev/null
7817 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
7818 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
7819 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
7822 # compilation failed
7823 lt_cv_dlopen_self_static=no
7830 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
7831 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
7834 CPPFLAGS="$save_CPPFLAGS"
7835 LDFLAGS="$save_LDFLAGS"
7840 case $lt_cv_dlopen_self in
7841 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
7842 *) enable_dlopen_self=unknown ;;
7845 case $lt_cv_dlopen_self_static in
7846 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
7847 *) enable_dlopen_self_static=unknown ;;
7852 if test "$enable_shared" = yes && test "$GCC" = yes; then
7853 case $archive_cmds in
7855 # FIXME: we may have to deal with multi-command sequences.
7858 # Test whether the compiler implicitly links with -lc since on some
7859 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7860 # to ld, don't add -lc before -lgcc.
7861 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7862 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7863 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
7864 echo $ECHO_N "(cached) $ECHO_C" >&6
7867 echo 'static int dummy;' > conftest.$ac_ext
7869 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7870 (eval $ac_compile) 2>&5
7872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7873 (exit $ac_status); }; then
7876 libobjs=conftest.$ac_objext
7878 wl=$lt_cv_prog_cc_wl
7884 save_allow_undefined_flag=$allow_undefined_flag
7885 allow_undefined_flag=
7886 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7887 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7890 (exit $ac_status); }
7892 lt_cv_archive_cmds_need_lc=no
7894 lt_cv_archive_cmds_need_lc=yes
7896 allow_undefined_flag=$save_allow_undefined_flag
7898 cat conftest.err 1>&5
7902 echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
7903 echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
7907 need_lc=${lt_cv_archive_cmds_need_lc-yes}
7909 # The second clause should only fire when bootstrapping the
7910 # libtool distribution, otherwise you forgot to ship ltmain.sh
7911 # with your package, and you will get complaints that there are
7912 # no rules to generate ltmain.sh.
7913 if test -f "$ltmain"; then
7916 # If there is no Makefile yet, we rely on a make rule to execute
7917 # `config.status --recheck' to rerun these tests and create the
7918 # libtool script then.
7919 test -f Makefile && make "$ltmain"
7922 if test -f "$ltmain"; then
7923 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
7926 echo creating $ofile
7928 # Now quote all the things that may contain metacharacters while being
7929 # careful not to overquote the AC_SUBSTed values. We take copies of the
7930 # variables and quote the copies for generation of the libtool script.
7931 for var in echo old_CC old_CFLAGS SED \
7932 AR AR_FLAGS CC LD LN_S NM SHELL \
7933 reload_flag reload_cmds wl \
7934 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
7935 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
7936 library_names_spec soname_spec \
7937 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
7938 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
7939 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
7940 old_striplib striplib file_magic_cmd export_symbols_cmds \
7941 deplibs_check_method allow_undefined_flag no_undefined_flag \
7942 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
7943 global_symbol_to_c_name_address \
7944 hardcode_libdir_flag_spec hardcode_libdir_separator \
7945 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
7946 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
7949 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
7950 old_postinstall_cmds | old_postuninstall_cmds | \
7951 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
7952 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
7953 postinstall_cmds | postuninstall_cmds | \
7954 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
7955 # Double-quote double-evaled strings.
7956 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
7959 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
7964 cat <<__EOF__ > "${ofile}T"
7967 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7968 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7969 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
7971 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
7972 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7974 # This program is free software; you can redistribute it and/or modify
7975 # it under the terms of the GNU General Public License as published by
7976 # the Free Software Foundation; either version 2 of the License, or
7977 # (at your option) any later version.
7979 # This program is distributed in the hope that it will be useful, but
7980 # WITHOUT ANY WARRANTY; without even the implied warranty of
7981 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
7982 # General Public License for more details.
7984 # You should have received a copy of the GNU General Public License
7985 # along with this program; if not, write to the Free Software
7986 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7988 # As a special exception to the GNU General Public License, if you
7989 # distribute this file as part of a program that contains a
7990 # configuration script generated by Autoconf, you may include it under
7991 # the same distribution terms that you use for the rest of that program.
7993 # A sed that does not truncate output.
7996 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
7997 Xsed="${SED} -e s/^X//"
7999 # The HP-UX ksh and POSIX shell print the target directory to stdout
8001 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8003 # ### BEGIN LIBTOOL CONFIG
8005 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8007 # Shell to use when invoking shell scripts.
8010 # Whether or not to build shared libraries.
8011 build_libtool_libs=$enable_shared
8013 # Whether or not to build static libraries.
8014 build_old_libs=$enable_static
8016 # Whether or not to add -lc for building shared libraries.
8017 build_libtool_need_lc=$need_lc
8019 # Whether or not to optimize for fast installation.
8020 fast_install=$enable_fast_install
8023 host_alias=$host_alias
8026 # An echo program that does not interpret backslashes.
8031 AR_FLAGS=$lt_AR_FLAGS
8033 # The default C compiler.
8036 # Is the compiler the GNU C compiler?
8039 # The linker used to build libraries.
8042 # Whether we need hard or soft links.
8045 # A BSD-compatible nm program.
8048 # A symbol stripping program
8051 # Used to examine libraries when file_magic_cmd begins "file"
8052 MAGIC_CMD=$MAGIC_CMD
8054 # Used on cygwin: DLL creation program.
8057 # Used on cygwin: object dumper.
8060 # Used on cygwin: assembler.
8063 # The name of the directory that contains temporary libtool files.
8066 # How to create reloadable object files.
8067 reload_flag=$lt_reload_flag
8068 reload_cmds=$lt_reload_cmds
8070 # How to pass a linker flag through the compiler.
8073 # Object file suffix (normally "o").
8076 # Old archive suffix (normally "a").
8079 # Executable file suffix (normally "").
8082 # Additional compiler flags for building library objects.
8083 pic_flag=$lt_pic_flag
8086 # Does compiler simultaneously support -c and -o options?
8087 compiler_c_o=$lt_compiler_c_o
8089 # Can we write directly to a .lo ?
8090 compiler_o_lo=$lt_compiler_o_lo
8092 # Must we lock files when doing compilation ?
8093 need_locks=$lt_need_locks
8095 # Do we need the lib prefix for modules?
8096 need_lib_prefix=$need_lib_prefix
8098 # Do we need a version for libraries?
8099 need_version=$need_version
8101 # Whether dlopen is supported.
8102 dlopen_support=$enable_dlopen
8104 # Whether dlopen of programs is supported.
8105 dlopen_self=$enable_dlopen_self
8107 # Whether dlopen of statically linked programs is supported.
8108 dlopen_self_static=$enable_dlopen_self_static
8110 # Compiler flag to prevent dynamic linking.
8111 link_static_flag=$lt_link_static_flag
8113 # Compiler flag to turn off builtin functions.
8114 no_builtin_flag=$lt_no_builtin_flag
8116 # Compiler flag to allow reflexive dlopens.
8117 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
8119 # Compiler flag to generate shared objects directly from archives.
8120 whole_archive_flag_spec=$lt_whole_archive_flag_spec
8122 # Compiler flag to generate thread-safe objects.
8123 thread_safe_flag_spec=$lt_thread_safe_flag_spec
8125 # Library versioning type.
8126 version_type=$version_type
8128 # Format of library name prefix.
8129 libname_spec=$lt_libname_spec
8131 # List of archive names. First name is the real one, the rest are links.
8132 # The last name is the one that the linker finds with -lNAME.
8133 library_names_spec=$lt_library_names_spec
8135 # The coded name of the library, if different from the real name.
8136 soname_spec=$lt_soname_spec
8138 # Commands used to build and install an old-style archive.
8140 old_archive_cmds=$lt_old_archive_cmds
8141 old_postinstall_cmds=$lt_old_postinstall_cmds
8142 old_postuninstall_cmds=$lt_old_postuninstall_cmds
8144 # Create an old-style archive from a shared archive.
8145 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
8147 # Create a temporary old-style archive to link instead of a shared archive.
8148 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
8150 # Commands used to build and install a shared archive.
8151 archive_cmds=$lt_archive_cmds
8152 archive_expsym_cmds=$lt_archive_expsym_cmds
8153 postinstall_cmds=$lt_postinstall_cmds
8154 postuninstall_cmds=$lt_postuninstall_cmds
8156 # Commands to strip libraries.
8157 old_striplib=$lt_old_striplib
8158 striplib=$lt_striplib
8160 # Method to check whether dependent libraries are shared objects.
8161 deplibs_check_method=$lt_deplibs_check_method
8163 # Command to use when deplibs_check_method == file_magic.
8164 file_magic_cmd=$lt_file_magic_cmd
8166 # Flag that allows shared libraries with undefined symbols to be built.
8167 allow_undefined_flag=$lt_allow_undefined_flag
8169 # Flag that forces no undefined symbols.
8170 no_undefined_flag=$lt_no_undefined_flag
8172 # Commands used to finish a libtool library installation in a directory.
8173 finish_cmds=$lt_finish_cmds
8175 # Same as above, but a single script fragment to be evaled but not shown.
8176 finish_eval=$lt_finish_eval
8178 # Take the output of nm and produce a listing of raw symbols and C names.
8179 global_symbol_pipe=$lt_global_symbol_pipe
8181 # Transform the output of nm in a proper C declaration
8182 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
8184 # Transform the output of nm in a C name address pair
8185 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
8187 # This is the shared library runtime path variable.
8188 runpath_var=$runpath_var
8190 # This is the shared library path variable.
8191 shlibpath_var=$shlibpath_var
8193 # Is shlibpath searched before the hard-coded library search path?
8194 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
8196 # How to hardcode a shared library path into an executable.
8197 hardcode_action=$hardcode_action
8199 # Whether we should hardcode library paths into libraries.
8200 hardcode_into_libs=$hardcode_into_libs
8202 # Flag to hardcode \$libdir into a binary during linking.
8203 # This must work even if \$libdir does not exist.
8204 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
8206 # Whether we need a single -rpath flag with a separated argument.
8207 hardcode_libdir_separator=$lt_hardcode_libdir_separator
8209 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
8211 hardcode_direct=$hardcode_direct
8213 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
8215 hardcode_minus_L=$hardcode_minus_L
8217 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
8218 # the resulting binary.
8219 hardcode_shlibpath_var=$hardcode_shlibpath_var
8221 # Variables whose values should be saved in libtool wrapper scripts and
8222 # restored at relink time.
8223 variables_saved_for_relink="$variables_saved_for_relink"
8225 # Whether libtool must link a program against all its dependency libraries.
8226 link_all_deplibs=$link_all_deplibs
8228 # Compile-time system search path for libraries
8229 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
8231 # Run-time system search path for libraries
8232 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
8234 # Fix the shell variable \$srcfile for the compiler.
8235 fix_srcfile_path="$fix_srcfile_path"
8237 # Set to yes if exported symbols are required.
8238 always_export_symbols=$always_export_symbols
8240 # The commands to list exported symbols.
8241 export_symbols_cmds=$lt_export_symbols_cmds
8243 # The commands to extract the exported symbol list from a shared archive.
8244 extract_expsyms_cmds=$lt_extract_expsyms_cmds
8246 # Symbols that should not be listed in the preloaded symbols.
8247 exclude_expsyms=$lt_exclude_expsyms
8249 # Symbols that must always be exported.
8250 include_expsyms=$lt_include_expsyms
8252 # ### END LIBTOOL CONFIG
8258 cat <<\EOF >> "${ofile}T"
8260 # AIX sometimes has problems with the GCC collect2 program. For some
8261 # reason, if we set the COLLECT_NAMES environment variable, the problems
8262 # vanish in a puff of smoke.
8263 if test "X${COLLECT_NAMES+set}" != Xset; then
8265 export COLLECT_NAMES
8272 cygwin* | mingw* | pw32* | os2*)
8273 cat <<'EOF' >> "${ofile}T"
8274 # This is a source program that is used to create dlls on Windows
8275 # Don't remove nor modify the starting and closing comments
8276 # /* ltdll.c starts here */
8277 # #define WIN32_LEAN_AND_MEAN
8278 # #include <windows.h>
8279 # #undef WIN32_LEAN_AND_MEAN
8280 # #include <stdio.h>
8282 # #ifndef __CYGWIN__
8283 # # ifdef __CYGWIN32__
8284 # # define __CYGWIN__ __CYGWIN32__
8288 # #ifdef __cplusplus
8291 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
8292 # #ifdef __cplusplus
8297 # #include <cygwin/cygwin_dll.h>
8298 # DECLARE_CYGWIN_DLL( DllMain );
8300 # HINSTANCE __hDllInstance_base;
8303 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
8305 # __hDllInstance_base = hInst;
8308 # /* ltdll.c ends here */
8309 # This is a source program that is used to create import libraries
8310 # on Windows for dlls which lack them. Don't remove nor modify the
8311 # starting and closing comments
8312 # /* impgen.c starts here */
8313 # /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
8315 # This file is part of GNU libtool.
8317 # This program is free software; you can redistribute it and/or modify
8318 # it under the terms of the GNU General Public License as published by
8319 # the Free Software Foundation; either version 2 of the License, or
8320 # (at your option) any later version.
8322 # This program is distributed in the hope that it will be useful,
8323 # but WITHOUT ANY WARRANTY; without even the implied warranty of
8324 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
8325 # GNU General Public License for more details.
8327 # You should have received a copy of the GNU General Public License
8328 # along with this program; if not, write to the Free Software
8329 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8332 # #include <stdio.h> /* for printf() */
8333 # #include <unistd.h> /* for open(), lseek(), read() */
8334 # #include <fcntl.h> /* for O_RDONLY, O_BINARY */
8335 # #include <string.h> /* for strdup() */
8337 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
8339 # #define O_BINARY 0
8342 # static unsigned int
8343 # pe_get16 (fd, offset)
8347 # unsigned char b[2];
8348 # lseek (fd, offset, SEEK_SET);
8350 # return b[0] + (b[1]<<8);
8353 # static unsigned int
8354 # pe_get32 (fd, offset)
8358 # unsigned char b[4];
8359 # lseek (fd, offset, SEEK_SET);
8361 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8364 # static unsigned int
8368 # unsigned char *b = ptr;
8369 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8378 # unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
8379 # unsigned long export_rva, export_size, nsections, secptr, expptr;
8380 # unsigned long name_rvas, nexp;
8381 # unsigned char *expdata, *erva;
8382 # char *filename, *dll_name;
8384 # filename = argv[1];
8386 # dll = open(filename, O_RDONLY|O_BINARY);
8390 # dll_name = filename;
8392 # for (i=0; filename[i]; i++)
8393 # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
8394 # dll_name = filename + i +1;
8396 # pe_header_offset = pe_get32 (dll, 0x3c);
8397 # opthdr_ofs = pe_header_offset + 4 + 20;
8398 # num_entries = pe_get32 (dll, opthdr_ofs + 92);
8400 # if (num_entries < 1) /* no exports */
8403 # export_rva = pe_get32 (dll, opthdr_ofs + 96);
8404 # export_size = pe_get32 (dll, opthdr_ofs + 100);
8405 # nsections = pe_get16 (dll, pe_header_offset + 4 +2);
8406 # secptr = (pe_header_offset + 4 + 20 +
8407 # pe_get16 (dll, pe_header_offset + 4 + 16));
8410 # for (i = 0; i < nsections; i++)
8413 # unsigned long secptr1 = secptr + 40 * i;
8414 # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
8415 # unsigned long vsize = pe_get32 (dll, secptr1 + 16);
8416 # unsigned long fptr = pe_get32 (dll, secptr1 + 20);
8417 # lseek(dll, secptr1, SEEK_SET);
8418 # read(dll, sname, 8);
8419 # if (vaddr <= export_rva && vaddr+vsize > export_rva)
8421 # expptr = fptr + (export_rva - vaddr);
8422 # if (export_rva + export_size > vaddr + vsize)
8423 # export_size = vsize - (export_rva - vaddr);
8428 # expdata = (unsigned char*)malloc(export_size);
8429 # lseek (dll, expptr, SEEK_SET);
8430 # read (dll, expdata, export_size);
8431 # erva = expdata - export_rva;
8433 # nexp = pe_as32 (expdata+24);
8434 # name_rvas = pe_as32 (expdata+32);
8436 # printf ("EXPORTS\n");
8437 # for (i = 0; i<nexp; i++)
8439 # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
8440 # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
8445 # /* impgen.c ends here */
8451 # We use sed instead of cat because bash on DJGPP gets confused if
8452 # if finds mixed CR/LF and LF-only lines. Since sed operates in
8453 # text mode, it properly converts lines to CR/LF. This bash problem
8454 # is reportedly fixed, but why not run on old versions too?
8455 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
8457 mv -f "${ofile}T" "$ofile" || \
8458 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
8466 # This can be used to rebuild libtool when needed
8467 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
8469 # Always use our own libtool.
8470 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8472 # Prevent multiple expansion
8475 #LIBTOOL="$LIBTOOL --silent"
8477 ac_cpp='$CPP $CPPFLAGS'
8478 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8479 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8480 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8483 LIBTOOL_SHELL='/bin/sh ./libtool'
8485 LIBTOOL_SHELL=$LIBTOOL
8488 # add --with-extra-includes and --with-extra-libs switch to ./configure
8489 all_libraries="$all_libraries $USER_LDFLAGS"
8490 all_includes="$all_includes $USER_INCLUDES"
8501 if test ! -z "$CC"; then
8507 # Check for gcc version being >= 2.96.
8508 echo "$as_me:$LINENO: checking version of $_cc" >&5
8509 echo $ECHO_N "checking version of $_cc... $ECHO_C" >&6
8510 cc_version=`./getgccver $_cc`
8511 cc_major=`echo $cc_version | cut -d'.' -f1`
8512 cc_minor=`echo $cc_version | cut -d'.' -f2`
8513 if test -z "$cc_version"; then
8514 cc_version="v. ?.??"
8518 if test $cc_major -lt 2 -o \( $cc_major -eq 2 -a $cc_minor -lt 96 \) ; then
8519 cc_version="$cc_version, bad"
8520 echo "$as_me:$LINENO: result: $cc_version" >&5
8521 echo "${ECHO_T}$cc_version" >&6
8522 { { echo "$as_me:$LINENO: error: Please upgrade your gcc compiler to gcc-2.96+ or gcc-3+ version!\
8523 Earlier compiler versions will NOT work as these do not support \
8524 unnamed/annonymous structures and unions which are used heavily in linux-ntfs." >&5
8525 echo "$as_me: error: Please upgrade your gcc compiler to gcc-2.96+ or gcc-3+ version!\
8526 Earlier compiler versions will NOT work as these do not support \
8527 unnamed/annonymous structures and unions which are used heavily in linux-ntfs." >&2;}
8528 { (exit 1); exit 1; }; }
8530 cc_version="$cc_version, ok"
8531 echo "$as_me:$LINENO: result: $cc_version" >&5
8532 echo "${ECHO_T}$cc_version" >&6
8534 # Add -fms-extensions for gcc-3.2+.
8537 if test $cc_major -gt 3 -o \( $cc_major -eq 3 -a $cc_minor -ge 2 \); then
8538 GCC_NEEDS_MS_EXTENSIONS_TRUE=
8539 GCC_NEEDS_MS_EXTENSIONS_FALSE='#'
8541 GCC_NEEDS_MS_EXTENSIONS_TRUE='#'
8542 GCC_NEEDS_MS_EXTENSIONS_FALSE=
8546 # Checks for libraries.
8548 # Checks for header files.
8549 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8550 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8551 if test "${ac_cv_header_stdc+set}" = set; then
8552 echo $ECHO_N "(cached) $ECHO_C" >&6
8554 cat >conftest.$ac_ext <<_ACEOF
8555 #line $LINENO "configure"
8558 cat confdefs.h >>conftest.$ac_ext
8559 cat >>conftest.$ac_ext <<_ACEOF
8560 /* end confdefs.h. */
8574 rm -f conftest.$ac_objext
8575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8576 (eval $ac_compile) 2>&5
8578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8579 (exit $ac_status); } &&
8580 { ac_try='test -s conftest.$ac_objext'
8581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8585 (exit $ac_status); }; }; then
8586 ac_cv_header_stdc=yes
8588 echo "$as_me: failed program was:" >&5
8589 sed 's/^/| /' conftest.$ac_ext >&5
8591 ac_cv_header_stdc=no
8593 rm -f conftest.$ac_objext conftest.$ac_ext
8595 if test $ac_cv_header_stdc = yes; then
8596 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8597 cat >conftest.$ac_ext <<_ACEOF
8598 #line $LINENO "configure"
8601 cat confdefs.h >>conftest.$ac_ext
8602 cat >>conftest.$ac_ext <<_ACEOF
8603 /* end confdefs.h. */
8607 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8608 $EGREP "memchr" >/dev/null 2>&1; then
8611 ac_cv_header_stdc=no
8617 if test $ac_cv_header_stdc = yes; then
8618 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8619 cat >conftest.$ac_ext <<_ACEOF
8620 #line $LINENO "configure"
8623 cat confdefs.h >>conftest.$ac_ext
8624 cat >>conftest.$ac_ext <<_ACEOF
8625 /* end confdefs.h. */
8629 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8630 $EGREP "free" >/dev/null 2>&1; then
8633 ac_cv_header_stdc=no
8639 if test $ac_cv_header_stdc = yes; then
8640 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8641 if test "$cross_compiling" = yes; then
8644 cat >conftest.$ac_ext <<_ACEOF
8645 #line $LINENO "configure"
8648 cat confdefs.h >>conftest.$ac_ext
8649 cat >>conftest.$ac_ext <<_ACEOF
8650 /* end confdefs.h. */
8652 #if ((' ' & 0x0FF) == 0x020)
8653 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8654 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8656 # define ISLOWER(c) \
8657 (('a' <= (c) && (c) <= 'i') \
8658 || ('j' <= (c) && (c) <= 'r') \
8659 || ('s' <= (c) && (c) <= 'z'))
8660 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8663 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8668 for (i = 0; i < 256; i++)
8669 if (XOR (islower (i), ISLOWER (i))
8670 || toupper (i) != TOUPPER (i))
8675 rm -f conftest$ac_exeext
8676 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8677 (eval $ac_link) 2>&5
8679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8680 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8685 (exit $ac_status); }; }; then
8688 echo "$as_me: program exited with status $ac_status" >&5
8689 echo "$as_me: failed program was:" >&5
8690 sed 's/^/| /' conftest.$ac_ext >&5
8693 ac_cv_header_stdc=no
8695 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8699 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8700 echo "${ECHO_T}$ac_cv_header_stdc" >&6
8701 if test $ac_cv_header_stdc = yes; then
8703 cat >>confdefs.h <<\_ACEOF
8704 #define STDC_HEADERS 1
8734 for ac_header in fcntl.h libintl.h limits.h locale.h mntent.h stddef.h \
8735 stdint.h stdlib.h stdio.h stdarg.h string.h strings.h errno.h time.h \
8736 sys/ioctl.h sys/mount.h unistd.h utime.h wchar.h getopt.h sys/stat.h \
8737 sys/types.h asm/byteorder.h linux/major.h linux/fd.h
8739 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8740 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8741 echo "$as_me:$LINENO: checking for $ac_header" >&5
8742 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8743 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8744 echo $ECHO_N "(cached) $ECHO_C" >&6
8746 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8747 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8749 # Is the header compilable?
8750 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8751 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8752 cat >conftest.$ac_ext <<_ACEOF
8753 #line $LINENO "configure"
8756 cat confdefs.h >>conftest.$ac_ext
8757 cat >>conftest.$ac_ext <<_ACEOF
8758 /* end confdefs.h. */
8759 $ac_includes_default
8760 #include <$ac_header>
8762 rm -f conftest.$ac_objext
8763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8764 (eval $ac_compile) 2>&5
8766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8767 (exit $ac_status); } &&
8768 { ac_try='test -s conftest.$ac_objext'
8769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8773 (exit $ac_status); }; }; then
8774 ac_header_compiler=yes
8776 echo "$as_me: failed program was:" >&5
8777 sed 's/^/| /' conftest.$ac_ext >&5
8779 ac_header_compiler=no
8781 rm -f conftest.$ac_objext conftest.$ac_ext
8782 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8783 echo "${ECHO_T}$ac_header_compiler" >&6
8785 # Is the header present?
8786 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8787 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8788 cat >conftest.$ac_ext <<_ACEOF
8789 #line $LINENO "configure"
8792 cat confdefs.h >>conftest.$ac_ext
8793 cat >>conftest.$ac_ext <<_ACEOF
8794 /* end confdefs.h. */
8795 #include <$ac_header>
8797 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8798 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8800 grep -v '^ *+' conftest.er1 >conftest.err
8802 cat conftest.err >&5
8803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8804 (exit $ac_status); } >/dev/null; then
8805 if test -s conftest.err; then
8806 ac_cpp_err=$ac_c_preproc_warn_flag
8813 if test -z "$ac_cpp_err"; then
8814 ac_header_preproc=yes
8816 echo "$as_me: failed program was:" >&5
8817 sed 's/^/| /' conftest.$ac_ext >&5
8819 ac_header_preproc=no
8821 rm -f conftest.err conftest.$ac_ext
8822 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8823 echo "${ECHO_T}$ac_header_preproc" >&6
8825 # So? What about this header?
8826 case $ac_header_compiler:$ac_header_preproc in
8828 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8829 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8830 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8831 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8834 ## ------------------------------------ ##
8835 ## Report this to bug-autoconf@gnu.org. ##
8836 ## ------------------------------------ ##
8839 sed "s/^/$as_me: WARNING: /" >&2
8842 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8843 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8844 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8845 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8846 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8847 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8850 ## ------------------------------------ ##
8851 ## Report this to bug-autoconf@gnu.org. ##
8852 ## ------------------------------------ ##
8855 sed "s/^/$as_me: WARNING: /" >&2
8858 echo "$as_me:$LINENO: checking for $ac_header" >&5
8859 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8860 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8861 echo $ECHO_N "(cached) $ECHO_C" >&6
8863 eval "$as_ac_Header=$ac_header_preproc"
8865 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8866 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8869 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8870 cat >>confdefs.h <<_ACEOF
8871 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8879 # Checks for typedefs, structures, and compiler characteristics.
8880 echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
8881 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
8882 if test "${ac_cv_header_stdbool_h+set}" = set; then
8883 echo $ECHO_N "(cached) $ECHO_C" >&6
8885 cat >conftest.$ac_ext <<_ACEOF
8886 #line $LINENO "configure"
8889 cat confdefs.h >>conftest.$ac_ext
8890 cat >>conftest.$ac_ext <<_ACEOF
8891 /* end confdefs.h. */
8893 #include <stdbool.h>
8895 # error bool is not defined
8898 # error false is not defined
8901 # error false is not 0
8904 # error true is not defined
8907 # error true is not 1
8909 #ifndef __bool_true_false_are_defined
8910 # error __bool_true_false_are_defined is not defined
8913 struct s { _Bool s: 1; _Bool t; } s;
8915 char a[true == 1 ? 1 : -1];
8916 char b[false == 0 ? 1 : -1];
8917 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
8918 char d[(bool) -0.5 == true ? 1 : -1];
8920 char f[(_Bool) -0.0 == false ? 1 : -1];
8922 char h[sizeof (_Bool)];
8928 return !a + !b + !c + !d + !e + !f + !g + !h + !i;
8933 rm -f conftest.$ac_objext
8934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8935 (eval $ac_compile) 2>&5
8937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8938 (exit $ac_status); } &&
8939 { ac_try='test -s conftest.$ac_objext'
8940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8944 (exit $ac_status); }; }; then
8945 ac_cv_header_stdbool_h=yes
8947 echo "$as_me: failed program was:" >&5
8948 sed 's/^/| /' conftest.$ac_ext >&5
8950 ac_cv_header_stdbool_h=no
8952 rm -f conftest.$ac_objext conftest.$ac_ext
8954 echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
8955 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
8956 echo "$as_me:$LINENO: checking for _Bool" >&5
8957 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
8958 if test "${ac_cv_type__Bool+set}" = set; then
8959 echo $ECHO_N "(cached) $ECHO_C" >&6
8961 cat >conftest.$ac_ext <<_ACEOF
8962 #line $LINENO "configure"
8965 cat confdefs.h >>conftest.$ac_ext
8966 cat >>conftest.$ac_ext <<_ACEOF
8967 /* end confdefs.h. */
8968 $ac_includes_default
8980 rm -f conftest.$ac_objext
8981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8982 (eval $ac_compile) 2>&5
8984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8985 (exit $ac_status); } &&
8986 { ac_try='test -s conftest.$ac_objext'
8987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8991 (exit $ac_status); }; }; then
8992 ac_cv_type__Bool=yes
8994 echo "$as_me: failed program was:" >&5
8995 sed 's/^/| /' conftest.$ac_ext >&5
8999 rm -f conftest.$ac_objext conftest.$ac_ext
9001 echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
9002 echo "${ECHO_T}$ac_cv_type__Bool" >&6
9003 if test $ac_cv_type__Bool = yes; then
9005 cat >>confdefs.h <<_ACEOF
9006 #define HAVE__BOOL 1
9012 if test $ac_cv_header_stdbool_h = yes; then
9014 cat >>confdefs.h <<\_ACEOF
9015 #define HAVE_STDBOOL_H 1
9020 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9021 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
9022 if test "${ac_cv_c_const+set}" = set; then
9023 echo $ECHO_N "(cached) $ECHO_C" >&6
9025 cat >conftest.$ac_ext <<_ACEOF
9026 #line $LINENO "configure"
9029 cat confdefs.h >>conftest.$ac_ext
9030 cat >>conftest.$ac_ext <<_ACEOF
9031 /* end confdefs.h. */
9036 /* FIXME: Include the comments suggested by Paul. */
9038 /* Ultrix mips cc rejects this. */
9039 typedef int charset[2];
9041 /* SunOS 4.1.1 cc rejects this. */
9042 char const *const *ccp;
9044 /* NEC SVR4.0.2 mips cc rejects this. */
9045 struct point {int x, y;};
9046 static struct point const zero = {0,0};
9047 /* AIX XL C 1.02.0.0 rejects this.
9048 It does not let you subtract one const X* pointer from another in
9049 an arm of an if-expression whose if-part is not a constant
9051 const char *g = "string";
9052 ccp = &g + (g ? g-g : 0);
9053 /* HPUX 7.0 cc rejects these. */
9056 ccp = (char const *const *) p;
9057 { /* SCO 3.2v4 cc rejects this. */
9059 char const *s = 0 ? (char *) 0 : (char const *) 0;
9063 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9065 const int *foo = &x[0];
9068 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9069 typedef const int *iptr;
9073 { /* AIX XL C 1.02.0.0 rejects this saying
9074 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9075 struct s { int j; const int *ap[3]; };
9076 struct s *b; b->j = 5;
9078 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9087 rm -f conftest.$ac_objext
9088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9089 (eval $ac_compile) 2>&5
9091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9092 (exit $ac_status); } &&
9093 { ac_try='test -s conftest.$ac_objext'
9094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9098 (exit $ac_status); }; }; then
9101 echo "$as_me: failed program was:" >&5
9102 sed 's/^/| /' conftest.$ac_ext >&5
9106 rm -f conftest.$ac_objext conftest.$ac_ext
9108 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9109 echo "${ECHO_T}$ac_cv_c_const" >&6
9110 if test $ac_cv_c_const = no; then
9112 cat >>confdefs.h <<\_ACEOF
9118 echo "$as_me:$LINENO: checking for inline" >&5
9119 echo $ECHO_N "checking for inline... $ECHO_C" >&6
9120 if test "${ac_cv_c_inline+set}" = set; then
9121 echo $ECHO_N "(cached) $ECHO_C" >&6
9124 for ac_kw in inline __inline__ __inline; do
9125 cat >conftest.$ac_ext <<_ACEOF
9126 #line $LINENO "configure"
9129 cat confdefs.h >>conftest.$ac_ext
9130 cat >>conftest.$ac_ext <<_ACEOF
9131 /* end confdefs.h. */
9134 static $ac_kw foo_t static_foo () {return 0; }
9135 $ac_kw foo_t foo () {return 0; }
9139 rm -f conftest.$ac_objext
9140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9141 (eval $ac_compile) 2>&5
9143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9144 (exit $ac_status); } &&
9145 { ac_try='test -s conftest.$ac_objext'
9146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9150 (exit $ac_status); }; }; then
9151 ac_cv_c_inline=$ac_kw; break
9153 echo "$as_me: failed program was:" >&5
9154 sed 's/^/| /' conftest.$ac_ext >&5
9157 rm -f conftest.$ac_objext conftest.$ac_ext
9161 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
9162 echo "${ECHO_T}$ac_cv_c_inline" >&6
9163 case $ac_cv_c_inline in
9166 cat >>confdefs.h <<\_ACEOF
9170 *) cat >>confdefs.h <<_ACEOF
9171 #define inline $ac_cv_c_inline
9176 echo "$as_me:$LINENO: checking for working long double with more range or precision than double" >&5
9177 echo $ECHO_N "checking for working long double with more range or precision than double... $ECHO_C" >&6
9178 if test "${ac_cv_c_long_double+set}" = set; then
9179 echo $ECHO_N "(cached) $ECHO_C" >&6
9181 cat >conftest.$ac_ext <<_ACEOF
9182 #line $LINENO "configure"
9185 cat confdefs.h >>conftest.$ac_ext
9186 cat >>conftest.$ac_ext <<_ACEOF
9187 /* end confdefs.h. */
9189 long double foo = 0.0;
9193 static int test_array [1 - 2 * !(/* Using '|' rather than '||' catches a GCC 2.95.2 x86 bug. */
9194 (DBL_MAX < LDBL_MAX) | (LDBL_EPSILON < DBL_EPSILON)
9195 | (DBL_MAX_EXP < LDBL_MAX_EXP) | (DBL_MANT_DIG < LDBL_MANT_DIG))];
9202 rm -f conftest.$ac_objext
9203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9204 (eval $ac_compile) 2>&5
9206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9207 (exit $ac_status); } &&
9208 { ac_try='test -s conftest.$ac_objext'
9209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9213 (exit $ac_status); }; }; then
9214 ac_cv_c_long_double=yes
9216 echo "$as_me: failed program was:" >&5
9217 sed 's/^/| /' conftest.$ac_ext >&5
9219 ac_cv_c_long_double=no
9221 rm -f conftest.$ac_objext conftest.$ac_ext
9223 echo "$as_me:$LINENO: result: $ac_cv_c_long_double" >&5
9224 echo "${ECHO_T}$ac_cv_c_long_double" >&6
9225 if test $ac_cv_c_long_double = yes; then
9227 cat >>confdefs.h <<\_ACEOF
9228 #define HAVE_LONG_DOUBLE 1
9233 echo "$as_me:$LINENO: checking for off_t" >&5
9234 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
9235 if test "${ac_cv_type_off_t+set}" = set; then
9236 echo $ECHO_N "(cached) $ECHO_C" >&6
9238 cat >conftest.$ac_ext <<_ACEOF
9239 #line $LINENO "configure"
9242 cat confdefs.h >>conftest.$ac_ext
9243 cat >>conftest.$ac_ext <<_ACEOF
9244 /* end confdefs.h. */
9245 $ac_includes_default
9257 rm -f conftest.$ac_objext
9258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9259 (eval $ac_compile) 2>&5
9261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9262 (exit $ac_status); } &&
9263 { ac_try='test -s conftest.$ac_objext'
9264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9268 (exit $ac_status); }; }; then
9269 ac_cv_type_off_t=yes
9271 echo "$as_me: failed program was:" >&5
9272 sed 's/^/| /' conftest.$ac_ext >&5
9276 rm -f conftest.$ac_objext conftest.$ac_ext
9278 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
9279 echo "${ECHO_T}$ac_cv_type_off_t" >&6
9280 if test $ac_cv_type_off_t = yes; then
9284 cat >>confdefs.h <<_ACEOF
9290 echo "$as_me:$LINENO: checking for size_t" >&5
9291 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
9292 if test "${ac_cv_type_size_t+set}" = set; then
9293 echo $ECHO_N "(cached) $ECHO_C" >&6
9295 cat >conftest.$ac_ext <<_ACEOF
9296 #line $LINENO "configure"
9299 cat confdefs.h >>conftest.$ac_ext
9300 cat >>conftest.$ac_ext <<_ACEOF
9301 /* end confdefs.h. */
9302 $ac_includes_default
9308 if (sizeof (size_t))
9314 rm -f conftest.$ac_objext
9315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9316 (eval $ac_compile) 2>&5
9318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9319 (exit $ac_status); } &&
9320 { ac_try='test -s conftest.$ac_objext'
9321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9325 (exit $ac_status); }; }; then
9326 ac_cv_type_size_t=yes
9328 echo "$as_me: failed program was:" >&5
9329 sed 's/^/| /' conftest.$ac_ext >&5
9331 ac_cv_type_size_t=no
9333 rm -f conftest.$ac_objext conftest.$ac_ext
9335 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
9336 echo "${ECHO_T}$ac_cv_type_size_t" >&6
9337 if test $ac_cv_type_size_t = yes; then
9341 cat >>confdefs.h <<_ACEOF
9342 #define size_t unsigned
9347 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
9348 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
9349 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
9350 echo $ECHO_N "(cached) $ECHO_C" >&6
9352 cat >conftest.$ac_ext <<_ACEOF
9353 #line $LINENO "configure"
9356 cat confdefs.h >>conftest.$ac_ext
9357 cat >>conftest.$ac_ext <<_ACEOF
9358 /* end confdefs.h. */
9359 $ac_includes_default
9363 static struct stat ac_aggr;
9364 if (ac_aggr.st_blocks)
9370 rm -f conftest.$ac_objext
9371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9372 (eval $ac_compile) 2>&5
9374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9375 (exit $ac_status); } &&
9376 { ac_try='test -s conftest.$ac_objext'
9377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9381 (exit $ac_status); }; }; then
9382 ac_cv_member_struct_stat_st_blocks=yes
9384 echo "$as_me: failed program was:" >&5
9385 sed 's/^/| /' conftest.$ac_ext >&5
9387 cat >conftest.$ac_ext <<_ACEOF
9388 #line $LINENO "configure"
9391 cat confdefs.h >>conftest.$ac_ext
9392 cat >>conftest.$ac_ext <<_ACEOF
9393 /* end confdefs.h. */
9394 $ac_includes_default
9398 static struct stat ac_aggr;
9399 if (sizeof ac_aggr.st_blocks)
9405 rm -f conftest.$ac_objext
9406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9407 (eval $ac_compile) 2>&5
9409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9410 (exit $ac_status); } &&
9411 { ac_try='test -s conftest.$ac_objext'
9412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9416 (exit $ac_status); }; }; then
9417 ac_cv_member_struct_stat_st_blocks=yes
9419 echo "$as_me: failed program was:" >&5
9420 sed 's/^/| /' conftest.$ac_ext >&5
9422 ac_cv_member_struct_stat_st_blocks=no
9424 rm -f conftest.$ac_objext conftest.$ac_ext
9426 rm -f conftest.$ac_objext conftest.$ac_ext
9428 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
9429 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
9430 if test $ac_cv_member_struct_stat_st_blocks = yes; then
9432 cat >>confdefs.h <<_ACEOF
9433 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
9437 cat >>confdefs.h <<\_ACEOF
9438 #define HAVE_ST_BLOCKS 1
9442 LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
9446 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
9447 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
9448 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
9449 echo $ECHO_N "(cached) $ECHO_C" >&6
9451 cat >conftest.$ac_ext <<_ACEOF
9452 #line $LINENO "configure"
9455 cat confdefs.h >>conftest.$ac_ext
9456 cat >>conftest.$ac_ext <<_ACEOF
9457 /* end confdefs.h. */
9458 $ac_includes_default
9462 static struct stat ac_aggr;
9463 if (ac_aggr.st_rdev)
9469 rm -f conftest.$ac_objext
9470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9471 (eval $ac_compile) 2>&5
9473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9474 (exit $ac_status); } &&
9475 { ac_try='test -s conftest.$ac_objext'
9476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9480 (exit $ac_status); }; }; then
9481 ac_cv_member_struct_stat_st_rdev=yes
9483 echo "$as_me: failed program was:" >&5
9484 sed 's/^/| /' conftest.$ac_ext >&5
9486 cat >conftest.$ac_ext <<_ACEOF
9487 #line $LINENO "configure"
9490 cat confdefs.h >>conftest.$ac_ext
9491 cat >>conftest.$ac_ext <<_ACEOF
9492 /* end confdefs.h. */
9493 $ac_includes_default
9497 static struct stat ac_aggr;
9498 if (sizeof ac_aggr.st_rdev)
9504 rm -f conftest.$ac_objext
9505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9506 (eval $ac_compile) 2>&5
9508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9509 (exit $ac_status); } &&
9510 { ac_try='test -s conftest.$ac_objext'
9511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9515 (exit $ac_status); }; }; then
9516 ac_cv_member_struct_stat_st_rdev=yes
9518 echo "$as_me: failed program was:" >&5
9519 sed 's/^/| /' conftest.$ac_ext >&5
9521 ac_cv_member_struct_stat_st_rdev=no
9523 rm -f conftest.$ac_objext conftest.$ac_ext
9525 rm -f conftest.$ac_objext conftest.$ac_ext
9527 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
9528 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
9529 if test $ac_cv_member_struct_stat_st_rdev = yes; then
9531 cat >>confdefs.h <<_ACEOF
9532 #define HAVE_STRUCT_STAT_ST_RDEV 1
9539 # Checks for library functions.
9540 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
9541 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
9542 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
9543 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
9544 echo $ECHO_N "(cached) $ECHO_C" >&6
9546 ac_check_lib_save_LIBS=$LIBS
9548 cat >conftest.$ac_ext <<_ACEOF
9549 #line $LINENO "configure"
9552 cat confdefs.h >>conftest.$ac_ext
9553 cat >>conftest.$ac_ext <<_ACEOF
9554 /* end confdefs.h. */
9556 /* Override any gcc2 internal prototype to avoid an error. */
9560 /* We use char because int might match the return type of a gcc2
9561 builtin and then its argument prototype would still apply. */
9571 rm -f conftest.$ac_objext conftest$ac_exeext
9572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9573 (eval $ac_link) 2>&5
9575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9576 (exit $ac_status); } &&
9577 { ac_try='test -s conftest$ac_exeext'
9578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9582 (exit $ac_status); }; }; then
9583 ac_cv_lib_sun_getmntent=yes
9585 echo "$as_me: failed program was:" >&5
9586 sed 's/^/| /' conftest.$ac_ext >&5
9588 ac_cv_lib_sun_getmntent=no
9590 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9591 LIBS=$ac_check_lib_save_LIBS
9593 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
9594 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
9595 if test $ac_cv_lib_sun_getmntent = yes; then
9598 echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
9599 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
9600 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
9601 echo $ECHO_N "(cached) $ECHO_C" >&6
9603 ac_check_lib_save_LIBS=$LIBS
9605 cat >conftest.$ac_ext <<_ACEOF
9606 #line $LINENO "configure"
9609 cat confdefs.h >>conftest.$ac_ext
9610 cat >>conftest.$ac_ext <<_ACEOF
9611 /* end confdefs.h. */
9613 /* Override any gcc2 internal prototype to avoid an error. */
9617 /* We use char because int might match the return type of a gcc2
9618 builtin and then its argument prototype would still apply. */
9628 rm -f conftest.$ac_objext conftest$ac_exeext
9629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9630 (eval $ac_link) 2>&5
9632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9633 (exit $ac_status); } &&
9634 { ac_try='test -s conftest$ac_exeext'
9635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9639 (exit $ac_status); }; }; then
9640 ac_cv_lib_seq_getmntent=yes
9642 echo "$as_me: failed program was:" >&5
9643 sed 's/^/| /' conftest.$ac_ext >&5
9645 ac_cv_lib_seq_getmntent=no
9647 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9648 LIBS=$ac_check_lib_save_LIBS
9650 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
9651 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
9652 if test $ac_cv_lib_seq_getmntent = yes; then
9655 echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
9656 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
9657 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
9658 echo $ECHO_N "(cached) $ECHO_C" >&6
9660 ac_check_lib_save_LIBS=$LIBS
9662 cat >conftest.$ac_ext <<_ACEOF
9663 #line $LINENO "configure"
9666 cat confdefs.h >>conftest.$ac_ext
9667 cat >>conftest.$ac_ext <<_ACEOF
9668 /* end confdefs.h. */
9670 /* Override any gcc2 internal prototype to avoid an error. */
9674 /* We use char because int might match the return type of a gcc2
9675 builtin and then its argument prototype would still apply. */
9685 rm -f conftest.$ac_objext conftest$ac_exeext
9686 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9687 (eval $ac_link) 2>&5
9689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9690 (exit $ac_status); } &&
9691 { ac_try='test -s conftest$ac_exeext'
9692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9696 (exit $ac_status); }; }; then
9697 ac_cv_lib_gen_getmntent=yes
9699 echo "$as_me: failed program was:" >&5
9700 sed 's/^/| /' conftest.$ac_ext >&5
9702 ac_cv_lib_gen_getmntent=no
9704 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9705 LIBS=$ac_check_lib_save_LIBS
9707 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
9708 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
9709 if test $ac_cv_lib_gen_getmntent = yes; then
9718 for ac_func in getmntent
9720 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9721 echo "$as_me:$LINENO: checking for $ac_func" >&5
9722 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9723 if eval "test \"\${$as_ac_var+set}\" = set"; then
9724 echo $ECHO_N "(cached) $ECHO_C" >&6
9726 cat >conftest.$ac_ext <<_ACEOF
9727 #line $LINENO "configure"
9730 cat confdefs.h >>conftest.$ac_ext
9731 cat >>conftest.$ac_ext <<_ACEOF
9732 /* end confdefs.h. */
9733 /* System header to define __stub macros and hopefully few prototypes,
9734 which can conflict with char $ac_func (); below.
9735 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9736 <limits.h> exists even on freestanding compilers. */
9738 # include <limits.h>
9740 # include <assert.h>
9742 /* Override any gcc2 internal prototype to avoid an error. */
9747 /* We use char because int might match the return type of a gcc2
9748 builtin and then its argument prototype would still apply. */
9750 /* The GNU C library defines this for functions which it implements
9751 to always fail with ENOSYS. Some functions are actually named
9752 something starting with __ and the normal name is an alias. */
9753 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9756 char (*f) () = $ac_func;
9765 return f != $ac_func;
9770 rm -f conftest.$ac_objext conftest$ac_exeext
9771 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9772 (eval $ac_link) 2>&5
9774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9775 (exit $ac_status); } &&
9776 { ac_try='test -s conftest$ac_exeext'
9777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9781 (exit $ac_status); }; }; then
9782 eval "$as_ac_var=yes"
9784 echo "$as_me: failed program was:" >&5
9785 sed 's/^/| /' conftest.$ac_ext >&5
9787 eval "$as_ac_var=no"
9789 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9791 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9792 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9793 if test `eval echo '${'$as_ac_var'}'` = yes; then
9794 cat >>confdefs.h <<_ACEOF
9795 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9802 if test $ac_cv_c_compiler_gnu = yes; then
9803 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
9804 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
9805 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
9806 echo $ECHO_N "(cached) $ECHO_C" >&6
9808 ac_pattern="Autoconf.*'x'"
9809 cat >conftest.$ac_ext <<_ACEOF
9810 #line $LINENO "configure"
9813 cat confdefs.h >>conftest.$ac_ext
9814 cat >>conftest.$ac_ext <<_ACEOF
9815 /* end confdefs.h. */
9819 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9820 $EGREP "$ac_pattern" >/dev/null 2>&1; then
9821 ac_cv_prog_gcc_traditional=yes
9823 ac_cv_prog_gcc_traditional=no
9828 if test $ac_cv_prog_gcc_traditional = no; then
9829 cat >conftest.$ac_ext <<_ACEOF
9830 #line $LINENO "configure"
9833 cat confdefs.h >>conftest.$ac_ext
9834 cat >>conftest.$ac_ext <<_ACEOF
9835 /* end confdefs.h. */
9839 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9840 $EGREP "$ac_pattern" >/dev/null 2>&1; then
9841 ac_cv_prog_gcc_traditional=yes
9847 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
9848 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
9849 if test $ac_cv_prog_gcc_traditional = yes; then
9850 CC="$CC -traditional"
9855 for ac_header in stdlib.h
9857 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9858 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9859 echo "$as_me:$LINENO: checking for $ac_header" >&5
9860 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9861 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9862 echo $ECHO_N "(cached) $ECHO_C" >&6
9864 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9865 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9867 # Is the header compilable?
9868 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9869 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9870 cat >conftest.$ac_ext <<_ACEOF
9871 #line $LINENO "configure"
9874 cat confdefs.h >>conftest.$ac_ext
9875 cat >>conftest.$ac_ext <<_ACEOF
9876 /* end confdefs.h. */
9877 $ac_includes_default
9878 #include <$ac_header>
9880 rm -f conftest.$ac_objext
9881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9882 (eval $ac_compile) 2>&5
9884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9885 (exit $ac_status); } &&
9886 { ac_try='test -s conftest.$ac_objext'
9887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9891 (exit $ac_status); }; }; then
9892 ac_header_compiler=yes
9894 echo "$as_me: failed program was:" >&5
9895 sed 's/^/| /' conftest.$ac_ext >&5
9897 ac_header_compiler=no
9899 rm -f conftest.$ac_objext conftest.$ac_ext
9900 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9901 echo "${ECHO_T}$ac_header_compiler" >&6
9903 # Is the header present?
9904 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9905 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9906 cat >conftest.$ac_ext <<_ACEOF
9907 #line $LINENO "configure"
9910 cat confdefs.h >>conftest.$ac_ext
9911 cat >>conftest.$ac_ext <<_ACEOF
9912 /* end confdefs.h. */
9913 #include <$ac_header>
9915 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9916 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9918 grep -v '^ *+' conftest.er1 >conftest.err
9920 cat conftest.err >&5
9921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9922 (exit $ac_status); } >/dev/null; then
9923 if test -s conftest.err; then
9924 ac_cpp_err=$ac_c_preproc_warn_flag
9931 if test -z "$ac_cpp_err"; then
9932 ac_header_preproc=yes
9934 echo "$as_me: failed program was:" >&5
9935 sed 's/^/| /' conftest.$ac_ext >&5
9937 ac_header_preproc=no
9939 rm -f conftest.err conftest.$ac_ext
9940 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9941 echo "${ECHO_T}$ac_header_preproc" >&6
9943 # So? What about this header?
9944 case $ac_header_compiler:$ac_header_preproc in
9946 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9947 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9948 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9949 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9952 ## ------------------------------------ ##
9953 ## Report this to bug-autoconf@gnu.org. ##
9954 ## ------------------------------------ ##
9957 sed "s/^/$as_me: WARNING: /" >&2
9960 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9961 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9962 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9963 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9964 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9965 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9968 ## ------------------------------------ ##
9969 ## Report this to bug-autoconf@gnu.org. ##
9970 ## ------------------------------------ ##
9973 sed "s/^/$as_me: WARNING: /" >&2
9976 echo "$as_me:$LINENO: checking for $ac_header" >&5
9977 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9978 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9979 echo $ECHO_N "(cached) $ECHO_C" >&6
9981 eval "$as_ac_Header=$ac_header_preproc"
9983 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9984 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9987 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9988 cat >>confdefs.h <<_ACEOF
9989 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9996 echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
9997 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
9998 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
9999 echo $ECHO_N "(cached) $ECHO_C" >&6
10001 if test "$cross_compiling" = yes; then
10002 ac_cv_func_malloc_0_nonnull=no
10004 cat >conftest.$ac_ext <<_ACEOF
10005 #line $LINENO "configure"
10008 cat confdefs.h >>conftest.$ac_ext
10009 cat >>conftest.$ac_ext <<_ACEOF
10010 /* end confdefs.h. */
10011 #if STDC_HEADERS || HAVE_STDLIB_H
10012 # include <stdlib.h>
10020 exit (malloc (0) ? 0 : 1);
10025 rm -f conftest$ac_exeext
10026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10027 (eval $ac_link) 2>&5
10029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10030 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10032 (eval $ac_try) 2>&5
10034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10035 (exit $ac_status); }; }; then
10036 ac_cv_func_malloc_0_nonnull=yes
10038 echo "$as_me: program exited with status $ac_status" >&5
10039 echo "$as_me: failed program was:" >&5
10040 sed 's/^/| /' conftest.$ac_ext >&5
10042 ( exit $ac_status )
10043 ac_cv_func_malloc_0_nonnull=no
10045 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10048 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
10049 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
10050 if test $ac_cv_func_malloc_0_nonnull = yes; then
10052 cat >>confdefs.h <<\_ACEOF
10053 #define HAVE_MALLOC 1
10057 cat >>confdefs.h <<\_ACEOF
10058 #define HAVE_MALLOC 0
10061 LIBOBJS="$LIBOBJS malloc.$ac_objext"
10063 cat >>confdefs.h <<\_ACEOF
10064 #define malloc rpl_malloc
10072 echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are properly declared" >&5
10073 echo $ECHO_N "checking whether mbrtowc and mbstate_t are properly declared... $ECHO_C" >&6
10074 if test "${ac_cv_func_mbrtowc+set}" = set; then
10075 echo $ECHO_N "(cached) $ECHO_C" >&6
10077 cat >conftest.$ac_ext <<_ACEOF
10078 #line $LINENO "configure"
10081 cat confdefs.h >>conftest.$ac_ext
10082 cat >>conftest.$ac_ext <<_ACEOF
10083 /* end confdefs.h. */
10088 mbstate_t state; return ! (sizeof state && mbrtowc);
10093 rm -f conftest.$ac_objext conftest$ac_exeext
10094 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10095 (eval $ac_link) 2>&5
10097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10098 (exit $ac_status); } &&
10099 { ac_try='test -s conftest$ac_exeext'
10100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10101 (eval $ac_try) 2>&5
10103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10104 (exit $ac_status); }; }; then
10105 ac_cv_func_mbrtowc=yes
10107 echo "$as_me: failed program was:" >&5
10108 sed 's/^/| /' conftest.$ac_ext >&5
10110 ac_cv_func_mbrtowc=no
10112 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10114 echo "$as_me:$LINENO: result: $ac_cv_func_mbrtowc" >&5
10115 echo "${ECHO_T}$ac_cv_func_mbrtowc" >&6
10116 if test $ac_cv_func_mbrtowc = yes; then
10118 cat >>confdefs.h <<\_ACEOF
10119 #define HAVE_MBRTOWC 1
10124 echo "$as_me:$LINENO: checking for working memcmp" >&5
10125 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
10126 if test "${ac_cv_func_memcmp_working+set}" = set; then
10127 echo $ECHO_N "(cached) $ECHO_C" >&6
10129 if test "$cross_compiling" = yes; then
10130 ac_cv_func_memcmp_working=no
10132 cat >conftest.$ac_ext <<_ACEOF
10133 #line $LINENO "configure"
10136 cat confdefs.h >>conftest.$ac_ext
10137 cat >>conftest.$ac_ext <<_ACEOF
10138 /* end confdefs.h. */
10144 /* Some versions of memcmp are not 8-bit clean. */
10145 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
10146 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
10149 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
10150 or more and with at least one buffer not starting on a 4-byte boundary.
10151 William Lewis provided this test program. */
10156 for (i = 0; i < 4; i++)
10160 strcpy (a, "--------01111111");
10161 strcpy (b, "--------10000000");
10162 if (memcmp (a, b, 16) >= 0)
10172 rm -f conftest$ac_exeext
10173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10174 (eval $ac_link) 2>&5
10176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10177 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10179 (eval $ac_try) 2>&5
10181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10182 (exit $ac_status); }; }; then
10183 ac_cv_func_memcmp_working=yes
10185 echo "$as_me: program exited with status $ac_status" >&5
10186 echo "$as_me: failed program was:" >&5
10187 sed 's/^/| /' conftest.$ac_ext >&5
10189 ( exit $ac_status )
10190 ac_cv_func_memcmp_working=no
10192 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10195 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
10196 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
10197 test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
10200 for ac_header in stdlib.h
10202 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10203 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10204 echo "$as_me:$LINENO: checking for $ac_header" >&5
10205 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10206 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10207 echo $ECHO_N "(cached) $ECHO_C" >&6
10209 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10210 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10212 # Is the header compilable?
10213 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10214 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10215 cat >conftest.$ac_ext <<_ACEOF
10216 #line $LINENO "configure"
10219 cat confdefs.h >>conftest.$ac_ext
10220 cat >>conftest.$ac_ext <<_ACEOF
10221 /* end confdefs.h. */
10222 $ac_includes_default
10223 #include <$ac_header>
10225 rm -f conftest.$ac_objext
10226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10227 (eval $ac_compile) 2>&5
10229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10230 (exit $ac_status); } &&
10231 { ac_try='test -s conftest.$ac_objext'
10232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10233 (eval $ac_try) 2>&5
10235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10236 (exit $ac_status); }; }; then
10237 ac_header_compiler=yes
10239 echo "$as_me: failed program was:" >&5
10240 sed 's/^/| /' conftest.$ac_ext >&5
10242 ac_header_compiler=no
10244 rm -f conftest.$ac_objext conftest.$ac_ext
10245 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10246 echo "${ECHO_T}$ac_header_compiler" >&6
10248 # Is the header present?
10249 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10250 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10251 cat >conftest.$ac_ext <<_ACEOF
10252 #line $LINENO "configure"
10255 cat confdefs.h >>conftest.$ac_ext
10256 cat >>conftest.$ac_ext <<_ACEOF
10257 /* end confdefs.h. */
10258 #include <$ac_header>
10260 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10261 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10263 grep -v '^ *+' conftest.er1 >conftest.err
10265 cat conftest.err >&5
10266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10267 (exit $ac_status); } >/dev/null; then
10268 if test -s conftest.err; then
10269 ac_cpp_err=$ac_c_preproc_warn_flag
10276 if test -z "$ac_cpp_err"; then
10277 ac_header_preproc=yes
10279 echo "$as_me: failed program was:" >&5
10280 sed 's/^/| /' conftest.$ac_ext >&5
10282 ac_header_preproc=no
10284 rm -f conftest.err conftest.$ac_ext
10285 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10286 echo "${ECHO_T}$ac_header_preproc" >&6
10288 # So? What about this header?
10289 case $ac_header_compiler:$ac_header_preproc in
10291 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10292 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10293 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10294 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10297 ## ------------------------------------ ##
10298 ## Report this to bug-autoconf@gnu.org. ##
10299 ## ------------------------------------ ##
10302 sed "s/^/$as_me: WARNING: /" >&2
10305 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10306 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10307 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10308 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10309 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10310 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10313 ## ------------------------------------ ##
10314 ## Report this to bug-autoconf@gnu.org. ##
10315 ## ------------------------------------ ##
10318 sed "s/^/$as_me: WARNING: /" >&2
10321 echo "$as_me:$LINENO: checking for $ac_header" >&5
10322 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10323 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10324 echo $ECHO_N "(cached) $ECHO_C" >&6
10326 eval "$as_ac_Header=$ac_header_preproc"
10328 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10329 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10332 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10333 cat >>confdefs.h <<_ACEOF
10334 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10341 echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
10342 echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6
10343 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
10344 echo $ECHO_N "(cached) $ECHO_C" >&6
10346 if test "$cross_compiling" = yes; then
10347 ac_cv_func_realloc_0_nonnull=no
10349 cat >conftest.$ac_ext <<_ACEOF
10350 #line $LINENO "configure"
10353 cat confdefs.h >>conftest.$ac_ext
10354 cat >>conftest.$ac_ext <<_ACEOF
10355 /* end confdefs.h. */
10356 #if STDC_HEADERS || HAVE_STDLIB_H
10357 # include <stdlib.h>
10365 exit (realloc (0, 0) ? 0 : 1);
10370 rm -f conftest$ac_exeext
10371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10372 (eval $ac_link) 2>&5
10374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10375 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10377 (eval $ac_try) 2>&5
10379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10380 (exit $ac_status); }; }; then
10381 ac_cv_func_realloc_0_nonnull=yes
10383 echo "$as_me: program exited with status $ac_status" >&5
10384 echo "$as_me: failed program was:" >&5
10385 sed 's/^/| /' conftest.$ac_ext >&5
10387 ( exit $ac_status )
10388 ac_cv_func_realloc_0_nonnull=no
10390 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10393 echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
10394 echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6
10395 if test $ac_cv_func_realloc_0_nonnull = yes; then
10397 cat >>confdefs.h <<\_ACEOF
10398 #define HAVE_REALLOC 1
10402 cat >>confdefs.h <<\_ACEOF
10403 #define HAVE_REALLOC 0
10406 LIBOBJS="$LIBOBJS realloc.$ac_objext"
10408 cat >>confdefs.h <<\_ACEOF
10409 #define realloc rpl_realloc
10416 echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
10417 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
10418 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
10419 echo $ECHO_N "(cached) $ECHO_C" >&6
10421 rm -f conftest.sym conftest.file
10422 echo >conftest.file
10423 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
10424 if test "$cross_compiling" = yes; then
10425 ac_cv_func_lstat_dereferences_slashed_symlink=no
10427 cat >conftest.$ac_ext <<_ACEOF
10428 #line $LINENO "configure"
10431 cat confdefs.h >>conftest.$ac_ext
10432 cat >>conftest.$ac_ext <<_ACEOF
10433 /* end confdefs.h. */
10434 $ac_includes_default
10439 /* Linux will dereference the symlink and fail.
10440 That is better in the sense that it means we will not
10441 have to compile and use the lstat wrapper. */
10442 exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
10447 rm -f conftest$ac_exeext
10448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10449 (eval $ac_link) 2>&5
10451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10452 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10454 (eval $ac_try) 2>&5
10456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10457 (exit $ac_status); }; }; then
10458 ac_cv_func_lstat_dereferences_slashed_symlink=yes
10460 echo "$as_me: program exited with status $ac_status" >&5
10461 echo "$as_me: failed program was:" >&5
10462 sed 's/^/| /' conftest.$ac_ext >&5
10464 ( exit $ac_status )
10465 ac_cv_func_lstat_dereferences_slashed_symlink=no
10467 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10470 # If the `ln -s' command failed, then we probably don't even
10471 # have an lstat function.
10472 ac_cv_func_lstat_dereferences_slashed_symlink=no
10474 rm -f conftest.sym conftest.file
10477 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
10478 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
10480 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
10482 cat >>confdefs.h <<_ACEOF
10483 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
10487 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
10488 LIBOBJS="$LIBOBJS lstat.$ac_objext"
10491 echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
10492 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
10493 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
10494 echo $ECHO_N "(cached) $ECHO_C" >&6
10496 if test "$cross_compiling" = yes; then
10497 ac_cv_func_stat_empty_string_bug=yes
10499 cat >conftest.$ac_ext <<_ACEOF
10500 #line $LINENO "configure"
10503 cat confdefs.h >>conftest.$ac_ext
10504 cat >>conftest.$ac_ext <<_ACEOF
10505 /* end confdefs.h. */
10506 $ac_includes_default
10511 exit (stat ("", &sbuf) ? 1 : 0);
10516 rm -f conftest$ac_exeext
10517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10518 (eval $ac_link) 2>&5
10520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10521 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10523 (eval $ac_try) 2>&5
10525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10526 (exit $ac_status); }; }; then
10527 ac_cv_func_stat_empty_string_bug=yes
10529 echo "$as_me: program exited with status $ac_status" >&5
10530 echo "$as_me: failed program was:" >&5
10531 sed 's/^/| /' conftest.$ac_ext >&5
10533 ( exit $ac_status )
10534 ac_cv_func_stat_empty_string_bug=no
10536 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10539 echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
10540 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
10541 if test $ac_cv_func_stat_empty_string_bug = yes; then
10542 LIBOBJS="$LIBOBJS stat.$ac_objext"
10544 cat >>confdefs.h <<_ACEOF
10545 #define HAVE_STAT_EMPTY_STRING_BUG 1
10551 for ac_func in strftime
10553 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10554 echo "$as_me:$LINENO: checking for $ac_func" >&5
10555 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10556 if eval "test \"\${$as_ac_var+set}\" = set"; then
10557 echo $ECHO_N "(cached) $ECHO_C" >&6
10559 cat >conftest.$ac_ext <<_ACEOF
10560 #line $LINENO "configure"
10563 cat confdefs.h >>conftest.$ac_ext
10564 cat >>conftest.$ac_ext <<_ACEOF
10565 /* end confdefs.h. */
10566 /* System header to define __stub macros and hopefully few prototypes,
10567 which can conflict with char $ac_func (); below.
10568 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10569 <limits.h> exists even on freestanding compilers. */
10571 # include <limits.h>
10573 # include <assert.h>
10575 /* Override any gcc2 internal prototype to avoid an error. */
10580 /* We use char because int might match the return type of a gcc2
10581 builtin and then its argument prototype would still apply. */
10583 /* The GNU C library defines this for functions which it implements
10584 to always fail with ENOSYS. Some functions are actually named
10585 something starting with __ and the normal name is an alias. */
10586 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10589 char (*f) () = $ac_func;
10598 return f != $ac_func;
10603 rm -f conftest.$ac_objext conftest$ac_exeext
10604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10605 (eval $ac_link) 2>&5
10607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10608 (exit $ac_status); } &&
10609 { ac_try='test -s conftest$ac_exeext'
10610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10611 (eval $ac_try) 2>&5
10613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10614 (exit $ac_status); }; }; then
10615 eval "$as_ac_var=yes"
10617 echo "$as_me: failed program was:" >&5
10618 sed 's/^/| /' conftest.$ac_ext >&5
10620 eval "$as_ac_var=no"
10622 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10624 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10625 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10626 if test `eval echo '${'$as_ac_var'}'` = yes; then
10627 cat >>confdefs.h <<_ACEOF
10628 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10632 # strftime is in -lintl on SCO UNIX.
10633 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
10634 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
10635 if test "${ac_cv_lib_intl_strftime+set}" = set; then
10636 echo $ECHO_N "(cached) $ECHO_C" >&6
10638 ac_check_lib_save_LIBS=$LIBS
10639 LIBS="-lintl $LIBS"
10640 cat >conftest.$ac_ext <<_ACEOF
10641 #line $LINENO "configure"
10644 cat confdefs.h >>conftest.$ac_ext
10645 cat >>conftest.$ac_ext <<_ACEOF
10646 /* end confdefs.h. */
10648 /* Override any gcc2 internal prototype to avoid an error. */
10652 /* We use char because int might match the return type of a gcc2
10653 builtin and then its argument prototype would still apply. */
10663 rm -f conftest.$ac_objext conftest$ac_exeext
10664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10665 (eval $ac_link) 2>&5
10667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10668 (exit $ac_status); } &&
10669 { ac_try='test -s conftest$ac_exeext'
10670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10671 (eval $ac_try) 2>&5
10673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10674 (exit $ac_status); }; }; then
10675 ac_cv_lib_intl_strftime=yes
10677 echo "$as_me: failed program was:" >&5
10678 sed 's/^/| /' conftest.$ac_ext >&5
10680 ac_cv_lib_intl_strftime=no
10682 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10683 LIBS=$ac_check_lib_save_LIBS
10685 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
10686 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
10687 if test $ac_cv_lib_intl_strftime = yes; then
10688 cat >>confdefs.h <<\_ACEOF
10689 #define HAVE_STRFTIME 1
10692 LIBS="-lintl $LIBS"
10698 echo "$as_me:$LINENO: checking whether utime accepts a null argument" >&5
10699 echo $ECHO_N "checking whether utime accepts a null argument... $ECHO_C" >&6
10700 if test "${ac_cv_func_utime_null+set}" = set; then
10701 echo $ECHO_N "(cached) $ECHO_C" >&6
10703 rm -f conftest.data; >conftest.data
10704 # Sequent interprets utime(file, 0) to mean use start of epoch. Wrong.
10705 if test "$cross_compiling" = yes; then
10706 ac_cv_func_utime_null=no
10708 cat >conftest.$ac_ext <<_ACEOF
10709 #line $LINENO "configure"
10712 cat confdefs.h >>conftest.$ac_ext
10713 cat >>conftest.$ac_ext <<_ACEOF
10714 /* end confdefs.h. */
10715 $ac_includes_default
10720 exit (!(stat ("conftest.data", &s) == 0
10721 && utime ("conftest.data", (long *)0) == 0
10722 && stat ("conftest.data", &t) == 0
10723 && t.st_mtime >= s.st_mtime
10724 && t.st_mtime - s.st_mtime < 120));
10729 rm -f conftest$ac_exeext
10730 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10731 (eval $ac_link) 2>&5
10733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10734 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10736 (eval $ac_try) 2>&5
10738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10739 (exit $ac_status); }; }; then
10740 ac_cv_func_utime_null=yes
10742 echo "$as_me: program exited with status $ac_status" >&5
10743 echo "$as_me: failed program was:" >&5
10744 sed 's/^/| /' conftest.$ac_ext >&5
10746 ( exit $ac_status )
10747 ac_cv_func_utime_null=no
10749 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10751 rm -f core core.* *.core
10753 echo "$as_me:$LINENO: result: $ac_cv_func_utime_null" >&5
10754 echo "${ECHO_T}$ac_cv_func_utime_null" >&6
10755 if test $ac_cv_func_utime_null = yes; then
10757 cat >>confdefs.h <<\_ACEOF
10758 #define HAVE_UTIME_NULL 1
10762 rm -f conftest.data
10765 for ac_func in vprintf
10767 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10768 echo "$as_me:$LINENO: checking for $ac_func" >&5
10769 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10770 if eval "test \"\${$as_ac_var+set}\" = set"; then
10771 echo $ECHO_N "(cached) $ECHO_C" >&6
10773 cat >conftest.$ac_ext <<_ACEOF
10774 #line $LINENO "configure"
10777 cat confdefs.h >>conftest.$ac_ext
10778 cat >>conftest.$ac_ext <<_ACEOF
10779 /* end confdefs.h. */
10780 /* System header to define __stub macros and hopefully few prototypes,
10781 which can conflict with char $ac_func (); below.
10782 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10783 <limits.h> exists even on freestanding compilers. */
10785 # include <limits.h>
10787 # include <assert.h>
10789 /* Override any gcc2 internal prototype to avoid an error. */
10794 /* We use char because int might match the return type of a gcc2
10795 builtin and then its argument prototype would still apply. */
10797 /* The GNU C library defines this for functions which it implements
10798 to always fail with ENOSYS. Some functions are actually named
10799 something starting with __ and the normal name is an alias. */
10800 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10803 char (*f) () = $ac_func;
10812 return f != $ac_func;
10817 rm -f conftest.$ac_objext conftest$ac_exeext
10818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10819 (eval $ac_link) 2>&5
10821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10822 (exit $ac_status); } &&
10823 { ac_try='test -s conftest$ac_exeext'
10824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10825 (eval $ac_try) 2>&5
10827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10828 (exit $ac_status); }; }; then
10829 eval "$as_ac_var=yes"
10831 echo "$as_me: failed program was:" >&5
10832 sed 's/^/| /' conftest.$ac_ext >&5
10834 eval "$as_ac_var=no"
10836 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10838 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10839 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10840 if test `eval echo '${'$as_ac_var'}'` = yes; then
10841 cat >>confdefs.h <<_ACEOF
10842 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10845 echo "$as_me:$LINENO: checking for _doprnt" >&5
10846 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
10847 if test "${ac_cv_func__doprnt+set}" = set; then
10848 echo $ECHO_N "(cached) $ECHO_C" >&6
10850 cat >conftest.$ac_ext <<_ACEOF
10851 #line $LINENO "configure"
10854 cat confdefs.h >>conftest.$ac_ext
10855 cat >>conftest.$ac_ext <<_ACEOF
10856 /* end confdefs.h. */
10857 /* System header to define __stub macros and hopefully few prototypes,
10858 which can conflict with char _doprnt (); below.
10859 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10860 <limits.h> exists even on freestanding compilers. */
10862 # include <limits.h>
10864 # include <assert.h>
10866 /* Override any gcc2 internal prototype to avoid an error. */
10871 /* We use char because int might match the return type of a gcc2
10872 builtin and then its argument prototype would still apply. */
10874 /* The GNU C library defines this for functions which it implements
10875 to always fail with ENOSYS. Some functions are actually named
10876 something starting with __ and the normal name is an alias. */
10877 #if defined (__stub__doprnt) || defined (__stub____doprnt)
10880 char (*f) () = _doprnt;
10889 return f != _doprnt;
10894 rm -f conftest.$ac_objext conftest$ac_exeext
10895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10896 (eval $ac_link) 2>&5
10898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10899 (exit $ac_status); } &&
10900 { ac_try='test -s conftest$ac_exeext'
10901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10902 (eval $ac_try) 2>&5
10904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10905 (exit $ac_status); }; }; then
10906 ac_cv_func__doprnt=yes
10908 echo "$as_me: failed program was:" >&5
10909 sed 's/^/| /' conftest.$ac_ext >&5
10911 ac_cv_func__doprnt=no
10913 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10915 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
10916 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
10917 if test $ac_cv_func__doprnt = yes; then
10919 cat >>confdefs.h <<\_ACEOF
10920 #define HAVE_DOPRNT 1
10943 for ac_func in atexit fdatasync hasmntopt memmove memset regcomp setlocale \
10944 strcasecmp strchr strdup strerror strtol strtoul utime
10946 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10947 echo "$as_me:$LINENO: checking for $ac_func" >&5
10948 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10949 if eval "test \"\${$as_ac_var+set}\" = set"; then
10950 echo $ECHO_N "(cached) $ECHO_C" >&6
10952 cat >conftest.$ac_ext <<_ACEOF
10953 #line $LINENO "configure"
10956 cat confdefs.h >>conftest.$ac_ext
10957 cat >>conftest.$ac_ext <<_ACEOF
10958 /* end confdefs.h. */
10959 /* System header to define __stub macros and hopefully few prototypes,
10960 which can conflict with char $ac_func (); below.
10961 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10962 <limits.h> exists even on freestanding compilers. */
10964 # include <limits.h>
10966 # include <assert.h>
10968 /* Override any gcc2 internal prototype to avoid an error. */
10973 /* We use char because int might match the return type of a gcc2
10974 builtin and then its argument prototype would still apply. */
10976 /* The GNU C library defines this for functions which it implements
10977 to always fail with ENOSYS. Some functions are actually named
10978 something starting with __ and the normal name is an alias. */
10979 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10982 char (*f) () = $ac_func;
10991 return f != $ac_func;
10996 rm -f conftest.$ac_objext conftest$ac_exeext
10997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10998 (eval $ac_link) 2>&5
11000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11001 (exit $ac_status); } &&
11002 { ac_try='test -s conftest$ac_exeext'
11003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11004 (eval $ac_try) 2>&5
11006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11007 (exit $ac_status); }; }; then
11008 eval "$as_ac_var=yes"
11010 echo "$as_me: failed program was:" >&5
11011 sed 's/^/| /' conftest.$ac_ext >&5
11013 eval "$as_ac_var=no"
11015 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11017 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11018 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11019 if test `eval echo '${'$as_ac_var'}'` = yes; then
11020 cat >>confdefs.h <<_ACEOF
11021 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11028 # Makefiles to be created by configure.
11029 ac_config_files="$ac_config_files Makefile doc/Makefile include/Makefile libntfs/Makefile ntfsprogs/Makefile ntfsprogs/mkntfs.8 ntfsprogs/ntfsfix.8 ntfsprogs/ntfsinfo.8 ntfsprogs/ntfslabel.8 ntfsprogs/ntfsprogs.8 ntfsprogs/ntfsresize.8 ntfsprogs/ntfsundelete.8 ntfsprogs/ntfscluster.8 ntfsprogs.spec"
11031 cat >confcache <<\_ACEOF
11032 # This file is a shell script that caches the results of configure
11033 # tests run on this system so they can be shared between configure
11034 # scripts and configure runs, see configure's option --config-cache.
11035 # It is not useful on other systems. If it contains results you don't
11036 # want to keep, you may remove or edit it.
11038 # config.status only pays attention to the cache file if you give it
11039 # the --recheck option to rerun configure.
11041 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11042 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11043 # following values.
11047 # The following way of writing the cache mishandles newlines in values,
11048 # but we know of no workaround that is simple, portable, and efficient.
11049 # So, don't put newlines in cache variables' values.
11050 # Ultrix sh set writes to stderr and can't be redirected directly,
11051 # and sets the high bit in the cache file unless we assign to the vars.
11054 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11056 # `set' does not quote correctly, so add quotes (double-quote
11057 # substitution turns \\\\ into \\, and sed turns \\ into \).
11060 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11063 # `set' quotes correctly as required by POSIX, so do not add quotes.
11065 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11072 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11074 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11076 if diff $cache_file confcache >/dev/null 2>&1; then :; else
11077 if test -w $cache_file; then
11078 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11079 cat confcache >$cache_file
11081 echo "not updating unwritable cache $cache_file"
11086 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11087 # Let make expand exec_prefix.
11088 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11090 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11091 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11092 # trailing colons and then remove the whole line if VPATH becomes empty
11093 # (actually we leave an empty line to preserve line numbers).
11094 if test "x$srcdir" = x.; then
11095 ac_vpsub='/^[ ]*VPATH[ ]*=/{
11096 s/:*\$(srcdir):*/:/;
11097 s/:*\${srcdir}:*/:/;
11099 s/^\([^=]*=[ ]*\):*/\1/;
11105 DEFS=-DHAVE_CONFIG_H
11109 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11110 # 1. Remove the extension, and $U if already installed.
11111 ac_i=`echo "$ac_i" |
11112 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
11114 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
11115 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
11117 LIBOBJS=$ac_libobjs
11119 LTLIBOBJS=$ac_ltlibobjs
11122 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11123 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
11124 Usually this means the macro was only invoked conditionally." >&5
11125 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
11126 Usually this means the macro was only invoked conditionally." >&2;}
11127 { (exit 1); exit 1; }; }
11129 if test -z "${DEBUG_TRUE}" && test -z "${DEBUG_FALSE}"; then
11130 { { echo "$as_me:$LINENO: error: conditional \"DEBUG\" was never defined.
11131 Usually this means the macro was only invoked conditionally." >&5
11132 echo "$as_me: error: conditional \"DEBUG\" was never defined.
11133 Usually this means the macro was only invoked conditionally." >&2;}
11134 { (exit 1); exit 1; }; }
11136 if test -z "${REALLYSTATIC_TRUE}" && test -z "${REALLYSTATIC_FALSE}"; then
11137 { { echo "$as_me:$LINENO: error: conditional \"REALLYSTATIC\" was never defined.
11138 Usually this means the macro was only invoked conditionally." >&5
11139 echo "$as_me: error: conditional \"REALLYSTATIC\" was never defined.
11140 Usually this means the macro was only invoked conditionally." >&2;}
11141 { (exit 1); exit 1; }; }
11143 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11144 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
11145 Usually this means the macro was only invoked conditionally." >&5
11146 echo "$as_me: error: conditional \"AMDEP\" was never defined.
11147 Usually this means the macro was only invoked conditionally." >&2;}
11148 { (exit 1); exit 1; }; }
11150 if test -z "${GCC_NEEDS_MS_EXTENSIONS_TRUE}" && test -z "${GCC_NEEDS_MS_EXTENSIONS_FALSE}"; then
11151 { { echo "$as_me:$LINENO: error: conditional \"GCC_NEEDS_MS_EXTENSIONS\" was never defined.
11152 Usually this means the macro was only invoked conditionally." >&5
11153 echo "$as_me: error: conditional \"GCC_NEEDS_MS_EXTENSIONS\" was never defined.
11154 Usually this means the macro was only invoked conditionally." >&2;}
11155 { (exit 1); exit 1; }; }
11158 : ${CONFIG_STATUS=./config.status}
11159 ac_clean_files_save=$ac_clean_files
11160 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11161 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11162 echo "$as_me: creating $CONFIG_STATUS" >&6;}
11163 cat >$CONFIG_STATUS <<_ACEOF
11165 # Generated by $as_me.
11166 # Run this file to recreate the current configuration.
11167 # Compiler output produced by configure, useful for debugging
11168 # configure, is in config.log if it exists.
11171 ac_cs_recheck=false
11173 SHELL=\${CONFIG_SHELL-$SHELL}
11176 cat >>$CONFIG_STATUS <<\_ACEOF
11177 ## --------------------- ##
11178 ## M4sh Initialization. ##
11179 ## --------------------- ##
11181 # Be Bourne compatible
11182 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11185 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11186 # is contrary to our usage. Disable this feature.
11187 alias -g '${1+"$@"}'='"$@"'
11188 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11192 # Support unset when possible.
11193 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
11200 # Work around bugs in pre-3.0 UWIN ksh.
11201 $as_unset ENV MAIL MAILPATH
11208 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11209 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11210 LC_TELEPHONE LC_TIME
11212 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
11213 eval $as_var=C; export $as_var
11219 # Required to use basename.
11220 if expr a : '\(a\)' >/dev/null 2>&1; then
11226 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
11227 as_basename=basename
11233 # Name of the executable.
11234 as_me=`$as_basename "$0" ||
11235 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11236 X"$0" : 'X\(//\)$' \| \
11237 X"$0" : 'X\(/\)$' \| \
11238 . : '\(.\)' 2>/dev/null ||
11240 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11241 /^X\/\(\/\/\)$/{ s//\1/; q; }
11242 /^X\/\(\/\).*/{ s//\1/; q; }
11246 # PATH needs CR, and LINENO needs CR and PATH.
11247 # Avoid depending upon Character Ranges.
11248 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11249 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11250 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11251 as_cr_digits='0123456789'
11252 as_cr_alnum=$as_cr_Letters$as_cr_digits
11254 # The user is always right.
11255 if test "${PATH_SEPARATOR+set}" != set; then
11256 echo "#! /bin/sh" >conf$$.sh
11257 echo "exit 0" >>conf$$.sh
11259 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11268 as_lineno_1=$LINENO
11269 as_lineno_2=$LINENO
11270 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11271 test "x$as_lineno_1" != "x$as_lineno_2" &&
11272 test "x$as_lineno_3" = "x$as_lineno_2" || {
11273 # Find who we are. Look in the path if we contain no path at all
11276 *[\\/]* ) as_myself=$0 ;;
11277 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11278 for as_dir in $PATH
11281 test -z "$as_dir" && as_dir=.
11282 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11287 # We did not find ourselves, most probably we were run as `sh COMMAND'
11288 # in which case we are not to be found in the path.
11289 if test "x$as_myself" = x; then
11292 if test ! -f "$as_myself"; then
11293 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11294 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11295 { (exit 1); exit 1; }; }
11297 case $CONFIG_SHELL in
11299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11300 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11303 test -z "$as_dir" && as_dir=.
11304 for as_base in sh bash ksh sh5; do
11307 if ("$as_dir/$as_base" -c '
11308 as_lineno_1=$LINENO
11309 as_lineno_2=$LINENO
11310 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11311 test "x$as_lineno_1" != "x$as_lineno_2" &&
11312 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
11313 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11314 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11315 CONFIG_SHELL=$as_dir/$as_base
11316 export CONFIG_SHELL
11317 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11325 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11326 # uniformly replaced by the line number. The first 'sed' inserts a
11327 # line-number line before each line; the second 'sed' does the real
11328 # work. The second script uses 'N' to pair each line-number line
11329 # with the numbered line, and appends trailing '-' during
11330 # substitution so that $LINENO is not a special case at line end.
11331 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11332 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
11333 sed '=' <$as_myself |
11338 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11341 s,^['$as_cr_digits']*\n,,
11342 ' >$as_me.lineno &&
11343 chmod +x $as_me.lineno ||
11344 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11345 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11346 { (exit 1); exit 1; }; }
11348 # Don't try to exec as it changes $[0], causing all sort of problems
11349 # (the dirname of $[0] is not the place where we might find the
11350 # original and so on. Autoconf is especially sensible to this).
11352 # Exit status is that of the last command.
11357 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11358 *c*,-n*) ECHO_N= ECHO_C='
11360 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11361 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
11364 if expr a : '\(a\)' >/dev/null 2>&1; then
11370 rm -f conf$$ conf$$.exe conf$$.file
11372 if ln -s conf$$.file conf$$ 2>/dev/null; then
11373 # We could just check for DJGPP; but this test a) works b) is more generic
11374 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11375 if test -f conf$$.exe; then
11376 # Don't use ln at all; we don't have any links
11381 elif ln conf$$.file conf$$ 2>/dev/null; then
11386 rm -f conf$$ conf$$.exe conf$$.file
11388 if mkdir -p . 2>/dev/null; then
11394 as_executable_p="test -f"
11396 # Sed expression to map a string onto a valid CPP name.
11397 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
11399 # Sed expression to map a string onto a valid variable name.
11400 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
11404 # We need space, tab and new line, in precisely that order.
11414 # Open the log real soon, to keep \$[0] and so on meaningful, and to
11415 # report actual input values of CONFIG_FILES etc. instead of their
11416 # values after options handling. Logging --version etc. is OK.
11420 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11421 ## Running $as_me. ##
11426 This file was extended by ntfsprogs $as_me 1.7.2-WIP, which was
11427 generated by GNU Autoconf 2.57. Invocation command line was
11429 CONFIG_FILES = $CONFIG_FILES
11430 CONFIG_HEADERS = $CONFIG_HEADERS
11431 CONFIG_LINKS = $CONFIG_LINKS
11432 CONFIG_COMMANDS = $CONFIG_COMMANDS
11436 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11440 # Files that config.status was made for.
11441 if test -n "$ac_config_files"; then
11442 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11445 if test -n "$ac_config_headers"; then
11446 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11449 if test -n "$ac_config_links"; then
11450 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11453 if test -n "$ac_config_commands"; then
11454 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11457 cat >>$CONFIG_STATUS <<\_ACEOF
11460 \`$as_me' instantiates files from templates according to the
11461 current configuration.
11463 Usage: $0 [OPTIONS] [FILE]...
11465 -h, --help print this help, then exit
11466 -V, --version print version number, then exit
11467 -q, --quiet do not print progress messages
11468 -d, --debug don't remove temporary files
11469 --recheck update $as_me by reconfiguring in the same conditions
11470 --file=FILE[:TEMPLATE]
11471 instantiate the configuration file FILE
11472 --header=FILE[:TEMPLATE]
11473 instantiate the configuration header FILE
11475 Configuration files:
11478 Configuration headers:
11481 Configuration commands:
11484 Report bugs to <bug-autoconf@gnu.org>."
11487 cat >>$CONFIG_STATUS <<_ACEOF
11489 ntfsprogs config.status 1.7.2-WIP
11490 configured by $0, generated by GNU Autoconf 2.57,
11491 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11493 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
11494 Free Software Foundation, Inc.
11495 This config.status script is free software; the Free Software Foundation
11496 gives unlimited permission to copy, distribute and modify it."
11501 cat >>$CONFIG_STATUS <<\_ACEOF
11502 # If no file are specified by the user, then we need to provide default
11503 # value. By we need to know if files were specified by the user.
11509 ac_option=`expr "x$1" : 'x\([^=]*\)='`
11510 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
11518 *) # This is not an option, so the user has probably given explicit
11521 ac_need_defaults=false;;
11525 # Handling of the options.
11527 cat >>$CONFIG_STATUS <<\_ACEOF
11528 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11530 --version | --vers* | -V )
11531 echo "$ac_cs_version"; exit 0 ;;
11533 # Conflict between --help and --header
11534 { { echo "$as_me:$LINENO: error: ambiguous option: $1
11535 Try \`$0 --help' for more information." >&5
11536 echo "$as_me: error: ambiguous option: $1
11537 Try \`$0 --help' for more information." >&2;}
11538 { (exit 1); exit 1; }; };;
11539 --help | --hel | -h )
11540 echo "$ac_cs_usage"; exit 0 ;;
11541 --debug | --d* | -d )
11543 --file | --fil | --fi | --f )
11545 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11546 ac_need_defaults=false;;
11547 --header | --heade | --head | --hea )
11549 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11550 ac_need_defaults=false;;
11551 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11552 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11555 # This is an error.
11556 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
11557 Try \`$0 --help' for more information." >&5
11558 echo "$as_me: error: unrecognized option: $1
11559 Try \`$0 --help' for more information." >&2;}
11560 { (exit 1); exit 1; }; } ;;
11562 *) ac_config_targets="$ac_config_targets $1" ;;
11568 ac_configure_extra_args=
11570 if $ac_cs_silent; then
11572 ac_configure_extra_args="$ac_configure_extra_args --silent"
11576 cat >>$CONFIG_STATUS <<_ACEOF
11577 if \$ac_cs_recheck; then
11578 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11579 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11584 cat >>$CONFIG_STATUS <<_ACEOF
11586 # INIT-COMMANDS section.
11589 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11595 cat >>$CONFIG_STATUS <<\_ACEOF
11596 for ac_config_target in $ac_config_targets
11598 case "$ac_config_target" in
11599 # Handling of arguments.
11600 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11601 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
11602 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
11603 "libntfs/Makefile" ) CONFIG_FILES="$CONFIG_FILES libntfs/Makefile" ;;
11604 "ntfsprogs/Makefile" ) CONFIG_FILES="$CONFIG_FILES ntfsprogs/Makefile" ;;
11605 "ntfsprogs/mkntfs.8" ) CONFIG_FILES="$CONFIG_FILES ntfsprogs/mkntfs.8" ;;
11606 "ntfsprogs/ntfsfix.8" ) CONFIG_FILES="$CONFIG_FILES ntfsprogs/ntfsfix.8" ;;
11607 "ntfsprogs/ntfsinfo.8" ) CONFIG_FILES="$CONFIG_FILES ntfsprogs/ntfsinfo.8" ;;
11608 "ntfsprogs/ntfslabel.8" ) CONFIG_FILES="$CONFIG_FILES ntfsprogs/ntfslabel.8" ;;
11609 "ntfsprogs/ntfsprogs.8" ) CONFIG_FILES="$CONFIG_FILES ntfsprogs/ntfsprogs.8" ;;
11610 "ntfsprogs/ntfsresize.8" ) CONFIG_FILES="$CONFIG_FILES ntfsprogs/ntfsresize.8" ;;
11611 "ntfsprogs/ntfsundelete.8" ) CONFIG_FILES="$CONFIG_FILES ntfsprogs/ntfsundelete.8" ;;
11612 "ntfsprogs/ntfscluster.8" ) CONFIG_FILES="$CONFIG_FILES ntfsprogs/ntfscluster.8" ;;
11613 "ntfsprogs.spec" ) CONFIG_FILES="$CONFIG_FILES ntfsprogs.spec" ;;
11614 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11615 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11616 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11617 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11618 { (exit 1); exit 1; }; };;
11622 # If the user did not use the arguments to specify the items to instantiate,
11623 # then the envvar interface is used. Set only those that are not.
11624 # We use the long form for the default assignment because of an extremely
11625 # bizarre bug on SunOS 4.1.3.
11626 if $ac_need_defaults; then
11627 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11628 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11629 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11632 # Have a temporary directory for convenience. Make it in the build tree
11633 # simply because there is no reason to put it here, and in addition,
11634 # creating and moving files from /tmp can sometimes cause problems.
11635 # Create a temporary directory, and hook for its removal unless debugging.
11638 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
11639 trap '{ (exit 1); exit 1; }' 1 2 13 15
11642 # Create a (secure) tmp directory for tmp files.
11645 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
11646 test -n "$tmp" && test -d "$tmp"
11649 tmp=./confstat$$-$RANDOM
11650 (umask 077 && mkdir $tmp)
11653 echo "$me: cannot create a temporary directory in ." >&2
11654 { (exit 1); exit 1; }
11659 cat >>$CONFIG_STATUS <<_ACEOF
11662 # CONFIG_FILES section.
11665 # No need to generate the scripts if there are no CONFIG_FILES.
11666 # This happens for instance when ./config.status config.h
11667 if test -n "\$CONFIG_FILES"; then
11668 # Protect against being on the right side of a sed subst in config.status.
11669 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
11670 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
11671 s,@SHELL@,$SHELL,;t t
11672 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
11673 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
11674 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
11675 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
11676 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
11677 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
11678 s,@exec_prefix@,$exec_prefix,;t t
11679 s,@prefix@,$prefix,;t t
11680 s,@program_transform_name@,$program_transform_name,;t t
11681 s,@bindir@,$bindir,;t t
11682 s,@sbindir@,$sbindir,;t t
11683 s,@libexecdir@,$libexecdir,;t t
11684 s,@datadir@,$datadir,;t t
11685 s,@sysconfdir@,$sysconfdir,;t t
11686 s,@sharedstatedir@,$sharedstatedir,;t t
11687 s,@localstatedir@,$localstatedir,;t t
11688 s,@libdir@,$libdir,;t t
11689 s,@includedir@,$includedir,;t t
11690 s,@oldincludedir@,$oldincludedir,;t t
11691 s,@infodir@,$infodir,;t t
11692 s,@mandir@,$mandir,;t t
11693 s,@build_alias@,$build_alias,;t t
11694 s,@host_alias@,$host_alias,;t t
11695 s,@target_alias@,$target_alias,;t t
11696 s,@DEFS@,$DEFS,;t t
11697 s,@ECHO_C@,$ECHO_C,;t t
11698 s,@ECHO_N@,$ECHO_N,;t t
11699 s,@ECHO_T@,$ECHO_T,;t t
11700 s,@LIBS@,$LIBS,;t t
11701 s,@build@,$build,;t t
11702 s,@build_cpu@,$build_cpu,;t t
11703 s,@build_vendor@,$build_vendor,;t t
11704 s,@build_os@,$build_os,;t t
11705 s,@host@,$host,;t t
11706 s,@host_cpu@,$host_cpu,;t t
11707 s,@host_vendor@,$host_vendor,;t t
11708 s,@host_os@,$host_os,;t t
11709 s,@target@,$target,;t t
11710 s,@target_cpu@,$target_cpu,;t t
11711 s,@target_vendor@,$target_vendor,;t t
11712 s,@target_os@,$target_os,;t t
11713 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
11714 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
11715 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
11716 s,@PACKAGE@,$PACKAGE,;t t
11717 s,@VERSION@,$VERSION,;t t
11718 s,@ACLOCAL@,$ACLOCAL,;t t
11719 s,@AUTOCONF@,$AUTOCONF,;t t
11720 s,@AUTOMAKE@,$AUTOMAKE,;t t
11721 s,@AUTOHEADER@,$AUTOHEADER,;t t
11722 s,@MAKEINFO@,$MAKEINFO,;t t
11723 s,@AMTAR@,$AMTAR,;t t
11724 s,@install_sh@,$install_sh,;t t
11725 s,@STRIP@,$STRIP,;t t
11726 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
11727 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
11729 s,@SET_MAKE@,$SET_MAKE,;t t
11730 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
11731 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
11732 s,@MAINT@,$MAINT,;t t
11733 s,@DEBUG_TRUE@,$DEBUG_TRUE,;t t
11734 s,@DEBUG_FALSE@,$DEBUG_FALSE,;t t
11735 s,@REALLYSTATIC_TRUE@,$REALLYSTATIC_TRUE,;t t
11736 s,@REALLYSTATIC_FALSE@,$REALLYSTATIC_FALSE,;t t
11738 s,@CXXFLAGS@,$CXXFLAGS,;t t
11739 s,@LDFLAGS@,$LDFLAGS,;t t
11740 s,@CPPFLAGS@,$CPPFLAGS,;t t
11741 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
11742 s,@EXEEXT@,$EXEEXT,;t t
11743 s,@OBJEXT@,$OBJEXT,;t t
11744 s,@DEPDIR@,$DEPDIR,;t t
11745 s,@am__include@,$am__include,;t t
11746 s,@am__quote@,$am__quote,;t t
11747 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
11748 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
11749 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
11750 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
11752 s,@CFLAGS@,$CFLAGS,;t t
11753 s,@ac_ct_CC@,$ac_ct_CC,;t t
11754 s,@CCDEPMODE@,$CCDEPMODE,;t t
11755 s,@LN_S@,$LN_S,;t t
11756 s,@RANLIB@,$RANLIB,;t t
11757 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
11758 s,@ECHO@,$ECHO,;t t
11760 s,@EGREP@,$EGREP,;t t
11761 s,@LIBTOOL@,$LIBTOOL,;t t
11762 s,@LIBTOOL_DEPS@,$LIBTOOL_DEPS,;t t
11763 s,@all_includes@,$all_includes,;t t
11764 s,@all_libraries@,$all_libraries,;t t
11765 s,@AUTODIRS@,$AUTODIRS,;t t
11766 s,@GCC_NEEDS_MS_EXTENSIONS_TRUE@,$GCC_NEEDS_MS_EXTENSIONS_TRUE,;t t
11767 s,@GCC_NEEDS_MS_EXTENSIONS_FALSE@,$GCC_NEEDS_MS_EXTENSIONS_FALSE,;t t
11768 s,@LIBOBJS@,$LIBOBJS,;t t
11769 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
11774 cat >>$CONFIG_STATUS <<\_ACEOF
11775 # Split the substitutions into bite-sized pieces for seds with
11776 # small command number limits, like on Digital OSF/1 and HP-UX.
11777 ac_max_sed_lines=48
11778 ac_sed_frag=1 # Number of current file.
11779 ac_beg=1 # First line for current file.
11780 ac_end=$ac_max_sed_lines # Line after last line for current file.
11783 while $ac_more_lines; do
11784 if test $ac_beg -gt 1; then
11785 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11787 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11789 if test ! -s $tmp/subs.frag; then
11790 ac_more_lines=false
11792 # The purpose of the label and of the branching condition is to
11793 # speed up the sed processing (if there are no `@' at all, there
11794 # is no need to browse any of the substitutions).
11795 # These are the two extra sed commands mentioned above.
11797 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
11798 if test -z "$ac_sed_cmds"; then
11799 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
11801 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
11803 ac_sed_frag=`expr $ac_sed_frag + 1`
11805 ac_end=`expr $ac_end + $ac_max_sed_lines`
11808 if test -z "$ac_sed_cmds"; then
11811 fi # test -n "$CONFIG_FILES"
11814 cat >>$CONFIG_STATUS <<\_ACEOF
11815 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
11816 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11818 - | *:- | *:-:* ) # input from stdin
11820 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11821 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11822 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11823 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11824 * ) ac_file_in=$ac_file.in ;;
11827 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
11828 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11829 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11830 X"$ac_file" : 'X\(//\)[^/]' \| \
11831 X"$ac_file" : 'X\(//\)$' \| \
11832 X"$ac_file" : 'X\(/\)' \| \
11833 . : '\(.\)' 2>/dev/null ||
11835 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11836 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11837 /^X\(\/\/\)$/{ s//\1/; q; }
11838 /^X\(\/\).*/{ s//\1/; q; }
11840 { if $as_mkdir_p; then
11845 while test ! -d "$as_dir"; do
11846 as_dirs="$as_dir $as_dirs"
11847 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11848 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11849 X"$as_dir" : 'X\(//\)[^/]' \| \
11850 X"$as_dir" : 'X\(//\)$' \| \
11851 X"$as_dir" : 'X\(/\)' \| \
11852 . : '\(.\)' 2>/dev/null ||
11854 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11855 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11856 /^X\(\/\/\)$/{ s//\1/; q; }
11857 /^X\(\/\).*/{ s//\1/; q; }
11860 test ! -n "$as_dirs" || mkdir $as_dirs
11861 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11862 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11863 { (exit 1); exit 1; }; }; }
11867 if test "$ac_dir" != .; then
11868 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11869 # A "../" for each directory in $ac_dir_suffix.
11870 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11872 ac_dir_suffix= ac_top_builddir=
11876 .) # No --srcdir option. We are building in place.
11878 if test -z "$ac_top_builddir"; then
11881 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11883 [\\/]* | ?:[\\/]* ) # Absolute path.
11884 ac_srcdir=$srcdir$ac_dir_suffix;
11885 ac_top_srcdir=$srcdir ;;
11886 *) # Relative path.
11887 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11888 ac_top_srcdir=$ac_top_builddir$srcdir ;;
11890 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
11892 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
11893 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
11894 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
11895 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
11899 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11900 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
11903 if test x"$ac_file" != x-; then
11904 { echo "$as_me:$LINENO: creating $ac_file" >&5
11905 echo "$as_me: creating $ac_file" >&6;}
11908 # Let's still pretend it is `configure' which instantiates (i.e., don't
11909 # use $as_me), people would be surprised to read:
11910 # /* config.h. Generated by config.status. */
11911 if test x"$ac_file" = x-; then
11914 configure_input="$ac_file. "
11916 configure_input=$configure_input"Generated from `echo $ac_file_in |
11917 sed 's,.*/,,'` by configure."
11919 # First look for the input files in the build tree, otherwise in the
11921 ac_file_inputs=`IFS=:
11922 for f in $ac_file_in; do
11924 -) echo $tmp/stdin ;;
11926 # Absolute (can't be DOS-style, as IFS=:)
11927 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11928 echo "$as_me: error: cannot find input file: $f" >&2;}
11929 { (exit 1); exit 1; }; }
11932 if test -f "$f"; then
11935 elif test -f "$srcdir/$f"; then
11940 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11941 echo "$as_me: error: cannot find input file: $f" >&2;}
11942 { (exit 1); exit 1; }; }
11945 done` || { (exit 1); exit 1; }
11947 cat >>$CONFIG_STATUS <<_ACEOF
11951 cat >>$CONFIG_STATUS <<\_ACEOF
11953 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11954 s,@configure_input@,$configure_input,;t t
11955 s,@srcdir@,$ac_srcdir,;t t
11956 s,@abs_srcdir@,$ac_abs_srcdir,;t t
11957 s,@top_srcdir@,$ac_top_srcdir,;t t
11958 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
11959 s,@builddir@,$ac_builddir,;t t
11960 s,@abs_builddir@,$ac_abs_builddir,;t t
11961 s,@top_builddir@,$ac_top_builddir,;t t
11962 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
11963 s,@INSTALL@,$ac_INSTALL,;t t
11964 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
11966 if test x"$ac_file" != x-; then
11967 mv $tmp/out $ac_file
11975 cat >>$CONFIG_STATUS <<\_ACEOF
11978 # CONFIG_HEADER section.
11981 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11982 # NAME is the cpp macro being defined and VALUE is the value it is being given.
11984 # ac_d sets the value in "#define NAME VALUE" lines.
11985 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
11986 ac_dB='[ ].*$,\1#\2'
11989 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11990 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11991 ac_uB='$,\1#\2define\3'
11995 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
11996 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11998 - | *:- | *:-:* ) # input from stdin
12000 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12001 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12002 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12003 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12004 * ) ac_file_in=$ac_file.in ;;
12007 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
12008 echo "$as_me: creating $ac_file" >&6;}
12010 # First look for the input files in the build tree, otherwise in the
12012 ac_file_inputs=`IFS=:
12013 for f in $ac_file_in; do
12015 -) echo $tmp/stdin ;;
12017 # Absolute (can't be DOS-style, as IFS=:)
12018 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12019 echo "$as_me: error: cannot find input file: $f" >&2;}
12020 { (exit 1); exit 1; }; }
12023 if test -f "$f"; then
12026 elif test -f "$srcdir/$f"; then
12031 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12032 echo "$as_me: error: cannot find input file: $f" >&2;}
12033 { (exit 1); exit 1; }; }
12036 done` || { (exit 1); exit 1; }
12037 # Remove the trailing spaces.
12038 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
12042 # Transform confdefs.h into two sed scripts, `conftest.defines' and
12043 # `conftest.undefs', that substitutes the proper values into
12044 # config.h.in to produce config.h. The first handles `#define'
12045 # templates, and the second `#undef' templates.
12046 # And first: Protect against being on the right side of a sed subst in
12047 # config.status. Protect against being in an unquoted here document
12048 # in config.status.
12049 rm -f conftest.defines conftest.undefs
12050 # Using a here document instead of a string reduces the quoting nightmare.
12051 # Putting comments in sed scripts is not portable.
12053 # `end' is used to avoid that the second main sed command (meant for
12054 # 0-ary CPP macros) applies to n-ary macro definitions.
12055 # See the Autoconf documentation for `clear'.
12056 cat >confdef2sed.sed <<\_ACEOF
12061 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
12063 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
12066 # If some macros were called several times there might be several times
12067 # the same #defines, which is useless. Nevertheless, we may not want to
12068 # sort them, since we want the *last* AC-DEFINE to be honored.
12069 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
12070 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
12071 rm -f confdef2sed.sed
12073 # This sed command replaces #undef with comments. This is necessary, for
12074 # example, in the case of _POSIX_SOURCE, which is predefined and required
12075 # on some systems where configure will not decide to define it.
12076 cat >>conftest.undefs <<\_ACEOF
12077 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
12080 # Break up conftest.defines because some shells have a limit on the size
12081 # of here documents, and old seds have small limits too (100 cmds).
12082 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
12083 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
12084 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
12085 echo ' :' >>$CONFIG_STATUS
12086 rm -f conftest.tail
12087 while grep . conftest.defines >/dev/null
12089 # Write a limited-size here document to $tmp/defines.sed.
12090 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
12091 # Speed up: don't consider the non `#define' lines.
12092 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
12093 # Work around the forget-to-reset-the-flag bug.
12094 echo 't clr' >>$CONFIG_STATUS
12095 echo ': clr' >>$CONFIG_STATUS
12096 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
12098 sed -f $tmp/defines.sed $tmp/in >$tmp/out
12100 mv $tmp/out $tmp/in
12102 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
12103 rm -f conftest.defines
12104 mv conftest.tail conftest.defines
12106 rm -f conftest.defines
12107 echo ' fi # grep' >>$CONFIG_STATUS
12108 echo >>$CONFIG_STATUS
12110 # Break up conftest.undefs because some shells have a limit on the size
12111 # of here documents, and old seds have small limits too (100 cmds).
12112 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
12113 rm -f conftest.tail
12114 while grep . conftest.undefs >/dev/null
12116 # Write a limited-size here document to $tmp/undefs.sed.
12117 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
12118 # Speed up: don't consider the non `#undef'
12119 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
12120 # Work around the forget-to-reset-the-flag bug.
12121 echo 't clr' >>$CONFIG_STATUS
12122 echo ': clr' >>$CONFIG_STATUS
12123 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
12125 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
12127 mv $tmp/out $tmp/in
12129 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
12130 rm -f conftest.undefs
12131 mv conftest.tail conftest.undefs
12133 rm -f conftest.undefs
12135 cat >>$CONFIG_STATUS <<\_ACEOF
12136 # Let's still pretend it is `configure' which instantiates (i.e., don't
12137 # use $as_me), people would be surprised to read:
12138 # /* config.h. Generated by config.status. */
12139 if test x"$ac_file" = x-; then
12140 echo "/* Generated by configure. */" >$tmp/config.h
12142 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
12144 cat $tmp/in >>$tmp/config.h
12146 if test x"$ac_file" != x-; then
12147 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
12148 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12149 echo "$as_me: $ac_file is unchanged" >&6;}
12151 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12152 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12153 X"$ac_file" : 'X\(//\)[^/]' \| \
12154 X"$ac_file" : 'X\(//\)$' \| \
12155 X"$ac_file" : 'X\(/\)' \| \
12156 . : '\(.\)' 2>/dev/null ||
12158 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12159 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12160 /^X\(\/\/\)$/{ s//\1/; q; }
12161 /^X\(\/\).*/{ s//\1/; q; }
12163 { if $as_mkdir_p; then
12168 while test ! -d "$as_dir"; do
12169 as_dirs="$as_dir $as_dirs"
12170 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12171 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12172 X"$as_dir" : 'X\(//\)[^/]' \| \
12173 X"$as_dir" : 'X\(//\)$' \| \
12174 X"$as_dir" : 'X\(/\)' \| \
12175 . : '\(.\)' 2>/dev/null ||
12177 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12178 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12179 /^X\(\/\/\)$/{ s//\1/; q; }
12180 /^X\(\/\).*/{ s//\1/; q; }
12183 test ! -n "$as_dirs" || mkdir $as_dirs
12184 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12185 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12186 { (exit 1); exit 1; }; }; }
12189 mv $tmp/config.h $ac_file
12193 rm -f $tmp/config.h
12195 # Run the commands associated with the file.
12197 config.h ) # update the timestamp
12198 echo 'timestamp for config.h' >"./stamp-h1"
12203 cat >>$CONFIG_STATUS <<\_ACEOF
12206 # CONFIG_COMMANDS section.
12208 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
12209 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
12210 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
12211 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
12212 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12213 X"$ac_dest" : 'X\(//\)[^/]' \| \
12214 X"$ac_dest" : 'X\(//\)$' \| \
12215 X"$ac_dest" : 'X\(/\)' \| \
12216 . : '\(.\)' 2>/dev/null ||
12218 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12219 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12220 /^X\(\/\/\)$/{ s//\1/; q; }
12221 /^X\(\/\).*/{ s//\1/; q; }
12225 if test "$ac_dir" != .; then
12226 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12227 # A "../" for each directory in $ac_dir_suffix.
12228 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12230 ac_dir_suffix= ac_top_builddir=
12234 .) # No --srcdir option. We are building in place.
12236 if test -z "$ac_top_builddir"; then
12239 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12241 [\\/]* | ?:[\\/]* ) # Absolute path.
12242 ac_srcdir=$srcdir$ac_dir_suffix;
12243 ac_top_srcdir=$srcdir ;;
12244 *) # Relative path.
12245 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12246 ac_top_srcdir=$ac_top_builddir$srcdir ;;
12248 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
12250 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
12251 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
12252 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
12253 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
12256 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
12257 echo "$as_me: executing $ac_dest commands" >&6;}
12259 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
12260 # Strip MF so we end up with the name of the file.
12261 mf=`echo "$mf" | sed -e 's/:.*$//'`
12262 # Check whether this is an Automake generated Makefile or not.
12263 # We used to match only the files named `Makefile.in', but
12264 # some people rename them; so instead we look at the file content.
12265 # Grep'ing the first line is not enough: some people post-process
12266 # each Makefile.in and add a new line on top of each file to say so.
12267 # So let's grep whole file.
12268 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
12269 dirpart=`(dirname "$mf") 2>/dev/null ||
12270 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12271 X"$mf" : 'X\(//\)[^/]' \| \
12272 X"$mf" : 'X\(//\)$' \| \
12273 X"$mf" : 'X\(/\)' \| \
12274 . : '\(.\)' 2>/dev/null ||
12276 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12277 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12278 /^X\(\/\/\)$/{ s//\1/; q; }
12279 /^X\(\/\).*/{ s//\1/; q; }
12284 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
12285 # Extract the definition of DEP_FILES from the Makefile without
12287 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
12288 test -z "$DEPDIR" && continue
12289 # When using ansi2knr, U may be empty or an underscore; expand it
12290 U=`sed -n -e '/^U = / s///p' < "$mf"`
12291 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
12292 # We invoke sed twice because it is the simplest approach to
12293 # changing $(DEPDIR) to its actual value in the expansion.
12294 for file in `sed -n -e '
12295 /^DEP_FILES = .*\\\\$/ {
12304 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
12305 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12306 # Make sure the directory exists.
12307 test -f "$dirpart/$file" && continue
12308 fdir=`(dirname "$file") 2>/dev/null ||
12309 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12310 X"$file" : 'X\(//\)[^/]' \| \
12311 X"$file" : 'X\(//\)$' \| \
12312 X"$file" : 'X\(/\)' \| \
12313 . : '\(.\)' 2>/dev/null ||
12315 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12316 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12317 /^X\(\/\/\)$/{ s//\1/; q; }
12318 /^X\(\/\).*/{ s//\1/; q; }
12320 { if $as_mkdir_p; then
12321 mkdir -p $dirpart/$fdir
12323 as_dir=$dirpart/$fdir
12325 while test ! -d "$as_dir"; do
12326 as_dirs="$as_dir $as_dirs"
12327 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12328 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12329 X"$as_dir" : 'X\(//\)[^/]' \| \
12330 X"$as_dir" : 'X\(//\)$' \| \
12331 X"$as_dir" : 'X\(/\)' \| \
12332 . : '\(.\)' 2>/dev/null ||
12334 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12335 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12336 /^X\(\/\/\)$/{ s//\1/; q; }
12337 /^X\(\/\).*/{ s//\1/; q; }
12340 test ! -n "$as_dirs" || mkdir $as_dirs
12341 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
12342 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
12343 { (exit 1); exit 1; }; }; }
12345 # echo "creating $dirpart/$file"
12346 echo '# dummy' > "$dirpart/$file"
12354 cat >>$CONFIG_STATUS <<\_ACEOF
12356 { (exit 0); exit 0; }
12358 chmod +x $CONFIG_STATUS
12359 ac_clean_files=$ac_clean_files_save
12362 # configure is writing to config.log, and then calls config.status.
12363 # config.status does its own redirection, appending to config.log.
12364 # Unfortunately, on DOS this fails, as config.log is still kept open
12365 # by configure, so config.status won't be able to write to it; its
12366 # output is simply discarded. So we exec the FD to /dev/null,
12367 # effectively closing config.log, so it can be properly (re)opened and
12368 # appended to by config.status. When coming back to configure, we
12369 # need to make the FD available again.
12370 if test "$no_create" != yes; then
12372 ac_config_status_args=
12373 test "$silent" = yes &&
12374 ac_config_status_args="$ac_config_status_args --quiet"
12376 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12378 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12379 # would make configure fail if this is the last instruction.
12380 $ac_cs_success || { (exit 1); exit 1; }