2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.54 for libntlm 0.3.1.
5 # Report bugs to <bug-libntlm@josefsson.org>.
7 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
8 # Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26 # Support unset when possible.
27 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
41 for as_var in LANG LANGUAGE LC_ALL LC_COLLATE LC_CTYPE LC_NUMERIC LC_MESSAGES LC_TIME
43 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
44 eval $as_var=C; export $as_var
50 # Required to use basename.
51 if expr a : '\(a\)' >/dev/null 2>&1; then
57 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
64 # Name of the executable.
65 as_me=`$as_basename "$0" ||
66 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
67 X"$0" : 'X\(//\)$' \| \
68 X"$0" : 'X\(/\)$' \| \
69 . : '\(.\)' 2>/dev/null ||
71 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
72 /^X\/\(\/\/\)$/{ s//\1/; q; }
73 /^X\/\(\/\).*/{ s//\1/; q; }
77 # PATH needs CR, and LINENO needs CR and PATH.
78 # Avoid depending upon Character Ranges.
79 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
80 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
81 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
82 as_cr_digits='0123456789'
83 as_cr_alnum=$as_cr_Letters$as_cr_digits
85 # The user is always right.
86 if test "${PATH_SEPARATOR+set}" != set; then
87 echo "#! /bin/sh" >conftest.sh
88 echo "exit 0" >>conftest.sh
90 if (PATH="/nonexistent;."; conftest.sh) >/dev/null 2>&1; then
101 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
102 test "x$as_lineno_1" != "x$as_lineno_2" &&
103 test "x$as_lineno_3" = "x$as_lineno_2" || {
104 # Find who we are. Look in the path if we contain no path at all
107 *[\\/]* ) as_myself=$0 ;;
108 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112 test -z "$as_dir" && as_dir=.
113 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
118 # We did not find ourselves, most probably we were run as `sh COMMAND'
119 # in which case we are not to be found in the path.
120 if test "x$as_myself" = x; then
123 if test ! -f "$as_myself"; then
124 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
125 { (exit 1); exit 1; }; }
127 case $CONFIG_SHELL in
129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
130 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133 test -z "$as_dir" && as_dir=.
134 for as_base in sh bash ksh sh5; do
137 if ("$as_dir/$as_base" -c '
140 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
141 test "x$as_lineno_1" != "x$as_lineno_2" &&
142 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
143 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
144 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
145 CONFIG_SHELL=$as_dir/$as_base
147 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
155 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
156 # uniformly replaced by the line number. The first 'sed' inserts a
157 # line-number line before each line; the second 'sed' does the real
158 # work. The second script uses 'N' to pair each line-number line
159 # with the numbered line, and appends trailing '-' during
160 # substitution so that $LINENO is not a special case at line end.
161 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
162 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
163 sed '=' <$as_myself |
168 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
171 s,^['$as_cr_digits']*\n,,
173 chmod +x $as_me.lineno ||
174 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
175 { (exit 1); exit 1; }; }
177 # Don't try to exec as it changes $[0], causing all sort of problems
178 # (the dirname of $[0] is not the place where we might find the
179 # original and so on. Autoconf is especially sensible to this).
181 # Exit status is that of the last command.
186 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
187 *c*,-n*) ECHO_N= ECHO_C='
189 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
190 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
193 if expr a : '\(a\)' >/dev/null 2>&1; then
199 rm -f conf$$ conf$$.exe conf$$.file
201 if ln -s conf$$.file conf$$ 2>/dev/null; then
202 # We could just check for DJGPP; but this test a) works b) is more generic
203 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
204 if test -f conf$$.exe; then
205 # Don't use ln at all; we don't have any links
210 elif ln conf$$.file conf$$ 2>/dev/null; then
215 rm -f conf$$ conf$$.exe conf$$.file
217 if mkdir -p . 2>/dev/null; then
223 as_executable_p="test -f"
225 # Sed expression to map a string onto a valid CPP name.
226 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
228 # Sed expression to map a string onto a valid variable name.
229 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
233 # We need space, tab and new line, in precisely that order.
242 # Find the correct PATH separator. Usually this is `:', but
243 # DJGPP uses `;' like DOS.
244 if test "X${PATH_SEPARATOR+set}" != Xset; then
245 UNAME=${UNAME-`uname 2>/dev/null`}
247 *-DOS) lt_cv_sys_path_separator=';' ;;
248 *) lt_cv_sys_path_separator=':' ;;
250 PATH_SEPARATOR=$lt_cv_sys_path_separator
254 # Check that we are running under the correct shell.
255 SHELL=${CONFIG_SHELL-/bin/sh}
259 # Remove one level of quotation (which was required for Make).
260 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
265 if test "X$1" = X--no-reexec; then
266 # Discard the --no-reexec flag, and continue.
268 elif test "X$1" = X--fallback-echo; then
269 # Avoid inline document here, it may be left over
271 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
272 # Yippee, $echo works!
275 # Restart under the correct shell.
276 exec $SHELL "$0" --no-reexec ${1+"$@"}
279 if test "X$1" = X--fallback-echo; then
280 # used as fallback echo
288 # The HP-UX ksh and POSIX shell print the target directory to stdout
290 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
292 if test -z "$ECHO"; then
293 if test "X${echo_test_string+set}" != Xset; then
294 # find a string as large as possible, as long as the shell can cope with it
295 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
296 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
297 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
298 echo_test_string="`eval $cmd`" &&
299 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
306 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
307 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
308 test "X$echo_testing_string" = "X$echo_test_string"; then
311 # The Solaris, AIX, and Digital Unix default echo programs unquote
312 # backslashes. This makes it impossible to quote backslashes using
313 # echo "$something" | sed 's/\\/\\\\/g'
315 # So, first we look for a working echo in the user's PATH.
317 IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
318 for dir in $PATH /usr/ucb; do
319 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322 test "X$echo_testing_string" = "X$echo_test_string"; then
329 if test "X$echo" = Xecho; then
330 # We didn't find a better echo, so look for alternatives.
331 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333 test "X$echo_testing_string" = "X$echo_test_string"; then
334 # This shell has a builtin print -r that does the trick.
336 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337 test "X$CONFIG_SHELL" != X/bin/ksh; then
338 # If we have ksh, try running configure again with it.
339 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340 export ORIGINAL_CONFIG_SHELL
341 CONFIG_SHELL=/bin/ksh
343 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
347 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349 test "X$echo_testing_string" = "X$echo_test_string"; then
352 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353 test "X$echo_testing_string" = 'X\t' &&
354 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355 test "X$echo_testing_string" = "X$echo_test_string"; then
356 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
358 SHELL="$CONFIG_SHELL"
360 echo="$CONFIG_SHELL $0 --fallback-echo"
361 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362 test "X$echo_testing_string" = 'X\t' &&
363 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364 test "X$echo_testing_string" = "X$echo_test_string"; then
365 echo="$CONFIG_SHELL $0 --fallback-echo"
367 # maybe with a smaller string...
370 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
378 if test "$prev" != 'sed 50q "$0"'; then
379 echo_test_string=`eval $prev`
380 export echo_test_string
381 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
383 # Oops. We lost completely, so just stick with echo.
392 # Copy echo and quote the copy suitably for passing to libtool from
393 # the Makefile, instead of quoting the original, which is used later.
395 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
402 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
403 # so uname gets run too.
404 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
411 ac_default_prefix=/usr/local
412 ac_config_libobj_dir=.
417 SHELL=${CONFIG_SHELL-/bin/sh}
419 # Maximum number of lines to put in a shell here document.
420 # This variable seems obsolete. It should probably be removed, and
421 # only ac_max_sed_lines should be used.
422 : ${ac_max_here_lines=38}
424 # Identity of this package.
425 PACKAGE_NAME='libntlm'
426 PACKAGE_TARNAME='libntlm'
427 PACKAGE_VERSION='0.3.1'
428 PACKAGE_STRING='libntlm 0.3.1'
429 PACKAGE_BUGREPORT='bug-libntlm@josefsson.org'
431 ac_unique_file="ntlm.h.in"
432 # Factoring default headers for most tests.
433 ac_includes_default="\
436 # include <sys/types.h>
439 # include <sys/stat.h>
450 # if !STDC_HEADERS && HAVE_MEMORY_H
456 # include <strings.h>
459 # include <inttypes.h>
469 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 LT_CURRENT LT_AGE LT_REVISION 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 AWK SET_MAKE build build_cpu build_vendor build_os host host_cpu host_vendor host_os 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 LN_S ECHO RANLIB ac_ct_RANLIB CPP EGREP LIBTOOL CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE LIBOBJS LTLIBOBJS'
472 # Initialize some variables set by options.
474 ac_init_version=false
475 # The variables have the same names as the options, with
476 # dashes changed to underlines.
484 program_transform_name=s,x,x,
492 # Installation directory options.
493 # These are left unexpanded so users can "make install exec_prefix=/foo"
494 # and all the variables that are supposed to be based on exec_prefix
495 # by default will actually change.
496 # Use braces instead of parens because sh, perl, etc. also accept them.
497 bindir='${exec_prefix}/bin'
498 sbindir='${exec_prefix}/sbin'
499 libexecdir='${exec_prefix}/libexec'
500 datadir='${prefix}/share'
501 sysconfdir='${prefix}/etc'
502 sharedstatedir='${prefix}/com'
503 localstatedir='${prefix}/var'
504 libdir='${exec_prefix}/lib'
505 includedir='${prefix}/include'
506 oldincludedir='/usr/include'
507 infodir='${prefix}/info'
508 mandir='${prefix}/man'
513 # If the previous option needs an argument, assign it.
514 if test -n "$ac_prev"; then
515 eval "$ac_prev=\$ac_option"
520 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
522 # Accept the important Cygnus configure options, so we can diagnose typos.
526 -bindir | --bindir | --bindi | --bind | --bin | --bi)
528 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
531 -build | --build | --buil | --bui | --bu)
532 ac_prev=build_alias ;;
533 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
534 build_alias=$ac_optarg ;;
536 -cache-file | --cache-file | --cache-fil | --cache-fi \
537 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
538 ac_prev=cache_file ;;
539 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
540 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
541 cache_file=$ac_optarg ;;
544 cache_file=config.cache ;;
546 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
548 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
550 datadir=$ac_optarg ;;
552 -disable-* | --disable-*)
553 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
554 # Reject names that are not valid shell variable names.
555 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
556 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
557 { (exit 1); exit 1; }; }
558 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
559 eval "enable_$ac_feature=no" ;;
561 -enable-* | --enable-*)
562 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
563 # Reject names that are not valid shell variable names.
564 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
565 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
566 { (exit 1); exit 1; }; }
567 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
569 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
572 eval "enable_$ac_feature='$ac_optarg'" ;;
574 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
575 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
576 | --exec | --exe | --ex)
577 ac_prev=exec_prefix ;;
578 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
579 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
580 | --exec=* | --exe=* | --ex=*)
581 exec_prefix=$ac_optarg ;;
583 -gas | --gas | --ga | --g)
584 # Obsolete; use --with-gas.
587 -help | --help | --hel | --he | -h)
589 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
590 ac_init_help=recursive ;;
591 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
592 ac_init_help=short ;;
594 -host | --host | --hos | --ho)
595 ac_prev=host_alias ;;
596 -host=* | --host=* | --hos=* | --ho=*)
597 host_alias=$ac_optarg ;;
599 -includedir | --includedir | --includedi | --included | --include \
600 | --includ | --inclu | --incl | --inc)
601 ac_prev=includedir ;;
602 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
603 | --includ=* | --inclu=* | --incl=* | --inc=*)
604 includedir=$ac_optarg ;;
606 -infodir | --infodir | --infodi | --infod | --info | --inf)
608 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
609 infodir=$ac_optarg ;;
611 -libdir | --libdir | --libdi | --libd)
613 -libdir=* | --libdir=* | --libdi=* | --libd=*)
616 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
617 | --libexe | --libex | --libe)
618 ac_prev=libexecdir ;;
619 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
620 | --libexe=* | --libex=* | --libe=*)
621 libexecdir=$ac_optarg ;;
623 -localstatedir | --localstatedir | --localstatedi | --localstated \
624 | --localstate | --localstat | --localsta | --localst \
625 | --locals | --local | --loca | --loc | --lo)
626 ac_prev=localstatedir ;;
627 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
628 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
629 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
630 localstatedir=$ac_optarg ;;
632 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
634 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
638 # Obsolete; use --without-fp.
641 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
642 | --no-cr | --no-c | -n)
645 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
646 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
649 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
650 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
651 | --oldin | --oldi | --old | --ol | --o)
652 ac_prev=oldincludedir ;;
653 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
654 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
655 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
656 oldincludedir=$ac_optarg ;;
658 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
660 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
663 -program-prefix | --program-prefix | --program-prefi | --program-pref \
664 | --program-pre | --program-pr | --program-p)
665 ac_prev=program_prefix ;;
666 -program-prefix=* | --program-prefix=* | --program-prefi=* \
667 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
668 program_prefix=$ac_optarg ;;
670 -program-suffix | --program-suffix | --program-suffi | --program-suff \
671 | --program-suf | --program-su | --program-s)
672 ac_prev=program_suffix ;;
673 -program-suffix=* | --program-suffix=* | --program-suffi=* \
674 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
675 program_suffix=$ac_optarg ;;
677 -program-transform-name | --program-transform-name \
678 | --program-transform-nam | --program-transform-na \
679 | --program-transform-n | --program-transform- \
680 | --program-transform | --program-transfor \
681 | --program-transfo | --program-transf \
682 | --program-trans | --program-tran \
683 | --progr-tra | --program-tr | --program-t)
684 ac_prev=program_transform_name ;;
685 -program-transform-name=* | --program-transform-name=* \
686 | --program-transform-nam=* | --program-transform-na=* \
687 | --program-transform-n=* | --program-transform-=* \
688 | --program-transform=* | --program-transfor=* \
689 | --program-transfo=* | --program-transf=* \
690 | --program-trans=* | --program-tran=* \
691 | --progr-tra=* | --program-tr=* | --program-t=*)
692 program_transform_name=$ac_optarg ;;
694 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
695 | -silent | --silent | --silen | --sile | --sil)
698 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
700 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
702 sbindir=$ac_optarg ;;
704 -sharedstatedir | --sharedstatedir | --sharedstatedi \
705 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
706 | --sharedst | --shareds | --shared | --share | --shar \
708 ac_prev=sharedstatedir ;;
709 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
710 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
711 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
713 sharedstatedir=$ac_optarg ;;
715 -site | --site | --sit)
717 -site=* | --site=* | --sit=*)
720 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
722 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
725 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
726 | --syscon | --sysco | --sysc | --sys | --sy)
727 ac_prev=sysconfdir ;;
728 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
729 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
730 sysconfdir=$ac_optarg ;;
732 -target | --target | --targe | --targ | --tar | --ta | --t)
733 ac_prev=target_alias ;;
734 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
735 target_alias=$ac_optarg ;;
737 -v | -verbose | --verbose | --verbos | --verbo | --verb)
740 -version | --version | --versio | --versi | --vers | -V)
744 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
745 # Reject names that are not valid shell variable names.
746 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
747 { echo "$as_me: error: invalid package name: $ac_package" >&2
748 { (exit 1); exit 1; }; }
749 ac_package=`echo $ac_package| sed 's/-/_/g'`
751 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
754 eval "with_$ac_package='$ac_optarg'" ;;
756 -without-* | --without-*)
757 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
758 # Reject names that are not valid shell variable names.
759 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
760 { echo "$as_me: error: invalid package name: $ac_package" >&2
761 { (exit 1); exit 1; }; }
762 ac_package=`echo $ac_package | sed 's/-/_/g'`
763 eval "with_$ac_package=no" ;;
766 # Obsolete; use --with-x.
769 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
770 | --x-incl | --x-inc | --x-in | --x-i)
771 ac_prev=x_includes ;;
772 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
773 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
774 x_includes=$ac_optarg ;;
776 -x-libraries | --x-libraries | --x-librarie | --x-librari \
777 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
778 ac_prev=x_libraries ;;
779 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
780 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
781 x_libraries=$ac_optarg ;;
783 -*) { echo "$as_me: error: unrecognized option: $ac_option
784 Try \`$0 --help' for more information." >&2
785 { (exit 1); exit 1; }; }
789 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
790 # Reject names that are not valid shell variable names.
791 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
792 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
793 { (exit 1); exit 1; }; }
794 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
795 eval "$ac_envvar='$ac_optarg'"
799 # FIXME: should be removed in autoconf 3.0.
800 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
801 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
802 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
803 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
809 if test -n "$ac_prev"; then
810 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
811 { echo "$as_me: error: missing argument to $ac_option" >&2
812 { (exit 1); exit 1; }; }
815 # Be sure to have absolute paths.
816 for ac_var in exec_prefix prefix
818 eval ac_val=$`echo $ac_var`
820 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
821 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
822 { (exit 1); exit 1; }; };;
826 # Be sure to have absolute paths.
827 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
828 localstatedir libdir includedir oldincludedir infodir mandir
830 eval ac_val=$`echo $ac_var`
832 [\\/$]* | ?:[\\/]* ) ;;
833 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
834 { (exit 1); exit 1; }; };;
838 # There might be people who depend on the old broken behavior: `$host'
839 # used to hold the argument of --host etc.
840 # FIXME: To remove some day.
845 # FIXME: To remove some day.
846 if test "x$host_alias" != x; then
847 if test "x$build_alias" = x; then
848 cross_compiling=maybe
849 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
850 If a cross compiler is detected then cross compile mode will be used." >&2
851 elif test "x$build_alias" != "x$host_alias"; then
857 test -n "$host_alias" && ac_tool_prefix=$host_alias-
859 test "$silent" = yes && exec 6>/dev/null
862 # Find the source files, if location was not specified.
863 if test -z "$srcdir"; then
864 ac_srcdir_defaulted=yes
865 # Try the directory containing this script, then its parent.
866 ac_confdir=`(dirname "$0") 2>/dev/null ||
867 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
868 X"$0" : 'X\(//\)[^/]' \| \
869 X"$0" : 'X\(//\)$' \| \
870 X"$0" : 'X\(/\)' \| \
871 . : '\(.\)' 2>/dev/null ||
873 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
874 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
875 /^X\(\/\/\)$/{ s//\1/; q; }
876 /^X\(\/\).*/{ s//\1/; q; }
879 if test ! -r $srcdir/$ac_unique_file; then
883 ac_srcdir_defaulted=no
885 if test ! -r $srcdir/$ac_unique_file; then
886 if test "$ac_srcdir_defaulted" = yes; then
887 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
888 { (exit 1); exit 1; }; }
890 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
891 { (exit 1); exit 1; }; }
894 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
895 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
896 { (exit 1); exit 1; }; }
897 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
898 ac_env_build_alias_set=${build_alias+set}
899 ac_env_build_alias_value=$build_alias
900 ac_cv_env_build_alias_set=${build_alias+set}
901 ac_cv_env_build_alias_value=$build_alias
902 ac_env_host_alias_set=${host_alias+set}
903 ac_env_host_alias_value=$host_alias
904 ac_cv_env_host_alias_set=${host_alias+set}
905 ac_cv_env_host_alias_value=$host_alias
906 ac_env_target_alias_set=${target_alias+set}
907 ac_env_target_alias_value=$target_alias
908 ac_cv_env_target_alias_set=${target_alias+set}
909 ac_cv_env_target_alias_value=$target_alias
910 ac_env_CC_set=${CC+set}
912 ac_cv_env_CC_set=${CC+set}
913 ac_cv_env_CC_value=$CC
914 ac_env_CFLAGS_set=${CFLAGS+set}
915 ac_env_CFLAGS_value=$CFLAGS
916 ac_cv_env_CFLAGS_set=${CFLAGS+set}
917 ac_cv_env_CFLAGS_value=$CFLAGS
918 ac_env_LDFLAGS_set=${LDFLAGS+set}
919 ac_env_LDFLAGS_value=$LDFLAGS
920 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
921 ac_cv_env_LDFLAGS_value=$LDFLAGS
922 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
923 ac_env_CPPFLAGS_value=$CPPFLAGS
924 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
925 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
926 ac_env_CPP_set=${CPP+set}
927 ac_env_CPP_value=$CPP
928 ac_cv_env_CPP_set=${CPP+set}
929 ac_cv_env_CPP_value=$CPP
930 ac_env_CXX_set=${CXX+set}
931 ac_env_CXX_value=$CXX
932 ac_cv_env_CXX_set=${CXX+set}
933 ac_cv_env_CXX_value=$CXX
934 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
935 ac_env_CXXFLAGS_value=$CXXFLAGS
936 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
937 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
940 # Report the --help message.
942 if test "$ac_init_help" = "long"; then
943 # Omit some internal or obsolete options to make the list less imposing.
944 # This message is too long to be a string in the A/UX 3.1 sh.
946 \`configure' configures libntlm 0.3.1 to adapt to many kinds of systems.
948 Usage: $0 [OPTION]... [VAR=VALUE]...
950 To assign environment variables (e.g., CC, CFLAGS...), specify them as
951 VAR=VALUE. See below for descriptions of some of the useful variables.
953 Defaults for the options are specified in brackets.
956 -h, --help display this help and exit
957 --help=short display options specific to this package
958 --help=recursive display the short help of all the included packages
959 -V, --version display version information and exit
960 -q, --quiet, --silent do not print \`checking...' messages
961 --cache-file=FILE cache test results in FILE [disabled]
962 -C, --config-cache alias for \`--cache-file=config.cache'
963 -n, --no-create do not create output files
964 --srcdir=DIR find the sources in DIR [configure dir or \`..']
969 Installation directories:
970 --prefix=PREFIX install architecture-independent files in PREFIX
972 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
975 By default, \`make install' will install all the files in
976 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
977 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
978 for instance \`--prefix=\$HOME'.
980 For better control, use the options below.
982 Fine tuning of the installation directories:
983 --bindir=DIR user executables [EPREFIX/bin]
984 --sbindir=DIR system admin executables [EPREFIX/sbin]
985 --libexecdir=DIR program executables [EPREFIX/libexec]
986 --datadir=DIR read-only architecture-independent data [PREFIX/share]
987 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
988 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
989 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
990 --libdir=DIR object code libraries [EPREFIX/lib]
991 --includedir=DIR C header files [PREFIX/include]
992 --oldincludedir=DIR C header files for non-gcc [/usr/include]
993 --infodir=DIR info documentation [PREFIX/info]
994 --mandir=DIR man documentation [PREFIX/man]
1000 --program-prefix=PREFIX prepend PREFIX to installed program names
1001 --program-suffix=SUFFIX append SUFFIX to installed program names
1002 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1005 --build=BUILD configure for building on BUILD [guessed]
1006 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1010 if test -n "$ac_init_help"; then
1011 case $ac_init_help in
1012 short | recursive ) echo "Configuration of libntlm 0.3.1:";;
1017 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1018 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1019 --enable-shared=PKGS build shared libraries default=yes
1020 --enable-static=PKGS build static libraries default=yes
1021 --enable-fast-install=PKGS optimize for fast installation default=yes
1022 --disable-dependency-tracking Speeds up one-time builds
1023 --enable-dependency-tracking Do not reject slow dependency extractors
1024 --disable-libtool-lock avoid locking (might break parallel builds)
1027 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1028 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1029 --with-gnu-ld assume the C compiler uses GNU ld default=no
1030 --with-pic try to use only PIC/non-PIC objects default=use both
1032 Some influential environment variables:
1033 CC C compiler command
1034 CFLAGS C compiler flags
1035 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1036 nonstandard directory <lib dir>
1037 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1038 headers in a nonstandard directory <include dir>
1040 CXX C++ compiler command
1041 CXXFLAGS C++ compiler flags
1043 Use these variables to override the choices made by `configure' or to help
1044 it to find libraries and programs with nonstandard names/locations.
1046 Report bugs to <bug-libntlm@josefsson.org>.
1050 if test "$ac_init_help" = "recursive"; then
1051 # If there are subdirs, report their specific --help.
1053 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1054 test -d $ac_dir || continue
1057 if test "$ac_dir" != .; then
1058 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1059 # A "../" for each directory in $ac_dir_suffix.
1060 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1062 ac_dir_suffix= ac_top_builddir=
1066 .) # No --srcdir option. We are building in place.
1068 if test -z "$ac_top_builddir"; then
1071 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1073 [\\/]* | ?:[\\/]* ) # Absolute path.
1074 ac_srcdir=$srcdir$ac_dir_suffix;
1075 ac_top_srcdir=$srcdir ;;
1077 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1078 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1080 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1082 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1083 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
1084 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1085 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1088 # Check for guested configure; otherwise get Cygnus style configure.
1089 if test -f $ac_srcdir/configure.gnu; then
1091 $SHELL $ac_srcdir/configure.gnu --help=recursive
1092 elif test -f $ac_srcdir/configure; then
1094 $SHELL $ac_srcdir/configure --help=recursive
1095 elif test -f $ac_srcdir/configure.ac ||
1096 test -f $ac_srcdir/configure.in; then
1098 $ac_configure --help
1100 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1106 test -n "$ac_init_help" && exit 0
1107 if $ac_init_version; then
1109 libntlm configure 0.3.1
1110 generated by GNU Autoconf 2.54
1112 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1113 Free Software Foundation, Inc.
1114 This configure script is free software; the Free Software Foundation
1115 gives unlimited permission to copy, distribute and modify it.
1121 This file contains any messages produced by compilers while
1122 running configure, to aid debugging if configure makes a mistake.
1124 It was created by libntlm $as_me 0.3.1, which was
1125 generated by GNU Autoconf 2.54. Invocation command line was
1136 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1137 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1138 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1139 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1140 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1142 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1143 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1145 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1146 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1147 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1148 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1149 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1150 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1151 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1159 test -z "$as_dir" && as_dir=.
1160 echo "PATH: $as_dir"
1175 # Keep a trace of the command line.
1176 # Strip out --no-create and --no-recursion so they do not pile up.
1177 # Also quote any args containing shell meta-characters.
1183 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1184 | --no-cr | --no-c | -n ) continue ;;
1185 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1186 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1188 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1189 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1191 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1192 # Get rid of the leading space.
1196 # When interrupted or exit'd, cleanup temporary files, and complete
1197 # config.log. We remove comments because anyway the quotes in there
1198 # would cause problems or look ugly.
1199 # WARNING: Be sure not to use single quotes in there, as some shells,
1200 # such as our DU 5.0 friend, will then `close' the trap.
1201 trap 'exit_status=$?
1202 # Save into config.log some information that might help in debugging.
1207 ## ---------------- ##
1208 ## Cache variables. ##
1209 ## ---------------- ##
1212 # The following way of writing the cache mishandles newlines in values,
1215 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1218 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1219 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1223 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1230 ## ----------------- ##
1231 ## Output variables. ##
1232 ## ----------------- ##
1235 for ac_var in $ac_subst_vars
1237 eval ac_val=$`echo $ac_var`
1238 echo "$ac_var='"'"'$ac_val'"'"'"
1242 if test -n "$ac_subst_files"; then
1249 for ac_var in $ac_subst_files
1251 eval ac_val=$`echo $ac_var`
1252 echo "$ac_var='"'"'$ac_val'"'"'"
1257 if test -s confdefs.h; then
1264 sed "/^$/d" confdefs.h | sort
1267 test "$ac_signal" != 0 &&
1268 echo "$as_me: caught signal $ac_signal"
1269 echo "$as_me: exit $exit_status"
1271 rm -f core core.* *.core &&
1272 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1275 for ac_signal in 1 2 13 15; do
1276 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1280 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1281 rm -rf conftest* confdefs.h
1282 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1285 # Predefined preprocessor variables.
1287 cat >>confdefs.h <<_ACEOF
1288 #define PACKAGE_NAME "$PACKAGE_NAME"
1292 cat >>confdefs.h <<_ACEOF
1293 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1297 cat >>confdefs.h <<_ACEOF
1298 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1302 cat >>confdefs.h <<_ACEOF
1303 #define PACKAGE_STRING "$PACKAGE_STRING"
1307 cat >>confdefs.h <<_ACEOF
1308 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1312 # Let the site file select an alternate cache file if it wants to.
1313 # Prefer explicitly selected file to automatically selected ones.
1314 if test -z "$CONFIG_SITE"; then
1315 if test "x$prefix" != xNONE; then
1316 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1318 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1321 for ac_site_file in $CONFIG_SITE; do
1322 if test -r "$ac_site_file"; then
1323 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1324 echo "$as_me: loading site script $ac_site_file" >&6;}
1325 sed 's/^/| /' "$ac_site_file" >&5
1330 if test -r "$cache_file"; then
1331 # Some versions of bash will fail to source /dev/null (special
1332 # files actually), so we avoid doing that.
1333 if test -f "$cache_file"; then
1334 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1335 echo "$as_me: loading cache $cache_file" >&6;}
1337 [\\/]* | ?:[\\/]* ) . $cache_file;;
1338 *) . ./$cache_file;;
1342 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1343 echo "$as_me: creating cache $cache_file" >&6;}
1347 # Check that the precious variables saved in the cache have kept the same
1349 ac_cache_corrupted=false
1350 for ac_var in `(set) 2>&1 |
1351 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1352 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1353 eval ac_new_set=\$ac_env_${ac_var}_set
1354 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1355 eval ac_new_val="\$ac_env_${ac_var}_value"
1356 case $ac_old_set,$ac_new_set in
1358 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1359 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1360 ac_cache_corrupted=: ;;
1362 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1363 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1364 ac_cache_corrupted=: ;;
1367 if test "x$ac_old_val" != "x$ac_new_val"; then
1368 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1369 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1370 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1371 echo "$as_me: former value: $ac_old_val" >&2;}
1372 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1373 echo "$as_me: current value: $ac_new_val" >&2;}
1374 ac_cache_corrupted=:
1377 # Pass precious variables to config.status.
1378 if test "$ac_new_set" = set; then
1380 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1381 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1382 *) ac_arg=$ac_var=$ac_new_val ;;
1384 case " $ac_configure_args " in
1385 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1386 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1390 if $ac_cache_corrupted; then
1391 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1392 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1393 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1394 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1395 { (exit 1); exit 1; }; }
1399 ac_cpp='$CPP $CPPFLAGS'
1400 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1401 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1402 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1432 # Interfaces removed: CURRENT++, AGE=0, REVISION=0
1433 # Interfaces added: CURRENT++, AGE++, REVISION=0
1434 # No interfaces changed: REVISION++
1442 am__api_version="1.7"
1444 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1445 if test -f $ac_dir/install-sh; then
1447 ac_install_sh="$ac_aux_dir/install-sh -c"
1449 elif test -f $ac_dir/install.sh; then
1451 ac_install_sh="$ac_aux_dir/install.sh -c"
1453 elif test -f $ac_dir/shtool; then
1455 ac_install_sh="$ac_aux_dir/shtool install -c"
1459 if test -z "$ac_aux_dir"; then
1460 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1461 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1462 { (exit 1); exit 1; }; }
1464 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1465 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1466 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1468 # Find a good install program. We prefer a C program (faster),
1469 # so one script is as good as another. But avoid the broken or
1470 # incompatible versions:
1471 # SysV /etc/install, /usr/sbin/install
1472 # SunOS /usr/etc/install
1473 # IRIX /sbin/install
1475 # AmigaOS /C/install, which installs bootblocks on floppy discs
1476 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1477 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1478 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1479 # ./install, which can be erroneously created by make from ./install.sh.
1480 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1481 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1482 if test -z "$INSTALL"; then
1483 if test "${ac_cv_path_install+set}" = set; then
1484 echo $ECHO_N "(cached) $ECHO_C" >&6
1486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1490 test -z "$as_dir" && as_dir=.
1491 # Account for people who put trailing slashes in PATH elements.
1493 ./ | .// | /cC/* | \
1494 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1497 # OSF1 and SCO ODT 3.0 have their own names for install.
1498 # Don't use installbsd from OSF since it installs stuff as root
1500 for ac_prog in ginstall scoinst install; do
1501 for ac_exec_ext in '' $ac_executable_extensions; do
1502 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1503 if test $ac_prog = install &&
1504 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1505 # AIX install. It has an incompatible calling convention.
1507 elif test $ac_prog = install &&
1508 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1509 # program-specific install script used by HP pwplus--don't use.
1512 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1524 if test "${ac_cv_path_install+set}" = set; then
1525 INSTALL=$ac_cv_path_install
1527 # As a last resort, use the slow shell script. We don't cache a
1528 # path for INSTALL within a source directory, because that will
1529 # break other packages using the cache if that directory is
1530 # removed, or if the path is relative.
1531 INSTALL=$ac_install_sh
1534 echo "$as_me:$LINENO: result: $INSTALL" >&5
1535 echo "${ECHO_T}$INSTALL" >&6
1537 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1538 # It thinks the first close brace ends the variable substitution.
1539 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1541 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1543 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1545 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1546 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1549 echo timestamp > conftest.file
1550 # Do `set' in a subshell so we don't clobber the current shell's
1551 # arguments. Must try -L first in case configure is actually a
1552 # symlink; some systems play weird games with the mod time of symlinks
1553 # (eg FreeBSD returns the mod time of the symlink's containing
1556 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1557 if test "$*" = "X"; then
1559 set X `ls -t $srcdir/configure conftest.file`
1562 if test "$*" != "X $srcdir/configure conftest.file" \
1563 && test "$*" != "X conftest.file $srcdir/configure"; then
1565 # If neither matched, then we have a broken ls. This can happen
1566 # if, for instance, CONFIG_SHELL is bash and it inherits a
1567 # broken ls alias from the environment. This has actually
1568 # happened. Such a system could not be considered "sane".
1569 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1570 alias in your environment" >&5
1571 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1572 alias in your environment" >&2;}
1573 { (exit 1); exit 1; }; }
1576 test "$2" = conftest.file
1582 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1583 Check your system clock" >&5
1584 echo "$as_me: error: newly created file is older than distributed files!
1585 Check your system clock" >&2;}
1586 { (exit 1); exit 1; }; }
1588 echo "$as_me:$LINENO: result: yes" >&5
1589 echo "${ECHO_T}yes" >&6
1590 test "$program_prefix" != NONE &&
1591 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1592 # Use a double $ so make ignores it.
1593 test "$program_suffix" != NONE &&
1594 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1595 # Double any \ or $. echo might interpret backslashes.
1596 # By default was `s,x,x', remove it if useless.
1597 cat <<\_ACEOF >conftest.sed
1598 s/[\\$]/&&/g;s/;s,x,x,$//
1600 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1604 # expand $ac_aux_dir to an absolute path
1605 am_aux_dir=`cd $ac_aux_dir && pwd`
1607 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1608 # Use eval to expand $SHELL
1609 if eval "$MISSING --run true"; then
1610 am_missing_run="$MISSING --run "
1613 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1614 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1617 for ac_prog in gawk mawk nawk awk
1619 # Extract the first word of "$ac_prog", so it can be a program name with args.
1620 set dummy $ac_prog; ac_word=$2
1621 echo "$as_me:$LINENO: checking for $ac_word" >&5
1622 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1623 if test "${ac_cv_prog_AWK+set}" = set; then
1624 echo $ECHO_N "(cached) $ECHO_C" >&6
1626 if test -n "$AWK"; then
1627 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1633 test -z "$as_dir" && as_dir=.
1634 for ac_exec_ext in '' $ac_executable_extensions; do
1635 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1636 ac_cv_prog_AWK="$ac_prog"
1637 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1646 if test -n "$AWK"; then
1647 echo "$as_me:$LINENO: result: $AWK" >&5
1648 echo "${ECHO_T}$AWK" >&6
1650 echo "$as_me:$LINENO: result: no" >&5
1651 echo "${ECHO_T}no" >&6
1654 test -n "$AWK" && break
1657 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
1658 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1659 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1660 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1661 echo $ECHO_N "(cached) $ECHO_C" >&6
1663 cat >conftest.make <<\_ACEOF
1665 @echo 'ac_maketemp="${MAKE}"'
1667 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1668 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1669 if test -n "$ac_maketemp"; then
1670 eval ac_cv_prog_make_${ac_make}_set=yes
1672 eval ac_cv_prog_make_${ac_make}_set=no
1676 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1677 echo "$as_me:$LINENO: result: yes" >&5
1678 echo "${ECHO_T}yes" >&6
1681 echo "$as_me:$LINENO: result: no" >&5
1682 echo "${ECHO_T}no" >&6
1683 SET_MAKE="MAKE=${MAKE-make}"
1686 # test to see if srcdir already configured
1687 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1688 test -f $srcdir/config.status; then
1689 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1690 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1691 { (exit 1); exit 1; }; }
1694 # test whether we have cygpath
1695 if test -z "$CYGPATH_W"; then
1696 if (cygpath --version) >/dev/null 2>/dev/null; then
1697 CYGPATH_W='cygpath -w'
1704 # Define the identity of the package.
1709 cat >>confdefs.h <<_ACEOF
1710 #define PACKAGE "$PACKAGE"
1714 cat >>confdefs.h <<_ACEOF
1715 #define VERSION "$VERSION"
1718 # Some tools Automake needs.
1720 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1723 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1726 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1729 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1732 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1735 AMTAR=${AMTAR-"${am_missing_run}tar"}
1737 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1739 # Installed binaries are usually stripped using `strip' when the user
1740 # run `make install-strip'. However `strip' might not be the right
1741 # tool to use in cross-compilation environments, therefore Automake
1742 # will honor the `STRIP' environment variable to overrule this program.
1743 if test "$cross_compiling" != no; then
1744 if test -n "$ac_tool_prefix"; then
1745 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1746 set dummy ${ac_tool_prefix}strip; ac_word=$2
1747 echo "$as_me:$LINENO: checking for $ac_word" >&5
1748 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1749 if test "${ac_cv_prog_STRIP+set}" = set; then
1750 echo $ECHO_N "(cached) $ECHO_C" >&6
1752 if test -n "$STRIP"; then
1753 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1759 test -z "$as_dir" && as_dir=.
1760 for ac_exec_ext in '' $ac_executable_extensions; do
1761 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1762 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1763 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1771 STRIP=$ac_cv_prog_STRIP
1772 if test -n "$STRIP"; then
1773 echo "$as_me:$LINENO: result: $STRIP" >&5
1774 echo "${ECHO_T}$STRIP" >&6
1776 echo "$as_me:$LINENO: result: no" >&5
1777 echo "${ECHO_T}no" >&6
1781 if test -z "$ac_cv_prog_STRIP"; then
1783 # Extract the first word of "strip", so it can be a program name with args.
1784 set dummy strip; ac_word=$2
1785 echo "$as_me:$LINENO: checking for $ac_word" >&5
1786 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1787 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1788 echo $ECHO_N "(cached) $ECHO_C" >&6
1790 if test -n "$ac_ct_STRIP"; then
1791 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1797 test -z "$as_dir" && as_dir=.
1798 for ac_exec_ext in '' $ac_executable_extensions; do
1799 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1800 ac_cv_prog_ac_ct_STRIP="strip"
1801 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1807 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1810 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1811 if test -n "$ac_ct_STRIP"; then
1812 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1813 echo "${ECHO_T}$ac_ct_STRIP" >&6
1815 echo "$as_me:$LINENO: result: no" >&5
1816 echo "${ECHO_T}no" >&6
1821 STRIP="$ac_cv_prog_STRIP"
1825 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1827 # We need awk for the "check" target. The system "awk" is bad on
1832 ac_config_headers="$ac_config_headers config.h"
1835 # Checks for programs.
1836 # Check whether --enable-shared or --disable-shared was given.
1837 if test "${enable_shared+set}" = set; then
1838 enableval="$enable_shared"
1839 p=${PACKAGE-default}
1841 yes) enable_shared=yes ;;
1842 no) enable_shared=no ;;
1845 # Look at the argument we got. We use all the common list separators.
1846 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1847 for pkg in $enableval; do
1848 if test "X$pkg" = "X$p"; then
1858 # Check whether --enable-static or --disable-static was given.
1859 if test "${enable_static+set}" = set; then
1860 enableval="$enable_static"
1861 p=${PACKAGE-default}
1863 yes) enable_static=yes ;;
1864 no) enable_static=no ;;
1867 # Look at the argument we got. We use all the common list separators.
1868 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1869 for pkg in $enableval; do
1870 if test "X$pkg" = "X$p"; then
1880 # Check whether --enable-fast-install or --disable-fast-install was given.
1881 if test "${enable_fast_install+set}" = set; then
1882 enableval="$enable_fast_install"
1883 p=${PACKAGE-default}
1885 yes) enable_fast_install=yes ;;
1886 no) enable_fast_install=no ;;
1888 enable_fast_install=no
1889 # Look at the argument we got. We use all the common list separators.
1890 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1891 for pkg in $enableval; do
1892 if test "X$pkg" = "X$p"; then
1893 enable_fast_install=yes
1900 enable_fast_install=yes
1902 # Make sure we can run config.sub.
1903 $ac_config_sub sun4 >/dev/null 2>&1 ||
1904 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1905 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1906 { (exit 1); exit 1; }; }
1908 echo "$as_me:$LINENO: checking build system type" >&5
1909 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1910 if test "${ac_cv_build+set}" = set; then
1911 echo $ECHO_N "(cached) $ECHO_C" >&6
1913 ac_cv_build_alias=$build_alias
1914 test -z "$ac_cv_build_alias" &&
1915 ac_cv_build_alias=`$ac_config_guess`
1916 test -z "$ac_cv_build_alias" &&
1917 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1918 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1919 { (exit 1); exit 1; }; }
1920 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1921 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1922 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1923 { (exit 1); exit 1; }; }
1926 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1927 echo "${ECHO_T}$ac_cv_build" >&6
1929 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1930 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1931 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1934 echo "$as_me:$LINENO: checking host system type" >&5
1935 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1936 if test "${ac_cv_host+set}" = set; then
1937 echo $ECHO_N "(cached) $ECHO_C" >&6
1939 ac_cv_host_alias=$host_alias
1940 test -z "$ac_cv_host_alias" &&
1941 ac_cv_host_alias=$ac_cv_build_alias
1942 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1943 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1944 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1945 { (exit 1); exit 1; }; }
1948 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1949 echo "${ECHO_T}$ac_cv_host" >&6
1951 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1952 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1953 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1956 rm -f .deps 2>/dev/null
1957 mkdir .deps 2>/dev/null
1958 if test -d .deps; then
1961 # MS-DOS does not allow filenames that begin with a dot.
1964 rmdir .deps 2>/dev/null
1967 ac_config_commands="$ac_config_commands depfiles"
1970 am_make=${MAKE-make}
1971 cat > confinc << 'END'
1975 # If we don't find an include directive, just comment out the code.
1976 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
1977 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
1981 # First try GNU make style include.
1982 echo "include confinc" > confmf
1983 # We grep out `Entering directory' and `Leaving directory'
1984 # messages which can occur if `w' ends up in MAKEFLAGS.
1985 # In particular we don't look at `^make:' because GNU make might
1986 # be invoked under some other name (usually "gmake"), in which
1987 # case it prints its new name instead of `make'.
1988 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
1993 # Now try BSD make style include.
1994 if test "$am__include" = "#"; then
1995 echo '.include "confinc"' > confmf
1996 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
1997 am__include=.include
2004 echo "$as_me:$LINENO: result: $_am_result" >&5
2005 echo "${ECHO_T}$_am_result" >&6
2006 rm -f confinc confmf
2008 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2009 if test "${enable_dependency_tracking+set}" = set; then
2010 enableval="$enable_dependency_tracking"
2013 if test "x$enable_dependency_tracking" != xno; then
2014 am_depcomp="$ac_aux_dir/depcomp"
2019 if test "x$enable_dependency_tracking" != xno; then
2030 ac_cpp='$CPP $CPPFLAGS'
2031 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2032 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2033 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2034 if test -n "$ac_tool_prefix"; then
2035 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2036 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2037 echo "$as_me:$LINENO: checking for $ac_word" >&5
2038 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2039 if test "${ac_cv_prog_CC+set}" = set; then
2040 echo $ECHO_N "(cached) $ECHO_C" >&6
2042 if test -n "$CC"; then
2043 ac_cv_prog_CC="$CC" # Let the user override the test.
2045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2049 test -z "$as_dir" && as_dir=.
2050 for ac_exec_ext in '' $ac_executable_extensions; do
2051 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2052 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2053 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2062 if test -n "$CC"; then
2063 echo "$as_me:$LINENO: result: $CC" >&5
2064 echo "${ECHO_T}$CC" >&6
2066 echo "$as_me:$LINENO: result: no" >&5
2067 echo "${ECHO_T}no" >&6
2071 if test -z "$ac_cv_prog_CC"; then
2073 # Extract the first word of "gcc", so it can be a program name with args.
2074 set dummy gcc; ac_word=$2
2075 echo "$as_me:$LINENO: checking for $ac_word" >&5
2076 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2077 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2078 echo $ECHO_N "(cached) $ECHO_C" >&6
2080 if test -n "$ac_ct_CC"; then
2081 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2087 test -z "$as_dir" && as_dir=.
2088 for ac_exec_ext in '' $ac_executable_extensions; do
2089 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2090 ac_cv_prog_ac_ct_CC="gcc"
2091 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2099 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2100 if test -n "$ac_ct_CC"; then
2101 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2102 echo "${ECHO_T}$ac_ct_CC" >&6
2104 echo "$as_me:$LINENO: result: no" >&5
2105 echo "${ECHO_T}no" >&6
2113 if test -z "$CC"; then
2114 if test -n "$ac_tool_prefix"; then
2115 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2116 set dummy ${ac_tool_prefix}cc; ac_word=$2
2117 echo "$as_me:$LINENO: checking for $ac_word" >&5
2118 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2119 if test "${ac_cv_prog_CC+set}" = set; then
2120 echo $ECHO_N "(cached) $ECHO_C" >&6
2122 if test -n "$CC"; then
2123 ac_cv_prog_CC="$CC" # Let the user override the test.
2125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2129 test -z "$as_dir" && as_dir=.
2130 for ac_exec_ext in '' $ac_executable_extensions; do
2131 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2132 ac_cv_prog_CC="${ac_tool_prefix}cc"
2133 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2142 if test -n "$CC"; then
2143 echo "$as_me:$LINENO: result: $CC" >&5
2144 echo "${ECHO_T}$CC" >&6
2146 echo "$as_me:$LINENO: result: no" >&5
2147 echo "${ECHO_T}no" >&6
2151 if test -z "$ac_cv_prog_CC"; then
2153 # Extract the first word of "cc", so it can be a program name with args.
2154 set dummy cc; ac_word=$2
2155 echo "$as_me:$LINENO: checking for $ac_word" >&5
2156 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2157 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2158 echo $ECHO_N "(cached) $ECHO_C" >&6
2160 if test -n "$ac_ct_CC"; then
2161 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2167 test -z "$as_dir" && as_dir=.
2168 for ac_exec_ext in '' $ac_executable_extensions; do
2169 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2170 ac_cv_prog_ac_ct_CC="cc"
2171 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2179 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2180 if test -n "$ac_ct_CC"; then
2181 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2182 echo "${ECHO_T}$ac_ct_CC" >&6
2184 echo "$as_me:$LINENO: result: no" >&5
2185 echo "${ECHO_T}no" >&6
2194 if test -z "$CC"; then
2195 # Extract the first word of "cc", so it can be a program name with args.
2196 set dummy cc; ac_word=$2
2197 echo "$as_me:$LINENO: checking for $ac_word" >&5
2198 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2199 if test "${ac_cv_prog_CC+set}" = set; then
2200 echo $ECHO_N "(cached) $ECHO_C" >&6
2202 if test -n "$CC"; then
2203 ac_cv_prog_CC="$CC" # Let the user override the test.
2206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2210 test -z "$as_dir" && as_dir=.
2211 for ac_exec_ext in '' $ac_executable_extensions; do
2212 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2213 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2214 ac_prog_rejected=yes
2218 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2224 if test $ac_prog_rejected = yes; then
2225 # We found a bogon in the path, so make sure we never use it.
2226 set dummy $ac_cv_prog_CC
2228 if test $# != 0; then
2229 # We chose a different compiler from the bogus one.
2230 # However, it has the same basename, so the bogon will be chosen
2231 # first if we set CC to just the basename; use the full file name.
2233 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2239 if test -n "$CC"; then
2240 echo "$as_me:$LINENO: result: $CC" >&5
2241 echo "${ECHO_T}$CC" >&6
2243 echo "$as_me:$LINENO: result: no" >&5
2244 echo "${ECHO_T}no" >&6
2248 if test -z "$CC"; then
2249 if test -n "$ac_tool_prefix"; then
2252 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2253 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2254 echo "$as_me:$LINENO: checking for $ac_word" >&5
2255 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2256 if test "${ac_cv_prog_CC+set}" = set; then
2257 echo $ECHO_N "(cached) $ECHO_C" >&6
2259 if test -n "$CC"; then
2260 ac_cv_prog_CC="$CC" # Let the user override the test.
2262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2266 test -z "$as_dir" && as_dir=.
2267 for ac_exec_ext in '' $ac_executable_extensions; do
2268 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2269 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2270 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2279 if test -n "$CC"; then
2280 echo "$as_me:$LINENO: result: $CC" >&5
2281 echo "${ECHO_T}$CC" >&6
2283 echo "$as_me:$LINENO: result: no" >&5
2284 echo "${ECHO_T}no" >&6
2287 test -n "$CC" && break
2290 if test -z "$CC"; then
2294 # Extract the first word of "$ac_prog", so it can be a program name with args.
2295 set dummy $ac_prog; ac_word=$2
2296 echo "$as_me:$LINENO: checking for $ac_word" >&5
2297 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2298 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2299 echo $ECHO_N "(cached) $ECHO_C" >&6
2301 if test -n "$ac_ct_CC"; then
2302 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2308 test -z "$as_dir" && as_dir=.
2309 for ac_exec_ext in '' $ac_executable_extensions; do
2310 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2311 ac_cv_prog_ac_ct_CC="$ac_prog"
2312 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2320 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2321 if test -n "$ac_ct_CC"; then
2322 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2323 echo "${ECHO_T}$ac_ct_CC" >&6
2325 echo "$as_me:$LINENO: result: no" >&5
2326 echo "${ECHO_T}no" >&6
2329 test -n "$ac_ct_CC" && break
2338 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
2339 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
2340 { (exit 1); exit 1; }; }
2342 # Provide some information about the compiler.
2343 echo "$as_me:$LINENO:" \
2344 "checking for C compiler version" >&5
2345 ac_compiler=`set X $ac_compile; echo $2`
2346 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2347 (eval $ac_compiler --version </dev/null >&5) 2>&5
2349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2350 (exit $ac_status); }
2351 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2352 (eval $ac_compiler -v </dev/null >&5) 2>&5
2354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2355 (exit $ac_status); }
2356 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2357 (eval $ac_compiler -V </dev/null >&5) 2>&5
2359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2360 (exit $ac_status); }
2362 cat >conftest.$ac_ext <<_ACEOF
2363 #line $LINENO "configure"
2364 #include "confdefs.h"
2374 ac_clean_files_save=$ac_clean_files
2375 ac_clean_files="$ac_clean_files a.out a.exe"
2376 # Try to create an executable without -o first, disregard a.out.
2377 # It will help us diagnose broken compilers, and finding out an intuition
2379 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2380 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2381 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2382 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2383 (eval $ac_link_default) 2>&5
2385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2386 (exit $ac_status); }; then
2387 # Find the output, starting from the most likely. This scheme is
2388 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2391 # Be careful to initialize this variable, since it used to be cached.
2392 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2394 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.*; do
2395 test -f "$ac_file" || continue
2397 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2398 a.out ) # We found the default executable, but exeext='' is most
2401 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2402 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2409 echo "$as_me: failed program was:" >&5
2410 cat conftest.$ac_ext >&5
2411 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2412 check \`config.log' for details." >&5
2413 echo "$as_me: error: C compiler cannot create executables
2414 check \`config.log' for details." >&2;}
2415 { (exit 77); exit 77; }; }
2418 ac_exeext=$ac_cv_exeext
2419 echo "$as_me:$LINENO: result: $ac_file" >&5
2420 echo "${ECHO_T}$ac_file" >&6
2422 # Check the compiler produces executables we can run. If not, either
2423 # the compiler is broken, or we cross compile.
2424 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2425 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2426 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2427 # If not cross compiling, check that we can run a simple program.
2428 if test "$cross_compiling" != yes; then
2429 if { ac_try='./$ac_file'
2430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2434 (exit $ac_status); }; }; then
2437 if test "$cross_compiling" = maybe; then
2440 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2441 If you meant to cross compile, use \`--host'." >&5
2442 echo "$as_me: error: cannot run C compiled programs.
2443 If you meant to cross compile, use \`--host'." >&2;}
2444 { (exit 1); exit 1; }; }
2448 echo "$as_me:$LINENO: result: yes" >&5
2449 echo "${ECHO_T}yes" >&6
2451 rm -f a.out a.exe conftest$ac_cv_exeext
2452 ac_clean_files=$ac_clean_files_save
2453 # Check the compiler produces executables we can run. If not, either
2454 # the compiler is broken, or we cross compile.
2455 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2456 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2457 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2458 echo "${ECHO_T}$cross_compiling" >&6
2460 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2461 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2463 (eval $ac_link) 2>&5
2465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2466 (exit $ac_status); }; then
2467 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2468 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2469 # work properly (i.e., refer to `conftest.exe'), while it won't with
2471 for ac_file in conftest.exe conftest conftest.*; do
2472 test -f "$ac_file" || continue
2474 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2475 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2482 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2483 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2484 { (exit 1); exit 1; }; }
2487 rm -f conftest$ac_cv_exeext
2488 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2489 echo "${ECHO_T}$ac_cv_exeext" >&6
2491 rm -f conftest.$ac_ext
2492 EXEEXT=$ac_cv_exeext
2494 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2495 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2496 if test "${ac_cv_objext+set}" = set; then
2497 echo $ECHO_N "(cached) $ECHO_C" >&6
2499 cat >conftest.$ac_ext <<_ACEOF
2500 #line $LINENO "configure"
2501 #include "confdefs.h"
2511 rm -f conftest.o conftest.obj
2512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2513 (eval $ac_compile) 2>&5
2515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2516 (exit $ac_status); }; then
2517 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2519 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2520 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2525 echo "$as_me: failed program was:" >&5
2526 cat conftest.$ac_ext >&5
2527 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2528 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2529 { (exit 1); exit 1; }; }
2532 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2534 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2535 echo "${ECHO_T}$ac_cv_objext" >&6
2536 OBJEXT=$ac_cv_objext
2538 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2539 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2540 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2541 echo $ECHO_N "(cached) $ECHO_C" >&6
2543 cat >conftest.$ac_ext <<_ACEOF
2544 #line $LINENO "configure"
2545 #include "confdefs.h"
2558 rm -f conftest.$ac_objext
2559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2560 (eval $ac_compile) 2>&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 cat conftest.$ac_ext >&5
2576 rm -f conftest.$ac_objext conftest.$ac_ext
2577 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2580 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2581 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2582 GCC=`test $ac_compiler_gnu = yes && echo yes`
2583 ac_test_CFLAGS=${CFLAGS+set}
2584 ac_save_CFLAGS=$CFLAGS
2586 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2587 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2588 if test "${ac_cv_prog_cc_g+set}" = set; then
2589 echo $ECHO_N "(cached) $ECHO_C" >&6
2591 cat >conftest.$ac_ext <<_ACEOF
2592 #line $LINENO "configure"
2593 #include "confdefs.h"
2603 rm -f conftest.$ac_objext
2604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2605 (eval $ac_compile) 2>&5
2607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2608 (exit $ac_status); } &&
2609 { ac_try='test -s conftest.$ac_objext'
2610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2614 (exit $ac_status); }; }; then
2617 echo "$as_me: failed program was:" >&5
2618 cat conftest.$ac_ext >&5
2621 rm -f conftest.$ac_objext conftest.$ac_ext
2623 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2624 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2625 if test "$ac_test_CFLAGS" = set; then
2626 CFLAGS=$ac_save_CFLAGS
2627 elif test $ac_cv_prog_cc_g = yes; then
2628 if test "$GCC" = yes; then
2634 if test "$GCC" = yes; then
2640 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2641 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2642 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2643 echo $ECHO_N "(cached) $ECHO_C" >&6
2645 ac_cv_prog_cc_stdc=no
2647 cat >conftest.$ac_ext <<_ACEOF
2648 #line $LINENO "configure"
2649 #include "confdefs.h"
2652 #include <sys/types.h>
2653 #include <sys/stat.h>
2654 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2655 struct buf { int x; };
2656 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2657 static char *e (p, i)
2663 static char *f (char * (*g) (char **, int), char **p, ...)
2668 s = g (p, va_arg (v,int));
2672 int test (int i, double x);
2673 struct s1 {int (*f) (int a);};
2674 struct s2 {int (*f) (double a);};
2675 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2681 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2686 # Don't try gcc -ansi; that turns off useful extensions and
2687 # breaks some systems' header files.
2688 # AIX -qlanglvl=ansi
2689 # Ultrix and OSF/1 -std1
2690 # HP-UX 10.20 and later -Ae
2691 # HP-UX older versions -Aa -D_HPUX_SOURCE
2692 # SVR4 -Xc -D__EXTENSIONS__
2693 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2695 CC="$ac_save_CC $ac_arg"
2696 rm -f conftest.$ac_objext
2697 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2698 (eval $ac_compile) 2>&5
2700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2701 (exit $ac_status); } &&
2702 { ac_try='test -s conftest.$ac_objext'
2703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2707 (exit $ac_status); }; }; then
2708 ac_cv_prog_cc_stdc=$ac_arg
2711 echo "$as_me: failed program was:" >&5
2712 cat conftest.$ac_ext >&5
2714 rm -f conftest.$ac_objext
2716 rm -f conftest.$ac_ext conftest.$ac_objext
2721 case "x$ac_cv_prog_cc_stdc" in
2723 echo "$as_me:$LINENO: result: none needed" >&5
2724 echo "${ECHO_T}none needed" >&6 ;;
2726 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2727 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2728 CC="$CC $ac_cv_prog_cc_stdc" ;;
2731 # Some people use a C++ compiler to compile C. Since we use `exit',
2732 # in C++ we need to declare it. In case someone uses the same compiler
2733 # for both compiling C and C++ we need to have the C++ compiler decide
2734 # the declaration of exit, since it's the most demanding environment.
2735 cat >conftest.$ac_ext <<_ACEOF
2740 rm -f conftest.$ac_objext
2741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2742 (eval $ac_compile) 2>&5
2744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2745 (exit $ac_status); } &&
2746 { ac_try='test -s conftest.$ac_objext'
2747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2751 (exit $ac_status); }; }; then
2752 for ac_declaration in \
2754 '#include <stdlib.h>' \
2755 'extern "C" void std::exit (int) throw (); using std::exit;' \
2756 'extern "C" void std::exit (int); using std::exit;' \
2757 'extern "C" void exit (int) throw ();' \
2758 'extern "C" void exit (int);' \
2761 cat >conftest.$ac_ext <<_ACEOF
2762 #line $LINENO "configure"
2763 #include "confdefs.h"
2774 rm -f conftest.$ac_objext
2775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2776 (eval $ac_compile) 2>&5
2778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2779 (exit $ac_status); } &&
2780 { ac_try='test -s conftest.$ac_objext'
2781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2785 (exit $ac_status); }; }; then
2788 echo "$as_me: failed program was:" >&5
2789 cat conftest.$ac_ext >&5
2792 rm -f conftest.$ac_objext conftest.$ac_ext
2793 cat >conftest.$ac_ext <<_ACEOF
2794 #line $LINENO "configure"
2795 #include "confdefs.h"
2805 rm -f conftest.$ac_objext
2806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2807 (eval $ac_compile) 2>&5
2809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2810 (exit $ac_status); } &&
2811 { ac_try='test -s conftest.$ac_objext'
2812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2816 (exit $ac_status); }; }; then
2819 echo "$as_me: failed program was:" >&5
2820 cat conftest.$ac_ext >&5
2822 rm -f conftest.$ac_objext conftest.$ac_ext
2825 if test -n "$ac_declaration"; then
2826 echo '#ifdef __cplusplus' >>confdefs.h
2827 echo $ac_declaration >>confdefs.h
2828 echo '#endif' >>confdefs.h
2832 echo "$as_me: failed program was:" >&5
2833 cat conftest.$ac_ext >&5
2835 rm -f conftest.$ac_objext conftest.$ac_ext
2837 ac_cpp='$CPP $CPPFLAGS'
2838 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2839 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2840 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2842 depcc="$CC" am_compiler_list=
2844 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2845 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2846 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2847 echo $ECHO_N "(cached) $ECHO_C" >&6
2849 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2850 # We make a subdir and do the tests there. Otherwise we can end up
2851 # making bogus files that we don't know about and never remove. For
2852 # instance it was reported that on HP-UX the gcc test will end up
2853 # making a dummy file named `D' -- because `-MD' means `put the output
2856 # Copy depcomp to subdir because otherwise we won't find it if we're
2857 # using a relative directory.
2858 cp "$am_depcomp" conftest.dir
2861 am_cv_CC_dependencies_compiler_type=none
2862 if test "$am_compiler_list" = ""; then
2863 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2865 for depmode in $am_compiler_list; do
2866 # We need to recreate these files for each test, as the compiler may
2867 # overwrite some of them when testing with obscure command lines.
2868 # This happens at least with the AIX C compiler.
2869 echo '#include "conftest.h"' > conftest.c
2870 echo 'int i;' > conftest.h
2871 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2875 # after this tag, mechanisms are not by side-effect, so they'll
2876 # only be used when explicitly requested
2877 if test "x$enable_dependency_tracking" = xyes; then
2885 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2886 # mode. It turns out that the SunPro C++ compiler does not properly
2887 # handle `-M -o', and we need to detect this.
2888 if depmode=$depmode \
2889 source=conftest.c object=conftest.o \
2890 depfile=conftest.Po tmpdepfile=conftest.TPo \
2891 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
2892 grep conftest.h conftest.Po > /dev/null 2>&1 &&
2893 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2894 am_cv_CC_dependencies_compiler_type=$depmode
2902 am_cv_CC_dependencies_compiler_type=none
2906 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2907 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2908 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2913 test "x$enable_dependency_tracking" != xno \
2914 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2916 am__fastdepCC_FALSE='#'
2918 am__fastdepCC_TRUE='#'
2919 am__fastdepCC_FALSE=
2923 # Find the correct PATH separator. Usually this is `:', but
2924 # DJGPP uses `;' like DOS.
2925 if test "X${PATH_SEPARATOR+set}" != Xset; then
2926 UNAME=${UNAME-`uname 2>/dev/null`}
2928 *-DOS) lt_cv_sys_path_separator=';' ;;
2929 *) lt_cv_sys_path_separator=':' ;;
2931 PATH_SEPARATOR=$lt_cv_sys_path_separator
2935 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2936 if test "${with_gnu_ld+set}" = set; then
2937 withval="$with_gnu_ld"
2938 test "$withval" = no || with_gnu_ld=yes
2943 if test "$GCC" = yes; then
2944 # Check if gcc -print-prog-name=ld gives a path.
2945 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
2946 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
2949 # gcc leaves a trailing carriage return which upsets mingw
2950 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2952 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2955 # Accept absolute paths.
2956 [\\/]* | [A-Za-z]:[\\/]*)
2957 re_direlt='/[^/][^/]*/\.\./'
2958 # Canonicalize the path of ld
2959 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
2960 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2961 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
2963 test -z "$LD" && LD="$ac_prog"
2966 # If it fails, then pretend we aren't using GCC.
2970 # If it is relative, then search for the first ld in PATH.
2974 elif test "$with_gnu_ld" = yes; then
2975 echo "$as_me:$LINENO: checking for GNU ld" >&5
2976 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
2978 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
2979 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
2981 if test "${lt_cv_path_LD+set}" = set; then
2982 echo $ECHO_N "(cached) $ECHO_C" >&6
2984 if test -z "$LD"; then
2985 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2986 for ac_dir in $PATH; do
2987 test -z "$ac_dir" && ac_dir=.
2988 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2989 lt_cv_path_LD="$ac_dir/$ac_prog"
2990 # Check to see if the program is GNU ld. I'd rather use --version,
2991 # but apparently some GNU ld's only accept -v.
2992 # Break only if it was the GNU/non-GNU ld that we prefer.
2993 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2994 test "$with_gnu_ld" != no && break
2996 test "$with_gnu_ld" != yes && break
3002 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3007 if test -n "$LD"; then
3008 echo "$as_me:$LINENO: result: $LD" >&5
3009 echo "${ECHO_T}$LD" >&6
3011 echo "$as_me:$LINENO: result: no" >&5
3012 echo "${ECHO_T}no" >&6
3014 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3015 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3016 { (exit 1); exit 1; }; }
3017 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3018 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3019 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3020 echo $ECHO_N "(cached) $ECHO_C" >&6
3022 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3023 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3024 lt_cv_prog_gnu_ld=yes
3026 lt_cv_prog_gnu_ld=no
3029 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3030 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3031 with_gnu_ld=$lt_cv_prog_gnu_ld
3034 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3035 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3036 if test "${lt_cv_ld_reload_flag+set}" = set; then
3037 echo $ECHO_N "(cached) $ECHO_C" >&6
3039 lt_cv_ld_reload_flag='-r'
3041 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3042 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3043 reload_flag=$lt_cv_ld_reload_flag
3044 test -n "$reload_flag" && reload_flag=" $reload_flag"
3046 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3047 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3048 if test "${lt_cv_path_NM+set}" = set; then
3049 echo $ECHO_N "(cached) $ECHO_C" >&6
3051 if test -n "$NM"; then
3052 # Let the user override the test.
3055 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3056 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3057 test -z "$ac_dir" && ac_dir=.
3058 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3059 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3060 # Check to see if the nm accepts a BSD-compat flag.
3061 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3062 # nm: unknown option "B" ignored
3063 # Tru64's nm complains that /dev/null is an invalid object file
3064 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3065 lt_cv_path_NM="$tmp_nm -B"
3067 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3068 lt_cv_path_NM="$tmp_nm -p"
3071 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3072 continue # so that we can try to find one that supports BSD flags
3077 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3082 echo "$as_me:$LINENO: result: $NM" >&5
3083 echo "${ECHO_T}$NM" >&6
3085 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3086 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3087 if test "${lt_cv_path_SED+set}" = set; then
3088 echo $ECHO_N "(cached) $ECHO_C" >&6
3090 # Loop through the user's path and test for sed and gsed.
3091 # Then use that list of sed's as ones to test for truncation.
3092 as_executable_p="test -f"
3093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3097 test -z "$as_dir" && as_dir=.
3098 for ac_prog in sed gsed; do
3099 for ac_exec_ext in '' $ac_executable_extensions; do
3100 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3101 _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
3107 # Create a temporary directory, and hook for its removal unless debugging.
3110 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3111 trap '{ (exit 1); exit 1; }' 1 2 13 15
3114 # Create a (secure) tmp directory for tmp files.
3117 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
3118 test -n "$tmp" && test -d "$tmp"
3121 tmp=$TMPDIR/sed$$-$RANDOM
3122 (umask 077 && mkdir $tmp)
3125 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
3126 { (exit 1); exit 1; }
3130 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3131 # along with /bin/sed that truncates output.
3132 for _sed in $_sed_list /usr/xpg4/bin/sed; do
3133 test ! -f ${_sed} && break
3134 cat /dev/null > "$tmp/sed.in"
3136 echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
3137 # Check for GNU sed and select it if it is found.
3138 if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
3139 lt_cv_path_SED=${_sed}
3143 cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
3144 mv "$tmp/sed.tmp" "$tmp/sed.in"
3145 cp "$tmp/sed.in" "$tmp/sed.nl"
3146 echo >>"$tmp/sed.nl"
3147 ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
3148 cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
3149 # 40000 chars as input seems more than enough
3150 test $_count -gt 10 && break
3151 _count=`expr $_count + 1`
3152 if test $_count -gt $_max; then
3154 lt_cv_path_SED=$_sed
3162 if test "X$SED" != "X"; then
3167 echo "$as_me:$LINENO: result: $SED" >&5
3168 echo "${ECHO_T}$SED" >&6
3170 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3171 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3173 if test "$LN_S" = "ln -s"; then
3174 echo "$as_me:$LINENO: result: yes" >&5
3175 echo "${ECHO_T}yes" >&6
3177 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3178 echo "${ECHO_T}no, using $LN_S" >&6
3181 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3182 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3183 if test "${lt_cv_deplibs_check_method+set}" = set; then
3184 echo $ECHO_N "(cached) $ECHO_C" >&6
3186 lt_cv_file_magic_cmd='$MAGIC_CMD'
3187 lt_cv_file_magic_test_file=
3188 lt_cv_deplibs_check_method='unknown'
3189 # Need to set the preceding variable on all platforms that support
3190 # interlibrary dependencies.
3191 # 'none' -- dependencies not supported.
3192 # `unknown' -- same as none, but documents that we really don't know.
3193 # 'pass_all' -- all dependencies passed with no checks.
3194 # 'test_compile' -- check by making test program.
3195 # 'file_magic [[regex]]' -- check by looking for files in library path
3196 # which responds to the $file_magic_cmd with a given egrep regex.
3197 # If you have `file' or equivalent on your system and you're not sure
3198 # whether `pass_all' will *always* work, you probably want this one.
3202 lt_cv_deplibs_check_method=pass_all
3206 lt_cv_deplibs_check_method=pass_all
3210 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3211 lt_cv_file_magic_cmd='/usr/bin/file -L'
3212 lt_cv_file_magic_test_file=/shlib/libc.so
3215 cygwin* | mingw* | pw32*)
3216 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3217 lt_cv_file_magic_cmd='$OBJDUMP -f'
3220 darwin* | rhapsody*)
3221 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3222 lt_cv_file_magic_cmd='/usr/bin/file -L'
3224 rhapsody* | darwin1.[012])
3225 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3228 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3234 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3237 # Not sure whether the presence of OpenBSD here was a mistake.
3238 # Let's accept both of them until this is cleared up.
3239 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3240 lt_cv_file_magic_cmd=/usr/bin/file
3241 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3245 lt_cv_deplibs_check_method=pass_all
3250 lt_cv_deplibs_check_method=pass_all
3254 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3255 lt_cv_file_magic_cmd=/usr/bin/file
3256 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3259 irix5* | irix6* | nonstopux*)
3261 irix5* | nonstopux*)
3262 # this will be overridden with pass_all, but let us keep it just in case
3263 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3267 *-32|*"-32 ") libmagic=32-bit;;
3268 *-n32|*"-n32 ") libmagic=N32;;
3269 *-64|*"-64 ") libmagic=64-bit;;
3270 *) libmagic=never-match;;
3272 # this will be overridden with pass_all, but let us keep it just in case
3273 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3276 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3277 lt_cv_deplibs_check_method=pass_all
3280 # This must be Linux ELF.
3283 alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64*)
3284 lt_cv_deplibs_check_method=pass_all ;;
3286 # glibc up to 2.1.1 does not perform some relocations on ARM
3287 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3289 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3293 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3294 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3296 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3301 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3302 lt_cv_file_magic_cmd=/usr/bin/file
3303 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3307 lt_cv_file_magic_cmd=/usr/bin/file
3308 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3309 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3310 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3312 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3316 osf3* | osf4* | osf5*)
3317 # this will be overridden with pass_all, but let us keep it just in case
3318 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3319 lt_cv_file_magic_test_file=/shlib/libc.so
3320 lt_cv_deplibs_check_method=pass_all
3324 lt_cv_deplibs_check_method=pass_all
3328 lt_cv_deplibs_check_method=pass_all
3329 lt_cv_file_magic_test_file=/lib/libc.so
3332 sysv5uw[78]* | sysv4*uw2*)
3333 lt_cv_deplibs_check_method=pass_all
3336 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3337 case $host_vendor in
3339 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
3340 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3343 lt_cv_deplibs_check_method=pass_all
3346 lt_cv_file_magic_cmd='/bin/file'
3347 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3350 lt_cv_file_magic_cmd='/bin/file'
3351 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3352 lt_cv_file_magic_test_file=/lib/libc.so
3355 lt_cv_deplibs_check_method=pass_all
3362 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3363 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3364 file_magic_cmd=$lt_cv_file_magic_cmd
3365 deplibs_check_method=$lt_cv_deplibs_check_method
3374 # Check for command to grab the raw symbol name followed by C symbol from nm.
3375 echo "$as_me:$LINENO: checking command to parse $NM output" >&5
3376 echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
3377 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
3378 echo $ECHO_N "(cached) $ECHO_C" >&6
3381 # These are sane defaults that work on at least a few old systems.
3382 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
3384 # Character class describing NM global symbol codes.
3385 symcode='[BCDEGRST]'
3387 # Regexp to match symbols that can be accessed directly from C.
3388 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
3390 # Transform the above into a raw symbol and a C symbol.
3391 symxfrm='\1 \2\3 \3'
3393 # Transform an extracted symbol line into a proper C declaration
3394 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
3396 # Transform an extracted symbol line into symbol name and symbol address
3397 lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
3399 # Define system-specific variables.
3404 cygwin* | mingw* | pw32*)
3405 symcode='[ABCDGISTW]'
3407 hpux*) # Its linker distinguishes data from code symbols
3408 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3409 lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
3412 symcode='[BCDEGRST]'
3422 # Handle CRLF in mingw tool chain
3426 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3430 # If we're using GNU nm, then use its standard symbol codes.
3431 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
3432 symcode='[ABCDGISTW]'
3435 # Try without a prefix undercore, then with it.
3436 for ac_symprfx in "" "_"; do
3438 # Write the raw and C identifiers.
3439 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
3441 # Check to see that the pipe works correctly.
3444 cat > conftest.$ac_ext <<EOF
3449 void nm_test_func(){}
3453 int main(){nm_test_var='a';nm_test_func();return(0);}
3456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3457 (eval $ac_compile) 2>&5
3459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3460 (exit $ac_status); }; then
3461 # Now try to grab the symbols.
3463 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
3464 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
3466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3467 (exit $ac_status); } && test -s "$nlist"; then
3468 # Try sorting and uniquifying the output.
3469 if sort "$nlist" | uniq > "$nlist"T; then
3470 mv -f "$nlist"T "$nlist"
3475 # Make sure that we snagged all the symbols we need.
3476 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
3477 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
3478 cat <<EOF > conftest.$ac_ext
3484 # Now generate the symbol file.
3485 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
3487 cat <<EOF >> conftest.$ac_ext
3488 #if defined (__STDC__) && __STDC__
3489 # define lt_ptr void *
3491 # define lt_ptr char *
3495 /* The mapping between symbol names and symbols. */
3500 lt_preloaded_symbols[] =
3503 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
3504 cat <<\EOF >> conftest.$ac_ext
3512 # Now try linking the two files.
3513 mv conftest.$ac_objext conftstm.$ac_objext
3515 save_CFLAGS="$CFLAGS"
3516 LIBS="conftstm.$ac_objext"
3517 CFLAGS="$CFLAGS$no_builtin_flag"
3518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3519 (eval $ac_link) 2>&5
3521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3522 (exit $ac_status); } && test -s conftest; then
3526 CFLAGS="$save_CFLAGS"
3528 echo "cannot find nm_test_func in $nlist" >&5
3531 echo "cannot find nm_test_var in $nlist" >&5
3534 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
3537 echo "$progname: failed program was:" >&5
3538 cat conftest.$ac_ext >&5
3540 rm -f conftest* conftst*
3542 # Do not use the global_symbol_pipe unless it works.
3543 if test "$pipe_works" = yes; then
3546 lt_cv_sys_global_symbol_pipe=
3552 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
3553 if test -z "$lt_cv_sys_global_symbol_pipe"; then
3554 global_symbol_to_cdecl=
3555 global_symbol_to_c_name_address=
3557 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
3558 global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
3560 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
3562 echo "$as_me:$LINENO: result: failed" >&5
3563 echo "${ECHO_T}failed" >&6
3565 echo "$as_me:$LINENO: result: ok" >&5
3566 echo "${ECHO_T}ok" >&6
3570 ac_cpp='$CPP $CPPFLAGS'
3571 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3572 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3573 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3574 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3575 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3576 # On Suns, sometimes $CPP names a directory.
3577 if test -n "$CPP" && test -d "$CPP"; then
3580 if test -z "$CPP"; then
3581 if test "${ac_cv_prog_CPP+set}" = set; then
3582 echo $ECHO_N "(cached) $ECHO_C" >&6
3584 # Double quotes because CPP needs to be expanded
3585 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3588 for ac_c_preproc_warn_flag in '' yes
3590 # Use a header file that comes with gcc, so configuring glibc
3591 # with a fresh cross-compiler works.
3592 # On the NeXT, cc -E runs the code through the compiler's parser,
3593 # not just through cpp. "Syntax error" is here to catch this case.
3594 cat >conftest.$ac_ext <<_ACEOF
3595 #line $LINENO "configure"
3596 #include "confdefs.h"
3600 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3601 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3603 grep -v '^ *+' conftest.er1 >conftest.err
3605 cat conftest.err >&5
3606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3607 (exit $ac_status); } >/dev/null; then
3608 if test -s conftest.err; then
3609 ac_cpp_err=$ac_c_preproc_warn_flag
3616 if test -z "$ac_cpp_err"; then
3619 echo "$as_me: failed program was:" >&5
3620 cat conftest.$ac_ext >&5
3621 # Broken: fails on valid input.
3624 rm -f conftest.err conftest.$ac_ext
3626 # OK, works on sane cases. Now check whether non-existent headers
3627 # can be detected and how.
3628 cat >conftest.$ac_ext <<_ACEOF
3629 #line $LINENO "configure"
3630 #include "confdefs.h"
3631 #include <ac_nonexistent.h>
3633 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3634 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3636 grep -v '^ *+' conftest.er1 >conftest.err
3638 cat conftest.err >&5
3639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3640 (exit $ac_status); } >/dev/null; then
3641 if test -s conftest.err; then
3642 ac_cpp_err=$ac_c_preproc_warn_flag
3649 if test -z "$ac_cpp_err"; then
3650 # Broken: success on invalid input.
3653 echo "$as_me: failed program was:" >&5
3654 cat conftest.$ac_ext >&5
3655 # Passes both tests.
3659 rm -f conftest.err conftest.$ac_ext
3662 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3663 rm -f conftest.err conftest.$ac_ext
3664 if $ac_preproc_ok; then
3676 echo "$as_me:$LINENO: result: $CPP" >&5
3677 echo "${ECHO_T}$CPP" >&6
3679 for ac_c_preproc_warn_flag in '' yes
3681 # Use a header file that comes with gcc, so configuring glibc
3682 # with a fresh cross-compiler works.
3683 # On the NeXT, cc -E runs the code through the compiler's parser,
3684 # not just through cpp. "Syntax error" is here to catch this case.
3685 cat >conftest.$ac_ext <<_ACEOF
3686 #line $LINENO "configure"
3687 #include "confdefs.h"
3691 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3692 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3694 grep -v '^ *+' conftest.er1 >conftest.err
3696 cat conftest.err >&5
3697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3698 (exit $ac_status); } >/dev/null; then
3699 if test -s conftest.err; then
3700 ac_cpp_err=$ac_c_preproc_warn_flag
3707 if test -z "$ac_cpp_err"; then
3710 echo "$as_me: failed program was:" >&5
3711 cat conftest.$ac_ext >&5
3712 # Broken: fails on valid input.
3715 rm -f conftest.err conftest.$ac_ext
3717 # OK, works on sane cases. Now check whether non-existent headers
3718 # can be detected and how.
3719 cat >conftest.$ac_ext <<_ACEOF
3720 #line $LINENO "configure"
3721 #include "confdefs.h"
3722 #include <ac_nonexistent.h>
3724 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3725 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3727 grep -v '^ *+' conftest.er1 >conftest.err
3729 cat conftest.err >&5
3730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3731 (exit $ac_status); } >/dev/null; then
3732 if test -s conftest.err; then
3733 ac_cpp_err=$ac_c_preproc_warn_flag
3740 if test -z "$ac_cpp_err"; then
3741 # Broken: success on invalid input.
3744 echo "$as_me: failed program was:" >&5
3745 cat conftest.$ac_ext >&5
3746 # Passes both tests.
3750 rm -f conftest.err conftest.$ac_ext
3753 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3754 rm -f conftest.err conftest.$ac_ext
3755 if $ac_preproc_ok; then
3758 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
3759 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
3760 { (exit 1); exit 1; }; }
3764 ac_cpp='$CPP $CPPFLAGS'
3765 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3766 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3767 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3770 echo "$as_me:$LINENO: checking for egrep" >&5
3771 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3772 if test "${ac_cv_prog_egrep+set}" = set; then
3773 echo $ECHO_N "(cached) $ECHO_C" >&6
3775 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3776 then ac_cv_prog_egrep='grep -E'
3777 else ac_cv_prog_egrep='egrep'
3780 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3781 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3782 EGREP=$ac_cv_prog_egrep
3785 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3786 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3787 if test "${ac_cv_header_stdc+set}" = set; then
3788 echo $ECHO_N "(cached) $ECHO_C" >&6
3790 cat >conftest.$ac_ext <<_ACEOF
3791 #line $LINENO "configure"
3792 #include "confdefs.h"
3799 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3800 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3802 grep -v '^ *+' conftest.er1 >conftest.err
3804 cat conftest.err >&5
3805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3806 (exit $ac_status); } >/dev/null; then
3807 if test -s conftest.err; then
3808 ac_cpp_err=$ac_c_preproc_warn_flag
3815 if test -z "$ac_cpp_err"; then
3816 ac_cv_header_stdc=yes
3818 echo "$as_me: failed program was:" >&5
3819 cat conftest.$ac_ext >&5
3820 ac_cv_header_stdc=no
3822 rm -f conftest.err conftest.$ac_ext
3824 if test $ac_cv_header_stdc = yes; then
3825 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3826 cat >conftest.$ac_ext <<_ACEOF
3827 #line $LINENO "configure"
3828 #include "confdefs.h"
3832 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3833 $EGREP "memchr" >/dev/null 2>&1; then
3836 ac_cv_header_stdc=no
3842 if test $ac_cv_header_stdc = yes; then
3843 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3844 cat >conftest.$ac_ext <<_ACEOF
3845 #line $LINENO "configure"
3846 #include "confdefs.h"
3850 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3851 $EGREP "free" >/dev/null 2>&1; then
3854 ac_cv_header_stdc=no
3860 if test $ac_cv_header_stdc = yes; then
3861 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3862 if test "$cross_compiling" = yes; then
3865 cat >conftest.$ac_ext <<_ACEOF
3866 #line $LINENO "configure"
3867 #include "confdefs.h"
3869 #if ((' ' & 0x0FF) == 0x020)
3870 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3871 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3873 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3874 || ('j' <= (c) && (c) <= 'r') \
3875 || ('s' <= (c) && (c) <= 'z'))
3876 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3879 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3884 for (i = 0; i < 256; i++)
3885 if (XOR (islower (i), ISLOWER (i))
3886 || toupper (i) != TOUPPER (i))
3891 rm -f conftest$ac_exeext
3892 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3893 (eval $ac_link) 2>&5
3895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3896 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3901 (exit $ac_status); }; }; then
3904 echo "$as_me: program exited with status $ac_status" >&5
3905 echo "$as_me: failed program was:" >&5
3906 cat conftest.$ac_ext >&5
3908 ac_cv_header_stdc=no
3910 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3914 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3915 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3916 if test $ac_cv_header_stdc = yes; then
3918 cat >>confdefs.h <<\_ACEOF
3919 #define STDC_HEADERS 1
3924 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3934 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3935 inttypes.h stdint.h unistd.h
3937 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3938 echo "$as_me:$LINENO: checking for $ac_header" >&5
3939 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3940 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3941 echo $ECHO_N "(cached) $ECHO_C" >&6
3943 cat >conftest.$ac_ext <<_ACEOF
3944 #line $LINENO "configure"
3945 #include "confdefs.h"
3946 $ac_includes_default
3948 #include <$ac_header>
3950 rm -f conftest.$ac_objext
3951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3952 (eval $ac_compile) 2>&5
3954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3955 (exit $ac_status); } &&
3956 { ac_try='test -s conftest.$ac_objext'
3957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3961 (exit $ac_status); }; }; then
3962 eval "$as_ac_Header=yes"
3964 echo "$as_me: failed program was:" >&5
3965 cat conftest.$ac_ext >&5
3966 eval "$as_ac_Header=no"
3968 rm -f conftest.$ac_objext conftest.$ac_ext
3970 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3971 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3972 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3973 cat >>confdefs.h <<_ACEOF
3974 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3983 for ac_header in dlfcn.h
3985 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3986 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3987 echo "$as_me:$LINENO: checking for $ac_header" >&5
3988 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3989 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3990 echo $ECHO_N "(cached) $ECHO_C" >&6
3992 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3993 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3995 # Is the header compilable?
3996 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3997 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3998 cat >conftest.$ac_ext <<_ACEOF
3999 #line $LINENO "configure"
4000 #include "confdefs.h"
4001 $ac_includes_default
4002 #include <$ac_header>
4004 rm -f conftest.$ac_objext
4005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4006 (eval $ac_compile) 2>&5
4008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4009 (exit $ac_status); } &&
4010 { ac_try='test -s conftest.$ac_objext'
4011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4015 (exit $ac_status); }; }; then
4016 ac_header_compiler=yes
4018 echo "$as_me: failed program was:" >&5
4019 cat conftest.$ac_ext >&5
4020 ac_header_compiler=no
4022 rm -f conftest.$ac_objext conftest.$ac_ext
4023 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4024 echo "${ECHO_T}$ac_header_compiler" >&6
4026 # Is the header present?
4027 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4028 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4029 cat >conftest.$ac_ext <<_ACEOF
4030 #line $LINENO "configure"
4031 #include "confdefs.h"
4032 #include <$ac_header>
4034 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4035 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4037 grep -v '^ *+' conftest.er1 >conftest.err
4039 cat conftest.err >&5
4040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4041 (exit $ac_status); } >/dev/null; then
4042 if test -s conftest.err; then
4043 ac_cpp_err=$ac_c_preproc_warn_flag
4050 if test -z "$ac_cpp_err"; then
4051 ac_header_preproc=yes
4053 echo "$as_me: failed program was:" >&5
4054 cat conftest.$ac_ext >&5
4055 ac_header_preproc=no
4057 rm -f conftest.err conftest.$ac_ext
4058 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4059 echo "${ECHO_T}$ac_header_preproc" >&6
4061 # So? What about this header?
4062 case $ac_header_compiler:$ac_header_preproc in
4064 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4065 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4066 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4067 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4069 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4070 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4071 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4072 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4073 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4074 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4076 echo "$as_me:$LINENO: checking for $ac_header" >&5
4077 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4078 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4079 echo $ECHO_N "(cached) $ECHO_C" >&6
4081 eval "$as_ac_Header=$ac_header_preproc"
4083 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4084 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4087 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4088 cat >>confdefs.h <<_ACEOF
4089 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4101 # Only perform the check for file, if the check method requires it
4102 case $deplibs_check_method in
4104 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4105 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4106 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4107 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4108 echo $ECHO_N "(cached) $ECHO_C" >&6
4112 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4115 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4118 ac_save_MAGIC_CMD="$MAGIC_CMD"
4119 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4120 ac_dummy="/usr/bin:$PATH"
4121 for ac_dir in $ac_dummy; do
4122 test -z "$ac_dir" && ac_dir=.
4123 if test -f $ac_dir/${ac_tool_prefix}file; then
4124 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4125 if test -n "$file_magic_test_file"; then
4126 case $deplibs_check_method in
4128 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4129 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4130 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4131 egrep "$file_magic_regex" > /dev/null; then
4136 *** Warning: the command libtool uses to detect shared libraries,
4137 *** $file_magic_cmd, produces output that libtool cannot recognize.
4138 *** The result is that libtool may fail to recognize shared libraries
4139 *** as such. This will affect the creation of libtool libraries that
4140 *** depend on shared libraries, but programs linked with such libtool
4141 *** libraries will work regardless of this problem. Nevertheless, you
4142 *** may want to report the problem to your system manager and/or to
4143 *** bug-libtool@gnu.org
4153 MAGIC_CMD="$ac_save_MAGIC_CMD"
4158 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4159 if test -n "$MAGIC_CMD"; then
4160 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4161 echo "${ECHO_T}$MAGIC_CMD" >&6
4163 echo "$as_me:$LINENO: result: no" >&5
4164 echo "${ECHO_T}no" >&6
4167 if test -z "$lt_cv_path_MAGIC_CMD"; then
4168 if test -n "$ac_tool_prefix"; then
4169 echo "$as_me:$LINENO: checking for file" >&5
4170 echo $ECHO_N "checking for file... $ECHO_C" >&6
4171 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4172 echo $ECHO_N "(cached) $ECHO_C" >&6
4176 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4179 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4182 ac_save_MAGIC_CMD="$MAGIC_CMD"
4183 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4184 ac_dummy="/usr/bin:$PATH"
4185 for ac_dir in $ac_dummy; do
4186 test -z "$ac_dir" && ac_dir=.
4187 if test -f $ac_dir/file; then
4188 lt_cv_path_MAGIC_CMD="$ac_dir/file"
4189 if test -n "$file_magic_test_file"; then
4190 case $deplibs_check_method in
4192 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4193 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4194 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4195 egrep "$file_magic_regex" > /dev/null; then
4200 *** Warning: the command libtool uses to detect shared libraries,
4201 *** $file_magic_cmd, produces output that libtool cannot recognize.
4202 *** The result is that libtool may fail to recognize shared libraries
4203 *** as such. This will affect the creation of libtool libraries that
4204 *** depend on shared libraries, but programs linked with such libtool
4205 *** libraries will work regardless of this problem. Nevertheless, you
4206 *** may want to report the problem to your system manager and/or to
4207 *** bug-libtool@gnu.org
4217 MAGIC_CMD="$ac_save_MAGIC_CMD"
4222 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4223 if test -n "$MAGIC_CMD"; then
4224 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4225 echo "${ECHO_T}$MAGIC_CMD" >&6
4227 echo "$as_me:$LINENO: result: no" >&5
4228 echo "${ECHO_T}no" >&6
4240 if test -n "$ac_tool_prefix"; then
4241 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4242 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4243 echo "$as_me:$LINENO: checking for $ac_word" >&5
4244 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4245 if test "${ac_cv_prog_RANLIB+set}" = set; then
4246 echo $ECHO_N "(cached) $ECHO_C" >&6
4248 if test -n "$RANLIB"; then
4249 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4255 test -z "$as_dir" && as_dir=.
4256 for ac_exec_ext in '' $ac_executable_extensions; do
4257 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4258 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4259 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4267 RANLIB=$ac_cv_prog_RANLIB
4268 if test -n "$RANLIB"; then
4269 echo "$as_me:$LINENO: result: $RANLIB" >&5
4270 echo "${ECHO_T}$RANLIB" >&6
4272 echo "$as_me:$LINENO: result: no" >&5
4273 echo "${ECHO_T}no" >&6
4277 if test -z "$ac_cv_prog_RANLIB"; then
4278 ac_ct_RANLIB=$RANLIB
4279 # Extract the first word of "ranlib", so it can be a program name with args.
4280 set dummy ranlib; ac_word=$2
4281 echo "$as_me:$LINENO: checking for $ac_word" >&5
4282 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4283 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4284 echo $ECHO_N "(cached) $ECHO_C" >&6
4286 if test -n "$ac_ct_RANLIB"; then
4287 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4293 test -z "$as_dir" && as_dir=.
4294 for ac_exec_ext in '' $ac_executable_extensions; do
4295 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4296 ac_cv_prog_ac_ct_RANLIB="ranlib"
4297 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4303 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4306 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4307 if test -n "$ac_ct_RANLIB"; then
4308 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4309 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4311 echo "$as_me:$LINENO: result: no" >&5
4312 echo "${ECHO_T}no" >&6
4315 RANLIB=$ac_ct_RANLIB
4317 RANLIB="$ac_cv_prog_RANLIB"
4320 if test -n "$ac_tool_prefix"; then
4321 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4322 set dummy ${ac_tool_prefix}strip; ac_word=$2
4323 echo "$as_me:$LINENO: checking for $ac_word" >&5
4324 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4325 if test "${ac_cv_prog_STRIP+set}" = set; then
4326 echo $ECHO_N "(cached) $ECHO_C" >&6
4328 if test -n "$STRIP"; then
4329 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4335 test -z "$as_dir" && as_dir=.
4336 for ac_exec_ext in '' $ac_executable_extensions; do
4337 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4338 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4339 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4347 STRIP=$ac_cv_prog_STRIP
4348 if test -n "$STRIP"; then
4349 echo "$as_me:$LINENO: result: $STRIP" >&5
4350 echo "${ECHO_T}$STRIP" >&6
4352 echo "$as_me:$LINENO: result: no" >&5
4353 echo "${ECHO_T}no" >&6
4357 if test -z "$ac_cv_prog_STRIP"; then
4359 # Extract the first word of "strip", so it can be a program name with args.
4360 set dummy strip; ac_word=$2
4361 echo "$as_me:$LINENO: checking for $ac_word" >&5
4362 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4363 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4364 echo $ECHO_N "(cached) $ECHO_C" >&6
4366 if test -n "$ac_ct_STRIP"; then
4367 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4373 test -z "$as_dir" && as_dir=.
4374 for ac_exec_ext in '' $ac_executable_extensions; do
4375 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4376 ac_cv_prog_ac_ct_STRIP="strip"
4377 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4383 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4386 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4387 if test -n "$ac_ct_STRIP"; then
4388 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4389 echo "${ECHO_T}$ac_ct_STRIP" >&6
4391 echo "$as_me:$LINENO: result: no" >&5
4392 echo "${ECHO_T}no" >&6
4397 STRIP="$ac_cv_prog_STRIP"
4404 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4405 if test "${enable_libtool_lock+set}" = set; then
4406 enableval="$enable_libtool_lock"
4409 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4411 # Some flags need to be propagated to the compiler or linker for good
4415 # Find out which ABI we are using.
4416 echo '#line 4416 "configure"' > conftest.$ac_ext
4417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4418 (eval $ac_compile) 2>&5
4420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4421 (exit $ac_status); }; then
4422 case `/usr/bin/file conftest.$ac_objext` in
4438 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4439 SAVE_CFLAGS="$CFLAGS"
4440 CFLAGS="$CFLAGS -belf"
4441 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4442 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4443 if test "${lt_cv_cc_needs_belf+set}" = set; then
4444 echo $ECHO_N "(cached) $ECHO_C" >&6
4449 ac_cpp='$CPP $CPPFLAGS'
4450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4452 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4454 cat >conftest.$ac_ext <<_ACEOF
4455 #line $LINENO "configure"
4456 #include "confdefs.h"
4466 rm -f conftest.$ac_objext conftest$ac_exeext
4467 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4468 (eval $ac_link) 2>&5
4470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4471 (exit $ac_status); } &&
4472 { ac_try='test -s conftest$ac_exeext'
4473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4477 (exit $ac_status); }; }; then
4478 lt_cv_cc_needs_belf=yes
4480 echo "$as_me: failed program was:" >&5
4481 cat conftest.$ac_ext >&5
4482 lt_cv_cc_needs_belf=no
4484 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4486 ac_cpp='$CPP $CPPFLAGS'
4487 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4488 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4489 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4492 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4493 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4494 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4495 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4496 CFLAGS="$SAVE_CFLAGS"
4503 # Sed substitution that helps us do robust quoting. It backslashifies
4504 # metacharacters that are still active within double-quoted strings.
4505 Xsed='sed -e s/^X//'
4506 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
4508 # Same as above, but do not quote variable references.
4509 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
4511 # Sed substitution to delay expansion of an escaped shell variable in a
4512 # double_quote_subst'ed string.
4513 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4519 default_ofile=libtool
4520 can_build_shared=yes
4522 # All known linkers require a `.a' archive for static linking (except M$VC,
4523 # which needs '.lib').
4525 ltmain="$ac_aux_dir/ltmain.sh"
4526 ofile="$default_ofile"
4527 with_gnu_ld="$lt_cv_prog_gnu_ld"
4528 need_locks="$enable_libtool_lock"
4531 old_CFLAGS="$CFLAGS"
4533 # Set sane defaults for various variables
4534 test -z "$AR" && AR=ar
4535 test -z "$AR_FLAGS" && AR_FLAGS=cru
4536 test -z "$AS" && AS=as
4537 test -z "$CC" && CC=cc
4538 test -z "$DLLTOOL" && DLLTOOL=dlltool
4539 test -z "$LD" && LD=ld
4540 test -z "$LN_S" && LN_S="ln -s"
4541 test -z "$MAGIC_CMD" && MAGIC_CMD=file
4542 test -z "$NM" && NM=nm
4543 test -z "$OBJDUMP" && OBJDUMP=objdump
4544 test -z "$RANLIB" && RANLIB=:
4545 test -z "$STRIP" && STRIP=:
4546 test -z "$ac_objext" && ac_objext=o
4548 if test x"$host" != x"$build"; then
4549 ac_tool_prefix=${host_alias}-
4554 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
4557 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
4562 # AIX sometimes has problems with the GCC collect2 program. For some
4563 # reason, if we set the COLLECT_NAMES environment variable, the problems
4564 # vanish in a puff of smoke.
4565 if test "X${COLLECT_NAMES+set}" != Xset; then
4567 export COLLECT_NAMES
4572 # Determine commands to create old-style static archives.
4573 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4574 old_postinstall_cmds='chmod 644 $oldlib'
4575 old_postuninstall_cmds=
4577 if test -n "$RANLIB"; then
4580 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
4583 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
4586 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4589 # Allow CC to be a program name with arguments.
4593 echo "$as_me:$LINENO: checking for objdir" >&5
4594 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
4595 rm -f .libs 2>/dev/null
4596 mkdir .libs 2>/dev/null
4597 if test -d .libs; then
4600 # MS-DOS does not allow filenames that begin with a dot.
4603 rmdir .libs 2>/dev/null
4604 echo "$as_me:$LINENO: result: $objdir" >&5
4605 echo "${ECHO_T}$objdir" >&6
4609 # Check whether --with-pic or --without-pic was given.
4610 if test "${with_pic+set}" = set; then
4616 test -z "$pic_mode" && pic_mode=default
4618 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
4619 # in isolation, and that seeing it set (from the cache) indicates that
4620 # the associated values are set (in the cache) correctly too.
4621 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
4622 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
4623 if test "${lt_cv_prog_cc_pic+set}" = set; then
4624 echo $ECHO_N "(cached) $ECHO_C" >&6
4627 lt_cv_prog_cc_shlib=
4629 lt_cv_prog_cc_static=
4630 lt_cv_prog_cc_no_builtin=
4631 lt_cv_prog_cc_can_build_shared=$can_build_shared
4633 if test "$GCC" = yes; then
4634 lt_cv_prog_cc_wl='-Wl,'
4635 lt_cv_prog_cc_static='-static'
4639 # Below there is a dirty hack to force normal static linking with -ldl
4640 # The problem is because libdl dynamically linked with both libc and
4641 # libC (AIX C++ library), which obviously doesn't included in libraries
4642 # list by gcc. This cause undefined symbols with -static flags.
4643 # This hack allows C programs to be linked with "-static -ldl", but
4644 # not sure about C++ programs.
4645 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
4648 # FIXME: we need at least 68020 code to build shared libraries, but
4649 # adding the `-m68020' flag to GCC prevents building anything better,
4651 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
4653 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4654 # PIC is the default for these OSes.
4656 darwin* | rhapsody*)
4657 # PIC is the default on this platform
4658 # Common symbols not allowed in MH_DYLIB files
4659 lt_cv_prog_cc_pic='-fno-common'
4661 cygwin* | mingw* | pw32* | os2*)
4662 # This hack is so that the source file can tell whether it is being
4663 # built for inclusion in a dll (and should export symbols for example).
4664 lt_cv_prog_cc_pic='-DDLL_EXPORT'
4667 if test -d /usr/nec; then
4668 lt_cv_prog_cc_pic=-Kconform_pic
4672 lt_cv_prog_cc_pic='-fPIC'
4676 # PORTME Check for PIC flags for the system compiler.
4678 aix3* | aix4* | aix5*)
4679 lt_cv_prog_cc_wl='-Wl,'
4680 # All AIX code is PIC.
4681 if test "$host_cpu" = ia64; then
4682 # AIX 5 now supports IA64 processor
4683 lt_cv_prog_cc_static='-Bstatic'
4685 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
4689 hpux9* | hpux10* | hpux11*)
4690 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
4691 lt_cv_prog_cc_wl='-Wl,'
4692 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
4693 lt_cv_prog_cc_pic='+Z'
4696 irix5* | irix6* | nonstopux*)
4697 lt_cv_prog_cc_wl='-Wl,'
4698 lt_cv_prog_cc_static='-non_shared'
4699 # PIC (with -KPIC) is the default.
4702 cygwin* | mingw* | pw32* | os2*)
4703 # This hack is so that the source file can tell whether it is being
4704 # built for inclusion in a dll (and should export symbols for example).
4705 lt_cv_prog_cc_pic='-DDLL_EXPORT'
4709 lt_cv_prog_cc_pic='-KPIC'
4710 lt_cv_prog_cc_static='-Bstatic'
4713 osf3* | osf4* | osf5*)
4714 # All OSF/1 code is PIC.
4715 lt_cv_prog_cc_wl='-Wl,'
4716 lt_cv_prog_cc_static='-non_shared'
4720 lt_cv_prog_cc_pic='-Kpic'
4721 lt_cv_prog_cc_static='-dn'
4722 lt_cv_prog_cc_shlib='-belf'
4726 lt_cv_prog_cc_pic='-KPIC'
4727 lt_cv_prog_cc_static='-Bstatic'
4728 lt_cv_prog_cc_wl='-Wl,'
4732 lt_cv_prog_cc_pic='-PIC'
4733 lt_cv_prog_cc_static='-Bstatic'
4734 lt_cv_prog_cc_wl='-Qoption ld '
4737 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4738 lt_cv_prog_cc_pic='-KPIC'
4739 lt_cv_prog_cc_static='-Bstatic'
4740 lt_cv_prog_cc_wl='-Wl,'
4744 lt_cv_prog_cc_pic='-pic'
4745 lt_cv_prog_cc_static='-Bstatic'
4749 if test -d /usr/nec ;then
4750 lt_cv_prog_cc_pic='-Kconform_pic'
4751 lt_cv_prog_cc_static='-Bstatic'
4756 lt_cv_prog_cc_can_build_shared=no
4763 if test -z "$lt_cv_prog_cc_pic"; then
4764 echo "$as_me:$LINENO: result: none" >&5
4765 echo "${ECHO_T}none" >&6
4767 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
4768 echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
4770 # Check to make sure the pic_flag actually works.
4771 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
4772 echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
4773 if test "${lt_cv_prog_cc_pic_works+set}" = set; then
4774 echo $ECHO_N "(cached) $ECHO_C" >&6
4776 save_CFLAGS="$CFLAGS"
4777 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
4778 cat >conftest.$ac_ext <<_ACEOF
4779 #line $LINENO "configure"
4780 #include "confdefs.h"
4790 rm -f conftest.$ac_objext
4791 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4792 (eval $ac_compile) 2>&5
4794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4795 (exit $ac_status); } &&
4796 { ac_try='test -s conftest.$ac_objext'
4797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4801 (exit $ac_status); }; }; then
4803 hpux9* | hpux10* | hpux11*)
4804 # On HP-UX, both CC and GCC only warn that PIC is supported... then
4805 # they create non-PIC objects. So, if there were any warnings, we
4806 # assume that PIC is not supported.
4807 if test -s conftest.err; then
4808 lt_cv_prog_cc_pic_works=no
4810 lt_cv_prog_cc_pic_works=yes
4814 lt_cv_prog_cc_pic_works=yes
4819 echo "$as_me: failed program was:" >&5
4820 cat conftest.$ac_ext >&5
4821 lt_cv_prog_cc_pic_works=no
4824 rm -f conftest.$ac_objext conftest.$ac_ext
4825 CFLAGS="$save_CFLAGS"
4830 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
4832 lt_cv_prog_cc_can_build_shared=no
4834 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
4837 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
4838 echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
4841 # Check for any special shared library compilation flags.
4842 if test -n "$lt_cv_prog_cc_shlib"; then
4843 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
4844 echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
4845 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
4847 { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
4848 echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
4849 lt_cv_prog_cc_can_build_shared=no
4853 echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
4854 echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
4855 if test "${lt_cv_prog_cc_static_works+set}" = set; then
4856 echo $ECHO_N "(cached) $ECHO_C" >&6
4858 lt_cv_prog_cc_static_works=no
4859 save_LDFLAGS="$LDFLAGS"
4860 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
4861 cat >conftest.$ac_ext <<_ACEOF
4862 #line $LINENO "configure"
4863 #include "confdefs.h"
4873 rm -f conftest.$ac_objext conftest$ac_exeext
4874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4875 (eval $ac_link) 2>&5
4877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4878 (exit $ac_status); } &&
4879 { ac_try='test -s conftest$ac_exeext'
4880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4884 (exit $ac_status); }; }; then
4885 lt_cv_prog_cc_static_works=yes
4887 echo "$as_me: failed program was:" >&5
4888 cat conftest.$ac_ext >&5
4890 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4891 LDFLAGS="$save_LDFLAGS"
4896 # Belt *and* braces to stop my trousers falling down:
4897 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
4898 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
4899 echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
4901 pic_flag="$lt_cv_prog_cc_pic"
4902 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
4903 wl="$lt_cv_prog_cc_wl"
4904 link_static_flag="$lt_cv_prog_cc_static"
4905 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
4906 can_build_shared="$lt_cv_prog_cc_can_build_shared"
4909 # Check to see if options -o and -c are simultaneously supported by compiler
4910 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
4911 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
4912 if test "${lt_cv_compiler_c_o+set}" = set; then
4913 echo $ECHO_N "(cached) $ECHO_C" >&6
4916 $rm -r conftest 2>/dev/null
4919 echo "int some_variable = 0;" > conftest.$ac_ext
4921 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
4922 # that will create temporary files in the current directory regardless of
4923 # the output directory. Thus, making CWD read-only will cause this test
4924 # to fail, enabling locking or at least warning the user not to do parallel
4927 save_CFLAGS="$CFLAGS"
4928 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
4930 if { (eval echo configure:4930: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
4931 # The compiler can only warn and ignore the option if not recognized
4932 # So say no if there are warnings
4933 if test -s out/conftest.err; then
4934 lt_cv_compiler_c_o=no
4936 lt_cv_compiler_c_o=yes
4939 # Append any errors to the config.log.
4940 cat out/conftest.err 1>&5
4941 lt_cv_compiler_c_o=no
4943 CFLAGS="$save_CFLAGS"
4949 $rm -r conftest 2>/dev/null
4953 compiler_c_o=$lt_cv_compiler_c_o
4954 echo "$as_me:$LINENO: result: $compiler_c_o" >&5
4955 echo "${ECHO_T}$compiler_c_o" >&6
4957 if test x"$compiler_c_o" = x"yes"; then
4958 # Check to see if we can write to a .lo
4959 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
4960 echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
4961 if test "${lt_cv_compiler_o_lo+set}" = set; then
4962 echo $ECHO_N "(cached) $ECHO_C" >&6
4965 lt_cv_compiler_o_lo=no
4966 save_CFLAGS="$CFLAGS"
4967 CFLAGS="$CFLAGS -c -o conftest.lo"
4968 save_objext="$ac_objext"
4970 cat >conftest.$ac_ext <<_ACEOF
4971 #line $LINENO "configure"
4972 #include "confdefs.h"
4977 int some_variable = 0;
4982 rm -f conftest.$ac_objext
4983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4984 (eval $ac_compile) 2>&5
4986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4987 (exit $ac_status); } &&
4988 { ac_try='test -s conftest.$ac_objext'
4989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4993 (exit $ac_status); }; }; then
4994 # The compiler can only warn and ignore the option if not recognized
4995 # So say no if there are warnings
4996 if test -s conftest.err; then
4997 lt_cv_compiler_o_lo=no
4999 lt_cv_compiler_o_lo=yes
5003 echo "$as_me: failed program was:" >&5
5004 cat conftest.$ac_ext >&5
5006 rm -f conftest.$ac_objext conftest.$ac_ext
5007 ac_objext="$save_objext"
5008 CFLAGS="$save_CFLAGS"
5012 compiler_o_lo=$lt_cv_compiler_o_lo
5013 echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
5014 echo "${ECHO_T}$compiler_o_lo" >&6
5019 # Check to see if we can do hard links to lock some files if needed
5020 hard_links="nottested"
5021 if test "$compiler_c_o" = no && test "$need_locks" != no; then
5022 # do not overwrite the value of need_locks provided by the user
5023 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
5024 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
5027 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5029 ln conftest.a conftest.b 2>&5 || hard_links=no
5030 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5031 echo "$as_me:$LINENO: result: $hard_links" >&5
5032 echo "${ECHO_T}$hard_links" >&6
5033 if test "$hard_links" = no; then
5034 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
5035 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
5042 if test "$GCC" = yes; then
5043 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5044 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5045 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5046 echo "int some_variable = 0;" > conftest.$ac_ext
5047 save_CFLAGS="$CFLAGS"
5048 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5049 compiler_rtti_exceptions=no
5050 cat >conftest.$ac_ext <<_ACEOF
5051 #line $LINENO "configure"
5052 #include "confdefs.h"
5057 int some_variable = 0;
5062 rm -f conftest.$ac_objext
5063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5064 (eval $ac_compile) 2>&5
5066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5067 (exit $ac_status); } &&
5068 { ac_try='test -s conftest.$ac_objext'
5069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5073 (exit $ac_status); }; }; then
5074 # The compiler can only warn and ignore the option if not recognized
5075 # So say no if there are warnings
5076 if test -s conftest.err; then
5077 compiler_rtti_exceptions=no
5079 compiler_rtti_exceptions=yes
5083 echo "$as_me: failed program was:" >&5
5084 cat conftest.$ac_ext >&5
5086 rm -f conftest.$ac_objext conftest.$ac_ext
5087 CFLAGS="$save_CFLAGS"
5088 echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
5089 echo "${ECHO_T}$compiler_rtti_exceptions" >&6
5091 if test "$compiler_rtti_exceptions" = "yes"; then
5092 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
5094 no_builtin_flag=' -fno-builtin'
5098 # See if the linker supports building shared libraries.
5099 echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
5100 echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
5102 allow_undefined_flag=
5104 need_lib_prefix=unknown
5105 need_version=unknown
5106 # when you set need_version to no, make sure it does not cause -set_version
5107 # flags to be left without arguments
5109 archive_expsym_cmds=
5110 old_archive_from_new_cmds=
5111 old_archive_from_expsyms_cmds=
5112 export_dynamic_flag_spec=
5113 whole_archive_flag_spec=
5114 thread_safe_flag_spec=
5115 hardcode_into_libs=no
5116 hardcode_libdir_flag_spec=
5117 hardcode_libdir_separator=
5120 hardcode_shlibpath_var=unsupported
5122 link_all_deplibs=unknown
5123 always_export_symbols=no
5124 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
5125 # include_expsyms should be a list of space-separated symbols to be *always*
5126 # included in the symbol list
5128 # exclude_expsyms can be an egrep regular expression of symbols to exclude
5129 # it will be wrapped by ` (' and `)$', so one must not match beginning or
5130 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5131 # as well as any symbol that contains `d'.
5132 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5133 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5134 # platforms (ab)use it in PIC code, but their linkers get confused if
5135 # the symbol is explicitly referenced. Since portable code cannot
5136 # rely on this symbol name, it's probably fine to never include it in
5137 # preloaded symbol tables.
5138 extract_expsyms_cmds=
5141 cygwin* | mingw* | pw32*)
5142 # FIXME: the MSVC++ port hasn't been tested in a loooong time
5143 # When not using gcc, we currently assume that we are using
5144 # Microsoft Visual C++.
5145 if test "$GCC" != yes; then
5155 if test "$with_gnu_ld" = yes; then
5156 # If archive_cmds runs LD, not CC, wlarc should be empty
5159 # See if GNU ld supports shared libraries.
5161 aix3* | aix4* | aix5*)
5162 # On AIX, the GNU linker is very broken
5163 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
5167 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
5168 *** to be unable to reliably create shared libraries on AIX.
5169 *** Therefore, libtool is disabling shared libraries support. If you
5170 *** really care for shared libraries, you may want to modify your PATH
5171 *** so that a non-GNU linker is found, and then restart.
5177 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
5178 hardcode_libdir_flag_spec='-L$libdir'
5179 hardcode_minus_L=yes
5181 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5182 # that the semantics of dynamic libraries on AmigaOS, at least up
5183 # to version 4, is to share data among multiple programs linked
5184 # with the same dynamic library. Since this doesn't match the
5185 # behavior of shared libraries on other platforms, we can use
5191 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5192 allow_undefined_flag=unsupported
5193 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5194 # support --undefined. This deserves some investigation. FIXME
5195 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5201 cygwin* | mingw* | pw32*)
5202 # hardcode_libdir_flag_spec is actually meaningless, as there is
5203 # no search path for DLLs.
5204 hardcode_libdir_flag_spec='-L$libdir'
5205 allow_undefined_flag=unsupported
5206 always_export_symbols=yes
5208 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
5209 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
5210 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
5211 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
5212 else $CC -o impgen impgen.c ; fi)~
5213 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
5215 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
5217 # cygwin and mingw dlls have different entry points and sets of symbols
5219 # FIXME: what about values for MSVC?
5220 dll_entry=__cygwin_dll_entry@12
5221 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
5225 dll_entry=_DllMainCRTStartup@12
5226 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
5230 # mingw and cygwin differ, and it's simplest to just exclude the union
5231 # of the two symbol sets.
5232 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
5234 # recent cygwin and mingw systems supply a stub DllMain which the user
5235 # can override, but on older systems we have to supply one (in ltdll.c)
5236 if test "x$lt_cv_need_dllmain" = "xyes"; then
5237 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
5238 ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
5239 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
5245 # Extract the symbol export list from an `--export-all' def file,
5246 # then regenerate the def file from the symbol export list, so that
5247 # the compiled dll only exports the symbol export list.
5248 # Be careful not to strip the DATA tag left be newer dlltools.
5249 export_symbols_cmds="$ltdll_cmds"'
5250 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
5251 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
5253 # If the export-symbols file already is a .def file (1st line
5254 # is EXPORTS), use it as is.
5255 # If DATA tags from a recent dlltool are present, honour them!
5256 archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
5257 cp $export_symbols $output_objdir/$soname-def;
5259 echo EXPORTS > $output_objdir/$soname-def;
5261 cat $export_symbols | while read symbol; do
5264 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
5265 4) echo " \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
5266 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
5268 _lt_hint=`expr 1 + \$_lt_hint`;
5272 $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
5273 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
5274 $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
5275 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
5276 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
5280 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5281 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5284 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5285 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5290 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
5294 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
5295 *** create shared libraries on Solaris systems. Therefore, libtool
5296 *** is disabling shared libraries support. We urge you to upgrade GNU
5297 *** binutils to release 2.9.1 or newer. Another option is to modify
5298 *** your PATH or compiler configuration so that the native linker is
5299 *** used, and then restart.
5302 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5303 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5304 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5311 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5314 hardcode_shlibpath_var=no
5318 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5319 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5320 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5327 if test "$ld_shlibs" = yes; then
5328 runpath_var=LD_RUN_PATH
5329 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
5330 export_dynamic_flag_spec='${wl}--export-dynamic'
5332 cygwin* | mingw* | pw32*)
5333 # dlltool doesn't understand --whole-archive et. al.
5334 whole_archive_flag_spec=
5337 # ancient GNU ld didn't support --whole-archive et. al.
5338 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
5339 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5341 whole_archive_flag_spec=
5347 # PORTME fill in a description of your system's linker (not GNU ld)
5350 allow_undefined_flag=unsupported
5351 always_export_symbols=yes
5352 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
5353 # Note: this linker hardcodes the directories in LIBPATH if there
5354 # are no directories specified by -L.
5355 hardcode_minus_L=yes
5356 if test "$GCC" = yes && test -z "$link_static_flag"; then
5357 # Neither direct hardcoding nor static linking is supported with a
5359 hardcode_direct=unsupported
5364 if test "$host_cpu" = ia64; then
5365 # On IA64, the linker does run time linking by default, so we don't
5366 # have to do anything special.
5367 aix_use_runtimelinking=no
5368 exp_sym_flag='-Bexport'
5371 aix_use_runtimelinking=no
5373 # Test if we are trying to use run time linking or normal
5374 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5375 # need to do runtime linking.
5376 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
5377 for ld_flag in $LDFLAGS; do
5378 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
5379 aix_use_runtimelinking=yes
5385 exp_sym_flag='-bexport'
5386 no_entry_flag='-bnoentry'
5389 # When large executables or shared objects are built, AIX ld can
5390 # have problems creating the table of contents. If linking a library
5391 # or program results in "error TOC overflow" add -mminimal-toc to
5392 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5393 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5397 hardcode_libdir_separator=':'
5398 if test "$GCC" = yes; then
5399 case $host_os in aix4.[012]|aix4.[012].*)
5400 collect2name=`${CC} -print-prog-name=collect2`
5401 if test -f "$collect2name" && \
5402 strings "$collect2name" | grep resolve_lib_name >/dev/null
5404 # We have reworked collect2
5407 # We have old collect2
5408 hardcode_direct=unsupported
5409 # It fails to find uninstalled libraries when the uninstalled
5410 # path is not listed in the libpath. Setting hardcode_minus_L
5411 # to unsupported forces relinking
5412 hardcode_minus_L=yes
5413 hardcode_libdir_flag_spec='-L$libdir'
5414 hardcode_libdir_separator=
5418 shared_flag='-shared'
5421 if test "$host_cpu" = ia64; then
5422 shared_flag='${wl}-G'
5424 if test "$aix_use_runtimelinking" = yes; then
5425 shared_flag='${wl}-G'
5427 shared_flag='${wl}-bM:SRE'
5432 # It seems that -bexpall can do strange things, so it is better to
5433 # generate a list of symbols to export.
5434 always_export_symbols=yes
5435 if test "$aix_use_runtimelinking" = yes; then
5436 # Warning - without using the other runtime loading flags (-brtl),
5437 # -berok will link without error, but may produce a broken library.
5438 allow_undefined_flag='-berok'
5439 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
5440 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
5442 if test "$host_cpu" = ia64; then
5443 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
5444 allow_undefined_flag="-z nodefs"
5445 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
5447 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
5448 # Warning - without using the other run time loading flags,
5449 # -berok will link without error, but may produce a broken library.
5450 allow_undefined_flag='${wl}-berok'
5451 # This is a bit strange, but is similar to how AIX traditionally builds
5452 # it's shared libraries.
5453 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname'
5459 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
5460 hardcode_libdir_flag_spec='-L$libdir'
5461 hardcode_minus_L=yes
5462 # see comment about different semantics on the GNU ld section
5466 cygwin* | mingw* | pw32*)
5467 # When not using gcc, we currently assume that we are using
5468 # Microsoft Visual C++.
5469 # hardcode_libdir_flag_spec is actually meaningless, as there is
5470 # no search path for DLLs.
5471 hardcode_libdir_flag_spec=' '
5472 allow_undefined_flag=unsupported
5473 # Tell ltmain to make .lib files, not .a files.
5475 # FIXME: Setting linknames here is a bad hack.
5476 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5477 # The linker will automatically build a .lib file if we build a DLL.
5478 old_archive_from_new_cmds='true'
5479 # FIXME: Should let the user specify the lib program.
5480 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
5481 fix_srcfile_path='`cygpath -w "$srcfile"`'
5484 darwin* | rhapsody*)
5486 rhapsody* | darwin1.[012])
5487 allow_undefined_flag='-undefined suppress'
5490 allow_undefined_flag='-flat_namespace -undefined suppress'
5493 # FIXME: Relying on posixy $() will cause problems for
5494 # cross-compilation, but unfortunately the echo tests do not
5495 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
5496 # `"' quotes if we put them in here... so don't!
5497 archive_cmds='$nonopt $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
5498 # We need to add '_' to the symbols in $export_symbols first
5499 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
5501 hardcode_shlibpath_var=no
5502 whole_archive_flag_spec='-all_load $convenience'
5509 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5510 # support. Future versions do this automatically, but an explicit c++rt0.o
5511 # does not break anything, and helps significantly (at the cost of a little
5514 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5515 hardcode_libdir_flag_spec='-R$libdir'
5517 hardcode_shlibpath_var=no
5520 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5522 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5524 hardcode_minus_L=yes
5525 hardcode_shlibpath_var=no
5528 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5530 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5531 hardcode_libdir_flag_spec='-R$libdir'
5533 hardcode_shlibpath_var=no
5536 hpux9* | hpux10* | hpux11*)
5538 hpux9*) archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;;
5539 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
5541 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
5542 hardcode_libdir_separator=:
5544 hardcode_minus_L=yes # Not in the search PATH, but as the default
5545 # location of the library.
5546 export_dynamic_flag_spec='${wl}-E'
5549 irix5* | irix6* | nonstopux*)
5550 if test "$GCC" = yes; then
5551 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5553 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
5555 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5556 hardcode_libdir_separator=:
5557 link_all_deplibs=yes
5561 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5562 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
5564 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
5566 hardcode_libdir_flag_spec='-R$libdir'
5568 hardcode_shlibpath_var=no
5572 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5574 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5575 hardcode_libdir_separator=:
5576 hardcode_shlibpath_var=no
5581 hardcode_shlibpath_var=no
5582 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5583 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
5584 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5585 export_dynamic_flag_spec='${wl}-E'
5588 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
5589 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5590 hardcode_libdir_flag_spec='-R$libdir'
5593 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
5594 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5601 hardcode_libdir_flag_spec='-L$libdir'
5602 hardcode_minus_L=yes
5603 allow_undefined_flag=unsupported
5604 archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
5605 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5609 if test "$GCC" = yes; then
5610 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5611 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5613 allow_undefined_flag=' -expect_unresolved \*'
5614 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
5616 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5617 hardcode_libdir_separator=:
5620 osf4* | osf5*) # as osf3* with the addition of -msym flag
5621 if test "$GCC" = yes; then
5622 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5623 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5624 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5626 allow_undefined_flag=' -expect_unresolved \*'
5627 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
5628 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
5629 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
5631 #Both c and cxx compiler support -rpath directly
5632 hardcode_libdir_flag_spec='-rpath $libdir'
5634 hardcode_libdir_separator=:
5638 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5639 hardcode_shlibpath_var=no
5640 runpath_var=LD_RUN_PATH
5641 hardcode_runpath_var=yes
5642 export_dynamic_flag_spec='${wl}-Bexport'
5646 # gcc --version < 3.0 without binutils cannot create self contained
5647 # shared libraries reliably, requiring libgcc.a to resolve some of
5648 # the object symbols generated in some cases. Libraries that use
5649 # assert need libgcc.a to resolve __eprintf, for example. Linking
5650 # a copy of libgcc.a into every shared library to guarantee resolving
5651 # such symbols causes other problems: According to Tim Van Holder
5652 # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
5653 # (to the application) exception stack for one thing.
5654 no_undefined_flag=' -z defs'
5655 if test "$GCC" = yes; then
5656 case `$CC --version 2>/dev/null` in
5660 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
5661 *** create self contained shared libraries on Solaris systems, without
5662 *** introducing a dependency on libgcc.a. Therefore, libtool is disabling
5663 *** -no-undefined support, which will at least allow you to build shared
5664 *** libraries. However, you may find that when you link such libraries
5665 *** into an application without using GCC, you have to manually add
5666 *** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
5667 *** upgrade to a newer version of GCC. Another option is to rebuild your
5668 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
5675 # $CC -shared without GNU ld will not create a library from C++
5676 # object files and a static libstdc++, better avoid it by now
5677 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5678 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5679 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5680 hardcode_libdir_flag_spec='-R$libdir'
5681 hardcode_shlibpath_var=no
5683 solaris2.[0-5] | solaris2.[0-5].*) ;;
5684 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
5685 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
5687 link_all_deplibs=yes
5691 if test "x$host_vendor" = xsequent; then
5692 # Use $CC to link under sequent, because it throws in some extra .o
5693 # files that make .init and .fini sections work.
5694 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5696 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5698 hardcode_libdir_flag_spec='-L$libdir'
5700 hardcode_minus_L=yes
5701 hardcode_shlibpath_var=no
5705 case $host_vendor in
5707 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5708 hardcode_direct=yes # is this really true???
5711 ## LD is ld it makes a PLAMLIB
5712 ## CC just makes a GrossModule.
5713 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5714 reload_cmds='$CC -r -o $output$reload_objs'
5718 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5719 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
5722 runpath_var='LD_RUN_PATH'
5723 hardcode_shlibpath_var=no
5727 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5728 hardcode_shlibpath_var=no
5729 export_dynamic_flag_spec='-Bexport'
5733 no_undefined_flag=' -z text'
5734 # $CC -shared without GNU ld will not create a library from C++
5735 # object files and a static libstdc++, better avoid it by now
5736 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5737 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5738 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5739 hardcode_libdir_flag_spec=
5740 hardcode_shlibpath_var=no
5741 runpath_var='LD_RUN_PATH'
5745 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5746 hardcode_libdir_flag_spec='-L$libdir'
5747 hardcode_shlibpath_var=no
5751 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5752 hardcode_libdir_flag_spec='-L$libdir'
5753 hardcode_shlibpath_var=no
5757 if test -d /usr/nec; then
5758 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5759 hardcode_shlibpath_var=no
5760 runpath_var=LD_RUN_PATH
5761 hardcode_runpath_var=yes
5767 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5770 hardcode_shlibpath_var=no
5771 hardcode_runpath_var=yes
5772 runpath_var=LD_RUN_PATH
5775 sysv5uw7* | unixware7*)
5776 no_undefined_flag='${wl}-z ${wl}text'
5777 if test "$GCC" = yes; then
5778 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5780 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5782 runpath_var='LD_RUN_PATH'
5783 hardcode_shlibpath_var=no
5791 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
5792 echo "${ECHO_T}$ld_shlibs" >&6
5793 test "$ld_shlibs" = no && can_build_shared=no
5795 # Check hardcoding attributes.
5796 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
5797 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
5799 if test -n "$hardcode_libdir_flag_spec" || \
5800 test -n "$runpath_var"; then
5802 # We can hardcode non-existant directories.
5803 if test "$hardcode_direct" != no &&
5804 # If the only mechanism to avoid hardcoding is shlibpath_var, we
5805 # have to relink, otherwise we might link with an installed library
5806 # when we should be linking with a yet-to-be-installed one
5807 ## test "$hardcode_shlibpath_var" != no &&
5808 test "$hardcode_minus_L" != no; then
5809 # Linking always hardcodes the temporary library directory.
5810 hardcode_action=relink
5812 # We can link without hardcoding, and we can hardcode nonexisting dirs.
5813 hardcode_action=immediate
5816 # We cannot hardcode anything, or else we can only hardcode existing
5818 hardcode_action=unsupported
5820 echo "$as_me:$LINENO: result: $hardcode_action" >&5
5821 echo "${ECHO_T}$hardcode_action" >&6
5825 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
5826 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
5827 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
5828 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
5829 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
5830 echo "$as_me:$LINENO: result: yes" >&5
5831 echo "${ECHO_T}yes" >&6
5833 echo "$as_me:$LINENO: result: no" >&5
5834 echo "${ECHO_T}no" >&6
5837 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5838 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5840 # PORTME Fill in your ld.so characteristics
5841 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
5842 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
5844 libname_spec='lib$name'
5851 shlibpath_overrides_runpath=unknown
5853 dynamic_linker="$host_os ld.so"
5854 sys_lib_dlsearch_path_spec="/lib /usr/lib"
5855 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
5860 library_names_spec='${libname}${release}.so$versuffix $libname.a'
5861 shlibpath_var=LIBPATH
5863 # AIX has no versioning support, so we append a major version to the name.
5864 soname_spec='${libname}${release}.so$major'
5869 if test "$host_cpu" = ia64; then
5870 # AIX 5 supports IA64
5871 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
5872 shlibpath_var=LD_LIBRARY_PATH
5874 # With GCC up to 2.95.x, collect2 would create an import file
5875 # for dependence libraries. The import file would start with
5876 # the line `#! .'. This would cause the generated library to
5877 # depend on `.', always an invalid library. This was fixed in
5878 # development snapshots of GCC prior to 3.0.
5880 aix4 | aix4.[01] | aix4.[01].*)
5881 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
5883 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
5890 # AIX (on Power*) has no versioning support, so currently we can
5891 # not hardcode correct soname into executable. Probably we can
5892 # add versioning support to collect2, so additional links can
5893 # be useful in future.
5894 if test "$aix_use_runtimelinking" = yes; then
5895 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
5896 # instead of lib<name>.a to let people know that these are not
5897 # typical AIX shared libraries.
5898 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5900 # We preserve .a as extension for shared libraries through AIX4.2
5901 # and later when we are not doing run time linking.
5902 library_names_spec='${libname}${release}.a $libname.a'
5903 soname_spec='${libname}${release}.so$major'
5905 shlibpath_var=LIBPATH
5910 library_names_spec='$libname.ixlibrary $libname.a'
5911 # Create ${libname}_ixlibrary.a entries in /sys/libs.
5912 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
5916 library_names_spec='${libname}.so'
5917 dynamic_linker="$host_os ld.so"
5918 shlibpath_var=LIBRARY_PATH
5924 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5925 soname_spec='${libname}${release}.so$major'
5926 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
5927 shlibpath_var=LD_LIBRARY_PATH
5928 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
5929 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
5930 export_dynamic_flag_spec=-rdynamic
5931 # the default ld.so.conf also contains /usr/contrib/lib and
5932 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
5933 # libtool to hard-code these into programs
5936 cygwin* | mingw* | pw32*)
5937 version_type=windows
5940 case $GCC,$host_os in
5942 library_names_spec='$libname.dll.a'
5943 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
5944 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
5945 dldir=$destdir/`dirname \$dlpath`~
5946 test -d \$dldir || mkdir -p \$dldir~
5947 $install_prog .libs/$dlname \$dldir/$dlname'
5948 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
5949 dlpath=$dir/\$dldll~
5953 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
5954 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
5957 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
5960 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
5963 dynamic_linker='Win32 ld.exe'
5964 # FIXME: first we should search . and the directory the executable is in
5968 darwin* | rhapsody*)
5969 dynamic_linker="$host_os dyld"
5973 # FIXME: Relying on posixy $() will cause problems for
5974 # cross-compilation, but unfortunately the echo tests do not
5975 # yet detect zsh echo's removal of \ escapes.
5976 library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
5977 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
5978 shlibpath_overrides_runpath=yes
5979 shlibpath_var=DYLD_LIBRARY_PATH
5987 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
5988 version_type=freebsd-$objformat
5989 case $version_type in
5991 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
5996 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
6000 shlibpath_var=LD_LIBRARY_PATH
6003 shlibpath_overrides_runpath=yes
6006 shlibpath_overrides_runpath=no
6007 hardcode_into_libs=yes
6016 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
6017 soname_spec='${libname}${release}.so$major'
6018 shlibpath_var=LD_LIBRARY_PATH
6019 hardcode_into_libs=yes
6022 hpux9* | hpux10* | hpux11*)
6023 # Give a soname corresponding to the major version so that dld.sl refuses to
6024 # link against other versions.
6025 dynamic_linker="$host_os dld.sl"
6029 shlibpath_var=SHLIB_PATH
6030 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6031 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
6032 soname_spec='${libname}${release}.sl$major'
6033 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6034 postinstall_cmds='chmod 555 $lib'
6037 irix5* | irix6* | nonstopux*)
6039 nonstopux*) version_type=nonstopux ;;
6040 *) version_type=irix ;;
6044 soname_spec='${libname}${release}.so$major'
6045 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
6047 irix5* | nonstopux*)
6051 case $LD in # libtool.m4 will add one of these switches to LD
6052 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
6053 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
6054 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
6055 *) libsuff= shlibsuff= libmagic=never-match;;
6059 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6060 shlibpath_overrides_runpath=no
6061 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6062 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6065 # No shared lib support for Linux oldld, aout, or coff.
6066 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
6070 # This must be Linux ELF.
6075 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6076 soname_spec='${libname}${release}.so$major'
6077 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6078 shlibpath_var=LD_LIBRARY_PATH
6079 shlibpath_overrides_runpath=no
6080 # This implies no fast_install, which is unacceptable.
6081 # Some rework will be needed to allow for fast_install
6082 # before this can be enabled.
6083 hardcode_into_libs=yes
6085 # We used to test for /lib/ld.so.1 and disable shared libraries on
6086 # powerpc, because MkLinux only supported shared libraries with the
6087 # GNU dynamic linker. Since this was broken with cross compilers,
6088 # most powerpc-linux boxes support dynamic linking these days and
6089 # people can always --disable-shared, the test was removed, and we
6090 # assume the GNU/Linux dynamic linker is in use.
6091 dynamic_linker='GNU/Linux ld.so'
6098 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6099 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6100 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6101 dynamic_linker='NetBSD (a.out) ld.so'
6103 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
6104 soname_spec='${libname}${release}.so$major'
6105 dynamic_linker='NetBSD ld.elf_so'
6107 shlibpath_var=LD_LIBRARY_PATH
6108 shlibpath_overrides_runpath=yes
6109 hardcode_into_libs=yes
6114 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6115 shlibpath_var=LD_LIBRARY_PATH
6116 shlibpath_overrides_runpath=yes
6123 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6125 openbsd2.[89] | openbsd2.[89].*)
6126 shlibpath_overrides_runpath=no
6129 shlibpath_overrides_runpath=yes
6133 shlibpath_overrides_runpath=yes
6135 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6136 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6137 shlibpath_var=LD_LIBRARY_PATH
6141 libname_spec='$name'
6143 library_names_spec='$libname.dll $libname.a'
6144 dynamic_linker='OS/2 ld.exe'
6145 shlibpath_var=LIBPATH
6148 osf3* | osf4* | osf5*)
6151 soname_spec='${libname}${release}.so'
6152 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6153 shlibpath_var=LD_LIBRARY_PATH
6154 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6155 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6160 soname_spec='${libname}${release}.so$major'
6161 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6162 shlibpath_var=LD_LIBRARY_PATH
6169 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6170 soname_spec='${libname}${release}.so$major'
6171 shlibpath_var=LD_LIBRARY_PATH
6172 shlibpath_overrides_runpath=yes
6173 hardcode_into_libs=yes
6174 # ldd complains unless libraries are executable
6175 postinstall_cmds='chmod +x $lib'
6180 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6181 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6182 shlibpath_var=LD_LIBRARY_PATH
6183 shlibpath_overrides_runpath=yes
6184 if test "$with_gnu_ld" = yes; then
6190 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6192 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6193 soname_spec='${libname}${release}.so$major'
6194 shlibpath_var=LD_LIBRARY_PATH
6195 case $host_vendor in
6197 shlibpath_overrides_runpath=no
6199 export_dynamic_flag_spec='${wl}-Blargedynsym'
6200 runpath_var=LD_RUN_PATH
6208 shlibpath_overrides_runpath=no
6209 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6216 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6217 soname_spec='${libname}${release}.so$major'
6218 shlibpath_var=LD_LIBRARY_PATH
6225 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6226 soname_spec='${libname}${release}.so$major'
6227 shlibpath_var=LD_LIBRARY_PATH
6231 if test -d /usr/nec ;then
6233 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
6234 soname_spec='$libname.so.$major'
6235 shlibpath_var=LD_LIBRARY_PATH
6243 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
6244 echo "${ECHO_T}$dynamic_linker" >&6
6245 test "$dynamic_linker" = no && can_build_shared=no
6247 # Report the final consequences.
6248 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
6249 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
6250 echo "$as_me:$LINENO: result: $can_build_shared" >&5
6251 echo "${ECHO_T}$can_build_shared" >&6
6253 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
6254 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
6255 test "$can_build_shared" = "no" && enable_shared=no
6257 # On AIX, shared libraries and static libraries use the same namespace, and
6258 # are all built from PIC.
6261 test "$enable_shared" = yes && enable_static=no
6262 if test -n "$RANLIB"; then
6263 archive_cmds="$archive_cmds~\$RANLIB \$lib"
6264 postinstall_cmds='$RANLIB $lib'
6269 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6270 test "$enable_shared" = yes && enable_static=no
6274 echo "$as_me:$LINENO: result: $enable_shared" >&5
6275 echo "${ECHO_T}$enable_shared" >&6
6277 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
6278 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
6279 # Make sure either enable_shared or enable_static is yes.
6280 test "$enable_shared" = yes || enable_static=yes
6281 echo "$as_me:$LINENO: result: $enable_static" >&5
6282 echo "${ECHO_T}$enable_static" >&6
6284 if test "$hardcode_action" = relink; then
6285 # Fast installation is not supported
6286 enable_fast_install=no
6287 elif test "$shlibpath_overrides_runpath" = yes ||
6288 test "$enable_shared" = no; then
6289 # Fast installation is not necessary
6290 enable_fast_install=needless
6293 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6294 if test "$GCC" = yes; then
6295 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6298 if test "x$enable_dlopen" != xyes; then
6299 enable_dlopen=unknown
6300 enable_dlopen_self=unknown
6301 enable_dlopen_self_static=unknown
6308 lt_cv_dlopen="load_add_on"
6310 lt_cv_dlopen_self=yes
6313 cygwin* | mingw* | pw32*)
6314 lt_cv_dlopen="LoadLibrary"
6319 echo "$as_me:$LINENO: checking for shl_load" >&5
6320 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
6321 if test "${ac_cv_func_shl_load+set}" = set; then
6322 echo $ECHO_N "(cached) $ECHO_C" >&6
6324 cat >conftest.$ac_ext <<_ACEOF
6325 #line $LINENO "configure"
6326 #include "confdefs.h"
6327 /* System header to define __stub macros and hopefully few prototypes,
6328 which can conflict with char shl_load (); below. */
6330 /* Override any gcc2 internal prototype to avoid an error. */
6334 /* We use char because int might match the return type of a gcc2
6335 builtin and then its argument prototype would still apply. */
6342 /* The GNU C library defines this for functions which it implements
6343 to always fail with ENOSYS. Some functions are actually named
6344 something starting with __ and the normal name is an alias. */
6345 #if defined (__stub_shl_load) || defined (__stub___shl_load)
6355 rm -f conftest.$ac_objext conftest$ac_exeext
6356 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6357 (eval $ac_link) 2>&5
6359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6360 (exit $ac_status); } &&
6361 { ac_try='test -s conftest$ac_exeext'
6362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6366 (exit $ac_status); }; }; then
6367 ac_cv_func_shl_load=yes
6369 echo "$as_me: failed program was:" >&5
6370 cat conftest.$ac_ext >&5
6371 ac_cv_func_shl_load=no
6373 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6375 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
6376 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
6377 if test $ac_cv_func_shl_load = yes; then
6378 lt_cv_dlopen="shl_load"
6380 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
6381 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
6382 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
6383 echo $ECHO_N "(cached) $ECHO_C" >&6
6385 ac_check_lib_save_LIBS=$LIBS
6387 cat >conftest.$ac_ext <<_ACEOF
6388 #line $LINENO "configure"
6389 #include "confdefs.h"
6391 /* Override any gcc2 internal prototype to avoid an error. */
6395 /* We use char because int might match the return type of a gcc2
6396 builtin and then its argument prototype would still apply. */
6406 rm -f conftest.$ac_objext conftest$ac_exeext
6407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6408 (eval $ac_link) 2>&5
6410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6411 (exit $ac_status); } &&
6412 { ac_try='test -s conftest$ac_exeext'
6413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6417 (exit $ac_status); }; }; then
6418 ac_cv_lib_dld_shl_load=yes
6420 echo "$as_me: failed program was:" >&5
6421 cat conftest.$ac_ext >&5
6422 ac_cv_lib_dld_shl_load=no
6424 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6425 LIBS=$ac_check_lib_save_LIBS
6427 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
6428 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
6429 if test $ac_cv_lib_dld_shl_load = yes; then
6430 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
6432 echo "$as_me:$LINENO: checking for dlopen" >&5
6433 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
6434 if test "${ac_cv_func_dlopen+set}" = set; then
6435 echo $ECHO_N "(cached) $ECHO_C" >&6
6437 cat >conftest.$ac_ext <<_ACEOF
6438 #line $LINENO "configure"
6439 #include "confdefs.h"
6440 /* System header to define __stub macros and hopefully few prototypes,
6441 which can conflict with char dlopen (); below. */
6443 /* Override any gcc2 internal prototype to avoid an error. */
6447 /* We use char because int might match the return type of a gcc2
6448 builtin and then its argument prototype would still apply. */
6455 /* The GNU C library defines this for functions which it implements
6456 to always fail with ENOSYS. Some functions are actually named
6457 something starting with __ and the normal name is an alias. */
6458 #if defined (__stub_dlopen) || defined (__stub___dlopen)
6468 rm -f conftest.$ac_objext conftest$ac_exeext
6469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6470 (eval $ac_link) 2>&5
6472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6473 (exit $ac_status); } &&
6474 { ac_try='test -s conftest$ac_exeext'
6475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6479 (exit $ac_status); }; }; then
6480 ac_cv_func_dlopen=yes
6482 echo "$as_me: failed program was:" >&5
6483 cat conftest.$ac_ext >&5
6484 ac_cv_func_dlopen=no
6486 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6488 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
6489 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
6490 if test $ac_cv_func_dlopen = yes; then
6491 lt_cv_dlopen="dlopen"
6493 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
6494 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
6495 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
6496 echo $ECHO_N "(cached) $ECHO_C" >&6
6498 ac_check_lib_save_LIBS=$LIBS
6500 cat >conftest.$ac_ext <<_ACEOF
6501 #line $LINENO "configure"
6502 #include "confdefs.h"
6504 /* Override any gcc2 internal prototype to avoid an error. */
6508 /* We use char because int might match the return type of a gcc2
6509 builtin and then its argument prototype would still apply. */
6519 rm -f conftest.$ac_objext conftest$ac_exeext
6520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6521 (eval $ac_link) 2>&5
6523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6524 (exit $ac_status); } &&
6525 { ac_try='test -s conftest$ac_exeext'
6526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6530 (exit $ac_status); }; }; then
6531 ac_cv_lib_dl_dlopen=yes
6533 echo "$as_me: failed program was:" >&5
6534 cat conftest.$ac_ext >&5
6535 ac_cv_lib_dl_dlopen=no
6537 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6538 LIBS=$ac_check_lib_save_LIBS
6540 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
6541 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
6542 if test $ac_cv_lib_dl_dlopen = yes; then
6543 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
6545 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
6546 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
6547 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
6548 echo $ECHO_N "(cached) $ECHO_C" >&6
6550 ac_check_lib_save_LIBS=$LIBS
6552 cat >conftest.$ac_ext <<_ACEOF
6553 #line $LINENO "configure"
6554 #include "confdefs.h"
6556 /* Override any gcc2 internal prototype to avoid an error. */
6560 /* We use char because int might match the return type of a gcc2
6561 builtin and then its argument prototype would still apply. */
6571 rm -f conftest.$ac_objext conftest$ac_exeext
6572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6573 (eval $ac_link) 2>&5
6575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6576 (exit $ac_status); } &&
6577 { ac_try='test -s conftest$ac_exeext'
6578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6582 (exit $ac_status); }; }; then
6583 ac_cv_lib_svld_dlopen=yes
6585 echo "$as_me: failed program was:" >&5
6586 cat conftest.$ac_ext >&5
6587 ac_cv_lib_svld_dlopen=no
6589 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6590 LIBS=$ac_check_lib_save_LIBS
6592 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
6593 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
6594 if test $ac_cv_lib_svld_dlopen = yes; then
6595 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
6597 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
6598 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
6599 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
6600 echo $ECHO_N "(cached) $ECHO_C" >&6
6602 ac_check_lib_save_LIBS=$LIBS
6604 cat >conftest.$ac_ext <<_ACEOF
6605 #line $LINENO "configure"
6606 #include "confdefs.h"
6608 /* Override any gcc2 internal prototype to avoid an error. */
6612 /* We use char because int might match the return type of a gcc2
6613 builtin and then its argument prototype would still apply. */
6623 rm -f conftest.$ac_objext conftest$ac_exeext
6624 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6625 (eval $ac_link) 2>&5
6627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6628 (exit $ac_status); } &&
6629 { ac_try='test -s conftest$ac_exeext'
6630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6634 (exit $ac_status); }; }; then
6635 ac_cv_lib_dld_dld_link=yes
6637 echo "$as_me: failed program was:" >&5
6638 cat conftest.$ac_ext >&5
6639 ac_cv_lib_dld_dld_link=no
6641 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6642 LIBS=$ac_check_lib_save_LIBS
6644 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
6645 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
6646 if test $ac_cv_lib_dld_dld_link = yes; then
6647 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
6668 if test "x$lt_cv_dlopen" != xno; then
6674 case $lt_cv_dlopen in
6676 save_CPPFLAGS="$CPPFLAGS"
6677 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
6679 save_LDFLAGS="$LDFLAGS"
6680 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
6683 LIBS="$lt_cv_dlopen_libs $LIBS"
6685 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
6686 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
6687 if test "${lt_cv_dlopen_self+set}" = set; then
6688 echo $ECHO_N "(cached) $ECHO_C" >&6
6690 if test "$cross_compiling" = yes; then :
6691 lt_cv_dlopen_self=cross
6693 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6694 lt_status=$lt_dlunknown
6695 cat > conftest.$ac_ext <<EOF
6696 #line 6696 "configure"
6697 #include "confdefs.h"
6706 # define LT_DLGLOBAL RTLD_GLOBAL
6709 # define LT_DLGLOBAL DL_GLOBAL
6711 # define LT_DLGLOBAL 0
6715 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6716 find out it does not work in some platform. */
6717 #ifndef LT_DLLAZY_OR_NOW
6719 # define LT_DLLAZY_OR_NOW RTLD_LAZY
6722 # define LT_DLLAZY_OR_NOW DL_LAZY
6725 # define LT_DLLAZY_OR_NOW RTLD_NOW
6728 # define LT_DLLAZY_OR_NOW DL_NOW
6730 # define LT_DLLAZY_OR_NOW 0
6738 extern "C" void exit (int);
6741 void fnord() { int i=42;}
6744 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6745 int status = $lt_dlunknown;
6749 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
6750 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6751 /* dlclose (self); */
6757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6758 (eval $ac_link) 2>&5
6760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6761 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
6762 (./conftest; exit; ) 2>/dev/null
6765 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
6766 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
6767 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
6770 # compilation failed
6771 lt_cv_dlopen_self=no
6778 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
6779 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
6781 if test "x$lt_cv_dlopen_self" = xyes; then
6782 LDFLAGS="$LDFLAGS $link_static_flag"
6783 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
6784 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
6785 if test "${lt_cv_dlopen_self_static+set}" = set; then
6786 echo $ECHO_N "(cached) $ECHO_C" >&6
6788 if test "$cross_compiling" = yes; then :
6789 lt_cv_dlopen_self_static=cross
6791 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6792 lt_status=$lt_dlunknown
6793 cat > conftest.$ac_ext <<EOF
6794 #line 6794 "configure"
6795 #include "confdefs.h"
6804 # define LT_DLGLOBAL RTLD_GLOBAL
6807 # define LT_DLGLOBAL DL_GLOBAL
6809 # define LT_DLGLOBAL 0
6813 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6814 find out it does not work in some platform. */
6815 #ifndef LT_DLLAZY_OR_NOW
6817 # define LT_DLLAZY_OR_NOW RTLD_LAZY
6820 # define LT_DLLAZY_OR_NOW DL_LAZY
6823 # define LT_DLLAZY_OR_NOW RTLD_NOW
6826 # define LT_DLLAZY_OR_NOW DL_NOW
6828 # define LT_DLLAZY_OR_NOW 0
6836 extern "C" void exit (int);
6839 void fnord() { int i=42;}
6842 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6843 int status = $lt_dlunknown;
6847 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
6848 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6849 /* dlclose (self); */
6855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6856 (eval $ac_link) 2>&5
6858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6859 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
6860 (./conftest; exit; ) 2>/dev/null
6863 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
6864 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
6865 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
6868 # compilation failed
6869 lt_cv_dlopen_self_static=no
6876 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
6877 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
6880 CPPFLAGS="$save_CPPFLAGS"
6881 LDFLAGS="$save_LDFLAGS"
6886 case $lt_cv_dlopen_self in
6887 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
6888 *) enable_dlopen_self=unknown ;;
6891 case $lt_cv_dlopen_self_static in
6892 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
6893 *) enable_dlopen_self_static=unknown ;;
6898 if test "$enable_shared" = yes && test "$GCC" = yes; then
6899 case $archive_cmds in
6901 # FIXME: we may have to deal with multi-command sequences.
6904 # Test whether the compiler implicitly links with -lc since on some
6905 # systems, -lgcc has to come before -lc. If gcc already passes -lc
6906 # to ld, don't add -lc before -lgcc.
6907 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
6908 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
6909 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
6910 echo $ECHO_N "(cached) $ECHO_C" >&6
6913 echo 'static int dummy;' > conftest.$ac_ext
6915 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6916 (eval $ac_compile) 2>&5
6918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6919 (exit $ac_status); }; then
6922 libobjs=conftest.$ac_objext
6924 wl=$lt_cv_prog_cc_wl
6930 save_allow_undefined_flag=$allow_undefined_flag
6931 allow_undefined_flag=
6932 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
6933 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
6935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6936 (exit $ac_status); }
6938 lt_cv_archive_cmds_need_lc=no
6940 lt_cv_archive_cmds_need_lc=yes
6942 allow_undefined_flag=$save_allow_undefined_flag
6944 cat conftest.err 1>&5
6948 echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
6949 echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
6953 need_lc=${lt_cv_archive_cmds_need_lc-yes}
6955 # The second clause should only fire when bootstrapping the
6956 # libtool distribution, otherwise you forgot to ship ltmain.sh
6957 # with your package, and you will get complaints that there are
6958 # no rules to generate ltmain.sh.
6959 if test -f "$ltmain"; then
6962 # If there is no Makefile yet, we rely on a make rule to execute
6963 # `config.status --recheck' to rerun these tests and create the
6964 # libtool script then.
6965 test -f Makefile && make "$ltmain"
6968 if test -f "$ltmain"; then
6969 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
6972 echo creating $ofile
6974 # Now quote all the things that may contain metacharacters while being
6975 # careful not to overquote the AC_SUBSTed values. We take copies of the
6976 # variables and quote the copies for generation of the libtool script.
6977 for var in echo old_CC old_CFLAGS SED \
6978 AR AR_FLAGS CC LD LN_S NM SHELL \
6979 reload_flag reload_cmds wl \
6980 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
6981 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
6982 library_names_spec soname_spec \
6983 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
6984 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
6985 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
6986 old_striplib striplib file_magic_cmd export_symbols_cmds \
6987 deplibs_check_method allow_undefined_flag no_undefined_flag \
6988 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
6989 global_symbol_to_c_name_address \
6990 hardcode_libdir_flag_spec hardcode_libdir_separator \
6991 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
6992 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
6995 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
6996 old_postinstall_cmds | old_postuninstall_cmds | \
6997 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
6998 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
6999 postinstall_cmds | postuninstall_cmds | \
7000 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
7001 # Double-quote double-evaled strings.
7002 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
7005 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
7010 cat <<__EOF__ > "${ofile}T"
7013 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7014 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7015 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
7017 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
7018 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7020 # This program is free software; you can redistribute it and/or modify
7021 # it under the terms of the GNU General Public License as published by
7022 # the Free Software Foundation; either version 2 of the License, or
7023 # (at your option) any later version.
7025 # This program is distributed in the hope that it will be useful, but
7026 # WITHOUT ANY WARRANTY; without even the implied warranty of
7027 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
7028 # General Public License for more details.
7030 # You should have received a copy of the GNU General Public License
7031 # along with this program; if not, write to the Free Software
7032 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7034 # As a special exception to the GNU General Public License, if you
7035 # distribute this file as part of a program that contains a
7036 # configuration script generated by Autoconf, you may include it under
7037 # the same distribution terms that you use for the rest of that program.
7039 # A sed that does not truncate output.
7042 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
7043 Xsed="${SED} -e s/^X//"
7045 # The HP-UX ksh and POSIX shell print the target directory to stdout
7047 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
7049 # ### BEGIN LIBTOOL CONFIG
7051 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7053 # Shell to use when invoking shell scripts.
7056 # Whether or not to build shared libraries.
7057 build_libtool_libs=$enable_shared
7059 # Whether or not to build static libraries.
7060 build_old_libs=$enable_static
7062 # Whether or not to add -lc for building shared libraries.
7063 build_libtool_need_lc=$need_lc
7065 # Whether or not to optimize for fast installation.
7066 fast_install=$enable_fast_install
7069 host_alias=$host_alias
7072 # An echo program that does not interpret backslashes.
7077 AR_FLAGS=$lt_AR_FLAGS
7079 # The default C compiler.
7082 # Is the compiler the GNU C compiler?
7085 # The linker used to build libraries.
7088 # Whether we need hard or soft links.
7091 # A BSD-compatible nm program.
7094 # A symbol stripping program
7097 # Used to examine libraries when file_magic_cmd begins "file"
7098 MAGIC_CMD=$MAGIC_CMD
7100 # Used on cygwin: DLL creation program.
7103 # Used on cygwin: object dumper.
7106 # Used on cygwin: assembler.
7109 # The name of the directory that contains temporary libtool files.
7112 # How to create reloadable object files.
7113 reload_flag=$lt_reload_flag
7114 reload_cmds=$lt_reload_cmds
7116 # How to pass a linker flag through the compiler.
7119 # Object file suffix (normally "o").
7122 # Old archive suffix (normally "a").
7125 # Executable file suffix (normally "").
7128 # Additional compiler flags for building library objects.
7129 pic_flag=$lt_pic_flag
7132 # Does compiler simultaneously support -c and -o options?
7133 compiler_c_o=$lt_compiler_c_o
7135 # Can we write directly to a .lo ?
7136 compiler_o_lo=$lt_compiler_o_lo
7138 # Must we lock files when doing compilation ?
7139 need_locks=$lt_need_locks
7141 # Do we need the lib prefix for modules?
7142 need_lib_prefix=$need_lib_prefix
7144 # Do we need a version for libraries?
7145 need_version=$need_version
7147 # Whether dlopen is supported.
7148 dlopen_support=$enable_dlopen
7150 # Whether dlopen of programs is supported.
7151 dlopen_self=$enable_dlopen_self
7153 # Whether dlopen of statically linked programs is supported.
7154 dlopen_self_static=$enable_dlopen_self_static
7156 # Compiler flag to prevent dynamic linking.
7157 link_static_flag=$lt_link_static_flag
7159 # Compiler flag to turn off builtin functions.
7160 no_builtin_flag=$lt_no_builtin_flag
7162 # Compiler flag to allow reflexive dlopens.
7163 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
7165 # Compiler flag to generate shared objects directly from archives.
7166 whole_archive_flag_spec=$lt_whole_archive_flag_spec
7168 # Compiler flag to generate thread-safe objects.
7169 thread_safe_flag_spec=$lt_thread_safe_flag_spec
7171 # Library versioning type.
7172 version_type=$version_type
7174 # Format of library name prefix.
7175 libname_spec=$lt_libname_spec
7177 # List of archive names. First name is the real one, the rest are links.
7178 # The last name is the one that the linker finds with -lNAME.
7179 library_names_spec=$lt_library_names_spec
7181 # The coded name of the library, if different from the real name.
7182 soname_spec=$lt_soname_spec
7184 # Commands used to build and install an old-style archive.
7186 old_archive_cmds=$lt_old_archive_cmds
7187 old_postinstall_cmds=$lt_old_postinstall_cmds
7188 old_postuninstall_cmds=$lt_old_postuninstall_cmds
7190 # Create an old-style archive from a shared archive.
7191 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
7193 # Create a temporary old-style archive to link instead of a shared archive.
7194 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
7196 # Commands used to build and install a shared archive.
7197 archive_cmds=$lt_archive_cmds
7198 archive_expsym_cmds=$lt_archive_expsym_cmds
7199 postinstall_cmds=$lt_postinstall_cmds
7200 postuninstall_cmds=$lt_postuninstall_cmds
7202 # Commands to strip libraries.
7203 old_striplib=$lt_old_striplib
7204 striplib=$lt_striplib
7206 # Method to check whether dependent libraries are shared objects.
7207 deplibs_check_method=$lt_deplibs_check_method
7209 # Command to use when deplibs_check_method == file_magic.
7210 file_magic_cmd=$lt_file_magic_cmd
7212 # Flag that allows shared libraries with undefined symbols to be built.
7213 allow_undefined_flag=$lt_allow_undefined_flag
7215 # Flag that forces no undefined symbols.
7216 no_undefined_flag=$lt_no_undefined_flag
7218 # Commands used to finish a libtool library installation in a directory.
7219 finish_cmds=$lt_finish_cmds
7221 # Same as above, but a single script fragment to be evaled but not shown.
7222 finish_eval=$lt_finish_eval
7224 # Take the output of nm and produce a listing of raw symbols and C names.
7225 global_symbol_pipe=$lt_global_symbol_pipe
7227 # Transform the output of nm in a proper C declaration
7228 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
7230 # Transform the output of nm in a C name address pair
7231 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
7233 # This is the shared library runtime path variable.
7234 runpath_var=$runpath_var
7236 # This is the shared library path variable.
7237 shlibpath_var=$shlibpath_var
7239 # Is shlibpath searched before the hard-coded library search path?
7240 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
7242 # How to hardcode a shared library path into an executable.
7243 hardcode_action=$hardcode_action
7245 # Whether we should hardcode library paths into libraries.
7246 hardcode_into_libs=$hardcode_into_libs
7248 # Flag to hardcode \$libdir into a binary during linking.
7249 # This must work even if \$libdir does not exist.
7250 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
7252 # Whether we need a single -rpath flag with a separated argument.
7253 hardcode_libdir_separator=$lt_hardcode_libdir_separator
7255 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
7257 hardcode_direct=$hardcode_direct
7259 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
7261 hardcode_minus_L=$hardcode_minus_L
7263 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
7264 # the resulting binary.
7265 hardcode_shlibpath_var=$hardcode_shlibpath_var
7267 # Variables whose values should be saved in libtool wrapper scripts and
7268 # restored at relink time.
7269 variables_saved_for_relink="$variables_saved_for_relink"
7271 # Whether libtool must link a program against all its dependency libraries.
7272 link_all_deplibs=$link_all_deplibs
7274 # Compile-time system search path for libraries
7275 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
7277 # Run-time system search path for libraries
7278 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
7280 # Fix the shell variable \$srcfile for the compiler.
7281 fix_srcfile_path="$fix_srcfile_path"
7283 # Set to yes if exported symbols are required.
7284 always_export_symbols=$always_export_symbols
7286 # The commands to list exported symbols.
7287 export_symbols_cmds=$lt_export_symbols_cmds
7289 # The commands to extract the exported symbol list from a shared archive.
7290 extract_expsyms_cmds=$lt_extract_expsyms_cmds
7292 # Symbols that should not be listed in the preloaded symbols.
7293 exclude_expsyms=$lt_exclude_expsyms
7295 # Symbols that must always be exported.
7296 include_expsyms=$lt_include_expsyms
7298 # ### END LIBTOOL CONFIG
7304 cat <<\EOF >> "${ofile}T"
7306 # AIX sometimes has problems with the GCC collect2 program. For some
7307 # reason, if we set the COLLECT_NAMES environment variable, the problems
7308 # vanish in a puff of smoke.
7309 if test "X${COLLECT_NAMES+set}" != Xset; then
7311 export COLLECT_NAMES
7318 cygwin* | mingw* | pw32* | os2*)
7319 cat <<'EOF' >> "${ofile}T"
7320 # This is a source program that is used to create dlls on Windows
7321 # Don't remove nor modify the starting and closing comments
7322 # /* ltdll.c starts here */
7323 # #define WIN32_LEAN_AND_MEAN
7324 # #include <windows.h>
7325 # #undef WIN32_LEAN_AND_MEAN
7326 # #include <stdio.h>
7328 # #ifndef __CYGWIN__
7329 # # ifdef __CYGWIN32__
7330 # # define __CYGWIN__ __CYGWIN32__
7334 # #ifdef __cplusplus
7337 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7338 # #ifdef __cplusplus
7343 # #include <cygwin/cygwin_dll.h>
7344 # DECLARE_CYGWIN_DLL( DllMain );
7346 # HINSTANCE __hDllInstance_base;
7349 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7351 # __hDllInstance_base = hInst;
7354 # /* ltdll.c ends here */
7355 # This is a source program that is used to create import libraries
7356 # on Windows for dlls which lack them. Don't remove nor modify the
7357 # starting and closing comments
7358 # /* impgen.c starts here */
7359 # /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
7361 # This file is part of GNU libtool.
7363 # This program is free software; you can redistribute it and/or modify
7364 # it under the terms of the GNU General Public License as published by
7365 # the Free Software Foundation; either version 2 of the License, or
7366 # (at your option) any later version.
7368 # This program is distributed in the hope that it will be useful,
7369 # but WITHOUT ANY WARRANTY; without even the implied warranty of
7370 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7371 # GNU General Public License for more details.
7373 # You should have received a copy of the GNU General Public License
7374 # along with this program; if not, write to the Free Software
7375 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7378 # #include <stdio.h> /* for printf() */
7379 # #include <unistd.h> /* for open(), lseek(), read() */
7380 # #include <fcntl.h> /* for O_RDONLY, O_BINARY */
7381 # #include <string.h> /* for strdup() */
7383 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
7385 # #define O_BINARY 0
7388 # static unsigned int
7389 # pe_get16 (fd, offset)
7393 # unsigned char b[2];
7394 # lseek (fd, offset, SEEK_SET);
7396 # return b[0] + (b[1]<<8);
7399 # static unsigned int
7400 # pe_get32 (fd, offset)
7404 # unsigned char b[4];
7405 # lseek (fd, offset, SEEK_SET);
7407 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7410 # static unsigned int
7414 # unsigned char *b = ptr;
7415 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7424 # unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
7425 # unsigned long export_rva, export_size, nsections, secptr, expptr;
7426 # unsigned long name_rvas, nexp;
7427 # unsigned char *expdata, *erva;
7428 # char *filename, *dll_name;
7430 # filename = argv[1];
7432 # dll = open(filename, O_RDONLY|O_BINARY);
7436 # dll_name = filename;
7438 # for (i=0; filename[i]; i++)
7439 # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
7440 # dll_name = filename + i +1;
7442 # pe_header_offset = pe_get32 (dll, 0x3c);
7443 # opthdr_ofs = pe_header_offset + 4 + 20;
7444 # num_entries = pe_get32 (dll, opthdr_ofs + 92);
7446 # if (num_entries < 1) /* no exports */
7449 # export_rva = pe_get32 (dll, opthdr_ofs + 96);
7450 # export_size = pe_get32 (dll, opthdr_ofs + 100);
7451 # nsections = pe_get16 (dll, pe_header_offset + 4 +2);
7452 # secptr = (pe_header_offset + 4 + 20 +
7453 # pe_get16 (dll, pe_header_offset + 4 + 16));
7456 # for (i = 0; i < nsections; i++)
7459 # unsigned long secptr1 = secptr + 40 * i;
7460 # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
7461 # unsigned long vsize = pe_get32 (dll, secptr1 + 16);
7462 # unsigned long fptr = pe_get32 (dll, secptr1 + 20);
7463 # lseek(dll, secptr1, SEEK_SET);
7464 # read(dll, sname, 8);
7465 # if (vaddr <= export_rva && vaddr+vsize > export_rva)
7467 # expptr = fptr + (export_rva - vaddr);
7468 # if (export_rva + export_size > vaddr + vsize)
7469 # export_size = vsize - (export_rva - vaddr);
7474 # expdata = (unsigned char*)malloc(export_size);
7475 # lseek (dll, expptr, SEEK_SET);
7476 # read (dll, expdata, export_size);
7477 # erva = expdata - export_rva;
7479 # nexp = pe_as32 (expdata+24);
7480 # name_rvas = pe_as32 (expdata+32);
7482 # printf ("EXPORTS\n");
7483 # for (i = 0; i<nexp; i++)
7485 # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
7486 # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
7491 # /* impgen.c ends here */
7497 # We use sed instead of cat because bash on DJGPP gets confused if
7498 # if finds mixed CR/LF and LF-only lines. Since sed operates in
7499 # text mode, it properly converts lines to CR/LF. This bash problem
7500 # is reportedly fixed, but why not run on old versions too?
7501 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
7503 mv -f "${ofile}T" "$ofile" || \
7504 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
7512 # This can be used to rebuild libtool when needed
7513 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
7515 # Always use our own libtool.
7516 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7518 # Prevent multiple expansion
7522 ac_cpp='$CXXCPP $CPPFLAGS'
7523 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7524 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7525 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7526 if test -n "$ac_tool_prefix"; then
7527 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
7529 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7530 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7531 echo "$as_me:$LINENO: checking for $ac_word" >&5
7532 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7533 if test "${ac_cv_prog_CXX+set}" = set; then
7534 echo $ECHO_N "(cached) $ECHO_C" >&6
7536 if test -n "$CXX"; then
7537 ac_cv_prog_CXX="$CXX" # Let the user override the test.
7539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7543 test -z "$as_dir" && as_dir=.
7544 for ac_exec_ext in '' $ac_executable_extensions; do
7545 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7546 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7547 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7556 if test -n "$CXX"; then
7557 echo "$as_me:$LINENO: result: $CXX" >&5
7558 echo "${ECHO_T}$CXX" >&6
7560 echo "$as_me:$LINENO: result: no" >&5
7561 echo "${ECHO_T}no" >&6
7564 test -n "$CXX" && break
7567 if test -z "$CXX"; then
7569 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
7571 # Extract the first word of "$ac_prog", so it can be a program name with args.
7572 set dummy $ac_prog; ac_word=$2
7573 echo "$as_me:$LINENO: checking for $ac_word" >&5
7574 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7575 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
7576 echo $ECHO_N "(cached) $ECHO_C" >&6
7578 if test -n "$ac_ct_CXX"; then
7579 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7585 test -z "$as_dir" && as_dir=.
7586 for ac_exec_ext in '' $ac_executable_extensions; do
7587 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7588 ac_cv_prog_ac_ct_CXX="$ac_prog"
7589 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7597 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7598 if test -n "$ac_ct_CXX"; then
7599 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
7600 echo "${ECHO_T}$ac_ct_CXX" >&6
7602 echo "$as_me:$LINENO: result: no" >&5
7603 echo "${ECHO_T}no" >&6
7606 test -n "$ac_ct_CXX" && break
7608 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
7614 # Provide some information about the compiler.
7615 echo "$as_me:$LINENO:" \
7616 "checking for C++ compiler version" >&5
7617 ac_compiler=`set X $ac_compile; echo $2`
7618 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
7619 (eval $ac_compiler --version </dev/null >&5) 2>&5
7621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7622 (exit $ac_status); }
7623 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
7624 (eval $ac_compiler -v </dev/null >&5) 2>&5
7626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7627 (exit $ac_status); }
7628 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
7629 (eval $ac_compiler -V </dev/null >&5) 2>&5
7631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7632 (exit $ac_status); }
7634 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
7635 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
7636 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
7637 echo $ECHO_N "(cached) $ECHO_C" >&6
7639 cat >conftest.$ac_ext <<_ACEOF
7640 #line $LINENO "configure"
7641 #include "confdefs.h"
7654 rm -f conftest.$ac_objext
7655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7656 (eval $ac_compile) 2>&5
7658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7659 (exit $ac_status); } &&
7660 { ac_try='test -s conftest.$ac_objext'
7661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7665 (exit $ac_status); }; }; then
7668 echo "$as_me: failed program was:" >&5
7669 cat conftest.$ac_ext >&5
7672 rm -f conftest.$ac_objext conftest.$ac_ext
7673 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7676 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
7677 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
7678 GXX=`test $ac_compiler_gnu = yes && echo yes`
7679 ac_test_CXXFLAGS=${CXXFLAGS+set}
7680 ac_save_CXXFLAGS=$CXXFLAGS
7682 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
7683 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
7684 if test "${ac_cv_prog_cxx_g+set}" = set; then
7685 echo $ECHO_N "(cached) $ECHO_C" >&6
7687 cat >conftest.$ac_ext <<_ACEOF
7688 #line $LINENO "configure"
7689 #include "confdefs.h"
7699 rm -f conftest.$ac_objext
7700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7701 (eval $ac_compile) 2>&5
7703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7704 (exit $ac_status); } &&
7705 { ac_try='test -s conftest.$ac_objext'
7706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7710 (exit $ac_status); }; }; then
7711 ac_cv_prog_cxx_g=yes
7713 echo "$as_me: failed program was:" >&5
7714 cat conftest.$ac_ext >&5
7717 rm -f conftest.$ac_objext conftest.$ac_ext
7719 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
7720 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
7721 if test "$ac_test_CXXFLAGS" = set; then
7722 CXXFLAGS=$ac_save_CXXFLAGS
7723 elif test $ac_cv_prog_cxx_g = yes; then
7724 if test "$GXX" = yes; then
7730 if test "$GXX" = yes; then
7736 for ac_declaration in \
7738 '#include <stdlib.h>' \
7739 'extern "C" void std::exit (int) throw (); using std::exit;' \
7740 'extern "C" void std::exit (int); using std::exit;' \
7741 'extern "C" void exit (int) throw ();' \
7742 'extern "C" void exit (int);' \
7745 cat >conftest.$ac_ext <<_ACEOF
7746 #line $LINENO "configure"
7747 #include "confdefs.h"
7758 rm -f conftest.$ac_objext
7759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7760 (eval $ac_compile) 2>&5
7762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7763 (exit $ac_status); } &&
7764 { ac_try='test -s conftest.$ac_objext'
7765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7769 (exit $ac_status); }; }; then
7772 echo "$as_me: failed program was:" >&5
7773 cat conftest.$ac_ext >&5
7776 rm -f conftest.$ac_objext conftest.$ac_ext
7777 cat >conftest.$ac_ext <<_ACEOF
7778 #line $LINENO "configure"
7779 #include "confdefs.h"
7789 rm -f conftest.$ac_objext
7790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7791 (eval $ac_compile) 2>&5
7793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7794 (exit $ac_status); } &&
7795 { ac_try='test -s conftest.$ac_objext'
7796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7800 (exit $ac_status); }; }; then
7803 echo "$as_me: failed program was:" >&5
7804 cat conftest.$ac_ext >&5
7806 rm -f conftest.$ac_objext conftest.$ac_ext
7809 if test -n "$ac_declaration"; then
7810 echo '#ifdef __cplusplus' >>confdefs.h
7811 echo $ac_declaration >>confdefs.h
7812 echo '#endif' >>confdefs.h
7816 ac_cpp='$CPP $CPPFLAGS'
7817 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7818 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7819 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7821 depcc="$CXX" am_compiler_list=
7823 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
7824 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
7825 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
7826 echo $ECHO_N "(cached) $ECHO_C" >&6
7828 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7829 # We make a subdir and do the tests there. Otherwise we can end up
7830 # making bogus files that we don't know about and never remove. For
7831 # instance it was reported that on HP-UX the gcc test will end up
7832 # making a dummy file named `D' -- because `-MD' means `put the output
7835 # Copy depcomp to subdir because otherwise we won't find it if we're
7836 # using a relative directory.
7837 cp "$am_depcomp" conftest.dir
7840 am_cv_CXX_dependencies_compiler_type=none
7841 if test "$am_compiler_list" = ""; then
7842 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7844 for depmode in $am_compiler_list; do
7845 # We need to recreate these files for each test, as the compiler may
7846 # overwrite some of them when testing with obscure command lines.
7847 # This happens at least with the AIX C compiler.
7848 echo '#include "conftest.h"' > conftest.c
7849 echo 'int i;' > conftest.h
7850 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
7854 # after this tag, mechanisms are not by side-effect, so they'll
7855 # only be used when explicitly requested
7856 if test "x$enable_dependency_tracking" = xyes; then
7864 # We check with `-c' and `-o' for the sake of the "dashmstdout"
7865 # mode. It turns out that the SunPro C++ compiler does not properly
7866 # handle `-M -o', and we need to detect this.
7867 if depmode=$depmode \
7868 source=conftest.c object=conftest.o \
7869 depfile=conftest.Po tmpdepfile=conftest.TPo \
7870 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
7871 grep conftest.h conftest.Po > /dev/null 2>&1 &&
7872 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7873 am_cv_CXX_dependencies_compiler_type=$depmode
7881 am_cv_CXX_dependencies_compiler_type=none
7885 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
7886 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
7887 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7892 test "x$enable_dependency_tracking" != xno \
7893 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7894 am__fastdepCXX_TRUE=
7895 am__fastdepCXX_FALSE='#'
7897 am__fastdepCXX_TRUE='#'
7898 am__fastdepCXX_FALSE=
7903 ac_cpp='$CPP $CPPFLAGS'
7904 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7905 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7906 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7907 if test -n "$ac_tool_prefix"; then
7908 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
7909 set dummy ${ac_tool_prefix}gcc; ac_word=$2
7910 echo "$as_me:$LINENO: checking for $ac_word" >&5
7911 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7912 if test "${ac_cv_prog_CC+set}" = set; then
7913 echo $ECHO_N "(cached) $ECHO_C" >&6
7915 if test -n "$CC"; then
7916 ac_cv_prog_CC="$CC" # Let the user override the test.
7918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7922 test -z "$as_dir" && as_dir=.
7923 for ac_exec_ext in '' $ac_executable_extensions; do
7924 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7925 ac_cv_prog_CC="${ac_tool_prefix}gcc"
7926 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7935 if test -n "$CC"; then
7936 echo "$as_me:$LINENO: result: $CC" >&5
7937 echo "${ECHO_T}$CC" >&6
7939 echo "$as_me:$LINENO: result: no" >&5
7940 echo "${ECHO_T}no" >&6
7944 if test -z "$ac_cv_prog_CC"; then
7946 # Extract the first word of "gcc", so it can be a program name with args.
7947 set dummy gcc; ac_word=$2
7948 echo "$as_me:$LINENO: checking for $ac_word" >&5
7949 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7950 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
7951 echo $ECHO_N "(cached) $ECHO_C" >&6
7953 if test -n "$ac_ct_CC"; then
7954 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
7956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7960 test -z "$as_dir" && as_dir=.
7961 for ac_exec_ext in '' $ac_executable_extensions; do
7962 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7963 ac_cv_prog_ac_ct_CC="gcc"
7964 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7972 ac_ct_CC=$ac_cv_prog_ac_ct_CC
7973 if test -n "$ac_ct_CC"; then
7974 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
7975 echo "${ECHO_T}$ac_ct_CC" >&6
7977 echo "$as_me:$LINENO: result: no" >&5
7978 echo "${ECHO_T}no" >&6
7986 if test -z "$CC"; then
7987 if test -n "$ac_tool_prefix"; then
7988 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
7989 set dummy ${ac_tool_prefix}cc; ac_word=$2
7990 echo "$as_me:$LINENO: checking for $ac_word" >&5
7991 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7992 if test "${ac_cv_prog_CC+set}" = set; then
7993 echo $ECHO_N "(cached) $ECHO_C" >&6
7995 if test -n "$CC"; then
7996 ac_cv_prog_CC="$CC" # Let the user override the test.
7998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8002 test -z "$as_dir" && as_dir=.
8003 for ac_exec_ext in '' $ac_executable_extensions; do
8004 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8005 ac_cv_prog_CC="${ac_tool_prefix}cc"
8006 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8015 if test -n "$CC"; then
8016 echo "$as_me:$LINENO: result: $CC" >&5
8017 echo "${ECHO_T}$CC" >&6
8019 echo "$as_me:$LINENO: result: no" >&5
8020 echo "${ECHO_T}no" >&6
8024 if test -z "$ac_cv_prog_CC"; then
8026 # Extract the first word of "cc", so it can be a program name with args.
8027 set dummy cc; ac_word=$2
8028 echo "$as_me:$LINENO: checking for $ac_word" >&5
8029 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8030 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
8031 echo $ECHO_N "(cached) $ECHO_C" >&6
8033 if test -n "$ac_ct_CC"; then
8034 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
8036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8040 test -z "$as_dir" && as_dir=.
8041 for ac_exec_ext in '' $ac_executable_extensions; do
8042 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8043 ac_cv_prog_ac_ct_CC="cc"
8044 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8052 ac_ct_CC=$ac_cv_prog_ac_ct_CC
8053 if test -n "$ac_ct_CC"; then
8054 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
8055 echo "${ECHO_T}$ac_ct_CC" >&6
8057 echo "$as_me:$LINENO: result: no" >&5
8058 echo "${ECHO_T}no" >&6
8067 if test -z "$CC"; then
8068 # Extract the first word of "cc", so it can be a program name with args.
8069 set dummy cc; ac_word=$2
8070 echo "$as_me:$LINENO: checking for $ac_word" >&5
8071 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8072 if test "${ac_cv_prog_CC+set}" = set; then
8073 echo $ECHO_N "(cached) $ECHO_C" >&6
8075 if test -n "$CC"; then
8076 ac_cv_prog_CC="$CC" # Let the user override the test.
8079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8083 test -z "$as_dir" && as_dir=.
8084 for ac_exec_ext in '' $ac_executable_extensions; do
8085 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8086 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
8087 ac_prog_rejected=yes
8091 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8097 if test $ac_prog_rejected = yes; then
8098 # We found a bogon in the path, so make sure we never use it.
8099 set dummy $ac_cv_prog_CC
8101 if test $# != 0; then
8102 # We chose a different compiler from the bogus one.
8103 # However, it has the same basename, so the bogon will be chosen
8104 # first if we set CC to just the basename; use the full file name.
8106 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
8112 if test -n "$CC"; then
8113 echo "$as_me:$LINENO: result: $CC" >&5
8114 echo "${ECHO_T}$CC" >&6
8116 echo "$as_me:$LINENO: result: no" >&5
8117 echo "${ECHO_T}no" >&6
8121 if test -z "$CC"; then
8122 if test -n "$ac_tool_prefix"; then
8125 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8126 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8127 echo "$as_me:$LINENO: checking for $ac_word" >&5
8128 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8129 if test "${ac_cv_prog_CC+set}" = set; then
8130 echo $ECHO_N "(cached) $ECHO_C" >&6
8132 if test -n "$CC"; then
8133 ac_cv_prog_CC="$CC" # Let the user override the test.
8135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8139 test -z "$as_dir" && as_dir=.
8140 for ac_exec_ext in '' $ac_executable_extensions; do
8141 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8142 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
8143 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8152 if test -n "$CC"; then
8153 echo "$as_me:$LINENO: result: $CC" >&5
8154 echo "${ECHO_T}$CC" >&6
8156 echo "$as_me:$LINENO: result: no" >&5
8157 echo "${ECHO_T}no" >&6
8160 test -n "$CC" && break
8163 if test -z "$CC"; then
8167 # Extract the first word of "$ac_prog", so it can be a program name with args.
8168 set dummy $ac_prog; ac_word=$2
8169 echo "$as_me:$LINENO: checking for $ac_word" >&5
8170 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8171 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
8172 echo $ECHO_N "(cached) $ECHO_C" >&6
8174 if test -n "$ac_ct_CC"; then
8175 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
8177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8181 test -z "$as_dir" && as_dir=.
8182 for ac_exec_ext in '' $ac_executable_extensions; do
8183 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8184 ac_cv_prog_ac_ct_CC="$ac_prog"
8185 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8193 ac_ct_CC=$ac_cv_prog_ac_ct_CC
8194 if test -n "$ac_ct_CC"; then
8195 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
8196 echo "${ECHO_T}$ac_ct_CC" >&6
8198 echo "$as_me:$LINENO: result: no" >&5
8199 echo "${ECHO_T}no" >&6
8202 test -n "$ac_ct_CC" && break
8211 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
8212 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
8213 { (exit 1); exit 1; }; }
8215 # Provide some information about the compiler.
8216 echo "$as_me:$LINENO:" \
8217 "checking for C compiler version" >&5
8218 ac_compiler=`set X $ac_compile; echo $2`
8219 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
8220 (eval $ac_compiler --version </dev/null >&5) 2>&5
8222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8223 (exit $ac_status); }
8224 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
8225 (eval $ac_compiler -v </dev/null >&5) 2>&5
8227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8228 (exit $ac_status); }
8229 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
8230 (eval $ac_compiler -V </dev/null >&5) 2>&5
8232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8233 (exit $ac_status); }
8235 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
8236 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
8237 if test "${ac_cv_c_compiler_gnu+set}" = set; then
8238 echo $ECHO_N "(cached) $ECHO_C" >&6
8240 cat >conftest.$ac_ext <<_ACEOF
8241 #line $LINENO "configure"
8242 #include "confdefs.h"
8255 rm -f conftest.$ac_objext
8256 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8257 (eval $ac_compile) 2>&5
8259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8260 (exit $ac_status); } &&
8261 { ac_try='test -s conftest.$ac_objext'
8262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8266 (exit $ac_status); }; }; then
8269 echo "$as_me: failed program was:" >&5
8270 cat conftest.$ac_ext >&5
8273 rm -f conftest.$ac_objext conftest.$ac_ext
8274 ac_cv_c_compiler_gnu=$ac_compiler_gnu
8277 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
8278 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
8279 GCC=`test $ac_compiler_gnu = yes && echo yes`
8280 ac_test_CFLAGS=${CFLAGS+set}
8281 ac_save_CFLAGS=$CFLAGS
8283 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
8284 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
8285 if test "${ac_cv_prog_cc_g+set}" = set; then
8286 echo $ECHO_N "(cached) $ECHO_C" >&6
8288 cat >conftest.$ac_ext <<_ACEOF
8289 #line $LINENO "configure"
8290 #include "confdefs.h"
8300 rm -f conftest.$ac_objext
8301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8302 (eval $ac_compile) 2>&5
8304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8305 (exit $ac_status); } &&
8306 { ac_try='test -s conftest.$ac_objext'
8307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8311 (exit $ac_status); }; }; then
8314 echo "$as_me: failed program was:" >&5
8315 cat conftest.$ac_ext >&5
8318 rm -f conftest.$ac_objext conftest.$ac_ext
8320 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
8321 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
8322 if test "$ac_test_CFLAGS" = set; then
8323 CFLAGS=$ac_save_CFLAGS
8324 elif test $ac_cv_prog_cc_g = yes; then
8325 if test "$GCC" = yes; then
8331 if test "$GCC" = yes; then
8337 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
8338 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
8339 if test "${ac_cv_prog_cc_stdc+set}" = set; then
8340 echo $ECHO_N "(cached) $ECHO_C" >&6
8342 ac_cv_prog_cc_stdc=no
8344 cat >conftest.$ac_ext <<_ACEOF
8345 #line $LINENO "configure"
8346 #include "confdefs.h"
8349 #include <sys/types.h>
8350 #include <sys/stat.h>
8351 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
8352 struct buf { int x; };
8353 FILE * (*rcsopen) (struct buf *, struct stat *, int);
8354 static char *e (p, i)
8360 static char *f (char * (*g) (char **, int), char **p, ...)
8365 s = g (p, va_arg (v,int));
8369 int test (int i, double x);
8370 struct s1 {int (*f) (int a);};
8371 struct s2 {int (*f) (double a);};
8372 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
8378 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
8383 # Don't try gcc -ansi; that turns off useful extensions and
8384 # breaks some systems' header files.
8385 # AIX -qlanglvl=ansi
8386 # Ultrix and OSF/1 -std1
8387 # HP-UX 10.20 and later -Ae
8388 # HP-UX older versions -Aa -D_HPUX_SOURCE
8389 # SVR4 -Xc -D__EXTENSIONS__
8390 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
8392 CC="$ac_save_CC $ac_arg"
8393 rm -f conftest.$ac_objext
8394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8395 (eval $ac_compile) 2>&5
8397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8398 (exit $ac_status); } &&
8399 { ac_try='test -s conftest.$ac_objext'
8400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8404 (exit $ac_status); }; }; then
8405 ac_cv_prog_cc_stdc=$ac_arg
8408 echo "$as_me: failed program was:" >&5
8409 cat conftest.$ac_ext >&5
8411 rm -f conftest.$ac_objext
8413 rm -f conftest.$ac_ext conftest.$ac_objext
8418 case "x$ac_cv_prog_cc_stdc" in
8420 echo "$as_me:$LINENO: result: none needed" >&5
8421 echo "${ECHO_T}none needed" >&6 ;;
8423 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
8424 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
8425 CC="$CC $ac_cv_prog_cc_stdc" ;;
8428 # Some people use a C++ compiler to compile C. Since we use `exit',
8429 # in C++ we need to declare it. In case someone uses the same compiler
8430 # for both compiling C and C++ we need to have the C++ compiler decide
8431 # the declaration of exit, since it's the most demanding environment.
8432 cat >conftest.$ac_ext <<_ACEOF
8437 rm -f conftest.$ac_objext
8438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8439 (eval $ac_compile) 2>&5
8441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8442 (exit $ac_status); } &&
8443 { ac_try='test -s conftest.$ac_objext'
8444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8448 (exit $ac_status); }; }; then
8449 for ac_declaration in \
8451 '#include <stdlib.h>' \
8452 'extern "C" void std::exit (int) throw (); using std::exit;' \
8453 'extern "C" void std::exit (int); using std::exit;' \
8454 'extern "C" void exit (int) throw ();' \
8455 'extern "C" void exit (int);' \
8458 cat >conftest.$ac_ext <<_ACEOF
8459 #line $LINENO "configure"
8460 #include "confdefs.h"
8471 rm -f conftest.$ac_objext
8472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8473 (eval $ac_compile) 2>&5
8475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8476 (exit $ac_status); } &&
8477 { ac_try='test -s conftest.$ac_objext'
8478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8482 (exit $ac_status); }; }; then
8485 echo "$as_me: failed program was:" >&5
8486 cat conftest.$ac_ext >&5
8489 rm -f conftest.$ac_objext conftest.$ac_ext
8490 cat >conftest.$ac_ext <<_ACEOF
8491 #line $LINENO "configure"
8492 #include "confdefs.h"
8502 rm -f conftest.$ac_objext
8503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8504 (eval $ac_compile) 2>&5
8506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8507 (exit $ac_status); } &&
8508 { ac_try='test -s conftest.$ac_objext'
8509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8513 (exit $ac_status); }; }; then
8516 echo "$as_me: failed program was:" >&5
8517 cat conftest.$ac_ext >&5
8519 rm -f conftest.$ac_objext conftest.$ac_ext
8522 if test -n "$ac_declaration"; then
8523 echo '#ifdef __cplusplus' >>confdefs.h
8524 echo $ac_declaration >>confdefs.h
8525 echo '#endif' >>confdefs.h
8529 echo "$as_me: failed program was:" >&5
8530 cat conftest.$ac_ext >&5
8532 rm -f conftest.$ac_objext conftest.$ac_ext
8534 ac_cpp='$CPP $CPPFLAGS'
8535 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8536 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8537 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8539 depcc="$CC" am_compiler_list=
8541 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
8542 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
8543 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
8544 echo $ECHO_N "(cached) $ECHO_C" >&6
8546 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
8547 # We make a subdir and do the tests there. Otherwise we can end up
8548 # making bogus files that we don't know about and never remove. For
8549 # instance it was reported that on HP-UX the gcc test will end up
8550 # making a dummy file named `D' -- because `-MD' means `put the output
8553 # Copy depcomp to subdir because otherwise we won't find it if we're
8554 # using a relative directory.
8555 cp "$am_depcomp" conftest.dir
8558 am_cv_CC_dependencies_compiler_type=none
8559 if test "$am_compiler_list" = ""; then
8560 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8562 for depmode in $am_compiler_list; do
8563 # We need to recreate these files for each test, as the compiler may
8564 # overwrite some of them when testing with obscure command lines.
8565 # This happens at least with the AIX C compiler.
8566 echo '#include "conftest.h"' > conftest.c
8567 echo 'int i;' > conftest.h
8568 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
8572 # after this tag, mechanisms are not by side-effect, so they'll
8573 # only be used when explicitly requested
8574 if test "x$enable_dependency_tracking" = xyes; then
8582 # We check with `-c' and `-o' for the sake of the "dashmstdout"
8583 # mode. It turns out that the SunPro C++ compiler does not properly
8584 # handle `-M -o', and we need to detect this.
8585 if depmode=$depmode \
8586 source=conftest.c object=conftest.o \
8587 depfile=conftest.Po tmpdepfile=conftest.TPo \
8588 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
8589 grep conftest.h conftest.Po > /dev/null 2>&1 &&
8590 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
8591 am_cv_CC_dependencies_compiler_type=$depmode
8599 am_cv_CC_dependencies_compiler_type=none
8603 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
8604 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
8605 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
8610 test "x$enable_dependency_tracking" != xno \
8611 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
8613 am__fastdepCC_FALSE='#'
8615 am__fastdepCC_TRUE='#'
8616 am__fastdepCC_FALSE=
8621 ac_cpp='$CPP $CPPFLAGS'
8622 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8623 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8624 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8625 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
8626 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
8627 # On Suns, sometimes $CPP names a directory.
8628 if test -n "$CPP" && test -d "$CPP"; then
8631 if test -z "$CPP"; then
8632 if test "${ac_cv_prog_CPP+set}" = set; then
8633 echo $ECHO_N "(cached) $ECHO_C" >&6
8635 # Double quotes because CPP needs to be expanded
8636 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8639 for ac_c_preproc_warn_flag in '' yes
8641 # Use a header file that comes with gcc, so configuring glibc
8642 # with a fresh cross-compiler works.
8643 # On the NeXT, cc -E runs the code through the compiler's parser,
8644 # not just through cpp. "Syntax error" is here to catch this case.
8645 cat >conftest.$ac_ext <<_ACEOF
8646 #line $LINENO "configure"
8647 #include "confdefs.h"
8651 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8652 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8654 grep -v '^ *+' conftest.er1 >conftest.err
8656 cat conftest.err >&5
8657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8658 (exit $ac_status); } >/dev/null; then
8659 if test -s conftest.err; then
8660 ac_cpp_err=$ac_c_preproc_warn_flag
8667 if test -z "$ac_cpp_err"; then
8670 echo "$as_me: failed program was:" >&5
8671 cat conftest.$ac_ext >&5
8672 # Broken: fails on valid input.
8675 rm -f conftest.err conftest.$ac_ext
8677 # OK, works on sane cases. Now check whether non-existent headers
8678 # can be detected and how.
8679 cat >conftest.$ac_ext <<_ACEOF
8680 #line $LINENO "configure"
8681 #include "confdefs.h"
8682 #include <ac_nonexistent.h>
8684 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8685 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8687 grep -v '^ *+' conftest.er1 >conftest.err
8689 cat conftest.err >&5
8690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8691 (exit $ac_status); } >/dev/null; then
8692 if test -s conftest.err; then
8693 ac_cpp_err=$ac_c_preproc_warn_flag
8700 if test -z "$ac_cpp_err"; then
8701 # Broken: success on invalid input.
8704 echo "$as_me: failed program was:" >&5
8705 cat conftest.$ac_ext >&5
8706 # Passes both tests.
8710 rm -f conftest.err conftest.$ac_ext
8713 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8714 rm -f conftest.err conftest.$ac_ext
8715 if $ac_preproc_ok; then
8727 echo "$as_me:$LINENO: result: $CPP" >&5
8728 echo "${ECHO_T}$CPP" >&6
8730 for ac_c_preproc_warn_flag in '' yes
8732 # Use a header file that comes with gcc, so configuring glibc
8733 # with a fresh cross-compiler works.
8734 # On the NeXT, cc -E runs the code through the compiler's parser,
8735 # not just through cpp. "Syntax error" is here to catch this case.
8736 cat >conftest.$ac_ext <<_ACEOF
8737 #line $LINENO "configure"
8738 #include "confdefs.h"
8742 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8743 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8745 grep -v '^ *+' conftest.er1 >conftest.err
8747 cat conftest.err >&5
8748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8749 (exit $ac_status); } >/dev/null; then
8750 if test -s conftest.err; then
8751 ac_cpp_err=$ac_c_preproc_warn_flag
8758 if test -z "$ac_cpp_err"; then
8761 echo "$as_me: failed program was:" >&5
8762 cat conftest.$ac_ext >&5
8763 # Broken: fails on valid input.
8766 rm -f conftest.err conftest.$ac_ext
8768 # OK, works on sane cases. Now check whether non-existent headers
8769 # can be detected and how.
8770 cat >conftest.$ac_ext <<_ACEOF
8771 #line $LINENO "configure"
8772 #include "confdefs.h"
8773 #include <ac_nonexistent.h>
8775 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8776 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8778 grep -v '^ *+' conftest.er1 >conftest.err
8780 cat conftest.err >&5
8781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8782 (exit $ac_status); } >/dev/null; then
8783 if test -s conftest.err; then
8784 ac_cpp_err=$ac_c_preproc_warn_flag
8791 if test -z "$ac_cpp_err"; then
8792 # Broken: success on invalid input.
8795 echo "$as_me: failed program was:" >&5
8796 cat conftest.$ac_ext >&5
8797 # Passes both tests.
8801 rm -f conftest.err conftest.$ac_ext
8804 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8805 rm -f conftest.err conftest.$ac_ext
8806 if $ac_preproc_ok; then
8809 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
8810 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
8811 { (exit 1); exit 1; }; }
8815 ac_cpp='$CPP $CPPFLAGS'
8816 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8817 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8818 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8820 # Find a good install program. We prefer a C program (faster),
8821 # so one script is as good as another. But avoid the broken or
8822 # incompatible versions:
8823 # SysV /etc/install, /usr/sbin/install
8824 # SunOS /usr/etc/install
8825 # IRIX /sbin/install
8827 # AmigaOS /C/install, which installs bootblocks on floppy discs
8828 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8829 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8830 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8831 # ./install, which can be erroneously created by make from ./install.sh.
8832 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
8833 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
8834 if test -z "$INSTALL"; then
8835 if test "${ac_cv_path_install+set}" = set; then
8836 echo $ECHO_N "(cached) $ECHO_C" >&6
8838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8842 test -z "$as_dir" && as_dir=.
8843 # Account for people who put trailing slashes in PATH elements.
8845 ./ | .// | /cC/* | \
8846 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8849 # OSF1 and SCO ODT 3.0 have their own names for install.
8850 # Don't use installbsd from OSF since it installs stuff as root
8852 for ac_prog in ginstall scoinst install; do
8853 for ac_exec_ext in '' $ac_executable_extensions; do
8854 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
8855 if test $ac_prog = install &&
8856 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8857 # AIX install. It has an incompatible calling convention.
8859 elif test $ac_prog = install &&
8860 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8861 # program-specific install script used by HP pwplus--don't use.
8864 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8876 if test "${ac_cv_path_install+set}" = set; then
8877 INSTALL=$ac_cv_path_install
8879 # As a last resort, use the slow shell script. We don't cache a
8880 # path for INSTALL within a source directory, because that will
8881 # break other packages using the cache if that directory is
8882 # removed, or if the path is relative.
8883 INSTALL=$ac_install_sh
8886 echo "$as_me:$LINENO: result: $INSTALL" >&5
8887 echo "${ECHO_T}$INSTALL" >&6
8889 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8890 # It thinks the first close brace ends the variable substitution.
8891 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8893 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8895 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8897 echo "$as_me:$LINENO: checking whether ln -s works" >&5
8898 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
8900 if test "$LN_S" = "ln -s"; then
8901 echo "$as_me:$LINENO: result: yes" >&5
8902 echo "${ECHO_T}yes" >&6
8904 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
8905 echo "${ECHO_T}no, using $LN_S" >&6
8908 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
8909 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
8910 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
8911 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
8912 echo $ECHO_N "(cached) $ECHO_C" >&6
8914 cat >conftest.make <<\_ACEOF
8916 @echo 'ac_maketemp="${MAKE}"'
8918 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8919 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
8920 if test -n "$ac_maketemp"; then
8921 eval ac_cv_prog_make_${ac_make}_set=yes
8923 eval ac_cv_prog_make_${ac_make}_set=no
8927 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
8928 echo "$as_me:$LINENO: result: yes" >&5
8929 echo "${ECHO_T}yes" >&6
8932 echo "$as_me:$LINENO: result: no" >&5
8933 echo "${ECHO_T}no" >&6
8934 SET_MAKE="MAKE=${MAKE-make}"
8937 if test -n "$ac_tool_prefix"; then
8938 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8939 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8940 echo "$as_me:$LINENO: checking for $ac_word" >&5
8941 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8942 if test "${ac_cv_prog_RANLIB+set}" = set; then
8943 echo $ECHO_N "(cached) $ECHO_C" >&6
8945 if test -n "$RANLIB"; then
8946 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8952 test -z "$as_dir" && as_dir=.
8953 for ac_exec_ext in '' $ac_executable_extensions; do
8954 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8955 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8956 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8964 RANLIB=$ac_cv_prog_RANLIB
8965 if test -n "$RANLIB"; then
8966 echo "$as_me:$LINENO: result: $RANLIB" >&5
8967 echo "${ECHO_T}$RANLIB" >&6
8969 echo "$as_me:$LINENO: result: no" >&5
8970 echo "${ECHO_T}no" >&6
8974 if test -z "$ac_cv_prog_RANLIB"; then
8975 ac_ct_RANLIB=$RANLIB
8976 # Extract the first word of "ranlib", so it can be a program name with args.
8977 set dummy ranlib; ac_word=$2
8978 echo "$as_me:$LINENO: checking for $ac_word" >&5
8979 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8980 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8981 echo $ECHO_N "(cached) $ECHO_C" >&6
8983 if test -n "$ac_ct_RANLIB"; then
8984 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8990 test -z "$as_dir" && as_dir=.
8991 for ac_exec_ext in '' $ac_executable_extensions; do
8992 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8993 ac_cv_prog_ac_ct_RANLIB="ranlib"
8994 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9000 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
9003 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9004 if test -n "$ac_ct_RANLIB"; then
9005 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
9006 echo "${ECHO_T}$ac_ct_RANLIB" >&6
9008 echo "$as_me:$LINENO: result: no" >&5
9009 echo "${ECHO_T}no" >&6
9012 RANLIB=$ac_ct_RANLIB
9014 RANLIB="$ac_cv_prog_RANLIB"
9017 for ac_prog in gawk mawk nawk awk
9019 # Extract the first word of "$ac_prog", so it can be a program name with args.
9020 set dummy $ac_prog; ac_word=$2
9021 echo "$as_me:$LINENO: checking for $ac_word" >&5
9022 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9023 if test "${ac_cv_prog_AWK+set}" = set; then
9024 echo $ECHO_N "(cached) $ECHO_C" >&6
9026 if test -n "$AWK"; then
9027 ac_cv_prog_AWK="$AWK" # Let the user override the test.
9029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9033 test -z "$as_dir" && as_dir=.
9034 for ac_exec_ext in '' $ac_executable_extensions; do
9035 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9036 ac_cv_prog_AWK="$ac_prog"
9037 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9046 if test -n "$AWK"; then
9047 echo "$as_me:$LINENO: result: $AWK" >&5
9048 echo "${ECHO_T}$AWK" >&6
9050 echo "$as_me:$LINENO: result: no" >&5
9051 echo "${ECHO_T}no" >&6
9054 test -n "$AWK" && break
9058 # Checks for header files.
9059 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9060 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9061 if test "${ac_cv_header_stdc+set}" = set; then
9062 echo $ECHO_N "(cached) $ECHO_C" >&6
9064 cat >conftest.$ac_ext <<_ACEOF
9065 #line $LINENO "configure"
9066 #include "confdefs.h"
9073 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9074 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9076 grep -v '^ *+' conftest.er1 >conftest.err
9078 cat conftest.err >&5
9079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9080 (exit $ac_status); } >/dev/null; then
9081 if test -s conftest.err; then
9082 ac_cpp_err=$ac_c_preproc_warn_flag
9089 if test -z "$ac_cpp_err"; then
9090 ac_cv_header_stdc=yes
9092 echo "$as_me: failed program was:" >&5
9093 cat conftest.$ac_ext >&5
9094 ac_cv_header_stdc=no
9096 rm -f conftest.err conftest.$ac_ext
9098 if test $ac_cv_header_stdc = yes; then
9099 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9100 cat >conftest.$ac_ext <<_ACEOF
9101 #line $LINENO "configure"
9102 #include "confdefs.h"
9106 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9107 $EGREP "memchr" >/dev/null 2>&1; then
9110 ac_cv_header_stdc=no
9116 if test $ac_cv_header_stdc = yes; then
9117 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9118 cat >conftest.$ac_ext <<_ACEOF
9119 #line $LINENO "configure"
9120 #include "confdefs.h"
9124 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9125 $EGREP "free" >/dev/null 2>&1; then
9128 ac_cv_header_stdc=no
9134 if test $ac_cv_header_stdc = yes; then
9135 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9136 if test "$cross_compiling" = yes; then
9139 cat >conftest.$ac_ext <<_ACEOF
9140 #line $LINENO "configure"
9141 #include "confdefs.h"
9143 #if ((' ' & 0x0FF) == 0x020)
9144 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9145 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9147 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
9148 || ('j' <= (c) && (c) <= 'r') \
9149 || ('s' <= (c) && (c) <= 'z'))
9150 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9153 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9158 for (i = 0; i < 256; i++)
9159 if (XOR (islower (i), ISLOWER (i))
9160 || toupper (i) != TOUPPER (i))
9165 rm -f conftest$ac_exeext
9166 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9167 (eval $ac_link) 2>&5
9169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9170 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9175 (exit $ac_status); }; }; then
9178 echo "$as_me: program exited with status $ac_status" >&5
9179 echo "$as_me: failed program was:" >&5
9180 cat conftest.$ac_ext >&5
9182 ac_cv_header_stdc=no
9184 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9188 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9189 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9190 if test $ac_cv_header_stdc = yes; then
9192 cat >>confdefs.h <<\_ACEOF
9193 #define STDC_HEADERS 1
9201 for ac_header in stdlib.h string.h unistd.h
9203 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9204 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9205 echo "$as_me:$LINENO: checking for $ac_header" >&5
9206 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9207 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9208 echo $ECHO_N "(cached) $ECHO_C" >&6
9210 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9211 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9213 # Is the header compilable?
9214 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9215 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9216 cat >conftest.$ac_ext <<_ACEOF
9217 #line $LINENO "configure"
9218 #include "confdefs.h"
9219 $ac_includes_default
9220 #include <$ac_header>
9222 rm -f conftest.$ac_objext
9223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9224 (eval $ac_compile) 2>&5
9226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9227 (exit $ac_status); } &&
9228 { ac_try='test -s conftest.$ac_objext'
9229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9233 (exit $ac_status); }; }; then
9234 ac_header_compiler=yes
9236 echo "$as_me: failed program was:" >&5
9237 cat conftest.$ac_ext >&5
9238 ac_header_compiler=no
9240 rm -f conftest.$ac_objext conftest.$ac_ext
9241 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9242 echo "${ECHO_T}$ac_header_compiler" >&6
9244 # Is the header present?
9245 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9246 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9247 cat >conftest.$ac_ext <<_ACEOF
9248 #line $LINENO "configure"
9249 #include "confdefs.h"
9250 #include <$ac_header>
9252 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9253 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9255 grep -v '^ *+' conftest.er1 >conftest.err
9257 cat conftest.err >&5
9258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9259 (exit $ac_status); } >/dev/null; then
9260 if test -s conftest.err; then
9261 ac_cpp_err=$ac_c_preproc_warn_flag
9268 if test -z "$ac_cpp_err"; then
9269 ac_header_preproc=yes
9271 echo "$as_me: failed program was:" >&5
9272 cat conftest.$ac_ext >&5
9273 ac_header_preproc=no
9275 rm -f conftest.err conftest.$ac_ext
9276 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9277 echo "${ECHO_T}$ac_header_preproc" >&6
9279 # So? What about this header?
9280 case $ac_header_compiler:$ac_header_preproc in
9282 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9283 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9284 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9285 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9287 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9288 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9289 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9290 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9291 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9292 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9294 echo "$as_me:$LINENO: checking for $ac_header" >&5
9295 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9296 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9297 echo $ECHO_N "(cached) $ECHO_C" >&6
9299 eval "$as_ac_Header=$ac_header_preproc"
9301 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9302 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9305 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9306 cat >>confdefs.h <<_ACEOF
9307 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9315 # Checks for typedefs, structures, and compiler characteristics.
9316 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9317 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
9318 if test "${ac_cv_c_const+set}" = set; then
9319 echo $ECHO_N "(cached) $ECHO_C" >&6
9321 cat >conftest.$ac_ext <<_ACEOF
9322 #line $LINENO "configure"
9323 #include "confdefs.h"
9328 /* FIXME: Include the comments suggested by Paul. */
9330 /* Ultrix mips cc rejects this. */
9331 typedef int charset[2];
9333 /* SunOS 4.1.1 cc rejects this. */
9334 char const *const *ccp;
9336 /* NEC SVR4.0.2 mips cc rejects this. */
9337 struct point {int x, y;};
9338 static struct point const zero = {0,0};
9339 /* AIX XL C 1.02.0.0 rejects this.
9340 It does not let you subtract one const X* pointer from another in
9341 an arm of an if-expression whose if-part is not a constant
9343 const char *g = "string";
9344 ccp = &g + (g ? g-g : 0);
9345 /* HPUX 7.0 cc rejects these. */
9348 ccp = (char const *const *) p;
9349 { /* SCO 3.2v4 cc rejects this. */
9351 char const *s = 0 ? (char *) 0 : (char const *) 0;
9355 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9357 const int *foo = &x[0];
9360 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9361 typedef const int *iptr;
9365 { /* AIX XL C 1.02.0.0 rejects this saying
9366 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9367 struct s { int j; const int *ap[3]; };
9368 struct s *b; b->j = 5;
9370 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9379 rm -f conftest.$ac_objext
9380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9381 (eval $ac_compile) 2>&5
9383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9384 (exit $ac_status); } &&
9385 { ac_try='test -s conftest.$ac_objext'
9386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9390 (exit $ac_status); }; }; then
9393 echo "$as_me: failed program was:" >&5
9394 cat conftest.$ac_ext >&5
9397 rm -f conftest.$ac_objext conftest.$ac_ext
9399 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9400 echo "${ECHO_T}$ac_cv_c_const" >&6
9401 if test $ac_cv_c_const = no; then
9403 cat >>confdefs.h <<\_ACEOF
9409 echo "$as_me:$LINENO: checking for size_t" >&5
9410 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
9411 if test "${ac_cv_type_size_t+set}" = set; then
9412 echo $ECHO_N "(cached) $ECHO_C" >&6
9414 cat >conftest.$ac_ext <<_ACEOF
9415 #line $LINENO "configure"
9416 #include "confdefs.h"
9417 $ac_includes_default
9423 if (sizeof (size_t))
9429 rm -f conftest.$ac_objext
9430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9431 (eval $ac_compile) 2>&5
9433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9434 (exit $ac_status); } &&
9435 { ac_try='test -s conftest.$ac_objext'
9436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9440 (exit $ac_status); }; }; then
9441 ac_cv_type_size_t=yes
9443 echo "$as_me: failed program was:" >&5
9444 cat conftest.$ac_ext >&5
9445 ac_cv_type_size_t=no
9447 rm -f conftest.$ac_objext conftest.$ac_ext
9449 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
9450 echo "${ECHO_T}$ac_cv_type_size_t" >&6
9451 if test $ac_cv_type_size_t = yes; then
9455 cat >>confdefs.h <<_ACEOF
9456 #define size_t unsigned
9462 # Checks for library functions.
9466 for ac_func in memset strchr strdup
9468 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9469 echo "$as_me:$LINENO: checking for $ac_func" >&5
9470 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9471 if eval "test \"\${$as_ac_var+set}\" = set"; then
9472 echo $ECHO_N "(cached) $ECHO_C" >&6
9474 cat >conftest.$ac_ext <<_ACEOF
9475 #line $LINENO "configure"
9476 #include "confdefs.h"
9477 /* System header to define __stub macros and hopefully few prototypes,
9478 which can conflict with char $ac_func (); below. */
9480 /* Override any gcc2 internal prototype to avoid an error. */
9484 /* We use char because int might match the return type of a gcc2
9485 builtin and then its argument prototype would still apply. */
9492 /* The GNU C library defines this for functions which it implements
9493 to always fail with ENOSYS. Some functions are actually named
9494 something starting with __ and the normal name is an alias. */
9495 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9505 rm -f conftest.$ac_objext conftest$ac_exeext
9506 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9507 (eval $ac_link) 2>&5
9509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9510 (exit $ac_status); } &&
9511 { ac_try='test -s conftest$ac_exeext'
9512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9516 (exit $ac_status); }; }; then
9517 eval "$as_ac_var=yes"
9519 echo "$as_me: failed program was:" >&5
9520 cat conftest.$ac_ext >&5
9521 eval "$as_ac_var=no"
9523 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9525 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9526 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9527 if test `eval echo '${'$as_ac_var'}'` = yes; then
9528 cat >>confdefs.h <<_ACEOF
9529 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9536 ac_config_files="$ac_config_files Makefile libntlm.pc ntlm.h"
9538 cat >confcache <<\_ACEOF
9539 # This file is a shell script that caches the results of configure
9540 # tests run on this system so they can be shared between configure
9541 # scripts and configure runs, see configure's option --config-cache.
9542 # It is not useful on other systems. If it contains results you don't
9543 # want to keep, you may remove or edit it.
9545 # config.status only pays attention to the cache file if you give it
9546 # the --recheck option to rerun configure.
9548 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9549 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9554 # The following way of writing the cache mishandles newlines in values,
9555 # but we know of no workaround that is simple, portable, and efficient.
9556 # So, don't put newlines in cache variables' values.
9557 # Ultrix sh set writes to stderr and can't be redirected directly,
9558 # and sets the high bit in the cache file unless we assign to the vars.
9561 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9563 # `set' does not quote correctly, so add quotes (double-quote
9564 # substitution turns \\\\ into \\, and sed turns \\ into \).
9567 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9570 # `set' quotes correctly as required by POSIX, so do not add quotes.
9572 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9579 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9581 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9583 if cmp -s $cache_file confcache; then :; else
9584 if test -w $cache_file; then
9585 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9586 cat confcache >$cache_file
9588 echo "not updating unwritable cache $cache_file"
9593 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9594 # Let make expand exec_prefix.
9595 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9597 # VPATH may cause trouble with some makes, so we remove $(srcdir),
9598 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9599 # trailing colons and then remove the whole line if VPATH becomes empty
9600 # (actually we leave an empty line to preserve line numbers).
9601 if test "x$srcdir" = x.; then
9602 ac_vpsub='/^[ ]*VPATH[ ]*=/{
9603 s/:*\$(srcdir):*/:/;
9604 s/:*\${srcdir}:*/:/;
9606 s/^\([^=]*=[ ]*\):*/\1/;
9612 DEFS=-DHAVE_CONFIG_H
9616 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9617 # 1. Remove the extension, and $U if already installed.
9618 ac_i=`echo "$ac_i" |
9619 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
9621 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
9622 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
9626 LTLIBOBJS=$ac_ltlibobjs
9629 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
9630 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
9631 Usually this means the macro was only invoked conditionally." >&5
9632 echo "$as_me: error: conditional \"AMDEP\" was never defined.
9633 Usually this means the macro was only invoked conditionally." >&2;}
9634 { (exit 1); exit 1; }; }
9636 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
9637 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
9638 Usually this means the macro was only invoked conditionally." >&5
9639 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
9640 Usually this means the macro was only invoked conditionally." >&2;}
9641 { (exit 1); exit 1; }; }
9643 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
9644 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
9645 Usually this means the macro was only invoked conditionally." >&5
9646 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
9647 Usually this means the macro was only invoked conditionally." >&2;}
9648 { (exit 1); exit 1; }; }
9650 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
9651 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
9652 Usually this means the macro was only invoked conditionally." >&5
9653 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
9654 Usually this means the macro was only invoked conditionally." >&2;}
9655 { (exit 1); exit 1; }; }
9658 : ${CONFIG_STATUS=./config.status}
9659 ac_clean_files_save=$ac_clean_files
9660 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9661 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9662 echo "$as_me: creating $CONFIG_STATUS" >&6;}
9663 cat >$CONFIG_STATUS <<_ACEOF
9665 # Generated by $as_me.
9666 # Run this file to recreate the current configuration.
9667 # Compiler output produced by configure, useful for debugging
9668 # configure, is in config.log if it exists.
9671 SHELL=\${CONFIG_SHELL-$SHELL}
9674 cat >>$CONFIG_STATUS <<\_ACEOF
9675 ## --------------------- ##
9676 ## M4sh Initialization. ##
9677 ## --------------------- ##
9679 # Be Bourne compatible
9680 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9683 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
9684 # is contrary to our usage. Disable this feature.
9685 alias -g '${1+"$@"}'='"$@"'
9686 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
9690 # Support unset when possible.
9691 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
9698 # Work around bugs in pre-3.0 UWIN ksh.
9699 $as_unset ENV MAIL MAILPATH
9705 for as_var in LANG LANGUAGE LC_ALL LC_COLLATE LC_CTYPE LC_NUMERIC LC_MESSAGES LC_TIME
9707 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
9708 eval $as_var=C; export $as_var
9714 # Required to use basename.
9715 if expr a : '\(a\)' >/dev/null 2>&1; then
9721 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
9722 as_basename=basename
9728 # Name of the executable.
9729 as_me=`$as_basename "$0" ||
9730 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9731 X"$0" : 'X\(//\)$' \| \
9732 X"$0" : 'X\(/\)$' \| \
9733 . : '\(.\)' 2>/dev/null ||
9735 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
9736 /^X\/\(\/\/\)$/{ s//\1/; q; }
9737 /^X\/\(\/\).*/{ s//\1/; q; }
9741 # PATH needs CR, and LINENO needs CR and PATH.
9742 # Avoid depending upon Character Ranges.
9743 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9744 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9745 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9746 as_cr_digits='0123456789'
9747 as_cr_alnum=$as_cr_Letters$as_cr_digits
9749 # The user is always right.
9750 if test "${PATH_SEPARATOR+set}" != set; then
9751 echo "#! /bin/sh" >conftest.sh
9752 echo "exit 0" >>conftest.sh
9753 chmod +x conftest.sh
9754 if (PATH="/nonexistent;."; conftest.sh) >/dev/null 2>&1; then
9765 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9766 test "x$as_lineno_1" != "x$as_lineno_2" &&
9767 test "x$as_lineno_3" = "x$as_lineno_2" || {
9768 # Find who we are. Look in the path if we contain no path at all
9771 *[\\/]* ) as_myself=$0 ;;
9772 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9776 test -z "$as_dir" && as_dir=.
9777 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9782 # We did not find ourselves, most probably we were run as `sh COMMAND'
9783 # in which case we are not to be found in the path.
9784 if test "x$as_myself" = x; then
9787 if test ! -f "$as_myself"; then
9788 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
9789 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
9790 { (exit 1); exit 1; }; }
9792 case $CONFIG_SHELL in
9794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9795 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
9798 test -z "$as_dir" && as_dir=.
9799 for as_base in sh bash ksh sh5; do
9802 if ("$as_dir/$as_base" -c '
9805 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9806 test "x$as_lineno_1" != "x$as_lineno_2" &&
9807 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
9808 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
9809 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
9810 CONFIG_SHELL=$as_dir/$as_base
9812 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
9820 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9821 # uniformly replaced by the line number. The first 'sed' inserts a
9822 # line-number line before each line; the second 'sed' does the real
9823 # work. The second script uses 'N' to pair each line-number line
9824 # with the numbered line, and appends trailing '-' during
9825 # substitution so that $LINENO is not a special case at line end.
9826 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9827 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
9828 sed '=' <$as_myself |
9833 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
9836 s,^['$as_cr_digits']*\n,,
9838 chmod +x $as_me.lineno ||
9839 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
9840 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
9841 { (exit 1); exit 1; }; }
9843 # Don't try to exec as it changes $[0], causing all sort of problems
9844 # (the dirname of $[0] is not the place where we might find the
9845 # original and so on. Autoconf is especially sensible to this).
9847 # Exit status is that of the last command.
9852 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
9853 *c*,-n*) ECHO_N= ECHO_C='
9855 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
9856 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
9859 if expr a : '\(a\)' >/dev/null 2>&1; then
9865 rm -f conf$$ conf$$.exe conf$$.file
9867 if ln -s conf$$.file conf$$ 2>/dev/null; then
9868 # We could just check for DJGPP; but this test a) works b) is more generic
9869 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9870 if test -f conf$$.exe; then
9871 # Don't use ln at all; we don't have any links
9876 elif ln conf$$.file conf$$ 2>/dev/null; then
9881 rm -f conf$$ conf$$.exe conf$$.file
9883 if mkdir -p . 2>/dev/null; then
9889 as_executable_p="test -f"
9891 # Sed expression to map a string onto a valid CPP name.
9892 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
9894 # Sed expression to map a string onto a valid variable name.
9895 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
9899 # We need space, tab and new line, in precisely that order.
9909 # Open the log real soon, to keep \$[0] and so on meaningful, and to
9910 # report actual input values of CONFIG_FILES etc. instead of their
9911 # values after options handling. Logging --version etc. is OK.
9915 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9916 ## Running $as_me. ##
9921 This file was extended by libntlm $as_me 0.3.1, which was
9922 generated by GNU Autoconf 2.54. Invocation command line was
9924 CONFIG_FILES = $CONFIG_FILES
9925 CONFIG_HEADERS = $CONFIG_HEADERS
9926 CONFIG_LINKS = $CONFIG_LINKS
9927 CONFIG_COMMANDS = $CONFIG_COMMANDS
9931 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
9935 # Files that config.status was made for.
9936 if test -n "$ac_config_files"; then
9937 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
9940 if test -n "$ac_config_headers"; then
9941 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9944 if test -n "$ac_config_links"; then
9945 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
9948 if test -n "$ac_config_commands"; then
9949 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9952 cat >>$CONFIG_STATUS <<\_ACEOF
9955 \`$as_me' instantiates files from templates according to the
9956 current configuration.
9958 Usage: $0 [OPTIONS] [FILE]...
9960 -h, --help print this help, then exit
9961 -V, --version print version number, then exit
9962 -d, --debug don't remove temporary files
9963 --recheck update $as_me by reconfiguring in the same conditions
9964 --file=FILE[:TEMPLATE]
9965 instantiate the configuration file FILE
9966 --header=FILE[:TEMPLATE]
9967 instantiate the configuration header FILE
9969 Configuration files:
9972 Configuration headers:
9975 Configuration commands:
9978 Report bugs to <bug-autoconf@gnu.org>."
9981 cat >>$CONFIG_STATUS <<_ACEOF
9983 libntlm config.status 0.3.1
9984 configured by $0, generated by GNU Autoconf 2.54,
9985 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
9987 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
9988 Free Software Foundation, Inc.
9989 This config.status script is free software; the Free Software Foundation
9990 gives unlimited permission to copy, distribute and modify it."
9995 cat >>$CONFIG_STATUS <<\_ACEOF
9996 # If no file are specified by the user, then we need to provide default
9997 # value. By we need to know if files were specified by the user.
10003 ac_option=`expr "x$1" : 'x\([^=]*\)='`
10004 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
10012 *) # This is not an option, so the user has probably given explicit
10015 ac_need_defaults=false;;
10019 # Handling of the options.
10021 cat >>$CONFIG_STATUS <<_ACEOF
10022 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10023 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
10024 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
10026 cat >>$CONFIG_STATUS <<\_ACEOF
10027 --version | --vers* | -V )
10028 echo "$ac_cs_version"; exit 0 ;;
10030 # Conflict between --help and --header
10031 { { echo "$as_me:$LINENO: error: ambiguous option: $1
10032 Try \`$0 --help' for more information." >&5
10033 echo "$as_me: error: ambiguous option: $1
10034 Try \`$0 --help' for more information." >&2;}
10035 { (exit 1); exit 1; }; };;
10036 --help | --hel | -h )
10037 echo "$ac_cs_usage"; exit 0 ;;
10038 --debug | --d* | -d )
10040 --file | --fil | --fi | --f )
10042 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
10043 ac_need_defaults=false;;
10044 --header | --heade | --head | --hea )
10046 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
10047 ac_need_defaults=false;;
10049 # This is an error.
10050 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
10051 Try \`$0 --help' for more information." >&5
10052 echo "$as_me: error: unrecognized option: $1
10053 Try \`$0 --help' for more information." >&2;}
10054 { (exit 1); exit 1; }; } ;;
10056 *) ac_config_targets="$ac_config_targets $1" ;;
10064 cat >>$CONFIG_STATUS <<_ACEOF
10066 # INIT-COMMANDS section.
10069 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
10075 cat >>$CONFIG_STATUS <<\_ACEOF
10076 for ac_config_target in $ac_config_targets
10078 case "$ac_config_target" in
10079 # Handling of arguments.
10080 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10081 "libntlm.pc" ) CONFIG_FILES="$CONFIG_FILES libntlm.pc" ;;
10082 "ntlm.h" ) CONFIG_FILES="$CONFIG_FILES ntlm.h" ;;
10083 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
10084 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
10085 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10086 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10087 { (exit 1); exit 1; }; };;
10091 # If the user did not use the arguments to specify the items to instantiate,
10092 # then the envvar interface is used. Set only those that are not.
10093 # We use the long form for the default assignment because of an extremely
10094 # bizarre bug on SunOS 4.1.3.
10095 if $ac_need_defaults; then
10096 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10097 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10098 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10101 # Create a temporary directory, and hook for its removal unless debugging.
10104 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
10105 trap '{ (exit 1); exit 1; }' 1 2 13 15
10108 # Create a (secure) tmp directory for tmp files.
10111 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
10112 test -n "$tmp" && test -d "$tmp"
10115 tmp=$TMPDIR/cs$$-$RANDOM
10116 (umask 077 && mkdir $tmp)
10119 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
10120 { (exit 1); exit 1; }
10125 cat >>$CONFIG_STATUS <<_ACEOF
10128 # CONFIG_FILES section.
10131 # No need to generate the scripts if there are no CONFIG_FILES.
10132 # This happens for instance when ./config.status config.h
10133 if test -n "\$CONFIG_FILES"; then
10134 # Protect against being on the right side of a sed subst in config.status.
10135 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
10136 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
10137 s,@SHELL@,$SHELL,;t t
10138 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
10139 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
10140 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
10141 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
10142 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
10143 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
10144 s,@exec_prefix@,$exec_prefix,;t t
10145 s,@prefix@,$prefix,;t t
10146 s,@program_transform_name@,$program_transform_name,;t t
10147 s,@bindir@,$bindir,;t t
10148 s,@sbindir@,$sbindir,;t t
10149 s,@libexecdir@,$libexecdir,;t t
10150 s,@datadir@,$datadir,;t t
10151 s,@sysconfdir@,$sysconfdir,;t t
10152 s,@sharedstatedir@,$sharedstatedir,;t t
10153 s,@localstatedir@,$localstatedir,;t t
10154 s,@libdir@,$libdir,;t t
10155 s,@includedir@,$includedir,;t t
10156 s,@oldincludedir@,$oldincludedir,;t t
10157 s,@infodir@,$infodir,;t t
10158 s,@mandir@,$mandir,;t t
10159 s,@build_alias@,$build_alias,;t t
10160 s,@host_alias@,$host_alias,;t t
10161 s,@target_alias@,$target_alias,;t t
10162 s,@DEFS@,$DEFS,;t t
10163 s,@ECHO_C@,$ECHO_C,;t t
10164 s,@ECHO_N@,$ECHO_N,;t t
10165 s,@ECHO_T@,$ECHO_T,;t t
10166 s,@LIBS@,$LIBS,;t t
10167 s,@LT_CURRENT@,$LT_CURRENT,;t t
10168 s,@LT_AGE@,$LT_AGE,;t t
10169 s,@LT_REVISION@,$LT_REVISION,;t t
10170 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
10171 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
10172 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
10173 s,@CYGPATH_W@,$CYGPATH_W,;t t
10174 s,@PACKAGE@,$PACKAGE,;t t
10175 s,@VERSION@,$VERSION,;t t
10176 s,@ACLOCAL@,$ACLOCAL,;t t
10177 s,@AUTOCONF@,$AUTOCONF,;t t
10178 s,@AUTOMAKE@,$AUTOMAKE,;t t
10179 s,@AUTOHEADER@,$AUTOHEADER,;t t
10180 s,@MAKEINFO@,$MAKEINFO,;t t
10181 s,@AMTAR@,$AMTAR,;t t
10182 s,@install_sh@,$install_sh,;t t
10183 s,@STRIP@,$STRIP,;t t
10184 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
10185 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
10187 s,@SET_MAKE@,$SET_MAKE,;t t
10188 s,@build@,$build,;t t
10189 s,@build_cpu@,$build_cpu,;t t
10190 s,@build_vendor@,$build_vendor,;t t
10191 s,@build_os@,$build_os,;t t
10192 s,@host@,$host,;t t
10193 s,@host_cpu@,$host_cpu,;t t
10194 s,@host_vendor@,$host_vendor,;t t
10195 s,@host_os@,$host_os,;t t
10197 s,@CFLAGS@,$CFLAGS,;t t
10198 s,@LDFLAGS@,$LDFLAGS,;t t
10199 s,@CPPFLAGS@,$CPPFLAGS,;t t
10200 s,@ac_ct_CC@,$ac_ct_CC,;t t
10201 s,@EXEEXT@,$EXEEXT,;t t
10202 s,@OBJEXT@,$OBJEXT,;t t
10203 s,@DEPDIR@,$DEPDIR,;t t
10204 s,@am__include@,$am__include,;t t
10205 s,@am__quote@,$am__quote,;t t
10206 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
10207 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
10208 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
10209 s,@CCDEPMODE@,$CCDEPMODE,;t t
10210 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
10211 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
10212 s,@LN_S@,$LN_S,;t t
10213 s,@ECHO@,$ECHO,;t t
10214 s,@RANLIB@,$RANLIB,;t t
10215 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
10217 s,@EGREP@,$EGREP,;t t
10218 s,@LIBTOOL@,$LIBTOOL,;t t
10220 s,@CXXFLAGS@,$CXXFLAGS,;t t
10221 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
10222 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
10223 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
10224 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
10225 s,@LIBOBJS@,$LIBOBJS,;t t
10226 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
10231 cat >>$CONFIG_STATUS <<\_ACEOF
10232 # Split the substitutions into bite-sized pieces for seds with
10233 # small command number limits, like on Digital OSF/1 and HP-UX.
10234 ac_max_sed_lines=48
10235 ac_sed_frag=1 # Number of current file.
10236 ac_beg=1 # First line for current file.
10237 ac_end=$ac_max_sed_lines # Line after last line for current file.
10240 while $ac_more_lines; do
10241 if test $ac_beg -gt 1; then
10242 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10244 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10246 if test ! -s $tmp/subs.frag; then
10247 ac_more_lines=false
10249 # The purpose of the label and of the branching condition is to
10250 # speed up the sed processing (if there are no `@' at all, there
10251 # is no need to browse any of the substitutions).
10252 # These are the two extra sed commands mentioned above.
10254 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
10255 if test -z "$ac_sed_cmds"; then
10256 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
10258 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
10260 ac_sed_frag=`expr $ac_sed_frag + 1`
10262 ac_end=`expr $ac_end + $ac_max_sed_lines`
10265 if test -z "$ac_sed_cmds"; then
10268 fi # test -n "$CONFIG_FILES"
10271 cat >>$CONFIG_STATUS <<\_ACEOF
10272 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
10273 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10275 - | *:- | *:-:* ) # input from stdin
10277 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10278 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10279 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10280 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10281 * ) ac_file_in=$ac_file.in ;;
10284 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
10285 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10286 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10287 X"$ac_file" : 'X\(//\)[^/]' \| \
10288 X"$ac_file" : 'X\(//\)$' \| \
10289 X"$ac_file" : 'X\(/\)' \| \
10290 . : '\(.\)' 2>/dev/null ||
10292 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10293 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10294 /^X\(\/\/\)$/{ s//\1/; q; }
10295 /^X\(\/\).*/{ s//\1/; q; }
10297 { if $as_mkdir_p; then
10302 while test ! -d "$as_dir"; do
10303 as_dirs="$as_dir $as_dirs"
10304 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10305 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10306 X"$as_dir" : 'X\(//\)[^/]' \| \
10307 X"$as_dir" : 'X\(//\)$' \| \
10308 X"$as_dir" : 'X\(/\)' \| \
10309 . : '\(.\)' 2>/dev/null ||
10311 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10312 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10313 /^X\(\/\/\)$/{ s//\1/; q; }
10314 /^X\(\/\).*/{ s//\1/; q; }
10317 test ! -n "$as_dirs" || mkdir $as_dirs
10318 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10319 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10320 { (exit 1); exit 1; }; }; }
10324 if test "$ac_dir" != .; then
10325 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10326 # A "../" for each directory in $ac_dir_suffix.
10327 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10329 ac_dir_suffix= ac_top_builddir=
10333 .) # No --srcdir option. We are building in place.
10335 if test -z "$ac_top_builddir"; then
10338 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10340 [\\/]* | ?:[\\/]* ) # Absolute path.
10341 ac_srcdir=$srcdir$ac_dir_suffix;
10342 ac_top_srcdir=$srcdir ;;
10343 *) # Relative path.
10344 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10345 ac_top_srcdir=$ac_top_builddir$srcdir ;;
10347 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
10349 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
10350 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
10351 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
10352 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
10356 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10357 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
10360 if test x"$ac_file" != x-; then
10361 { echo "$as_me:$LINENO: creating $ac_file" >&5
10362 echo "$as_me: creating $ac_file" >&6;}
10365 # Let's still pretend it is `configure' which instantiates (i.e., don't
10366 # use $as_me), people would be surprised to read:
10367 # /* config.h. Generated by config.status. */
10368 if test x"$ac_file" = x-; then
10371 configure_input="$ac_file. "
10373 configure_input=$configure_input"Generated from `echo $ac_file_in |
10374 sed 's,.*/,,'` by configure."
10376 # First look for the input files in the build tree, otherwise in the
10378 ac_file_inputs=`IFS=:
10379 for f in $ac_file_in; do
10381 -) echo $tmp/stdin ;;
10383 # Absolute (can't be DOS-style, as IFS=:)
10384 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10385 echo "$as_me: error: cannot find input file: $f" >&2;}
10386 { (exit 1); exit 1; }; }
10389 if test -f "$f"; then
10392 elif test -f "$srcdir/$f"; then
10397 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10398 echo "$as_me: error: cannot find input file: $f" >&2;}
10399 { (exit 1); exit 1; }; }
10402 done` || { (exit 1); exit 1; }
10404 cat >>$CONFIG_STATUS <<_ACEOF
10408 cat >>$CONFIG_STATUS <<\_ACEOF
10410 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10411 s,@configure_input@,$configure_input,;t t
10412 s,@srcdir@,$ac_srcdir,;t t
10413 s,@abs_srcdir@,$ac_abs_srcdir,;t t
10414 s,@top_srcdir@,$ac_top_srcdir,;t t
10415 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
10416 s,@builddir@,$ac_builddir,;t t
10417 s,@abs_builddir@,$ac_abs_builddir,;t t
10418 s,@top_builddir@,$ac_top_builddir,;t t
10419 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
10420 s,@INSTALL@,$ac_INSTALL,;t t
10421 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
10423 if test x"$ac_file" != x-; then
10424 mv $tmp/out $ac_file
10432 cat >>$CONFIG_STATUS <<\_ACEOF
10435 # CONFIG_HEADER section.
10438 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
10439 # NAME is the cpp macro being defined and VALUE is the value it is being given.
10441 # ac_d sets the value in "#define NAME VALUE" lines.
10442 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
10443 ac_dB='[ ].*$,\1#\2'
10446 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10447 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10448 ac_uB='$,\1#\2define\3'
10452 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
10453 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10455 - | *:- | *:-:* ) # input from stdin
10457 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10458 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10459 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10460 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10461 * ) ac_file_in=$ac_file.in ;;
10464 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
10465 echo "$as_me: creating $ac_file" >&6;}
10467 # First look for the input files in the build tree, otherwise in the
10469 ac_file_inputs=`IFS=:
10470 for f in $ac_file_in; do
10472 -) echo $tmp/stdin ;;
10474 # Absolute (can't be DOS-style, as IFS=:)
10475 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10476 echo "$as_me: error: cannot find input file: $f" >&2;}
10477 { (exit 1); exit 1; }; }
10480 if test -f "$f"; then
10483 elif test -f "$srcdir/$f"; then
10488 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10489 echo "$as_me: error: cannot find input file: $f" >&2;}
10490 { (exit 1); exit 1; }; }
10493 done` || { (exit 1); exit 1; }
10494 # Remove the trailing spaces.
10495 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
10499 # Transform confdefs.h into two sed scripts, `conftest.defines' and
10500 # `conftest.undefs', that substitutes the proper values into
10501 # config.h.in to produce config.h. The first handles `#define'
10502 # templates, and the second `#undef' templates.
10503 # And first: Protect against being on the right side of a sed subst in
10504 # config.status. Protect against being in an unquoted here document
10505 # in config.status.
10506 rm -f conftest.defines conftest.undefs
10507 # Using a here document instead of a string reduces the quoting nightmare.
10508 # Putting comments in sed scripts is not portable.
10510 # `end' is used to avoid that the second main sed command (meant for
10511 # 0-ary CPP macros) applies to n-ary macro definitions.
10512 # See the Autoconf documentation for `clear'.
10513 cat >confdef2sed.sed <<\_ACEOF
10518 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
10520 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
10523 # If some macros were called several times there might be several times
10524 # the same #defines, which is useless. Nevertheless, we may not want to
10525 # sort them, since we want the *last* AC-DEFINE to be honored.
10526 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
10527 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
10528 rm -f confdef2sed.sed
10530 # This sed command replaces #undef with comments. This is necessary, for
10531 # example, in the case of _POSIX_SOURCE, which is predefined and required
10532 # on some systems where configure will not decide to define it.
10533 cat >>conftest.undefs <<\_ACEOF
10534 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
10537 # Break up conftest.defines because some shells have a limit on the size
10538 # of here documents, and old seds have small limits too (100 cmds).
10539 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
10540 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
10541 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
10542 echo ' :' >>$CONFIG_STATUS
10543 rm -f conftest.tail
10544 while grep . conftest.defines >/dev/null
10546 # Write a limited-size here document to $tmp/defines.sed.
10547 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
10548 # Speed up: don't consider the non `#define' lines.
10549 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
10550 # Work around the forget-to-reset-the-flag bug.
10551 echo 't clr' >>$CONFIG_STATUS
10552 echo ': clr' >>$CONFIG_STATUS
10553 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
10555 sed -f $tmp/defines.sed $tmp/in >$tmp/out
10557 mv $tmp/out $tmp/in
10559 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
10560 rm -f conftest.defines
10561 mv conftest.tail conftest.defines
10563 rm -f conftest.defines
10564 echo ' fi # grep' >>$CONFIG_STATUS
10565 echo >>$CONFIG_STATUS
10567 # Break up conftest.undefs because some shells have a limit on the size
10568 # of here documents, and old seds have small limits too (100 cmds).
10569 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
10570 rm -f conftest.tail
10571 while grep . conftest.undefs >/dev/null
10573 # Write a limited-size here document to $tmp/undefs.sed.
10574 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
10575 # Speed up: don't consider the non `#undef'
10576 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
10577 # Work around the forget-to-reset-the-flag bug.
10578 echo 't clr' >>$CONFIG_STATUS
10579 echo ': clr' >>$CONFIG_STATUS
10580 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
10582 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
10584 mv $tmp/out $tmp/in
10586 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
10587 rm -f conftest.undefs
10588 mv conftest.tail conftest.undefs
10590 rm -f conftest.undefs
10592 cat >>$CONFIG_STATUS <<\_ACEOF
10593 # Let's still pretend it is `configure' which instantiates (i.e., don't
10594 # use $as_me), people would be surprised to read:
10595 # /* config.h. Generated by config.status. */
10596 if test x"$ac_file" = x-; then
10597 echo "/* Generated by configure. */" >$tmp/config.h
10599 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
10601 cat $tmp/in >>$tmp/config.h
10603 if test x"$ac_file" != x-; then
10604 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
10605 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10606 echo "$as_me: $ac_file is unchanged" >&6;}
10608 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10609 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10610 X"$ac_file" : 'X\(//\)[^/]' \| \
10611 X"$ac_file" : 'X\(//\)$' \| \
10612 X"$ac_file" : 'X\(/\)' \| \
10613 . : '\(.\)' 2>/dev/null ||
10615 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10616 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10617 /^X\(\/\/\)$/{ s//\1/; q; }
10618 /^X\(\/\).*/{ s//\1/; q; }
10620 { if $as_mkdir_p; then
10625 while test ! -d "$as_dir"; do
10626 as_dirs="$as_dir $as_dirs"
10627 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10628 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10629 X"$as_dir" : 'X\(//\)[^/]' \| \
10630 X"$as_dir" : 'X\(//\)$' \| \
10631 X"$as_dir" : 'X\(/\)' \| \
10632 . : '\(.\)' 2>/dev/null ||
10634 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10635 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10636 /^X\(\/\/\)$/{ s//\1/; q; }
10637 /^X\(\/\).*/{ s//\1/; q; }
10640 test ! -n "$as_dirs" || mkdir $as_dirs
10641 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10642 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10643 { (exit 1); exit 1; }; }; }
10646 mv $tmp/config.h $ac_file
10650 rm -f $tmp/config.h
10652 _am_stamp_count=`expr ${_am_stamp_count-0} + 1`
10653 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
10654 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10655 X$ac_file : 'X\(//\)[^/]' \| \
10656 X$ac_file : 'X\(//\)$' \| \
10657 X$ac_file : 'X\(/\)' \| \
10658 . : '\(.\)' 2>/dev/null ||
10660 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10661 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10662 /^X\(\/\/\)$/{ s//\1/; q; }
10663 /^X\(\/\).*/{ s//\1/; q; }
10664 s/.*/./; q'`/stamp-h$_am_stamp_count
10667 cat >>$CONFIG_STATUS <<\_ACEOF
10670 # CONFIG_COMMANDS section.
10672 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
10673 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
10674 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
10675 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
10676 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10677 X"$ac_dest" : 'X\(//\)[^/]' \| \
10678 X"$ac_dest" : 'X\(//\)$' \| \
10679 X"$ac_dest" : 'X\(/\)' \| \
10680 . : '\(.\)' 2>/dev/null ||
10682 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10683 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10684 /^X\(\/\/\)$/{ s//\1/; q; }
10685 /^X\(\/\).*/{ s//\1/; q; }
10689 if test "$ac_dir" != .; then
10690 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10691 # A "../" for each directory in $ac_dir_suffix.
10692 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10694 ac_dir_suffix= ac_top_builddir=
10698 .) # No --srcdir option. We are building in place.
10700 if test -z "$ac_top_builddir"; then
10703 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10705 [\\/]* | ?:[\\/]* ) # Absolute path.
10706 ac_srcdir=$srcdir$ac_dir_suffix;
10707 ac_top_srcdir=$srcdir ;;
10708 *) # Relative path.
10709 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10710 ac_top_srcdir=$ac_top_builddir$srcdir ;;
10712 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
10714 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
10715 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
10716 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
10717 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
10720 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
10721 echo "$as_me: executing $ac_dest commands" >&6;}
10723 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
10724 # Strip MF so we end up with the name of the file.
10725 mf=`echo "$mf" | sed -e 's/:.*$//'`
10726 # Check whether this is an Automake generated Makefile or not.
10727 # We used to match only the files named `Makefile.in', but
10728 # some people rename them; so instead we look at the file content.
10729 # Grep'ing the first line is not enough: some people post-process
10730 # each Makefile.in and add a new line on top of each file to say so.
10731 # So let's grep whole file.
10732 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
10733 dirpart=`(dirname "$mf") 2>/dev/null ||
10734 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10735 X"$mf" : 'X\(//\)[^/]' \| \
10736 X"$mf" : 'X\(//\)$' \| \
10737 X"$mf" : 'X\(/\)' \| \
10738 . : '\(.\)' 2>/dev/null ||
10740 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10741 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10742 /^X\(\/\/\)$/{ s//\1/; q; }
10743 /^X\(\/\).*/{ s//\1/; q; }
10748 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
10749 # Extract the definition of DEP_FILES from the Makefile without
10751 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
10752 test -z "$DEPDIR" && continue
10753 # When using ansi2knr, U may be empty or an underscore; expand it
10754 U=`sed -n -e '/^U = / s///p' < "$mf"`
10755 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
10756 # We invoke sed twice because it is the simplest approach to
10757 # changing $(DEPDIR) to its actual value in the expansion.
10758 for file in `sed -n -e '
10759 /^DEP_FILES = .*\\\\$/ {
10768 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
10769 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
10770 # Make sure the directory exists.
10771 test -f "$dirpart/$file" && continue
10772 fdir=`(dirname "$file") 2>/dev/null ||
10773 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10774 X"$file" : 'X\(//\)[^/]' \| \
10775 X"$file" : 'X\(//\)$' \| \
10776 X"$file" : 'X\(/\)' \| \
10777 . : '\(.\)' 2>/dev/null ||
10779 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10780 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10781 /^X\(\/\/\)$/{ s//\1/; q; }
10782 /^X\(\/\).*/{ s//\1/; q; }
10784 { if $as_mkdir_p; then
10785 mkdir -p $dirpart/$fdir
10787 as_dir=$dirpart/$fdir
10789 while test ! -d "$as_dir"; do
10790 as_dirs="$as_dir $as_dirs"
10791 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10792 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10793 X"$as_dir" : 'X\(//\)[^/]' \| \
10794 X"$as_dir" : 'X\(//\)$' \| \
10795 X"$as_dir" : 'X\(/\)' \| \
10796 . : '\(.\)' 2>/dev/null ||
10798 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10799 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10800 /^X\(\/\/\)$/{ s//\1/; q; }
10801 /^X\(\/\).*/{ s//\1/; q; }
10804 test ! -n "$as_dirs" || mkdir $as_dirs
10805 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
10806 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
10807 { (exit 1); exit 1; }; }; }
10809 # echo "creating $dirpart/$file"
10810 echo '# dummy' > "$dirpart/$file"
10818 cat >>$CONFIG_STATUS <<\_ACEOF
10820 { (exit 0); exit 0; }
10822 chmod +x $CONFIG_STATUS
10823 ac_clean_files=$ac_clean_files_save
10826 # configure is writing to config.log, and then calls config.status.
10827 # config.status does its own redirection, appending to config.log.
10828 # Unfortunately, on DOS this fails, as config.log is still kept open
10829 # by configure, so config.status won't be able to write to it; its
10830 # output is simply discarded. So we exec the FD to /dev/null,
10831 # effectively closing config.log, so it can be properly (re)opened and
10832 # appended to by config.status. When coming back to configure, we
10833 # need to make the FD available again.
10834 if test "$no_create" != yes; then
10837 $SHELL $CONFIG_STATUS || ac_cs_success=false
10839 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10840 # would make configure fail if this is the last instruction.
10841 $ac_cs_success || { (exit 1); exit 1; }