2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for libltdl 1.2.
5 # Report bugs to <bug-libtool@gnu.org>.
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24 DUALCASE=1; export DUALCASE # for MKS sh
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/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 -z "`(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
223 test -d ./-p && rmdir ./-p
227 as_executable_p="test -f"
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
237 # We need space, tab and new line, in precisely that order.
247 # Check that we are running under the correct shell.
248 SHELL=${CONFIG_SHELL-/bin/sh}
252 # Remove one level of quotation (which was required for Make).
253 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
258 if test "X$1" = X--no-reexec; then
259 # Discard the --no-reexec flag, and continue.
261 elif test "X$1" = X--fallback-echo; then
262 # Avoid inline document here, it may be left over
264 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
265 # Yippee, $echo works!
268 # Restart under the correct shell.
269 exec $SHELL "$0" --no-reexec ${1+"$@"}
272 if test "X$1" = X--fallback-echo; then
273 # used as fallback echo
281 # The HP-UX ksh and POSIX shell print the target directory to stdout
283 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
285 if test -z "$ECHO"; then
286 if test "X${echo_test_string+set}" != Xset; then
287 # find a string as large as possible, as long as the shell can cope with it
288 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
289 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
290 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
291 echo_test_string="`eval $cmd`" &&
292 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
300 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
301 test "X$echo_testing_string" = "X$echo_test_string"; then
304 # The Solaris, AIX, and Digital Unix default echo programs unquote
305 # backslashes. This makes it impossible to quote backslashes using
306 # echo "$something" | sed 's/\\/\\\\/g'
308 # So, first we look for a working echo in the user's PATH.
310 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
311 for dir in $PATH /usr/ucb; do
313 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
314 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
315 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
316 test "X$echo_testing_string" = "X$echo_test_string"; then
323 if test "X$echo" = Xecho; then
324 # We didn't find a better echo, so look for alternatives.
325 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
326 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
327 test "X$echo_testing_string" = "X$echo_test_string"; then
328 # This shell has a builtin print -r that does the trick.
330 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
331 test "X$CONFIG_SHELL" != X/bin/ksh; then
332 # If we have ksh, try running configure again with it.
333 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
334 export ORIGINAL_CONFIG_SHELL
335 CONFIG_SHELL=/bin/ksh
337 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
341 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
342 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
343 test "X$echo_testing_string" = "X$echo_test_string"; then
346 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
347 test "X$echo_testing_string" = 'X\t' &&
348 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
349 test "X$echo_testing_string" = "X$echo_test_string"; then
350 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
352 SHELL="$CONFIG_SHELL"
354 echo="$CONFIG_SHELL $0 --fallback-echo"
355 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
356 test "X$echo_testing_string" = 'X\t' &&
357 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
358 test "X$echo_testing_string" = "X$echo_test_string"; then
359 echo="$CONFIG_SHELL $0 --fallback-echo"
361 # maybe with a smaller string...
364 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
365 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372 if test "$prev" != 'sed 50q "$0"'; then
373 echo_test_string=`eval $prev`
374 export echo_test_string
375 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
377 # Oops. We lost completely, so just stick with echo.
386 # Copy echo and quote the copy suitably for passing to libtool from
387 # the Makefile, instead of quoting the original, which is used later.
389 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
390 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
396 tagnames=`echo "$tagnames,CXX" | sed 's/^,//'`
398 tagnames=`echo "$tagnames,F77" | sed 's/^,//'`
401 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
402 # so uname gets run too.
403 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410 ac_default_prefix=/usr/local
411 ac_config_libobj_dir=.
416 SHELL=${CONFIG_SHELL-/bin/sh}
418 # Maximum number of lines to put in a shell here document.
419 # This variable seems obsolete. It should probably be removed, and
420 # only ac_max_sed_lines should be used.
421 : ${ac_max_here_lines=38}
423 # Identity of this package.
424 PACKAGE_NAME='libltdl'
425 PACKAGE_TARNAME='libltdl'
426 PACKAGE_VERSION='1.2'
427 PACKAGE_STRING='libltdl 1.2'
428 PACKAGE_BUGREPORT='bug-libtool@gnu.org'
430 ac_unique_file="ltdl.c"
431 # Factoring default headers for most tests.
432 ac_includes_default="\
435 # include <sys/types.h>
438 # include <sys/stat.h>
449 # if !STDC_HEADERS && HAVE_MEMORY_H
455 # include <strings.h>
458 # include <inttypes.h>
468 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 INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB DLLTOOL ac_ct_DLLTOOL AS ac_ct_AS OBJDUMP ac_ct_OBJDUMP CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LIBTOOL_DEPS INSTALL_LTDL_TRUE INSTALL_LTDL_FALSE CONVENIENCE_LTDL_TRUE CONVENIENCE_LTDL_FALSE LIBADD_DL LIBOBJS LTLIBOBJS'
471 # Initialize some variables set by options.
473 ac_init_version=false
474 # The variables have the same names as the options, with
475 # dashes changed to underlines.
483 program_transform_name=s,x,x,
491 # Installation directory options.
492 # These are left unexpanded so users can "make install exec_prefix=/foo"
493 # and all the variables that are supposed to be based on exec_prefix
494 # by default will actually change.
495 # Use braces instead of parens because sh, perl, etc. also accept them.
496 bindir='${exec_prefix}/bin'
497 sbindir='${exec_prefix}/sbin'
498 libexecdir='${exec_prefix}/libexec'
499 datadir='${prefix}/share'
500 sysconfdir='${prefix}/etc'
501 sharedstatedir='${prefix}/com'
502 localstatedir='${prefix}/var'
503 libdir='${exec_prefix}/lib'
504 includedir='${prefix}/include'
505 oldincludedir='/usr/include'
506 infodir='${prefix}/info'
507 mandir='${prefix}/man'
512 # If the previous option needs an argument, assign it.
513 if test -n "$ac_prev"; then
514 eval "$ac_prev=\$ac_option"
519 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
521 # Accept the important Cygnus configure options, so we can diagnose typos.
525 -bindir | --bindir | --bindi | --bind | --bin | --bi)
527 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
530 -build | --build | --buil | --bui | --bu)
531 ac_prev=build_alias ;;
532 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
533 build_alias=$ac_optarg ;;
535 -cache-file | --cache-file | --cache-fil | --cache-fi \
536 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
537 ac_prev=cache_file ;;
538 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
539 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
540 cache_file=$ac_optarg ;;
543 cache_file=config.cache ;;
545 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
547 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
549 datadir=$ac_optarg ;;
551 -disable-* | --disable-*)
552 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
553 # Reject names that are not valid shell variable names.
554 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
555 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
556 { (exit 1); exit 1; }; }
557 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
558 eval "enable_$ac_feature=no" ;;
560 -enable-* | --enable-*)
561 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
562 # Reject names that are not valid shell variable names.
563 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
564 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
565 { (exit 1); exit 1; }; }
566 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
568 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
571 eval "enable_$ac_feature='$ac_optarg'" ;;
573 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
574 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
575 | --exec | --exe | --ex)
576 ac_prev=exec_prefix ;;
577 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
578 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
579 | --exec=* | --exe=* | --ex=*)
580 exec_prefix=$ac_optarg ;;
582 -gas | --gas | --ga | --g)
583 # Obsolete; use --with-gas.
586 -help | --help | --hel | --he | -h)
588 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
589 ac_init_help=recursive ;;
590 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
591 ac_init_help=short ;;
593 -host | --host | --hos | --ho)
594 ac_prev=host_alias ;;
595 -host=* | --host=* | --hos=* | --ho=*)
596 host_alias=$ac_optarg ;;
598 -includedir | --includedir | --includedi | --included | --include \
599 | --includ | --inclu | --incl | --inc)
600 ac_prev=includedir ;;
601 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
602 | --includ=* | --inclu=* | --incl=* | --inc=*)
603 includedir=$ac_optarg ;;
605 -infodir | --infodir | --infodi | --infod | --info | --inf)
607 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
608 infodir=$ac_optarg ;;
610 -libdir | --libdir | --libdi | --libd)
612 -libdir=* | --libdir=* | --libdi=* | --libd=*)
615 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
616 | --libexe | --libex | --libe)
617 ac_prev=libexecdir ;;
618 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
619 | --libexe=* | --libex=* | --libe=*)
620 libexecdir=$ac_optarg ;;
622 -localstatedir | --localstatedir | --localstatedi | --localstated \
623 | --localstate | --localstat | --localsta | --localst \
624 | --locals | --local | --loca | --loc | --lo)
625 ac_prev=localstatedir ;;
626 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
627 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
628 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
629 localstatedir=$ac_optarg ;;
631 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
633 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
637 # Obsolete; use --without-fp.
640 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
641 | --no-cr | --no-c | -n)
644 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
645 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
648 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
649 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
650 | --oldin | --oldi | --old | --ol | --o)
651 ac_prev=oldincludedir ;;
652 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
653 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
654 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
655 oldincludedir=$ac_optarg ;;
657 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
659 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
662 -program-prefix | --program-prefix | --program-prefi | --program-pref \
663 | --program-pre | --program-pr | --program-p)
664 ac_prev=program_prefix ;;
665 -program-prefix=* | --program-prefix=* | --program-prefi=* \
666 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
667 program_prefix=$ac_optarg ;;
669 -program-suffix | --program-suffix | --program-suffi | --program-suff \
670 | --program-suf | --program-su | --program-s)
671 ac_prev=program_suffix ;;
672 -program-suffix=* | --program-suffix=* | --program-suffi=* \
673 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
674 program_suffix=$ac_optarg ;;
676 -program-transform-name | --program-transform-name \
677 | --program-transform-nam | --program-transform-na \
678 | --program-transform-n | --program-transform- \
679 | --program-transform | --program-transfor \
680 | --program-transfo | --program-transf \
681 | --program-trans | --program-tran \
682 | --progr-tra | --program-tr | --program-t)
683 ac_prev=program_transform_name ;;
684 -program-transform-name=* | --program-transform-name=* \
685 | --program-transform-nam=* | --program-transform-na=* \
686 | --program-transform-n=* | --program-transform-=* \
687 | --program-transform=* | --program-transfor=* \
688 | --program-transfo=* | --program-transf=* \
689 | --program-trans=* | --program-tran=* \
690 | --progr-tra=* | --program-tr=* | --program-t=*)
691 program_transform_name=$ac_optarg ;;
693 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
694 | -silent | --silent | --silen | --sile | --sil)
697 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
699 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
701 sbindir=$ac_optarg ;;
703 -sharedstatedir | --sharedstatedir | --sharedstatedi \
704 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
705 | --sharedst | --shareds | --shared | --share | --shar \
707 ac_prev=sharedstatedir ;;
708 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
709 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
710 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
712 sharedstatedir=$ac_optarg ;;
714 -site | --site | --sit)
716 -site=* | --site=* | --sit=*)
719 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
721 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
724 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
725 | --syscon | --sysco | --sysc | --sys | --sy)
726 ac_prev=sysconfdir ;;
727 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
728 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
729 sysconfdir=$ac_optarg ;;
731 -target | --target | --targe | --targ | --tar | --ta | --t)
732 ac_prev=target_alias ;;
733 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
734 target_alias=$ac_optarg ;;
736 -v | -verbose | --verbose | --verbos | --verbo | --verb)
739 -version | --version | --versio | --versi | --vers | -V)
743 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
744 # Reject names that are not valid shell variable names.
745 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
746 { echo "$as_me: error: invalid package name: $ac_package" >&2
747 { (exit 1); exit 1; }; }
748 ac_package=`echo $ac_package| sed 's/-/_/g'`
750 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
753 eval "with_$ac_package='$ac_optarg'" ;;
755 -without-* | --without-*)
756 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
757 # Reject names that are not valid shell variable names.
758 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
759 { echo "$as_me: error: invalid package name: $ac_package" >&2
760 { (exit 1); exit 1; }; }
761 ac_package=`echo $ac_package | sed 's/-/_/g'`
762 eval "with_$ac_package=no" ;;
765 # Obsolete; use --with-x.
768 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
769 | --x-incl | --x-inc | --x-in | --x-i)
770 ac_prev=x_includes ;;
771 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
772 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
773 x_includes=$ac_optarg ;;
775 -x-libraries | --x-libraries | --x-librarie | --x-librari \
776 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
777 ac_prev=x_libraries ;;
778 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
779 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
780 x_libraries=$ac_optarg ;;
782 -*) { echo "$as_me: error: unrecognized option: $ac_option
783 Try \`$0 --help' for more information." >&2
784 { (exit 1); exit 1; }; }
788 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
789 # Reject names that are not valid shell variable names.
790 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
791 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
792 { (exit 1); exit 1; }; }
793 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
794 eval "$ac_envvar='$ac_optarg'"
798 # FIXME: should be removed in autoconf 3.0.
799 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
800 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
801 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
802 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
808 if test -n "$ac_prev"; then
809 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
810 { echo "$as_me: error: missing argument to $ac_option" >&2
811 { (exit 1); exit 1; }; }
814 # Be sure to have absolute paths.
815 for ac_var in exec_prefix prefix
817 eval ac_val=$`echo $ac_var`
819 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
820 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
821 { (exit 1); exit 1; }; };;
825 # Be sure to have absolute paths.
826 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
827 localstatedir libdir includedir oldincludedir infodir mandir
829 eval ac_val=$`echo $ac_var`
831 [\\/$]* | ?:[\\/]* ) ;;
832 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
833 { (exit 1); exit 1; }; };;
837 # There might be people who depend on the old broken behavior: `$host'
838 # used to hold the argument of --host etc.
839 # FIXME: To remove some day.
844 # FIXME: To remove some day.
845 if test "x$host_alias" != x; then
846 if test "x$build_alias" = x; then
847 cross_compiling=maybe
848 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
849 If a cross compiler is detected then cross compile mode will be used." >&2
850 elif test "x$build_alias" != "x$host_alias"; then
856 test -n "$host_alias" && ac_tool_prefix=$host_alias-
858 test "$silent" = yes && exec 6>/dev/null
861 # Find the source files, if location was not specified.
862 if test -z "$srcdir"; then
863 ac_srcdir_defaulted=yes
864 # Try the directory containing this script, then its parent.
865 ac_confdir=`(dirname "$0") 2>/dev/null ||
866 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
867 X"$0" : 'X\(//\)[^/]' \| \
868 X"$0" : 'X\(//\)$' \| \
869 X"$0" : 'X\(/\)' \| \
870 . : '\(.\)' 2>/dev/null ||
872 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
873 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
874 /^X\(\/\/\)$/{ s//\1/; q; }
875 /^X\(\/\).*/{ s//\1/; q; }
878 if test ! -r $srcdir/$ac_unique_file; then
882 ac_srcdir_defaulted=no
884 if test ! -r $srcdir/$ac_unique_file; then
885 if test "$ac_srcdir_defaulted" = yes; then
886 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
887 { (exit 1); exit 1; }; }
889 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
890 { (exit 1); exit 1; }; }
893 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
894 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
895 { (exit 1); exit 1; }; }
896 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
897 ac_env_build_alias_set=${build_alias+set}
898 ac_env_build_alias_value=$build_alias
899 ac_cv_env_build_alias_set=${build_alias+set}
900 ac_cv_env_build_alias_value=$build_alias
901 ac_env_host_alias_set=${host_alias+set}
902 ac_env_host_alias_value=$host_alias
903 ac_cv_env_host_alias_set=${host_alias+set}
904 ac_cv_env_host_alias_value=$host_alias
905 ac_env_target_alias_set=${target_alias+set}
906 ac_env_target_alias_value=$target_alias
907 ac_cv_env_target_alias_set=${target_alias+set}
908 ac_cv_env_target_alias_value=$target_alias
909 ac_env_CC_set=${CC+set}
911 ac_cv_env_CC_set=${CC+set}
912 ac_cv_env_CC_value=$CC
913 ac_env_CFLAGS_set=${CFLAGS+set}
914 ac_env_CFLAGS_value=$CFLAGS
915 ac_cv_env_CFLAGS_set=${CFLAGS+set}
916 ac_cv_env_CFLAGS_value=$CFLAGS
917 ac_env_LDFLAGS_set=${LDFLAGS+set}
918 ac_env_LDFLAGS_value=$LDFLAGS
919 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
920 ac_cv_env_LDFLAGS_value=$LDFLAGS
921 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
922 ac_env_CPPFLAGS_value=$CPPFLAGS
923 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
924 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
925 ac_env_CPP_set=${CPP+set}
926 ac_env_CPP_value=$CPP
927 ac_cv_env_CPP_set=${CPP+set}
928 ac_cv_env_CPP_value=$CPP
929 ac_env_CXX_set=${CXX+set}
930 ac_env_CXX_value=$CXX
931 ac_cv_env_CXX_set=${CXX+set}
932 ac_cv_env_CXX_value=$CXX
933 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
934 ac_env_CXXFLAGS_value=$CXXFLAGS
935 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
936 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
937 ac_env_CXXCPP_set=${CXXCPP+set}
938 ac_env_CXXCPP_value=$CXXCPP
939 ac_cv_env_CXXCPP_set=${CXXCPP+set}
940 ac_cv_env_CXXCPP_value=$CXXCPP
941 ac_env_F77_set=${F77+set}
942 ac_env_F77_value=$F77
943 ac_cv_env_F77_set=${F77+set}
944 ac_cv_env_F77_value=$F77
945 ac_env_FFLAGS_set=${FFLAGS+set}
946 ac_env_FFLAGS_value=$FFLAGS
947 ac_cv_env_FFLAGS_set=${FFLAGS+set}
948 ac_cv_env_FFLAGS_value=$FFLAGS
951 # Report the --help message.
953 if test "$ac_init_help" = "long"; then
954 # Omit some internal or obsolete options to make the list less imposing.
955 # This message is too long to be a string in the A/UX 3.1 sh.
957 \`configure' configures libltdl 1.2 to adapt to many kinds of systems.
959 Usage: $0 [OPTION]... [VAR=VALUE]...
961 To assign environment variables (e.g., CC, CFLAGS...), specify them as
962 VAR=VALUE. See below for descriptions of some of the useful variables.
964 Defaults for the options are specified in brackets.
967 -h, --help display this help and exit
968 --help=short display options specific to this package
969 --help=recursive display the short help of all the included packages
970 -V, --version display version information and exit
971 -q, --quiet, --silent do not print \`checking...' messages
972 --cache-file=FILE cache test results in FILE [disabled]
973 -C, --config-cache alias for \`--cache-file=config.cache'
974 -n, --no-create do not create output files
975 --srcdir=DIR find the sources in DIR [configure dir or \`..']
980 Installation directories:
981 --prefix=PREFIX install architecture-independent files in PREFIX
983 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
986 By default, \`make install' will install all the files in
987 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
988 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
989 for instance \`--prefix=\$HOME'.
991 For better control, use the options below.
993 Fine tuning of the installation directories:
994 --bindir=DIR user executables [EPREFIX/bin]
995 --sbindir=DIR system admin executables [EPREFIX/sbin]
996 --libexecdir=DIR program executables [EPREFIX/libexec]
997 --datadir=DIR read-only architecture-independent data [PREFIX/share]
998 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
999 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1000 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1001 --libdir=DIR object code libraries [EPREFIX/lib]
1002 --includedir=DIR C header files [PREFIX/include]
1003 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1004 --infodir=DIR info documentation [PREFIX/info]
1005 --mandir=DIR man documentation [PREFIX/man]
1011 --program-prefix=PREFIX prepend PREFIX to installed program names
1012 --program-suffix=SUFFIX append SUFFIX to installed program names
1013 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1016 --build=BUILD configure for building on BUILD [guessed]
1017 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1021 if test -n "$ac_init_help"; then
1022 case $ac_init_help in
1023 short | recursive ) echo "Configuration of libltdl 1.2:";;
1028 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1029 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1030 --enable-maintainer-mode enable make rules and dependencies not useful
1031 (and sometimes confusing) to the casual installer
1032 --disable-dependency-tracking speeds up one-time build
1033 --enable-dependency-tracking do not reject slow dependency extractors
1034 --enable-shared[=PKGS]
1035 build shared libraries [default=yes]
1036 --enable-static[=PKGS]
1037 build static libraries [default=yes]
1038 --enable-fast-install[=PKGS]
1039 optimize for fast installation [default=yes]
1040 --disable-libtool-lock avoid locking (might break parallel builds)
1041 --enable-ltdl-install install libltdl
1044 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1045 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1046 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1047 --with-pic try to use only PIC/non-PIC objects [default=use
1050 include additional configurations [automatic]
1052 Some influential environment variables:
1053 CC C compiler command
1054 CFLAGS C compiler flags
1055 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1056 nonstandard directory <lib dir>
1057 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1058 headers in a nonstandard directory <include dir>
1060 CXX C++ compiler command
1061 CXXFLAGS C++ compiler flags
1062 CXXCPP C++ preprocessor
1063 F77 Fortran 77 compiler command
1064 FFLAGS Fortran 77 compiler flags
1066 Use these variables to override the choices made by `configure' or to help
1067 it to find libraries and programs with nonstandard names/locations.
1069 Report bugs to <bug-libtool@gnu.org>.
1073 if test "$ac_init_help" = "recursive"; then
1074 # If there are subdirs, report their specific --help.
1076 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1077 test -d $ac_dir || continue
1080 if test "$ac_dir" != .; then
1081 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1082 # A "../" for each directory in $ac_dir_suffix.
1083 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1085 ac_dir_suffix= ac_top_builddir=
1089 .) # No --srcdir option. We are building in place.
1091 if test -z "$ac_top_builddir"; then
1094 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1096 [\\/]* | ?:[\\/]* ) # Absolute path.
1097 ac_srcdir=$srcdir$ac_dir_suffix;
1098 ac_top_srcdir=$srcdir ;;
1100 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1101 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1104 # Do not use `cd foo && pwd` to compute absolute paths, because
1105 # the directories may not exist.
1107 .) ac_abs_builddir="$ac_dir";;
1110 .) ac_abs_builddir=`pwd`;;
1111 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1112 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1115 case $ac_abs_builddir in
1116 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1118 case ${ac_top_builddir}. in
1119 .) ac_abs_top_builddir=$ac_abs_builddir;;
1120 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1121 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1124 case $ac_abs_builddir in
1125 .) ac_abs_srcdir=$ac_srcdir;;
1128 .) ac_abs_srcdir=$ac_abs_builddir;;
1129 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1130 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1133 case $ac_abs_builddir in
1134 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1136 case $ac_top_srcdir in
1137 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1138 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1139 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1144 # Check for guested configure; otherwise get Cygnus style configure.
1145 if test -f $ac_srcdir/configure.gnu; then
1147 $SHELL $ac_srcdir/configure.gnu --help=recursive
1148 elif test -f $ac_srcdir/configure; then
1150 $SHELL $ac_srcdir/configure --help=recursive
1151 elif test -f $ac_srcdir/configure.ac ||
1152 test -f $ac_srcdir/configure.in; then
1154 $ac_configure --help
1156 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1162 test -n "$ac_init_help" && exit 0
1163 if $ac_init_version; then
1165 libltdl configure 1.2
1166 generated by GNU Autoconf 2.59
1168 Copyright (C) 2003 Free Software Foundation, Inc.
1169 This configure script is free software; the Free Software Foundation
1170 gives unlimited permission to copy, distribute and modify it.
1176 This file contains any messages produced by compilers while
1177 running configure, to aid debugging if configure makes a mistake.
1179 It was created by libltdl $as_me 1.2, which was
1180 generated by GNU Autoconf 2.59. Invocation command line was
1191 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1192 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1193 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1194 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1195 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1197 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1198 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1200 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1201 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1202 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1203 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1204 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1205 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1206 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1214 test -z "$as_dir" && as_dir=.
1215 echo "PATH: $as_dir"
1230 # Keep a trace of the command line.
1231 # Strip out --no-create and --no-recursion so they do not pile up.
1232 # Strip out --silent because we don't want to record it for future runs.
1233 # Also quote any args containing shell meta-characters.
1234 # Make two passes to allow for proper duplicate-argument suppression.
1239 ac_must_keep_next=false
1245 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1246 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1247 | -silent | --silent | --silen | --sile | --sil)
1249 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1250 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1253 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1255 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1256 if test $ac_must_keep_next = true; then
1257 ac_must_keep_next=false # Got value, back to normal.
1260 *=* | --config-cache | -C | -disable-* | --disable-* \
1261 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1262 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1263 | -with-* | --with-* | -without-* | --without-* | --x)
1264 case "$ac_configure_args0 " in
1265 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1268 -* ) ac_must_keep_next=true ;;
1271 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1272 # Get rid of the leading space.
1278 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1279 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1281 # When interrupted or exit'd, cleanup temporary files, and complete
1282 # config.log. We remove comments because anyway the quotes in there
1283 # would cause problems or look ugly.
1284 # WARNING: Be sure not to use single quotes in there, as some shells,
1285 # such as our DU 5.0 friend, will then `close' the trap.
1286 trap 'exit_status=$?
1287 # Save into config.log some information that might help in debugging.
1292 ## ---------------- ##
1293 ## Cache variables. ##
1294 ## ---------------- ##
1297 # The following way of writing the cache mishandles newlines in values,
1300 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1303 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1304 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1308 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1315 ## ----------------- ##
1316 ## Output variables. ##
1317 ## ----------------- ##
1320 for ac_var in $ac_subst_vars
1322 eval ac_val=$`echo $ac_var`
1323 echo "$ac_var='"'"'$ac_val'"'"'"
1327 if test -n "$ac_subst_files"; then
1334 for ac_var in $ac_subst_files
1336 eval ac_val=$`echo $ac_var`
1337 echo "$ac_var='"'"'$ac_val'"'"'"
1342 if test -s confdefs.h; then
1349 sed "/^$/d" confdefs.h | sort
1352 test "$ac_signal" != 0 &&
1353 echo "$as_me: caught signal $ac_signal"
1354 echo "$as_me: exit $exit_status"
1356 rm -f core *.core &&
1357 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1360 for ac_signal in 1 2 13 15; do
1361 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1365 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1366 rm -rf conftest* confdefs.h
1367 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1370 # Predefined preprocessor variables.
1372 cat >>confdefs.h <<_ACEOF
1373 #define PACKAGE_NAME "$PACKAGE_NAME"
1377 cat >>confdefs.h <<_ACEOF
1378 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1382 cat >>confdefs.h <<_ACEOF
1383 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1387 cat >>confdefs.h <<_ACEOF
1388 #define PACKAGE_STRING "$PACKAGE_STRING"
1392 cat >>confdefs.h <<_ACEOF
1393 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1397 # Let the site file select an alternate cache file if it wants to.
1398 # Prefer explicitly selected file to automatically selected ones.
1399 if test -z "$CONFIG_SITE"; then
1400 if test "x$prefix" != xNONE; then
1401 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1403 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1406 for ac_site_file in $CONFIG_SITE; do
1407 if test -r "$ac_site_file"; then
1408 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1409 echo "$as_me: loading site script $ac_site_file" >&6;}
1410 sed 's/^/| /' "$ac_site_file" >&5
1415 if test -r "$cache_file"; then
1416 # Some versions of bash will fail to source /dev/null (special
1417 # files actually), so we avoid doing that.
1418 if test -f "$cache_file"; then
1419 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1420 echo "$as_me: loading cache $cache_file" >&6;}
1422 [\\/]* | ?:[\\/]* ) . $cache_file;;
1423 *) . ./$cache_file;;
1427 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1428 echo "$as_me: creating cache $cache_file" >&6;}
1432 # Check that the precious variables saved in the cache have kept the same
1434 ac_cache_corrupted=false
1435 for ac_var in `(set) 2>&1 |
1436 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1437 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1438 eval ac_new_set=\$ac_env_${ac_var}_set
1439 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1440 eval ac_new_val="\$ac_env_${ac_var}_value"
1441 case $ac_old_set,$ac_new_set in
1443 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1444 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1445 ac_cache_corrupted=: ;;
1447 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1448 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1449 ac_cache_corrupted=: ;;
1452 if test "x$ac_old_val" != "x$ac_new_val"; then
1453 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1454 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1455 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1456 echo "$as_me: former value: $ac_old_val" >&2;}
1457 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1458 echo "$as_me: current value: $ac_new_val" >&2;}
1459 ac_cache_corrupted=:
1462 # Pass precious variables to config.status.
1463 if test "$ac_new_set" = set; then
1465 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1466 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1467 *) ac_arg=$ac_var=$ac_new_val ;;
1469 case " $ac_configure_args " in
1470 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1471 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1475 if $ac_cache_corrupted; then
1476 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1477 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1478 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1479 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1480 { (exit 1); exit 1; }; }
1484 ac_cpp='$CPP $CPPFLAGS'
1485 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1486 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1487 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1518 ## ------------------------------- ##
1519 ## Libltdl specific configuration. ##
1520 ## ------------------------------- ##
1523 for ac_dir in . $srcdir/.; do
1524 if test -f $ac_dir/install-sh; then
1526 ac_install_sh="$ac_aux_dir/install-sh -c"
1528 elif test -f $ac_dir/install.sh; then
1530 ac_install_sh="$ac_aux_dir/install.sh -c"
1532 elif test -f $ac_dir/shtool; then
1534 ac_install_sh="$ac_aux_dir/shtool install -c"
1538 if test -z "$ac_aux_dir"; then
1539 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . $srcdir/." >&5
1540 echo "$as_me: error: cannot find install-sh or install.sh in . $srcdir/." >&2;}
1541 { (exit 1); exit 1; }; }
1543 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1544 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1545 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1548 if test -z "$enable_ltdl_install$enable_ltdl_convenience"; then
1549 if test -f ${srcdir}/ltmain.sh; then
1550 # if libltdl is libtoolized, it is assumed to be stand-alone and
1551 # installed unless the command line overrides it (tested above)
1552 enable_ltdl_install=yes
1554 { echo "$as_me:$LINENO: WARNING: *** The top-level configure must select either" >&5
1555 echo "$as_me: WARNING: *** The top-level configure must select either" >&2;}
1556 { echo "$as_me:$LINENO: WARNING: *** A\"\"C_LIBLTDL_INSTALLABLE or A\"\"C_LIBLTDL_CONVENIENCE." >&5
1557 echo "$as_me: WARNING: *** A\"\"C_LIBLTDL_INSTALLABLE or A\"\"C_LIBLTDL_CONVENIENCE." >&2;}
1558 { { echo "$as_me:$LINENO: error: *** Maybe you want to --enable-ltdl-install?" >&5
1559 echo "$as_me: error: *** Maybe you want to --enable-ltdl-install?" >&2;}
1560 { (exit 1); exit 1; }; }
1565 ## ------------------------ ##
1566 ## Automake Initialisation. ##
1567 ## ------------------------ ##
1568 am__api_version="1.8"
1569 # Find a good install program. We prefer a C program (faster),
1570 # so one script is as good as another. But avoid the broken or
1571 # incompatible versions:
1572 # SysV /etc/install, /usr/sbin/install
1573 # SunOS /usr/etc/install
1574 # IRIX /sbin/install
1576 # AmigaOS /C/install, which installs bootblocks on floppy discs
1577 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1578 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1579 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1580 # OS/2's system install, which has a completely different semantic
1581 # ./install, which can be erroneously created by make from ./install.sh.
1582 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1583 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1584 if test -z "$INSTALL"; then
1585 if test "${ac_cv_path_install+set}" = set; then
1586 echo $ECHO_N "(cached) $ECHO_C" >&6
1588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1592 test -z "$as_dir" && as_dir=.
1593 # Account for people who put trailing slashes in PATH elements.
1595 ./ | .// | /cC/* | \
1596 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1597 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1600 # OSF1 and SCO ODT 3.0 have their own names for install.
1601 # Don't use installbsd from OSF since it installs stuff as root
1603 for ac_prog in ginstall scoinst install; do
1604 for ac_exec_ext in '' $ac_executable_extensions; do
1605 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1606 if test $ac_prog = install &&
1607 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1608 # AIX install. It has an incompatible calling convention.
1610 elif test $ac_prog = install &&
1611 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1612 # program-specific install script used by HP pwplus--don't use.
1615 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1627 if test "${ac_cv_path_install+set}" = set; then
1628 INSTALL=$ac_cv_path_install
1630 # As a last resort, use the slow shell script. We don't cache a
1631 # path for INSTALL within a source directory, because that will
1632 # break other packages using the cache if that directory is
1633 # removed, or if the path is relative.
1634 INSTALL=$ac_install_sh
1637 echo "$as_me:$LINENO: result: $INSTALL" >&5
1638 echo "${ECHO_T}$INSTALL" >&6
1640 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1641 # It thinks the first close brace ends the variable substitution.
1642 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1644 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1646 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1648 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1649 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1652 echo timestamp > conftest.file
1653 # Do `set' in a subshell so we don't clobber the current shell's
1654 # arguments. Must try -L first in case configure is actually a
1655 # symlink; some systems play weird games with the mod time of symlinks
1656 # (eg FreeBSD returns the mod time of the symlink's containing
1659 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1660 if test "$*" = "X"; then
1662 set X `ls -t $srcdir/configure conftest.file`
1665 if test "$*" != "X $srcdir/configure conftest.file" \
1666 && test "$*" != "X conftest.file $srcdir/configure"; then
1668 # If neither matched, then we have a broken ls. This can happen
1669 # if, for instance, CONFIG_SHELL is bash and it inherits a
1670 # broken ls alias from the environment. This has actually
1671 # happened. Such a system could not be considered "sane".
1672 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1673 alias in your environment" >&5
1674 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1675 alias in your environment" >&2;}
1676 { (exit 1); exit 1; }; }
1679 test "$2" = conftest.file
1685 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1686 Check your system clock" >&5
1687 echo "$as_me: error: newly created file is older than distributed files!
1688 Check your system clock" >&2;}
1689 { (exit 1); exit 1; }; }
1691 echo "$as_me:$LINENO: result: yes" >&5
1692 echo "${ECHO_T}yes" >&6
1693 test "$program_prefix" != NONE &&
1694 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1695 # Use a double $ so make ignores it.
1696 test "$program_suffix" != NONE &&
1697 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1698 # Double any \ or $. echo might interpret backslashes.
1699 # By default was `s,x,x', remove it if useless.
1700 cat <<\_ACEOF >conftest.sed
1701 s/[\\$]/&&/g;s/;s,x,x,$//
1703 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1706 # expand $ac_aux_dir to an absolute path
1707 am_aux_dir=`cd $ac_aux_dir && pwd`
1709 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1710 # Use eval to expand $SHELL
1711 if eval "$MISSING --run true"; then
1712 am_missing_run="$MISSING --run "
1715 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1716 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1719 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1720 # Keeping the `.' argument allows $(mkdir_p) to be used without
1721 # argument. Indeed, we sometimes output rules like
1722 # $(mkdir_p) $(somedir)
1723 # where $(somedir) is conditionally defined.
1724 # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
1725 # expensive solution, as it forces Make to start a sub-shell.)
1726 mkdir_p='mkdir -p -- .'
1728 # On NextStep and OpenStep, the `mkdir' command does not
1729 # recognize any option. It will interpret all options as
1730 # directories to create, and then abort because `.' already
1732 for d in ./-p ./--version;
1734 test -d $d && rmdir $d
1736 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1737 if test -f "$ac_aux_dir/mkinstalldirs"; then
1738 mkdir_p='$(mkinstalldirs)'
1740 mkdir_p='$(install_sh) -d'
1744 for ac_prog in gawk mawk nawk awk
1746 # Extract the first word of "$ac_prog", so it can be a program name with args.
1747 set dummy $ac_prog; ac_word=$2
1748 echo "$as_me:$LINENO: checking for $ac_word" >&5
1749 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1750 if test "${ac_cv_prog_AWK+set}" = set; then
1751 echo $ECHO_N "(cached) $ECHO_C" >&6
1753 if test -n "$AWK"; then
1754 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1760 test -z "$as_dir" && as_dir=.
1761 for ac_exec_ext in '' $ac_executable_extensions; do
1762 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1763 ac_cv_prog_AWK="$ac_prog"
1764 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1773 if test -n "$AWK"; then
1774 echo "$as_me:$LINENO: result: $AWK" >&5
1775 echo "${ECHO_T}$AWK" >&6
1777 echo "$as_me:$LINENO: result: no" >&5
1778 echo "${ECHO_T}no" >&6
1781 test -n "$AWK" && break
1784 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1785 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1786 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1787 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1788 echo $ECHO_N "(cached) $ECHO_C" >&6
1790 cat >conftest.make <<\_ACEOF
1792 @echo 'ac_maketemp="$(MAKE)"'
1794 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1795 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1796 if test -n "$ac_maketemp"; then
1797 eval ac_cv_prog_make_${ac_make}_set=yes
1799 eval ac_cv_prog_make_${ac_make}_set=no
1803 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1804 echo "$as_me:$LINENO: result: yes" >&5
1805 echo "${ECHO_T}yes" >&6
1808 echo "$as_me:$LINENO: result: no" >&5
1809 echo "${ECHO_T}no" >&6
1810 SET_MAKE="MAKE=${MAKE-make}"
1813 rm -rf .tst 2>/dev/null
1814 mkdir .tst 2>/dev/null
1815 if test -d .tst; then
1820 rmdir .tst 2>/dev/null
1822 # test to see if srcdir already configured
1823 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1824 test -f $srcdir/config.status; then
1825 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1826 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1827 { (exit 1); exit 1; }; }
1830 # test whether we have cygpath
1831 if test -z "$CYGPATH_W"; then
1832 if (cygpath --version) >/dev/null 2>/dev/null; then
1833 CYGPATH_W='cygpath -w'
1840 # Define the identity of the package.
1845 # Some tools Automake needs.
1847 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1850 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1853 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1856 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1859 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1862 AMTAR=${AMTAR-"${am_missing_run}tar"}
1864 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1866 # Installed binaries are usually stripped using `strip' when the user
1867 # run `make install-strip'. However `strip' might not be the right
1868 # tool to use in cross-compilation environments, therefore Automake
1869 # will honor the `STRIP' environment variable to overrule this program.
1870 if test "$cross_compiling" != no; then
1871 if test -n "$ac_tool_prefix"; then
1872 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1873 set dummy ${ac_tool_prefix}strip; ac_word=$2
1874 echo "$as_me:$LINENO: checking for $ac_word" >&5
1875 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1876 if test "${ac_cv_prog_STRIP+set}" = set; then
1877 echo $ECHO_N "(cached) $ECHO_C" >&6
1879 if test -n "$STRIP"; then
1880 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1886 test -z "$as_dir" && as_dir=.
1887 for ac_exec_ext in '' $ac_executable_extensions; do
1888 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1889 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1890 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1898 STRIP=$ac_cv_prog_STRIP
1899 if test -n "$STRIP"; then
1900 echo "$as_me:$LINENO: result: $STRIP" >&5
1901 echo "${ECHO_T}$STRIP" >&6
1903 echo "$as_me:$LINENO: result: no" >&5
1904 echo "${ECHO_T}no" >&6
1908 if test -z "$ac_cv_prog_STRIP"; then
1910 # Extract the first word of "strip", so it can be a program name with args.
1911 set dummy strip; ac_word=$2
1912 echo "$as_me:$LINENO: checking for $ac_word" >&5
1913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1914 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1915 echo $ECHO_N "(cached) $ECHO_C" >&6
1917 if test -n "$ac_ct_STRIP"; then
1918 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1924 test -z "$as_dir" && as_dir=.
1925 for ac_exec_ext in '' $ac_executable_extensions; do
1926 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1927 ac_cv_prog_ac_ct_STRIP="strip"
1928 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1934 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1937 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1938 if test -n "$ac_ct_STRIP"; then
1939 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1940 echo "${ECHO_T}$ac_ct_STRIP" >&6
1942 echo "$as_me:$LINENO: result: no" >&5
1943 echo "${ECHO_T}no" >&6
1948 STRIP="$ac_cv_prog_STRIP"
1952 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1954 # We need awk for the "check" target. The system "awk" is bad on
1959 ac_config_headers="$ac_config_headers config.h:config-h.in"
1961 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1962 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1963 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1964 if test "${enable_maintainer_mode+set}" = set; then
1965 enableval="$enable_maintainer_mode"
1966 USE_MAINTAINER_MODE=$enableval
1968 USE_MAINTAINER_MODE=no
1970 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1971 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1974 if test $USE_MAINTAINER_MODE = yes; then
1975 MAINTAINER_MODE_TRUE=
1976 MAINTAINER_MODE_FALSE='#'
1978 MAINTAINER_MODE_TRUE='#'
1979 MAINTAINER_MODE_FALSE=
1982 MAINT=$MAINTAINER_MODE_TRUE
1987 ## ------------------ ##
1988 ## C compiler checks. ##
1989 ## ------------------ ##
1991 ac_cpp='$CPP $CPPFLAGS'
1992 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1993 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1994 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1995 if test -n "$ac_tool_prefix"; then
1996 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1997 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1998 echo "$as_me:$LINENO: checking for $ac_word" >&5
1999 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2000 if test "${ac_cv_prog_CC+set}" = set; then
2001 echo $ECHO_N "(cached) $ECHO_C" >&6
2003 if test -n "$CC"; then
2004 ac_cv_prog_CC="$CC" # Let the user override the test.
2006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2010 test -z "$as_dir" && as_dir=.
2011 for ac_exec_ext in '' $ac_executable_extensions; do
2012 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2013 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2014 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2023 if test -n "$CC"; then
2024 echo "$as_me:$LINENO: result: $CC" >&5
2025 echo "${ECHO_T}$CC" >&6
2027 echo "$as_me:$LINENO: result: no" >&5
2028 echo "${ECHO_T}no" >&6
2032 if test -z "$ac_cv_prog_CC"; then
2034 # Extract the first word of "gcc", so it can be a program name with args.
2035 set dummy gcc; ac_word=$2
2036 echo "$as_me:$LINENO: checking for $ac_word" >&5
2037 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2038 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2039 echo $ECHO_N "(cached) $ECHO_C" >&6
2041 if test -n "$ac_ct_CC"; then
2042 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2048 test -z "$as_dir" && as_dir=.
2049 for ac_exec_ext in '' $ac_executable_extensions; do
2050 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2051 ac_cv_prog_ac_ct_CC="gcc"
2052 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2060 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2061 if test -n "$ac_ct_CC"; then
2062 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2063 echo "${ECHO_T}$ac_ct_CC" >&6
2065 echo "$as_me:$LINENO: result: no" >&5
2066 echo "${ECHO_T}no" >&6
2074 if test -z "$CC"; then
2075 if test -n "$ac_tool_prefix"; then
2076 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2077 set dummy ${ac_tool_prefix}cc; ac_word=$2
2078 echo "$as_me:$LINENO: checking for $ac_word" >&5
2079 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2080 if test "${ac_cv_prog_CC+set}" = set; then
2081 echo $ECHO_N "(cached) $ECHO_C" >&6
2083 if test -n "$CC"; then
2084 ac_cv_prog_CC="$CC" # Let the user override the test.
2086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2090 test -z "$as_dir" && as_dir=.
2091 for ac_exec_ext in '' $ac_executable_extensions; do
2092 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2093 ac_cv_prog_CC="${ac_tool_prefix}cc"
2094 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2103 if test -n "$CC"; then
2104 echo "$as_me:$LINENO: result: $CC" >&5
2105 echo "${ECHO_T}$CC" >&6
2107 echo "$as_me:$LINENO: result: no" >&5
2108 echo "${ECHO_T}no" >&6
2112 if test -z "$ac_cv_prog_CC"; then
2114 # Extract the first word of "cc", so it can be a program name with args.
2115 set dummy cc; ac_word=$2
2116 echo "$as_me:$LINENO: checking for $ac_word" >&5
2117 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2118 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2119 echo $ECHO_N "(cached) $ECHO_C" >&6
2121 if test -n "$ac_ct_CC"; then
2122 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2128 test -z "$as_dir" && as_dir=.
2129 for ac_exec_ext in '' $ac_executable_extensions; do
2130 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2131 ac_cv_prog_ac_ct_CC="cc"
2132 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2140 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2141 if test -n "$ac_ct_CC"; then
2142 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2143 echo "${ECHO_T}$ac_ct_CC" >&6
2145 echo "$as_me:$LINENO: result: no" >&5
2146 echo "${ECHO_T}no" >&6
2155 if test -z "$CC"; then
2156 # Extract the first word of "cc", so it can be a program name with args.
2157 set dummy cc; ac_word=$2
2158 echo "$as_me:$LINENO: checking for $ac_word" >&5
2159 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2160 if test "${ac_cv_prog_CC+set}" = set; then
2161 echo $ECHO_N "(cached) $ECHO_C" >&6
2163 if test -n "$CC"; then
2164 ac_cv_prog_CC="$CC" # Let the user override the test.
2167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2171 test -z "$as_dir" && as_dir=.
2172 for ac_exec_ext in '' $ac_executable_extensions; do
2173 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2174 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2175 ac_prog_rejected=yes
2179 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2185 if test $ac_prog_rejected = yes; then
2186 # We found a bogon in the path, so make sure we never use it.
2187 set dummy $ac_cv_prog_CC
2189 if test $# != 0; then
2190 # We chose a different compiler from the bogus one.
2191 # However, it has the same basename, so the bogon will be chosen
2192 # first if we set CC to just the basename; use the full file name.
2194 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2200 if test -n "$CC"; then
2201 echo "$as_me:$LINENO: result: $CC" >&5
2202 echo "${ECHO_T}$CC" >&6
2204 echo "$as_me:$LINENO: result: no" >&5
2205 echo "${ECHO_T}no" >&6
2209 if test -z "$CC"; then
2210 if test -n "$ac_tool_prefix"; then
2213 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2214 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2215 echo "$as_me:$LINENO: checking for $ac_word" >&5
2216 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2217 if test "${ac_cv_prog_CC+set}" = set; then
2218 echo $ECHO_N "(cached) $ECHO_C" >&6
2220 if test -n "$CC"; then
2221 ac_cv_prog_CC="$CC" # Let the user override the test.
2223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2227 test -z "$as_dir" && as_dir=.
2228 for ac_exec_ext in '' $ac_executable_extensions; do
2229 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2230 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2231 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2240 if test -n "$CC"; then
2241 echo "$as_me:$LINENO: result: $CC" >&5
2242 echo "${ECHO_T}$CC" >&6
2244 echo "$as_me:$LINENO: result: no" >&5
2245 echo "${ECHO_T}no" >&6
2248 test -n "$CC" && break
2251 if test -z "$CC"; then
2255 # Extract the first word of "$ac_prog", so it can be a program name with args.
2256 set dummy $ac_prog; ac_word=$2
2257 echo "$as_me:$LINENO: checking for $ac_word" >&5
2258 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2259 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2260 echo $ECHO_N "(cached) $ECHO_C" >&6
2262 if test -n "$ac_ct_CC"; then
2263 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2269 test -z "$as_dir" && as_dir=.
2270 for ac_exec_ext in '' $ac_executable_extensions; do
2271 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2272 ac_cv_prog_ac_ct_CC="$ac_prog"
2273 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2281 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2282 if test -n "$ac_ct_CC"; then
2283 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2284 echo "${ECHO_T}$ac_ct_CC" >&6
2286 echo "$as_me:$LINENO: result: no" >&5
2287 echo "${ECHO_T}no" >&6
2290 test -n "$ac_ct_CC" && break
2299 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2300 See \`config.log' for more details." >&5
2301 echo "$as_me: error: no acceptable C compiler found in \$PATH
2302 See \`config.log' for more details." >&2;}
2303 { (exit 1); exit 1; }; }
2305 # Provide some information about the compiler.
2306 echo "$as_me:$LINENO:" \
2307 "checking for C compiler version" >&5
2308 ac_compiler=`set X $ac_compile; echo $2`
2309 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2310 (eval $ac_compiler --version </dev/null >&5) 2>&5
2312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2313 (exit $ac_status); }
2314 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2315 (eval $ac_compiler -v </dev/null >&5) 2>&5
2317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2318 (exit $ac_status); }
2319 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2320 (eval $ac_compiler -V </dev/null >&5) 2>&5
2322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2323 (exit $ac_status); }
2325 cat >conftest.$ac_ext <<_ACEOF
2328 cat confdefs.h >>conftest.$ac_ext
2329 cat >>conftest.$ac_ext <<_ACEOF
2330 /* end confdefs.h. */
2340 ac_clean_files_save=$ac_clean_files
2341 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2342 # Try to create an executable without -o first, disregard a.out.
2343 # It will help us diagnose broken compilers, and finding out an intuition
2345 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2346 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2347 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2348 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2349 (eval $ac_link_default) 2>&5
2351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2352 (exit $ac_status); }; then
2353 # Find the output, starting from the most likely. This scheme is
2354 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2357 # Be careful to initialize this variable, since it used to be cached.
2358 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2360 # b.out is created by i960 compilers.
2361 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2363 test -f "$ac_file" || continue
2365 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2368 # This is the source file.
2371 # We found the default executable, but exeext='' is most
2375 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2376 # FIXME: I believe we export ac_cv_exeext for Libtool,
2377 # but it would be cool to find out if it's true. Does anybody
2378 # maintain Libtool? --akim.
2386 echo "$as_me: failed program was:" >&5
2387 sed 's/^/| /' conftest.$ac_ext >&5
2389 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2390 See \`config.log' for more details." >&5
2391 echo "$as_me: error: C compiler cannot create executables
2392 See \`config.log' for more details." >&2;}
2393 { (exit 77); exit 77; }; }
2396 ac_exeext=$ac_cv_exeext
2397 echo "$as_me:$LINENO: result: $ac_file" >&5
2398 echo "${ECHO_T}$ac_file" >&6
2400 # Check the compiler produces executables we can run. If not, either
2401 # the compiler is broken, or we cross compile.
2402 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2403 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2404 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2405 # If not cross compiling, check that we can run a simple program.
2406 if test "$cross_compiling" != yes; then
2407 if { ac_try='./$ac_file'
2408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2412 (exit $ac_status); }; }; then
2415 if test "$cross_compiling" = maybe; then
2418 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2419 If you meant to cross compile, use \`--host'.
2420 See \`config.log' for more details." >&5
2421 echo "$as_me: error: cannot run C compiled programs.
2422 If you meant to cross compile, use \`--host'.
2423 See \`config.log' for more details." >&2;}
2424 { (exit 1); exit 1; }; }
2428 echo "$as_me:$LINENO: result: yes" >&5
2429 echo "${ECHO_T}yes" >&6
2431 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2432 ac_clean_files=$ac_clean_files_save
2433 # Check the compiler produces executables we can run. If not, either
2434 # the compiler is broken, or we cross compile.
2435 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2436 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2437 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2438 echo "${ECHO_T}$cross_compiling" >&6
2440 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2441 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2443 (eval $ac_link) 2>&5
2445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2446 (exit $ac_status); }; then
2447 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2448 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2449 # work properly (i.e., refer to `conftest.exe'), while it won't with
2451 for ac_file in conftest.exe conftest conftest.*; do
2452 test -f "$ac_file" || continue
2454 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2455 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2462 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2463 See \`config.log' for more details." >&5
2464 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2465 See \`config.log' for more details." >&2;}
2466 { (exit 1); exit 1; }; }
2469 rm -f conftest$ac_cv_exeext
2470 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2471 echo "${ECHO_T}$ac_cv_exeext" >&6
2473 rm -f conftest.$ac_ext
2474 EXEEXT=$ac_cv_exeext
2476 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2477 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2478 if test "${ac_cv_objext+set}" = set; then
2479 echo $ECHO_N "(cached) $ECHO_C" >&6
2481 cat >conftest.$ac_ext <<_ACEOF
2484 cat confdefs.h >>conftest.$ac_ext
2485 cat >>conftest.$ac_ext <<_ACEOF
2486 /* end confdefs.h. */
2496 rm -f conftest.o conftest.obj
2497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2498 (eval $ac_compile) 2>&5
2500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2501 (exit $ac_status); }; then
2502 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2504 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2505 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2510 echo "$as_me: failed program was:" >&5
2511 sed 's/^/| /' conftest.$ac_ext >&5
2513 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2514 See \`config.log' for more details." >&5
2515 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2516 See \`config.log' for more details." >&2;}
2517 { (exit 1); exit 1; }; }
2520 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2522 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2523 echo "${ECHO_T}$ac_cv_objext" >&6
2524 OBJEXT=$ac_cv_objext
2526 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2527 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2528 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2529 echo $ECHO_N "(cached) $ECHO_C" >&6
2531 cat >conftest.$ac_ext <<_ACEOF
2534 cat confdefs.h >>conftest.$ac_ext
2535 cat >>conftest.$ac_ext <<_ACEOF
2536 /* end confdefs.h. */
2549 rm -f conftest.$ac_objext
2550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2551 (eval $ac_compile) 2>conftest.er1
2553 grep -v '^ *+' conftest.er1 >conftest.err
2555 cat conftest.err >&5
2556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2557 (exit $ac_status); } &&
2558 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2563 (exit $ac_status); }; } &&
2564 { ac_try='test -s conftest.$ac_objext'
2565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2569 (exit $ac_status); }; }; then
2572 echo "$as_me: failed program was:" >&5
2573 sed 's/^/| /' conftest.$ac_ext >&5
2577 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2578 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2581 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2582 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2583 GCC=`test $ac_compiler_gnu = yes && echo yes`
2584 ac_test_CFLAGS=${CFLAGS+set}
2585 ac_save_CFLAGS=$CFLAGS
2587 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2588 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2589 if test "${ac_cv_prog_cc_g+set}" = set; then
2590 echo $ECHO_N "(cached) $ECHO_C" >&6
2592 cat >conftest.$ac_ext <<_ACEOF
2595 cat confdefs.h >>conftest.$ac_ext
2596 cat >>conftest.$ac_ext <<_ACEOF
2597 /* end confdefs.h. */
2607 rm -f conftest.$ac_objext
2608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2609 (eval $ac_compile) 2>conftest.er1
2611 grep -v '^ *+' conftest.er1 >conftest.err
2613 cat conftest.err >&5
2614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615 (exit $ac_status); } &&
2616 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621 (exit $ac_status); }; } &&
2622 { ac_try='test -s conftest.$ac_objext'
2623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2627 (exit $ac_status); }; }; then
2630 echo "$as_me: failed program was:" >&5
2631 sed 's/^/| /' conftest.$ac_ext >&5
2635 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2637 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2638 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2639 if test "$ac_test_CFLAGS" = set; then
2640 CFLAGS=$ac_save_CFLAGS
2641 elif test $ac_cv_prog_cc_g = yes; then
2642 if test "$GCC" = yes; then
2648 if test "$GCC" = yes; then
2654 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2655 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2656 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2657 echo $ECHO_N "(cached) $ECHO_C" >&6
2659 ac_cv_prog_cc_stdc=no
2661 cat >conftest.$ac_ext <<_ACEOF
2664 cat confdefs.h >>conftest.$ac_ext
2665 cat >>conftest.$ac_ext <<_ACEOF
2666 /* end confdefs.h. */
2669 #include <sys/types.h>
2670 #include <sys/stat.h>
2671 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2672 struct buf { int x; };
2673 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2674 static char *e (p, i)
2680 static char *f (char * (*g) (char **, int), char **p, ...)
2685 s = g (p, va_arg (v,int));
2690 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2691 function prototypes and stuff, but not '\xHH' hex character constants.
2692 These don't provoke an error unfortunately, instead are silently treated
2693 as 'x'. The following induces an error, until -std1 is added to get
2694 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2695 array size at least. It's necessary to write '\x00'==0 to get something
2696 that's true only with -std1. */
2697 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2699 int test (int i, double x);
2700 struct s1 {int (*f) (int a);};
2701 struct s2 {int (*f) (double a);};
2702 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2708 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2713 # Don't try gcc -ansi; that turns off useful extensions and
2714 # breaks some systems' header files.
2715 # AIX -qlanglvl=ansi
2716 # Ultrix and OSF/1 -std1
2717 # HP-UX 10.20 and later -Ae
2718 # HP-UX older versions -Aa -D_HPUX_SOURCE
2719 # SVR4 -Xc -D__EXTENSIONS__
2720 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2722 CC="$ac_save_CC $ac_arg"
2723 rm -f conftest.$ac_objext
2724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2725 (eval $ac_compile) 2>conftest.er1
2727 grep -v '^ *+' conftest.er1 >conftest.err
2729 cat conftest.err >&5
2730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2731 (exit $ac_status); } &&
2732 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2737 (exit $ac_status); }; } &&
2738 { ac_try='test -s conftest.$ac_objext'
2739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2743 (exit $ac_status); }; }; then
2744 ac_cv_prog_cc_stdc=$ac_arg
2747 echo "$as_me: failed program was:" >&5
2748 sed 's/^/| /' conftest.$ac_ext >&5
2751 rm -f conftest.err conftest.$ac_objext
2753 rm -f conftest.$ac_ext conftest.$ac_objext
2758 case "x$ac_cv_prog_cc_stdc" in
2760 echo "$as_me:$LINENO: result: none needed" >&5
2761 echo "${ECHO_T}none needed" >&6 ;;
2763 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2764 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2765 CC="$CC $ac_cv_prog_cc_stdc" ;;
2768 # Some people use a C++ compiler to compile C. Since we use `exit',
2769 # in C++ we need to declare it. In case someone uses the same compiler
2770 # for both compiling C and C++ we need to have the C++ compiler decide
2771 # the declaration of exit, since it's the most demanding environment.
2772 cat >conftest.$ac_ext <<_ACEOF
2777 rm -f conftest.$ac_objext
2778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2779 (eval $ac_compile) 2>conftest.er1
2781 grep -v '^ *+' conftest.er1 >conftest.err
2783 cat conftest.err >&5
2784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2785 (exit $ac_status); } &&
2786 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2791 (exit $ac_status); }; } &&
2792 { ac_try='test -s conftest.$ac_objext'
2793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2797 (exit $ac_status); }; }; then
2798 for ac_declaration in \
2800 'extern "C" void std::exit (int) throw (); using std::exit;' \
2801 'extern "C" void std::exit (int); using std::exit;' \
2802 'extern "C" void exit (int) throw ();' \
2803 'extern "C" void exit (int);' \
2806 cat >conftest.$ac_ext <<_ACEOF
2809 cat confdefs.h >>conftest.$ac_ext
2810 cat >>conftest.$ac_ext <<_ACEOF
2811 /* end confdefs.h. */
2822 rm -f conftest.$ac_objext
2823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2824 (eval $ac_compile) 2>conftest.er1
2826 grep -v '^ *+' conftest.er1 >conftest.err
2828 cat conftest.err >&5
2829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2830 (exit $ac_status); } &&
2831 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2836 (exit $ac_status); }; } &&
2837 { ac_try='test -s conftest.$ac_objext'
2838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2842 (exit $ac_status); }; }; then
2845 echo "$as_me: failed program was:" >&5
2846 sed 's/^/| /' conftest.$ac_ext >&5
2850 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2851 cat >conftest.$ac_ext <<_ACEOF
2854 cat confdefs.h >>conftest.$ac_ext
2855 cat >>conftest.$ac_ext <<_ACEOF
2856 /* end confdefs.h. */
2866 rm -f conftest.$ac_objext
2867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2868 (eval $ac_compile) 2>conftest.er1
2870 grep -v '^ *+' conftest.er1 >conftest.err
2872 cat conftest.err >&5
2873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2874 (exit $ac_status); } &&
2875 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2880 (exit $ac_status); }; } &&
2881 { ac_try='test -s conftest.$ac_objext'
2882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2886 (exit $ac_status); }; }; then
2889 echo "$as_me: failed program was:" >&5
2890 sed 's/^/| /' conftest.$ac_ext >&5
2893 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2896 if test -n "$ac_declaration"; then
2897 echo '#ifdef __cplusplus' >>confdefs.h
2898 echo $ac_declaration >>confdefs.h
2899 echo '#endif' >>confdefs.h
2903 echo "$as_me: failed program was:" >&5
2904 sed 's/^/| /' conftest.$ac_ext >&5
2907 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2909 ac_cpp='$CPP $CPPFLAGS'
2910 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2911 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2912 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2913 DEPDIR="${am__leading_dot}deps"
2915 ac_config_commands="$ac_config_commands depfiles"
2918 am_make=${MAKE-make}
2919 cat > confinc << 'END'
2924 # If we don't find an include directive, just comment out the code.
2925 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2926 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2930 # First try GNU make style include.
2931 echo "include confinc" > confmf
2932 # We grep out `Entering directory' and `Leaving directory'
2933 # messages which can occur if `w' ends up in MAKEFLAGS.
2934 # In particular we don't look at `^make:' because GNU make might
2935 # be invoked under some other name (usually "gmake"), in which
2936 # case it prints its new name instead of `make'.
2937 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2942 # Now try BSD make style include.
2943 if test "$am__include" = "#"; then
2944 echo '.include "confinc"' > confmf
2945 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2946 am__include=.include
2953 echo "$as_me:$LINENO: result: $_am_result" >&5
2954 echo "${ECHO_T}$_am_result" >&6
2955 rm -f confinc confmf
2957 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2958 if test "${enable_dependency_tracking+set}" = set; then
2959 enableval="$enable_dependency_tracking"
2962 if test "x$enable_dependency_tracking" != xno; then
2963 am_depcomp="$ac_aux_dir/depcomp"
2968 if test "x$enable_dependency_tracking" != xno; then
2979 depcc="$CC" am_compiler_list=
2981 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2982 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2983 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2984 echo $ECHO_N "(cached) $ECHO_C" >&6
2986 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2987 # We make a subdir and do the tests there. Otherwise we can end up
2988 # making bogus files that we don't know about and never remove. For
2989 # instance it was reported that on HP-UX the gcc test will end up
2990 # making a dummy file named `D' -- because `-MD' means `put the output
2993 # Copy depcomp to subdir because otherwise we won't find it if we're
2994 # using a relative directory.
2995 cp "$am_depcomp" conftest.dir
2997 # We will build objects and dependencies in a subdirectory because
2998 # it helps to detect inapplicable dependency modes. For instance
2999 # both Tru64's cc and ICC support -MD to output dependencies as a
3000 # side effect of compilation, but ICC will put the dependencies in
3001 # the current directory while Tru64 will put them in the object
3005 am_cv_CC_dependencies_compiler_type=none
3006 if test "$am_compiler_list" = ""; then
3007 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3009 for depmode in $am_compiler_list; do
3010 # Setup a source with many dependencies, because some compilers
3011 # like to wrap large dependency lists on column 80 (with \), and
3012 # we should not choose a depcomp mode which is confused by this.
3014 # We need to recreate these files for each test, as the compiler may
3015 # overwrite some of them when testing with obscure command lines.
3016 # This happens at least with the AIX C compiler.
3018 for i in 1 2 3 4 5 6; do
3019 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3020 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3021 # Solaris 8's {/usr,}/bin/sh.
3022 touch sub/conftst$i.h
3024 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3028 # after this tag, mechanisms are not by side-effect, so they'll
3029 # only be used when explicitly requested
3030 if test "x$enable_dependency_tracking" = xyes; then
3038 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3039 # mode. It turns out that the SunPro C++ compiler does not properly
3040 # handle `-M -o', and we need to detect this.
3041 if depmode=$depmode \
3042 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3043 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3044 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3045 >/dev/null 2>conftest.err &&
3046 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3047 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3048 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3049 # icc doesn't choke on unknown options, it will just issue warnings
3050 # or remarks (even with -Werror). So we grep stderr for any message
3051 # that says an option was ignored or not supported.
3052 # When given -MP, icc 7.0 and 7.1 complain thusly:
3053 # icc: Command line warning: ignoring option '-M'; no argument required
3054 # The diagnosis changed in icc 8.0:
3055 # icc: Command line remark: option '-MP' not supported
3056 if (grep 'ignoring option' conftest.err ||
3057 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3058 am_cv_CC_dependencies_compiler_type=$depmode
3067 am_cv_CC_dependencies_compiler_type=none
3071 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3072 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3073 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3078 test "x$enable_dependency_tracking" != xno \
3079 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3081 am__fastdepCC_FALSE='#'
3083 am__fastdepCC_TRUE='#'
3084 am__fastdepCC_FALSE=
3089 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3090 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3091 if test "${ac_cv_c_const+set}" = set; then
3092 echo $ECHO_N "(cached) $ECHO_C" >&6
3094 cat >conftest.$ac_ext <<_ACEOF
3097 cat confdefs.h >>conftest.$ac_ext
3098 cat >>conftest.$ac_ext <<_ACEOF
3099 /* end confdefs.h. */
3104 /* FIXME: Include the comments suggested by Paul. */
3106 /* Ultrix mips cc rejects this. */
3107 typedef int charset[2];
3109 /* SunOS 4.1.1 cc rejects this. */
3110 char const *const *ccp;
3112 /* NEC SVR4.0.2 mips cc rejects this. */
3113 struct point {int x, y;};
3114 static struct point const zero = {0,0};
3115 /* AIX XL C 1.02.0.0 rejects this.
3116 It does not let you subtract one const X* pointer from another in
3117 an arm of an if-expression whose if-part is not a constant
3119 const char *g = "string";
3120 ccp = &g + (g ? g-g : 0);
3121 /* HPUX 7.0 cc rejects these. */
3124 ccp = (char const *const *) p;
3125 { /* SCO 3.2v4 cc rejects this. */
3127 char const *s = 0 ? (char *) 0 : (char const *) 0;
3131 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3133 const int *foo = &x[0];
3136 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3137 typedef const int *iptr;
3141 { /* AIX XL C 1.02.0.0 rejects this saying
3142 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3143 struct s { int j; const int *ap[3]; };
3144 struct s *b; b->j = 5;
3146 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3155 rm -f conftest.$ac_objext
3156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3157 (eval $ac_compile) 2>conftest.er1
3159 grep -v '^ *+' conftest.er1 >conftest.err
3161 cat conftest.err >&5
3162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3163 (exit $ac_status); } &&
3164 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3169 (exit $ac_status); }; } &&
3170 { ac_try='test -s conftest.$ac_objext'
3171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3175 (exit $ac_status); }; }; then
3178 echo "$as_me: failed program was:" >&5
3179 sed 's/^/| /' conftest.$ac_ext >&5
3183 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3185 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3186 echo "${ECHO_T}$ac_cv_c_const" >&6
3187 if test $ac_cv_c_const = no; then
3189 cat >>confdefs.h <<\_ACEOF
3195 echo "$as_me:$LINENO: checking for inline" >&5
3196 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3197 if test "${ac_cv_c_inline+set}" = set; then
3198 echo $ECHO_N "(cached) $ECHO_C" >&6
3201 for ac_kw in inline __inline__ __inline; do
3202 cat >conftest.$ac_ext <<_ACEOF
3205 cat confdefs.h >>conftest.$ac_ext
3206 cat >>conftest.$ac_ext <<_ACEOF
3207 /* end confdefs.h. */
3210 static $ac_kw foo_t static_foo () {return 0; }
3211 $ac_kw foo_t foo () {return 0; }
3215 rm -f conftest.$ac_objext
3216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3217 (eval $ac_compile) 2>conftest.er1
3219 grep -v '^ *+' conftest.er1 >conftest.err
3221 cat conftest.err >&5
3222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3223 (exit $ac_status); } &&
3224 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3229 (exit $ac_status); }; } &&
3230 { ac_try='test -s conftest.$ac_objext'
3231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3235 (exit $ac_status); }; }; then
3236 ac_cv_c_inline=$ac_kw; break
3238 echo "$as_me: failed program was:" >&5
3239 sed 's/^/| /' conftest.$ac_ext >&5
3242 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3246 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3247 echo "${ECHO_T}$ac_cv_c_inline" >&6
3250 case $ac_cv_c_inline in
3253 case $ac_cv_c_inline in
3255 *) ac_val=$ac_cv_c_inline;;
3257 cat >>confdefs.h <<_ACEOF
3259 #define inline $ac_val
3267 ## ----------------------- ##
3268 ## Libtool initialisation. ##
3269 ## ----------------------- ##
3272 # Check whether --enable-shared or --disable-shared was given.
3273 if test "${enable_shared+set}" = set; then
3274 enableval="$enable_shared"
3275 p=${PACKAGE-default}
3277 yes) enable_shared=yes ;;
3278 no) enable_shared=no ;;
3281 # Look at the argument we got. We use all the common list separators.
3282 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3283 for pkg in $enableval; do
3285 if test "X$pkg" = "X$p"; then
3296 # Check whether --enable-static or --disable-static was given.
3297 if test "${enable_static+set}" = set; then
3298 enableval="$enable_static"
3299 p=${PACKAGE-default}
3301 yes) enable_static=yes ;;
3302 no) enable_static=no ;;
3305 # Look at the argument we got. We use all the common list separators.
3306 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3307 for pkg in $enableval; do
3309 if test "X$pkg" = "X$p"; then
3320 # Check whether --enable-fast-install or --disable-fast-install was given.
3321 if test "${enable_fast_install+set}" = set; then
3322 enableval="$enable_fast_install"
3323 p=${PACKAGE-default}
3325 yes) enable_fast_install=yes ;;
3326 no) enable_fast_install=no ;;
3328 enable_fast_install=no
3329 # Look at the argument we got. We use all the common list separators.
3330 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3331 for pkg in $enableval; do
3333 if test "X$pkg" = "X$p"; then
3334 enable_fast_install=yes
3341 enable_fast_install=yes
3344 # Make sure we can run config.sub.
3345 $ac_config_sub sun4 >/dev/null 2>&1 ||
3346 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3347 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3348 { (exit 1); exit 1; }; }
3350 echo "$as_me:$LINENO: checking build system type" >&5
3351 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3352 if test "${ac_cv_build+set}" = set; then
3353 echo $ECHO_N "(cached) $ECHO_C" >&6
3355 ac_cv_build_alias=$build_alias
3356 test -z "$ac_cv_build_alias" &&
3357 ac_cv_build_alias=`$ac_config_guess`
3358 test -z "$ac_cv_build_alias" &&
3359 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3360 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3361 { (exit 1); exit 1; }; }
3362 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3363 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3364 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3365 { (exit 1); exit 1; }; }
3368 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3369 echo "${ECHO_T}$ac_cv_build" >&6
3371 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3372 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3373 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3376 echo "$as_me:$LINENO: checking host system type" >&5
3377 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3378 if test "${ac_cv_host+set}" = set; then
3379 echo $ECHO_N "(cached) $ECHO_C" >&6
3381 ac_cv_host_alias=$host_alias
3382 test -z "$ac_cv_host_alias" &&
3383 ac_cv_host_alias=$ac_cv_build_alias
3384 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3385 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3386 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3387 { (exit 1); exit 1; }; }
3390 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3391 echo "${ECHO_T}$ac_cv_host" >&6
3393 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3394 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3395 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3398 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3399 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3400 if test "${lt_cv_path_SED+set}" = set; then
3401 echo $ECHO_N "(cached) $ECHO_C" >&6
3403 # Loop through the user's path and test for sed and gsed.
3404 # Then use that list of sed's as ones to test for truncation.
3405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3409 test -z "$as_dir" && as_dir=.
3410 for lt_ac_prog in sed gsed; do
3411 for ac_exec_ext in '' $ac_executable_extensions; do
3412 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3413 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3420 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3421 # along with /bin/sed that truncates output.
3422 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3423 test ! -f $lt_ac_sed && break
3424 cat /dev/null > conftest.in
3426 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3427 # Check for GNU sed and select it if it is found.
3428 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3429 lt_cv_path_SED=$lt_ac_sed
3433 cat conftest.in conftest.in >conftest.tmp
3434 mv conftest.tmp conftest.in
3435 cp conftest.in conftest.nl
3437 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3438 cmp -s conftest.out conftest.nl || break
3439 # 10000 chars as input seems more than enough
3440 test $lt_ac_count -gt 10 && break
3441 lt_ac_count=`expr $lt_ac_count + 1`
3442 if test $lt_ac_count -gt $lt_ac_max; then
3443 lt_ac_max=$lt_ac_count
3444 lt_cv_path_SED=$lt_ac_sed
3452 echo "$as_me:$LINENO: result: $SED" >&5
3453 echo "${ECHO_T}$SED" >&6
3455 echo "$as_me:$LINENO: checking for egrep" >&5
3456 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3457 if test "${ac_cv_prog_egrep+set}" = set; then
3458 echo $ECHO_N "(cached) $ECHO_C" >&6
3460 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3461 then ac_cv_prog_egrep='grep -E'
3462 else ac_cv_prog_egrep='egrep'
3465 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3466 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3467 EGREP=$ac_cv_prog_egrep
3471 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3472 if test "${with_gnu_ld+set}" = set; then
3473 withval="$with_gnu_ld"
3474 test "$withval" = no || with_gnu_ld=yes
3479 if test "$GCC" = yes; then
3480 # Check if gcc -print-prog-name=ld gives a path.
3481 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3482 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3485 # gcc leaves a trailing carriage return which upsets mingw
3486 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3488 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3491 # Accept absolute paths.
3493 re_direlt='/[^/][^/]*/\.\./'
3494 # Canonicalize the path of ld
3495 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3496 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3497 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3499 test -z "$LD" && LD="$ac_prog"
3502 # If it fails, then pretend we aren't using GCC.
3506 # If it is relative, then search for the first ld in PATH.
3510 elif test "$with_gnu_ld" = yes; then
3511 echo "$as_me:$LINENO: checking for GNU ld" >&5
3512 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3514 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3515 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3517 if test "${lt_cv_path_LD+set}" = set; then
3518 echo $ECHO_N "(cached) $ECHO_C" >&6
3520 if test -z "$LD"; then
3521 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3522 for ac_dir in $PATH; do
3524 test -z "$ac_dir" && ac_dir=.
3525 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3526 lt_cv_path_LD="$ac_dir/$ac_prog"
3527 # Check to see if the program is GNU ld. I'd rather use --version,
3528 # but apparently some GNU ld's only accept -v.
3529 # Break only if it was the GNU/non-GNU ld that we prefer.
3530 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3531 *GNU* | *'with BFD'*)
3532 test "$with_gnu_ld" != no && break
3535 test "$with_gnu_ld" != yes && break
3542 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3547 if test -n "$LD"; then
3548 echo "$as_me:$LINENO: result: $LD" >&5
3549 echo "${ECHO_T}$LD" >&6
3551 echo "$as_me:$LINENO: result: no" >&5
3552 echo "${ECHO_T}no" >&6
3554 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3555 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3556 { (exit 1); exit 1; }; }
3557 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3558 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3559 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3560 echo $ECHO_N "(cached) $ECHO_C" >&6
3562 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3563 case `"$LD" -v 2>&1 </dev/null` in
3564 *GNU* | *'with BFD'*)
3565 lt_cv_prog_gnu_ld=yes
3568 lt_cv_prog_gnu_ld=no
3572 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3573 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3574 with_gnu_ld=$lt_cv_prog_gnu_ld
3577 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3578 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3579 if test "${lt_cv_ld_reload_flag+set}" = set; then
3580 echo $ECHO_N "(cached) $ECHO_C" >&6
3582 lt_cv_ld_reload_flag='-r'
3584 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3585 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3586 reload_flag=$lt_cv_ld_reload_flag
3587 case $reload_flag in
3589 *) reload_flag=" $reload_flag" ;;
3591 reload_cmds='$LD$reload_flag -o $output$reload_objs'