2 @%:@ Guess values for system-dependent variables and create Makefiles.
3 @%:@ Generated by GNU Autoconf 2.59.
5 @%:@ Copyright (C) 2003 Free Software Foundation, Inc.
6 @%:@ This configure script is free software; the Free Software Foundation
7 @%:@ gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 if expr a : '\(a\)' >/dev/null 2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.file conf$$ 2>/dev/null; then
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
221 test -d ./-p && rmdir ./-p
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
244 # Find the correct PATH separator. Usually this is `:', but
245 # DJGPP uses `;' like DOS.
246 if test "X${PATH_SEPARATOR+set}" != Xset; then
247 UNAME=${UNAME-`uname 2>/dev/null`}
249 *-DOS) lt_cv_sys_path_separator=';' ;;
250 *) lt_cv_sys_path_separator=':' ;;
252 PATH_SEPARATOR=$lt_cv_sys_path_separator
256 # Check that we are running under the correct shell.
257 SHELL=${CONFIG_SHELL-/bin/sh}
261 # Remove one level of quotation (which was required for Make).
262 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
267 if test "X$1" = X--no-reexec; then
268 # Discard the --no-reexec flag, and continue.
270 elif test "X$1" = X--fallback-echo; then
271 # Avoid inline document here, it may be left over
273 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
274 # Yippee, $echo works!
277 # Restart under the correct shell.
278 exec $SHELL "$0" --no-reexec ${1+"$@"}
281 if test "X$1" = X--fallback-echo; then
282 # used as fallback echo
290 # The HP-UX ksh and POSIX shell print the target directory to stdout
292 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
294 if test -z "$ECHO"; then
295 if test "X${echo_test_string+set}" != Xset; then
296 # find a string as large as possible, as long as the shell can cope with it
297 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
298 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
299 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
300 echo_test_string="`eval $cmd`" &&
301 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
308 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
309 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
310 test "X$echo_testing_string" = "X$echo_test_string"; then
313 # The Solaris, AIX, and Digital Unix default echo programs unquote
314 # backslashes. This makes it impossible to quote backslashes using
315 # echo "$something" | sed 's/\\/\\\\/g'
317 # So, first we look for a working echo in the user's PATH.
319 IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
320 for dir in $PATH /usr/ucb; do
321 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
322 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
323 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
324 test "X$echo_testing_string" = "X$echo_test_string"; then
331 if test "X$echo" = Xecho; then
332 # We didn't find a better echo, so look for alternatives.
333 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
334 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
335 test "X$echo_testing_string" = "X$echo_test_string"; then
336 # This shell has a builtin print -r that does the trick.
338 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
339 test "X$CONFIG_SHELL" != X/bin/ksh; then
340 # If we have ksh, try running configure again with it.
341 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
342 export ORIGINAL_CONFIG_SHELL
343 CONFIG_SHELL=/bin/ksh
345 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
349 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
350 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
351 test "X$echo_testing_string" = "X$echo_test_string"; then
354 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
355 test "X$echo_testing_string" = 'X\t' &&
356 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
357 test "X$echo_testing_string" = "X$echo_test_string"; then
358 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
360 SHELL="$CONFIG_SHELL"
362 echo="$CONFIG_SHELL $0 --fallback-echo"
363 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
364 test "X$echo_testing_string" = 'X\t' &&
365 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
366 test "X$echo_testing_string" = "X$echo_test_string"; then
367 echo="$CONFIG_SHELL $0 --fallback-echo"
369 # maybe with a smaller string...
372 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
373 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
380 if test "$prev" != 'sed 50q "$0"'; then
381 echo_test_string=`eval $prev`
382 export echo_test_string
383 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
385 # Oops. We lost completely, so just stick with echo.
394 # Copy echo and quote the copy suitably for passing to libtool from
395 # the Makefile, instead of quoting the original, which is used later.
397 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
398 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
404 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
405 # so uname gets run too.
406 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
413 ac_default_prefix=/usr/local
414 ac_config_libobj_dir=.
419 SHELL=${CONFIG_SHELL-/bin/sh}
421 # Maximum number of lines to put in a shell here document.
422 # This variable seems obsolete. It should probably be removed, and
423 # only ac_max_sed_lines should be used.
424 : ${ac_max_here_lines=38}
426 # Identity of this package.
433 ac_unique_file="hesiod.c"
434 # Factoring default headers for most tests.
435 ac_includes_default="\
438 # include <sys/types.h>
441 # include <sys/stat.h>
452 # if !STDC_HEADERS && HAVE_MEMORY_H
458 # include <strings.h>
461 # include <inttypes.h>
471 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 CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB ac_ct_RANLIB build build_cpu build_vendor build_os host host_cpu host_vendor host_os LN_S ECHO STRIP ac_ct_STRIP CPP EGREP LIBTOOL LIB@&t@OBJS LTLIBOBJS'
474 # Initialize some variables set by options.
476 ac_init_version=false
477 # The variables have the same names as the options, with
478 # dashes changed to underlines.
486 program_transform_name=s,x,x,
494 # Installation directory options.
495 # These are left unexpanded so users can "make install exec_prefix=/foo"
496 # and all the variables that are supposed to be based on exec_prefix
497 # by default will actually change.
498 # Use braces instead of parens because sh, perl, etc. also accept them.
499 bindir='${exec_prefix}/bin'
500 sbindir='${exec_prefix}/sbin'
501 libexecdir='${exec_prefix}/libexec'
502 datadir='${prefix}/share'
503 sysconfdir='${prefix}/etc'
504 sharedstatedir='${prefix}/com'
505 localstatedir='${prefix}/var'
506 libdir='${exec_prefix}/lib'
507 includedir='${prefix}/include'
508 oldincludedir='/usr/include'
509 infodir='${prefix}/info'
510 mandir='${prefix}/man'
515 # If the previous option needs an argument, assign it.
516 if test -n "$ac_prev"; then
517 eval "$ac_prev=\$ac_option"
522 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
524 # Accept the important Cygnus configure options, so we can diagnose typos.
528 -bindir | --bindir | --bindi | --bind | --bin | --bi)
530 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
533 -build | --build | --buil | --bui | --bu)
534 ac_prev=build_alias ;;
535 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
536 build_alias=$ac_optarg ;;
538 -cache-file | --cache-file | --cache-fil | --cache-fi \
539 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
540 ac_prev=cache_file ;;
541 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
542 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
543 cache_file=$ac_optarg ;;
546 cache_file=config.cache ;;
548 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
550 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
552 datadir=$ac_optarg ;;
554 -disable-* | --disable-*)
555 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
556 # Reject names that are not valid shell variable names.
557 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
558 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
559 { (exit 1); exit 1; }; }
560 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
561 eval "enable_$ac_feature=no" ;;
563 -enable-* | --enable-*)
564 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
565 # Reject names that are not valid shell variable names.
566 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
567 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
568 { (exit 1); exit 1; }; }
569 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
571 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
574 eval "enable_$ac_feature='$ac_optarg'" ;;
576 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
577 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
578 | --exec | --exe | --ex)
579 ac_prev=exec_prefix ;;
580 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
581 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
582 | --exec=* | --exe=* | --ex=*)
583 exec_prefix=$ac_optarg ;;
585 -gas | --gas | --ga | --g)
586 # Obsolete; use --with-gas.
589 -help | --help | --hel | --he | -h)
591 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
592 ac_init_help=recursive ;;
593 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
594 ac_init_help=short ;;
596 -host | --host | --hos | --ho)
597 ac_prev=host_alias ;;
598 -host=* | --host=* | --hos=* | --ho=*)
599 host_alias=$ac_optarg ;;
601 -includedir | --includedir | --includedi | --included | --include \
602 | --includ | --inclu | --incl | --inc)
603 ac_prev=includedir ;;
604 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
605 | --includ=* | --inclu=* | --incl=* | --inc=*)
606 includedir=$ac_optarg ;;
608 -infodir | --infodir | --infodi | --infod | --info | --inf)
610 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
611 infodir=$ac_optarg ;;
613 -libdir | --libdir | --libdi | --libd)
615 -libdir=* | --libdir=* | --libdi=* | --libd=*)
618 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
619 | --libexe | --libex | --libe)
620 ac_prev=libexecdir ;;
621 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
622 | --libexe=* | --libex=* | --libe=*)
623 libexecdir=$ac_optarg ;;
625 -localstatedir | --localstatedir | --localstatedi | --localstated \
626 | --localstate | --localstat | --localsta | --localst \
627 | --locals | --local | --loca | --loc | --lo)
628 ac_prev=localstatedir ;;
629 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
630 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
631 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
632 localstatedir=$ac_optarg ;;
634 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
636 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
640 # Obsolete; use --without-fp.
643 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
644 | --no-cr | --no-c | -n)
647 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
648 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
651 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
652 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
653 | --oldin | --oldi | --old | --ol | --o)
654 ac_prev=oldincludedir ;;
655 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
656 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
657 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
658 oldincludedir=$ac_optarg ;;
660 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
662 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
665 -program-prefix | --program-prefix | --program-prefi | --program-pref \
666 | --program-pre | --program-pr | --program-p)
667 ac_prev=program_prefix ;;
668 -program-prefix=* | --program-prefix=* | --program-prefi=* \
669 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
670 program_prefix=$ac_optarg ;;
672 -program-suffix | --program-suffix | --program-suffi | --program-suff \
673 | --program-suf | --program-su | --program-s)
674 ac_prev=program_suffix ;;
675 -program-suffix=* | --program-suffix=* | --program-suffi=* \
676 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
677 program_suffix=$ac_optarg ;;
679 -program-transform-name | --program-transform-name \
680 | --program-transform-nam | --program-transform-na \
681 | --program-transform-n | --program-transform- \
682 | --program-transform | --program-transfor \
683 | --program-transfo | --program-transf \
684 | --program-trans | --program-tran \
685 | --progr-tra | --program-tr | --program-t)
686 ac_prev=program_transform_name ;;
687 -program-transform-name=* | --program-transform-name=* \
688 | --program-transform-nam=* | --program-transform-na=* \
689 | --program-transform-n=* | --program-transform-=* \
690 | --program-transform=* | --program-transfor=* \
691 | --program-transfo=* | --program-transf=* \
692 | --program-trans=* | --program-tran=* \
693 | --progr-tra=* | --program-tr=* | --program-t=*)
694 program_transform_name=$ac_optarg ;;
696 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
697 | -silent | --silent | --silen | --sile | --sil)
700 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
702 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
704 sbindir=$ac_optarg ;;
706 -sharedstatedir | --sharedstatedir | --sharedstatedi \
707 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
708 | --sharedst | --shareds | --shared | --share | --shar \
710 ac_prev=sharedstatedir ;;
711 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
712 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
713 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
715 sharedstatedir=$ac_optarg ;;
717 -site | --site | --sit)
719 -site=* | --site=* | --sit=*)
722 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
724 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
727 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
728 | --syscon | --sysco | --sysc | --sys | --sy)
729 ac_prev=sysconfdir ;;
730 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
731 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
732 sysconfdir=$ac_optarg ;;
734 -target | --target | --targe | --targ | --tar | --ta | --t)
735 ac_prev=target_alias ;;
736 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
737 target_alias=$ac_optarg ;;
739 -v | -verbose | --verbose | --verbos | --verbo | --verb)
742 -version | --version | --versio | --versi | --vers | -V)
746 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
747 # Reject names that are not valid shell variable names.
748 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
749 { echo "$as_me: error: invalid package name: $ac_package" >&2
750 { (exit 1); exit 1; }; }
751 ac_package=`echo $ac_package| sed 's/-/_/g'`
753 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
756 eval "with_$ac_package='$ac_optarg'" ;;
758 -without-* | --without-*)
759 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
760 # Reject names that are not valid shell variable names.
761 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
762 { echo "$as_me: error: invalid package name: $ac_package" >&2
763 { (exit 1); exit 1; }; }
764 ac_package=`echo $ac_package | sed 's/-/_/g'`
765 eval "with_$ac_package=no" ;;
768 # Obsolete; use --with-x.
771 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
772 | --x-incl | --x-inc | --x-in | --x-i)
773 ac_prev=x_includes ;;
774 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
775 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
776 x_includes=$ac_optarg ;;
778 -x-libraries | --x-libraries | --x-librarie | --x-librari \
779 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
780 ac_prev=x_libraries ;;
781 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
782 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
783 x_libraries=$ac_optarg ;;
785 -*) { echo "$as_me: error: unrecognized option: $ac_option
786 Try \`$0 --help' for more information." >&2
787 { (exit 1); exit 1; }; }
791 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
792 # Reject names that are not valid shell variable names.
793 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
794 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
795 { (exit 1); exit 1; }; }
796 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
797 eval "$ac_envvar='$ac_optarg'"
801 # FIXME: should be removed in autoconf 3.0.
802 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
803 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
804 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
805 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
811 if test -n "$ac_prev"; then
812 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
813 { echo "$as_me: error: missing argument to $ac_option" >&2
814 { (exit 1); exit 1; }; }
817 # Be sure to have absolute paths.
818 for ac_var in exec_prefix prefix
820 eval ac_val=$`echo $ac_var`
822 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
823 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
824 { (exit 1); exit 1; }; };;
828 # Be sure to have absolute paths.
829 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
830 localstatedir libdir includedir oldincludedir infodir mandir
832 eval ac_val=$`echo $ac_var`
834 [\\/$]* | ?:[\\/]* ) ;;
835 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
836 { (exit 1); exit 1; }; };;
840 # There might be people who depend on the old broken behavior: `$host'
841 # used to hold the argument of --host etc.
842 # FIXME: To remove some day.
847 # FIXME: To remove some day.
848 if test "x$host_alias" != x; then
849 if test "x$build_alias" = x; then
850 cross_compiling=maybe
851 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
852 If a cross compiler is detected then cross compile mode will be used." >&2
853 elif test "x$build_alias" != "x$host_alias"; then
859 test -n "$host_alias" && ac_tool_prefix=$host_alias-
861 test "$silent" = yes && exec 6>/dev/null
864 # Find the source files, if location was not specified.
865 if test -z "$srcdir"; then
866 ac_srcdir_defaulted=yes
867 # Try the directory containing this script, then its parent.
868 ac_confdir=`(dirname "$0") 2>/dev/null ||
869 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
870 X"$0" : 'X\(//\)[^/]' \| \
871 X"$0" : 'X\(//\)$' \| \
872 X"$0" : 'X\(/\)' \| \
873 . : '\(.\)' 2>/dev/null ||
875 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
876 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
877 /^X\(\/\/\)$/{ s//\1/; q; }
878 /^X\(\/\).*/{ s//\1/; q; }
881 if test ! -r $srcdir/$ac_unique_file; then
885 ac_srcdir_defaulted=no
887 if test ! -r $srcdir/$ac_unique_file; then
888 if test "$ac_srcdir_defaulted" = yes; then
889 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
890 { (exit 1); exit 1; }; }
892 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
893 { (exit 1); exit 1; }; }
896 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
897 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
898 { (exit 1); exit 1; }; }
899 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
900 ac_env_build_alias_set=${build_alias+set}
901 ac_env_build_alias_value=$build_alias
902 ac_cv_env_build_alias_set=${build_alias+set}
903 ac_cv_env_build_alias_value=$build_alias
904 ac_env_host_alias_set=${host_alias+set}
905 ac_env_host_alias_value=$host_alias
906 ac_cv_env_host_alias_set=${host_alias+set}
907 ac_cv_env_host_alias_value=$host_alias
908 ac_env_target_alias_set=${target_alias+set}
909 ac_env_target_alias_value=$target_alias
910 ac_cv_env_target_alias_set=${target_alias+set}
911 ac_cv_env_target_alias_value=$target_alias
912 ac_env_CC_set=${CC+set}
914 ac_cv_env_CC_set=${CC+set}
915 ac_cv_env_CC_value=$CC
916 ac_env_CFLAGS_set=${CFLAGS+set}
917 ac_env_CFLAGS_value=$CFLAGS
918 ac_cv_env_CFLAGS_set=${CFLAGS+set}
919 ac_cv_env_CFLAGS_value=$CFLAGS
920 ac_env_LDFLAGS_set=${LDFLAGS+set}
921 ac_env_LDFLAGS_value=$LDFLAGS
922 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
923 ac_cv_env_LDFLAGS_value=$LDFLAGS
924 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
925 ac_env_CPPFLAGS_value=$CPPFLAGS
926 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
927 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
928 ac_env_CPP_set=${CPP+set}
929 ac_env_CPP_value=$CPP
930 ac_cv_env_CPP_set=${CPP+set}
931 ac_cv_env_CPP_value=$CPP
934 # Report the --help message.
936 if test "$ac_init_help" = "long"; then
937 # Omit some internal or obsolete options to make the list less imposing.
938 # This message is too long to be a string in the A/UX 3.1 sh.
940 \`configure' configures this package to adapt to many kinds of systems.
942 Usage: $0 [OPTION]... [VAR=VALUE]...
944 To assign environment variables (e.g., CC, CFLAGS...), specify them as
945 VAR=VALUE. See below for descriptions of some of the useful variables.
947 Defaults for the options are specified in brackets.
950 -h, --help display this help and exit
951 --help=short display options specific to this package
952 --help=recursive display the short help of all the included packages
953 -V, --version display version information and exit
954 -q, --quiet, --silent do not print \`checking...' messages
955 --cache-file=FILE cache test results in FILE [disabled]
956 -C, --config-cache alias for \`--cache-file=config.cache'
957 -n, --no-create do not create output files
958 --srcdir=DIR find the sources in DIR [configure dir or \`..']
963 Installation directories:
964 --prefix=PREFIX install architecture-independent files in PREFIX
966 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
969 By default, \`make install' will install all the files in
970 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
971 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
972 for instance \`--prefix=\$HOME'.
974 For better control, use the options below.
976 Fine tuning of the installation directories:
977 --bindir=DIR user executables [EPREFIX/bin]
978 --sbindir=DIR system admin executables [EPREFIX/sbin]
979 --libexecdir=DIR program executables [EPREFIX/libexec]
980 --datadir=DIR read-only architecture-independent data [PREFIX/share]
981 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
982 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
983 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
984 --libdir=DIR object code libraries [EPREFIX/lib]
985 --includedir=DIR C header files [PREFIX/include]
986 --oldincludedir=DIR C header files for non-gcc [/usr/include]
987 --infodir=DIR info documentation [PREFIX/info]
988 --mandir=DIR man documentation [PREFIX/man]
994 --build=BUILD configure for building on BUILD [guessed]
995 --host=HOST cross-compile to build programs to run on HOST [BUILD]
999 if test -n "$ac_init_help"; then
1004 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1005 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1006 --enable-shared=PKGS build shared libraries default=yes
1007 --enable-static=PKGS build static libraries default=yes
1008 --enable-fast-install=PKGS optimize for fast installation default=yes
1009 --disable-libtool-lock avoid locking (might break parallel builds)
1012 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1013 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1014 --with-gnu-ld assume the C compiler uses GNU ld default=no
1015 --with-pic try to use only PIC/non-PIC objects default=use both
1017 Some influential environment variables:
1018 CC C compiler command
1019 CFLAGS C compiler flags
1020 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1021 nonstandard directory <lib dir>
1022 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1023 headers in a nonstandard directory <include dir>
1026 Use these variables to override the choices made by `configure' or to help
1027 it to find libraries and programs with nonstandard names/locations.
1032 if test "$ac_init_help" = "recursive"; then
1033 # If there are subdirs, report their specific --help.
1035 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1036 test -d $ac_dir || continue
1039 if test "$ac_dir" != .; then
1040 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1041 # A "../" for each directory in $ac_dir_suffix.
1042 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1044 ac_dir_suffix= ac_top_builddir=
1048 .) # No --srcdir option. We are building in place.
1050 if test -z "$ac_top_builddir"; then
1053 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1055 [\\/]* | ?:[\\/]* ) # Absolute path.
1056 ac_srcdir=$srcdir$ac_dir_suffix;
1057 ac_top_srcdir=$srcdir ;;
1059 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1060 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1063 # Do not use `cd foo && pwd` to compute absolute paths, because
1064 # the directories may not exist.
1066 .) ac_abs_builddir="$ac_dir";;
1069 .) ac_abs_builddir=`pwd`;;
1070 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1071 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1074 case $ac_abs_builddir in
1075 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1077 case ${ac_top_builddir}. in
1078 .) ac_abs_top_builddir=$ac_abs_builddir;;
1079 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1080 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1083 case $ac_abs_builddir in
1084 .) ac_abs_srcdir=$ac_srcdir;;
1087 .) ac_abs_srcdir=$ac_abs_builddir;;
1088 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1089 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1092 case $ac_abs_builddir in
1093 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1095 case $ac_top_srcdir in
1096 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1097 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1098 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1103 # Check for guested configure; otherwise get Cygnus style configure.
1104 if test -f $ac_srcdir/configure.gnu; then
1106 $SHELL $ac_srcdir/configure.gnu --help=recursive
1107 elif test -f $ac_srcdir/configure; then
1109 $SHELL $ac_srcdir/configure --help=recursive
1110 elif test -f $ac_srcdir/configure.ac ||
1111 test -f $ac_srcdir/configure.in; then
1113 $ac_configure --help
1115 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1121 test -n "$ac_init_help" && exit 0
1122 if $ac_init_version; then
1125 Copyright (C) 2003 Free Software Foundation, Inc.
1126 This configure script is free software; the Free Software Foundation
1127 gives unlimited permission to copy, distribute and modify it.
1133 This file contains any messages produced by compilers while
1134 running configure, to aid debugging if configure makes a mistake.
1136 It was created by $as_me, which was
1137 generated by GNU Autoconf 2.59. Invocation command line was
1144 @%:@@%:@ --------- @%:@@%:@
1145 @%:@@%:@ Platform. @%:@@%:@
1146 @%:@@%:@ --------- @%:@@%:@
1148 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1149 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1150 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1151 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1152 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1154 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1155 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1157 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1158 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1159 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1160 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1161 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1162 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1163 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1171 test -z "$as_dir" && as_dir=.
1172 echo "PATH: $as_dir"
1180 @%:@@%:@ ----------- @%:@@%:@
1181 @%:@@%:@ Core tests. @%:@@%:@
1182 @%:@@%:@ ----------- @%:@@%:@
1187 # Keep a trace of the command line.
1188 # Strip out --no-create and --no-recursion so they do not pile up.
1189 # Strip out --silent because we don't want to record it for future runs.
1190 # Also quote any args containing shell meta-characters.
1191 # Make two passes to allow for proper duplicate-argument suppression.
1196 ac_must_keep_next=false
1202 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1203 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1204 | -silent | --silent | --silen | --sile | --sil)
1206 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1207 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1210 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1212 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1213 if test $ac_must_keep_next = true; then
1214 ac_must_keep_next=false # Got value, back to normal.
1217 *=* | --config-cache | -C | -disable-* | --disable-* \
1218 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1219 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1220 | -with-* | --with-* | -without-* | --without-* | --x)
1221 case "$ac_configure_args0 " in
1222 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1225 -* ) ac_must_keep_next=true ;;
1228 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1229 # Get rid of the leading space.
1235 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1236 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1238 # When interrupted or exit'd, cleanup temporary files, and complete
1239 # config.log. We remove comments because anyway the quotes in there
1240 # would cause problems or look ugly.
1241 # WARNING: Be sure not to use single quotes in there, as some shells,
1242 # such as our DU 5.0 friend, will then `close' the trap.
1243 trap 'exit_status=$?
1244 # Save into config.log some information that might help in debugging.
1249 @%:@@%:@ ---------------- @%:@@%:@
1250 @%:@@%:@ Cache variables. @%:@@%:@
1251 @%:@@%:@ ---------------- @%:@@%:@
1254 # The following way of writing the cache mishandles newlines in values,
1257 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1260 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1261 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1265 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1272 @%:@@%:@ ----------------- @%:@@%:@
1273 @%:@@%:@ Output variables. @%:@@%:@
1274 @%:@@%:@ ----------------- @%:@@%:@
1277 for ac_var in $ac_subst_vars
1279 eval ac_val=$`echo $ac_var`
1280 echo "$ac_var='"'"'$ac_val'"'"'"
1284 if test -n "$ac_subst_files"; then
1286 @%:@@%:@ ------------- @%:@@%:@
1287 @%:@@%:@ Output files. @%:@@%:@
1288 @%:@@%:@ ------------- @%:@@%:@
1291 for ac_var in $ac_subst_files
1293 eval ac_val=$`echo $ac_var`
1294 echo "$ac_var='"'"'$ac_val'"'"'"
1299 if test -s confdefs.h; then
1301 @%:@@%:@ ----------- @%:@@%:@
1302 @%:@@%:@ confdefs.h. @%:@@%:@
1303 @%:@@%:@ ----------- @%:@@%:@
1306 sed "/^$/d" confdefs.h | sort
1309 test "$ac_signal" != 0 &&
1310 echo "$as_me: caught signal $ac_signal"
1311 echo "$as_me: exit $exit_status"
1313 rm -f core *.core &&
1314 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1317 for ac_signal in 1 2 13 15; do
1318 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1322 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1323 rm -rf conftest* confdefs.h
1324 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1327 # Predefined preprocessor variables.
1329 cat >>confdefs.h <<_ACEOF
1330 @%:@define PACKAGE_NAME "$PACKAGE_NAME"
1334 cat >>confdefs.h <<_ACEOF
1335 @%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1339 cat >>confdefs.h <<_ACEOF
1340 @%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
1344 cat >>confdefs.h <<_ACEOF
1345 @%:@define PACKAGE_STRING "$PACKAGE_STRING"
1349 cat >>confdefs.h <<_ACEOF
1350 @%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1354 # Let the site file select an alternate cache file if it wants to.
1355 # Prefer explicitly selected file to automatically selected ones.
1356 if test -z "$CONFIG_SITE"; then
1357 if test "x$prefix" != xNONE; then
1358 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1360 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1363 for ac_site_file in $CONFIG_SITE; do
1364 if test -r "$ac_site_file"; then
1365 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1366 echo "$as_me: loading site script $ac_site_file" >&6;}
1367 sed 's/^/| /' "$ac_site_file" >&5
1372 if test -r "$cache_file"; then
1373 # Some versions of bash will fail to source /dev/null (special
1374 # files actually), so we avoid doing that.
1375 if test -f "$cache_file"; then
1376 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1377 echo "$as_me: loading cache $cache_file" >&6;}
1379 [\\/]* | ?:[\\/]* ) . $cache_file;;
1380 *) . ./$cache_file;;
1384 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1385 echo "$as_me: creating cache $cache_file" >&6;}
1389 # Check that the precious variables saved in the cache have kept the same
1391 ac_cache_corrupted=false
1392 for ac_var in `(set) 2>&1 |
1393 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1394 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1395 eval ac_new_set=\$ac_env_${ac_var}_set
1396 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1397 eval ac_new_val="\$ac_env_${ac_var}_value"
1398 case $ac_old_set,$ac_new_set in
1400 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1401 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1402 ac_cache_corrupted=: ;;
1404 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1405 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1406 ac_cache_corrupted=: ;;
1409 if test "x$ac_old_val" != "x$ac_new_val"; then
1410 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1411 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1412 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1413 echo "$as_me: former value: $ac_old_val" >&2;}
1414 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1415 echo "$as_me: current value: $ac_new_val" >&2;}
1416 ac_cache_corrupted=:
1419 # Pass precious variables to config.status.
1420 if test "$ac_new_set" = set; then
1422 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1423 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1424 *) ac_arg=$ac_var=$ac_new_val ;;
1426 case " $ac_configure_args " in
1427 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1428 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1432 if $ac_cache_corrupted; then
1433 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1434 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1435 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1436 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1437 { (exit 1); exit 1; }; }
1441 ac_cpp='$CPP $CPPFLAGS'
1442 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1443 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1444 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1466 ac_cpp='$CPP $CPPFLAGS'
1467 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1468 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1469 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1470 if test -n "$ac_tool_prefix"; then
1471 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1472 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1473 echo "$as_me:$LINENO: checking for $ac_word" >&5
1474 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1475 if test "${ac_cv_prog_CC+set}" = set; then
1476 echo $ECHO_N "(cached) $ECHO_C" >&6
1478 if test -n "$CC"; then
1479 ac_cv_prog_CC="$CC" # Let the user override the test.
1481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1485 test -z "$as_dir" && as_dir=.
1486 for ac_exec_ext in '' $ac_executable_extensions; do
1487 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1488 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1489 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1498 if test -n "$CC"; then
1499 echo "$as_me:$LINENO: result: $CC" >&5
1500 echo "${ECHO_T}$CC" >&6
1502 echo "$as_me:$LINENO: result: no" >&5
1503 echo "${ECHO_T}no" >&6
1507 if test -z "$ac_cv_prog_CC"; then
1509 # Extract the first word of "gcc", so it can be a program name with args.
1510 set dummy gcc; ac_word=$2
1511 echo "$as_me:$LINENO: checking for $ac_word" >&5
1512 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1513 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1514 echo $ECHO_N "(cached) $ECHO_C" >&6
1516 if test -n "$ac_ct_CC"; then
1517 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1523 test -z "$as_dir" && as_dir=.
1524 for ac_exec_ext in '' $ac_executable_extensions; do
1525 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1526 ac_cv_prog_ac_ct_CC="gcc"
1527 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1535 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1536 if test -n "$ac_ct_CC"; then
1537 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1538 echo "${ECHO_T}$ac_ct_CC" >&6
1540 echo "$as_me:$LINENO: result: no" >&5
1541 echo "${ECHO_T}no" >&6
1549 if test -z "$CC"; then
1550 if test -n "$ac_tool_prefix"; then
1551 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1552 set dummy ${ac_tool_prefix}cc; ac_word=$2
1553 echo "$as_me:$LINENO: checking for $ac_word" >&5
1554 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1555 if test "${ac_cv_prog_CC+set}" = set; then
1556 echo $ECHO_N "(cached) $ECHO_C" >&6
1558 if test -n "$CC"; then
1559 ac_cv_prog_CC="$CC" # Let the user override the test.
1561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1565 test -z "$as_dir" && as_dir=.
1566 for ac_exec_ext in '' $ac_executable_extensions; do
1567 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1568 ac_cv_prog_CC="${ac_tool_prefix}cc"
1569 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1578 if test -n "$CC"; then
1579 echo "$as_me:$LINENO: result: $CC" >&5
1580 echo "${ECHO_T}$CC" >&6
1582 echo "$as_me:$LINENO: result: no" >&5
1583 echo "${ECHO_T}no" >&6
1587 if test -z "$ac_cv_prog_CC"; then
1589 # Extract the first word of "cc", so it can be a program name with args.
1590 set dummy cc; ac_word=$2
1591 echo "$as_me:$LINENO: checking for $ac_word" >&5
1592 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1593 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1594 echo $ECHO_N "(cached) $ECHO_C" >&6
1596 if test -n "$ac_ct_CC"; then
1597 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1603 test -z "$as_dir" && as_dir=.
1604 for ac_exec_ext in '' $ac_executable_extensions; do
1605 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1606 ac_cv_prog_ac_ct_CC="cc"
1607 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1615 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1616 if test -n "$ac_ct_CC"; then
1617 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1618 echo "${ECHO_T}$ac_ct_CC" >&6
1620 echo "$as_me:$LINENO: result: no" >&5
1621 echo "${ECHO_T}no" >&6
1630 if test -z "$CC"; then
1631 # Extract the first word of "cc", so it can be a program name with args.
1632 set dummy cc; ac_word=$2
1633 echo "$as_me:$LINENO: checking for $ac_word" >&5
1634 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1635 if test "${ac_cv_prog_CC+set}" = set; then
1636 echo $ECHO_N "(cached) $ECHO_C" >&6
1638 if test -n "$CC"; then
1639 ac_cv_prog_CC="$CC" # Let the user override the test.
1642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1646 test -z "$as_dir" && as_dir=.
1647 for ac_exec_ext in '' $ac_executable_extensions; do
1648 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1649 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1650 ac_prog_rejected=yes
1654 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1660 if test $ac_prog_rejected = yes; then
1661 # We found a bogon in the path, so make sure we never use it.
1662 set dummy $ac_cv_prog_CC
1664 if test $@%:@ != 0; then
1665 # We chose a different compiler from the bogus one.
1666 # However, it has the same basename, so the bogon will be chosen
1667 # first if we set CC to just the basename; use the full file name.
1669 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1675 if test -n "$CC"; then
1676 echo "$as_me:$LINENO: result: $CC" >&5
1677 echo "${ECHO_T}$CC" >&6
1679 echo "$as_me:$LINENO: result: no" >&5
1680 echo "${ECHO_T}no" >&6
1684 if test -z "$CC"; then
1685 if test -n "$ac_tool_prefix"; then
1688 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1689 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1690 echo "$as_me:$LINENO: checking for $ac_word" >&5
1691 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1692 if test "${ac_cv_prog_CC+set}" = set; then
1693 echo $ECHO_N "(cached) $ECHO_C" >&6
1695 if test -n "$CC"; then
1696 ac_cv_prog_CC="$CC" # Let the user override the test.
1698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1702 test -z "$as_dir" && as_dir=.
1703 for ac_exec_ext in '' $ac_executable_extensions; do
1704 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1705 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1706 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1715 if test -n "$CC"; then
1716 echo "$as_me:$LINENO: result: $CC" >&5
1717 echo "${ECHO_T}$CC" >&6
1719 echo "$as_me:$LINENO: result: no" >&5
1720 echo "${ECHO_T}no" >&6
1723 test -n "$CC" && break
1726 if test -z "$CC"; then
1730 # Extract the first word of "$ac_prog", so it can be a program name with args.
1731 set dummy $ac_prog; ac_word=$2
1732 echo "$as_me:$LINENO: checking for $ac_word" >&5
1733 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1734 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1735 echo $ECHO_N "(cached) $ECHO_C" >&6
1737 if test -n "$ac_ct_CC"; then
1738 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1744 test -z "$as_dir" && as_dir=.
1745 for ac_exec_ext in '' $ac_executable_extensions; do
1746 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1747 ac_cv_prog_ac_ct_CC="$ac_prog"
1748 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1756 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1757 if test -n "$ac_ct_CC"; then
1758 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1759 echo "${ECHO_T}$ac_ct_CC" >&6
1761 echo "$as_me:$LINENO: result: no" >&5
1762 echo "${ECHO_T}no" >&6
1765 test -n "$ac_ct_CC" && break
1774 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1775 See \`config.log' for more details." >&5
1776 echo "$as_me: error: no acceptable C compiler found in \$PATH
1777 See \`config.log' for more details." >&2;}
1778 { (exit 1); exit 1; }; }
1780 # Provide some information about the compiler.
1781 echo "$as_me:$LINENO:" \
1782 "checking for C compiler version" >&5
1783 ac_compiler=`set X $ac_compile; echo $2`
1784 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1785 (eval $ac_compiler --version </dev/null >&5) 2>&5
1787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1788 (exit $ac_status); }
1789 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1790 (eval $ac_compiler -v </dev/null >&5) 2>&5
1792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1793 (exit $ac_status); }
1794 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1795 (eval $ac_compiler -V </dev/null >&5) 2>&5
1797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1798 (exit $ac_status); }
1800 cat >conftest.$ac_ext <<_ACEOF
1803 cat confdefs.h >>conftest.$ac_ext
1804 cat >>conftest.$ac_ext <<_ACEOF
1805 /* end confdefs.h. */
1815 ac_clean_files_save=$ac_clean_files
1816 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1817 # Try to create an executable without -o first, disregard a.out.
1818 # It will help us diagnose broken compilers, and finding out an intuition
1820 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1821 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1822 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1823 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1824 (eval $ac_link_default) 2>&5
1826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1827 (exit $ac_status); }; then
1828 # Find the output, starting from the most likely. This scheme is
1829 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1832 # Be careful to initialize this variable, since it used to be cached.
1833 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1835 # b.out is created by i960 compilers.
1836 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1838 test -f "$ac_file" || continue
1840 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1843 # This is the source file.
1846 # We found the default executable, but exeext='' is most
1850 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1851 # FIXME: I believe we export ac_cv_exeext for Libtool,
1852 # but it would be cool to find out if it's true. Does anybody
1853 # maintain Libtool? --akim.
1861 echo "$as_me: failed program was:" >&5
1862 sed 's/^/| /' conftest.$ac_ext >&5
1864 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1865 See \`config.log' for more details." >&5
1866 echo "$as_me: error: C compiler cannot create executables
1867 See \`config.log' for more details." >&2;}
1868 { (exit 77); exit 77; }; }
1871 ac_exeext=$ac_cv_exeext
1872 echo "$as_me:$LINENO: result: $ac_file" >&5
1873 echo "${ECHO_T}$ac_file" >&6
1875 # Check the compiler produces executables we can run. If not, either
1876 # the compiler is broken, or we cross compile.
1877 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1878 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1879 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1880 # If not cross compiling, check that we can run a simple program.
1881 if test "$cross_compiling" != yes; then
1882 if { ac_try='./$ac_file'
1883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1887 (exit $ac_status); }; }; then
1890 if test "$cross_compiling" = maybe; then
1893 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1894 If you meant to cross compile, use \`--host'.
1895 See \`config.log' for more details." >&5
1896 echo "$as_me: error: cannot run C compiled programs.
1897 If you meant to cross compile, use \`--host'.
1898 See \`config.log' for more details." >&2;}
1899 { (exit 1); exit 1; }; }
1903 echo "$as_me:$LINENO: result: yes" >&5
1904 echo "${ECHO_T}yes" >&6
1906 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1907 ac_clean_files=$ac_clean_files_save
1908 # Check the compiler produces executables we can run. If not, either
1909 # the compiler is broken, or we cross compile.
1910 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1911 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1912 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1913 echo "${ECHO_T}$cross_compiling" >&6
1915 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1916 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1917 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1918 (eval $ac_link) 2>&5
1920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1921 (exit $ac_status); }; then
1922 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1923 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1924 # work properly (i.e., refer to `conftest.exe'), while it won't with
1926 for ac_file in conftest.exe conftest conftest.*; do
1927 test -f "$ac_file" || continue
1929 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1930 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1937 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1938 See \`config.log' for more details." >&5
1939 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1940 See \`config.log' for more details." >&2;}
1941 { (exit 1); exit 1; }; }
1944 rm -f conftest$ac_cv_exeext
1945 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1946 echo "${ECHO_T}$ac_cv_exeext" >&6
1948 rm -f conftest.$ac_ext
1949 EXEEXT=$ac_cv_exeext
1951 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1952 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1953 if test "${ac_cv_objext+set}" = set; then
1954 echo $ECHO_N "(cached) $ECHO_C" >&6
1956 cat >conftest.$ac_ext <<_ACEOF
1959 cat confdefs.h >>conftest.$ac_ext
1960 cat >>conftest.$ac_ext <<_ACEOF
1961 /* end confdefs.h. */
1971 rm -f conftest.o conftest.obj
1972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1973 (eval $ac_compile) 2>&5
1975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1976 (exit $ac_status); }; then
1977 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1979 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1980 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1985 echo "$as_me: failed program was:" >&5
1986 sed 's/^/| /' conftest.$ac_ext >&5
1988 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1989 See \`config.log' for more details." >&5
1990 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1991 See \`config.log' for more details." >&2;}
1992 { (exit 1); exit 1; }; }
1995 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1997 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1998 echo "${ECHO_T}$ac_cv_objext" >&6
1999 OBJEXT=$ac_cv_objext
2001 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2002 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2003 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2004 echo $ECHO_N "(cached) $ECHO_C" >&6
2006 cat >conftest.$ac_ext <<_ACEOF
2009 cat confdefs.h >>conftest.$ac_ext
2010 cat >>conftest.$ac_ext <<_ACEOF
2011 /* end confdefs.h. */
2024 rm -f conftest.$ac_objext
2025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2026 (eval $ac_compile) 2>conftest.er1
2028 grep -v '^ *+' conftest.er1 >conftest.err
2030 cat conftest.err >&5
2031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2032 (exit $ac_status); } &&
2033 { ac_try='test -z "$ac_c_werror_flag"
2034 || test ! -s conftest.err'
2035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2039 (exit $ac_status); }; } &&
2040 { ac_try='test -s conftest.$ac_objext'
2041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2045 (exit $ac_status); }; }; then
2048 echo "$as_me: failed program was:" >&5
2049 sed 's/^/| /' conftest.$ac_ext >&5
2053 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2054 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2057 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2058 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2059 GCC=`test $ac_compiler_gnu = yes && echo yes`
2060 ac_test_CFLAGS=${CFLAGS+set}
2061 ac_save_CFLAGS=$CFLAGS
2063 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2064 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2065 if test "${ac_cv_prog_cc_g+set}" = set; then
2066 echo $ECHO_N "(cached) $ECHO_C" >&6
2068 cat >conftest.$ac_ext <<_ACEOF
2071 cat confdefs.h >>conftest.$ac_ext
2072 cat >>conftest.$ac_ext <<_ACEOF
2073 /* end confdefs.h. */
2083 rm -f conftest.$ac_objext
2084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2085 (eval $ac_compile) 2>conftest.er1
2087 grep -v '^ *+' conftest.er1 >conftest.err
2089 cat conftest.err >&5
2090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2091 (exit $ac_status); } &&
2092 { ac_try='test -z "$ac_c_werror_flag"
2093 || test ! -s conftest.err'
2094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2098 (exit $ac_status); }; } &&
2099 { ac_try='test -s conftest.$ac_objext'
2100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2104 (exit $ac_status); }; }; then
2107 echo "$as_me: failed program was:" >&5
2108 sed 's/^/| /' conftest.$ac_ext >&5
2112 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2114 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2115 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2116 if test "$ac_test_CFLAGS" = set; then
2117 CFLAGS=$ac_save_CFLAGS
2118 elif test $ac_cv_prog_cc_g = yes; then
2119 if test "$GCC" = yes; then
2125 if test "$GCC" = yes; then
2131 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2132 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2133 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2134 echo $ECHO_N "(cached) $ECHO_C" >&6
2136 ac_cv_prog_cc_stdc=no
2138 cat >conftest.$ac_ext <<_ACEOF
2141 cat confdefs.h >>conftest.$ac_ext
2142 cat >>conftest.$ac_ext <<_ACEOF
2143 /* end confdefs.h. */
2146 #include <sys/types.h>
2147 #include <sys/stat.h>
2148 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2149 struct buf { int x; };
2150 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2151 static char *e (p, i)
2157 static char *f (char * (*g) (char **, int), char **p, ...)
2162 s = g (p, va_arg (v,int));
2167 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2168 function prototypes and stuff, but not '\xHH' hex character constants.
2169 These don't provoke an error unfortunately, instead are silently treated
2170 as 'x'. The following induces an error, until -std1 is added to get
2171 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2172 array size at least. It's necessary to write '\x00'==0 to get something
2173 that's true only with -std1. */
2174 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2176 int test (int i, double x);
2177 struct s1 {int (*f) (int a);};
2178 struct s2 {int (*f) (double a);};
2179 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2185 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2190 # Don't try gcc -ansi; that turns off useful extensions and
2191 # breaks some systems' header files.
2192 # AIX -qlanglvl=ansi
2193 # Ultrix and OSF/1 -std1
2194 # HP-UX 10.20 and later -Ae
2195 # HP-UX older versions -Aa -D_HPUX_SOURCE
2196 # SVR4 -Xc -D__EXTENSIONS__
2197 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2199 CC="$ac_save_CC $ac_arg"
2200 rm -f conftest.$ac_objext
2201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2202 (eval $ac_compile) 2>conftest.er1
2204 grep -v '^ *+' conftest.er1 >conftest.err
2206 cat conftest.err >&5
2207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2208 (exit $ac_status); } &&
2209 { ac_try='test -z "$ac_c_werror_flag"
2210 || test ! -s conftest.err'
2211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2215 (exit $ac_status); }; } &&
2216 { ac_try='test -s conftest.$ac_objext'
2217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2221 (exit $ac_status); }; }; then
2222 ac_cv_prog_cc_stdc=$ac_arg
2225 echo "$as_me: failed program was:" >&5
2226 sed 's/^/| /' conftest.$ac_ext >&5
2229 rm -f conftest.err conftest.$ac_objext
2231 rm -f conftest.$ac_ext conftest.$ac_objext
2236 case "x$ac_cv_prog_cc_stdc" in
2238 echo "$as_me:$LINENO: result: none needed" >&5
2239 echo "${ECHO_T}none needed" >&6 ;;
2241 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2242 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2243 CC="$CC $ac_cv_prog_cc_stdc" ;;
2246 # Some people use a C++ compiler to compile C. Since we use `exit',
2247 # in C++ we need to declare it. In case someone uses the same compiler
2248 # for both compiling C and C++ we need to have the C++ compiler decide
2249 # the declaration of exit, since it's the most demanding environment.
2250 cat >conftest.$ac_ext <<_ACEOF
2251 @%:@ifndef __cplusplus
2255 rm -f conftest.$ac_objext
2256 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2257 (eval $ac_compile) 2>conftest.er1
2259 grep -v '^ *+' conftest.er1 >conftest.err
2261 cat conftest.err >&5
2262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2263 (exit $ac_status); } &&
2264 { ac_try='test -z "$ac_c_werror_flag"
2265 || test ! -s conftest.err'
2266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2270 (exit $ac_status); }; } &&
2271 { ac_try='test -s conftest.$ac_objext'
2272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2276 (exit $ac_status); }; }; then
2277 for ac_declaration in \
2279 'extern "C" void std::exit (int) throw (); using std::exit;' \
2280 'extern "C" void std::exit (int); using std::exit;' \
2281 'extern "C" void exit (int) throw ();' \
2282 'extern "C" void exit (int);' \
2285 cat >conftest.$ac_ext <<_ACEOF
2288 cat confdefs.h >>conftest.$ac_ext
2289 cat >>conftest.$ac_ext <<_ACEOF
2290 /* end confdefs.h. */
2292 @%:@include <stdlib.h>
2301 rm -f conftest.$ac_objext
2302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2303 (eval $ac_compile) 2>conftest.er1
2305 grep -v '^ *+' conftest.er1 >conftest.err
2307 cat conftest.err >&5
2308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2309 (exit $ac_status); } &&
2310 { ac_try='test -z "$ac_c_werror_flag"
2311 || test ! -s conftest.err'
2312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2316 (exit $ac_status); }; } &&
2317 { ac_try='test -s conftest.$ac_objext'
2318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2322 (exit $ac_status); }; }; then
2325 echo "$as_me: failed program was:" >&5
2326 sed 's/^/| /' conftest.$ac_ext >&5
2330 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2331 cat >conftest.$ac_ext <<_ACEOF
2334 cat confdefs.h >>conftest.$ac_ext
2335 cat >>conftest.$ac_ext <<_ACEOF
2336 /* end confdefs.h. */
2346 rm -f conftest.$ac_objext
2347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2348 (eval $ac_compile) 2>conftest.er1
2350 grep -v '^ *+' conftest.er1 >conftest.err
2352 cat conftest.err >&5
2353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2354 (exit $ac_status); } &&
2355 { ac_try='test -z "$ac_c_werror_flag"
2356 || test ! -s conftest.err'
2357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2361 (exit $ac_status); }; } &&
2362 { ac_try='test -s conftest.$ac_objext'
2363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2367 (exit $ac_status); }; }; then
2370 echo "$as_me: failed program was:" >&5
2371 sed 's/^/| /' conftest.$ac_ext >&5
2374 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2377 if test -n "$ac_declaration"; then
2378 echo '#ifdef __cplusplus' >>confdefs.h
2379 echo $ac_declaration >>confdefs.h
2380 echo '#endif' >>confdefs.h
2384 echo "$as_me: failed program was:" >&5
2385 sed 's/^/| /' conftest.$ac_ext >&5
2388 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2390 ac_cpp='$CPP $CPPFLAGS'
2391 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2392 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2393 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2396 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2397 if test -f $ac_dir/install-sh; then
2399 ac_install_sh="$ac_aux_dir/install-sh -c"
2401 elif test -f $ac_dir/install.sh; then
2403 ac_install_sh="$ac_aux_dir/install.sh -c"
2405 elif test -f $ac_dir/shtool; then
2407 ac_install_sh="$ac_aux_dir/shtool install -c"
2411 if test -z "$ac_aux_dir"; then
2412 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2413 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2414 { (exit 1); exit 1; }; }
2416 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2417 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2418 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2420 # Find a good install program. We prefer a C program (faster),
2421 # so one script is as good as another. But avoid the broken or
2422 # incompatible versions:
2423 # SysV /etc/install, /usr/sbin/install
2424 # SunOS /usr/etc/install
2425 # IRIX /sbin/install
2427 # AmigaOS /C/install, which installs bootblocks on floppy discs
2428 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2429 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2430 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2431 # OS/2's system install, which has a completely different semantic
2432 # ./install, which can be erroneously created by make from ./install.sh.
2433 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2434 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2435 if test -z "$INSTALL"; then
2436 if test "${ac_cv_path_install+set}" = set; then
2437 echo $ECHO_N "(cached) $ECHO_C" >&6
2439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2443 test -z "$as_dir" && as_dir=.
2444 # Account for people who put trailing slashes in PATH elements.
2446 ./ | .// | /cC/* | \
2447 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2448 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2451 # OSF1 and SCO ODT 3.0 have their own names for install.
2452 # Don't use installbsd from OSF since it installs stuff as root
2454 for ac_prog in ginstall scoinst install; do
2455 for ac_exec_ext in '' $ac_executable_extensions; do
2456 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2457 if test $ac_prog = install &&
2458 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2459 # AIX install. It has an incompatible calling convention.
2461 elif test $ac_prog = install &&
2462 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2463 # program-specific install script used by HP pwplus--don't use.
2466 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2478 if test "${ac_cv_path_install+set}" = set; then
2479 INSTALL=$ac_cv_path_install
2481 # As a last resort, use the slow shell script. We don't cache a
2482 # path for INSTALL within a source directory, because that will
2483 # break other packages using the cache if that directory is
2484 # removed, or if the path is relative.
2485 INSTALL=$ac_install_sh
2488 echo "$as_me:$LINENO: result: $INSTALL" >&5
2489 echo "${ECHO_T}$INSTALL" >&6
2491 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2492 # It thinks the first close brace ends the variable substitution.
2493 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2495 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2497 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2499 if test -n "$ac_tool_prefix"; then
2500 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2501 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2502 echo "$as_me:$LINENO: checking for $ac_word" >&5
2503 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2504 if test "${ac_cv_prog_RANLIB+set}" = set; then
2505 echo $ECHO_N "(cached) $ECHO_C" >&6
2507 if test -n "$RANLIB"; then
2508 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2514 test -z "$as_dir" && as_dir=.
2515 for ac_exec_ext in '' $ac_executable_extensions; do
2516 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2517 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2518 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2526 RANLIB=$ac_cv_prog_RANLIB
2527 if test -n "$RANLIB"; then
2528 echo "$as_me:$LINENO: result: $RANLIB" >&5
2529 echo "${ECHO_T}$RANLIB" >&6
2531 echo "$as_me:$LINENO: result: no" >&5
2532 echo "${ECHO_T}no" >&6
2536 if test -z "$ac_cv_prog_RANLIB"; then
2537 ac_ct_RANLIB=$RANLIB
2538 # Extract the first word of "ranlib", so it can be a program name with args.
2539 set dummy ranlib; ac_word=$2
2540 echo "$as_me:$LINENO: checking for $ac_word" >&5
2541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2542 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2543 echo $ECHO_N "(cached) $ECHO_C" >&6
2545 if test -n "$ac_ct_RANLIB"; then
2546 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2552 test -z "$as_dir" && as_dir=.
2553 for ac_exec_ext in '' $ac_executable_extensions; do
2554 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2555 ac_cv_prog_ac_ct_RANLIB="ranlib"
2556 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2562 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2565 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2566 if test -n "$ac_ct_RANLIB"; then
2567 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2568 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2570 echo "$as_me:$LINENO: result: no" >&5
2571 echo "${ECHO_T}no" >&6
2574 RANLIB=$ac_ct_RANLIB
2576 RANLIB="$ac_cv_prog_RANLIB"
2579 # Check whether --enable-shared or --disable-shared was given.
2580 if test "${enable_shared+set}" = set; then
2581 enableval="$enable_shared"
2582 p=${PACKAGE-default}
2584 yes) enable_shared=yes ;;
2585 no) enable_shared=no ;;
2588 # Look at the argument we got. We use all the common list separators.
2589 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2590 for pkg in $enableval; do
2591 if test "X$pkg" = "X$p"; then
2601 # Check whether --enable-static or --disable-static was given.
2602 if test "${enable_static+set}" = set; then
2603 enableval="$enable_static"
2604 p=${PACKAGE-default}
2606 yes) enable_static=yes ;;
2607 no) enable_static=no ;;
2610 # Look at the argument we got. We use all the common list separators.
2611 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2612 for pkg in $enableval; do
2613 if test "X$pkg" = "X$p"; then
2623 # Check whether --enable-fast-install or --disable-fast-install was given.
2624 if test "${enable_fast_install+set}" = set; then
2625 enableval="$enable_fast_install"
2626 p=${PACKAGE-default}
2628 yes) enable_fast_install=yes ;;
2629 no) enable_fast_install=no ;;
2631 enable_fast_install=no
2632 # Look at the argument we got. We use all the common list separators.
2633 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2634 for pkg in $enableval; do
2635 if test "X$pkg" = "X$p"; then
2636 enable_fast_install=yes
2643 enable_fast_install=yes
2645 # Make sure we can run config.sub.
2646 $ac_config_sub sun4 >/dev/null 2>&1 ||
2647 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2648 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2649 { (exit 1); exit 1; }; }
2651 echo "$as_me:$LINENO: checking build system type" >&5
2652 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2653 if test "${ac_cv_build+set}" = set; then
2654 echo $ECHO_N "(cached) $ECHO_C" >&6
2656 ac_cv_build_alias=$build_alias
2657 test -z "$ac_cv_build_alias" &&
2658 ac_cv_build_alias=`$ac_config_guess`
2659 test -z "$ac_cv_build_alias" &&
2660 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2661 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2662 { (exit 1); exit 1; }; }
2663 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2664 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2665 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2666 { (exit 1); exit 1; }; }
2669 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2670 echo "${ECHO_T}$ac_cv_build" >&6
2672 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2673 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2674 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2677 echo "$as_me:$LINENO: checking host system type" >&5
2678 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2679 if test "${ac_cv_host+set}" = set; then
2680 echo $ECHO_N "(cached) $ECHO_C" >&6
2682 ac_cv_host_alias=$host_alias
2683 test -z "$ac_cv_host_alias" &&
2684 ac_cv_host_alias=$ac_cv_build_alias
2685 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2686 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2687 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2688 { (exit 1); exit 1; }; }
2691 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2692 echo "${ECHO_T}$ac_cv_host" >&6
2694 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2695 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2696 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2699 # Find the correct PATH separator. Usually this is `:', but
2700 # DJGPP uses `;' like DOS.
2701 if test "X${PATH_SEPARATOR+set}" != Xset; then
2702 UNAME=${UNAME-`uname 2>/dev/null`}
2704 *-DOS) lt_cv_sys_path_separator=';' ;;
2705 *) lt_cv_sys_path_separator=':' ;;
2707 PATH_SEPARATOR=$lt_cv_sys_path_separator
2711 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2712 if test "${with_gnu_ld+set}" = set; then
2713 withval="$with_gnu_ld"
2714 test "$withval" = no || with_gnu_ld=yes
2719 if test "$GCC" = yes; then
2720 # Check if gcc -print-prog-name=ld gives a path.
2721 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
2722 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
2725 # gcc leaves a trailing carriage return which upsets mingw
2726 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2728 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2731 # Accept absolute paths.
2732 [\\/]* | [A-Za-z]:[\\/]*)
2733 re_direlt='/[^/][^/]*/\.\./'
2734 # Canonicalize the path of ld
2735 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
2736 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2737 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
2739 test -z "$LD" && LD="$ac_prog"
2742 # If it fails, then pretend we aren't using GCC.
2746 # If it is relative, then search for the first ld in PATH.
2750 elif test "$with_gnu_ld" = yes; then
2751 echo "$as_me:$LINENO: checking for GNU ld" >&5
2752 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
2754 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
2755 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
2757 if test "${lt_cv_path_LD+set}" = set; then
2758 echo $ECHO_N "(cached) $ECHO_C" >&6
2760 if test -z "$LD"; then
2761 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2762 for ac_dir in $PATH; do
2763 test -z "$ac_dir" && ac_dir=.
2764 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2765 lt_cv_path_LD="$ac_dir/$ac_prog"
2766 # Check to see if the program is GNU ld. I'd rather use --version,
2767 # but apparently some GNU ld's only accept -v.
2768 # Break only if it was the GNU/non-GNU ld that we prefer.
2769 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2770 test "$with_gnu_ld" != no && break
2772 test "$with_gnu_ld" != yes && break
2778 lt_cv_path_LD="$LD" # Let the user override the test with a path.
2783 if test -n "$LD"; then
2784 echo "$as_me:$LINENO: result: $LD" >&5
2785 echo "${ECHO_T}$LD" >&6
2787 echo "$as_me:$LINENO: result: no" >&5
2788 echo "${ECHO_T}no" >&6
2790 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
2791 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
2792 { (exit 1); exit 1; }; }
2793 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
2794 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
2795 if test "${lt_cv_prog_gnu_ld+set}" = set; then
2796 echo $ECHO_N "(cached) $ECHO_C" >&6
2798 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2799 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2800 lt_cv_prog_gnu_ld=yes
2802 lt_cv_prog_gnu_ld=no
2805 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
2806 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
2807 with_gnu_ld=$lt_cv_prog_gnu_ld
2810 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
2811 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
2812 if test "${lt_cv_ld_reload_flag+set}" = set; then
2813 echo $ECHO_N "(cached) $ECHO_C" >&6
2815 lt_cv_ld_reload_flag='-r'
2817 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
2818 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
2819 reload_flag=$lt_cv_ld_reload_flag
2820 test -n "$reload_flag" && reload_flag=" $reload_flag"
2822 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
2823 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
2824 if test "${lt_cv_path_NM+set}" = set; then
2825 echo $ECHO_N "(cached) $ECHO_C" >&6
2827 if test -n "$NM"; then
2828 # Let the user override the test.
2831 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2832 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2833 test -z "$ac_dir" && ac_dir=.
2834 tmp_nm=$ac_dir/${ac_tool_prefix}nm
2835 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
2836 # Check to see if the nm accepts a BSD-compat flag.
2837 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2838 # nm: unknown option "B" ignored
2839 # Tru64's nm complains that /dev/null is an invalid object file
2840 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
2841 lt_cv_path_NM="$tmp_nm -B"
2843 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2844 lt_cv_path_NM="$tmp_nm -p"
2847 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2848 continue # so that we can try to find one that supports BSD flags
2853 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
2858 echo "$as_me:$LINENO: result: $NM" >&5
2859 echo "${ECHO_T}$NM" >&6
2861 echo "$as_me:$LINENO: checking whether ln -s works" >&5
2862 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2864 if test "$LN_S" = "ln -s"; then
2865 echo "$as_me:$LINENO: result: yes" >&5
2866 echo "${ECHO_T}yes" >&6
2868 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2869 echo "${ECHO_T}no, using $LN_S" >&6
2872 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
2873 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
2874 if test "${lt_cv_deplibs_check_method+set}" = set; then
2875 echo $ECHO_N "(cached) $ECHO_C" >&6
2877 lt_cv_file_magic_cmd='$MAGIC_CMD'
2878 lt_cv_file_magic_test_file=
2879 lt_cv_deplibs_check_method='unknown'
2880 # Need to set the preceding variable on all platforms that support
2881 # interlibrary dependencies.
2882 # 'none' -- dependencies not supported.
2883 # `unknown' -- same as none, but documents that we really don't know.
2884 # 'pass_all' -- all dependencies passed with no checks.
2885 # 'test_compile' -- check by making test program.
2886 # 'file_magic [[regex]]' -- check by looking for files in library path
2887 # which responds to the $file_magic_cmd with a given egrep regex.
2888 # If you have `file' or equivalent on your system and you're not sure
2889 # whether `pass_all' will *always* work, you probably want this one.
2893 lt_cv_deplibs_check_method=pass_all
2897 lt_cv_deplibs_check_method=pass_all
2901 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
2902 lt_cv_file_magic_cmd='/usr/bin/file -L'
2903 lt_cv_file_magic_test_file=/shlib/libc.so
2906 cygwin* | mingw* | pw32*)
2907 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2908 lt_cv_file_magic_cmd='$OBJDUMP -f'
2911 darwin* | rhapsody*)
2912 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
2913 lt_cv_file_magic_cmd='/usr/bin/file -L'
2915 rhapsody* | darwin1.[012])
2916 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
2919 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
2925 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2928 # Not sure whether the presence of OpenBSD here was a mistake.
2929 # Let's accept both of them until this is cleared up.
2930 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
2931 lt_cv_file_magic_cmd=/usr/bin/file
2932 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2936 lt_cv_deplibs_check_method=pass_all
2941 lt_cv_deplibs_check_method=pass_all
2945 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
2946 lt_cv_file_magic_cmd=/usr/bin/file
2947 lt_cv_file_magic_test_file=/usr/lib/libc.sl
2953 # this will be overridden with pass_all, but let us keep it just in case
2954 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
2958 *-32|*"-32 ") libmagic=32-bit;;
2959 *-n32|*"-n32 ") libmagic=N32;;
2960 *-64|*"-64 ") libmagic=64-bit;;
2961 *) libmagic=never-match;;
2963 # this will be overridden with pass_all, but let us keep it just in case
2964 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
2967 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
2968 lt_cv_deplibs_check_method=pass_all
2971 # This must be Linux ELF.
2974 alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
2975 lt_cv_deplibs_check_method=pass_all ;;
2977 # glibc up to 2.1.1 does not perform some relocations on ARM
2978 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2980 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2984 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2985 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
2987 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
2992 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2993 lt_cv_file_magic_cmd=/usr/bin/file
2994 lt_cv_file_magic_test_file=/usr/lib/libnls.so
2998 lt_cv_file_magic_cmd=/usr/bin/file
2999 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3000 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3001 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3003 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3007 osf3* | osf4* | osf5*)
3008 # this will be overridden with pass_all, but let us keep it just in case
3009 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3010 lt_cv_file_magic_test_file=/shlib/libc.so
3011 lt_cv_deplibs_check_method=pass_all
3015 lt_cv_deplibs_check_method=pass_all
3019 lt_cv_deplibs_check_method=pass_all
3020 lt_cv_file_magic_test_file=/lib/libc.so
3023 sysv5uw[78]* | sysv4*uw2*)
3024 lt_cv_deplibs_check_method=pass_all
3027 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3028 case $host_vendor in
3030 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]'
3031 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3034 lt_cv_deplibs_check_method=pass_all
3037 lt_cv_file_magic_cmd='/bin/file'
3038 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3041 lt_cv_file_magic_cmd='/bin/file'
3042 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3043 lt_cv_file_magic_test_file=/lib/libc.so
3050 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3051 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3052 file_magic_cmd=$lt_cv_file_magic_cmd
3053 deplibs_check_method=$lt_cv_deplibs_check_method
3062 # Check for command to grab the raw symbol name followed by C symbol from nm.
3063 echo "$as_me:$LINENO: checking command to parse $NM output" >&5
3064 echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
3065 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
3066 echo $ECHO_N "(cached) $ECHO_C" >&6
3069 # These are sane defaults that work on at least a few old systems.
3070 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
3072 # Character class describing NM global symbol codes.
3073 symcode='[BCDEGRST]'
3075 # Regexp to match symbols that can be accessed directly from C.
3076 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
3078 # Transform the above into a raw symbol and a C symbol.
3079 symxfrm='\1 \2\3 \3'
3081 # Transform an extracted symbol line into a proper C declaration
3082 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
3084 # Transform an extracted symbol line into symbol name and symbol address
3085 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'"
3087 # Define system-specific variables.
3092 cygwin* | mingw* | pw32*)
3093 symcode='[ABCDGISTW]'
3095 hpux*) # Its linker distinguishes data from code symbols
3096 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3097 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'"
3100 symcode='[BCDEGRST]'
3110 # Handle CRLF in mingw tool chain
3114 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3118 # If we're using GNU nm, then use its standard symbol codes.
3119 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
3120 symcode='[ABCDGISTW]'
3123 # Try without a prefix undercore, then with it.
3124 for ac_symprfx in "" "_"; do
3126 # Write the raw and C identifiers.
3127 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
3129 # Check to see that the pipe works correctly.
3132 cat > conftest.$ac_ext <<EOF
3137 void nm_test_func(){}
3141 int main(){nm_test_var='a';nm_test_func();return(0);}
3144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3145 (eval $ac_compile) 2>&5
3147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148 (exit $ac_status); }; then
3149 # Now try to grab the symbols.
3151 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
3152 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
3154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3155 (exit $ac_status); } && test -s "$nlist"; then
3156 # Try sorting and uniquifying the output.
3157 if sort "$nlist" | uniq > "$nlist"T; then
3158 mv -f "$nlist"T "$nlist"
3163 # Make sure that we snagged all the symbols we need.
3164 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
3165 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
3166 cat <<EOF > conftest.$ac_ext
3172 # Now generate the symbol file.
3173 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
3175 cat <<EOF >> conftest.$ac_ext
3176 #if defined (__STDC__) && __STDC__
3177 # define lt_ptr void *
3179 # define lt_ptr char *
3183 /* The mapping between symbol names and symbols. */
3188 lt_preloaded_symbols[] =
3191 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
3192 cat <<\EOF >> conftest.$ac_ext
3200 # Now try linking the two files.
3201 mv conftest.$ac_objext conftstm.$ac_objext
3203 save_CFLAGS="$CFLAGS"
3204 LIBS="conftstm.$ac_objext"
3205 CFLAGS="$CFLAGS$no_builtin_flag"
3206 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3207 (eval $ac_link) 2>&5
3209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3210 (exit $ac_status); } && test -s conftest; then
3214 CFLAGS="$save_CFLAGS"
3216 echo "cannot find nm_test_func in $nlist" >&5
3219 echo "cannot find nm_test_var in $nlist" >&5
3222 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
3225 echo "$progname: failed program was:" >&5
3226 cat conftest.$ac_ext >&5
3228 rm -f conftest* conftst*
3230 # Do not use the global_symbol_pipe unless it works.
3231 if test "$pipe_works" = yes; then
3234 lt_cv_sys_global_symbol_pipe=
3240 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
3241 if test -z "$lt_cv_sys_global_symbol_pipe"; then
3242 global_symbol_to_cdecl=
3243 global_symbol_to_c_name_address=
3245 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
3246 global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
3248 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
3250 echo "$as_me:$LINENO: result: failed" >&5
3251 echo "${ECHO_T}failed" >&6
3253 echo "$as_me:$LINENO: result: ok" >&5
3254 echo "${ECHO_T}ok" >&6
3258 ac_cpp='$CPP $CPPFLAGS'
3259 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3260 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3261 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3262 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3263 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3264 # On Suns, sometimes $CPP names a directory.
3265 if test -n "$CPP" && test -d "$CPP"; then
3268 if test -z "$CPP"; then
3269 if test "${ac_cv_prog_CPP+set}" = set; then
3270 echo $ECHO_N "(cached) $ECHO_C" >&6
3272 # Double quotes because CPP needs to be expanded
3273 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3276 for ac_c_preproc_warn_flag in '' yes
3278 # Use a header file that comes with gcc, so configuring glibc
3279 # with a fresh cross-compiler works.
3280 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3281 # <limits.h> exists even on freestanding compilers.
3282 # On the NeXT, cc -E runs the code through the compiler's parser,
3283 # not just through cpp. "Syntax error" is here to catch this case.
3284 cat >conftest.$ac_ext <<_ACEOF
3287 cat confdefs.h >>conftest.$ac_ext
3288 cat >>conftest.$ac_ext <<_ACEOF
3289 /* end confdefs.h. */
3291 @%:@ include <limits.h>
3293 @%:@ include <assert.h>
3297 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3298 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3300 grep -v '^ *+' conftest.er1 >conftest.err
3302 cat conftest.err >&5
3303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3304 (exit $ac_status); } >/dev/null; then
3305 if test -s conftest.err; then
3306 ac_cpp_err=$ac_c_preproc_warn_flag
3307 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3314 if test -z "$ac_cpp_err"; then
3317 echo "$as_me: failed program was:" >&5
3318 sed 's/^/| /' conftest.$ac_ext >&5
3320 # Broken: fails on valid input.
3323 rm -f conftest.err conftest.$ac_ext
3325 # OK, works on sane cases. Now check whether non-existent headers
3326 # can be detected and how.
3327 cat >conftest.$ac_ext <<_ACEOF
3330 cat confdefs.h >>conftest.$ac_ext
3331 cat >>conftest.$ac_ext <<_ACEOF
3332 /* end confdefs.h. */
3333 @%:@include <ac_nonexistent.h>
3335 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3336 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3338 grep -v '^ *+' conftest.er1 >conftest.err
3340 cat conftest.err >&5
3341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3342 (exit $ac_status); } >/dev/null; then
3343 if test -s conftest.err; then
3344 ac_cpp_err=$ac_c_preproc_warn_flag
3345 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3352 if test -z "$ac_cpp_err"; then
3353 # Broken: success on invalid input.
3356 echo "$as_me: failed program was:" >&5
3357 sed 's/^/| /' conftest.$ac_ext >&5
3359 # Passes both tests.
3363 rm -f conftest.err conftest.$ac_ext
3366 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3367 rm -f conftest.err conftest.$ac_ext
3368 if $ac_preproc_ok; then
3380 echo "$as_me:$LINENO: result: $CPP" >&5
3381 echo "${ECHO_T}$CPP" >&6
3383 for ac_c_preproc_warn_flag in '' yes
3385 # Use a header file that comes with gcc, so configuring glibc
3386 # with a fresh cross-compiler works.
3387 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3388 # <limits.h> exists even on freestanding compilers.
3389 # On the NeXT, cc -E runs the code through the compiler's parser,
3390 # not just through cpp. "Syntax error" is here to catch this case.
3391 cat >conftest.$ac_ext <<_ACEOF
3394 cat confdefs.h >>conftest.$ac_ext
3395 cat >>conftest.$ac_ext <<_ACEOF
3396 /* end confdefs.h. */
3398 @%:@ include <limits.h>
3400 @%:@ include <assert.h>
3404 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3405 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3407 grep -v '^ *+' conftest.er1 >conftest.err
3409 cat conftest.err >&5
3410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3411 (exit $ac_status); } >/dev/null; then
3412 if test -s conftest.err; then
3413 ac_cpp_err=$ac_c_preproc_warn_flag
3414 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3421 if test -z "$ac_cpp_err"; then
3424 echo "$as_me: failed program was:" >&5
3425 sed 's/^/| /' conftest.$ac_ext >&5
3427 # Broken: fails on valid input.
3430 rm -f conftest.err conftest.$ac_ext
3432 # OK, works on sane cases. Now check whether non-existent headers
3433 # can be detected and how.
3434 cat >conftest.$ac_ext <<_ACEOF
3437 cat confdefs.h >>conftest.$ac_ext
3438 cat >>conftest.$ac_ext <<_ACEOF
3439 /* end confdefs.h. */
3440 @%:@include <ac_nonexistent.h>
3442 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3443 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3445 grep -v '^ *+' conftest.er1 >conftest.err
3447 cat conftest.err >&5
3448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3449 (exit $ac_status); } >/dev/null; then
3450 if test -s conftest.err; then
3451 ac_cpp_err=$ac_c_preproc_warn_flag
3452 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3459 if test -z "$ac_cpp_err"; then
3460 # Broken: success on invalid input.
3463 echo "$as_me: failed program was:" >&5
3464 sed 's/^/| /' conftest.$ac_ext >&5
3466 # Passes both tests.
3470 rm -f conftest.err conftest.$ac_ext
3473 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3474 rm -f conftest.err conftest.$ac_ext
3475 if $ac_preproc_ok; then
3478 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3479 See \`config.log' for more details." >&5
3480 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3481 See \`config.log' for more details." >&2;}
3482 { (exit 1); exit 1; }; }
3486 ac_cpp='$CPP $CPPFLAGS'
3487 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3488 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3489 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3492 echo "$as_me:$LINENO: checking for egrep" >&5
3493 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3494 if test "${ac_cv_prog_egrep+set}" = set; then
3495 echo $ECHO_N "(cached) $ECHO_C" >&6
3497 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3498 then ac_cv_prog_egrep='grep -E'
3499 else ac_cv_prog_egrep='egrep'
3502 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3503 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3504 EGREP=$ac_cv_prog_egrep
3507 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3508 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3509 if test "${ac_cv_header_stdc+set}" = set; then
3510 echo $ECHO_N "(cached) $ECHO_C" >&6
3512 cat >conftest.$ac_ext <<_ACEOF
3515 cat confdefs.h >>conftest.$ac_ext
3516 cat >>conftest.$ac_ext <<_ACEOF
3517 /* end confdefs.h. */
3531 rm -f conftest.$ac_objext
3532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3533 (eval $ac_compile) 2>conftest.er1
3535 grep -v '^ *+' conftest.er1 >conftest.err
3537 cat conftest.err >&5
3538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3539 (exit $ac_status); } &&
3540 { ac_try='test -z "$ac_c_werror_flag"
3541 || test ! -s conftest.err'
3542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3546 (exit $ac_status); }; } &&
3547 { ac_try='test -s conftest.$ac_objext'
3548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3552 (exit $ac_status); }; }; then
3553 ac_cv_header_stdc=yes
3555 echo "$as_me: failed program was:" >&5
3556 sed 's/^/| /' conftest.$ac_ext >&5
3558 ac_cv_header_stdc=no
3560 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3562 if test $ac_cv_header_stdc = yes; then
3563 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3564 cat >conftest.$ac_ext <<_ACEOF
3567 cat confdefs.h >>conftest.$ac_ext
3568 cat >>conftest.$ac_ext <<_ACEOF
3569 /* end confdefs.h. */
3573 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3574 $EGREP "memchr" >/dev/null 2>&1; then
3577 ac_cv_header_stdc=no
3583 if test $ac_cv_header_stdc = yes; then
3584 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3585 cat >conftest.$ac_ext <<_ACEOF
3588 cat confdefs.h >>conftest.$ac_ext
3589 cat >>conftest.$ac_ext <<_ACEOF
3590 /* end confdefs.h. */
3594 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3595 $EGREP "free" >/dev/null 2>&1; then
3598 ac_cv_header_stdc=no
3604 if test $ac_cv_header_stdc = yes; then
3605 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3606 if test "$cross_compiling" = yes; then
3609 cat >conftest.$ac_ext <<_ACEOF
3612 cat confdefs.h >>conftest.$ac_ext
3613 cat >>conftest.$ac_ext <<_ACEOF
3614 /* end confdefs.h. */
3616 #if ((' ' & 0x0FF) == 0x020)
3617 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3618 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3620 # define ISLOWER(c) \
3621 (('a' <= (c) && (c) <= 'i') \
3622 || ('j' <= (c) && (c) <= 'r') \
3623 || ('s' <= (c) && (c) <= 'z'))
3624 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3627 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3632 for (i = 0; i < 256; i++)
3633 if (XOR (islower (i), ISLOWER (i))
3634 || toupper (i) != TOUPPER (i))
3639 rm -f conftest$ac_exeext
3640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3641 (eval $ac_link) 2>&5
3643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3644 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3649 (exit $ac_status); }; }; then
3652 echo "$as_me: program exited with status $ac_status" >&5
3653 echo "$as_me: failed program was:" >&5
3654 sed 's/^/| /' conftest.$ac_ext >&5
3657 ac_cv_header_stdc=no
3659 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3663 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3664 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3665 if test $ac_cv_header_stdc = yes; then
3667 cat >>confdefs.h <<\_ACEOF
3668 @%:@define STDC_HEADERS 1
3673 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3683 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3684 inttypes.h stdint.h unistd.h
3686 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3687 echo "$as_me:$LINENO: checking for $ac_header" >&5
3688 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3689 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3690 echo $ECHO_N "(cached) $ECHO_C" >&6
3692 cat >conftest.$ac_ext <<_ACEOF
3695 cat confdefs.h >>conftest.$ac_ext
3696 cat >>conftest.$ac_ext <<_ACEOF
3697 /* end confdefs.h. */
3698 $ac_includes_default
3700 @%:@include <$ac_header>
3702 rm -f conftest.$ac_objext
3703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3704 (eval $ac_compile) 2>conftest.er1
3706 grep -v '^ *+' conftest.er1 >conftest.err
3708 cat conftest.err >&5
3709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3710 (exit $ac_status); } &&
3711 { ac_try='test -z "$ac_c_werror_flag"
3712 || test ! -s conftest.err'
3713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3717 (exit $ac_status); }; } &&
3718 { ac_try='test -s conftest.$ac_objext'
3719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3723 (exit $ac_status); }; }; then
3724 eval "$as_ac_Header=yes"
3726 echo "$as_me: failed program was:" >&5
3727 sed 's/^/| /' conftest.$ac_ext >&5
3729 eval "$as_ac_Header=no"
3731 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3733 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3734 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3735 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3736 cat >>confdefs.h <<_ACEOF
3737 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3746 for ac_header in dlfcn.h
3748 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3749 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3750 echo "$as_me:$LINENO: checking for $ac_header" >&5
3751 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3752 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3753 echo $ECHO_N "(cached) $ECHO_C" >&6
3755 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3756 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3758 # Is the header compilable?
3759 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3760 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3761 cat >conftest.$ac_ext <<_ACEOF
3764 cat confdefs.h >>conftest.$ac_ext
3765 cat >>conftest.$ac_ext <<_ACEOF
3766 /* end confdefs.h. */
3767 $ac_includes_default
3768 @%:@include <$ac_header>
3770 rm -f conftest.$ac_objext
3771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3772 (eval $ac_compile) 2>conftest.er1
3774 grep -v '^ *+' conftest.er1 >conftest.err
3776 cat conftest.err >&5
3777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3778 (exit $ac_status); } &&
3779 { ac_try='test -z "$ac_c_werror_flag"
3780 || test ! -s conftest.err'
3781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3785 (exit $ac_status); }; } &&
3786 { ac_try='test -s conftest.$ac_objext'
3787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3791 (exit $ac_status); }; }; then
3792 ac_header_compiler=yes
3794 echo "$as_me: failed program was:" >&5
3795 sed 's/^/| /' conftest.$ac_ext >&5
3797 ac_header_compiler=no
3799 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3800 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3801 echo "${ECHO_T}$ac_header_compiler" >&6
3803 # Is the header present?
3804 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3805 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3806 cat >conftest.$ac_ext <<_ACEOF
3809 cat confdefs.h >>conftest.$ac_ext
3810 cat >>conftest.$ac_ext <<_ACEOF
3811 /* end confdefs.h. */
3812 @%:@include <$ac_header>
3814 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3815 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3817 grep -v '^ *+' conftest.er1 >conftest.err
3819 cat conftest.err >&5
3820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3821 (exit $ac_status); } >/dev/null; then
3822 if test -s conftest.err; then
3823 ac_cpp_err=$ac_c_preproc_warn_flag
3824 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3831 if test -z "$ac_cpp_err"; then
3832 ac_header_preproc=yes
3834 echo "$as_me: failed program was:" >&5
3835 sed 's/^/| /' conftest.$ac_ext >&5
3837 ac_header_preproc=no
3839 rm -f conftest.err conftest.$ac_ext
3840 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3841 echo "${ECHO_T}$ac_header_preproc" >&6
3843 # So? What about this header?
3844 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3846 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3847 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3848 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3849 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3850 ac_header_preproc=yes
3853 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3854 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3855 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3856 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3857 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3858 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3859 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3860 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3861 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3862 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3863 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3864 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3867 @%:@@%:@ ------------------------------------------ @%:@@%:@
3868 @%:@@%:@ Report this to the AC_PACKAGE_NAME lists. @%:@@%:@
3869 @%:@@%:@ ------------------------------------------ @%:@@%:@
3872 sed "s/^/$as_me: WARNING: /" >&2
3875 echo "$as_me:$LINENO: checking for $ac_header" >&5
3876 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3877 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3878 echo $ECHO_N "(cached) $ECHO_C" >&6
3880 eval "$as_ac_Header=\$ac_header_preproc"
3882 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3883 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3886 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3887 cat >>confdefs.h <<_ACEOF
3888 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3899 # Only perform the check for file, if the check method requires it
3900 case $deplibs_check_method in
3902 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3903 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3904 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3905 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3906 echo $ECHO_N "(cached) $ECHO_C" >&6
3910 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3913 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3916 ac_save_MAGIC_CMD="$MAGIC_CMD"
3917 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3918 ac_dummy="/usr/bin:$PATH"
3919 for ac_dir in $ac_dummy; do
3920 test -z "$ac_dir" && ac_dir=.
3921 if test -f $ac_dir/${ac_tool_prefix}file; then
3922 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3923 if test -n "$file_magic_test_file"; then
3924 case $deplibs_check_method in
3926 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3927 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3928 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3929 egrep "$file_magic_regex" > /dev/null; then
3934 *** Warning: the command libtool uses to detect shared libraries,
3935 *** $file_magic_cmd, produces output that libtool cannot recognize.
3936 *** The result is that libtool may fail to recognize shared libraries
3937 *** as such. This will affect the creation of libtool libraries that
3938 *** depend on shared libraries, but programs linked with such libtool
3939 *** libraries will work regardless of this problem. Nevertheless, you
3940 *** may want to report the problem to your system manager and/or to
3941 *** bug-libtool@gnu.org
3951 MAGIC_CMD="$ac_save_MAGIC_CMD"
3956 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3957 if test -n "$MAGIC_CMD"; then
3958 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3959 echo "${ECHO_T}$MAGIC_CMD" >&6
3961 echo "$as_me:$LINENO: result: no" >&5
3962 echo "${ECHO_T}no" >&6
3965 if test -z "$lt_cv_path_MAGIC_CMD"; then
3966 if test -n "$ac_tool_prefix"; then
3967 echo "$as_me:$LINENO: checking for file" >&5
3968 echo $ECHO_N "checking for file... $ECHO_C" >&6
3969 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3970 echo $ECHO_N "(cached) $ECHO_C" >&6
3974 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3977 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3980 ac_save_MAGIC_CMD="$MAGIC_CMD"
3981 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3982 ac_dummy="/usr/bin:$PATH"
3983 for ac_dir in $ac_dummy; do
3984 test -z "$ac_dir" && ac_dir=.
3985 if test -f $ac_dir/file; then
3986 lt_cv_path_MAGIC_CMD="$ac_dir/file"
3987 if test -n "$file_magic_test_file"; then
3988 case $deplibs_check_method in
3990 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3991 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3992 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3993 egrep "$file_magic_regex" > /dev/null; then
3998 *** Warning: the command libtool uses to detect shared libraries,
3999 *** $file_magic_cmd, produces output that libtool cannot recognize.
4000 *** The result is that libtool may fail to recognize shared libraries
4001 *** as such. This will affect the creation of libtool libraries that
4002 *** depend on shared libraries, but programs linked with such libtool
4003 *** libraries will work regardless of this problem. Nevertheless, you
4004 *** may want to report the problem to your system manager and/or to
4005 *** bug-libtool@gnu.org
4015 MAGIC_CMD="$ac_save_MAGIC_CMD"
4020 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4021 if test -n "$MAGIC_CMD"; then
4022 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4023 echo "${ECHO_T}$MAGIC_CMD" >&6
4025 echo "$as_me:$LINENO: result: no" >&5
4026 echo "${ECHO_T}no" >&6
4038 if test -n "$ac_tool_prefix"; then
4039 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4040 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4041 echo "$as_me:$LINENO: checking for $ac_word" >&5
4042 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4043 if test "${ac_cv_prog_RANLIB+set}" = set; then
4044 echo $ECHO_N "(cached) $ECHO_C" >&6
4046 if test -n "$RANLIB"; then
4047 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4053 test -z "$as_dir" && as_dir=.
4054 for ac_exec_ext in '' $ac_executable_extensions; do
4055 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4056 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4057 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4065 RANLIB=$ac_cv_prog_RANLIB
4066 if test -n "$RANLIB"; then
4067 echo "$as_me:$LINENO: result: $RANLIB" >&5
4068 echo "${ECHO_T}$RANLIB" >&6
4070 echo "$as_me:$LINENO: result: no" >&5
4071 echo "${ECHO_T}no" >&6
4075 if test -z "$ac_cv_prog_RANLIB"; then
4076 ac_ct_RANLIB=$RANLIB
4077 # Extract the first word of "ranlib", so it can be a program name with args.
4078 set dummy ranlib; ac_word=$2
4079 echo "$as_me:$LINENO: checking for $ac_word" >&5
4080 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4081 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4082 echo $ECHO_N "(cached) $ECHO_C" >&6
4084 if test -n "$ac_ct_RANLIB"; then
4085 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4091 test -z "$as_dir" && as_dir=.
4092 for ac_exec_ext in '' $ac_executable_extensions; do
4093 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4094 ac_cv_prog_ac_ct_RANLIB="ranlib"
4095 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4101 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4104 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4105 if test -n "$ac_ct_RANLIB"; then
4106 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4107 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4109 echo "$as_me:$LINENO: result: no" >&5
4110 echo "${ECHO_T}no" >&6
4113 RANLIB=$ac_ct_RANLIB
4115 RANLIB="$ac_cv_prog_RANLIB"
4118 if test -n "$ac_tool_prefix"; then
4119 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4120 set dummy ${ac_tool_prefix}strip; ac_word=$2
4121 echo "$as_me:$LINENO: checking for $ac_word" >&5
4122 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4123 if test "${ac_cv_prog_STRIP+set}" = set; then
4124 echo $ECHO_N "(cached) $ECHO_C" >&6
4126 if test -n "$STRIP"; then
4127 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4133 test -z "$as_dir" && as_dir=.
4134 for ac_exec_ext in '' $ac_executable_extensions; do
4135 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4136 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4137 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4145 STRIP=$ac_cv_prog_STRIP
4146 if test -n "$STRIP"; then
4147 echo "$as_me:$LINENO: result: $STRIP" >&5
4148 echo "${ECHO_T}$STRIP" >&6
4150 echo "$as_me:$LINENO: result: no" >&5
4151 echo "${ECHO_T}no" >&6
4155 if test -z "$ac_cv_prog_STRIP"; then
4157 # Extract the first word of "strip", so it can be a program name with args.
4158 set dummy strip; ac_word=$2
4159 echo "$as_me:$LINENO: checking for $ac_word" >&5
4160 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4161 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4162 echo $ECHO_N "(cached) $ECHO_C" >&6
4164 if test -n "$ac_ct_STRIP"; then
4165 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4171 test -z "$as_dir" && as_dir=.
4172 for ac_exec_ext in '' $ac_executable_extensions; do
4173 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4174 ac_cv_prog_ac_ct_STRIP="strip"
4175 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4181 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4184 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4185 if test -n "$ac_ct_STRIP"; then
4186 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4187 echo "${ECHO_T}$ac_ct_STRIP" >&6
4189 echo "$as_me:$LINENO: result: no" >&5
4190 echo "${ECHO_T}no" >&6
4195 STRIP="$ac_cv_prog_STRIP"
4202 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4203 if test "${enable_libtool_lock+set}" = set; then
4204 enableval="$enable_libtool_lock"
4207 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4209 # Some flags need to be propagated to the compiler or linker for good
4213 # Find out which ABI we are using.
4214 echo '#line __oline__ "configure"' > conftest.$ac_ext
4215 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4216 (eval $ac_compile) 2>&5
4218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4219 (exit $ac_status); }; then
4220 case `/usr/bin/file conftest.$ac_objext` in
4236 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4237 SAVE_CFLAGS="$CFLAGS"
4238 CFLAGS="$CFLAGS -belf"
4239 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4240 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4241 if test "${lt_cv_cc_needs_belf+set}" = set; then
4242 echo $ECHO_N "(cached) $ECHO_C" >&6
4247 ac_cpp='$CPP $CPPFLAGS'
4248 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4249 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4250 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4252 cat >conftest.$ac_ext <<_ACEOF
4255 cat confdefs.h >>conftest.$ac_ext
4256 cat >>conftest.$ac_ext <<_ACEOF
4257 /* end confdefs.h. */
4267 rm -f conftest.$ac_objext conftest$ac_exeext
4268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4269 (eval $ac_link) 2>conftest.er1
4271 grep -v '^ *+' conftest.er1 >conftest.err
4273 cat conftest.err >&5
4274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4275 (exit $ac_status); } &&
4276 { ac_try='test -z "$ac_c_werror_flag"
4277 || test ! -s conftest.err'
4278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4282 (exit $ac_status); }; } &&
4283 { ac_try='test -s conftest$ac_exeext'
4284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4288 (exit $ac_status); }; }; then
4289 lt_cv_cc_needs_belf=yes
4291 echo "$as_me: failed program was:" >&5
4292 sed 's/^/| /' conftest.$ac_ext >&5
4294 lt_cv_cc_needs_belf=no
4296 rm -f conftest.err conftest.$ac_objext \
4297 conftest$ac_exeext conftest.$ac_ext
4299 ac_cpp='$CPP $CPPFLAGS'
4300 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4301 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4302 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4305 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4306 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4307 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4308 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4309 CFLAGS="$SAVE_CFLAGS"
4316 # Sed substitution that helps us do robust quoting. It backslashifies
4317 # metacharacters that are still active within double-quoted strings.
4318 Xsed='sed -e s/^X//'
4319 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
4321 # Same as above, but do not quote variable references.
4322 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
4324 # Sed substitution to delay expansion of an escaped shell variable in a
4325 # double_quote_subst'ed string.
4326 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4332 default_ofile=libtool
4333 can_build_shared=yes
4335 # All known linkers require a `.a' archive for static linking (except M$VC,
4336 # which needs '.lib').
4338 ltmain="$ac_aux_dir/ltmain.sh"
4339 ofile="$default_ofile"
4340 with_gnu_ld="$lt_cv_prog_gnu_ld"
4341 need_locks="$enable_libtool_lock"
4344 old_CFLAGS="$CFLAGS"
4346 # Set sane defaults for various variables
4347 test -z "$AR" && AR=ar
4348 test -z "$AR_FLAGS" && AR_FLAGS=cru
4349 test -z "$AS" && AS=as
4350 test -z "$CC" && CC=cc
4351 test -z "$DLLTOOL" && DLLTOOL=dlltool
4352 test -z "$LD" && LD=ld
4353 test -z "$LN_S" && LN_S="ln -s"
4354 test -z "$MAGIC_CMD" && MAGIC_CMD=file
4355 test -z "$NM" && NM=nm
4356 test -z "$OBJDUMP" && OBJDUMP=objdump
4357 test -z "$RANLIB" && RANLIB=:
4358 test -z "$STRIP" && STRIP=:
4359 test -z "$ac_objext" && ac_objext=o
4361 if test x"$host" != x"$build"; then
4362 ac_tool_prefix=${host_alias}-
4367 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
4370 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
4375 # AIX sometimes has problems with the GCC collect2 program. For some
4376 # reason, if we set the COLLECT_NAMES environment variable, the problems
4377 # vanish in a puff of smoke.
4378 if test "X${COLLECT_NAMES+set}" != Xset; then
4380 export COLLECT_NAMES
4385 # Determine commands to create old-style static archives.
4386 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4387 old_postinstall_cmds='chmod 644 $oldlib'
4388 old_postuninstall_cmds=
4390 if test -n "$RANLIB"; then
4393 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
4396 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
4399 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4402 # Allow CC to be a program name with arguments.
4406 ## FIXME: this should be a separate macro
4408 echo "$as_me:$LINENO: checking for objdir" >&5
4409 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
4410 rm -f .libs 2>/dev/null
4411 mkdir .libs 2>/dev/null
4412 if test -d .libs; then
4415 # MS-DOS does not allow filenames that begin with a dot.
4418 rmdir .libs 2>/dev/null
4419 echo "$as_me:$LINENO: result: $objdir" >&5
4420 echo "${ECHO_T}$objdir" >&6
4425 ## FIXME: this should be a separate macro
4428 # Check whether --with-pic or --without-pic was given.
4429 if test "${with_pic+set}" = set; then
4435 test -z "$pic_mode" && pic_mode=default
4437 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
4438 # in isolation, and that seeing it set (from the cache) indicates that
4439 # the associated values are set (in the cache) correctly too.
4440 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
4441 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
4442 if test "${lt_cv_prog_cc_pic+set}" = set; then
4443 echo $ECHO_N "(cached) $ECHO_C" >&6
4446 lt_cv_prog_cc_shlib=
4448 lt_cv_prog_cc_static=
4449 lt_cv_prog_cc_no_builtin=
4450 lt_cv_prog_cc_can_build_shared=$can_build_shared
4452 if test "$GCC" = yes; then
4453 lt_cv_prog_cc_wl='-Wl,'
4454 lt_cv_prog_cc_static='-static'
4458 # Below there is a dirty hack to force normal static linking with -ldl
4459 # The problem is because libdl dynamically linked with both libc and
4460 # libC (AIX C++ library), which obviously doesn't included in libraries
4461 # list by gcc. This cause undefined symbols with -static flags.
4462 # This hack allows C programs to be linked with "-static -ldl", but
4463 # not sure about C++ programs.
4464 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
4467 # FIXME: we need at least 68020 code to build shared libraries, but
4468 # adding the `-m68020' flag to GCC prevents building anything better,
4470 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
4472 beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
4473 # PIC is the default for these OSes.
4475 darwin* | rhapsody*)
4476 # PIC is the default on this platform
4477 # Common symbols not allowed in MH_DYLIB files
4478 lt_cv_prog_cc_pic='-fno-common'
4480 cygwin* | mingw* | pw32* | os2*)
4481 # This hack is so that the source file can tell whether it is being
4482 # built for inclusion in a dll (and should export symbols for example).
4483 lt_cv_prog_cc_pic='-DDLL_EXPORT'
4486 if test -d /usr/nec; then
4487 lt_cv_prog_cc_pic=-Kconform_pic
4491 lt_cv_prog_cc_pic='-fPIC'
4495 # PORTME Check for PIC flags for the system compiler.
4497 aix3* | aix4* | aix5*)
4498 lt_cv_prog_cc_wl='-Wl,'
4499 # All AIX code is PIC.
4500 if test "$host_cpu" = ia64; then
4501 # AIX 5 now supports IA64 processor
4502 lt_cv_prog_cc_static='-Bstatic'
4504 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
4508 hpux9* | hpux10* | hpux11*)
4509 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
4510 lt_cv_prog_cc_wl='-Wl,'
4511 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
4512 lt_cv_prog_cc_pic='+Z'
4516 lt_cv_prog_cc_wl='-Wl,'
4517 lt_cv_prog_cc_static='-non_shared'
4518 # PIC (with -KPIC) is the default.
4521 cygwin* | mingw* | pw32* | os2*)
4522 # This hack is so that the source file can tell whether it is being
4523 # built for inclusion in a dll (and should export symbols for example).
4524 lt_cv_prog_cc_pic='-DDLL_EXPORT'
4528 lt_cv_prog_cc_pic='-KPIC'
4529 lt_cv_prog_cc_static='-Bstatic'
4532 osf3* | osf4* | osf5*)
4533 # All OSF/1 code is PIC.
4534 lt_cv_prog_cc_wl='-Wl,'
4535 lt_cv_prog_cc_static='-non_shared'
4539 lt_cv_prog_cc_pic='-Kpic'
4540 lt_cv_prog_cc_static='-dn'
4541 lt_cv_prog_cc_shlib='-belf'
4545 lt_cv_prog_cc_pic='-KPIC'
4546 lt_cv_prog_cc_static='-Bstatic'
4547 lt_cv_prog_cc_wl='-Wl,'
4551 lt_cv_prog_cc_pic='-PIC'
4552 lt_cv_prog_cc_static='-Bstatic'
4553 lt_cv_prog_cc_wl='-Qoption ld '
4556 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4557 lt_cv_prog_cc_pic='-KPIC'
4558 lt_cv_prog_cc_static='-Bstatic'
4559 if test "x$host_vendor" = xsni; then
4560 lt_cv_prog_cc_wl='-LD'
4562 lt_cv_prog_cc_wl='-Wl,'
4567 lt_cv_prog_cc_pic='-pic'
4568 lt_cv_prog_cc_static='-Bstatic'
4572 if test -d /usr/nec ;then
4573 lt_cv_prog_cc_pic='-Kconform_pic'
4574 lt_cv_prog_cc_static='-Bstatic'
4579 lt_cv_prog_cc_can_build_shared=no
4586 if test -z "$lt_cv_prog_cc_pic"; then
4587 echo "$as_me:$LINENO: result: none" >&5
4588 echo "${ECHO_T}none" >&6
4590 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
4591 echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
4593 # Check to make sure the pic_flag actually works.
4594 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
4595 echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
4596 if test "${lt_cv_prog_cc_pic_works+set}" = set; then
4597 echo $ECHO_N "(cached) $ECHO_C" >&6
4599 save_CFLAGS="$CFLAGS"
4600 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
4601 cat >conftest.$ac_ext <<_ACEOF
4604 cat confdefs.h >>conftest.$ac_ext
4605 cat >>conftest.$ac_ext <<_ACEOF
4606 /* end confdefs.h. */
4616 rm -f conftest.$ac_objext
4617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4618 (eval $ac_compile) 2>conftest.er1
4620 grep -v '^ *+' conftest.er1 >conftest.err
4622 cat conftest.err >&5
4623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4624 (exit $ac_status); } &&
4625 { ac_try='test -z "$ac_c_werror_flag"
4626 || test ! -s conftest.err'
4627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4631 (exit $ac_status); }; } &&
4632 { ac_try='test -s conftest.$ac_objext'
4633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4637 (exit $ac_status); }; }; then
4639 hpux9* | hpux10* | hpux11*)
4640 # On HP-UX, both CC and GCC only warn that PIC is supported... then
4641 # they create non-PIC objects. So, if there were any warnings, we
4642 # assume that PIC is not supported.
4643 if test -s conftest.err; then
4644 lt_cv_prog_cc_pic_works=no
4646 lt_cv_prog_cc_pic_works=yes
4650 lt_cv_prog_cc_pic_works=yes
4655 echo "$as_me: failed program was:" >&5
4656 sed 's/^/| /' conftest.$ac_ext >&5
4658 lt_cv_prog_cc_pic_works=no
4661 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4662 CFLAGS="$save_CFLAGS"
4667 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
4669 lt_cv_prog_cc_can_build_shared=no
4671 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
4674 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
4675 echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
4680 # Check for any special shared library compilation flags.
4681 if test -n "$lt_cv_prog_cc_shlib"; then
4682 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
4683 echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
4684 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
4686 { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
4687 echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
4688 lt_cv_prog_cc_can_build_shared=no
4692 ## FIXME: this should be a separate macro
4694 echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
4695 echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
4696 if test "${lt_cv_prog_cc_static_works+set}" = set; then
4697 echo $ECHO_N "(cached) $ECHO_C" >&6
4699 lt_cv_prog_cc_static_works=no
4700 save_LDFLAGS="$LDFLAGS"
4701 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
4702 cat >conftest.$ac_ext <<_ACEOF
4705 cat confdefs.h >>conftest.$ac_ext
4706 cat >>conftest.$ac_ext <<_ACEOF
4707 /* end confdefs.h. */
4717 rm -f conftest.$ac_objext conftest$ac_exeext
4718 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4719 (eval $ac_link) 2>conftest.er1
4721 grep -v '^ *+' conftest.er1 >conftest.err
4723 cat conftest.err >&5
4724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4725 (exit $ac_status); } &&
4726 { ac_try='test -z "$ac_c_werror_flag"
4727 || test ! -s conftest.err'
4728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4732 (exit $ac_status); }; } &&
4733 { ac_try='test -s conftest$ac_exeext'
4734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4738 (exit $ac_status); }; }; then
4739 lt_cv_prog_cc_static_works=yes
4741 echo "$as_me: failed program was:" >&5
4742 sed 's/^/| /' conftest.$ac_ext >&5
4745 rm -f conftest.err conftest.$ac_objext \
4746 conftest$ac_exeext conftest.$ac_ext
4747 LDFLAGS="$save_LDFLAGS"
4752 # Belt *and* braces to stop my trousers falling down:
4753 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
4754 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
4755 echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
4757 pic_flag="$lt_cv_prog_cc_pic"
4758 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
4759 wl="$lt_cv_prog_cc_wl"
4760 link_static_flag="$lt_cv_prog_cc_static"
4761 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
4762 can_build_shared="$lt_cv_prog_cc_can_build_shared"
4767 ## FIXME: this should be a separate macro
4769 # Check to see if options -o and -c are simultaneously supported by compiler
4770 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
4771 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
4772 if test "${lt_cv_compiler_c_o+set}" = set; then
4773 echo $ECHO_N "(cached) $ECHO_C" >&6
4776 $rm -r conftest 2>/dev/null
4779 echo "int some_variable = 0;" > conftest.$ac_ext
4781 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
4782 # that will create temporary files in the current directory regardless of
4783 # the output directory. Thus, making CWD read-only will cause this test
4784 # to fail, enabling locking or at least warning the user not to do parallel
4787 save_CFLAGS="$CFLAGS"
4788 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
4790 if { (eval echo configure:__oline__: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
4791 # The compiler can only warn and ignore the option if not recognized
4792 # So say no if there are warnings
4793 if test -s out/conftest.err; then
4794 lt_cv_compiler_c_o=no
4796 lt_cv_compiler_c_o=yes
4799 # Append any errors to the config.log.
4800 cat out/conftest.err 1>&5
4801 lt_cv_compiler_c_o=no
4803 CFLAGS="$save_CFLAGS"
4809 $rm -r conftest 2>/dev/null
4813 compiler_c_o=$lt_cv_compiler_c_o
4814 echo "$as_me:$LINENO: result: $compiler_c_o" >&5
4815 echo "${ECHO_T}$compiler_c_o" >&6
4817 if test x"$compiler_c_o" = x"yes"; then
4818 # Check to see if we can write to a .lo
4819 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
4820 echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
4821 if test "${lt_cv_compiler_o_lo+set}" = set; then
4822 echo $ECHO_N "(cached) $ECHO_C" >&6
4825 lt_cv_compiler_o_lo=no
4826 save_CFLAGS="$CFLAGS"
4827 CFLAGS="$CFLAGS -c -o conftest.lo"
4828 save_objext="$ac_objext"
4830 cat >conftest.$ac_ext <<_ACEOF
4833 cat confdefs.h >>conftest.$ac_ext
4834 cat >>conftest.$ac_ext <<_ACEOF
4835 /* end confdefs.h. */
4840 int some_variable = 0;
4845 rm -f conftest.$ac_objext
4846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4847 (eval $ac_compile) 2>conftest.er1
4849 grep -v '^ *+' conftest.er1 >conftest.err
4851 cat conftest.err >&5
4852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4853 (exit $ac_status); } &&
4854 { ac_try='test -z "$ac_c_werror_flag"
4855 || test ! -s conftest.err'
4856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4860 (exit $ac_status); }; } &&
4861 { ac_try='test -s conftest.$ac_objext'
4862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4866 (exit $ac_status); }; }; then
4867 # The compiler can only warn and ignore the option if not recognized
4868 # So say no if there are warnings
4869 if test -s conftest.err; then
4870 lt_cv_compiler_o_lo=no
4872 lt_cv_compiler_o_lo=yes
4876 echo "$as_me: failed program was:" >&5
4877 sed 's/^/| /' conftest.$ac_ext >&5
4880 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4881 ac_objext="$save_objext"
4882 CFLAGS="$save_CFLAGS"
4886 compiler_o_lo=$lt_cv_compiler_o_lo
4887 echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
4888 echo "${ECHO_T}$compiler_o_lo" >&6
4895 ## FIXME: this should be a separate macro
4897 # Check to see if we can do hard links to lock some files if needed
4898 hard_links="nottested"
4899 if test "$compiler_c_o" = no && test "$need_locks" != no; then
4900 # do not overwrite the value of need_locks provided by the user
4901 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
4902 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
4905 ln conftest.a conftest.b 2>/dev/null && hard_links=no
4907 ln conftest.a conftest.b 2>&5 || hard_links=no
4908 ln conftest.a conftest.b 2>/dev/null && hard_links=no
4909 echo "$as_me:$LINENO: result: $hard_links" >&5
4910 echo "${ECHO_T}$hard_links" >&6
4911 if test "$hard_links" = no; then
4912 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
4913 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
4922 ## FIXME: this should be a separate macro
4924 if test "$GCC" = yes; then
4925 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
4926 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
4927 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
4928 echo "int some_variable = 0;" > conftest.$ac_ext
4929 save_CFLAGS="$CFLAGS"
4930 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
4931 compiler_rtti_exceptions=no
4932 cat >conftest.$ac_ext <<_ACEOF
4935 cat confdefs.h >>conftest.$ac_ext
4936 cat >>conftest.$ac_ext <<_ACEOF
4937 /* end confdefs.h. */
4942 int some_variable = 0;
4947 rm -f conftest.$ac_objext
4948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4949 (eval $ac_compile) 2>conftest.er1
4951 grep -v '^ *+' conftest.er1 >conftest.err
4953 cat conftest.err >&5
4954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4955 (exit $ac_status); } &&
4956 { ac_try='test -z "$ac_c_werror_flag"
4957 || test ! -s conftest.err'
4958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4962 (exit $ac_status); }; } &&
4963 { ac_try='test -s conftest.$ac_objext'
4964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4968 (exit $ac_status); }; }; then
4969 # The compiler can only warn and ignore the option if not recognized
4970 # So say no if there are warnings
4971 if test -s conftest.err; then
4972 compiler_rtti_exceptions=no
4974 compiler_rtti_exceptions=yes
4978 echo "$as_me: failed program was:" >&5
4979 sed 's/^/| /' conftest.$ac_ext >&5
4982 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4983 CFLAGS="$save_CFLAGS"
4984 echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
4985 echo "${ECHO_T}$compiler_rtti_exceptions" >&6
4987 if test "$compiler_rtti_exceptions" = "yes"; then
4988 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
4990 no_builtin_flag=' -fno-builtin'
4996 ## FIXME: this should be a separate macro
4998 # See if the linker supports building shared libraries.
4999 echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
5000 echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
5002 allow_undefined_flag=
5004 need_lib_prefix=unknown
5005 need_version=unknown
5006 # when you set need_version to no, make sure it does not cause -set_version
5007 # flags to be left without arguments
5009 archive_expsym_cmds=
5010 old_archive_from_new_cmds=
5011 old_archive_from_expsyms_cmds=
5012 export_dynamic_flag_spec=
5013 whole_archive_flag_spec=
5014 thread_safe_flag_spec=
5015 hardcode_into_libs=no
5016 hardcode_libdir_flag_spec=
5017 hardcode_libdir_separator=
5020 hardcode_shlibpath_var=unsupported
5022 link_all_deplibs=unknown
5023 always_export_symbols=no
5024 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
5025 # include_expsyms should be a list of space-separated symbols to be *always*
5026 # included in the symbol list
5028 # exclude_expsyms can be an egrep regular expression of symbols to exclude
5029 # it will be wrapped by ` (' and `)$', so one must not match beginning or
5030 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5031 # as well as any symbol that contains `d'.
5032 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5033 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5034 # platforms (ab)use it in PIC code, but their linkers get confused if
5035 # the symbol is explicitly referenced. Since portable code cannot
5036 # rely on this symbol name, it's probably fine to never include it in
5037 # preloaded symbol tables.
5038 extract_expsyms_cmds=
5041 cygwin* | mingw* | pw32*)
5042 # FIXME: the MSVC++ port hasn't been tested in a loooong time
5043 # When not using gcc, we currently assume that we are using
5044 # Microsoft Visual C++.
5045 if test "$GCC" != yes; then
5055 if test "$with_gnu_ld" = yes; then
5056 # If archive_cmds runs LD, not CC, wlarc should be empty
5059 # See if GNU ld supports shared libraries.
5061 aix3* | aix4* | aix5*)
5062 # On AIX, the GNU linker is very broken
5063 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
5067 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
5068 *** to be unable to reliably create shared libraries on AIX.
5069 *** Therefore, libtool is disabling shared libraries support. If you
5070 *** really care for shared libraries, you may want to modify your PATH
5071 *** so that a non-GNU linker is found, and then restart.
5077 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)'
5078 hardcode_libdir_flag_spec='-L$libdir'
5079 hardcode_minus_L=yes
5081 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5082 # that the semantics of dynamic libraries on AmigaOS, at least up
5083 # to version 4, is to share data among multiple programs linked
5084 # with the same dynamic library. Since this doesn't match the
5085 # behavior of shared libraries on other platforms, we can use
5091 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5092 allow_undefined_flag=unsupported
5093 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5094 # support --undefined. This deserves some investigation. FIXME
5095 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5101 cygwin* | mingw* | pw32*)
5102 # hardcode_libdir_flag_spec is actually meaningless, as there is
5103 # no search path for DLLs.
5104 hardcode_libdir_flag_spec='-L$libdir'
5105 allow_undefined_flag=unsupported
5106 always_export_symbols=yes
5108 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
5109 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
5110 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
5111 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
5112 else $CC -o impgen impgen.c ; fi)~
5113 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
5115 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
5117 # cygwin and mingw dlls have different entry points and sets of symbols
5119 # FIXME: what about values for MSVC?
5120 dll_entry=__cygwin_dll_entry@12
5121 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
5125 dll_entry=_DllMainCRTStartup@12
5126 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
5130 # mingw and cygwin differ, and it's simplest to just exclude the union
5131 # of the two symbol sets.
5132 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
5134 # recent cygwin and mingw systems supply a stub DllMain which the user
5135 # can override, but on older systems we have to supply one (in ltdll.c)
5136 if test "x$lt_cv_need_dllmain" = "xyes"; then
5137 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
5138 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~
5139 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
5145 # Extract the symbol export list from an `--export-all' def file,
5146 # then regenerate the def file from the symbol export list, so that
5147 # the compiled dll only exports the symbol export list.
5148 # Be careful not to strip the DATA tag left be newer dlltools.
5149 export_symbols_cmds="$ltdll_cmds"'
5150 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
5151 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
5153 # If the export-symbols file already is a .def file (1st line
5154 # is EXPORTS), use it as is.
5155 # If DATA tags from a recent dlltool are present, honour them!
5156 archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
5157 cp $export_symbols $output_objdir/$soname-def;
5159 echo EXPORTS > $output_objdir/$soname-def;
5161 cat $export_symbols | while read symbol; do
5164 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
5165 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
5167 _lt_hint=`expr 1 + \$_lt_hint`;
5171 $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~
5172 $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~
5173 $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~
5174 $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~
5175 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
5179 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5180 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5183 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5184 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5189 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
5193 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
5194 *** create shared libraries on Solaris systems. Therefore, libtool
5195 *** is disabling shared libraries support. We urge you to upgrade GNU
5196 *** binutils to release 2.9.1 or newer. Another option is to modify
5197 *** your PATH or compiler configuration so that the native linker is
5198 *** used, and then restart.
5201 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5202 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5203 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5210 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5213 hardcode_shlibpath_var=no
5217 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5218 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5219 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5226 if test "$ld_shlibs" = yes; then
5227 runpath_var=LD_RUN_PATH
5228 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
5229 export_dynamic_flag_spec='${wl}--export-dynamic'
5231 cygwin* | mingw* | pw32*)
5232 # dlltool doesn't understand --whole-archive et. al.
5233 whole_archive_flag_spec=
5236 # ancient GNU ld didn't support --whole-archive et. al.
5237 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
5238 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5240 whole_archive_flag_spec=
5246 # PORTME fill in a description of your system's linker (not GNU ld)
5249 allow_undefined_flag=unsupported
5250 always_export_symbols=yes
5251 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'
5252 # Note: this linker hardcodes the directories in LIBPATH if there
5253 # are no directories specified by -L.
5254 hardcode_minus_L=yes
5255 if test "$GCC" = yes && test -z "$link_static_flag"; then
5256 # Neither direct hardcoding nor static linking is supported with a
5258 hardcode_direct=unsupported
5263 if test "$host_cpu" = ia64; then
5264 # On IA64, the linker does run time linking by default, so we don't
5265 # have to do anything special.
5266 aix_use_runtimelinking=no
5267 exp_sym_flag='-Bexport'
5270 aix_use_runtimelinking=no
5272 # Test if we are trying to use run time linking or normal
5273 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5274 # need to do runtime linking.
5275 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
5276 for ld_flag in $LDFLAGS; do
5277 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
5278 aix_use_runtimelinking=yes
5284 exp_sym_flag='-bexport'
5285 no_entry_flag='-bnoentry'
5288 # When large executables or shared objects are built, AIX ld can
5289 # have problems creating the table of contents. If linking a library
5290 # or program results in "error TOC overflow" add -mminimal-toc to
5291 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5292 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5296 hardcode_libdir_separator=':'
5297 if test "$GCC" = yes; then
5298 case $host_os in aix4.[012]|aix4.[012].*)
5299 collect2name=`${CC} -print-prog-name=collect2`
5300 if test -f "$collect2name" && \
5301 strings "$collect2name" | grep resolve_lib_name >/dev/null
5303 # We have reworked collect2
5306 # We have old collect2
5307 hardcode_direct=unsupported
5308 # It fails to find uninstalled libraries when the uninstalled
5309 # path is not listed in the libpath. Setting hardcode_minus_L
5310 # to unsupported forces relinking
5311 hardcode_minus_L=yes
5312 hardcode_libdir_flag_spec='-L$libdir'
5313 hardcode_libdir_separator=
5317 shared_flag='-shared'
5320 if test "$host_cpu" = ia64; then
5321 shared_flag='${wl}-G'
5323 if test "$aix_use_runtimelinking" = yes; then
5324 shared_flag='${wl}-G'
5326 shared_flag='${wl}-bM:SRE'
5331 # It seems that -bexpall can do strange things, so it is better to
5332 # generate a list of symbols to export.
5333 always_export_symbols=yes
5334 if test "$aix_use_runtimelinking" = yes; then
5335 # Warning - without using the other runtime loading flags (-brtl),
5336 # -berok will link without error, but may produce a broken library.
5337 allow_undefined_flag='-berok'
5338 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
5339 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"
5341 if test "$host_cpu" = ia64; then
5342 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
5343 allow_undefined_flag="-z nodefs"
5344 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"
5346 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
5347 # Warning - without using the other run time loading flags,
5348 # -berok will link without error, but may produce a broken library.
5349 allow_undefined_flag='${wl}-berok'
5350 # This is a bit strange, but is similar to how AIX traditionally builds
5351 # it's shared libraries.
5352 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'
5358 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)'
5359 hardcode_libdir_flag_spec='-L$libdir'
5360 hardcode_minus_L=yes
5361 # see comment about different semantics on the GNU ld section
5365 cygwin* | mingw* | pw32*)
5366 # When not using gcc, we currently assume that we are using
5367 # Microsoft Visual C++.
5368 # hardcode_libdir_flag_spec is actually meaningless, as there is
5369 # no search path for DLLs.
5370 hardcode_libdir_flag_spec=' '
5371 allow_undefined_flag=unsupported
5372 # Tell ltmain to make .lib files, not .a files.
5374 # FIXME: Setting linknames here is a bad hack.
5375 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5376 # The linker will automatically build a .lib file if we build a DLL.
5377 old_archive_from_new_cmds='true'
5378 # FIXME: Should let the user specify the lib program.
5379 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
5380 fix_srcfile_path='`cygpath -w "$srcfile"`'
5383 darwin* | rhapsody*)
5385 rhapsody* | darwin1.[012])
5386 allow_undefined_flag='-undefined suppress'
5389 allow_undefined_flag='-flat_namespace -undefined suppress'
5392 # FIXME: Relying on posixy $() will cause problems for
5393 # cross-compilation, but unfortunately the echo tests do not
5394 # yet detect zsh echo's removal of \ escapes.
5395 archive_cmds='$nonopt $(test "x$module" = xyes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
5396 # We need to add '_' to the symbols in $export_symbols first
5397 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
5399 hardcode_shlibpath_var=no
5400 whole_archive_flag_spec='-all_load $convenience'
5407 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5408 # support. Future versions do this automatically, but an explicit c++rt0.o
5409 # does not break anything, and helps significantly (at the cost of a little
5412 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5413 hardcode_libdir_flag_spec='-R$libdir'
5415 hardcode_shlibpath_var=no
5418 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5420 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5422 hardcode_minus_L=yes
5423 hardcode_shlibpath_var=no
5426 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5428 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5429 hardcode_libdir_flag_spec='-R$libdir'
5431 hardcode_shlibpath_var=no
5434 hpux9* | hpux10* | hpux11*)
5436 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' ;;
5437 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
5439 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
5440 hardcode_libdir_separator=:
5442 hardcode_minus_L=yes # Not in the search PATH, but as the default
5443 # location of the library.
5444 export_dynamic_flag_spec='${wl}-E'
5448 if test "$GCC" = yes; then
5449 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'
5451 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'
5453 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5454 hardcode_libdir_separator=:
5455 link_all_deplibs=yes
5459 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5460 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
5462 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
5464 hardcode_libdir_flag_spec='-R$libdir'
5466 hardcode_shlibpath_var=no
5470 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5472 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5473 hardcode_libdir_separator=:
5474 hardcode_shlibpath_var=no
5479 hardcode_shlibpath_var=no
5480 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5481 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
5482 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5483 export_dynamic_flag_spec='${wl}-E'
5486 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
5487 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5488 hardcode_libdir_flag_spec='-R$libdir'
5491 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
5492 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5499 hardcode_libdir_flag_spec='-L$libdir'
5500 hardcode_minus_L=yes
5501 allow_undefined_flag=unsupported
5502 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'
5503 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5507 if test "$GCC" = yes; then
5508 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5509 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'
5511 allow_undefined_flag=' -expect_unresolved \*'
5512 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'
5514 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5515 hardcode_libdir_separator=:
5518 osf4* | osf5*) # as osf3* with the addition of -msym flag
5519 if test "$GCC" = yes; then
5520 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5521 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'
5522 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5524 allow_undefined_flag=' -expect_unresolved \*'
5525 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'
5526 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
5527 $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'
5529 #Both c and cxx compiler support -rpath directly
5530 hardcode_libdir_flag_spec='-rpath $libdir'
5532 hardcode_libdir_separator=:
5536 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5537 hardcode_shlibpath_var=no
5538 runpath_var=LD_RUN_PATH
5539 hardcode_runpath_var=yes
5540 export_dynamic_flag_spec='${wl}-Bexport'
5544 # gcc --version < 3.0 without binutils cannot create self contained
5545 # shared libraries reliably, requiring libgcc.a to resolve some of
5546 # the object symbols generated in some cases. Libraries that use
5547 # assert need libgcc.a to resolve __eprintf, for example. Linking
5548 # a copy of libgcc.a into every shared library to guarantee resolving
5549 # such symbols causes other problems: According to Tim Van Holder
5550 # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
5551 # (to the application) exception stack for one thing.
5552 no_undefined_flag=' -z defs'
5553 if test "$GCC" = yes; then
5554 case `$CC --version 2>/dev/null` in
5558 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
5559 *** create self contained shared libraries on Solaris systems, without
5560 *** introducing a dependency on libgcc.a. Therefore, libtool is disabling
5561 *** -no-undefined support, which will at least allow you to build shared
5562 *** libraries. However, you may find that when you link such libraries
5563 *** into an application without using GCC, you have to manually add
5564 *** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
5565 *** upgrade to a newer version of GCC. Another option is to rebuild your
5566 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
5573 # $CC -shared without GNU ld will not create a library from C++
5574 # object files and a static libstdc++, better avoid it by now
5575 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5576 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5577 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5578 hardcode_libdir_flag_spec='-R$libdir'
5579 hardcode_shlibpath_var=no
5581 solaris2.[0-5] | solaris2.[0-5].*) ;;
5582 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
5583 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
5585 link_all_deplibs=yes
5589 if test "x$host_vendor" = xsequent; then
5590 # Use $CC to link under sequent, because it throws in some extra .o
5591 # files that make .init and .fini sections work.
5592 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5594 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5596 hardcode_libdir_flag_spec='-L$libdir'
5598 hardcode_minus_L=yes
5599 hardcode_shlibpath_var=no
5603 if test "x$host_vendor" = xsno; then
5604 archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
5605 hardcode_direct=yes # is this really true???
5607 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5608 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
5610 runpath_var='LD_RUN_PATH'
5611 hardcode_shlibpath_var=no
5615 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5616 hardcode_shlibpath_var=no
5617 export_dynamic_flag_spec='-Bexport'
5621 no_undefined_flag=' -z text'
5622 # $CC -shared without GNU ld will not create a library from C++
5623 # object files and a static libstdc++, better avoid it by now
5624 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5625 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5626 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5627 hardcode_libdir_flag_spec=
5628 hardcode_shlibpath_var=no
5629 runpath_var='LD_RUN_PATH'
5633 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5634 hardcode_libdir_flag_spec='-L$libdir'
5635 hardcode_shlibpath_var=no
5639 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5640 hardcode_libdir_flag_spec='-L$libdir'
5641 hardcode_shlibpath_var=no
5645 if test -d /usr/nec; then
5646 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5647 hardcode_shlibpath_var=no
5648 runpath_var=LD_RUN_PATH
5649 hardcode_runpath_var=yes
5655 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5658 hardcode_shlibpath_var=no
5659 hardcode_runpath_var=yes
5660 runpath_var=LD_RUN_PATH
5663 sysv5uw7* | unixware7*)
5664 no_undefined_flag='${wl}-z ${wl}text'
5665 if test "$GCC" = yes; then
5666 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5668 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5670 runpath_var='LD_RUN_PATH'
5671 hardcode_shlibpath_var=no
5679 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
5680 echo "${ECHO_T}$ld_shlibs" >&6
5681 test "$ld_shlibs" = no && can_build_shared=no
5685 ## FIXME: this should be a separate macro
5687 # Check hardcoding attributes.
5688 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
5689 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
5691 if test -n "$hardcode_libdir_flag_spec" || \
5692 test -n "$runpath_var"; then
5694 # We can hardcode non-existant directories.
5695 if test "$hardcode_direct" != no &&
5696 # If the only mechanism to avoid hardcoding is shlibpath_var, we
5697 # have to relink, otherwise we might link with an installed library
5698 # when we should be linking with a yet-to-be-installed one
5699 ## test "$hardcode_shlibpath_var" != no &&
5700 test "$hardcode_minus_L" != no; then
5701 # Linking always hardcodes the temporary library directory.
5702 hardcode_action=relink
5704 # We can link without hardcoding, and we can hardcode nonexisting dirs.
5705 hardcode_action=immediate
5708 # We cannot hardcode anything, or else we can only hardcode existing
5710 hardcode_action=unsupported
5712 echo "$as_me:$LINENO: result: $hardcode_action" >&5
5713 echo "${ECHO_T}$hardcode_action" >&6
5717 ## FIXME: this should be a separate macro
5721 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
5722 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
5723 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
5724 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
5725 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
5726 echo "$as_me:$LINENO: result: yes" >&5
5727 echo "${ECHO_T}yes" >&6
5729 echo "$as_me:$LINENO: result: no" >&5
5730 echo "${ECHO_T}no" >&6
5735 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5736 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5738 ## FIXME: this should be a separate macro
5740 # PORTME Fill in your ld.so characteristics
5741 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
5742 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
5744 libname_spec='lib$name'
5751 shlibpath_overrides_runpath=unknown
5753 dynamic_linker="$host_os ld.so"
5754 sys_lib_dlsearch_path_spec="/lib /usr/lib"
5755 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
5760 library_names_spec='${libname}${release}.so$versuffix $libname.a'
5761 shlibpath_var=LIBPATH
5763 # AIX has no versioning support, so we append a major version to the name.
5764 soname_spec='${libname}${release}.so$major'
5769 if test "$host_cpu" = ia64; then
5770 # AIX 5 supports IA64
5771 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
5772 shlibpath_var=LD_LIBRARY_PATH
5774 # With GCC up to 2.95.x, collect2 would create an import file
5775 # for dependence libraries. The import file would start with
5776 # the line `#! .'. This would cause the generated library to
5777 # depend on `.', always an invalid library. This was fixed in
5778 # development snapshots of GCC prior to 3.0.
5780 aix4 | aix4.[01] | aix4.[01].*)
5781 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
5783 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
5790 # AIX (on Power*) has no versioning support, so currently we can
5791 # not hardcode correct soname into executable. Probably we can
5792 # add versioning support to collect2, so additional links can
5793 # be useful in future.
5794 if test "$aix_use_runtimelinking" = yes; then
5795 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
5796 # instead of lib<name>.a to let people know that these are not
5797 # typical AIX shared libraries.
5798 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5800 # We preserve .a as extension for shared libraries through AIX4.2
5801 # and later when we are not doing run time linking.
5802 library_names_spec='${libname}${release}.a $libname.a'
5803 soname_spec='${libname}${release}.so$major'
5805 shlibpath_var=LIBPATH
5810 library_names_spec='$libname.ixlibrary $libname.a'
5811 # Create ${libname}_ixlibrary.a entries in /sys/libs.
5812 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'
5816 library_names_spec='${libname}.so'
5817 dynamic_linker="$host_os ld.so"
5818 shlibpath_var=LIBRARY_PATH
5824 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5825 soname_spec='${libname}${release}.so$major'
5826 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
5827 shlibpath_var=LD_LIBRARY_PATH
5828 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
5829 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
5830 export_dynamic_flag_spec=-rdynamic
5831 # the default ld.so.conf also contains /usr/contrib/lib and
5832 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
5833 # libtool to hard-code these into programs
5836 cygwin* | mingw* | pw32*)
5837 version_type=windows
5840 case $GCC,$host_os in
5842 library_names_spec='$libname.dll.a'
5843 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
5844 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
5845 dldir=$destdir/`dirname \$dlpath`~
5846 test -d \$dldir || mkdir -p \$dldir~
5847 $install_prog .libs/$dlname \$dldir/$dlname'
5848 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
5849 dlpath=$dir/\$dldll~
5853 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
5854 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
5857 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
5860 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
5863 dynamic_linker='Win32 ld.exe'
5864 # FIXME: first we should search . and the directory the executable is in
5868 darwin* | rhapsody*)
5869 dynamic_linker="$host_os dyld"
5873 # FIXME: Relying on posixy $() will cause problems for
5874 # cross-compilation, but unfortunately the echo tests do not
5875 # yet detect zsh echo's removal of \ escapes.
5876 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)'
5877 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
5878 shlibpath_overrides_runpath=yes
5879 shlibpath_var=DYLD_LIBRARY_PATH
5887 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
5888 version_type=freebsd-$objformat
5889 case $version_type in
5891 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
5896 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
5900 shlibpath_var=LD_LIBRARY_PATH
5903 shlibpath_overrides_runpath=yes
5906 shlibpath_overrides_runpath=no
5907 hardcode_into_libs=yes
5916 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
5917 soname_spec='${libname}${release}.so$major'
5918 shlibpath_var=LD_LIBRARY_PATH
5919 hardcode_into_libs=yes
5922 hpux9* | hpux10* | hpux11*)
5923 # Give a soname corresponding to the major version so that dld.sl refuses to
5924 # link against other versions.
5925 dynamic_linker="$host_os dld.sl"
5929 shlibpath_var=SHLIB_PATH
5930 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
5931 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
5932 soname_spec='${libname}${release}.sl$major'
5933 # HP-UX runs *really* slowly unless shared libraries are mode 555.
5934 postinstall_cmds='chmod 555 $lib'
5941 soname_spec='${libname}${release}.so$major'
5942 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
5948 case $LD in # libtool.m4 will add one of these switches to LD
5949 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
5950 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
5951 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
5952 *) libsuff= shlibsuff= libmagic=never-match;;
5956 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
5957 shlibpath_overrides_runpath=no
5958 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
5959 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
5962 # No shared lib support for Linux oldld, aout, or coff.
5963 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
5967 # This must be Linux ELF.
5972 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5973 soname_spec='${libname}${release}.so$major'
5974 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
5975 shlibpath_var=LD_LIBRARY_PATH
5976 shlibpath_overrides_runpath=no
5977 # This implies no fast_install, which is unacceptable.
5978 # Some rework will be needed to allow for fast_install
5979 # before this can be enabled.
5980 hardcode_into_libs=yes
5982 # We used to test for /lib/ld.so.1 and disable shared libraries on
5983 # powerpc, because MkLinux only supported shared libraries with the
5984 # GNU dynamic linker. Since this was broken with cross compilers,
5985 # most powerpc-linux boxes support dynamic linking these days and
5986 # people can always --disable-shared, the test was removed, and we
5987 # assume the GNU/Linux dynamic linker is in use.
5988 dynamic_linker='GNU/Linux ld.so'
5995 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5996 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5997 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
5998 dynamic_linker='NetBSD (a.out) ld.so'
6000 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
6001 soname_spec='${libname}${release}.so$major'
6002 dynamic_linker='NetBSD ld.elf_so'
6004 shlibpath_var=LD_LIBRARY_PATH
6005 shlibpath_overrides_runpath=yes
6006 hardcode_into_libs=yes
6011 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6012 shlibpath_var=LD_LIBRARY_PATH
6013 shlibpath_overrides_runpath=yes
6020 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6022 openbsd2.[89] | openbsd2.[89].*)
6023 shlibpath_overrides_runpath=no
6026 shlibpath_overrides_runpath=yes
6030 shlibpath_overrides_runpath=yes
6032 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6033 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6034 shlibpath_var=LD_LIBRARY_PATH
6038 libname_spec='$name'
6040 library_names_spec='$libname.dll $libname.a'
6041 dynamic_linker='OS/2 ld.exe'
6042 shlibpath_var=LIBPATH
6045 osf3* | osf4* | osf5*)
6048 soname_spec='${libname}${release}.so'
6049 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6050 shlibpath_var=LD_LIBRARY_PATH
6051 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6052 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6057 soname_spec='${libname}${release}.so$major'
6058 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6059 shlibpath_var=LD_LIBRARY_PATH
6066 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6067 soname_spec='${libname}${release}.so$major'
6068 shlibpath_var=LD_LIBRARY_PATH
6069 shlibpath_overrides_runpath=yes
6070 hardcode_into_libs=yes
6071 # ldd complains unless libraries are executable
6072 postinstall_cmds='chmod +x $lib'
6077 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6078 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6079 shlibpath_var=LD_LIBRARY_PATH
6080 shlibpath_overrides_runpath=yes
6081 if test "$with_gnu_ld" = yes; then
6087 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6089 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6090 soname_spec='${libname}${release}.so$major'
6091 shlibpath_var=LD_LIBRARY_PATH
6092 case $host_vendor in
6094 shlibpath_overrides_runpath=no
6099 shlibpath_overrides_runpath=no
6100 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6107 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6108 soname_spec='${libname}${release}.so$major'
6109 shlibpath_var=LD_LIBRARY_PATH
6116 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6117 soname_spec='${libname}${release}.so$major'
6118 shlibpath_var=LD_LIBRARY_PATH
6122 if test -d /usr/nec ;then
6124 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
6125 soname_spec='$libname.so.$major'
6126 shlibpath_var=LD_LIBRARY_PATH
6134 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
6135 echo "${ECHO_T}$dynamic_linker" >&6
6136 test "$dynamic_linker" = no && can_build_shared=no
6140 ## FIXME: this should be a separate macro
6142 # Report the final consequences.
6143 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
6144 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
6145 echo "$as_me:$LINENO: result: $can_build_shared" >&5
6146 echo "${ECHO_T}$can_build_shared" >&6
6150 ## FIXME: this should be a separate macro
6152 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
6153 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
6154 test "$can_build_shared" = "no" && enable_shared=no
6156 # On AIX, shared libraries and static libraries use the same namespace, and
6157 # are all built from PIC.
6160 test "$enable_shared" = yes && enable_static=no
6161 if test -n "$RANLIB"; then
6162 archive_cmds="$archive_cmds~\$RANLIB \$lib"
6163 postinstall_cmds='$RANLIB $lib'
6168 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6169 test "$enable_shared" = yes && enable_static=no
6173 echo "$as_me:$LINENO: result: $enable_shared" >&5
6174 echo "${ECHO_T}$enable_shared" >&6
6178 ## FIXME: this should be a separate macro
6180 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
6181 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
6182 # Make sure either enable_shared or enable_static is yes.
6183 test "$enable_shared" = yes || enable_static=yes
6184 echo "$as_me:$LINENO: result: $enable_static" >&5
6185 echo "${ECHO_T}$enable_static" >&6
6189 if test "$hardcode_action" = relink; then
6190 # Fast installation is not supported
6191 enable_fast_install=no
6192 elif test "$shlibpath_overrides_runpath" = yes ||
6193 test "$enable_shared" = no; then
6194 # Fast installation is not necessary
6195 enable_fast_install=needless
6198 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6199 if test "$GCC" = yes; then
6200 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6203 if test "x$enable_dlopen" != xyes; then
6204 enable_dlopen=unknown
6205 enable_dlopen_self=unknown
6206 enable_dlopen_self_static=unknown
6213 lt_cv_dlopen="load_add_on"
6215 lt_cv_dlopen_self=yes
6218 cygwin* | mingw* | pw32*)
6219 lt_cv_dlopen="LoadLibrary"
6224 echo "$as_me:$LINENO: checking for shl_load" >&5
6225 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
6226 if test "${ac_cv_func_shl_load+set}" = set; then
6227 echo $ECHO_N "(cached) $ECHO_C" >&6
6229 cat >conftest.$ac_ext <<_ACEOF
6232 cat confdefs.h >>conftest.$ac_ext
6233 cat >>conftest.$ac_ext <<_ACEOF
6234 /* end confdefs.h. */
6235 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
6236 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6237 #define shl_load innocuous_shl_load
6239 /* System header to define __stub macros and hopefully few prototypes,
6240 which can conflict with char shl_load (); below.
6241 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6242 <limits.h> exists even on freestanding compilers. */
6245 # include <limits.h>
6247 # include <assert.h>
6252 /* Override any gcc2 internal prototype to avoid an error. */
6257 /* We use char because int might match the return type of a gcc2
6258 builtin and then its argument prototype would still apply. */
6260 /* The GNU C library defines this for functions which it implements
6261 to always fail with ENOSYS. Some functions are actually named
6262 something starting with __ and the normal name is an alias. */
6263 #if defined (__stub_shl_load) || defined (__stub___shl_load)
6266 char (*f) () = shl_load;
6275 return f != shl_load;
6280 rm -f conftest.$ac_objext conftest$ac_exeext
6281 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6282 (eval $ac_link) 2>conftest.er1
6284 grep -v '^ *+' conftest.er1 >conftest.err
6286 cat conftest.err >&5
6287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6288 (exit $ac_status); } &&
6289 { ac_try='test -z "$ac_c_werror_flag"
6290 || test ! -s conftest.err'
6291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6295 (exit $ac_status); }; } &&
6296 { ac_try='test -s conftest$ac_exeext'
6297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6301 (exit $ac_status); }; }; then
6302 ac_cv_func_shl_load=yes
6304 echo "$as_me: failed program was:" >&5
6305 sed 's/^/| /' conftest.$ac_ext >&5
6307 ac_cv_func_shl_load=no
6309 rm -f conftest.err conftest.$ac_objext \
6310 conftest$ac_exeext conftest.$ac_ext
6312 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
6313 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
6314 if test $ac_cv_func_shl_load = yes; then
6315 lt_cv_dlopen="shl_load"
6317 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
6318 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
6319 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
6320 echo $ECHO_N "(cached) $ECHO_C" >&6
6322 ac_check_lib_save_LIBS=$LIBS
6324 cat >conftest.$ac_ext <<_ACEOF
6327 cat confdefs.h >>conftest.$ac_ext
6328 cat >>conftest.$ac_ext <<_ACEOF
6329 /* end confdefs.h. */
6331 /* Override any gcc2 internal prototype to avoid an error. */
6335 /* We use char because int might match the return type of a gcc2
6336 builtin and then its argument prototype would still apply. */
6346 rm -f conftest.$ac_objext conftest$ac_exeext
6347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6348 (eval $ac_link) 2>conftest.er1
6350 grep -v '^ *+' conftest.er1 >conftest.err
6352 cat conftest.err >&5
6353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6354 (exit $ac_status); } &&
6355 { ac_try='test -z "$ac_c_werror_flag"
6356 || test ! -s conftest.err'
6357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6361 (exit $ac_status); }; } &&
6362 { ac_try='test -s conftest$ac_exeext'
6363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6367 (exit $ac_status); }; }; then
6368 ac_cv_lib_dld_shl_load=yes
6370 echo "$as_me: failed program was:" >&5
6371 sed 's/^/| /' conftest.$ac_ext >&5
6373 ac_cv_lib_dld_shl_load=no
6375 rm -f conftest.err conftest.$ac_objext \
6376 conftest$ac_exeext conftest.$ac_ext
6377 LIBS=$ac_check_lib_save_LIBS
6379 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
6380 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
6381 if test $ac_cv_lib_dld_shl_load = yes; then
6382 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
6384 echo "$as_me:$LINENO: checking for dlopen" >&5
6385 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
6386 if test "${ac_cv_func_dlopen+set}" = set; then
6387 echo $ECHO_N "(cached) $ECHO_C" >&6
6389 cat >conftest.$ac_ext <<_ACEOF
6392 cat confdefs.h >>conftest.$ac_ext
6393 cat >>conftest.$ac_ext <<_ACEOF
6394 /* end confdefs.h. */
6395 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
6396 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6397 #define dlopen innocuous_dlopen
6399 /* System header to define __stub macros and hopefully few prototypes,
6400 which can conflict with char dlopen (); below.
6401 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6402 <limits.h> exists even on freestanding compilers. */
6405 # include <limits.h>
6407 # include <assert.h>
6412 /* Override any gcc2 internal prototype to avoid an error. */
6417 /* We use char because int might match the return type of a gcc2
6418 builtin and then its argument prototype would still apply. */
6420 /* The GNU C library defines this for functions which it implements
6421 to always fail with ENOSYS. Some functions are actually named
6422 something starting with __ and the normal name is an alias. */
6423 #if defined (__stub_dlopen) || defined (__stub___dlopen)
6426 char (*f) () = dlopen;
6440 rm -f conftest.$ac_objext conftest$ac_exeext
6441 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6442 (eval $ac_link) 2>conftest.er1
6444 grep -v '^ *+' conftest.er1 >conftest.err
6446 cat conftest.err >&5
6447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6448 (exit $ac_status); } &&
6449 { ac_try='test -z "$ac_c_werror_flag"
6450 || test ! -s conftest.err'
6451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6455 (exit $ac_status); }; } &&
6456 { ac_try='test -s conftest$ac_exeext'
6457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6461 (exit $ac_status); }; }; then
6462 ac_cv_func_dlopen=yes
6464 echo "$as_me: failed program was:" >&5
6465 sed 's/^/| /' conftest.$ac_ext >&5
6467 ac_cv_func_dlopen=no
6469 rm -f conftest.err conftest.$ac_objext \
6470 conftest$ac_exeext conftest.$ac_ext
6472 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
6473 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
6474 if test $ac_cv_func_dlopen = yes; then
6475 lt_cv_dlopen="dlopen"
6477 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
6478 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
6479 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
6480 echo $ECHO_N "(cached) $ECHO_C" >&6
6482 ac_check_lib_save_LIBS=$LIBS
6484 cat >conftest.$ac_ext <<_ACEOF
6487 cat confdefs.h >>conftest.$ac_ext
6488 cat >>conftest.$ac_ext <<_ACEOF
6489 /* end confdefs.h. */
6491 /* Override any gcc2 internal prototype to avoid an error. */
6495 /* We use char because int might match the return type of a gcc2
6496 builtin and then its argument prototype would still apply. */
6506 rm -f conftest.$ac_objext conftest$ac_exeext
6507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6508 (eval $ac_link) 2>conftest.er1
6510 grep -v '^ *+' conftest.er1 >conftest.err
6512 cat conftest.err >&5
6513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6514 (exit $ac_status); } &&
6515 { ac_try='test -z "$ac_c_werror_flag"
6516 || test ! -s conftest.err'
6517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6521 (exit $ac_status); }; } &&
6522 { ac_try='test -s conftest$ac_exeext'
6523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6527 (exit $ac_status); }; }; then
6528 ac_cv_lib_dl_dlopen=yes
6530 echo "$as_me: failed program was:" >&5
6531 sed 's/^/| /' conftest.$ac_ext >&5
6533 ac_cv_lib_dl_dlopen=no
6535 rm -f conftest.err conftest.$ac_objext \
6536 conftest$ac_exeext conftest.$ac_ext
6537 LIBS=$ac_check_lib_save_LIBS
6539 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
6540 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
6541 if test $ac_cv_lib_dl_dlopen = yes; then
6542 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
6544 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
6545 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
6546 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
6547 echo $ECHO_N "(cached) $ECHO_C" >&6
6549 ac_check_lib_save_LIBS=$LIBS
6551 cat >conftest.$ac_ext <<_ACEOF
6554 cat confdefs.h >>conftest.$ac_ext
6555 cat >>conftest.$ac_ext <<_ACEOF
6556 /* end confdefs.h. */
6558 /* Override any gcc2 internal prototype to avoid an error. */
6562 /* We use char because int might match the return type of a gcc2
6563 builtin and then its argument prototype would still apply. */
6573 rm -f conftest.$ac_objext conftest$ac_exeext
6574 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6575 (eval $ac_link) 2>conftest.er1
6577 grep -v '^ *+' conftest.er1 >conftest.err
6579 cat conftest.err >&5
6580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6581 (exit $ac_status); } &&
6582 { ac_try='test -z "$ac_c_werror_flag"
6583 || test ! -s conftest.err'
6584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6588 (exit $ac_status); }; } &&
6589 { ac_try='test -s conftest$ac_exeext'
6590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6594 (exit $ac_status); }; }; then
6595 ac_cv_lib_svld_dlopen=yes
6597 echo "$as_me: failed program was:" >&5
6598 sed 's/^/| /' conftest.$ac_ext >&5
6600 ac_cv_lib_svld_dlopen=no
6602 rm -f conftest.err conftest.$ac_objext \
6603 conftest$ac_exeext conftest.$ac_ext
6604 LIBS=$ac_check_lib_save_LIBS
6606 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
6607 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
6608 if test $ac_cv_lib_svld_dlopen = yes; then
6609 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
6611 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
6612 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
6613 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
6614 echo $ECHO_N "(cached) $ECHO_C" >&6
6616 ac_check_lib_save_LIBS=$LIBS
6618 cat >conftest.$ac_ext <<_ACEOF
6621 cat confdefs.h >>conftest.$ac_ext
6622 cat >>conftest.$ac_ext <<_ACEOF
6623 /* end confdefs.h. */
6625 /* Override any gcc2 internal prototype to avoid an error. */
6629 /* We use char because int might match the return type of a gcc2
6630 builtin and then its argument prototype would still apply. */
6640 rm -f conftest.$ac_objext conftest$ac_exeext
6641 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6642 (eval $ac_link) 2>conftest.er1
6644 grep -v '^ *+' conftest.er1 >conftest.err
6646 cat conftest.err >&5
6647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6648 (exit $ac_status); } &&
6649 { ac_try='test -z "$ac_c_werror_flag"
6650 || test ! -s conftest.err'
6651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6655 (exit $ac_status); }; } &&
6656 { ac_try='test -s conftest$ac_exeext'
6657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6661 (exit $ac_status); }; }; then
6662 ac_cv_lib_dld_dld_link=yes
6664 echo "$as_me: failed program was:" >&5
6665 sed 's/^/| /' conftest.$ac_ext >&5
6667 ac_cv_lib_dld_dld_link=no
6669 rm -f conftest.err conftest.$ac_objext \
6670 conftest$ac_exeext conftest.$ac_ext
6671 LIBS=$ac_check_lib_save_LIBS
6673 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
6674 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
6675 if test $ac_cv_lib_dld_dld_link = yes; then
6676 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
6697 if test "x$lt_cv_dlopen" != xno; then
6703 case $lt_cv_dlopen in
6705 save_CPPFLAGS="$CPPFLAGS"
6706 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
6708 save_LDFLAGS="$LDFLAGS"
6709 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
6712 LIBS="$lt_cv_dlopen_libs $LIBS"
6714 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
6715 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
6716 if test "${lt_cv_dlopen_self+set}" = set; then
6717 echo $ECHO_N "(cached) $ECHO_C" >&6
6719 if test "$cross_compiling" = yes; then :
6720 lt_cv_dlopen_self=cross
6722 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6723 lt_status=$lt_dlunknown
6724 cat > conftest.$ac_ext <<EOF
6725 #line __oline__ "configure"
6726 #include "confdefs.h"
6735 # define LT_DLGLOBAL RTLD_GLOBAL
6738 # define LT_DLGLOBAL DL_GLOBAL
6740 # define LT_DLGLOBAL 0
6744 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6745 find out it does not work in some platform. */
6746 #ifndef LT_DLLAZY_OR_NOW
6748 # define LT_DLLAZY_OR_NOW RTLD_LAZY
6751 # define LT_DLLAZY_OR_NOW DL_LAZY
6754 # define LT_DLLAZY_OR_NOW RTLD_NOW
6757 # define LT_DLLAZY_OR_NOW DL_NOW
6759 # define LT_DLLAZY_OR_NOW 0
6767 extern "C" void exit (int);
6770 void fnord() { int i=42;}
6773 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6774 int status = $lt_dlunknown;
6778 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
6779 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6780 /* dlclose (self); */
6786 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6787 (eval $ac_link) 2>&5
6789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6790 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
6791 (./conftest; exit; ) 2>/dev/null
6794 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
6795 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
6796 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
6799 # compilation failed
6800 lt_cv_dlopen_self=no
6807 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
6808 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
6810 if test "x$lt_cv_dlopen_self" = xyes; then
6811 LDFLAGS="$LDFLAGS $link_static_flag"
6812 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
6813 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
6814 if test "${lt_cv_dlopen_self_static+set}" = set; then
6815 echo $ECHO_N "(cached) $ECHO_C" >&6
6817 if test "$cross_compiling" = yes; then :
6818 lt_cv_dlopen_self_static=cross
6820 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6821 lt_status=$lt_dlunknown
6822 cat > conftest.$ac_ext <<EOF
6823 #line __oline__ "configure"
6824 #include "confdefs.h"
6833 # define LT_DLGLOBAL RTLD_GLOBAL
6836 # define LT_DLGLOBAL DL_GLOBAL
6838 # define LT_DLGLOBAL 0
6842 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6843 find out it does not work in some platform. */
6844 #ifndef LT_DLLAZY_OR_NOW
6846 # define LT_DLLAZY_OR_NOW RTLD_LAZY
6849 # define LT_DLLAZY_OR_NOW DL_LAZY
6852 # define LT_DLLAZY_OR_NOW RTLD_NOW
6855 # define LT_DLLAZY_OR_NOW DL_NOW
6857 # define LT_DLLAZY_OR_NOW 0
6865 extern "C" void exit (int);
6868 void fnord() { int i=42;}
6871 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6872 int status = $lt_dlunknown;
6876 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
6877 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6878 /* dlclose (self); */
6884 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6885 (eval $ac_link) 2>&5
6887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6888 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
6889 (./conftest; exit; ) 2>/dev/null
6892 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
6893 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
6894 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
6897 # compilation failed
6898 lt_cv_dlopen_self_static=no
6905 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
6906 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
6909 CPPFLAGS="$save_CPPFLAGS"
6910 LDFLAGS="$save_LDFLAGS"
6915 case $lt_cv_dlopen_self in
6916 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
6917 *) enable_dlopen_self=unknown ;;
6920 case $lt_cv_dlopen_self_static in
6921 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
6922 *) enable_dlopen_self_static=unknown ;;
6927 ## FIXME: this should be a separate macro
6929 if test "$enable_shared" = yes && test "$GCC" = yes; then
6930 case $archive_cmds in
6932 # FIXME: we may have to deal with multi-command sequences.
6935 # Test whether the compiler implicitly links with -lc since on some
6936 # systems, -lgcc has to come before -lc. If gcc already passes -lc
6937 # to ld, don't add -lc before -lgcc.
6938 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
6939 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
6940 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
6941 echo $ECHO_N "(cached) $ECHO_C" >&6
6944 echo 'static int dummy;' > conftest.$ac_ext
6946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6947 (eval $ac_compile) 2>&5
6949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6950 (exit $ac_status); }; then
6953 libobjs=conftest.$ac_objext
6955 wl=$lt_cv_prog_cc_wl
6961 save_allow_undefined_flag=$allow_undefined_flag
6962 allow_undefined_flag=
6963 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
6964 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
6966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6967 (exit $ac_status); }
6969 lt_cv_archive_cmds_need_lc=no
6971 lt_cv_archive_cmds_need_lc=yes
6973 allow_undefined_flag=$save_allow_undefined_flag
6975 cat conftest.err 1>&5
6979 echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
6980 echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
6984 need_lc=${lt_cv_archive_cmds_need_lc-yes}
6988 ## FIXME: this should be a separate macro
6990 # The second clause should only fire when bootstrapping the
6991 # libtool distribution, otherwise you forgot to ship ltmain.sh
6992 # with your package, and you will get complaints that there are
6993 # no rules to generate ltmain.sh.
6994 if test -f "$ltmain"; then
6997 # If there is no Makefile yet, we rely on a make rule to execute
6998 # `config.status --recheck' to rerun these tests and create the
6999 # libtool script then.
7000 test -f Makefile && make "$ltmain"
7003 if test -f "$ltmain"; then
7004 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
7007 echo creating $ofile
7009 # Now quote all the things that may contain metacharacters while being
7010 # careful not to overquote the AC_SUBSTed values. We take copies of the
7011 # variables and quote the copies for generation of the libtool script.
7012 for var in echo old_CC old_CFLAGS \
7013 AR AR_FLAGS CC LD LN_S NM SHELL \
7014 reload_flag reload_cmds wl \
7015 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
7016 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
7017 library_names_spec soname_spec \
7018 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
7019 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
7020 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
7021 old_striplib striplib file_magic_cmd export_symbols_cmds \
7022 deplibs_check_method allow_undefined_flag no_undefined_flag \
7023 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
7024 global_symbol_to_c_name_address \
7025 hardcode_libdir_flag_spec hardcode_libdir_separator \
7026 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
7027 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
7030 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
7031 old_postinstall_cmds | old_postuninstall_cmds | \
7032 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
7033 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
7034 postinstall_cmds | postuninstall_cmds | \
7035 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
7036 # Double-quote double-evaled strings.
7037 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
7040 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
7045 cat <<__EOF__ > "${ofile}T"
7048 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7049 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7050 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
7052 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
7053 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7055 # This program is free software; you can redistribute it and/or modify
7056 # it under the terms of the GNU General Public License as published by
7057 # the Free Software Foundation; either version 2 of the License, or
7058 # (at your option) any later version.
7060 # This program is distributed in the hope that it will be useful, but
7061 # WITHOUT ANY WARRANTY; without even the implied warranty of
7062 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
7063 # General Public License for more details.
7065 # You should have received a copy of the GNU General Public License
7066 # along with this program; if not, write to the Free Software
7067 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7069 # As a special exception to the GNU General Public License, if you
7070 # distribute this file as part of a program that contains a
7071 # configuration script generated by Autoconf, you may include it under
7072 # the same distribution terms that you use for the rest of that program.
7074 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
7075 Xsed="sed -e s/^X//"
7077 # The HP-UX ksh and POSIX shell print the target directory to stdout
7079 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
7081 # ### BEGIN LIBTOOL CONFIG
7083 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7085 # Shell to use when invoking shell scripts.
7088 # Whether or not to build shared libraries.
7089 build_libtool_libs=$enable_shared
7091 # Whether or not to build static libraries.
7092 build_old_libs=$enable_static
7094 # Whether or not to add -lc for building shared libraries.
7095 build_libtool_need_lc=$need_lc
7097 # Whether or not to optimize for fast installation.
7098 fast_install=$enable_fast_install
7101 host_alias=$host_alias
7104 # An echo program that does not interpret backslashes.
7109 AR_FLAGS=$lt_AR_FLAGS
7111 # The default C compiler.
7114 # Is the compiler the GNU C compiler?
7117 # The linker used to build libraries.
7120 # Whether we need hard or soft links.
7123 # A BSD-compatible nm program.
7126 # A symbol stripping program
7129 # Used to examine libraries when file_magic_cmd begins "file"
7130 MAGIC_CMD=$MAGIC_CMD
7132 # Used on cygwin: DLL creation program.
7135 # Used on cygwin: object dumper.
7138 # Used on cygwin: assembler.
7141 # The name of the directory that contains temporary libtool files.
7144 # How to create reloadable object files.
7145 reload_flag=$lt_reload_flag
7146 reload_cmds=$lt_reload_cmds
7148 # How to pass a linker flag through the compiler.
7151 # Object file suffix (normally "o").
7154 # Old archive suffix (normally "a").
7157 # Executable file suffix (normally "").
7160 # Additional compiler flags for building library objects.
7161 pic_flag=$lt_pic_flag
7164 # Does compiler simultaneously support -c and -o options?
7165 compiler_c_o=$lt_compiler_c_o
7167 # Can we write directly to a .lo ?
7168 compiler_o_lo=$lt_compiler_o_lo
7170 # Must we lock files when doing compilation ?
7171 need_locks=$lt_need_locks
7173 # Do we need the lib prefix for modules?
7174 need_lib_prefix=$need_lib_prefix
7176 # Do we need a version for libraries?
7177 need_version=$need_version
7179 # Whether dlopen is supported.
7180 dlopen_support=$enable_dlopen
7182 # Whether dlopen of programs is supported.
7183 dlopen_self=$enable_dlopen_self
7185 # Whether dlopen of statically linked programs is supported.
7186 dlopen_self_static=$enable_dlopen_self_static
7188 # Compiler flag to prevent dynamic linking.
7189 link_static_flag=$lt_link_static_flag
7191 # Compiler flag to turn off builtin functions.
7192 no_builtin_flag=$lt_no_builtin_flag
7194 # Compiler flag to allow reflexive dlopens.
7195 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
7197 # Compiler flag to generate shared objects directly from archives.
7198 whole_archive_flag_spec=$lt_whole_archive_flag_spec
7200 # Compiler flag to generate thread-safe objects.
7201 thread_safe_flag_spec=$lt_thread_safe_flag_spec
7203 # Library versioning type.
7204 version_type=$version_type
7206 # Format of library name prefix.
7207 libname_spec=$lt_libname_spec
7209 # List of archive names. First name is the real one, the rest are links.
7210 # The last name is the one that the linker finds with -lNAME.
7211 library_names_spec=$lt_library_names_spec
7213 # The coded name of the library, if different from the real name.
7214 soname_spec=$lt_soname_spec
7216 # Commands used to build and install an old-style archive.
7218 old_archive_cmds=$lt_old_archive_cmds
7219 old_postinstall_cmds=$lt_old_postinstall_cmds
7220 old_postuninstall_cmds=$lt_old_postuninstall_cmds
7222 # Create an old-style archive from a shared archive.
7223 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
7225 # Create a temporary old-style archive to link instead of a shared archive.
7226 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
7228 # Commands used to build and install a shared archive.
7229 archive_cmds=$lt_archive_cmds
7230 archive_expsym_cmds=$lt_archive_expsym_cmds
7231 postinstall_cmds=$lt_postinstall_cmds
7232 postuninstall_cmds=$lt_postuninstall_cmds
7234 # Commands to strip libraries.
7235 old_striplib=$lt_old_striplib
7236 striplib=$lt_striplib
7238 # Method to check whether dependent libraries are shared objects.
7239 deplibs_check_method=$lt_deplibs_check_method
7241 # Command to use when deplibs_check_method == file_magic.
7242 file_magic_cmd=$lt_file_magic_cmd
7244 # Flag that allows shared libraries with undefined symbols to be built.
7245 allow_undefined_flag=$lt_allow_undefined_flag
7247 # Flag that forces no undefined symbols.
7248 no_undefined_flag=$lt_no_undefined_flag
7250 # Commands used to finish a libtool library installation in a directory.
7251 finish_cmds=$lt_finish_cmds
7253 # Same as above, but a single script fragment to be evaled but not shown.
7254 finish_eval=$lt_finish_eval
7256 # Take the output of nm and produce a listing of raw symbols and C names.
7257 global_symbol_pipe=$lt_global_symbol_pipe
7259 # Transform the output of nm in a proper C declaration
7260 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
7262 # Transform the output of nm in a C name address pair
7263 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
7265 # This is the shared library runtime path variable.
7266 runpath_var=$runpath_var
7268 # This is the shared library path variable.
7269 shlibpath_var=$shlibpath_var
7271 # Is shlibpath searched before the hard-coded library search path?
7272 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
7274 # How to hardcode a shared library path into an executable.
7275 hardcode_action=$hardcode_action
7277 # Whether we should hardcode library paths into libraries.
7278 hardcode_into_libs=$hardcode_into_libs
7280 # Flag to hardcode \$libdir into a binary during linking.
7281 # This must work even if \$libdir does not exist.
7282 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
7284 # Whether we need a single -rpath flag with a separated argument.
7285 hardcode_libdir_separator=$lt_hardcode_libdir_separator
7287 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
7289 hardcode_direct=$hardcode_direct
7291 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
7293 hardcode_minus_L=$hardcode_minus_L
7295 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
7296 # the resulting binary.
7297 hardcode_shlibpath_var=$hardcode_shlibpath_var
7299 # Variables whose values should be saved in libtool wrapper scripts and
7300 # restored at relink time.
7301 variables_saved_for_relink="$variables_saved_for_relink"
7303 # Whether libtool must link a program against all its dependency libraries.
7304 link_all_deplibs=$link_all_deplibs
7306 # Compile-time system search path for libraries
7307 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
7309 # Run-time system search path for libraries
7310 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
7312 # Fix the shell variable \$srcfile for the compiler.
7313 fix_srcfile_path="$fix_srcfile_path"
7315 # Set to yes if exported symbols are required.
7316 always_export_symbols=$always_export_symbols
7318 # The commands to list exported symbols.
7319 export_symbols_cmds=$lt_export_symbols_cmds
7321 # The commands to extract the exported symbol list from a shared archive.
7322 extract_expsyms_cmds=$lt_extract_expsyms_cmds
7324 # Symbols that should not be listed in the preloaded symbols.
7325 exclude_expsyms=$lt_exclude_expsyms
7327 # Symbols that must always be exported.
7328 include_expsyms=$lt_include_expsyms
7330 # ### END LIBTOOL CONFIG
7336 cat <<\EOF >> "${ofile}T"
7338 # AIX sometimes has problems with the GCC collect2 program. For some
7339 # reason, if we set the COLLECT_NAMES environment variable, the problems
7340 # vanish in a puff of smoke.
7341 if test "X${COLLECT_NAMES+set}" != Xset; then
7343 export COLLECT_NAMES
7350 cygwin* | mingw* | pw32* | os2*)
7351 cat <<'EOF' >> "${ofile}T"
7352 # This is a source program that is used to create dlls on Windows
7353 # Don't remove nor modify the starting and closing comments
7354 # /* ltdll.c starts here */
7355 # #define WIN32_LEAN_AND_MEAN
7356 # #include <windows.h>
7357 # #undef WIN32_LEAN_AND_MEAN
7358 # #include <stdio.h>
7360 # #ifndef __CYGWIN__
7361 # # ifdef __CYGWIN32__
7362 # # define __CYGWIN__ __CYGWIN32__
7366 # #ifdef __cplusplus
7369 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7370 # #ifdef __cplusplus
7375 # #include <cygwin/cygwin_dll.h>
7376 # DECLARE_CYGWIN_DLL( DllMain );
7378 # HINSTANCE __hDllInstance_base;
7381 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7383 # __hDllInstance_base = hInst;
7386 # /* ltdll.c ends here */
7387 # This is a source program that is used to create import libraries
7388 # on Windows for dlls which lack them. Don't remove nor modify the
7389 # starting and closing comments
7390 # /* impgen.c starts here */
7391 # /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
7393 # This file is part of GNU libtool.
7395 # This program is free software; you can redistribute it and/or modify
7396 # it under the terms of the GNU General Public License as published by
7397 # the Free Software Foundation; either version 2 of the License, or
7398 # (at your option) any later version.
7400 # This program is distributed in the hope that it will be useful,
7401 # but WITHOUT ANY WARRANTY; without even the implied warranty of
7402 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7403 # GNU General Public License for more details.
7405 # You should have received a copy of the GNU General Public License
7406 # along with this program; if not, write to the Free Software
7407 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7410 # #include <stdio.h> /* for printf() */
7411 # #include <unistd.h> /* for open(), lseek(), read() */
7412 # #include <fcntl.h> /* for O_RDONLY, O_BINARY */
7413 # #include <string.h> /* for strdup() */
7415 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
7417 # #define O_BINARY 0
7420 # static unsigned int
7421 # pe_get16 (fd, offset)
7425 # unsigned char b[2];
7426 # lseek (fd, offset, SEEK_SET);
7428 # return b[0] + (b[1]<<8);
7431 # static unsigned int
7432 # pe_get32 (fd, offset)
7436 # unsigned char b[4];
7437 # lseek (fd, offset, SEEK_SET);
7439 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7442 # static unsigned int
7446 # unsigned char *b = ptr;
7447 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7456 # unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
7457 # unsigned long export_rva, export_size, nsections, secptr, expptr;
7458 # unsigned long name_rvas, nexp;
7459 # unsigned char *expdata, *erva;
7460 # char *filename, *dll_name;
7462 # filename = argv[1];
7464 # dll = open(filename, O_RDONLY|O_BINARY);
7468 # dll_name = filename;
7470 # for (i=0; filename[i]; i++)
7471 # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
7472 # dll_name = filename + i +1;
7474 # pe_header_offset = pe_get32 (dll, 0x3c);
7475 # opthdr_ofs = pe_header_offset + 4 + 20;
7476 # num_entries = pe_get32 (dll, opthdr_ofs + 92);
7478 # if (num_entries < 1) /* no exports */
7481 # export_rva = pe_get32 (dll, opthdr_ofs + 96);
7482 # export_size = pe_get32 (dll, opthdr_ofs + 100);
7483 # nsections = pe_get16 (dll, pe_header_offset + 4 +2);
7484 # secptr = (pe_header_offset + 4 + 20 +
7485 # pe_get16 (dll, pe_header_offset + 4 + 16));
7488 # for (i = 0; i < nsections; i++)
7491 # unsigned long secptr1 = secptr + 40 * i;
7492 # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
7493 # unsigned long vsize = pe_get32 (dll, secptr1 + 16);
7494 # unsigned long fptr = pe_get32 (dll, secptr1 + 20);
7495 # lseek(dll, secptr1, SEEK_SET);
7496 # read(dll, sname, 8);
7497 # if (vaddr <= export_rva && vaddr+vsize > export_rva)
7499 # expptr = fptr + (export_rva - vaddr);
7500 # if (export_rva + export_size > vaddr + vsize)
7501 # export_size = vsize - (export_rva - vaddr);
7506 # expdata = (unsigned char*)malloc(export_size);
7507 # lseek (dll, expptr, SEEK_SET);
7508 # read (dll, expdata, export_size);
7509 # erva = expdata - export_rva;
7511 # nexp = pe_as32 (expdata+24);
7512 # name_rvas = pe_as32 (expdata+32);
7514 # printf ("EXPORTS\n");
7515 # for (i = 0; i<nexp; i++)
7517 # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
7518 # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
7523 # /* impgen.c ends here */
7529 # We use sed instead of cat because bash on DJGPP gets confused if
7530 # if finds mixed CR/LF and LF-only lines. Since sed operates in
7531 # text mode, it properly converts lines to CR/LF. This bash problem
7532 # is reportedly fixed, but why not run on old versions too?
7533 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
7535 mv -f "${ofile}T" "$ofile" || \
7536 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
7546 # This can be used to rebuild libtool when needed
7547 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
7549 # Always use our own libtool.
7550 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7552 # Prevent multiple expansion
7556 cat >conftest.$ac_ext <<_ACEOF
7559 cat confdefs.h >>conftest.$ac_ext
7560 cat >>conftest.$ac_ext <<_ACEOF
7561 /* end confdefs.h. */
7565 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7566 $EGREP "pw_quota" >/dev/null 2>&1; then
7567 cat >>confdefs.h <<\_ACEOF
7568 @%:@define HAVE_PW_QUOTA 1
7574 cat >conftest.$ac_ext <<_ACEOF
7577 cat confdefs.h >>conftest.$ac_ext
7578 cat >>conftest.$ac_ext <<_ACEOF
7579 /* end confdefs.h. */
7583 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7584 $EGREP "pw_comment" >/dev/null 2>&1; then
7585 cat >>confdefs.h <<\_ACEOF
7586 @%:@define HAVE_PW_COMMENT 1
7592 cat >conftest.$ac_ext <<_ACEOF
7595 cat confdefs.h >>conftest.$ac_ext
7596 cat >>conftest.$ac_ext <<_ACEOF
7597 /* end confdefs.h. */
7601 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7602 $EGREP "pw_class" >/dev/null 2>&1; then
7603 cat >>confdefs.h <<\_ACEOF
7604 @%:@define HAVE_PW_CLASS 1
7610 cat >conftest.$ac_ext <<_ACEOF
7613 cat confdefs.h >>conftest.$ac_ext
7614 cat >>conftest.$ac_ext <<_ACEOF
7615 /* end confdefs.h. */
7619 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7620 $EGREP "pw_change" >/dev/null 2>&1; then
7621 cat >>confdefs.h <<\_ACEOF
7622 @%:@define HAVE_PW_CHANGE 1
7628 cat >conftest.$ac_ext <<_ACEOF
7631 cat confdefs.h >>conftest.$ac_ext
7632 cat >>conftest.$ac_ext <<_ACEOF
7633 /* end confdefs.h. */
7637 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7638 $EGREP "pw_expire" >/dev/null 2>&1; then
7639 cat >>confdefs.h <<\_ACEOF
7640 @%:@define HAVE_PW_EXPIRE 1
7647 echo "$as_me:$LINENO: checking for res_mkquery" >&5
7648 echo $ECHO_N "checking for res_mkquery... $ECHO_C" >&6
7649 if test "${ac_cv_func_res_mkquery+set}" = set; then
7650 echo $ECHO_N "(cached) $ECHO_C" >&6
7652 cat >conftest.$ac_ext <<_ACEOF
7655 cat confdefs.h >>conftest.$ac_ext
7656 cat >>conftest.$ac_ext <<_ACEOF
7657 /* end confdefs.h. */
7658 /* Define res_mkquery to an innocuous variant, in case <limits.h> declares res_mkquery.
7659 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7660 #define res_mkquery innocuous_res_mkquery
7662 /* System header to define __stub macros and hopefully few prototypes,
7663 which can conflict with char res_mkquery (); below.
7664 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7665 <limits.h> exists even on freestanding compilers. */
7668 # include <limits.h>
7670 # include <assert.h>
7675 /* Override any gcc2 internal prototype to avoid an error. */
7680 /* We use char because int might match the return type of a gcc2
7681 builtin and then its argument prototype would still apply. */
7682 char res_mkquery ();
7683 /* The GNU C library defines this for functions which it implements
7684 to always fail with ENOSYS. Some functions are actually named
7685 something starting with __ and the normal name is an alias. */
7686 #if defined (__stub_res_mkquery) || defined (__stub___res_mkquery)
7689 char (*f) () = res_mkquery;
7698 return f != res_mkquery;
7703 rm -f conftest.$ac_objext conftest$ac_exeext
7704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7705 (eval $ac_link) 2>conftest.er1
7707 grep -v '^ *+' conftest.er1 >conftest.err
7709 cat conftest.err >&5
7710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7711 (exit $ac_status); } &&
7712 { ac_try='test -z "$ac_c_werror_flag"
7713 || test ! -s conftest.err'
7714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7718 (exit $ac_status); }; } &&
7719 { ac_try='test -s conftest$ac_exeext'
7720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7724 (exit $ac_status); }; }; then
7725 ac_cv_func_res_mkquery=yes
7727 echo "$as_me: failed program was:" >&5
7728 sed 's/^/| /' conftest.$ac_ext >&5
7730 ac_cv_func_res_mkquery=no
7732 rm -f conftest.err conftest.$ac_objext \
7733 conftest$ac_exeext conftest.$ac_ext
7735 echo "$as_me:$LINENO: result: $ac_cv_func_res_mkquery" >&5
7736 echo "${ECHO_T}$ac_cv_func_res_mkquery" >&6
7737 if test $ac_cv_func_res_mkquery = yes; then
7741 echo "$as_me:$LINENO: checking for res_mkquery in -lresolv" >&5
7742 echo $ECHO_N "checking for res_mkquery in -lresolv... $ECHO_C" >&6
7743 if test "${ac_cv_lib_resolv_res_mkquery+set}" = set; then
7744 echo $ECHO_N "(cached) $ECHO_C" >&6
7746 ac_check_lib_save_LIBS=$LIBS
7747 LIBS="-lresolv $LIBS"
7748 cat >conftest.$ac_ext <<_ACEOF
7751 cat confdefs.h >>conftest.$ac_ext
7752 cat >>conftest.$ac_ext <<_ACEOF
7753 /* end confdefs.h. */
7755 /* Override any gcc2 internal prototype to avoid an error. */
7759 /* We use char because int might match the return type of a gcc2
7760 builtin and then its argument prototype would still apply. */
7761 char res_mkquery ();
7770 rm -f conftest.$ac_objext conftest$ac_exeext
7771 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7772 (eval $ac_link) 2>conftest.er1
7774 grep -v '^ *+' conftest.er1 >conftest.err
7776 cat conftest.err >&5
7777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7778 (exit $ac_status); } &&
7779 { ac_try='test -z "$ac_c_werror_flag"
7780 || test ! -s conftest.err'
7781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7785 (exit $ac_status); }; } &&
7786 { ac_try='test -s conftest$ac_exeext'
7787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7791 (exit $ac_status); }; }; then
7792 ac_cv_lib_resolv_res_mkquery=yes
7794 echo "$as_me: failed program was:" >&5
7795 sed 's/^/| /' conftest.$ac_ext >&5
7797 ac_cv_lib_resolv_res_mkquery=no
7799 rm -f conftest.err conftest.$ac_objext \
7800 conftest$ac_exeext conftest.$ac_ext
7801 LIBS=$ac_check_lib_save_LIBS
7803 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_mkquery" >&5
7804 echo "${ECHO_T}$ac_cv_lib_resolv_res_mkquery" >&6
7805 if test $ac_cv_lib_resolv_res_mkquery = yes; then
7806 cat >>confdefs.h <<_ACEOF
7807 @%:@define HAVE_LIBRESOLV 1
7810 LIBS="-lresolv $LIBS"
7817 ac_config_headers="$ac_config_headers config.h"
7819 ac_config_files="$ac_config_files Makefile"
7820 cat >confcache <<\_ACEOF
7821 # This file is a shell script that caches the results of configure
7822 # tests run on this system so they can be shared between configure
7823 # scripts and configure runs, see configure's option --config-cache.
7824 # It is not useful on other systems. If it contains results you don't
7825 # want to keep, you may remove or edit it.
7827 # config.status only pays attention to the cache file if you give it
7828 # the --recheck option to rerun configure.
7830 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7831 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7836 # The following way of writing the cache mishandles newlines in values,
7837 # but we know of no workaround that is simple, portable, and efficient.
7838 # So, don't put newlines in cache variables' values.
7839 # Ultrix sh set writes to stderr and can't be redirected directly,
7840 # and sets the high bit in the cache file unless we assign to the vars.
7843 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7845 # `set' does not quote correctly, so add quotes (double-quote
7846 # substitution turns \\\\ into \\, and sed turns \\ into \).
7849 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7852 # `set' quotes correctly as required by POSIX, so do not add quotes.
7854 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7861 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7863 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7865 if diff $cache_file confcache >/dev/null 2>&1; then :; else
7866 if test -w $cache_file; then
7867 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
7868 cat confcache >$cache_file
7870 echo "not updating unwritable cache $cache_file"
7875 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7876 # Let make expand exec_prefix.
7877 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7879 # VPATH may cause trouble with some makes, so we remove $(srcdir),
7880 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7881 # trailing colons and then remove the whole line if VPATH becomes empty
7882 # (actually we leave an empty line to preserve line numbers).
7883 if test "x$srcdir" = x.; then
7884 ac_vpsub='/^[ ]*VPATH[ ]*=/{
7885 s/:*\$(srcdir):*/:/;
7886 s/:*\${srcdir}:*/:/;
7888 s/^\([^=]*=[ ]*\):*/\1/;
7894 DEFS=-DHAVE_CONFIG_H
7898 for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
7899 # 1. Remove the extension, and $U if already installed.
7900 ac_i=`echo "$ac_i" |
7901 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
7903 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
7904 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
7906 LIB@&t@OBJS=$ac_libobjs
7908 LTLIBOBJS=$ac_ltlibobjs
7912 : ${CONFIG_STATUS=./config.status}
7913 ac_clean_files_save=$ac_clean_files
7914 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7915 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7916 echo "$as_me: creating $CONFIG_STATUS" >&6;}
7917 cat >$CONFIG_STATUS <<_ACEOF
7919 # Generated by $as_me.
7920 # Run this file to recreate the current configuration.
7921 # Compiler output produced by configure, useful for debugging
7922 # configure, is in config.log if it exists.
7927 SHELL=\${CONFIG_SHELL-$SHELL}
7930 cat >>$CONFIG_STATUS <<\_ACEOF
7931 ## --------------------- ##
7932 ## M4sh Initialization. ##
7933 ## --------------------- ##
7935 # Be Bourne compatible
7936 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7939 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
7940 # is contrary to our usage. Disable this feature.
7941 alias -g '${1+"$@"}'='"$@"'
7942 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
7945 DUALCASE=1; export DUALCASE # for MKS sh
7947 # Support unset when possible.
7948 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7955 # Work around bugs in pre-3.0 UWIN ksh.
7956 $as_unset ENV MAIL MAILPATH
7963 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
7964 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
7965 LC_TELEPHONE LC_TIME
7967 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
7968 eval $as_var=C; export $as_var
7974 # Required to use basename.
7975 if expr a : '\(a\)' >/dev/null 2>&1; then
7981 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
7982 as_basename=basename
7988 # Name of the executable.
7989 as_me=`$as_basename "$0" ||
7990 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7991 X"$0" : 'X\(//\)$' \| \
7992 X"$0" : 'X\(/\)$' \| \
7993 . : '\(.\)' 2>/dev/null ||
7995 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
7996 /^X\/\(\/\/\)$/{ s//\1/; q; }
7997 /^X\/\(\/\).*/{ s//\1/; q; }
8001 # PATH needs CR, and LINENO needs CR and PATH.
8002 # Avoid depending upon Character Ranges.
8003 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8004 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8005 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8006 as_cr_digits='0123456789'
8007 as_cr_alnum=$as_cr_Letters$as_cr_digits
8009 # The user is always right.
8010 if test "${PATH_SEPARATOR+set}" != set; then
8011 echo "#! /bin/sh" >conf$$.sh
8012 echo "exit 0" >>conf$$.sh
8014 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8025 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8026 test "x$as_lineno_1" != "x$as_lineno_2" &&
8027 test "x$as_lineno_3" = "x$as_lineno_2" || {
8028 # Find who we are. Look in the path if we contain no path at all
8031 *[\\/]* ) as_myself=$0 ;;
8032 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8036 test -z "$as_dir" && as_dir=.
8037 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8042 # We did not find ourselves, most probably we were run as `sh COMMAND'
8043 # in which case we are not to be found in the path.
8044 if test "x$as_myself" = x; then
8047 if test ! -f "$as_myself"; then
8048 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
8049 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
8050 { (exit 1); exit 1; }; }
8052 case $CONFIG_SHELL in
8054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8055 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
8058 test -z "$as_dir" && as_dir=.
8059 for as_base in sh bash ksh sh5; do
8062 if ("$as_dir/$as_base" -c '
8065 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8066 test "x$as_lineno_1" != "x$as_lineno_2" &&
8067 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
8068 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
8069 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
8070 CONFIG_SHELL=$as_dir/$as_base
8072 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
8080 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
8081 # uniformly replaced by the line number. The first 'sed' inserts a
8082 # line-number line before each line; the second 'sed' does the real
8083 # work. The second script uses 'N' to pair each line-number line
8084 # with the numbered line, and appends trailing '-' during
8085 # substitution so that $LINENO is not a special case at line end.
8086 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
8087 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
8088 sed '=' <$as_myself |
8093 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
8096 s,^['$as_cr_digits']*\n,,
8098 chmod +x $as_me.lineno ||
8099 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
8100 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
8101 { (exit 1); exit 1; }; }
8103 # Don't try to exec as it changes $[0], causing all sort of problems
8104 # (the dirname of $[0] is not the place where we might find the
8105 # original and so on. Autoconf is especially sensible to this).
8107 # Exit status is that of the last command.
8112 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
8113 *c*,-n*) ECHO_N= ECHO_C='
8115 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
8116 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
8119 if expr a : '\(a\)' >/dev/null 2>&1; then
8125 rm -f conf$$ conf$$.exe conf$$.file
8127 if ln -s conf$$.file conf$$ 2>/dev/null; then
8128 # We could just check for DJGPP; but this test a) works b) is more generic
8129 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
8130 if test -f conf$$.exe; then
8131 # Don't use ln at all; we don't have any links
8136 elif ln conf$$.file conf$$ 2>/dev/null; then
8141 rm -f conf$$ conf$$.exe conf$$.file
8143 if mkdir -p . 2>/dev/null; then
8146 test -d ./-p && rmdir ./-p
8150 as_executable_p="test -f"
8152 # Sed expression to map a string onto a valid CPP name.
8153 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8155 # Sed expression to map a string onto a valid variable name.
8156 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8160 # We need space, tab and new line, in precisely that order.
8170 # Open the log real soon, to keep \$[0] and so on meaningful, and to
8171 # report actual input values of CONFIG_FILES etc. instead of their
8172 # values after options handling. Logging --version etc. is OK.
8176 sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
8177 @%:@@%:@ Running $as_me. @%:@@%:@
8182 This file was extended by $as_me, which was
8183 generated by GNU Autoconf 2.59. Invocation command line was
8185 CONFIG_FILES = $CONFIG_FILES
8186 CONFIG_HEADERS = $CONFIG_HEADERS
8187 CONFIG_LINKS = $CONFIG_LINKS
8188 CONFIG_COMMANDS = $CONFIG_COMMANDS
8192 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
8196 # Files that config.status was made for.
8197 if test -n "$ac_config_files"; then
8198 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
8201 if test -n "$ac_config_headers"; then
8202 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
8205 if test -n "$ac_config_links"; then
8206 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
8209 if test -n "$ac_config_commands"; then
8210 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
8213 cat >>$CONFIG_STATUS <<\_ACEOF
8216 \`$as_me' instantiates files from templates according to the
8217 current configuration.
8219 Usage: $0 [OPTIONS] [FILE]...
8221 -h, --help print this help, then exit
8222 -V, --version print version number, then exit
8223 -q, --quiet do not print progress messages
8224 -d, --debug don't remove temporary files
8225 --recheck update $as_me by reconfiguring in the same conditions
8226 --file=FILE[:TEMPLATE]
8227 instantiate the configuration file FILE
8228 --header=FILE[:TEMPLATE]
8229 instantiate the configuration header FILE
8231 Configuration files:
8234 Configuration headers:
8237 Report bugs to <bug-autoconf@gnu.org>."
8240 cat >>$CONFIG_STATUS <<_ACEOF
8243 configured by $0, generated by GNU Autoconf 2.59,
8244 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
8246 Copyright (C) 2003 Free Software Foundation, Inc.
8247 This config.status script is free software; the Free Software Foundation
8248 gives unlimited permission to copy, distribute and modify it."
8253 cat >>$CONFIG_STATUS <<\_ACEOF
8254 # If no file are specified by the user, then we need to provide default
8255 # value. By we need to know if files were specified by the user.
8261 ac_option=`expr "x$1" : 'x\([^=]*\)='`
8262 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
8270 *) # This is not an option, so the user has probably given explicit
8273 ac_need_defaults=false;;
8277 # Handling of the options.
8279 cat >>$CONFIG_STATUS <<\_ACEOF
8280 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8282 --version | --vers* | -V )
8283 echo "$ac_cs_version"; exit 0 ;;
8285 # Conflict between --help and --header
8286 { { echo "$as_me:$LINENO: error: ambiguous option: $1
8287 Try \`$0 --help' for more information." >&5
8288 echo "$as_me: error: ambiguous option: $1
8289 Try \`$0 --help' for more information." >&2;}
8290 { (exit 1); exit 1; }; };;
8291 --help | --hel | -h )
8292 echo "$ac_cs_usage"; exit 0 ;;
8293 --debug | --d* | -d )
8295 --file | --fil | --fi | --f )
8297 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
8298 ac_need_defaults=false;;
8299 --header | --heade | --head | --hea )
8301 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
8302 ac_need_defaults=false;;
8303 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8304 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8308 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
8309 Try \`$0 --help' for more information." >&5
8310 echo "$as_me: error: unrecognized option: $1
8311 Try \`$0 --help' for more information." >&2;}
8312 { (exit 1); exit 1; }; } ;;
8314 *) ac_config_targets="$ac_config_targets $1" ;;
8320 ac_configure_extra_args=
8322 if $ac_cs_silent; then
8324 ac_configure_extra_args="$ac_configure_extra_args --silent"
8328 cat >>$CONFIG_STATUS <<_ACEOF
8329 if \$ac_cs_recheck; then
8330 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
8331 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8340 cat >>$CONFIG_STATUS <<\_ACEOF
8341 for ac_config_target in $ac_config_targets
8343 case "$ac_config_target" in
8344 # Handling of arguments.
8345 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8346 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
8347 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
8348 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
8349 { (exit 1); exit 1; }; };;
8353 # If the user did not use the arguments to specify the items to instantiate,
8354 # then the envvar interface is used. Set only those that are not.
8355 # We use the long form for the default assignment because of an extremely
8356 # bizarre bug on SunOS 4.1.3.
8357 if $ac_need_defaults; then
8358 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8359 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8362 # Have a temporary directory for convenience. Make it in the build tree
8363 # simply because there is no reason to put it here, and in addition,
8364 # creating and moving files from /tmp can sometimes cause problems.
8365 # Create a temporary directory, and hook for its removal unless debugging.
8368 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
8369 trap '{ (exit 1); exit 1; }' 1 2 13 15
8372 # Create a (secure) tmp directory for tmp files.
8375 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
8376 test -n "$tmp" && test -d "$tmp"
8379 tmp=./confstat$$-$RANDOM
8380 (umask 077 && mkdir $tmp)
8383 echo "$me: cannot create a temporary directory in ." >&2
8384 { (exit 1); exit 1; }
8389 cat >>$CONFIG_STATUS <<_ACEOF
8392 # CONFIG_FILES section.
8395 # No need to generate the scripts if there are no CONFIG_FILES.
8396 # This happens for instance when ./config.status config.h
8397 if test -n "\$CONFIG_FILES"; then
8398 # Protect against being on the right side of a sed subst in config.status.
8399 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
8400 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
8401 s,@SHELL@,$SHELL,;t t
8402 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
8403 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
8404 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
8405 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
8406 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
8407 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
8408 s,@exec_prefix@,$exec_prefix,;t t
8409 s,@prefix@,$prefix,;t t
8410 s,@program_transform_name@,$program_transform_name,;t t
8411 s,@bindir@,$bindir,;t t
8412 s,@sbindir@,$sbindir,;t t
8413 s,@libexecdir@,$libexecdir,;t t
8414 s,@datadir@,$datadir,;t t
8415 s,@sysconfdir@,$sysconfdir,;t t
8416 s,@sharedstatedir@,$sharedstatedir,;t t
8417 s,@localstatedir@,$localstatedir,;t t
8418 s,@libdir@,$libdir,;t t
8419 s,@includedir@,$includedir,;t t
8420 s,@oldincludedir@,$oldincludedir,;t t
8421 s,@infodir@,$infodir,;t t
8422 s,@mandir@,$mandir,;t t
8423 s,@build_alias@,$build_alias,;t t
8424 s,@host_alias@,$host_alias,;t t
8425 s,@target_alias@,$target_alias,;t t
8427 s,@ECHO_C@,$ECHO_C,;t t
8428 s,@ECHO_N@,$ECHO_N,;t t
8429 s,@ECHO_T@,$ECHO_T,;t t
8432 s,@CFLAGS@,$CFLAGS,;t t
8433 s,@LDFLAGS@,$LDFLAGS,;t t
8434 s,@CPPFLAGS@,$CPPFLAGS,;t t
8435 s,@ac_ct_CC@,$ac_ct_CC,;t t
8436 s,@EXEEXT@,$EXEEXT,;t t
8437 s,@OBJEXT@,$OBJEXT,;t t
8438 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
8439 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
8440 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
8441 s,@RANLIB@,$RANLIB,;t t
8442 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
8443 s,@build@,$build,;t t
8444 s,@build_cpu@,$build_cpu,;t t
8445 s,@build_vendor@,$build_vendor,;t t
8446 s,@build_os@,$build_os,;t t
8448 s,@host_cpu@,$host_cpu,;t t
8449 s,@host_vendor@,$host_vendor,;t t
8450 s,@host_os@,$host_os,;t t
8453 s,@STRIP@,$STRIP,;t t
8454 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
8456 s,@EGREP@,$EGREP,;t t
8457 s,@LIBTOOL@,$LIBTOOL,;t t
8458 s,@LIB@&t@OBJS@,$LIB@&t@OBJS,;t t
8459 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
8464 cat >>$CONFIG_STATUS <<\_ACEOF
8465 # Split the substitutions into bite-sized pieces for seds with
8466 # small command number limits, like on Digital OSF/1 and HP-UX.
8468 ac_sed_frag=1 # Number of current file.
8469 ac_beg=1 # First line for current file.
8470 ac_end=$ac_max_sed_lines # Line after last line for current file.
8473 while $ac_more_lines; do
8474 if test $ac_beg -gt 1; then
8475 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8477 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8479 if test ! -s $tmp/subs.frag; then
8482 # The purpose of the label and of the branching condition is to
8483 # speed up the sed processing (if there are no `@' at all, there
8484 # is no need to browse any of the substitutions).
8485 # These are the two extra sed commands mentioned above.
8487 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
8488 if test -z "$ac_sed_cmds"; then
8489 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
8491 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
8493 ac_sed_frag=`expr $ac_sed_frag + 1`
8495 ac_end=`expr $ac_end + $ac_max_sed_lines`
8498 if test -z "$ac_sed_cmds"; then
8501 fi # test -n "$CONFIG_FILES"
8504 cat >>$CONFIG_STATUS <<\_ACEOF
8505 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
8506 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8508 - | *:- | *:-:* ) # input from stdin
8510 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8511 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8512 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8513 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8514 * ) ac_file_in=$ac_file.in ;;
8517 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
8518 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8519 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8520 X"$ac_file" : 'X\(//\)[^/]' \| \
8521 X"$ac_file" : 'X\(//\)$' \| \
8522 X"$ac_file" : 'X\(/\)' \| \
8523 . : '\(.\)' 2>/dev/null ||
8525 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8526 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8527 /^X\(\/\/\)$/{ s//\1/; q; }
8528 /^X\(\/\).*/{ s//\1/; q; }
8530 { if $as_mkdir_p; then
8535 while test ! -d "$as_dir"; do
8536 as_dirs="$as_dir $as_dirs"
8537 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8538 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8539 X"$as_dir" : 'X\(//\)[^/]' \| \
8540 X"$as_dir" : 'X\(//\)$' \| \
8541 X"$as_dir" : 'X\(/\)' \| \
8542 . : '\(.\)' 2>/dev/null ||
8544 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8545 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8546 /^X\(\/\/\)$/{ s//\1/; q; }
8547 /^X\(\/\).*/{ s//\1/; q; }
8550 test ! -n "$as_dirs" || mkdir $as_dirs
8551 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8552 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8553 { (exit 1); exit 1; }; }; }
8557 if test "$ac_dir" != .; then
8558 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8559 # A "../" for each directory in $ac_dir_suffix.
8560 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8562 ac_dir_suffix= ac_top_builddir=
8566 .) # No --srcdir option. We are building in place.
8568 if test -z "$ac_top_builddir"; then
8571 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8573 [\\/]* | ?:[\\/]* ) # Absolute path.
8574 ac_srcdir=$srcdir$ac_dir_suffix;
8575 ac_top_srcdir=$srcdir ;;
8577 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8578 ac_top_srcdir=$ac_top_builddir$srcdir ;;
8581 # Do not use `cd foo && pwd` to compute absolute paths, because
8582 # the directories may not exist.
8584 .) ac_abs_builddir="$ac_dir";;
8587 .) ac_abs_builddir=`pwd`;;
8588 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
8589 *) ac_abs_builddir=`pwd`/"$ac_dir";;
8592 case $ac_abs_builddir in
8593 .) ac_abs_top_builddir=${ac_top_builddir}.;;
8595 case ${ac_top_builddir}. in
8596 .) ac_abs_top_builddir=$ac_abs_builddir;;
8597 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
8598 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
8601 case $ac_abs_builddir in
8602 .) ac_abs_srcdir=$ac_srcdir;;
8605 .) ac_abs_srcdir=$ac_abs_builddir;;
8606 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
8607 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
8610 case $ac_abs_builddir in
8611 .) ac_abs_top_srcdir=$ac_top_srcdir;;
8613 case $ac_top_srcdir in
8614 .) ac_abs_top_srcdir=$ac_abs_builddir;;
8615 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
8616 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
8622 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8623 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
8626 if test x"$ac_file" != x-; then
8627 { echo "$as_me:$LINENO: creating $ac_file" >&5
8628 echo "$as_me: creating $ac_file" >&6;}
8631 # Let's still pretend it is `configure' which instantiates (i.e., don't
8632 # use $as_me), people would be surprised to read:
8633 # /* config.h. Generated by config.status. */
8634 if test x"$ac_file" = x-; then
8637 configure_input="$ac_file. "
8639 configure_input=$configure_input"Generated from `echo $ac_file_in |
8640 sed 's,.*/,,'` by configure."
8642 # First look for the input files in the build tree, otherwise in the
8644 ac_file_inputs=`IFS=:
8645 for f in $ac_file_in; do
8647 -) echo $tmp/stdin ;;
8649 # Absolute (can't be DOS-style, as IFS=:)
8650 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8651 echo "$as_me: error: cannot find input file: $f" >&2;}
8652 { (exit 1); exit 1; }; }
8655 if test -f "$f"; then
8658 elif test -f "$srcdir/$f"; then
8663 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8664 echo "$as_me: error: cannot find input file: $f" >&2;}
8665 { (exit 1); exit 1; }; }
8668 done` || { (exit 1); exit 1; }
8670 cat >>$CONFIG_STATUS <<_ACEOF
8674 cat >>$CONFIG_STATUS <<\_ACEOF
8676 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8677 s,@configure_input@,$configure_input,;t t
8678 s,@srcdir@,$ac_srcdir,;t t
8679 s,@abs_srcdir@,$ac_abs_srcdir,;t t
8680 s,@top_srcdir@,$ac_top_srcdir,;t t
8681 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
8682 s,@builddir@,$ac_builddir,;t t
8683 s,@abs_builddir@,$ac_abs_builddir,;t t
8684 s,@top_builddir@,$ac_top_builddir,;t t
8685 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
8686 s,@INSTALL@,$ac_INSTALL,;t t
8687 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
8689 if test x"$ac_file" != x-; then
8690 mv $tmp/out $ac_file
8698 cat >>$CONFIG_STATUS <<\_ACEOF
8701 # CONFIG_HEADER section.
8704 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8705 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8707 # ac_d sets the value in "#define NAME VALUE" lines.
8708 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8709 ac_dB='[ ].*$,\1#\2'
8712 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8713 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8714 ac_uB='$,\1#\2define\3'
8718 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
8719 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8721 - | *:- | *:-:* ) # input from stdin
8723 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8724 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8725 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8726 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8727 * ) ac_file_in=$ac_file.in ;;
8730 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
8731 echo "$as_me: creating $ac_file" >&6;}
8733 # First look for the input files in the build tree, otherwise in the
8735 ac_file_inputs=`IFS=:
8736 for f in $ac_file_in; do
8738 -) echo $tmp/stdin ;;
8740 # Absolute (can't be DOS-style, as IFS=:)
8741 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8742 echo "$as_me: error: cannot find input file: $f" >&2;}
8743 { (exit 1); exit 1; }; }
8744 # Do quote $f, to prevent DOS paths from being IFS'd.
8747 if test -f "$f"; then
8750 elif test -f "$srcdir/$f"; then
8755 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8756 echo "$as_me: error: cannot find input file: $f" >&2;}
8757 { (exit 1); exit 1; }; }
8760 done` || { (exit 1); exit 1; }
8761 # Remove the trailing spaces.
8762 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
8766 # Transform confdefs.h into two sed scripts, `conftest.defines' and
8767 # `conftest.undefs', that substitutes the proper values into
8768 # config.h.in to produce config.h. The first handles `#define'
8769 # templates, and the second `#undef' templates.
8770 # And first: Protect against being on the right side of a sed subst in
8771 # config.status. Protect against being in an unquoted here document
8773 rm -f conftest.defines conftest.undefs
8774 # Using a here document instead of a string reduces the quoting nightmare.
8775 # Putting comments in sed scripts is not portable.
8777 # `end' is used to avoid that the second main sed command (meant for
8778 # 0-ary CPP macros) applies to n-ary macro definitions.
8779 # See the Autoconf documentation for `clear'.
8780 cat >confdef2sed.sed <<\_ACEOF
8785 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
8787 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
8790 # If some macros were called several times there might be several times
8791 # the same #defines, which is useless. Nevertheless, we may not want to
8792 # sort them, since we want the *last* AC-DEFINE to be honored.
8793 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
8794 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
8795 rm -f confdef2sed.sed
8797 # This sed command replaces #undef with comments. This is necessary, for
8798 # example, in the case of _POSIX_SOURCE, which is predefined and required
8799 # on some systems where configure will not decide to define it.
8800 cat >>conftest.undefs <<\_ACEOF
8801 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
8804 # Break up conftest.defines because some shells have a limit on the size
8805 # of here documents, and old seds have small limits too (100 cmds).
8806 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
8807 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
8808 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
8809 echo ' :' >>$CONFIG_STATUS
8811 while grep . conftest.defines >/dev/null
8813 # Write a limited-size here document to $tmp/defines.sed.
8814 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
8815 # Speed up: don't consider the non `#define' lines.
8816 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
8817 # Work around the forget-to-reset-the-flag bug.
8818 echo 't clr' >>$CONFIG_STATUS
8819 echo ': clr' >>$CONFIG_STATUS
8820 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
8822 sed -f $tmp/defines.sed $tmp/in >$tmp/out
8826 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
8827 rm -f conftest.defines
8828 mv conftest.tail conftest.defines
8830 rm -f conftest.defines
8831 echo ' fi # grep' >>$CONFIG_STATUS
8832 echo >>$CONFIG_STATUS
8834 # Break up conftest.undefs because some shells have a limit on the size
8835 # of here documents, and old seds have small limits too (100 cmds).
8836 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
8838 while grep . conftest.undefs >/dev/null
8840 # Write a limited-size here document to $tmp/undefs.sed.
8841 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
8842 # Speed up: don't consider the non `#undef'
8843 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
8844 # Work around the forget-to-reset-the-flag bug.
8845 echo 't clr' >>$CONFIG_STATUS
8846 echo ': clr' >>$CONFIG_STATUS
8847 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
8849 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
8853 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
8854 rm -f conftest.undefs
8855 mv conftest.tail conftest.undefs
8857 rm -f conftest.undefs
8859 cat >>$CONFIG_STATUS <<\_ACEOF
8860 # Let's still pretend it is `configure' which instantiates (i.e., don't
8861 # use $as_me), people would be surprised to read:
8862 # /* config.h. Generated by config.status. */
8863 if test x"$ac_file" = x-; then
8864 echo "/* Generated by configure. */" >$tmp/config.h
8866 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
8868 cat $tmp/in >>$tmp/config.h
8870 if test x"$ac_file" != x-; then
8871 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
8872 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
8873 echo "$as_me: $ac_file is unchanged" >&6;}
8875 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8876 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8877 X"$ac_file" : 'X\(//\)[^/]' \| \
8878 X"$ac_file" : 'X\(//\)$' \| \
8879 X"$ac_file" : 'X\(/\)' \| \
8880 . : '\(.\)' 2>/dev/null ||
8882 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8883 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8884 /^X\(\/\/\)$/{ s//\1/; q; }
8885 /^X\(\/\).*/{ s//\1/; q; }
8887 { if $as_mkdir_p; then
8892 while test ! -d "$as_dir"; do
8893 as_dirs="$as_dir $as_dirs"
8894 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8895 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8896 X"$as_dir" : 'X\(//\)[^/]' \| \
8897 X"$as_dir" : 'X\(//\)$' \| \
8898 X"$as_dir" : 'X\(/\)' \| \
8899 . : '\(.\)' 2>/dev/null ||
8901 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8902 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8903 /^X\(\/\/\)$/{ s//\1/; q; }
8904 /^X\(\/\).*/{ s//\1/; q; }
8907 test ! -n "$as_dirs" || mkdir $as_dirs
8908 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8909 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8910 { (exit 1); exit 1; }; }; }
8913 mv $tmp/config.h $ac_file
8922 cat >>$CONFIG_STATUS <<\_ACEOF
8924 { (exit 0); exit 0; }
8926 chmod +x $CONFIG_STATUS
8927 ac_clean_files=$ac_clean_files_save
8930 # configure is writing to config.log, and then calls config.status.
8931 # config.status does its own redirection, appending to config.log.
8932 # Unfortunately, on DOS this fails, as config.log is still kept open
8933 # by configure, so config.status won't be able to write to it; its
8934 # output is simply discarded. So we exec the FD to /dev/null,
8935 # effectively closing config.log, so it can be properly (re)opened and
8936 # appended to by config.status. When coming back to configure, we
8937 # need to make the FD available again.
8938 if test "$no_create" != yes; then
8940 ac_config_status_args=
8941 test "$silent" = yes &&
8942 ac_config_status_args="$ac_config_status_args --quiet"
8944 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8946 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8947 # would make configure fail if this is the last instruction.
8948 $ac_cs_success || { (exit 1); exit 1; }