2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/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 -n "`(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
224 as_executable_p="test -f"
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
234 # We need space, tab and new line, in precisely that order.
243 # Find the correct PATH separator. Usually this is `:', but
244 # DJGPP uses `;' like DOS.
245 if test "X${PATH_SEPARATOR+set}" != Xset; then
246 UNAME=${UNAME-`uname 2>/dev/null`}
248 *-DOS) lt_cv_sys_path_separator=';' ;;
249 *) lt_cv_sys_path_separator=':' ;;
251 PATH_SEPARATOR=$lt_cv_sys_path_separator
255 # Check that we are running under the correct shell.
256 SHELL=${CONFIG_SHELL-/bin/sh}
260 # Remove one level of quotation (which was required for Make).
261 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
266 if test "X$1" = X--no-reexec; then
267 # Discard the --no-reexec flag, and continue.
269 elif test "X$1" = X--fallback-echo; then
270 # Avoid inline document here, it may be left over
272 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
273 # Yippee, $echo works!
276 # Restart under the correct shell.
277 exec $SHELL "$0" --no-reexec ${1+"$@"}
280 if test "X$1" = X--fallback-echo; then
281 # used as fallback echo
289 # The HP-UX ksh and POSIX shell print the target directory to stdout
291 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
293 if test -z "$ECHO"; then
294 if test "X${echo_test_string+set}" != Xset; then
295 # find a string as large as possible, as long as the shell can cope with it
296 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
297 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
298 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
299 echo_test_string="`eval $cmd`" &&
300 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
307 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
308 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
309 test "X$echo_testing_string" = "X$echo_test_string"; then
312 # The Solaris, AIX, and Digital Unix default echo programs unquote
313 # backslashes. This makes it impossible to quote backslashes using
314 # echo "$something" | sed 's/\\/\\\\/g'
316 # So, first we look for a working echo in the user's PATH.
318 IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
319 for dir in $PATH /usr/ucb; do
320 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
321 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
322 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
323 test "X$echo_testing_string" = "X$echo_test_string"; then
330 if test "X$echo" = Xecho; then
331 # We didn't find a better echo, so look for alternatives.
332 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
333 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
334 test "X$echo_testing_string" = "X$echo_test_string"; then
335 # This shell has a builtin print -r that does the trick.
337 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
338 test "X$CONFIG_SHELL" != X/bin/ksh; then
339 # If we have ksh, try running configure again with it.
340 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
341 export ORIGINAL_CONFIG_SHELL
342 CONFIG_SHELL=/bin/ksh
344 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
348 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
349 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
350 test "X$echo_testing_string" = "X$echo_test_string"; then
353 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354 test "X$echo_testing_string" = 'X\t' &&
355 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356 test "X$echo_testing_string" = "X$echo_test_string"; then
357 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
359 SHELL="$CONFIG_SHELL"
361 echo="$CONFIG_SHELL $0 --fallback-echo"
362 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
363 test "X$echo_testing_string" = 'X\t' &&
364 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
365 test "X$echo_testing_string" = "X$echo_test_string"; then
366 echo="$CONFIG_SHELL $0 --fallback-echo"
368 # maybe with a smaller string...
371 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
372 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
379 if test "$prev" != 'sed 50q "$0"'; then
380 echo_test_string=`eval $prev`
381 export echo_test_string
382 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
384 # Oops. We lost completely, so just stick with echo.
393 # Copy echo and quote the copy suitably for passing to libtool from
394 # the Makefile, instead of quoting the original, which is used later.
396 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
397 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
403 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
404 # so uname gets run too.
405 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
412 ac_default_prefix=/usr/local
413 ac_config_libobj_dir=.
418 SHELL=${CONFIG_SHELL-/bin/sh}
420 # Maximum number of lines to put in a shell here document.
421 # This variable seems obsolete. It should probably be removed, and
422 # only ac_max_sed_lines should be used.
423 : ${ac_max_here_lines=38}
425 # Identity of this package.
432 ac_unique_file=".version"
433 # Factoring default headers for most tests.
434 ac_includes_default="\
437 # include <sys/types.h>
440 # include <sys/stat.h>
451 # if !STDC_HEADERS && HAVE_MEMORY_H
457 # include <strings.h>
460 # include <inttypes.h>
470 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 AWK VERSION VERSIONHI VERSIONLO VERSIONP enable_ucsim enable_dlso enable_51 enable_avr enable_z80 enable_hc08 enable_xa enable_serio CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT CXXCPP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB ac_ct_RANLIB STRIP build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS ac_ct_CC LN_S ECHO ac_ct_STRIP CPP EGREP LIBTOOL LIBTOOL_DEPS dl_ok DL panel_ok curses_ok CURSES_LIBS M_OR_MM SHAREDLIB PICOPT dlso_ok docdir LIBOBJS LTLIBOBJS'
473 # Initialize some variables set by options.
475 ac_init_version=false
476 # The variables have the same names as the options, with
477 # dashes changed to underlines.
485 program_transform_name=s,x,x,
493 # Installation directory options.
494 # These are left unexpanded so users can "make install exec_prefix=/foo"
495 # and all the variables that are supposed to be based on exec_prefix
496 # by default will actually change.
497 # Use braces instead of parens because sh, perl, etc. also accept them.
498 bindir='${exec_prefix}/bin'
499 sbindir='${exec_prefix}/sbin'
500 libexecdir='${exec_prefix}/libexec'
501 datadir='${prefix}/share'
502 sysconfdir='${prefix}/etc'
503 sharedstatedir='${prefix}/com'
504 localstatedir='${prefix}/var'
505 libdir='${exec_prefix}/lib'
506 includedir='${prefix}/include'
507 oldincludedir='/usr/include'
508 infodir='${prefix}/info'
509 mandir='${prefix}/man'
514 # If the previous option needs an argument, assign it.
515 if test -n "$ac_prev"; then
516 eval "$ac_prev=\$ac_option"
521 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
523 # Accept the important Cygnus configure options, so we can diagnose typos.
527 -bindir | --bindir | --bindi | --bind | --bin | --bi)
529 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
532 -build | --build | --buil | --bui | --bu)
533 ac_prev=build_alias ;;
534 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
535 build_alias=$ac_optarg ;;
537 -cache-file | --cache-file | --cache-fil | --cache-fi \
538 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
539 ac_prev=cache_file ;;
540 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
541 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
542 cache_file=$ac_optarg ;;
545 cache_file=config.cache ;;
547 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
549 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
551 datadir=$ac_optarg ;;
553 -disable-* | --disable-*)
554 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
555 # Reject names that are not valid shell variable names.
556 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
557 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
558 { (exit 1); exit 1; }; }
559 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
560 eval "enable_$ac_feature=no" ;;
562 -enable-* | --enable-*)
563 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
564 # Reject names that are not valid shell variable names.
565 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
566 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
567 { (exit 1); exit 1; }; }
568 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
570 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
573 eval "enable_$ac_feature='$ac_optarg'" ;;
575 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
576 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
577 | --exec | --exe | --ex)
578 ac_prev=exec_prefix ;;
579 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
580 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
581 | --exec=* | --exe=* | --ex=*)
582 exec_prefix=$ac_optarg ;;
584 -gas | --gas | --ga | --g)
585 # Obsolete; use --with-gas.
588 -help | --help | --hel | --he | -h)
590 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
591 ac_init_help=recursive ;;
592 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
593 ac_init_help=short ;;
595 -host | --host | --hos | --ho)
596 ac_prev=host_alias ;;
597 -host=* | --host=* | --hos=* | --ho=*)
598 host_alias=$ac_optarg ;;
600 -includedir | --includedir | --includedi | --included | --include \
601 | --includ | --inclu | --incl | --inc)
602 ac_prev=includedir ;;
603 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
604 | --includ=* | --inclu=* | --incl=* | --inc=*)
605 includedir=$ac_optarg ;;
607 -infodir | --infodir | --infodi | --infod | --info | --inf)
609 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
610 infodir=$ac_optarg ;;
612 -libdir | --libdir | --libdi | --libd)
614 -libdir=* | --libdir=* | --libdi=* | --libd=*)
617 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
618 | --libexe | --libex | --libe)
619 ac_prev=libexecdir ;;
620 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
621 | --libexe=* | --libex=* | --libe=*)
622 libexecdir=$ac_optarg ;;
624 -localstatedir | --localstatedir | --localstatedi | --localstated \
625 | --localstate | --localstat | --localsta | --localst \
626 | --locals | --local | --loca | --loc | --lo)
627 ac_prev=localstatedir ;;
628 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
629 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
630 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
631 localstatedir=$ac_optarg ;;
633 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
635 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
639 # Obsolete; use --without-fp.
642 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
643 | --no-cr | --no-c | -n)
646 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
647 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
650 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
651 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
652 | --oldin | --oldi | --old | --ol | --o)
653 ac_prev=oldincludedir ;;
654 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
655 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
656 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
657 oldincludedir=$ac_optarg ;;
659 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
661 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
664 -program-prefix | --program-prefix | --program-prefi | --program-pref \
665 | --program-pre | --program-pr | --program-p)
666 ac_prev=program_prefix ;;
667 -program-prefix=* | --program-prefix=* | --program-prefi=* \
668 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
669 program_prefix=$ac_optarg ;;
671 -program-suffix | --program-suffix | --program-suffi | --program-suff \
672 | --program-suf | --program-su | --program-s)
673 ac_prev=program_suffix ;;
674 -program-suffix=* | --program-suffix=* | --program-suffi=* \
675 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
676 program_suffix=$ac_optarg ;;
678 -program-transform-name | --program-transform-name \
679 | --program-transform-nam | --program-transform-na \
680 | --program-transform-n | --program-transform- \
681 | --program-transform | --program-transfor \
682 | --program-transfo | --program-transf \
683 | --program-trans | --program-tran \
684 | --progr-tra | --program-tr | --program-t)
685 ac_prev=program_transform_name ;;
686 -program-transform-name=* | --program-transform-name=* \
687 | --program-transform-nam=* | --program-transform-na=* \
688 | --program-transform-n=* | --program-transform-=* \
689 | --program-transform=* | --program-transfor=* \
690 | --program-transfo=* | --program-transf=* \
691 | --program-trans=* | --program-tran=* \
692 | --progr-tra=* | --program-tr=* | --program-t=*)
693 program_transform_name=$ac_optarg ;;
695 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
696 | -silent | --silent | --silen | --sile | --sil)
699 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
701 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
703 sbindir=$ac_optarg ;;
705 -sharedstatedir | --sharedstatedir | --sharedstatedi \
706 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
707 | --sharedst | --shareds | --shared | --share | --shar \
709 ac_prev=sharedstatedir ;;
710 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
711 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
712 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
714 sharedstatedir=$ac_optarg ;;
716 -site | --site | --sit)
718 -site=* | --site=* | --sit=*)
721 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
723 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
726 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
727 | --syscon | --sysco | --sysc | --sys | --sy)
728 ac_prev=sysconfdir ;;
729 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
730 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
731 sysconfdir=$ac_optarg ;;
733 -target | --target | --targe | --targ | --tar | --ta | --t)
734 ac_prev=target_alias ;;
735 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
736 target_alias=$ac_optarg ;;
738 -v | -verbose | --verbose | --verbos | --verbo | --verb)
741 -version | --version | --versio | --versi | --vers | -V)
745 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
746 # Reject names that are not valid shell variable names.
747 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
748 { echo "$as_me: error: invalid package name: $ac_package" >&2
749 { (exit 1); exit 1; }; }
750 ac_package=`echo $ac_package| sed 's/-/_/g'`
752 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
755 eval "with_$ac_package='$ac_optarg'" ;;
757 -without-* | --without-*)
758 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
759 # Reject names that are not valid shell variable names.
760 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
761 { echo "$as_me: error: invalid package name: $ac_package" >&2
762 { (exit 1); exit 1; }; }
763 ac_package=`echo $ac_package | sed 's/-/_/g'`
764 eval "with_$ac_package=no" ;;
767 # Obsolete; use --with-x.
770 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
771 | --x-incl | --x-inc | --x-in | --x-i)
772 ac_prev=x_includes ;;
773 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
774 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
775 x_includes=$ac_optarg ;;
777 -x-libraries | --x-libraries | --x-librarie | --x-librari \
778 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
779 ac_prev=x_libraries ;;
780 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
781 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
782 x_libraries=$ac_optarg ;;
784 -*) { echo "$as_me: error: unrecognized option: $ac_option
785 Try \`$0 --help' for more information." >&2
786 { (exit 1); exit 1; }; }
790 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
791 # Reject names that are not valid shell variable names.
792 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
793 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
794 { (exit 1); exit 1; }; }
795 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
796 eval "$ac_envvar='$ac_optarg'"
800 # FIXME: should be removed in autoconf 3.0.
801 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
802 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
803 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
804 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810 if test -n "$ac_prev"; then
811 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
812 { echo "$as_me: error: missing argument to $ac_option" >&2
813 { (exit 1); exit 1; }; }
816 # Be sure to have absolute paths.
817 for ac_var in exec_prefix prefix
819 eval ac_val=$`echo $ac_var`
821 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
822 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
823 { (exit 1); exit 1; }; };;
827 # Be sure to have absolute paths.
828 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
829 localstatedir libdir includedir oldincludedir infodir mandir
831 eval ac_val=$`echo $ac_var`
833 [\\/$]* | ?:[\\/]* ) ;;
834 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
835 { (exit 1); exit 1; }; };;
839 # There might be people who depend on the old broken behavior: `$host'
840 # used to hold the argument of --host etc.
841 # FIXME: To remove some day.
846 # FIXME: To remove some day.
847 if test "x$host_alias" != x; then
848 if test "x$build_alias" = x; then
849 cross_compiling=maybe
850 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
851 If a cross compiler is detected then cross compile mode will be used." >&2
852 elif test "x$build_alias" != "x$host_alias"; then
858 test -n "$host_alias" && ac_tool_prefix=$host_alias-
860 test "$silent" = yes && exec 6>/dev/null
863 # Find the source files, if location was not specified.
864 if test -z "$srcdir"; then
865 ac_srcdir_defaulted=yes
866 # Try the directory containing this script, then its parent.
867 ac_confdir=`(dirname "$0") 2>/dev/null ||
868 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
869 X"$0" : 'X\(//\)[^/]' \| \
870 X"$0" : 'X\(//\)$' \| \
871 X"$0" : 'X\(/\)' \| \
872 . : '\(.\)' 2>/dev/null ||
874 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
875 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
876 /^X\(\/\/\)$/{ s//\1/; q; }
877 /^X\(\/\).*/{ s//\1/; q; }
880 if test ! -r $srcdir/$ac_unique_file; then
884 ac_srcdir_defaulted=no
886 if test ! -r $srcdir/$ac_unique_file; then
887 if test "$ac_srcdir_defaulted" = yes; then
888 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
889 { (exit 1); exit 1; }; }
891 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
892 { (exit 1); exit 1; }; }
895 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
896 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
897 { (exit 1); exit 1; }; }
898 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
899 ac_env_build_alias_set=${build_alias+set}
900 ac_env_build_alias_value=$build_alias
901 ac_cv_env_build_alias_set=${build_alias+set}
902 ac_cv_env_build_alias_value=$build_alias
903 ac_env_host_alias_set=${host_alias+set}
904 ac_env_host_alias_value=$host_alias
905 ac_cv_env_host_alias_set=${host_alias+set}
906 ac_cv_env_host_alias_value=$host_alias
907 ac_env_target_alias_set=${target_alias+set}
908 ac_env_target_alias_value=$target_alias
909 ac_cv_env_target_alias_set=${target_alias+set}
910 ac_cv_env_target_alias_value=$target_alias
911 ac_env_CXX_set=${CXX+set}
912 ac_env_CXX_value=$CXX
913 ac_cv_env_CXX_set=${CXX+set}
914 ac_cv_env_CXX_value=$CXX
915 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
916 ac_env_CXXFLAGS_value=$CXXFLAGS
917 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
918 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
919 ac_env_LDFLAGS_set=${LDFLAGS+set}
920 ac_env_LDFLAGS_value=$LDFLAGS
921 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
922 ac_cv_env_LDFLAGS_value=$LDFLAGS
923 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
924 ac_env_CPPFLAGS_value=$CPPFLAGS
925 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
926 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
927 ac_env_CXXCPP_set=${CXXCPP+set}
928 ac_env_CXXCPP_value=$CXXCPP
929 ac_cv_env_CXXCPP_set=${CXXCPP+set}
930 ac_cv_env_CXXCPP_value=$CXXCPP
931 ac_env_CC_set=${CC+set}
933 ac_cv_env_CC_set=${CC+set}
934 ac_cv_env_CC_value=$CC
935 ac_env_CFLAGS_set=${CFLAGS+set}
936 ac_env_CFLAGS_value=$CFLAGS
937 ac_cv_env_CFLAGS_set=${CFLAGS+set}
938 ac_cv_env_CFLAGS_value=$CFLAGS
939 ac_env_CPP_set=${CPP+set}
940 ac_env_CPP_value=$CPP
941 ac_cv_env_CPP_set=${CPP+set}
942 ac_cv_env_CPP_value=$CPP
943 ac_env_docdir_set=${docdir+set}
944 ac_env_docdir_value=$docdir
945 ac_cv_env_docdir_set=${docdir+set}
946 ac_cv_env_docdir_value=$docdir
949 # Report the --help message.
951 if test "$ac_init_help" = "long"; then
952 # Omit some internal or obsolete options to make the list less imposing.
953 # This message is too long to be a string in the A/UX 3.1 sh.
955 \`configure' configures this package to adapt to many kinds of systems.
957 Usage: $0 [OPTION]... [VAR=VALUE]...
959 To assign environment variables (e.g., CC, CFLAGS...), specify them as
960 VAR=VALUE. See below for descriptions of some of the useful variables.
962 Defaults for the options are specified in brackets.
965 -h, --help display this help and exit
966 --help=short display options specific to this package
967 --help=recursive display the short help of all the included packages
968 -V, --version display version information and exit
969 -q, --quiet, --silent do not print \`checking...' messages
970 --cache-file=FILE cache test results in FILE [disabled]
971 -C, --config-cache alias for \`--cache-file=config.cache'
972 -n, --no-create do not create output files
973 --srcdir=DIR find the sources in DIR [configure dir or \`..']
978 Installation directories:
979 --prefix=PREFIX install architecture-independent files in PREFIX
981 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
984 By default, \`make install' will install all the files in
985 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
986 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
987 for instance \`--prefix=\$HOME'.
989 For better control, use the options below.
991 Fine tuning of the installation directories:
992 --bindir=DIR user executables [EPREFIX/bin]
993 --sbindir=DIR system admin executables [EPREFIX/sbin]
994 --libexecdir=DIR program executables [EPREFIX/libexec]
995 --datadir=DIR read-only architecture-independent data [PREFIX/share]
996 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
997 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
998 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
999 --libdir=DIR object code libraries [EPREFIX/lib]
1000 --includedir=DIR C header files [PREFIX/include]
1001 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1002 --infodir=DIR info documentation [PREFIX/info]
1003 --mandir=DIR man documentation [PREFIX/man]
1009 --build=BUILD configure for building on BUILD [guessed]
1010 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1014 if test -n "$ac_init_help"; then
1019 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1020 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1021 --enable-ucsim compile ucsim frontend
1022 --enable-dlso compile dynamically loadable shared libraries
1023 --disable-51 do not compile simulator for MCS51
1024 --disable-avr do not compile simulator for AVR
1025 --enable-z80 compile simulator for Z80
1026 --enable-hc08 compile simulator for hc08
1027 --enable-xa compile simulator for XA
1028 --enable-serio compile serio GUI tool (needs curses)
1029 --enable-statistic compile statistical features (slower simulation)
1030 --enable-shared=PKGS build shared libraries default=yes
1031 --enable-static=PKGS build static libraries default=yes
1032 --enable-fast-install=PKGS optimize for fast installation default=yes
1033 --disable-libtool-lock avoid locking (might break parallel builds)
1036 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1037 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1038 --with-gnu-ld assume the C compiler uses GNU ld default=no
1039 --with-pic try to use only PIC/non-PIC objects default=use both
1041 Some influential environment variables:
1042 CXX C++ compiler command
1043 CXXFLAGS C++ compiler flags
1044 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1045 nonstandard directory <lib dir>
1046 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1047 headers in a nonstandard directory <include dir>
1048 CXXCPP C++ preprocessor
1049 CC C compiler command
1050 CFLAGS C compiler flags
1052 docdir documentation installation directory
1054 Use these variables to override the choices made by `configure' or to help
1055 it to find libraries and programs with nonstandard names/locations.
1060 if test "$ac_init_help" = "recursive"; then
1061 # If there are subdirs, report their specific --help.
1063 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1064 test -d $ac_dir || continue
1067 if test "$ac_dir" != .; then
1068 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1069 # A "../" for each directory in $ac_dir_suffix.
1070 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1072 ac_dir_suffix= ac_top_builddir=
1076 .) # No --srcdir option. We are building in place.
1078 if test -z "$ac_top_builddir"; then
1081 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1083 [\\/]* | ?:[\\/]* ) # Absolute path.
1084 ac_srcdir=$srcdir$ac_dir_suffix;
1085 ac_top_srcdir=$srcdir ;;
1087 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1088 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1090 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1092 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1093 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
1094 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1095 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1098 # Check for guested configure; otherwise get Cygnus style configure.
1099 if test -f $ac_srcdir/configure.gnu; then
1101 $SHELL $ac_srcdir/configure.gnu --help=recursive
1102 elif test -f $ac_srcdir/configure; then
1104 $SHELL $ac_srcdir/configure --help=recursive
1105 elif test -f $ac_srcdir/configure.ac ||
1106 test -f $ac_srcdir/configure.in; then
1108 $ac_configure --help
1110 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1116 test -n "$ac_init_help" && exit 0
1117 if $ac_init_version; then
1120 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1121 Free Software Foundation, Inc.
1122 This configure script is free software; the Free Software Foundation
1123 gives unlimited permission to copy, distribute and modify it.
1129 This file contains any messages produced by compilers while
1130 running configure, to aid debugging if configure makes a mistake.
1132 It was created by $as_me, which was
1133 generated by GNU Autoconf 2.57. Invocation command line was
1144 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1145 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1146 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1147 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1148 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1150 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1151 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1153 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1154 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1155 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1156 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1157 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1158 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1159 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1167 test -z "$as_dir" && as_dir=.
1168 echo "PATH: $as_dir"
1183 # Keep a trace of the command line.
1184 # Strip out --no-create and --no-recursion so they do not pile up.
1185 # Strip out --silent because we don't want to record it for future runs.
1186 # Also quote any args containing shell meta-characters.
1187 # Make two passes to allow for proper duplicate-argument suppression.
1192 ac_must_keep_next=false
1198 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1199 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1200 | -silent | --silent | --silen | --sile | --sil)
1202 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1203 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1206 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1208 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1209 if test $ac_must_keep_next = true; then
1210 ac_must_keep_next=false # Got value, back to normal.
1213 *=* | --config-cache | -C | -disable-* | --disable-* \
1214 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1215 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1216 | -with-* | --with-* | -without-* | --without-* | --x)
1217 case "$ac_configure_args0 " in
1218 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1221 -* ) ac_must_keep_next=true ;;
1224 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1225 # Get rid of the leading space.
1231 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1232 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1234 # When interrupted or exit'd, cleanup temporary files, and complete
1235 # config.log. We remove comments because anyway the quotes in there
1236 # would cause problems or look ugly.
1237 # WARNING: Be sure not to use single quotes in there, as some shells,
1238 # such as our DU 5.0 friend, will then `close' the trap.
1239 trap 'exit_status=$?
1240 # Save into config.log some information that might help in debugging.
1245 ## ---------------- ##
1246 ## Cache variables. ##
1247 ## ---------------- ##
1250 # The following way of writing the cache mishandles newlines in values,
1253 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1256 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1257 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1261 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1268 ## ----------------- ##
1269 ## Output variables. ##
1270 ## ----------------- ##
1273 for ac_var in $ac_subst_vars
1275 eval ac_val=$`echo $ac_var`
1276 echo "$ac_var='"'"'$ac_val'"'"'"
1280 if test -n "$ac_subst_files"; then
1287 for ac_var in $ac_subst_files
1289 eval ac_val=$`echo $ac_var`
1290 echo "$ac_var='"'"'$ac_val'"'"'"
1295 if test -s confdefs.h; then
1302 sed "/^$/d" confdefs.h | sort
1305 test "$ac_signal" != 0 &&
1306 echo "$as_me: caught signal $ac_signal"
1307 echo "$as_me: exit $exit_status"
1309 rm -f core core.* *.core &&
1310 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1313 for ac_signal in 1 2 13 15; do
1314 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1318 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1319 rm -rf conftest* confdefs.h
1320 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1323 # Predefined preprocessor variables.
1325 cat >>confdefs.h <<_ACEOF
1326 #define PACKAGE_NAME "$PACKAGE_NAME"
1330 cat >>confdefs.h <<_ACEOF
1331 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1335 cat >>confdefs.h <<_ACEOF
1336 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1340 cat >>confdefs.h <<_ACEOF
1341 #define PACKAGE_STRING "$PACKAGE_STRING"
1345 cat >>confdefs.h <<_ACEOF
1346 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1350 # Let the site file select an alternate cache file if it wants to.
1351 # Prefer explicitly selected file to automatically selected ones.
1352 if test -z "$CONFIG_SITE"; then
1353 if test "x$prefix" != xNONE; then
1354 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1356 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1359 for ac_site_file in $CONFIG_SITE; do
1360 if test -r "$ac_site_file"; then
1361 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1362 echo "$as_me: loading site script $ac_site_file" >&6;}
1363 sed 's/^/| /' "$ac_site_file" >&5
1368 if test -r "$cache_file"; then
1369 # Some versions of bash will fail to source /dev/null (special
1370 # files actually), so we avoid doing that.
1371 if test -f "$cache_file"; then
1372 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1373 echo "$as_me: loading cache $cache_file" >&6;}
1375 [\\/]* | ?:[\\/]* ) . $cache_file;;
1376 *) . ./$cache_file;;
1380 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1381 echo "$as_me: creating cache $cache_file" >&6;}
1385 # Check that the precious variables saved in the cache have kept the same
1387 ac_cache_corrupted=false
1388 for ac_var in `(set) 2>&1 |
1389 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1390 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1391 eval ac_new_set=\$ac_env_${ac_var}_set
1392 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1393 eval ac_new_val="\$ac_env_${ac_var}_value"
1394 case $ac_old_set,$ac_new_set in
1396 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1397 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1398 ac_cache_corrupted=: ;;
1400 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1401 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1402 ac_cache_corrupted=: ;;
1405 if test "x$ac_old_val" != "x$ac_new_val"; then
1406 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1407 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1408 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1409 echo "$as_me: former value: $ac_old_val" >&2;}
1410 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1411 echo "$as_me: current value: $ac_new_val" >&2;}
1412 ac_cache_corrupted=:
1415 # Pass precious variables to config.status.
1416 if test "$ac_new_set" = set; then
1418 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1419 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1420 *) ac_arg=$ac_var=$ac_new_val ;;
1422 case " $ac_configure_args " in
1423 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1424 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1428 if $ac_cache_corrupted; then
1429 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1430 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1431 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1432 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1433 { (exit 1); exit 1; }; }
1437 ac_cpp='$CPP $CPPFLAGS'
1438 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1439 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1440 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1460 ac_config_headers="$ac_config_headers ddconfig.h:ddconfig_in.h"
1463 for ac_prog in gawk mawk nawk awk
1465 # Extract the first word of "$ac_prog", so it can be a program name with args.
1466 set dummy $ac_prog; ac_word=$2
1467 echo "$as_me:$LINENO: checking for $ac_word" >&5
1468 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1469 if test "${ac_cv_prog_AWK+set}" = set; then
1470 echo $ECHO_N "(cached) $ECHO_C" >&6
1472 if test -n "$AWK"; then
1473 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1479 test -z "$as_dir" && as_dir=.
1480 for ac_exec_ext in '' $ac_executable_extensions; do
1481 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1482 ac_cv_prog_AWK="$ac_prog"
1483 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1492 if test -n "$AWK"; then
1493 echo "$as_me:$LINENO: result: $AWK" >&5
1494 echo "${ECHO_T}$AWK" >&6
1496 echo "$as_me:$LINENO: result: no" >&5
1497 echo "${ECHO_T}no" >&6
1500 test -n "$AWK" && break
1504 echo "$as_me:$LINENO: checking version of the package" >&5
1505 echo $ECHO_N "checking version of the package... $ECHO_C" >&6
1506 if test -f .version; then
1507 VERSION=`cat .version`
1508 echo "$as_me:$LINENO: result: $VERSION" >&5
1509 echo "${ECHO_T}$VERSION" >&6
1512 echo "$as_me:$LINENO: result: unknown using 0.0.0" >&5
1513 echo "${ECHO_T}unknown using 0.0.0" >&6
1515 VERSIONHI=`echo $VERSION|$AWK 'BEGIN {FS="."} {print $1}'`
1516 VERSIONLO=`echo $VERSION|$AWK 'BEGIN {FS="."} {print $2}'`
1517 VERSIONP=`echo $VERSION|$AWK 'BEGIN {FS="."} {print $3}'`
1522 cat >>confdefs.h <<_ACEOF
1523 #define VERSIONSTR "${VERSION}"
1526 cat >>confdefs.h <<_ACEOF
1527 #define VERSIONHI $VERSIONHI
1530 cat >>confdefs.h <<_ACEOF
1531 #define VERSIONLO $VERSIONLO
1534 cat >>confdefs.h <<_ACEOF
1535 #define VERSIONP $VERSIONP
1541 # Check whether --enable-ucsim or --disable-ucsim was given.
1542 if test "${enable_ucsim+set}" = set; then
1543 enableval="$enable_ucsim"
1544 if test $enable_ucsim != "no"; then
1551 # Check whether --enable-dlso or --disable-dlso was given.
1552 if test "${enable_dlso+set}" = set; then
1553 enableval="$enable_dlso"
1554 if test $enable_dlso != "no"; then
1560 # Check whether --enable-51 or --disable-51 was given.
1561 if test "${enable_51+set}" = set; then
1562 enableval="$enable_51"
1563 if test $enable_51 != "no"; then
1569 # Check whether --enable-avr or --disable-avr was given.
1570 if test "${enable_avr+set}" = set; then
1571 enableval="$enable_avr"
1572 if test $enable_avr != "no"; then
1578 # Check whether --enable-z80 or --disable-z80 was given.
1579 if test "${enable_z80+set}" = set; then
1580 enableval="$enable_z80"
1581 if test $enable_z80 != "no"; then
1587 # Check whether --enable-hc08 or --disable-hc08 was given.
1588 if test "${enable_hc08+set}" = set; then
1589 enableval="$enable_hc08"
1590 if test $enable_hc08 != "no"; then
1596 # Check whether --enable-xa or --disable-xa was given.
1597 if test "${enable_xa+set}" = set; then
1598 enableval="$enable_xa"
1599 if test $enable_xa != "no"; then
1605 # Check whether --enable-portmon or --disable-portmon was given.
1606 if test "${enable_portmon+set}" = set; then
1607 enableval="$enable_portmon"
1608 if test $enable_serio != "no"; then
1623 # Check whether --enable-statistic or --disable-statistic was given.
1624 if test "${enable_statistic+set}" = set; then
1625 enableval="$enable_statistic"
1626 if test $enable_statistic != "no"; then
1627 enable_statistic="yes"
1630 enable_statistic="no"
1632 cat >>confdefs.h <<_ACEOF
1633 #define STATISTIC $enable_statistic
1639 #-------------------
1641 ac_cpp='$CXXCPP $CPPFLAGS'
1642 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1643 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1644 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1645 if test -n "$ac_tool_prefix"; then
1646 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1648 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1649 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1650 echo "$as_me:$LINENO: checking for $ac_word" >&5
1651 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1652 if test "${ac_cv_prog_CXX+set}" = set; then
1653 echo $ECHO_N "(cached) $ECHO_C" >&6
1655 if test -n "$CXX"; then
1656 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1662 test -z "$as_dir" && as_dir=.
1663 for ac_exec_ext in '' $ac_executable_extensions; do
1664 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1665 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1666 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1675 if test -n "$CXX"; then
1676 echo "$as_me:$LINENO: result: $CXX" >&5
1677 echo "${ECHO_T}$CXX" >&6
1679 echo "$as_me:$LINENO: result: no" >&5
1680 echo "${ECHO_T}no" >&6
1683 test -n "$CXX" && break
1686 if test -z "$CXX"; then
1688 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1690 # Extract the first word of "$ac_prog", so it can be a program name with args.
1691 set dummy $ac_prog; ac_word=$2
1692 echo "$as_me:$LINENO: checking for $ac_word" >&5
1693 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1694 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1695 echo $ECHO_N "(cached) $ECHO_C" >&6
1697 if test -n "$ac_ct_CXX"; then
1698 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1704 test -z "$as_dir" && as_dir=.
1705 for ac_exec_ext in '' $ac_executable_extensions; do
1706 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1707 ac_cv_prog_ac_ct_CXX="$ac_prog"
1708 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1716 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1717 if test -n "$ac_ct_CXX"; then
1718 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
1719 echo "${ECHO_T}$ac_ct_CXX" >&6
1721 echo "$as_me:$LINENO: result: no" >&5
1722 echo "${ECHO_T}no" >&6
1725 test -n "$ac_ct_CXX" && break
1727 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1733 # Provide some information about the compiler.
1734 echo "$as_me:$LINENO:" \
1735 "checking for C++ compiler version" >&5
1736 ac_compiler=`set X $ac_compile; echo $2`
1737 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1738 (eval $ac_compiler --version </dev/null >&5) 2>&5
1740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1741 (exit $ac_status); }
1742 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1743 (eval $ac_compiler -v </dev/null >&5) 2>&5
1745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1746 (exit $ac_status); }
1747 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1748 (eval $ac_compiler -V </dev/null >&5) 2>&5
1750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1751 (exit $ac_status); }
1753 cat >conftest.$ac_ext <<_ACEOF
1754 #line $LINENO "configure"
1757 cat confdefs.h >>conftest.$ac_ext
1758 cat >>conftest.$ac_ext <<_ACEOF
1759 /* end confdefs.h. */
1769 ac_clean_files_save=$ac_clean_files
1770 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1771 # Try to create an executable without -o first, disregard a.out.
1772 # It will help us diagnose broken compilers, and finding out an intuition
1774 echo "$as_me:$LINENO: checking for C++ compiler default output" >&5
1775 echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
1776 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1777 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1778 (eval $ac_link_default) 2>&5
1780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1781 (exit $ac_status); }; then
1782 # Find the output, starting from the most likely. This scheme is
1783 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1786 # Be careful to initialize this variable, since it used to be cached.
1787 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1789 # b.out is created by i960 compilers.
1790 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1792 test -f "$ac_file" || continue
1794 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1797 # This is the source file.
1800 # We found the default executable, but exeext='' is most
1804 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1805 # FIXME: I believe we export ac_cv_exeext for Libtool,
1806 # but it would be cool to find out if it's true. Does anybody
1807 # maintain Libtool? --akim.
1815 echo "$as_me: failed program was:" >&5
1816 sed 's/^/| /' conftest.$ac_ext >&5
1818 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
1819 See \`config.log' for more details." >&5
1820 echo "$as_me: error: C++ compiler cannot create executables
1821 See \`config.log' for more details." >&2;}
1822 { (exit 77); exit 77; }; }
1825 ac_exeext=$ac_cv_exeext
1826 echo "$as_me:$LINENO: result: $ac_file" >&5
1827 echo "${ECHO_T}$ac_file" >&6
1829 # Check the compiler produces executables we can run. If not, either
1830 # the compiler is broken, or we cross compile.
1831 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
1832 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
1833 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1834 # If not cross compiling, check that we can run a simple program.
1835 if test "$cross_compiling" != yes; then
1836 if { ac_try='./$ac_file'
1837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1841 (exit $ac_status); }; }; then
1844 if test "$cross_compiling" = maybe; then
1847 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
1848 If you meant to cross compile, use \`--host'.
1849 See \`config.log' for more details." >&5
1850 echo "$as_me: error: cannot run C++ compiled programs.
1851 If you meant to cross compile, use \`--host'.
1852 See \`config.log' for more details." >&2;}
1853 { (exit 1); exit 1; }; }
1857 echo "$as_me:$LINENO: result: yes" >&5
1858 echo "${ECHO_T}yes" >&6
1860 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1861 ac_clean_files=$ac_clean_files_save
1862 # Check the compiler produces executables we can run. If not, either
1863 # the compiler is broken, or we cross compile.
1864 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1865 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1866 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1867 echo "${ECHO_T}$cross_compiling" >&6
1869 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1870 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1872 (eval $ac_link) 2>&5
1874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1875 (exit $ac_status); }; then
1876 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1877 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1878 # work properly (i.e., refer to `conftest.exe'), while it won't with
1880 for ac_file in conftest.exe conftest conftest.*; do
1881 test -f "$ac_file" || continue
1883 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1884 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1891 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1892 See \`config.log' for more details." >&5
1893 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1894 See \`config.log' for more details." >&2;}
1895 { (exit 1); exit 1; }; }
1898 rm -f conftest$ac_cv_exeext
1899 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1900 echo "${ECHO_T}$ac_cv_exeext" >&6
1902 rm -f conftest.$ac_ext
1903 EXEEXT=$ac_cv_exeext
1905 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1906 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1907 if test "${ac_cv_objext+set}" = set; then
1908 echo $ECHO_N "(cached) $ECHO_C" >&6
1910 cat >conftest.$ac_ext <<_ACEOF
1911 #line $LINENO "configure"
1914 cat confdefs.h >>conftest.$ac_ext
1915 cat >>conftest.$ac_ext <<_ACEOF
1916 /* end confdefs.h. */
1926 rm -f conftest.o conftest.obj
1927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1928 (eval $ac_compile) 2>&5
1930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1931 (exit $ac_status); }; then
1932 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1934 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1935 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1940 echo "$as_me: failed program was:" >&5
1941 sed 's/^/| /' conftest.$ac_ext >&5
1943 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1944 See \`config.log' for more details." >&5
1945 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1946 See \`config.log' for more details." >&2;}
1947 { (exit 1); exit 1; }; }
1950 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1952 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1953 echo "${ECHO_T}$ac_cv_objext" >&6
1954 OBJEXT=$ac_cv_objext
1956 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
1957 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
1958 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
1959 echo $ECHO_N "(cached) $ECHO_C" >&6
1961 cat >conftest.$ac_ext <<_ACEOF
1962 #line $LINENO "configure"
1965 cat confdefs.h >>conftest.$ac_ext
1966 cat >>conftest.$ac_ext <<_ACEOF
1967 /* end confdefs.h. */
1980 rm -f conftest.$ac_objext
1981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1982 (eval $ac_compile) 2>&5
1984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1985 (exit $ac_status); } &&
1986 { ac_try='test -s conftest.$ac_objext'
1987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1991 (exit $ac_status); }; }; then
1994 echo "$as_me: failed program was:" >&5
1995 sed 's/^/| /' conftest.$ac_ext >&5
1999 rm -f conftest.$ac_objext conftest.$ac_ext
2000 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2003 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2004 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2005 GXX=`test $ac_compiler_gnu = yes && echo yes`
2006 ac_test_CXXFLAGS=${CXXFLAGS+set}
2007 ac_save_CXXFLAGS=$CXXFLAGS
2009 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2010 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2011 if test "${ac_cv_prog_cxx_g+set}" = set; then
2012 echo $ECHO_N "(cached) $ECHO_C" >&6
2014 cat >conftest.$ac_ext <<_ACEOF
2015 #line $LINENO "configure"
2018 cat confdefs.h >>conftest.$ac_ext
2019 cat >>conftest.$ac_ext <<_ACEOF
2020 /* end confdefs.h. */
2030 rm -f conftest.$ac_objext
2031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2032 (eval $ac_compile) 2>&5
2034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2035 (exit $ac_status); } &&
2036 { ac_try='test -s conftest.$ac_objext'
2037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2041 (exit $ac_status); }; }; then
2042 ac_cv_prog_cxx_g=yes
2044 echo "$as_me: failed program was:" >&5
2045 sed 's/^/| /' conftest.$ac_ext >&5
2049 rm -f conftest.$ac_objext conftest.$ac_ext
2051 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2052 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2053 if test "$ac_test_CXXFLAGS" = set; then
2054 CXXFLAGS=$ac_save_CXXFLAGS
2055 elif test $ac_cv_prog_cxx_g = yes; then
2056 if test "$GXX" = yes; then
2062 if test "$GXX" = yes; then
2068 for ac_declaration in \
2070 '#include <stdlib.h>' \
2071 'extern "C" void std::exit (int) throw (); using std::exit;' \
2072 'extern "C" void std::exit (int); using std::exit;' \
2073 'extern "C" void exit (int) throw ();' \
2074 'extern "C" void exit (int);' \
2077 cat >conftest.$ac_ext <<_ACEOF
2078 #line $LINENO "configure"
2081 cat confdefs.h >>conftest.$ac_ext
2082 cat >>conftest.$ac_ext <<_ACEOF
2083 /* end confdefs.h. */
2094 rm -f conftest.$ac_objext
2095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2096 (eval $ac_compile) 2>&5
2098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2099 (exit $ac_status); } &&
2100 { ac_try='test -s conftest.$ac_objext'
2101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2105 (exit $ac_status); }; }; then
2108 echo "$as_me: failed program was:" >&5
2109 sed 's/^/| /' conftest.$ac_ext >&5
2113 rm -f conftest.$ac_objext conftest.$ac_ext
2114 cat >conftest.$ac_ext <<_ACEOF
2115 #line $LINENO "configure"
2118 cat confdefs.h >>conftest.$ac_ext
2119 cat >>conftest.$ac_ext <<_ACEOF
2120 /* end confdefs.h. */
2130 rm -f conftest.$ac_objext
2131 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2132 (eval $ac_compile) 2>&5
2134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2135 (exit $ac_status); } &&
2136 { ac_try='test -s conftest.$ac_objext'
2137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2141 (exit $ac_status); }; }; then
2144 echo "$as_me: failed program was:" >&5
2145 sed 's/^/| /' conftest.$ac_ext >&5
2148 rm -f conftest.$ac_objext conftest.$ac_ext
2151 if test -n "$ac_declaration"; then
2152 echo '#ifdef __cplusplus' >>confdefs.h
2153 echo $ac_declaration >>confdefs.h
2154 echo '#endif' >>confdefs.h
2158 ac_cpp='$CPP $CPPFLAGS'
2159 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2160 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2161 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2164 ac_cpp='$CXXCPP $CPPFLAGS'
2165 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2166 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2167 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2168 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
2169 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
2170 if test -z "$CXXCPP"; then
2171 if test "${ac_cv_prog_CXXCPP+set}" = set; then
2172 echo $ECHO_N "(cached) $ECHO_C" >&6
2174 # Double quotes because CXXCPP needs to be expanded
2175 for CXXCPP in "$CXX -E" "/lib/cpp"
2178 for ac_cxx_preproc_warn_flag in '' yes
2180 # Use a header file that comes with gcc, so configuring glibc
2181 # with a fresh cross-compiler works.
2182 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2183 # <limits.h> exists even on freestanding compilers.
2184 # On the NeXT, cc -E runs the code through the compiler's parser,
2185 # not just through cpp. "Syntax error" is here to catch this case.
2186 cat >conftest.$ac_ext <<_ACEOF
2187 #line $LINENO "configure"
2190 cat confdefs.h >>conftest.$ac_ext
2191 cat >>conftest.$ac_ext <<_ACEOF
2192 /* end confdefs.h. */
2194 # include <limits.h>
2196 # include <assert.h>
2200 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2201 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2203 grep -v '^ *+' conftest.er1 >conftest.err
2205 cat conftest.err >&5
2206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2207 (exit $ac_status); } >/dev/null; then
2208 if test -s conftest.err; then
2209 ac_cpp_err=$ac_cxx_preproc_warn_flag
2216 if test -z "$ac_cpp_err"; then
2219 echo "$as_me: failed program was:" >&5
2220 sed 's/^/| /' conftest.$ac_ext >&5
2222 # Broken: fails on valid input.
2225 rm -f conftest.err conftest.$ac_ext
2227 # OK, works on sane cases. Now check whether non-existent headers
2228 # can be detected and how.
2229 cat >conftest.$ac_ext <<_ACEOF
2230 #line $LINENO "configure"
2233 cat confdefs.h >>conftest.$ac_ext
2234 cat >>conftest.$ac_ext <<_ACEOF
2235 /* end confdefs.h. */
2236 #include <ac_nonexistent.h>
2238 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2239 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2241 grep -v '^ *+' conftest.er1 >conftest.err
2243 cat conftest.err >&5
2244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2245 (exit $ac_status); } >/dev/null; then
2246 if test -s conftest.err; then
2247 ac_cpp_err=$ac_cxx_preproc_warn_flag
2254 if test -z "$ac_cpp_err"; then
2255 # Broken: success on invalid input.
2258 echo "$as_me: failed program was:" >&5
2259 sed 's/^/| /' conftest.$ac_ext >&5
2261 # Passes both tests.
2265 rm -f conftest.err conftest.$ac_ext
2268 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2269 rm -f conftest.err conftest.$ac_ext
2270 if $ac_preproc_ok; then
2275 ac_cv_prog_CXXCPP=$CXXCPP
2278 CXXCPP=$ac_cv_prog_CXXCPP
2280 ac_cv_prog_CXXCPP=$CXXCPP
2282 echo "$as_me:$LINENO: result: $CXXCPP" >&5
2283 echo "${ECHO_T}$CXXCPP" >&6
2285 for ac_cxx_preproc_warn_flag in '' yes
2287 # Use a header file that comes with gcc, so configuring glibc
2288 # with a fresh cross-compiler works.
2289 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2290 # <limits.h> exists even on freestanding compilers.
2291 # On the NeXT, cc -E runs the code through the compiler's parser,
2292 # not just through cpp. "Syntax error" is here to catch this case.
2293 cat >conftest.$ac_ext <<_ACEOF
2294 #line $LINENO "configure"
2297 cat confdefs.h >>conftest.$ac_ext
2298 cat >>conftest.$ac_ext <<_ACEOF
2299 /* end confdefs.h. */
2301 # include <limits.h>
2303 # include <assert.h>
2307 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2308 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2310 grep -v '^ *+' conftest.er1 >conftest.err
2312 cat conftest.err >&5
2313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2314 (exit $ac_status); } >/dev/null; then
2315 if test -s conftest.err; then
2316 ac_cpp_err=$ac_cxx_preproc_warn_flag
2323 if test -z "$ac_cpp_err"; then
2326 echo "$as_me: failed program was:" >&5
2327 sed 's/^/| /' conftest.$ac_ext >&5
2329 # Broken: fails on valid input.
2332 rm -f conftest.err conftest.$ac_ext
2334 # OK, works on sane cases. Now check whether non-existent headers
2335 # can be detected and how.
2336 cat >conftest.$ac_ext <<_ACEOF
2337 #line $LINENO "configure"
2340 cat confdefs.h >>conftest.$ac_ext
2341 cat >>conftest.$ac_ext <<_ACEOF
2342 /* end confdefs.h. */
2343 #include <ac_nonexistent.h>
2345 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2346 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2348 grep -v '^ *+' conftest.er1 >conftest.err
2350 cat conftest.err >&5
2351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2352 (exit $ac_status); } >/dev/null; then
2353 if test -s conftest.err; then
2354 ac_cpp_err=$ac_cxx_preproc_warn_flag
2361 if test -z "$ac_cpp_err"; then
2362 # Broken: success on invalid input.
2365 echo "$as_me: failed program was:" >&5
2366 sed 's/^/| /' conftest.$ac_ext >&5
2368 # Passes both tests.
2372 rm -f conftest.err conftest.$ac_ext
2375 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2376 rm -f conftest.err conftest.$ac_ext
2377 if $ac_preproc_ok; then
2380 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
2381 See \`config.log' for more details." >&5
2382 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
2383 See \`config.log' for more details." >&2;}
2384 { (exit 1); exit 1; }; }
2388 ac_cpp='$CPP $CPPFLAGS'
2389 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2390 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2391 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2394 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2395 if test -f $ac_dir/install-sh; then
2397 ac_install_sh="$ac_aux_dir/install-sh -c"
2399 elif test -f $ac_dir/install.sh; then
2401 ac_install_sh="$ac_aux_dir/install.sh -c"
2403 elif test -f $ac_dir/shtool; then
2405 ac_install_sh="$ac_aux_dir/shtool install -c"
2409 if test -z "$ac_aux_dir"; then
2410 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2411 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2412 { (exit 1); exit 1; }; }
2414 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2415 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2416 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2418 # Find a good install program. We prefer a C program (faster),
2419 # so one script is as good as another. But avoid the broken or
2420 # incompatible versions:
2421 # SysV /etc/install, /usr/sbin/install
2422 # SunOS /usr/etc/install
2423 # IRIX /sbin/install
2425 # AmigaOS /C/install, which installs bootblocks on floppy discs
2426 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2427 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2428 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2429 # ./install, which can be erroneously created by make from ./install.sh.
2430 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2431 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2432 if test -z "$INSTALL"; then
2433 if test "${ac_cv_path_install+set}" = set; then
2434 echo $ECHO_N "(cached) $ECHO_C" >&6
2436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2440 test -z "$as_dir" && as_dir=.
2441 # Account for people who put trailing slashes in PATH elements.
2443 ./ | .// | /cC/* | \
2444 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2447 # OSF1 and SCO ODT 3.0 have their own names for install.
2448 # Don't use installbsd from OSF since it installs stuff as root
2450 for ac_prog in ginstall scoinst install; do
2451 for ac_exec_ext in '' $ac_executable_extensions; do
2452 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2453 if test $ac_prog = install &&
2454 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2455 # AIX install. It has an incompatible calling convention.
2457 elif test $ac_prog = install &&
2458 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2459 # program-specific install script used by HP pwplus--don't use.
2462 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2474 if test "${ac_cv_path_install+set}" = set; then
2475 INSTALL=$ac_cv_path_install
2477 # As a last resort, use the slow shell script. We don't cache a
2478 # path for INSTALL within a source directory, because that will
2479 # break other packages using the cache if that directory is
2480 # removed, or if the path is relative.
2481 INSTALL=$ac_install_sh
2484 echo "$as_me:$LINENO: result: $INSTALL" >&5
2485 echo "${ECHO_T}$INSTALL" >&6
2487 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2488 # It thinks the first close brace ends the variable substitution.
2489 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2491 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2493 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2495 if test -n "$ac_tool_prefix"; then
2496 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2497 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2498 echo "$as_me:$LINENO: checking for $ac_word" >&5
2499 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2500 if test "${ac_cv_prog_RANLIB+set}" = set; then
2501 echo $ECHO_N "(cached) $ECHO_C" >&6
2503 if test -n "$RANLIB"; then
2504 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2510 test -z "$as_dir" && as_dir=.
2511 for ac_exec_ext in '' $ac_executable_extensions; do
2512 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2513 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2514 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2522 RANLIB=$ac_cv_prog_RANLIB
2523 if test -n "$RANLIB"; then
2524 echo "$as_me:$LINENO: result: $RANLIB" >&5
2525 echo "${ECHO_T}$RANLIB" >&6
2527 echo "$as_me:$LINENO: result: no" >&5
2528 echo "${ECHO_T}no" >&6
2532 if test -z "$ac_cv_prog_RANLIB"; then
2533 ac_ct_RANLIB=$RANLIB
2534 # Extract the first word of "ranlib", so it can be a program name with args.
2535 set dummy ranlib; ac_word=$2
2536 echo "$as_me:$LINENO: checking for $ac_word" >&5
2537 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2538 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2539 echo $ECHO_N "(cached) $ECHO_C" >&6
2541 if test -n "$ac_ct_RANLIB"; then
2542 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2548 test -z "$as_dir" && as_dir=.
2549 for ac_exec_ext in '' $ac_executable_extensions; do
2550 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2551 ac_cv_prog_ac_ct_RANLIB="ranlib"
2552 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2558 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2561 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2562 if test -n "$ac_ct_RANLIB"; then
2563 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2564 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2566 echo "$as_me:$LINENO: result: no" >&5
2567 echo "${ECHO_T}no" >&6
2570 RANLIB=$ac_ct_RANLIB
2572 RANLIB="$ac_cv_prog_RANLIB"
2576 # Extract the first word of "strip", so it can be a program name with args.
2577 set dummy strip; ac_word=$2
2578 echo "$as_me:$LINENO: checking for $ac_word" >&5
2579 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2580 if test "${ac_cv_prog_STRIP+set}" = set; then
2581 echo $ECHO_N "(cached) $ECHO_C" >&6
2583 if test -n "$STRIP"; then
2584 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2590 test -z "$as_dir" && as_dir=.
2591 for ac_exec_ext in '' $ac_executable_extensions; do
2592 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2593 ac_cv_prog_STRIP="strip"
2594 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2600 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2603 STRIP=$ac_cv_prog_STRIP
2604 if test -n "$STRIP"; then
2605 echo "$as_me:$LINENO: result: $STRIP" >&5
2606 echo "${ECHO_T}$STRIP" >&6
2608 echo "$as_me:$LINENO: result: no" >&5
2609 echo "${ECHO_T}no" >&6
2614 # Check whether --enable-shared or --disable-shared was given.
2615 if test "${enable_shared+set}" = set; then
2616 enableval="$enable_shared"
2617 p=${PACKAGE-default}
2619 yes) enable_shared=yes ;;
2620 no) enable_shared=no ;;
2623 # Look at the argument we got. We use all the common list separators.
2624 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2625 for pkg in $enableval; do
2626 if test "X$pkg" = "X$p"; then
2636 # Check whether --enable-static or --disable-static was given.
2637 if test "${enable_static+set}" = set; then
2638 enableval="$enable_static"
2639 p=${PACKAGE-default}
2641 yes) enable_static=yes ;;
2642 no) enable_static=no ;;
2645 # Look at the argument we got. We use all the common list separators.
2646 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2647 for pkg in $enableval; do
2648 if test "X$pkg" = "X$p"; then
2658 # Check whether --enable-fast-install or --disable-fast-install was given.
2659 if test "${enable_fast_install+set}" = set; then
2660 enableval="$enable_fast_install"
2661 p=${PACKAGE-default}
2663 yes) enable_fast_install=yes ;;
2664 no) enable_fast_install=no ;;
2666 enable_fast_install=no
2667 # Look at the argument we got. We use all the common list separators.
2668 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2669 for pkg in $enableval; do
2670 if test "X$pkg" = "X$p"; then
2671 enable_fast_install=yes
2678 enable_fast_install=yes
2680 # Make sure we can run config.sub.
2681 $ac_config_sub sun4 >/dev/null 2>&1 ||
2682 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2683 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2684 { (exit 1); exit 1; }; }
2686 echo "$as_me:$LINENO: checking build system type" >&5
2687 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2688 if test "${ac_cv_build+set}" = set; then
2689 echo $ECHO_N "(cached) $ECHO_C" >&6
2691 ac_cv_build_alias=$build_alias
2692 test -z "$ac_cv_build_alias" &&
2693 ac_cv_build_alias=`$ac_config_guess`
2694 test -z "$ac_cv_build_alias" &&
2695 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2696 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2697 { (exit 1); exit 1; }; }
2698 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2699 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2700 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2701 { (exit 1); exit 1; }; }
2704 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2705 echo "${ECHO_T}$ac_cv_build" >&6
2707 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2708 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2709 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2712 echo "$as_me:$LINENO: checking host system type" >&5
2713 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2714 if test "${ac_cv_host+set}" = set; then
2715 echo $ECHO_N "(cached) $ECHO_C" >&6
2717 ac_cv_host_alias=$host_alias
2718 test -z "$ac_cv_host_alias" &&
2719 ac_cv_host_alias=$ac_cv_build_alias
2720 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2721 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2722 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2723 { (exit 1); exit 1; }; }
2726 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2727 echo "${ECHO_T}$ac_cv_host" >&6
2729 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2730 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2731 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2735 ac_cpp='$CPP $CPPFLAGS'
2736 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2737 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2738 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2739 if test -n "$ac_tool_prefix"; then
2740 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2741 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2742 echo "$as_me:$LINENO: checking for $ac_word" >&5
2743 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2744 if test "${ac_cv_prog_CC+set}" = set; then
2745 echo $ECHO_N "(cached) $ECHO_C" >&6
2747 if test -n "$CC"; then
2748 ac_cv_prog_CC="$CC" # Let the user override the test.
2750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2754 test -z "$as_dir" && as_dir=.
2755 for ac_exec_ext in '' $ac_executable_extensions; do
2756 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2757 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2758 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2767 if test -n "$CC"; then
2768 echo "$as_me:$LINENO: result: $CC" >&5
2769 echo "${ECHO_T}$CC" >&6
2771 echo "$as_me:$LINENO: result: no" >&5
2772 echo "${ECHO_T}no" >&6
2776 if test -z "$ac_cv_prog_CC"; then
2778 # Extract the first word of "gcc", so it can be a program name with args.
2779 set dummy gcc; ac_word=$2
2780 echo "$as_me:$LINENO: checking for $ac_word" >&5
2781 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2782 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2783 echo $ECHO_N "(cached) $ECHO_C" >&6
2785 if test -n "$ac_ct_CC"; then
2786 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2792 test -z "$as_dir" && as_dir=.
2793 for ac_exec_ext in '' $ac_executable_extensions; do
2794 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2795 ac_cv_prog_ac_ct_CC="gcc"
2796 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2804 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2805 if test -n "$ac_ct_CC"; then
2806 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2807 echo "${ECHO_T}$ac_ct_CC" >&6
2809 echo "$as_me:$LINENO: result: no" >&5
2810 echo "${ECHO_T}no" >&6
2818 if test -z "$CC"; then
2819 if test -n "$ac_tool_prefix"; then
2820 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2821 set dummy ${ac_tool_prefix}cc; ac_word=$2
2822 echo "$as_me:$LINENO: checking for $ac_word" >&5
2823 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2824 if test "${ac_cv_prog_CC+set}" = set; then
2825 echo $ECHO_N "(cached) $ECHO_C" >&6
2827 if test -n "$CC"; then
2828 ac_cv_prog_CC="$CC" # Let the user override the test.
2830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2834 test -z "$as_dir" && as_dir=.
2835 for ac_exec_ext in '' $ac_executable_extensions; do
2836 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2837 ac_cv_prog_CC="${ac_tool_prefix}cc"
2838 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2847 if test -n "$CC"; then
2848 echo "$as_me:$LINENO: result: $CC" >&5
2849 echo "${ECHO_T}$CC" >&6
2851 echo "$as_me:$LINENO: result: no" >&5
2852 echo "${ECHO_T}no" >&6
2856 if test -z "$ac_cv_prog_CC"; then
2858 # Extract the first word of "cc", so it can be a program name with args.
2859 set dummy cc; ac_word=$2
2860 echo "$as_me:$LINENO: checking for $ac_word" >&5
2861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2862 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2863 echo $ECHO_N "(cached) $ECHO_C" >&6
2865 if test -n "$ac_ct_CC"; then
2866 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2872 test -z "$as_dir" && as_dir=.
2873 for ac_exec_ext in '' $ac_executable_extensions; do
2874 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2875 ac_cv_prog_ac_ct_CC="cc"
2876 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2884 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2885 if test -n "$ac_ct_CC"; then
2886 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2887 echo "${ECHO_T}$ac_ct_CC" >&6
2889 echo "$as_me:$LINENO: result: no" >&5
2890 echo "${ECHO_T}no" >&6
2899 if test -z "$CC"; then
2900 # Extract the first word of "cc", so it can be a program name with args.
2901 set dummy cc; ac_word=$2
2902 echo "$as_me:$LINENO: checking for $ac_word" >&5
2903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2904 if test "${ac_cv_prog_CC+set}" = set; then
2905 echo $ECHO_N "(cached) $ECHO_C" >&6
2907 if test -n "$CC"; then
2908 ac_cv_prog_CC="$CC" # Let the user override the test.
2911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2915 test -z "$as_dir" && as_dir=.
2916 for ac_exec_ext in '' $ac_executable_extensions; do
2917 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2918 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2919 ac_prog_rejected=yes
2923 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2929 if test $ac_prog_rejected = yes; then
2930 # We found a bogon in the path, so make sure we never use it.
2931 set dummy $ac_cv_prog_CC
2933 if test $# != 0; then
2934 # We chose a different compiler from the bogus one.
2935 # However, it has the same basename, so the bogon will be chosen
2936 # first if we set CC to just the basename; use the full file name.
2938 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2944 if test -n "$CC"; then
2945 echo "$as_me:$LINENO: result: $CC" >&5
2946 echo "${ECHO_T}$CC" >&6
2948 echo "$as_me:$LINENO: result: no" >&5
2949 echo "${ECHO_T}no" >&6
2953 if test -z "$CC"; then
2954 if test -n "$ac_tool_prefix"; then
2957 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2958 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2959 echo "$as_me:$LINENO: checking for $ac_word" >&5
2960 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2961 if test "${ac_cv_prog_CC+set}" = set; then
2962 echo $ECHO_N "(cached) $ECHO_C" >&6
2964 if test -n "$CC"; then
2965 ac_cv_prog_CC="$CC" # Let the user override the test.
2967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2971 test -z "$as_dir" && as_dir=.
2972 for ac_exec_ext in '' $ac_executable_extensions; do
2973 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2974 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2975 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2984 if test -n "$CC"; then
2985 echo "$as_me:$LINENO: result: $CC" >&5
2986 echo "${ECHO_T}$CC" >&6
2988 echo "$as_me:$LINENO: result: no" >&5
2989 echo "${ECHO_T}no" >&6
2992 test -n "$CC" && break
2995 if test -z "$CC"; then
2999 # Extract the first word of "$ac_prog", so it can be a program name with args.
3000 set dummy $ac_prog; ac_word=$2
3001 echo "$as_me:$LINENO: checking for $ac_word" >&5
3002 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3003 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3004 echo $ECHO_N "(cached) $ECHO_C" >&6
3006 if test -n "$ac_ct_CC"; then
3007 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3013 test -z "$as_dir" && as_dir=.
3014 for ac_exec_ext in '' $ac_executable_extensions; do
3015 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3016 ac_cv_prog_ac_ct_CC="$ac_prog"
3017 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3025 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3026 if test -n "$ac_ct_CC"; then
3027 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3028 echo "${ECHO_T}$ac_ct_CC" >&6
3030 echo "$as_me:$LINENO: result: no" >&5
3031 echo "${ECHO_T}no" >&6
3034 test -n "$ac_ct_CC" && break
3043 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3044 See \`config.log' for more details." >&5
3045 echo "$as_me: error: no acceptable C compiler found in \$PATH
3046 See \`config.log' for more details." >&2;}
3047 { (exit 1); exit 1; }; }
3049 # Provide some information about the compiler.
3050 echo "$as_me:$LINENO:" \
3051 "checking for C compiler version" >&5
3052 ac_compiler=`set X $ac_compile; echo $2`
3053 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3054 (eval $ac_compiler --version </dev/null >&5) 2>&5
3056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3057 (exit $ac_status); }
3058 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3059 (eval $ac_compiler -v </dev/null >&5) 2>&5
3061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3062 (exit $ac_status); }
3063 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3064 (eval $ac_compiler -V </dev/null >&5) 2>&5
3066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3067 (exit $ac_status); }
3069 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3070 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3071 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3072 echo $ECHO_N "(cached) $ECHO_C" >&6
3074 cat >conftest.$ac_ext <<_ACEOF
3075 #line $LINENO "configure"
3078 cat confdefs.h >>conftest.$ac_ext
3079 cat >>conftest.$ac_ext <<_ACEOF
3080 /* end confdefs.h. */
3093 rm -f conftest.$ac_objext
3094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3095 (eval $ac_compile) 2>&5
3097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3098 (exit $ac_status); } &&
3099 { ac_try='test -s conftest.$ac_objext'
3100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3104 (exit $ac_status); }; }; then
3107 echo "$as_me: failed program was:" >&5
3108 sed 's/^/| /' conftest.$ac_ext >&5
3112 rm -f conftest.$ac_objext conftest.$ac_ext
3113 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3116 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3117 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3118 GCC=`test $ac_compiler_gnu = yes && echo yes`
3119 ac_test_CFLAGS=${CFLAGS+set}
3120 ac_save_CFLAGS=$CFLAGS
3122 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3123 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3124 if test "${ac_cv_prog_cc_g+set}" = set; then
3125 echo $ECHO_N "(cached) $ECHO_C" >&6
3127 cat >conftest.$ac_ext <<_ACEOF
3128 #line $LINENO "configure"
3131 cat confdefs.h >>conftest.$ac_ext
3132 cat >>conftest.$ac_ext <<_ACEOF
3133 /* end confdefs.h. */
3143 rm -f conftest.$ac_objext
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); } &&
3149 { ac_try='test -s conftest.$ac_objext'
3150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3154 (exit $ac_status); }; }; then
3157 echo "$as_me: failed program was:" >&5
3158 sed 's/^/| /' conftest.$ac_ext >&5
3162 rm -f conftest.$ac_objext conftest.$ac_ext
3164 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3165 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3166 if test "$ac_test_CFLAGS" = set; then
3167 CFLAGS=$ac_save_CFLAGS
3168 elif test $ac_cv_prog_cc_g = yes; then
3169 if test "$GCC" = yes; then
3175 if test "$GCC" = yes; then
3181 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3182 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3183 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3184 echo $ECHO_N "(cached) $ECHO_C" >&6
3186 ac_cv_prog_cc_stdc=no
3188 cat >conftest.$ac_ext <<_ACEOF
3189 #line $LINENO "configure"
3192 cat confdefs.h >>conftest.$ac_ext
3193 cat >>conftest.$ac_ext <<_ACEOF
3194 /* end confdefs.h. */
3197 #include <sys/types.h>
3198 #include <sys/stat.h>
3199 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3200 struct buf { int x; };
3201 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3202 static char *e (p, i)
3208 static char *f (char * (*g) (char **, int), char **p, ...)
3213 s = g (p, va_arg (v,int));
3217 int test (int i, double x);
3218 struct s1 {int (*f) (int a);};
3219 struct s2 {int (*f) (double a);};
3220 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3226 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3231 # Don't try gcc -ansi; that turns off useful extensions and
3232 # breaks some systems' header files.
3233 # AIX -qlanglvl=ansi
3234 # Ultrix and OSF/1 -std1
3235 # HP-UX 10.20 and later -Ae
3236 # HP-UX older versions -Aa -D_HPUX_SOURCE
3237 # SVR4 -Xc -D__EXTENSIONS__
3238 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3240 CC="$ac_save_CC $ac_arg"
3241 rm -f conftest.$ac_objext
3242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3243 (eval $ac_compile) 2>&5
3245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3246 (exit $ac_status); } &&
3247 { ac_try='test -s conftest.$ac_objext'
3248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3252 (exit $ac_status); }; }; then
3253 ac_cv_prog_cc_stdc=$ac_arg
3256 echo "$as_me: failed program was:" >&5
3257 sed 's/^/| /' conftest.$ac_ext >&5
3260 rm -f conftest.$ac_objext
3262 rm -f conftest.$ac_ext conftest.$ac_objext
3267 case "x$ac_cv_prog_cc_stdc" in
3269 echo "$as_me:$LINENO: result: none needed" >&5
3270 echo "${ECHO_T}none needed" >&6 ;;
3272 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3273 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3274 CC="$CC $ac_cv_prog_cc_stdc" ;;
3277 # Some people use a C++ compiler to compile C. Since we use `exit',
3278 # in C++ we need to declare it. In case someone uses the same compiler
3279 # for both compiling C and C++ we need to have the C++ compiler decide
3280 # the declaration of exit, since it's the most demanding environment.
3281 cat >conftest.$ac_ext <<_ACEOF
3286 rm -f conftest.$ac_objext
3287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3288 (eval $ac_compile) 2>&5
3290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3291 (exit $ac_status); } &&
3292 { ac_try='test -s conftest.$ac_objext'
3293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3297 (exit $ac_status); }; }; then
3298 for ac_declaration in \
3300 '#include <stdlib.h>' \
3301 'extern "C" void std::exit (int) throw (); using std::exit;' \
3302 'extern "C" void std::exit (int); using std::exit;' \
3303 'extern "C" void exit (int) throw ();' \
3304 'extern "C" void exit (int);' \
3307 cat >conftest.$ac_ext <<_ACEOF
3308 #line $LINENO "configure"
3311 cat confdefs.h >>conftest.$ac_ext
3312 cat >>conftest.$ac_ext <<_ACEOF
3313 /* end confdefs.h. */
3324 rm -f conftest.$ac_objext
3325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3326 (eval $ac_compile) 2>&5
3328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3329 (exit $ac_status); } &&
3330 { ac_try='test -s conftest.$ac_objext'
3331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3335 (exit $ac_status); }; }; then
3338 echo "$as_me: failed program was:" >&5
3339 sed 's/^/| /' conftest.$ac_ext >&5
3343 rm -f conftest.$ac_objext conftest.$ac_ext
3344 cat >conftest.$ac_ext <<_ACEOF
3345 #line $LINENO "configure"
3348 cat confdefs.h >>conftest.$ac_ext
3349 cat >>conftest.$ac_ext <<_ACEOF
3350 /* end confdefs.h. */
3360 rm -f conftest.$ac_objext
3361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3362 (eval $ac_compile) 2>&5
3364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3365 (exit $ac_status); } &&
3366 { ac_try='test -s conftest.$ac_objext'
3367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3371 (exit $ac_status); }; }; then
3374 echo "$as_me: failed program was:" >&5
3375 sed 's/^/| /' conftest.$ac_ext >&5
3378 rm -f conftest.$ac_objext conftest.$ac_ext
3381 if test -n "$ac_declaration"; then
3382 echo '#ifdef __cplusplus' >>confdefs.h
3383 echo $ac_declaration >>confdefs.h
3384 echo '#endif' >>confdefs.h
3388 echo "$as_me: failed program was:" >&5
3389 sed 's/^/| /' conftest.$ac_ext >&5
3392 rm -f conftest.$ac_objext conftest.$ac_ext
3394 ac_cpp='$CPP $CPPFLAGS'
3395 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3396 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3397 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3399 # Find the correct PATH separator. Usually this is `:', but
3400 # DJGPP uses `;' like DOS.
3401 if test "X${PATH_SEPARATOR+set}" != Xset; then
3402 UNAME=${UNAME-`uname 2>/dev/null`}
3404 *-DOS) lt_cv_sys_path_separator=';' ;;
3405 *) lt_cv_sys_path_separator=':' ;;
3407 PATH_SEPARATOR=$lt_cv_sys_path_separator
3411 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3412 if test "${with_gnu_ld+set}" = set; then
3413 withval="$with_gnu_ld"
3414 test "$withval" = no || with_gnu_ld=yes
3419 if test "$GCC" = yes; then
3420 # Check if gcc -print-prog-name=ld gives a path.
3421 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3422 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3425 # gcc leaves a trailing carriage return which upsets mingw
3426 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3428 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3431 # Accept absolute paths.
3432 [\\/]* | [A-Za-z]:[\\/]*)
3433 re_direlt='/[^/][^/]*/\.\./'
3434 # Canonicalize the path of ld
3435 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3436 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3437 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3439 test -z "$LD" && LD="$ac_prog"
3442 # If it fails, then pretend we aren't using GCC.
3446 # If it is relative, then search for the first ld in PATH.
3450 elif test "$with_gnu_ld" = yes; then
3451 echo "$as_me:$LINENO: checking for GNU ld" >&5
3452 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3454 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3455 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3457 if test "${lt_cv_path_LD+set}" = set; then
3458 echo $ECHO_N "(cached) $ECHO_C" >&6
3460 if test -z "$LD"; then
3461 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3462 for ac_dir in $PATH; do
3463 test -z "$ac_dir" && ac_dir=.
3464 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3465 lt_cv_path_LD="$ac_dir/$ac_prog"
3466 # Check to see if the program is GNU ld. I'd rather use --version,
3467 # but apparently some GNU ld's only accept -v.
3468 # Break only if it was the GNU/non-GNU ld that we prefer.
3469 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3470 test "$with_gnu_ld" != no && break
3472 test "$with_gnu_ld" != yes && break
3478 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3483 if test -n "$LD"; then
3484 echo "$as_me:$LINENO: result: $LD" >&5
3485 echo "${ECHO_T}$LD" >&6
3487 echo "$as_me:$LINENO: result: no" >&5
3488 echo "${ECHO_T}no" >&6
3490 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3491 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3492 { (exit 1); exit 1; }; }
3493 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3494 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3495 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3496 echo $ECHO_N "(cached) $ECHO_C" >&6
3498 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3499 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3500 lt_cv_prog_gnu_ld=yes
3502 lt_cv_prog_gnu_ld=no
3505 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3506 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3507 with_gnu_ld=$lt_cv_prog_gnu_ld
3510 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3511 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3512 if test "${lt_cv_ld_reload_flag+set}" = set; then
3513 echo $ECHO_N "(cached) $ECHO_C" >&6
3515 lt_cv_ld_reload_flag='-r'
3517 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3518 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3519 reload_flag=$lt_cv_ld_reload_flag
3520 test -n "$reload_flag" && reload_flag=" $reload_flag"
3522 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3523 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3524 if test "${lt_cv_path_NM+set}" = set; then
3525 echo $ECHO_N "(cached) $ECHO_C" >&6
3527 if test -n "$NM"; then
3528 # Let the user override the test.
3531 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3532 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3533 test -z "$ac_dir" && ac_dir=.
3534 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3535 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3536 # Check to see if the nm accepts a BSD-compat flag.
3537 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3538 # nm: unknown option "B" ignored
3539 # Tru64's nm complains that /dev/null is an invalid object file
3540 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3541 lt_cv_path_NM="$tmp_nm -B"
3543 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3544 lt_cv_path_NM="$tmp_nm -p"
3547 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3548 continue # so that we can try to find one that supports BSD flags
3553 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3558 echo "$as_me:$LINENO: result: $NM" >&5
3559 echo "${ECHO_T}$NM" >&6
3561 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3562 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3564 if test "$LN_S" = "ln -s"; then
3565 echo "$as_me:$LINENO: result: yes" >&5
3566 echo "${ECHO_T}yes" >&6
3568 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3569 echo "${ECHO_T}no, using $LN_S" >&6
3572 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3573 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3574 if test "${lt_cv_deplibs_check_method+set}" = set; then
3575 echo $ECHO_N "(cached) $ECHO_C" >&6
3577 lt_cv_file_magic_cmd='$MAGIC_CMD'
3578 lt_cv_file_magic_test_file=
3579 lt_cv_deplibs_check_method='unknown'
3580 # Need to set the preceding variable on all platforms that support
3581 # interlibrary dependencies.
3582 # 'none' -- dependencies not supported.
3583 # `unknown' -- same as none, but documents that we really don't know.
3584 # 'pass_all' -- all dependencies passed with no checks.
3585 # 'test_compile' -- check by making test program.
3586 # 'file_magic [[regex]]' -- check by looking for files in library path
3587 # which responds to the $file_magic_cmd with a given egrep regex.
3588 # If you have `file' or equivalent on your system and you're not sure
3589 # whether `pass_all' will *always* work, you probably want this one.
3593 lt_cv_deplibs_check_method=pass_all
3597 lt_cv_deplibs_check_method=pass_all
3601 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3602 lt_cv_file_magic_cmd='/usr/bin/file -L'
3603 lt_cv_file_magic_test_file=/shlib/libc.so
3606 cygwin* | mingw* | pw32*)
3607 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3608 lt_cv_file_magic_cmd='$OBJDUMP -f'
3611 darwin* | rhapsody*)
3612 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3613 lt_cv_file_magic_cmd='/usr/bin/file -L'
3615 rhapsody* | darwin1.[012])
3616 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3619 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3625 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3628 # Not sure whether the presence of OpenBSD here was a mistake.
3629 # Let's accept both of them until this is cleared up.
3630 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3631 lt_cv_file_magic_cmd=/usr/bin/file
3632 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3636 lt_cv_deplibs_check_method=pass_all
3641 lt_cv_deplibs_check_method=pass_all
3645 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3646 lt_cv_file_magic_cmd=/usr/bin/file
3647 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3650 irix5* | irix6* | nonstopux*)
3652 irix5* | nonstopux*)
3653 # this will be overridden with pass_all, but let us keep it just in case
3654 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3658 *-32|*"-32 ") libmagic=32-bit;;
3659 *-n32|*"-n32 ") libmagic=N32;;
3660 *-64|*"-64 ") libmagic=64-bit;;
3661 *) libmagic=never-match;;
3663 # this will be overridden with pass_all, but let us keep it just in case
3664 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3667 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3668 lt_cv_deplibs_check_method=pass_all
3671 # This must be Linux ELF.
3674 alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
3675 lt_cv_deplibs_check_method=pass_all ;;
3677 # glibc up to 2.1.1 does not perform some relocations on ARM
3678 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3680 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3684 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3685 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3687 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3692 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3693 lt_cv_file_magic_cmd=/usr/bin/file
3694 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3698 lt_cv_file_magic_cmd=/usr/bin/file
3699 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3700 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3701 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3703 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3707 osf3* | osf4* | osf5*)
3708 # this will be overridden with pass_all, but let us keep it just in case
3709 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3710 lt_cv_file_magic_test_file=/shlib/libc.so
3711 lt_cv_deplibs_check_method=pass_all
3715 lt_cv_deplibs_check_method=pass_all
3719 lt_cv_deplibs_check_method=pass_all
3720 lt_cv_file_magic_test_file=/lib/libc.so
3723 sysv5uw[78]* | sysv4*uw2*)
3724 lt_cv_deplibs_check_method=pass_all
3727 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3728 case $host_vendor in
3730 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]'
3731 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3734 lt_cv_deplibs_check_method=pass_all
3737 lt_cv_file_magic_cmd='/bin/file'
3738 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3741 lt_cv_file_magic_cmd='/bin/file'
3742 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3743 lt_cv_file_magic_test_file=/lib/libc.so
3750 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3751 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3752 file_magic_cmd=$lt_cv_file_magic_cmd
3753 deplibs_check_method=$lt_cv_deplibs_check_method
3762 # Check for command to grab the raw symbol name followed by C symbol from nm.
3763 echo "$as_me:$LINENO: checking command to parse $NM output" >&5
3764 echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
3765 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
3766 echo $ECHO_N "(cached) $ECHO_C" >&6
3769 # These are sane defaults that work on at least a few old systems.
3770 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
3772 # Character class describing NM global symbol codes.
3773 symcode='[BCDEGRST]'
3775 # Regexp to match symbols that can be accessed directly from C.
3776 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
3778 # Transform the above into a raw symbol and a C symbol.
3779 symxfrm='\1 \2\3 \3'
3781 # Transform an extracted symbol line into a proper C declaration
3782 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
3784 # Transform an extracted symbol line into symbol name and symbol address
3785 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'"
3787 # Define system-specific variables.
3792 cygwin* | mingw* | pw32*)
3793 symcode='[ABCDGISTW]'
3795 hpux*) # Its linker distinguishes data from code symbols
3796 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3797 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'"
3800 symcode='[BCDEGRST]'
3810 # Handle CRLF in mingw tool chain
3814 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3818 # If we're using GNU nm, then use its standard symbol codes.
3819 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
3820 symcode='[ABCDGISTW]'
3823 # Try without a prefix undercore, then with it.
3824 for ac_symprfx in "" "_"; do
3826 # Write the raw and C identifiers.
3827 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
3829 # Check to see that the pipe works correctly.
3832 cat > conftest.$ac_ext <<EOF
3837 void nm_test_func(){}
3841 int main(){nm_test_var='a';nm_test_func();return(0);}
3844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3845 (eval $ac_compile) 2>&5
3847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3848 (exit $ac_status); }; then
3849 # Now try to grab the symbols.
3851 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
3852 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
3854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3855 (exit $ac_status); } && test -s "$nlist"; then
3856 # Try sorting and uniquifying the output.
3857 if sort "$nlist" | uniq > "$nlist"T; then
3858 mv -f "$nlist"T "$nlist"
3863 # Make sure that we snagged all the symbols we need.
3864 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
3865 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
3866 cat <<EOF > conftest.$ac_ext
3872 # Now generate the symbol file.
3873 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
3875 cat <<EOF >> conftest.$ac_ext
3876 #if defined (__STDC__) && __STDC__
3877 # define lt_ptr void *
3879 # define lt_ptr char *
3883 /* The mapping between symbol names and symbols. */
3888 lt_preloaded_symbols[] =
3891 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
3892 cat <<\EOF >> conftest.$ac_ext
3900 # Now try linking the two files.
3901 mv conftest.$ac_objext conftstm.$ac_objext
3903 save_CFLAGS="$CFLAGS"
3904 LIBS="conftstm.$ac_objext"
3905 CFLAGS="$CFLAGS$no_builtin_flag"
3906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3907 (eval $ac_link) 2>&5
3909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3910 (exit $ac_status); } && test -s conftest; then
3914 CFLAGS="$save_CFLAGS"
3916 echo "cannot find nm_test_func in $nlist" >&5
3919 echo "cannot find nm_test_var in $nlist" >&5
3922 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
3925 echo "$progname: failed program was:" >&5
3926 cat conftest.$ac_ext >&5
3928 rm -f conftest* conftst*
3930 # Do not use the global_symbol_pipe unless it works.
3931 if test "$pipe_works" = yes; then
3934 lt_cv_sys_global_symbol_pipe=
3940 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
3941 if test -z "$lt_cv_sys_global_symbol_pipe"; then
3942 global_symbol_to_cdecl=
3943 global_symbol_to_c_name_address=
3945 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
3946 global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
3948 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
3950 echo "$as_me:$LINENO: result: failed" >&5
3951 echo "${ECHO_T}failed" >&6
3953 echo "$as_me:$LINENO: result: ok" >&5
3954 echo "${ECHO_T}ok" >&6
3958 ac_cpp='$CPP $CPPFLAGS'
3959 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3960 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3961 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3962 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3963 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3964 # On Suns, sometimes $CPP names a directory.
3965 if test -n "$CPP" && test -d "$CPP"; then
3968 if test -z "$CPP"; then
3969 if test "${ac_cv_prog_CPP+set}" = set; then
3970 echo $ECHO_N "(cached) $ECHO_C" >&6
3972 # Double quotes because CPP needs to be expanded
3973 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3976 for ac_c_preproc_warn_flag in '' yes
3978 # Use a header file that comes with gcc, so configuring glibc
3979 # with a fresh cross-compiler works.
3980 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3981 # <limits.h> exists even on freestanding compilers.
3982 # On the NeXT, cc -E runs the code through the compiler's parser,
3983 # not just through cpp. "Syntax error" is here to catch this case.
3984 cat >conftest.$ac_ext <<_ACEOF
3985 #line $LINENO "configure"
3988 cat confdefs.h >>conftest.$ac_ext
3989 cat >>conftest.$ac_ext <<_ACEOF
3990 /* end confdefs.h. */
3992 # include <limits.h>
3994 # include <assert.h>
3998 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3999 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4001 grep -v '^ *+' conftest.er1 >conftest.err
4003 cat conftest.err >&5
4004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4005 (exit $ac_status); } >/dev/null; then
4006 if test -s conftest.err; then
4007 ac_cpp_err=$ac_c_preproc_warn_flag
4014 if test -z "$ac_cpp_err"; then
4017 echo "$as_me: failed program was:" >&5
4018 sed 's/^/| /' conftest.$ac_ext >&5
4020 # Broken: fails on valid input.
4023 rm -f conftest.err conftest.$ac_ext
4025 # OK, works on sane cases. Now check whether non-existent headers
4026 # can be detected and how.
4027 cat >conftest.$ac_ext <<_ACEOF
4028 #line $LINENO "configure"
4031 cat confdefs.h >>conftest.$ac_ext
4032 cat >>conftest.$ac_ext <<_ACEOF
4033 /* end confdefs.h. */
4034 #include <ac_nonexistent.h>
4036 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4037 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4039 grep -v '^ *+' conftest.er1 >conftest.err
4041 cat conftest.err >&5
4042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4043 (exit $ac_status); } >/dev/null; then
4044 if test -s conftest.err; then
4045 ac_cpp_err=$ac_c_preproc_warn_flag
4052 if test -z "$ac_cpp_err"; then
4053 # Broken: success on invalid input.
4056 echo "$as_me: failed program was:" >&5
4057 sed 's/^/| /' conftest.$ac_ext >&5
4059 # Passes both tests.
4063 rm -f conftest.err conftest.$ac_ext
4066 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4067 rm -f conftest.err conftest.$ac_ext
4068 if $ac_preproc_ok; then
4080 echo "$as_me:$LINENO: result: $CPP" >&5
4081 echo "${ECHO_T}$CPP" >&6
4083 for ac_c_preproc_warn_flag in '' yes
4085 # Use a header file that comes with gcc, so configuring glibc
4086 # with a fresh cross-compiler works.
4087 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4088 # <limits.h> exists even on freestanding compilers.
4089 # On the NeXT, cc -E runs the code through the compiler's parser,
4090 # not just through cpp. "Syntax error" is here to catch this case.
4091 cat >conftest.$ac_ext <<_ACEOF
4092 #line $LINENO "configure"
4095 cat confdefs.h >>conftest.$ac_ext
4096 cat >>conftest.$ac_ext <<_ACEOF
4097 /* end confdefs.h. */
4099 # include <limits.h>
4101 # include <assert.h>
4105 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4106 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4108 grep -v '^ *+' conftest.er1 >conftest.err
4110 cat conftest.err >&5
4111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4112 (exit $ac_status); } >/dev/null; then
4113 if test -s conftest.err; then
4114 ac_cpp_err=$ac_c_preproc_warn_flag
4121 if test -z "$ac_cpp_err"; then
4124 echo "$as_me: failed program was:" >&5
4125 sed 's/^/| /' conftest.$ac_ext >&5
4127 # Broken: fails on valid input.
4130 rm -f conftest.err conftest.$ac_ext
4132 # OK, works on sane cases. Now check whether non-existent headers
4133 # can be detected and how.
4134 cat >conftest.$ac_ext <<_ACEOF
4135 #line $LINENO "configure"
4138 cat confdefs.h >>conftest.$ac_ext
4139 cat >>conftest.$ac_ext <<_ACEOF
4140 /* end confdefs.h. */
4141 #include <ac_nonexistent.h>
4143 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4144 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4146 grep -v '^ *+' conftest.er1 >conftest.err
4148 cat conftest.err >&5
4149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4150 (exit $ac_status); } >/dev/null; then
4151 if test -s conftest.err; then
4152 ac_cpp_err=$ac_c_preproc_warn_flag
4159 if test -z "$ac_cpp_err"; then
4160 # Broken: success on invalid input.
4163 echo "$as_me: failed program was:" >&5
4164 sed 's/^/| /' conftest.$ac_ext >&5
4166 # Passes both tests.
4170 rm -f conftest.err conftest.$ac_ext
4173 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4174 rm -f conftest.err conftest.$ac_ext
4175 if $ac_preproc_ok; then
4178 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4179 See \`config.log' for more details." >&5
4180 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4181 See \`config.log' for more details." >&2;}
4182 { (exit 1); exit 1; }; }
4186 ac_cpp='$CPP $CPPFLAGS'
4187 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4188 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4189 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4192 echo "$as_me:$LINENO: checking for egrep" >&5
4193 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4194 if test "${ac_cv_prog_egrep+set}" = set; then
4195 echo $ECHO_N "(cached) $ECHO_C" >&6
4197 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4198 then ac_cv_prog_egrep='grep -E'
4199 else ac_cv_prog_egrep='egrep'
4202 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4203 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4204 EGREP=$ac_cv_prog_egrep
4207 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4208 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4209 if test "${ac_cv_header_stdc+set}" = set; then
4210 echo $ECHO_N "(cached) $ECHO_C" >&6
4212 cat >conftest.$ac_ext <<_ACEOF
4213 #line $LINENO "configure"
4216 cat confdefs.h >>conftest.$ac_ext
4217 cat >>conftest.$ac_ext <<_ACEOF
4218 /* end confdefs.h. */
4232 rm -f conftest.$ac_objext
4233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4234 (eval $ac_compile) 2>&5
4236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4237 (exit $ac_status); } &&
4238 { ac_try='test -s conftest.$ac_objext'
4239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4243 (exit $ac_status); }; }; then
4244 ac_cv_header_stdc=yes
4246 echo "$as_me: failed program was:" >&5
4247 sed 's/^/| /' conftest.$ac_ext >&5
4249 ac_cv_header_stdc=no
4251 rm -f conftest.$ac_objext conftest.$ac_ext
4253 if test $ac_cv_header_stdc = yes; then
4254 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4255 cat >conftest.$ac_ext <<_ACEOF
4256 #line $LINENO "configure"
4259 cat confdefs.h >>conftest.$ac_ext
4260 cat >>conftest.$ac_ext <<_ACEOF
4261 /* end confdefs.h. */
4265 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4266 $EGREP "memchr" >/dev/null 2>&1; then
4269 ac_cv_header_stdc=no
4275 if test $ac_cv_header_stdc = yes; then
4276 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4277 cat >conftest.$ac_ext <<_ACEOF
4278 #line $LINENO "configure"
4281 cat confdefs.h >>conftest.$ac_ext
4282 cat >>conftest.$ac_ext <<_ACEOF
4283 /* end confdefs.h. */
4287 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4288 $EGREP "free" >/dev/null 2>&1; then
4291 ac_cv_header_stdc=no
4297 if test $ac_cv_header_stdc = yes; then
4298 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4299 if test "$cross_compiling" = yes; then
4302 cat >conftest.$ac_ext <<_ACEOF
4303 #line $LINENO "configure"
4306 cat confdefs.h >>conftest.$ac_ext
4307 cat >>conftest.$ac_ext <<_ACEOF
4308 /* end confdefs.h. */
4310 #if ((' ' & 0x0FF) == 0x020)
4311 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4312 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4314 # define ISLOWER(c) \
4315 (('a' <= (c) && (c) <= 'i') \
4316 || ('j' <= (c) && (c) <= 'r') \
4317 || ('s' <= (c) && (c) <= 'z'))
4318 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4321 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4326 for (i = 0; i < 256; i++)
4327 if (XOR (islower (i), ISLOWER (i))
4328 || toupper (i) != TOUPPER (i))
4333 rm -f conftest$ac_exeext
4334 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4335 (eval $ac_link) 2>&5
4337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4338 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4343 (exit $ac_status); }; }; then
4346 echo "$as_me: program exited with status $ac_status" >&5
4347 echo "$as_me: failed program was:" >&5
4348 sed 's/^/| /' conftest.$ac_ext >&5
4351 ac_cv_header_stdc=no
4353 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4357 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4358 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4359 if test $ac_cv_header_stdc = yes; then
4361 cat >>confdefs.h <<\_ACEOF
4362 #define STDC_HEADERS 1
4367 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4377 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4378 inttypes.h stdint.h unistd.h
4380 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4381 echo "$as_me:$LINENO: checking for $ac_header" >&5
4382 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4383 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4384 echo $ECHO_N "(cached) $ECHO_C" >&6
4386 cat >conftest.$ac_ext <<_ACEOF
4387 #line $LINENO "configure"
4390 cat confdefs.h >>conftest.$ac_ext
4391 cat >>conftest.$ac_ext <<_ACEOF
4392 /* end confdefs.h. */
4393 $ac_includes_default
4395 #include <$ac_header>
4397 rm -f conftest.$ac_objext
4398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4399 (eval $ac_compile) 2>&5
4401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4402 (exit $ac_status); } &&
4403 { ac_try='test -s conftest.$ac_objext'
4404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4408 (exit $ac_status); }; }; then
4409 eval "$as_ac_Header=yes"
4411 echo "$as_me: failed program was:" >&5
4412 sed 's/^/| /' conftest.$ac_ext >&5
4414 eval "$as_ac_Header=no"
4416 rm -f conftest.$ac_objext conftest.$ac_ext
4418 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4419 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4420 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4421 cat >>confdefs.h <<_ACEOF
4422 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4431 for ac_header in dlfcn.h
4433 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4434 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4435 echo "$as_me:$LINENO: checking for $ac_header" >&5
4436 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4437 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4438 echo $ECHO_N "(cached) $ECHO_C" >&6
4440 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4441 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4443 # Is the header compilable?
4444 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4445 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4446 cat >conftest.$ac_ext <<_ACEOF
4447 #line $LINENO "configure"
4450 cat confdefs.h >>conftest.$ac_ext
4451 cat >>conftest.$ac_ext <<_ACEOF
4452 /* end confdefs.h. */
4453 $ac_includes_default
4454 #include <$ac_header>
4456 rm -f conftest.$ac_objext
4457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4458 (eval $ac_compile) 2>&5
4460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4461 (exit $ac_status); } &&
4462 { ac_try='test -s conftest.$ac_objext'
4463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4467 (exit $ac_status); }; }; then
4468 ac_header_compiler=yes
4470 echo "$as_me: failed program was:" >&5
4471 sed 's/^/| /' conftest.$ac_ext >&5
4473 ac_header_compiler=no
4475 rm -f conftest.$ac_objext conftest.$ac_ext
4476 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4477 echo "${ECHO_T}$ac_header_compiler" >&6
4479 # Is the header present?
4480 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4481 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4482 cat >conftest.$ac_ext <<_ACEOF
4483 #line $LINENO "configure"
4486 cat confdefs.h >>conftest.$ac_ext
4487 cat >>conftest.$ac_ext <<_ACEOF
4488 /* end confdefs.h. */
4489 #include <$ac_header>
4491 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4492 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4494 grep -v '^ *+' conftest.er1 >conftest.err
4496 cat conftest.err >&5
4497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4498 (exit $ac_status); } >/dev/null; then
4499 if test -s conftest.err; then
4500 ac_cpp_err=$ac_c_preproc_warn_flag
4507 if test -z "$ac_cpp_err"; then
4508 ac_header_preproc=yes
4510 echo "$as_me: failed program was:" >&5
4511 sed 's/^/| /' conftest.$ac_ext >&5
4513 ac_header_preproc=no
4515 rm -f conftest.err conftest.$ac_ext
4516 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4517 echo "${ECHO_T}$ac_header_preproc" >&6
4519 # So? What about this header?
4520 case $ac_header_compiler:$ac_header_preproc in
4522 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4523 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4524 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4525 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4528 ## ------------------------------------ ##
4529 ## Report this to bug-autoconf@gnu.org. ##
4530 ## ------------------------------------ ##
4533 sed "s/^/$as_me: WARNING: /" >&2
4536 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4537 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4538 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4539 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4540 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4541 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4544 ## ------------------------------------ ##
4545 ## Report this to bug-autoconf@gnu.org. ##
4546 ## ------------------------------------ ##
4549 sed "s/^/$as_me: WARNING: /" >&2
4552 echo "$as_me:$LINENO: checking for $ac_header" >&5
4553 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4554 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4555 echo $ECHO_N "(cached) $ECHO_C" >&6
4557 eval "$as_ac_Header=$ac_header_preproc"
4559 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4560 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4563 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4564 cat >>confdefs.h <<_ACEOF
4565 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4576 # Only perform the check for file, if the check method requires it
4577 case $deplibs_check_method in
4579 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4580 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4581 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4582 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4583 echo $ECHO_N "(cached) $ECHO_C" >&6
4587 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4590 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4593 ac_save_MAGIC_CMD="$MAGIC_CMD"
4594 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4595 ac_dummy="/usr/bin:$PATH"
4596 for ac_dir in $ac_dummy; do
4597 test -z "$ac_dir" && ac_dir=.
4598 if test -f $ac_dir/${ac_tool_prefix}file; then
4599 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4600 if test -n "$file_magic_test_file"; then
4601 case $deplibs_check_method in
4603 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4604 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4605 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4606 egrep "$file_magic_regex" > /dev/null; then
4611 *** Warning: the command libtool uses to detect shared libraries,
4612 *** $file_magic_cmd, produces output that libtool cannot recognize.
4613 *** The result is that libtool may fail to recognize shared libraries
4614 *** as such. This will affect the creation of libtool libraries that
4615 *** depend on shared libraries, but programs linked with such libtool
4616 *** libraries will work regardless of this problem. Nevertheless, you
4617 *** may want to report the problem to your system manager and/or to
4618 *** bug-libtool@gnu.org
4628 MAGIC_CMD="$ac_save_MAGIC_CMD"
4633 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4634 if test -n "$MAGIC_CMD"; then
4635 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4636 echo "${ECHO_T}$MAGIC_CMD" >&6
4638 echo "$as_me:$LINENO: result: no" >&5
4639 echo "${ECHO_T}no" >&6
4642 if test -z "$lt_cv_path_MAGIC_CMD"; then
4643 if test -n "$ac_tool_prefix"; then
4644 echo "$as_me:$LINENO: checking for file" >&5
4645 echo $ECHO_N "checking for file... $ECHO_C" >&6
4646 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4647 echo $ECHO_N "(cached) $ECHO_C" >&6
4651 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4654 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4657 ac_save_MAGIC_CMD="$MAGIC_CMD"
4658 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4659 ac_dummy="/usr/bin:$PATH"
4660 for ac_dir in $ac_dummy; do
4661 test -z "$ac_dir" && ac_dir=.
4662 if test -f $ac_dir/file; then
4663 lt_cv_path_MAGIC_CMD="$ac_dir/file"
4664 if test -n "$file_magic_test_file"; then
4665 case $deplibs_check_method in
4667 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4668 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4669 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4670 egrep "$file_magic_regex" > /dev/null; then
4675 *** Warning: the command libtool uses to detect shared libraries,
4676 *** $file_magic_cmd, produces output that libtool cannot recognize.
4677 *** The result is that libtool may fail to recognize shared libraries
4678 *** as such. This will affect the creation of libtool libraries that
4679 *** depend on shared libraries, but programs linked with such libtool
4680 *** libraries will work regardless of this problem. Nevertheless, you
4681 *** may want to report the problem to your system manager and/or to
4682 *** bug-libtool@gnu.org
4692 MAGIC_CMD="$ac_save_MAGIC_CMD"
4697 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4698 if test -n "$MAGIC_CMD"; then
4699 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4700 echo "${ECHO_T}$MAGIC_CMD" >&6
4702 echo "$as_me:$LINENO: result: no" >&5
4703 echo "${ECHO_T}no" >&6
4715 if test -n "$ac_tool_prefix"; then
4716 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4717 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4718 echo "$as_me:$LINENO: checking for $ac_word" >&5
4719 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4720 if test "${ac_cv_prog_RANLIB+set}" = set; then
4721 echo $ECHO_N "(cached) $ECHO_C" >&6
4723 if test -n "$RANLIB"; then
4724 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4730 test -z "$as_dir" && as_dir=.
4731 for ac_exec_ext in '' $ac_executable_extensions; do
4732 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4733 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4734 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4742 RANLIB=$ac_cv_prog_RANLIB
4743 if test -n "$RANLIB"; then
4744 echo "$as_me:$LINENO: result: $RANLIB" >&5
4745 echo "${ECHO_T}$RANLIB" >&6
4747 echo "$as_me:$LINENO: result: no" >&5
4748 echo "${ECHO_T}no" >&6
4752 if test -z "$ac_cv_prog_RANLIB"; then
4753 ac_ct_RANLIB=$RANLIB
4754 # Extract the first word of "ranlib", so it can be a program name with args.
4755 set dummy ranlib; ac_word=$2
4756 echo "$as_me:$LINENO: checking for $ac_word" >&5
4757 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4758 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4759 echo $ECHO_N "(cached) $ECHO_C" >&6
4761 if test -n "$ac_ct_RANLIB"; then
4762 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4768 test -z "$as_dir" && as_dir=.
4769 for ac_exec_ext in '' $ac_executable_extensions; do
4770 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4771 ac_cv_prog_ac_ct_RANLIB="ranlib"
4772 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4778 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4781 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4782 if test -n "$ac_ct_RANLIB"; then
4783 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4784 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4786 echo "$as_me:$LINENO: result: no" >&5
4787 echo "${ECHO_T}no" >&6
4790 RANLIB=$ac_ct_RANLIB
4792 RANLIB="$ac_cv_prog_RANLIB"
4795 if test -n "$ac_tool_prefix"; then
4796 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4797 set dummy ${ac_tool_prefix}strip; ac_word=$2
4798 echo "$as_me:$LINENO: checking for $ac_word" >&5
4799 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4800 if test "${ac_cv_prog_STRIP+set}" = set; then
4801 echo $ECHO_N "(cached) $ECHO_C" >&6
4803 if test -n "$STRIP"; then
4804 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4810 test -z "$as_dir" && as_dir=.
4811 for ac_exec_ext in '' $ac_executable_extensions; do
4812 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4813 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4814 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4822 STRIP=$ac_cv_prog_STRIP
4823 if test -n "$STRIP"; then
4824 echo "$as_me:$LINENO: result: $STRIP" >&5
4825 echo "${ECHO_T}$STRIP" >&6
4827 echo "$as_me:$LINENO: result: no" >&5
4828 echo "${ECHO_T}no" >&6
4832 if test -z "$ac_cv_prog_STRIP"; then
4834 # Extract the first word of "strip", so it can be a program name with args.
4835 set dummy strip; ac_word=$2
4836 echo "$as_me:$LINENO: checking for $ac_word" >&5
4837 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4838 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4839 echo $ECHO_N "(cached) $ECHO_C" >&6
4841 if test -n "$ac_ct_STRIP"; then
4842 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4848 test -z "$as_dir" && as_dir=.
4849 for ac_exec_ext in '' $ac_executable_extensions; do
4850 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4851 ac_cv_prog_ac_ct_STRIP="strip"
4852 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4858 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4861 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4862 if test -n "$ac_ct_STRIP"; then
4863 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4864 echo "${ECHO_T}$ac_ct_STRIP" >&6
4866 echo "$as_me:$LINENO: result: no" >&5
4867 echo "${ECHO_T}no" >&6
4872 STRIP="$ac_cv_prog_STRIP"
4879 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4880 if test "${enable_libtool_lock+set}" = set; then
4881 enableval="$enable_libtool_lock"
4884 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4886 # Some flags need to be propagated to the compiler or linker for good
4890 # Find out which ABI we are using.
4891 echo '#line 4891 "configure"' > conftest.$ac_ext
4892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4893 (eval $ac_compile) 2>&5
4895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4896 (exit $ac_status); }; then
4897 case `/usr/bin/file conftest.$ac_objext` in
4913 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4914 SAVE_CFLAGS="$CFLAGS"
4915 CFLAGS="$CFLAGS -belf"
4916 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4917 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4918 if test "${lt_cv_cc_needs_belf+set}" = set; then
4919 echo $ECHO_N "(cached) $ECHO_C" >&6
4924 ac_cpp='$CPP $CPPFLAGS'
4925 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4926 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4927 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4929 cat >conftest.$ac_ext <<_ACEOF
4930 #line $LINENO "configure"
4933 cat confdefs.h >>conftest.$ac_ext
4934 cat >>conftest.$ac_ext <<_ACEOF
4935 /* end confdefs.h. */
4945 rm -f conftest.$ac_objext conftest$ac_exeext
4946 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4947 (eval $ac_link) 2>&5
4949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4950 (exit $ac_status); } &&
4951 { ac_try='test -s conftest$ac_exeext'
4952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4956 (exit $ac_status); }; }; then
4957 lt_cv_cc_needs_belf=yes
4959 echo "$as_me: failed program was:" >&5
4960 sed 's/^/| /' conftest.$ac_ext >&5
4962 lt_cv_cc_needs_belf=no
4964 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4966 ac_cpp='$CPP $CPPFLAGS'
4967 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4968 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4969 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4972 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4973 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4974 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4975 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4976 CFLAGS="$SAVE_CFLAGS"
4983 # Sed substitution that helps us do robust quoting. It backslashifies
4984 # metacharacters that are still active within double-quoted strings.
4985 Xsed='sed -e s/^X//'
4986 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
4988 # Same as above, but do not quote variable references.
4989 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
4991 # Sed substitution to delay expansion of an escaped shell variable in a
4992 # double_quote_subst'ed string.
4993 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4999 default_ofile=libtool
5000 can_build_shared=yes
5002 # All known linkers require a `.a' archive for static linking (except M$VC,
5003 # which needs '.lib').
5005 ltmain="$ac_aux_dir/ltmain.sh"
5006 ofile="$default_ofile"
5007 with_gnu_ld="$lt_cv_prog_gnu_ld"
5008 need_locks="$enable_libtool_lock"
5011 old_CFLAGS="$CFLAGS"
5013 # Set sane defaults for various variables
5014 test -z "$AR" && AR=ar
5015 test -z "$AR_FLAGS" && AR_FLAGS=cru
5016 test -z "$AS" && AS=as
5017 test -z "$CC" && CC=cc
5018 test -z "$DLLTOOL" && DLLTOOL=dlltool
5019 test -z "$LD" && LD=ld
5020 test -z "$LN_S" && LN_S="ln -s"
5021 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5022 test -z "$NM" && NM=nm
5023 test -z "$OBJDUMP" && OBJDUMP=objdump
5024 test -z "$RANLIB" && RANLIB=:
5025 test -z "$STRIP" && STRIP=:
5026 test -z "$ac_objext" && ac_objext=o
5028 if test x"$host" != x"$build"; then
5029 ac_tool_prefix=${host_alias}-
5034 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
5037 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
5042 # AIX sometimes has problems with the GCC collect2 program. For some
5043 # reason, if we set the COLLECT_NAMES environment variable, the problems
5044 # vanish in a puff of smoke.
5045 if test "X${COLLECT_NAMES+set}" != Xset; then
5047 export COLLECT_NAMES
5052 # Determine commands to create old-style static archives.
5053 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5054 old_postinstall_cmds='chmod 644 $oldlib'
5055 old_postuninstall_cmds=
5057 if test -n "$RANLIB"; then
5060 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5063 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5066 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5069 # Allow CC to be a program name with arguments.
5073 ## FIXME: this should be a separate macro
5075 echo "$as_me:$LINENO: checking for objdir" >&5
5076 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5077 rm -f .libs 2>/dev/null
5078 mkdir .libs 2>/dev/null
5079 if test -d .libs; then
5082 # MS-DOS does not allow filenames that begin with a dot.
5085 rmdir .libs 2>/dev/null
5086 echo "$as_me:$LINENO: result: $objdir" >&5
5087 echo "${ECHO_T}$objdir" >&6
5092 ## FIXME: this should be a separate macro
5095 # Check whether --with-pic or --without-pic was given.
5096 if test "${with_pic+set}" = set; then
5102 test -z "$pic_mode" && pic_mode=default
5104 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
5105 # in isolation, and that seeing it set (from the cache) indicates that
5106 # the associated values are set (in the cache) correctly too.
5107 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5108 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5109 if test "${lt_cv_prog_cc_pic+set}" = set; then
5110 echo $ECHO_N "(cached) $ECHO_C" >&6
5113 lt_cv_prog_cc_shlib=
5115 lt_cv_prog_cc_static=
5116 lt_cv_prog_cc_no_builtin=
5117 lt_cv_prog_cc_can_build_shared=$can_build_shared
5119 if test "$GCC" = yes; then
5120 lt_cv_prog_cc_wl='-Wl,'
5121 lt_cv_prog_cc_static='-static'
5125 # Below there is a dirty hack to force normal static linking with -ldl
5126 # The problem is because libdl dynamically linked with both libc and
5127 # libC (AIX C++ library), which obviously doesn't included in libraries
5128 # list by gcc. This cause undefined symbols with -static flags.
5129 # This hack allows C programs to be linked with "-static -ldl", but
5130 # not sure about C++ programs.
5131 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
5134 # FIXME: we need at least 68020 code to build shared libraries, but
5135 # adding the `-m68020' flag to GCC prevents building anything better,
5137 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
5139 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5140 # PIC is the default for these OSes.
5142 darwin* | rhapsody*)
5143 # PIC is the default on this platform
5144 # Common symbols not allowed in MH_DYLIB files
5145 lt_cv_prog_cc_pic='-fno-common'
5147 cygwin* | mingw* | pw32* | os2*)
5148 # This hack is so that the source file can tell whether it is being
5149 # built for inclusion in a dll (and should export symbols for example).
5150 lt_cv_prog_cc_pic='-DDLL_EXPORT'
5153 if test -d /usr/nec; then
5154 lt_cv_prog_cc_pic=-Kconform_pic
5158 lt_cv_prog_cc_pic='-fPIC'
5162 # PORTME Check for PIC flags for the system compiler.
5164 aix3* | aix4* | aix5*)
5165 lt_cv_prog_cc_wl='-Wl,'
5166 # All AIX code is PIC.
5167 if test "$host_cpu" = ia64; then
5168 # AIX 5 now supports IA64 processor
5169 lt_cv_prog_cc_static='-Bstatic'
5171 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
5175 hpux9* | hpux10* | hpux11*)
5176 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
5177 lt_cv_prog_cc_wl='-Wl,'
5178 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
5179 lt_cv_prog_cc_pic='+Z'
5182 irix5* | irix6* | nonstopux*)
5183 lt_cv_prog_cc_wl='-Wl,'
5184 lt_cv_prog_cc_static='-non_shared'
5185 # PIC (with -KPIC) is the default.
5188 cygwin* | mingw* | pw32* | os2*)
5189 # This hack is so that the source file can tell whether it is being
5190 # built for inclusion in a dll (and should export symbols for example).
5191 lt_cv_prog_cc_pic='-DDLL_EXPORT'
5195 lt_cv_prog_cc_pic='-KPIC'
5196 lt_cv_prog_cc_static='-Bstatic'
5199 osf3* | osf4* | osf5*)
5200 # All OSF/1 code is PIC.
5201 lt_cv_prog_cc_wl='-Wl,'
5202 lt_cv_prog_cc_static='-non_shared'
5206 lt_cv_prog_cc_pic='-Kpic'
5207 lt_cv_prog_cc_static='-dn'
5208 lt_cv_prog_cc_shlib='-belf'
5212 lt_cv_prog_cc_pic='-KPIC'
5213 lt_cv_prog_cc_static='-Bstatic'
5214 lt_cv_prog_cc_wl='-Wl,'
5218 lt_cv_prog_cc_pic='-PIC'
5219 lt_cv_prog_cc_static='-Bstatic'
5220 lt_cv_prog_cc_wl='-Qoption ld '
5223 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5224 lt_cv_prog_cc_pic='-KPIC'
5225 lt_cv_prog_cc_static='-Bstatic'
5226 if test "x$host_vendor" = xsni; then
5227 lt_cv_prog_cc_wl='-LD'
5229 lt_cv_prog_cc_wl='-Wl,'
5234 lt_cv_prog_cc_pic='-pic'
5235 lt_cv_prog_cc_static='-Bstatic'
5239 if test -d /usr/nec ;then
5240 lt_cv_prog_cc_pic='-Kconform_pic'
5241 lt_cv_prog_cc_static='-Bstatic'
5246 lt_cv_prog_cc_can_build_shared=no
5253 if test -z "$lt_cv_prog_cc_pic"; then
5254 echo "$as_me:$LINENO: result: none" >&5
5255 echo "${ECHO_T}none" >&6
5257 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
5258 echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
5260 # Check to make sure the pic_flag actually works.
5261 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
5262 echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
5263 if test "${lt_cv_prog_cc_pic_works+set}" = set; then
5264 echo $ECHO_N "(cached) $ECHO_C" >&6
5266 save_CFLAGS="$CFLAGS"
5267 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
5268 cat >conftest.$ac_ext <<_ACEOF
5269 #line $LINENO "configure"
5272 cat confdefs.h >>conftest.$ac_ext
5273 cat >>conftest.$ac_ext <<_ACEOF
5274 /* end confdefs.h. */
5284 rm -f conftest.$ac_objext
5285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5286 (eval $ac_compile) 2>&5
5288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5289 (exit $ac_status); } &&
5290 { ac_try='test -s conftest.$ac_objext'
5291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5295 (exit $ac_status); }; }; then
5297 hpux9* | hpux10* | hpux11*)
5298 # On HP-UX, both CC and GCC only warn that PIC is supported... then
5299 # they create non-PIC objects. So, if there were any warnings, we
5300 # assume that PIC is not supported.
5301 if test -s conftest.err; then
5302 lt_cv_prog_cc_pic_works=no
5304 lt_cv_prog_cc_pic_works=yes
5308 lt_cv_prog_cc_pic_works=yes
5313 echo "$as_me: failed program was:" >&5
5314 sed 's/^/| /' conftest.$ac_ext >&5
5316 lt_cv_prog_cc_pic_works=no
5319 rm -f conftest.$ac_objext conftest.$ac_ext
5320 CFLAGS="$save_CFLAGS"
5325 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
5327 lt_cv_prog_cc_can_build_shared=no
5329 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
5332 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
5333 echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
5338 # Check for any special shared library compilation flags.
5339 if test -n "$lt_cv_prog_cc_shlib"; then
5340 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
5341 echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
5342 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
5344 { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5345 echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5346 lt_cv_prog_cc_can_build_shared=no
5350 ## FIXME: this should be a separate macro
5352 echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
5353 echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
5354 if test "${lt_cv_prog_cc_static_works+set}" = set; then
5355 echo $ECHO_N "(cached) $ECHO_C" >&6
5357 lt_cv_prog_cc_static_works=no
5358 save_LDFLAGS="$LDFLAGS"
5359 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
5360 cat >conftest.$ac_ext <<_ACEOF
5361 #line $LINENO "configure"
5364 cat confdefs.h >>conftest.$ac_ext
5365 cat >>conftest.$ac_ext <<_ACEOF
5366 /* end confdefs.h. */
5376 rm -f conftest.$ac_objext conftest$ac_exeext
5377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5378 (eval $ac_link) 2>&5
5380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5381 (exit $ac_status); } &&
5382 { ac_try='test -s conftest$ac_exeext'
5383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5387 (exit $ac_status); }; }; then
5388 lt_cv_prog_cc_static_works=yes
5390 echo "$as_me: failed program was:" >&5
5391 sed 's/^/| /' conftest.$ac_ext >&5
5394 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5395 LDFLAGS="$save_LDFLAGS"
5400 # Belt *and* braces to stop my trousers falling down:
5401 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
5402 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
5403 echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
5405 pic_flag="$lt_cv_prog_cc_pic"
5406 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
5407 wl="$lt_cv_prog_cc_wl"
5408 link_static_flag="$lt_cv_prog_cc_static"
5409 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
5410 can_build_shared="$lt_cv_prog_cc_can_build_shared"
5415 ## FIXME: this should be a separate macro
5417 # Check to see if options -o and -c are simultaneously supported by compiler
5418 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
5419 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
5420 if test "${lt_cv_compiler_c_o+set}" = set; then
5421 echo $ECHO_N "(cached) $ECHO_C" >&6
5424 $rm -r conftest 2>/dev/null
5427 echo "int some_variable = 0;" > conftest.$ac_ext
5429 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5430 # that will create temporary files in the current directory regardless of
5431 # the output directory. Thus, making CWD read-only will cause this test
5432 # to fail, enabling locking or at least warning the user not to do parallel
5435 save_CFLAGS="$CFLAGS"
5436 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
5438 if { (eval echo configure:5438: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
5439 # The compiler can only warn and ignore the option if not recognized
5440 # So say no if there are warnings
5441 if test -s out/conftest.err; then
5442 lt_cv_compiler_c_o=no
5444 lt_cv_compiler_c_o=yes
5447 # Append any errors to the config.log.
5448 cat out/conftest.err 1>&5
5449 lt_cv_compiler_c_o=no
5451 CFLAGS="$save_CFLAGS"
5457 $rm -r conftest 2>/dev/null
5461 compiler_c_o=$lt_cv_compiler_c_o
5462 echo "$as_me:$LINENO: result: $compiler_c_o" >&5
5463 echo "${ECHO_T}$compiler_c_o" >&6
5465 if test x"$compiler_c_o" = x"yes"; then
5466 # Check to see if we can write to a .lo
5467 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
5468 echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
5469 if test "${lt_cv_compiler_o_lo+set}" = set; then
5470 echo $ECHO_N "(cached) $ECHO_C" >&6
5473 lt_cv_compiler_o_lo=no
5474 save_CFLAGS="$CFLAGS"
5475 CFLAGS="$CFLAGS -c -o conftest.lo"
5476 save_objext="$ac_objext"
5478 cat >conftest.$ac_ext <<_ACEOF
5479 #line $LINENO "configure"
5482 cat confdefs.h >>conftest.$ac_ext
5483 cat >>conftest.$ac_ext <<_ACEOF
5484 /* end confdefs.h. */
5489 int some_variable = 0;
5494 rm -f conftest.$ac_objext
5495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5496 (eval $ac_compile) 2>&5
5498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5499 (exit $ac_status); } &&
5500 { ac_try='test -s conftest.$ac_objext'
5501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5505 (exit $ac_status); }; }; then
5506 # The compiler can only warn and ignore the option if not recognized
5507 # So say no if there are warnings
5508 if test -s conftest.err; then
5509 lt_cv_compiler_o_lo=no
5511 lt_cv_compiler_o_lo=yes
5515 echo "$as_me: failed program was:" >&5
5516 sed 's/^/| /' conftest.$ac_ext >&5
5519 rm -f conftest.$ac_objext conftest.$ac_ext
5520 ac_objext="$save_objext"
5521 CFLAGS="$save_CFLAGS"
5525 compiler_o_lo=$lt_cv_compiler_o_lo
5526 echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
5527 echo "${ECHO_T}$compiler_o_lo" >&6
5534 ## FIXME: this should be a separate macro
5536 # Check to see if we can do hard links to lock some files if needed
5537 hard_links="nottested"
5538 if test "$compiler_c_o" = no && test "$need_locks" != no; then
5539 # do not overwrite the value of need_locks provided by the user
5540 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
5541 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
5544 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5546 ln conftest.a conftest.b 2>&5 || hard_links=no
5547 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5548 echo "$as_me:$LINENO: result: $hard_links" >&5
5549 echo "${ECHO_T}$hard_links" >&6
5550 if test "$hard_links" = no; then
5551 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
5552 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
5561 ## FIXME: this should be a separate macro
5563 if test "$GCC" = yes; then
5564 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5565 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5566 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5567 echo "int some_variable = 0;" > conftest.$ac_ext
5568 save_CFLAGS="$CFLAGS"
5569 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5570 compiler_rtti_exceptions=no
5571 cat >conftest.$ac_ext <<_ACEOF
5572 #line $LINENO "configure"
5575 cat confdefs.h >>conftest.$ac_ext
5576 cat >>conftest.$ac_ext <<_ACEOF
5577 /* end confdefs.h. */
5582 int some_variable = 0;
5587 rm -f conftest.$ac_objext
5588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5589 (eval $ac_compile) 2>&5
5591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5592 (exit $ac_status); } &&
5593 { ac_try='test -s conftest.$ac_objext'
5594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5598 (exit $ac_status); }; }; then
5599 # The compiler can only warn and ignore the option if not recognized
5600 # So say no if there are warnings
5601 if test -s conftest.err; then
5602 compiler_rtti_exceptions=no
5604 compiler_rtti_exceptions=yes
5608 echo "$as_me: failed program was:" >&5
5609 sed 's/^/| /' conftest.$ac_ext >&5
5612 rm -f conftest.$ac_objext conftest.$ac_ext
5613 CFLAGS="$save_CFLAGS"
5614 echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
5615 echo "${ECHO_T}$compiler_rtti_exceptions" >&6
5617 if test "$compiler_rtti_exceptions" = "yes"; then
5618 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
5620 no_builtin_flag=' -fno-builtin'
5626 ## FIXME: this should be a separate macro
5628 # See if the linker supports building shared libraries.
5629 echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
5630 echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
5632 allow_undefined_flag=
5634 need_lib_prefix=unknown
5635 need_version=unknown
5636 # when you set need_version to no, make sure it does not cause -set_version
5637 # flags to be left without arguments
5639 archive_expsym_cmds=
5640 old_archive_from_new_cmds=
5641 old_archive_from_expsyms_cmds=
5642 export_dynamic_flag_spec=
5643 whole_archive_flag_spec=
5644 thread_safe_flag_spec=
5645 hardcode_into_libs=no
5646 hardcode_libdir_flag_spec=
5647 hardcode_libdir_separator=
5650 hardcode_shlibpath_var=unsupported
5652 link_all_deplibs=unknown
5653 always_export_symbols=no
5654 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
5655 # include_expsyms should be a list of space-separated symbols to be *always*
5656 # included in the symbol list
5658 # exclude_expsyms can be an egrep regular expression of symbols to exclude
5659 # it will be wrapped by ` (' and `)$', so one must not match beginning or
5660 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5661 # as well as any symbol that contains `d'.
5662 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5663 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5664 # platforms (ab)use it in PIC code, but their linkers get confused if
5665 # the symbol is explicitly referenced. Since portable code cannot
5666 # rely on this symbol name, it's probably fine to never include it in
5667 # preloaded symbol tables.
5668 extract_expsyms_cmds=
5671 cygwin* | mingw* | pw32*)
5672 # FIXME: the MSVC++ port hasn't been tested in a loooong time
5673 # When not using gcc, we currently assume that we are using
5674 # Microsoft Visual C++.
5675 if test "$GCC" != yes; then
5685 if test "$with_gnu_ld" = yes; then
5686 # If archive_cmds runs LD, not CC, wlarc should be empty
5689 # See if GNU ld supports shared libraries.
5691 aix3* | aix4* | aix5*)
5692 # On AIX, the GNU linker is very broken
5693 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
5697 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
5698 *** to be unable to reliably create shared libraries on AIX.
5699 *** Therefore, libtool is disabling shared libraries support. If you
5700 *** really care for shared libraries, you may want to modify your PATH
5701 *** so that a non-GNU linker is found, and then restart.
5707 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)'
5708 hardcode_libdir_flag_spec='-L$libdir'
5709 hardcode_minus_L=yes
5711 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5712 # that the semantics of dynamic libraries on AmigaOS, at least up
5713 # to version 4, is to share data among multiple programs linked
5714 # with the same dynamic library. Since this doesn't match the
5715 # behavior of shared libraries on other platforms, we can use
5721 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5722 allow_undefined_flag=unsupported
5723 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5724 # support --undefined. This deserves some investigation. FIXME
5725 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5731 cygwin* | mingw* | pw32*)
5732 # hardcode_libdir_flag_spec is actually meaningless, as there is
5733 # no search path for DLLs.
5734 hardcode_libdir_flag_spec='-L$libdir'
5735 allow_undefined_flag=unsupported
5736 always_export_symbols=yes
5738 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
5739 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
5740 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
5741 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
5742 else $CC -o impgen impgen.c ; fi)~
5743 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
5745 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
5747 # cygwin and mingw dlls have different entry points and sets of symbols
5749 # FIXME: what about values for MSVC?
5750 dll_entry=__cygwin_dll_entry@12
5751 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
5755 dll_entry=_DllMainCRTStartup@12
5756 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
5760 # mingw and cygwin differ, and it's simplest to just exclude the union
5761 # of the two symbol sets.
5762 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
5764 # recent cygwin and mingw systems supply a stub DllMain which the user
5765 # can override, but on older systems we have to supply one (in ltdll.c)
5766 if test "x$lt_cv_need_dllmain" = "xyes"; then
5767 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
5768 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~
5769 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
5775 # Extract the symbol export list from an `--export-all' def file,
5776 # then regenerate the def file from the symbol export list, so that
5777 # the compiled dll only exports the symbol export list.
5778 # Be careful not to strip the DATA tag left be newer dlltools.
5779 export_symbols_cmds="$ltdll_cmds"'
5780 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
5781 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
5783 # If the export-symbols file already is a .def file (1st line
5784 # is EXPORTS), use it as is.
5785 # If DATA tags from a recent dlltool are present, honour them!
5786 archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
5787 cp $export_symbols $output_objdir/$soname-def;
5789 echo EXPORTS > $output_objdir/$soname-def;
5791 cat $export_symbols | while read symbol; do
5794 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
5795 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
5797 _lt_hint=`expr 1 + \$_lt_hint`;
5801 $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~
5802 $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~
5803 $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~
5804 $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~
5805 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
5809 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5810 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5813 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5814 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5819 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
5823 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
5824 *** create shared libraries on Solaris systems. Therefore, libtool
5825 *** is disabling shared libraries support. We urge you to upgrade GNU
5826 *** binutils to release 2.9.1 or newer. Another option is to modify
5827 *** your PATH or compiler configuration so that the native linker is
5828 *** used, and then restart.
5831 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5832 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5833 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5840 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5843 hardcode_shlibpath_var=no
5847 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5848 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5849 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5856 if test "$ld_shlibs" = yes; then
5857 runpath_var=LD_RUN_PATH
5858 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
5859 export_dynamic_flag_spec='${wl}--export-dynamic'
5861 cygwin* | mingw* | pw32*)
5862 # dlltool doesn't understand --whole-archive et. al.
5863 whole_archive_flag_spec=
5866 # ancient GNU ld didn't support --whole-archive et. al.
5867 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
5868 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5870 whole_archive_flag_spec=
5876 # PORTME fill in a description of your system's linker (not GNU ld)
5879 allow_undefined_flag=unsupported
5880 always_export_symbols=yes
5881 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'
5882 # Note: this linker hardcodes the directories in LIBPATH if there
5883 # are no directories specified by -L.
5884 hardcode_minus_L=yes
5885 if test "$GCC" = yes && test -z "$link_static_flag"; then
5886 # Neither direct hardcoding nor static linking is supported with a
5888 hardcode_direct=unsupported
5893 if test "$host_cpu" = ia64; then
5894 # On IA64, the linker does run time linking by default, so we don't
5895 # have to do anything special.
5896 aix_use_runtimelinking=no
5897 exp_sym_flag='-Bexport'
5900 aix_use_runtimelinking=no
5902 # Test if we are trying to use run time linking or normal
5903 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5904 # need to do runtime linking.
5905 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
5906 for ld_flag in $LDFLAGS; do
5907 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
5908 aix_use_runtimelinking=yes
5914 exp_sym_flag='-bexport'
5915 no_entry_flag='-bnoentry'
5918 # When large executables or shared objects are built, AIX ld can
5919 # have problems creating the table of contents. If linking a library
5920 # or program results in "error TOC overflow" add -mminimal-toc to
5921 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5922 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5926 hardcode_libdir_separator=':'
5927 if test "$GCC" = yes; then
5928 case $host_os in aix4.[012]|aix4.[012].*)
5929 collect2name=`${CC} -print-prog-name=collect2`
5930 if test -f "$collect2name" && \
5931 strings "$collect2name" | grep resolve_lib_name >/dev/null
5933 # We have reworked collect2
5936 # We have old collect2
5937 hardcode_direct=unsupported
5938 # It fails to find uninstalled libraries when the uninstalled
5939 # path is not listed in the libpath. Setting hardcode_minus_L
5940 # to unsupported forces relinking
5941 hardcode_minus_L=yes
5942 hardcode_libdir_flag_spec='-L$libdir'
5943 hardcode_libdir_separator=
5947 shared_flag='-shared'
5950 if test "$host_cpu" = ia64; then
5951 shared_flag='${wl}-G'
5953 if test "$aix_use_runtimelinking" = yes; then
5954 shared_flag='${wl}-G'
5956 shared_flag='${wl}-bM:SRE'
5961 # It seems that -bexpall can do strange things, so it is better to
5962 # generate a list of symbols to export.
5963 always_export_symbols=yes
5964 if test "$aix_use_runtimelinking" = yes; then
5965 # Warning - without using the other runtime loading flags (-brtl),
5966 # -berok will link without error, but may produce a broken library.
5967 allow_undefined_flag='-berok'
5968 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
5969 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"
5971 if test "$host_cpu" = ia64; then
5972 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
5973 allow_undefined_flag="-z nodefs"
5974 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"
5976 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
5977 # Warning - without using the other run time loading flags,
5978 # -berok will link without error, but may produce a broken library.
5979 allow_undefined_flag='${wl}-berok'
5980 # This is a bit strange, but is similar to how AIX traditionally builds
5981 # it's shared libraries.
5982 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'
5988 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)'
5989 hardcode_libdir_flag_spec='-L$libdir'
5990 hardcode_minus_L=yes
5991 # see comment about different semantics on the GNU ld section
5995 cygwin* | mingw* | pw32*)
5996 # When not using gcc, we currently assume that we are using
5997 # Microsoft Visual C++.
5998 # hardcode_libdir_flag_spec is actually meaningless, as there is
5999 # no search path for DLLs.
6000 hardcode_libdir_flag_spec=' '
6001 allow_undefined_flag=unsupported
6002 # Tell ltmain to make .lib files, not .a files.
6004 # FIXME: Setting linknames here is a bad hack.
6005 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
6006 # The linker will automatically build a .lib file if we build a DLL.
6007 old_archive_from_new_cmds='true'
6008 # FIXME: Should let the user specify the lib program.
6009 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6010 fix_srcfile_path='`cygpath -w "$srcfile"`'
6013 darwin* | rhapsody*)
6015 rhapsody* | darwin1.[012])
6016 allow_undefined_flag='-undefined suppress'
6019 allow_undefined_flag='-flat_namespace -undefined suppress'
6022 # FIXME: Relying on posixy $() will cause problems for
6023 # cross-compilation, but unfortunately the echo tests do not
6024 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
6025 # `"' quotes if we put them in here... so don't!
6026 archive_cmds='$nonopt $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
6027 # We need to add '_' to the symbols in $export_symbols first
6028 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
6030 hardcode_shlibpath_var=no
6031 whole_archive_flag_spec='-all_load $convenience'
6038 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6039 # support. Future versions do this automatically, but an explicit c++rt0.o
6040 # does not break anything, and helps significantly (at the cost of a little
6043 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6044 hardcode_libdir_flag_spec='-R$libdir'
6046 hardcode_shlibpath_var=no
6049 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6051 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6053 hardcode_minus_L=yes
6054 hardcode_shlibpath_var=no
6057 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6059 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6060 hardcode_libdir_flag_spec='-R$libdir'
6062 hardcode_shlibpath_var=no
6065 hpux9* | hpux10* | hpux11*)
6067 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' ;;
6068 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
6070 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6071 hardcode_libdir_separator=:
6073 hardcode_minus_L=yes # Not in the search PATH, but as the default
6074 # location of the library.
6075 export_dynamic_flag_spec='${wl}-E'
6078 irix5* | irix6* | nonstopux*)
6079 if test "$GCC" = yes; then
6080 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'
6082 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'
6084 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6085 hardcode_libdir_separator=:
6086 link_all_deplibs=yes
6090 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6091 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6093 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6095 hardcode_libdir_flag_spec='-R$libdir'
6097 hardcode_shlibpath_var=no
6101 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6103 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6104 hardcode_libdir_separator=:
6105 hardcode_shlibpath_var=no
6110 hardcode_shlibpath_var=no
6111 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6112 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
6113 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6114 export_dynamic_flag_spec='${wl}-E'
6117 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6118 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6119 hardcode_libdir_flag_spec='-R$libdir'
6122 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
6123 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6130 hardcode_libdir_flag_spec='-L$libdir'
6131 hardcode_minus_L=yes
6132 allow_undefined_flag=unsupported
6133 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'
6134 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6138 if test "$GCC" = yes; then
6139 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6140 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'
6142 allow_undefined_flag=' -expect_unresolved \*'
6143 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'
6145 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6146 hardcode_libdir_separator=:
6149 osf4* | osf5*) # as osf3* with the addition of -msym flag
6150 if test "$GCC" = yes; then
6151 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6152 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'
6153 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6155 allow_undefined_flag=' -expect_unresolved \*'
6156 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'
6157 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6158 $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'
6160 #Both c and cxx compiler support -rpath directly
6161 hardcode_libdir_flag_spec='-rpath $libdir'
6163 hardcode_libdir_separator=:
6167 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6168 hardcode_shlibpath_var=no
6169 runpath_var=LD_RUN_PATH
6170 hardcode_runpath_var=yes
6171 export_dynamic_flag_spec='${wl}-Bexport'
6175 # gcc --version < 3.0 without binutils cannot create self contained
6176 # shared libraries reliably, requiring libgcc.a to resolve some of
6177 # the object symbols generated in some cases. Libraries that use
6178 # assert need libgcc.a to resolve __eprintf, for example. Linking
6179 # a copy of libgcc.a into every shared library to guarantee resolving
6180 # such symbols causes other problems: According to Tim Van Holder
6181 # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
6182 # (to the application) exception stack for one thing.
6183 no_undefined_flag=' -z defs'
6184 if test "$GCC" = yes; then
6185 case `$CC --version 2>/dev/null` in
6189 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
6190 *** create self contained shared libraries on Solaris systems, without
6191 *** introducing a dependency on libgcc.a. Therefore, libtool is disabling
6192 *** -no-undefined support, which will at least allow you to build shared
6193 *** libraries. However, you may find that when you link such libraries
6194 *** into an application without using GCC, you have to manually add
6195 *** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
6196 *** upgrade to a newer version of GCC. Another option is to rebuild your
6197 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
6204 # $CC -shared without GNU ld will not create a library from C++
6205 # object files and a static libstdc++, better avoid it by now
6206 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6207 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6208 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6209 hardcode_libdir_flag_spec='-R$libdir'
6210 hardcode_shlibpath_var=no
6212 solaris2.[0-5] | solaris2.[0-5].*) ;;
6213 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6214 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6216 link_all_deplibs=yes
6220 if test "x$host_vendor" = xsequent; then
6221 # Use $CC to link under sequent, because it throws in some extra .o
6222 # files that make .init and .fini sections work.
6223 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6225 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6227 hardcode_libdir_flag_spec='-L$libdir'
6229 hardcode_minus_L=yes
6230 hardcode_shlibpath_var=no
6234 if test "x$host_vendor" = xsno; then
6235 archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
6236 hardcode_direct=yes # is this really true???
6238 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6239 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6241 runpath_var='LD_RUN_PATH'
6242 hardcode_shlibpath_var=no
6246 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6247 hardcode_shlibpath_var=no
6248 export_dynamic_flag_spec='-Bexport'
6252 no_undefined_flag=' -z text'
6253 # $CC -shared without GNU ld will not create a library from C++
6254 # object files and a static libstdc++, better avoid it by now
6255 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6256 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6257 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6258 hardcode_libdir_flag_spec=
6259 hardcode_shlibpath_var=no
6260 runpath_var='LD_RUN_PATH'
6264 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6265 hardcode_libdir_flag_spec='-L$libdir'
6266 hardcode_shlibpath_var=no
6270 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6271 hardcode_libdir_flag_spec='-L$libdir'
6272 hardcode_shlibpath_var=no
6276 if test -d /usr/nec; then
6277 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6278 hardcode_shlibpath_var=no
6279 runpath_var=LD_RUN_PATH
6280 hardcode_runpath_var=yes
6286 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6289 hardcode_shlibpath_var=no
6290 hardcode_runpath_var=yes
6291 runpath_var=LD_RUN_PATH
6294 sysv5uw7* | unixware7*)
6295 no_undefined_flag='${wl}-z ${wl}text'
6296 if test "$GCC" = yes; then
6297 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6299 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6301 runpath_var='LD_RUN_PATH'
6302 hardcode_shlibpath_var=no
6310 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
6311 echo "${ECHO_T}$ld_shlibs" >&6
6312 test "$ld_shlibs" = no && can_build_shared=no
6316 ## FIXME: this should be a separate macro
6318 # Check hardcoding attributes.
6319 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
6320 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
6322 if test -n "$hardcode_libdir_flag_spec" || \
6323 test -n "$runpath_var"; then
6325 # We can hardcode non-existant directories.
6326 if test "$hardcode_direct" != no &&
6327 # If the only mechanism to avoid hardcoding is shlibpath_var, we
6328 # have to relink, otherwise we might link with an installed library
6329 # when we should be linking with a yet-to-be-installed one
6330 ## test "$hardcode_shlibpath_var" != no &&
6331 test "$hardcode_minus_L" != no; then
6332 # Linking always hardcodes the temporary library directory.
6333 hardcode_action=relink
6335 # We can link without hardcoding, and we can hardcode nonexisting dirs.
6336 hardcode_action=immediate
6339 # We cannot hardcode anything, or else we can only hardcode existing
6341 hardcode_action=unsupported
6343 echo "$as_me:$LINENO: result: $hardcode_action" >&5
6344 echo "${ECHO_T}$hardcode_action" >&6
6348 ## FIXME: this should be a separate macro
6352 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
6353 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
6354 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6355 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6356 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6357 echo "$as_me:$LINENO: result: yes" >&5
6358 echo "${ECHO_T}yes" >&6
6360 echo "$as_me:$LINENO: result: no" >&5
6361 echo "${ECHO_T}no" >&6
6366 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6367 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6369 ## FIXME: this should be a separate macro
6371 # PORTME Fill in your ld.so characteristics
6372 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6373 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6375 libname_spec='lib$name'
6382 shlibpath_overrides_runpath=unknown
6384 dynamic_linker="$host_os ld.so"
6385 sys_lib_dlsearch_path_spec="/lib /usr/lib"
6386 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6391 library_names_spec='${libname}${release}.so$versuffix $libname.a'
6392 shlibpath_var=LIBPATH
6394 # AIX has no versioning support, so we append a major version to the name.
6395 soname_spec='${libname}${release}.so$major'
6400 if test "$host_cpu" = ia64; then
6401 # AIX 5 supports IA64
6402 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
6403 shlibpath_var=LD_LIBRARY_PATH
6405 # With GCC up to 2.95.x, collect2 would create an import file
6406 # for dependence libraries. The import file would start with
6407 # the line `#! .'. This would cause the generated library to
6408 # depend on `.', always an invalid library. This was fixed in
6409 # development snapshots of GCC prior to 3.0.
6411 aix4 | aix4.[01] | aix4.[01].*)
6412 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6414 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6421 # AIX (on Power*) has no versioning support, so currently we can
6422 # not hardcode correct soname into executable. Probably we can
6423 # add versioning support to collect2, so additional links can
6424 # be useful in future.
6425 if test "$aix_use_runtimelinking" = yes; then
6426 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6427 # instead of lib<name>.a to let people know that these are not
6428 # typical AIX shared libraries.
6429 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6431 # We preserve .a as extension for shared libraries through AIX4.2
6432 # and later when we are not doing run time linking.
6433 library_names_spec='${libname}${release}.a $libname.a'
6434 soname_spec='${libname}${release}.so$major'
6436 shlibpath_var=LIBPATH
6441 library_names_spec='$libname.ixlibrary $libname.a'
6442 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6443 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'
6447 library_names_spec='${libname}.so'
6448 dynamic_linker="$host_os ld.so"
6449 shlibpath_var=LIBRARY_PATH
6455 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6456 soname_spec='${libname}${release}.so$major'
6457 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6458 shlibpath_var=LD_LIBRARY_PATH
6459 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6460 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6461 export_dynamic_flag_spec=-rdynamic
6462 # the default ld.so.conf also contains /usr/contrib/lib and
6463 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6464 # libtool to hard-code these into programs
6467 cygwin* | mingw* | pw32*)
6468 version_type=windows
6471 case $GCC,$host_os in
6473 library_names_spec='$libname.dll.a'
6474 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6475 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
6476 dldir=$destdir/`dirname \$dlpath`~
6477 test -d \$dldir || mkdir -p \$dldir~
6478 $install_prog .libs/$dlname \$dldir/$dlname'
6479 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
6480 dlpath=$dir/\$dldll~
6484 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6485 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
6488 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
6491 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
6494 dynamic_linker='Win32 ld.exe'
6495 # FIXME: first we should search . and the directory the executable is in
6499 darwin* | rhapsody*)
6500 dynamic_linker="$host_os dyld"
6504 # FIXME: Relying on posixy $() will cause problems for
6505 # cross-compilation, but unfortunately the echo tests do not
6506 # yet detect zsh echo's removal of \ escapes.
6507 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)'
6508 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
6509 shlibpath_overrides_runpath=yes
6510 shlibpath_var=DYLD_LIBRARY_PATH
6518 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6519 version_type=freebsd-$objformat
6520 case $version_type in
6522 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6527 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
6531 shlibpath_var=LD_LIBRARY_PATH
6534 shlibpath_overrides_runpath=yes
6537 shlibpath_overrides_runpath=no
6538 hardcode_into_libs=yes
6547 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
6548 soname_spec='${libname}${release}.so$major'
6549 shlibpath_var=LD_LIBRARY_PATH
6550 hardcode_into_libs=yes
6553 hpux9* | hpux10* | hpux11*)
6554 # Give a soname corresponding to the major version so that dld.sl refuses to
6555 # link against other versions.
6556 dynamic_linker="$host_os dld.sl"
6560 shlibpath_var=SHLIB_PATH
6561 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6562 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
6563 soname_spec='${libname}${release}.sl$major'
6564 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6565 postinstall_cmds='chmod 555 $lib'
6568 irix5* | irix6* | nonstopux*)
6570 nonstopux*) version_type=nonstopux ;;
6571 *) version_type=irix ;;
6575 soname_spec='${libname}${release}.so$major'
6576 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
6578 irix5* | nonstopux*)
6582 case $LD in # libtool.m4 will add one of these switches to LD
6583 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
6584 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
6585 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
6586 *) libsuff= shlibsuff= libmagic=never-match;;
6590 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6591 shlibpath_overrides_runpath=no
6592 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6593 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6596 # No shared lib support for Linux oldld, aout, or coff.
6597 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
6601 # This must be Linux ELF.
6606 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6607 soname_spec='${libname}${release}.so$major'
6608 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6609 shlibpath_var=LD_LIBRARY_PATH
6610 shlibpath_overrides_runpath=no
6611 # This implies no fast_install, which is unacceptable.
6612 # Some rework will be needed to allow for fast_install
6613 # before this can be enabled.
6614 hardcode_into_libs=yes
6616 # We used to test for /lib/ld.so.1 and disable shared libraries on
6617 # powerpc, because MkLinux only supported shared libraries with the
6618 # GNU dynamic linker. Since this was broken with cross compilers,
6619 # most powerpc-linux boxes support dynamic linking these days and
6620 # people can always --disable-shared, the test was removed, and we
6621 # assume the GNU/Linux dynamic linker is in use.
6622 dynamic_linker='GNU/Linux ld.so'
6629 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6630 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6631 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6632 dynamic_linker='NetBSD (a.out) ld.so'
6634 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
6635 soname_spec='${libname}${release}.so$major'
6636 dynamic_linker='NetBSD ld.elf_so'
6638 shlibpath_var=LD_LIBRARY_PATH
6639 shlibpath_overrides_runpath=yes
6640 hardcode_into_libs=yes
6645 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6646 shlibpath_var=LD_LIBRARY_PATH
6647 shlibpath_overrides_runpath=yes
6654 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6656 openbsd2.[89] | openbsd2.[89].*)
6657 shlibpath_overrides_runpath=no
6660 shlibpath_overrides_runpath=yes
6664 shlibpath_overrides_runpath=yes
6666 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6667 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6668 shlibpath_var=LD_LIBRARY_PATH
6672 libname_spec='$name'
6674 library_names_spec='$libname.dll $libname.a'
6675 dynamic_linker='OS/2 ld.exe'
6676 shlibpath_var=LIBPATH
6679 osf3* | osf4* | osf5*)
6682 soname_spec='${libname}${release}.so'
6683 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6684 shlibpath_var=LD_LIBRARY_PATH
6685 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6686 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6691 soname_spec='${libname}${release}.so$major'
6692 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6693 shlibpath_var=LD_LIBRARY_PATH
6700 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6701 soname_spec='${libname}${release}.so$major'
6702 shlibpath_var=LD_LIBRARY_PATH
6703 shlibpath_overrides_runpath=yes
6704 hardcode_into_libs=yes
6705 # ldd complains unless libraries are executable
6706 postinstall_cmds='chmod +x $lib'
6711 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6712 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6713 shlibpath_var=LD_LIBRARY_PATH
6714 shlibpath_overrides_runpath=yes
6715 if test "$with_gnu_ld" = yes; then
6721 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6723 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6724 soname_spec='${libname}${release}.so$major'
6725 shlibpath_var=LD_LIBRARY_PATH
6726 case $host_vendor in
6728 shlibpath_overrides_runpath=no
6733 shlibpath_overrides_runpath=no
6734 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6741 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6742 soname_spec='${libname}${release}.so$major'
6743 shlibpath_var=LD_LIBRARY_PATH
6750 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6751 soname_spec='${libname}${release}.so$major'
6752 shlibpath_var=LD_LIBRARY_PATH
6756 if test -d /usr/nec ;then
6758 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
6759 soname_spec='$libname.so.$major'
6760 shlibpath_var=LD_LIBRARY_PATH
6768 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
6769 echo "${ECHO_T}$dynamic_linker" >&6
6770 test "$dynamic_linker" = no && can_build_shared=no
6774 ## FIXME: this should be a separate macro
6776 # Report the final consequences.
6777 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
6778 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
6779 echo "$as_me:$LINENO: result: $can_build_shared" >&5
6780 echo "${ECHO_T}$can_build_shared" >&6
6784 ## FIXME: this should be a separate macro
6786 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
6787 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
6788 test "$can_build_shared" = "no" && enable_shared=no
6790 # On AIX, shared libraries and static libraries use the same namespace, and
6791 # are all built from PIC.
6794 test "$enable_shared" = yes && enable_static=no
6795 if test -n "$RANLIB"; then
6796 archive_cmds="$archive_cmds~\$RANLIB \$lib"
6797 postinstall_cmds='$RANLIB $lib'
6802 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6803 test "$enable_shared" = yes && enable_static=no
6807 echo "$as_me:$LINENO: result: $enable_shared" >&5
6808 echo "${ECHO_T}$enable_shared" >&6
6812 ## FIXME: this should be a separate macro
6814 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
6815 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
6816 # Make sure either enable_shared or enable_static is yes.
6817 test "$enable_shared" = yes || enable_static=yes
6818 echo "$as_me:$LINENO: result: $enable_static" >&5
6819 echo "${ECHO_T}$enable_static" >&6
6823 if test "$hardcode_action" = relink; then
6824 # Fast installation is not supported
6825 enable_fast_install=no
6826 elif test "$shlibpath_overrides_runpath" = yes ||
6827 test "$enable_shared" = no; then
6828 # Fast installation is not necessary
6829 enable_fast_install=needless
6832 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6833 if test "$GCC" = yes; then
6834 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6837 if test "x$enable_dlopen" != xyes; then
6838 enable_dlopen=unknown
6839 enable_dlopen_self=unknown
6840 enable_dlopen_self_static=unknown
6847 lt_cv_dlopen="load_add_on"
6849 lt_cv_dlopen_self=yes
6852 cygwin* | mingw* | pw32*)
6853 lt_cv_dlopen="LoadLibrary"
6858 echo "$as_me:$LINENO: checking for shl_load" >&5
6859 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
6860 if test "${ac_cv_func_shl_load+set}" = set; then
6861 echo $ECHO_N "(cached) $ECHO_C" >&6
6863 cat >conftest.$ac_ext <<_ACEOF
6864 #line $LINENO "configure"
6867 cat confdefs.h >>conftest.$ac_ext
6868 cat >>conftest.$ac_ext <<_ACEOF
6869 /* end confdefs.h. */
6870 /* System header to define __stub macros and hopefully few prototypes,
6871 which can conflict with char shl_load (); below.
6872 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6873 <limits.h> exists even on freestanding compilers. */
6875 # include <limits.h>
6877 # include <assert.h>
6879 /* Override any gcc2 internal prototype to avoid an error. */
6884 /* We use char because int might match the return type of a gcc2
6885 builtin and then its argument prototype would still apply. */
6887 /* The GNU C library defines this for functions which it implements
6888 to always fail with ENOSYS. Some functions are actually named
6889 something starting with __ and the normal name is an alias. */
6890 #if defined (__stub_shl_load) || defined (__stub___shl_load)
6893 char (*f) () = shl_load;
6902 return f != shl_load;
6907 rm -f conftest.$ac_objext conftest$ac_exeext
6908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6909 (eval $ac_link) 2>&5
6911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6912 (exit $ac_status); } &&
6913 { ac_try='test -s conftest$ac_exeext'
6914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6918 (exit $ac_status); }; }; then
6919 ac_cv_func_shl_load=yes
6921 echo "$as_me: failed program was:" >&5
6922 sed 's/^/| /' conftest.$ac_ext >&5
6924 ac_cv_func_shl_load=no
6926 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6928 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
6929 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
6930 if test $ac_cv_func_shl_load = yes; then
6931 lt_cv_dlopen="shl_load"
6933 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
6934 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
6935 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
6936 echo $ECHO_N "(cached) $ECHO_C" >&6
6938 ac_check_lib_save_LIBS=$LIBS
6940 cat >conftest.$ac_ext <<_ACEOF
6941 #line $LINENO "configure"
6944 cat confdefs.h >>conftest.$ac_ext
6945 cat >>conftest.$ac_ext <<_ACEOF
6946 /* end confdefs.h. */
6948 /* Override any gcc2 internal prototype to avoid an error. */
6952 /* We use char because int might match the return type of a gcc2
6953 builtin and then its argument prototype would still apply. */
6963 rm -f conftest.$ac_objext conftest$ac_exeext
6964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6965 (eval $ac_link) 2>&5
6967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6968 (exit $ac_status); } &&
6969 { ac_try='test -s conftest$ac_exeext'
6970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6974 (exit $ac_status); }; }; then
6975 ac_cv_lib_dld_shl_load=yes
6977 echo "$as_me: failed program was:" >&5
6978 sed 's/^/| /' conftest.$ac_ext >&5
6980 ac_cv_lib_dld_shl_load=no
6982 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6983 LIBS=$ac_check_lib_save_LIBS
6985 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
6986 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
6987 if test $ac_cv_lib_dld_shl_load = yes; then
6988 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
6990 echo "$as_me:$LINENO: checking for dlopen" >&5
6991 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
6992 if test "${ac_cv_func_dlopen+set}" = set; then
6993 echo $ECHO_N "(cached) $ECHO_C" >&6
6995 cat >conftest.$ac_ext <<_ACEOF
6996 #line $LINENO "configure"
6999 cat confdefs.h >>conftest.$ac_ext
7000 cat >>conftest.$ac_ext <<_ACEOF
7001 /* end confdefs.h. */
7002 /* System header to define __stub macros and hopefully few prototypes,
7003 which can conflict with char dlopen (); below.
7004 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7005 <limits.h> exists even on freestanding compilers. */
7007 # include <limits.h>
7009 # include <assert.h>
7011 /* Override any gcc2 internal prototype to avoid an error. */
7016 /* We use char because int might match the return type of a gcc2
7017 builtin and then its argument prototype would still apply. */
7019 /* The GNU C library defines this for functions which it implements
7020 to always fail with ENOSYS. Some functions are actually named
7021 something starting with __ and the normal name is an alias. */
7022 #if defined (__stub_dlopen) || defined (__stub___dlopen)
7025 char (*f) () = dlopen;
7039 rm -f conftest.$ac_objext conftest$ac_exeext
7040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7041 (eval $ac_link) 2>&5
7043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7044 (exit $ac_status); } &&
7045 { ac_try='test -s conftest$ac_exeext'
7046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7050 (exit $ac_status); }; }; then
7051 ac_cv_func_dlopen=yes
7053 echo "$as_me: failed program was:" >&5
7054 sed 's/^/| /' conftest.$ac_ext >&5
7056 ac_cv_func_dlopen=no
7058 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7060 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
7061 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
7062 if test $ac_cv_func_dlopen = yes; then
7063 lt_cv_dlopen="dlopen"
7065 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7066 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7067 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7068 echo $ECHO_N "(cached) $ECHO_C" >&6
7070 ac_check_lib_save_LIBS=$LIBS
7072 cat >conftest.$ac_ext <<_ACEOF
7073 #line $LINENO "configure"
7076 cat confdefs.h >>conftest.$ac_ext
7077 cat >>conftest.$ac_ext <<_ACEOF
7078 /* end confdefs.h. */
7080 /* Override any gcc2 internal prototype to avoid an error. */
7084 /* We use char because int might match the return type of a gcc2
7085 builtin and then its argument prototype would still apply. */
7095 rm -f conftest.$ac_objext conftest$ac_exeext
7096 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7097 (eval $ac_link) 2>&5
7099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7100 (exit $ac_status); } &&
7101 { ac_try='test -s conftest$ac_exeext'
7102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7106 (exit $ac_status); }; }; then
7107 ac_cv_lib_dl_dlopen=yes
7109 echo "$as_me: failed program was:" >&5
7110 sed 's/^/| /' conftest.$ac_ext >&5
7112 ac_cv_lib_dl_dlopen=no
7114 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7115 LIBS=$ac_check_lib_save_LIBS
7117 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7118 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7119 if test $ac_cv_lib_dl_dlopen = yes; then
7120 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7122 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7123 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7124 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7125 echo $ECHO_N "(cached) $ECHO_C" >&6
7127 ac_check_lib_save_LIBS=$LIBS
7129 cat >conftest.$ac_ext <<_ACEOF
7130 #line $LINENO "configure"
7133 cat confdefs.h >>conftest.$ac_ext
7134 cat >>conftest.$ac_ext <<_ACEOF
7135 /* end confdefs.h. */
7137 /* Override any gcc2 internal prototype to avoid an error. */
7141 /* We use char because int might match the return type of a gcc2
7142 builtin and then its argument prototype would still apply. */
7152 rm -f conftest.$ac_objext conftest$ac_exeext
7153 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7154 (eval $ac_link) 2>&5
7156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7157 (exit $ac_status); } &&
7158 { ac_try='test -s conftest$ac_exeext'
7159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7163 (exit $ac_status); }; }; then
7164 ac_cv_lib_svld_dlopen=yes
7166 echo "$as_me: failed program was:" >&5
7167 sed 's/^/| /' conftest.$ac_ext >&5
7169 ac_cv_lib_svld_dlopen=no
7171 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7172 LIBS=$ac_check_lib_save_LIBS
7174 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7175 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7176 if test $ac_cv_lib_svld_dlopen = yes; then
7177 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
7179 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7180 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7181 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7182 echo $ECHO_N "(cached) $ECHO_C" >&6
7184 ac_check_lib_save_LIBS=$LIBS
7186 cat >conftest.$ac_ext <<_ACEOF
7187 #line $LINENO "configure"
7190 cat confdefs.h >>conftest.$ac_ext
7191 cat >>conftest.$ac_ext <<_ACEOF
7192 /* end confdefs.h. */
7194 /* Override any gcc2 internal prototype to avoid an error. */
7198 /* We use char because int might match the return type of a gcc2
7199 builtin and then its argument prototype would still apply. */
7209 rm -f conftest.$ac_objext conftest$ac_exeext
7210 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7211 (eval $ac_link) 2>&5
7213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7214 (exit $ac_status); } &&
7215 { ac_try='test -s conftest$ac_exeext'
7216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7220 (exit $ac_status); }; }; then
7221 ac_cv_lib_dld_dld_link=yes
7223 echo "$as_me: failed program was:" >&5
7224 sed 's/^/| /' conftest.$ac_ext >&5
7226 ac_cv_lib_dld_dld_link=no
7228 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7229 LIBS=$ac_check_lib_save_LIBS
7231 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7232 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7233 if test $ac_cv_lib_dld_dld_link = yes; then
7234 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
7255 if test "x$lt_cv_dlopen" != xno; then
7261 case $lt_cv_dlopen in
7263 save_CPPFLAGS="$CPPFLAGS"
7264 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
7266 save_LDFLAGS="$LDFLAGS"
7267 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
7270 LIBS="$lt_cv_dlopen_libs $LIBS"
7272 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
7273 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
7274 if test "${lt_cv_dlopen_self+set}" = set; then
7275 echo $ECHO_N "(cached) $ECHO_C" >&6
7277 if test "$cross_compiling" = yes; then :
7278 lt_cv_dlopen_self=cross
7280 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7281 lt_status=$lt_dlunknown
7282 cat > conftest.$ac_ext <<EOF
7283 #line 7283 "configure"
7284 #include "confdefs.h"
7293 # define LT_DLGLOBAL RTLD_GLOBAL
7296 # define LT_DLGLOBAL DL_GLOBAL
7298 # define LT_DLGLOBAL 0
7302 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7303 find out it does not work in some platform. */
7304 #ifndef LT_DLLAZY_OR_NOW
7306 # define LT_DLLAZY_OR_NOW RTLD_LAZY
7309 # define LT_DLLAZY_OR_NOW DL_LAZY
7312 # define LT_DLLAZY_OR_NOW RTLD_NOW
7315 # define LT_DLLAZY_OR_NOW DL_NOW
7317 # define LT_DLLAZY_OR_NOW 0
7325 extern "C" void exit (int);
7328 void fnord() { int i=42;}
7331 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7332 int status = $lt_dlunknown;
7336 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7337 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7338 /* dlclose (self); */
7344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7345 (eval $ac_link) 2>&5
7347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7348 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7349 (./conftest; exit; ) 2>/dev/null
7352 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
7353 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
7354 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
7357 # compilation failed
7358 lt_cv_dlopen_self=no
7365 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
7366 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
7368 if test "x$lt_cv_dlopen_self" = xyes; then
7369 LDFLAGS="$LDFLAGS $link_static_flag"
7370 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
7371 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
7372 if test "${lt_cv_dlopen_self_static+set}" = set; then
7373 echo $ECHO_N "(cached) $ECHO_C" >&6
7375 if test "$cross_compiling" = yes; then :
7376 lt_cv_dlopen_self_static=cross
7378 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7379 lt_status=$lt_dlunknown
7380 cat > conftest.$ac_ext <<EOF
7381 #line 7381 "configure"
7382 #include "confdefs.h"
7391 # define LT_DLGLOBAL RTLD_GLOBAL
7394 # define LT_DLGLOBAL DL_GLOBAL
7396 # define LT_DLGLOBAL 0
7400 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7401 find out it does not work in some platform. */
7402 #ifndef LT_DLLAZY_OR_NOW
7404 # define LT_DLLAZY_OR_NOW RTLD_LAZY
7407 # define LT_DLLAZY_OR_NOW DL_LAZY
7410 # define LT_DLLAZY_OR_NOW RTLD_NOW
7413 # define LT_DLLAZY_OR_NOW DL_NOW
7415 # define LT_DLLAZY_OR_NOW 0
7423 extern "C" void exit (int);
7426 void fnord() { int i=42;}
7429 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7430 int status = $lt_dlunknown;
7434 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7435 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7436 /* dlclose (self); */
7442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7443 (eval $ac_link) 2>&5
7445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7446 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7447 (./conftest; exit; ) 2>/dev/null
7450 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
7451 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
7452 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
7455 # compilation failed
7456 lt_cv_dlopen_self_static=no
7463 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
7464 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
7467 CPPFLAGS="$save_CPPFLAGS"
7468 LDFLAGS="$save_LDFLAGS"
7473 case $lt_cv_dlopen_self in
7474 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
7475 *) enable_dlopen_self=unknown ;;
7478 case $lt_cv_dlopen_self_static in
7479 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
7480 *) enable_dlopen_self_static=unknown ;;
7485 ## FIXME: this should be a separate macro
7487 if test "$enable_shared" = yes && test "$GCC" = yes; then
7488 case $archive_cmds in
7490 # FIXME: we may have to deal with multi-command sequences.
7493 # Test whether the compiler implicitly links with -lc since on some
7494 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7495 # to ld, don't add -lc before -lgcc.
7496 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7497 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7498 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
7499 echo $ECHO_N "(cached) $ECHO_C" >&6
7502 echo 'static int dummy;' > conftest.$ac_ext
7504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7505 (eval $ac_compile) 2>&5
7507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7508 (exit $ac_status); }; then
7511 libobjs=conftest.$ac_objext
7513 wl=$lt_cv_prog_cc_wl
7519 save_allow_undefined_flag=$allow_undefined_flag
7520 allow_undefined_flag=
7521 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7522 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7525 (exit $ac_status); }
7527 lt_cv_archive_cmds_need_lc=no
7529 lt_cv_archive_cmds_need_lc=yes
7531 allow_undefined_flag=$save_allow_undefined_flag
7533 cat conftest.err 1>&5
7537 echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
7538 echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
7542 need_lc=${lt_cv_archive_cmds_need_lc-yes}
7546 ## FIXME: this should be a separate macro
7548 # The second clause should only fire when bootstrapping the
7549 # libtool distribution, otherwise you forgot to ship ltmain.sh
7550 # with your package, and you will get complaints that there are
7551 # no rules to generate ltmain.sh.
7552 if test -f "$ltmain"; then
7555 # If there is no Makefile yet, we rely on a make rule to execute
7556 # `config.status --recheck' to rerun these tests and create the
7557 # libtool script then.
7558 test -f Makefile && make "$ltmain"
7561 if test -f "$ltmain"; then
7562 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
7565 echo creating $ofile
7567 # Now quote all the things that may contain metacharacters while being
7568 # careful not to overquote the AC_SUBSTed values. We take copies of the
7569 # variables and quote the copies for generation of the libtool script.
7570 for var in echo old_CC old_CFLAGS \
7571 AR AR_FLAGS CC LD LN_S NM SHELL \
7572 reload_flag reload_cmds wl \
7573 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
7574 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
7575 library_names_spec soname_spec \
7576 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
7577 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
7578 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
7579 old_striplib striplib file_magic_cmd export_symbols_cmds \
7580 deplibs_check_method allow_undefined_flag no_undefined_flag \
7581 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
7582 global_symbol_to_c_name_address \
7583 hardcode_libdir_flag_spec hardcode_libdir_separator \
7584 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
7585 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
7588 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
7589 old_postinstall_cmds | old_postuninstall_cmds | \
7590 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
7591 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
7592 postinstall_cmds | postuninstall_cmds | \
7593 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
7594 # Double-quote double-evaled strings.
7595 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
7598 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
7603 cat <<__EOF__ > "${ofile}T"
7606 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7607 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7608 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
7610 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
7611 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7613 # This program is free software; you can redistribute it and/or modify
7614 # it under the terms of the GNU General Public License as published by
7615 # the Free Software Foundation; either version 2 of the License, or
7616 # (at your option) any later version.
7618 # This program is distributed in the hope that it will be useful, but
7619 # WITHOUT ANY WARRANTY; without even the implied warranty of
7620 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
7621 # General Public License for more details.
7623 # You should have received a copy of the GNU General Public License
7624 # along with this program; if not, write to the Free Software
7625 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7627 # As a special exception to the GNU General Public License, if you
7628 # distribute this file as part of a program that contains a
7629 # configuration script generated by Autoconf, you may include it under
7630 # the same distribution terms that you use for the rest of that program.
7632 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
7633 Xsed="sed -e s/^X//"
7635 # The HP-UX ksh and POSIX shell print the target directory to stdout
7637 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
7639 # ### BEGIN LIBTOOL CONFIG
7641 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7643 # Shell to use when invoking shell scripts.
7646 # Whether or not to build shared libraries.
7647 build_libtool_libs=$enable_shared
7649 # Whether or not to build static libraries.
7650 build_old_libs=$enable_static
7652 # Whether or not to add -lc for building shared libraries.
7653 build_libtool_need_lc=$need_lc
7655 # Whether or not to optimize for fast installation.
7656 fast_install=$enable_fast_install
7659 host_alias=$host_alias
7662 # An echo program that does not interpret backslashes.
7667 AR_FLAGS=$lt_AR_FLAGS
7669 # The default C compiler.
7672 # Is the compiler the GNU C compiler?
7675 # The linker used to build libraries.
7678 # Whether we need hard or soft links.
7681 # A BSD-compatible nm program.
7684 # A symbol stripping program
7687 # Used to examine libraries when file_magic_cmd begins "file"
7688 MAGIC_CMD=$MAGIC_CMD
7690 # Used on cygwin: DLL creation program.
7693 # Used on cygwin: object dumper.
7696 # Used on cygwin: assembler.
7699 # The name of the directory that contains temporary libtool files.
7702 # How to create reloadable object files.
7703 reload_flag=$lt_reload_flag
7704 reload_cmds=$lt_reload_cmds
7706 # How to pass a linker flag through the compiler.
7709 # Object file suffix (normally "o").
7712 # Old archive suffix (normally "a").
7715 # Executable file suffix (normally "").
7718 # Additional compiler flags for building library objects.
7719 pic_flag=$lt_pic_flag
7722 # Does compiler simultaneously support -c and -o options?
7723 compiler_c_o=$lt_compiler_c_o
7725 # Can we write directly to a .lo ?
7726 compiler_o_lo=$lt_compiler_o_lo
7728 # Must we lock files when doing compilation ?
7729 need_locks=$lt_need_locks
7731 # Do we need the lib prefix for modules?
7732 need_lib_prefix=$need_lib_prefix
7734 # Do we need a version for libraries?
7735 need_version=$need_version
7737 # Whether dlopen is supported.
7738 dlopen_support=$enable_dlopen
7740 # Whether dlopen of programs is supported.
7741 dlopen_self=$enable_dlopen_self
7743 # Whether dlopen of statically linked programs is supported.
7744 dlopen_self_static=$enable_dlopen_self_static
7746 # Compiler flag to prevent dynamic linking.
7747 link_static_flag=$lt_link_static_flag
7749 # Compiler flag to turn off builtin functions.
7750 no_builtin_flag=$lt_no_builtin_flag
7752 # Compiler flag to allow reflexive dlopens.
7753 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
7755 # Compiler flag to generate shared objects directly from archives.
7756 whole_archive_flag_spec=$lt_whole_archive_flag_spec
7758 # Compiler flag to generate thread-safe objects.
7759 thread_safe_flag_spec=$lt_thread_safe_flag_spec
7761 # Library versioning type.
7762 version_type=$version_type
7764 # Format of library name prefix.
7765 libname_spec=$lt_libname_spec
7767 # List of archive names. First name is the real one, the rest are links.
7768 # The last name is the one that the linker finds with -lNAME.
7769 library_names_spec=$lt_library_names_spec
7771 # The coded name of the library, if different from the real name.
7772 soname_spec=$lt_soname_spec
7774 # Commands used to build and install an old-style archive.
7776 old_archive_cmds=$lt_old_archive_cmds
7777 old_postinstall_cmds=$lt_old_postinstall_cmds
7778 old_postuninstall_cmds=$lt_old_postuninstall_cmds
7780 # Create an old-style archive from a shared archive.
7781 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
7783 # Create a temporary old-style archive to link instead of a shared archive.
7784 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
7786 # Commands used to build and install a shared archive.
7787 archive_cmds=$lt_archive_cmds
7788 archive_expsym_cmds=$lt_archive_expsym_cmds
7789 postinstall_cmds=$lt_postinstall_cmds
7790 postuninstall_cmds=$lt_postuninstall_cmds
7792 # Commands to strip libraries.
7793 old_striplib=$lt_old_striplib
7794 striplib=$lt_striplib
7796 # Method to check whether dependent libraries are shared objects.
7797 deplibs_check_method=$lt_deplibs_check_method
7799 # Command to use when deplibs_check_method == file_magic.
7800 file_magic_cmd=$lt_file_magic_cmd
7802 # Flag that allows shared libraries with undefined symbols to be built.
7803 allow_undefined_flag=$lt_allow_undefined_flag
7805 # Flag that forces no undefined symbols.
7806 no_undefined_flag=$lt_no_undefined_flag
7808 # Commands used to finish a libtool library installation in a directory.
7809 finish_cmds=$lt_finish_cmds
7811 # Same as above, but a single script fragment to be evaled but not shown.
7812 finish_eval=$lt_finish_eval
7814 # Take the output of nm and produce a listing of raw symbols and C names.
7815 global_symbol_pipe=$lt_global_symbol_pipe
7817 # Transform the output of nm in a proper C declaration
7818 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
7820 # Transform the output of nm in a C name address pair
7821 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
7823 # This is the shared library runtime path variable.
7824 runpath_var=$runpath_var
7826 # This is the shared library path variable.
7827 shlibpath_var=$shlibpath_var
7829 # Is shlibpath searched before the hard-coded library search path?
7830 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
7832 # How to hardcode a shared library path into an executable.
7833 hardcode_action=$hardcode_action
7835 # Whether we should hardcode library paths into libraries.
7836 hardcode_into_libs=$hardcode_into_libs
7838 # Flag to hardcode \$libdir into a binary during linking.
7839 # This must work even if \$libdir does not exist.
7840 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
7842 # Whether we need a single -rpath flag with a separated argument.
7843 hardcode_libdir_separator=$lt_hardcode_libdir_separator
7845 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
7847 hardcode_direct=$hardcode_direct
7849 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
7851 hardcode_minus_L=$hardcode_minus_L
7853 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
7854 # the resulting binary.
7855 hardcode_shlibpath_var=$hardcode_shlibpath_var
7857 # Variables whose values should be saved in libtool wrapper scripts and
7858 # restored at relink time.
7859 variables_saved_for_relink="$variables_saved_for_relink"
7861 # Whether libtool must link a program against all its dependency libraries.
7862 link_all_deplibs=$link_all_deplibs
7864 # Compile-time system search path for libraries
7865 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
7867 # Run-time system search path for libraries
7868 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
7870 # Fix the shell variable \$srcfile for the compiler.
7871 fix_srcfile_path="$fix_srcfile_path"
7873 # Set to yes if exported symbols are required.
7874 always_export_symbols=$always_export_symbols
7876 # The commands to list exported symbols.
7877 export_symbols_cmds=$lt_export_symbols_cmds
7879 # The commands to extract the exported symbol list from a shared archive.
7880 extract_expsyms_cmds=$lt_extract_expsyms_cmds
7882 # Symbols that should not be listed in the preloaded symbols.
7883 exclude_expsyms=$lt_exclude_expsyms
7885 # Symbols that must always be exported.
7886 include_expsyms=$lt_include_expsyms
7888 # ### END LIBTOOL CONFIG
7894 cat <<\EOF >> "${ofile}T"
7896 # AIX sometimes has problems with the GCC collect2 program. For some
7897 # reason, if we set the COLLECT_NAMES environment variable, the problems
7898 # vanish in a puff of smoke.
7899 if test "X${COLLECT_NAMES+set}" != Xset; then
7901 export COLLECT_NAMES
7908 cygwin* | mingw* | pw32* | os2*)
7909 cat <<'EOF' >> "${ofile}T"
7910 # This is a source program that is used to create dlls on Windows
7911 # Don't remove nor modify the starting and closing comments
7912 # /* ltdll.c starts here */
7913 # #define WIN32_LEAN_AND_MEAN
7914 # #include <windows.h>
7915 # #undef WIN32_LEAN_AND_MEAN
7916 # #include <stdio.h>
7918 # #ifndef __CYGWIN__
7919 # # ifdef __CYGWIN32__
7920 # # define __CYGWIN__ __CYGWIN32__
7924 # #ifdef __cplusplus
7927 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7928 # #ifdef __cplusplus
7933 # #include <cygwin/cygwin_dll.h>
7934 # DECLARE_CYGWIN_DLL( DllMain );
7936 # HINSTANCE __hDllInstance_base;
7939 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7941 # __hDllInstance_base = hInst;
7944 # /* ltdll.c ends here */
7945 # This is a source program that is used to create import libraries
7946 # on Windows for dlls which lack them. Don't remove nor modify the
7947 # starting and closing comments
7948 # /* impgen.c starts here */
7949 # /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
7951 # This file is part of GNU libtool.
7953 # This program is free software; you can redistribute it and/or modify
7954 # it under the terms of the GNU General Public License as published by
7955 # the Free Software Foundation; either version 2 of the License, or
7956 # (at your option) any later version.
7958 # This program is distributed in the hope that it will be useful,
7959 # but WITHOUT ANY WARRANTY; without even the implied warranty of
7960 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7961 # GNU General Public License for more details.
7963 # You should have received a copy of the GNU General Public License
7964 # along with this program; if not, write to the Free Software
7965 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7968 # #include <stdio.h> /* for printf() */
7969 # #include <unistd.h> /* for open(), lseek(), read() */
7970 # #include <fcntl.h> /* for O_RDONLY, O_BINARY */
7971 # #include <string.h> /* for strdup() */
7973 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
7975 # #define O_BINARY 0
7978 # static unsigned int
7979 # pe_get16 (fd, offset)
7983 # unsigned char b[2];
7984 # lseek (fd, offset, SEEK_SET);
7986 # return b[0] + (b[1]<<8);
7989 # static unsigned int
7990 # pe_get32 (fd, offset)
7994 # unsigned char b[4];
7995 # lseek (fd, offset, SEEK_SET);
7997 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8000 # static unsigned int
8004 # unsigned char *b = ptr;
8005 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8014 # unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
8015 # unsigned long export_rva, export_size, nsections, secptr, expptr;
8016 # unsigned long name_rvas, nexp;
8017 # unsigned char *expdata, *erva;
8018 # char *filename, *dll_name;
8020 # filename = argv[1];
8022 # dll = open(filename, O_RDONLY|O_BINARY);
8026 # dll_name = filename;
8028 # for (i=0; filename[i]; i++)
8029 # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
8030 # dll_name = filename + i +1;
8032 # pe_header_offset = pe_get32 (dll, 0x3c);
8033 # opthdr_ofs = pe_header_offset + 4 + 20;
8034 # num_entries = pe_get32 (dll, opthdr_ofs + 92);
8036 # if (num_entries < 1) /* no exports */
8039 # export_rva = pe_get32 (dll, opthdr_ofs + 96);
8040 # export_size = pe_get32 (dll, opthdr_ofs + 100);
8041 # nsections = pe_get16 (dll, pe_header_offset + 4 +2);
8042 # secptr = (pe_header_offset + 4 + 20 +
8043 # pe_get16 (dll, pe_header_offset + 4 + 16));
8046 # for (i = 0; i < nsections; i++)
8049 # unsigned long secptr1 = secptr + 40 * i;
8050 # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
8051 # unsigned long vsize = pe_get32 (dll, secptr1 + 16);
8052 # unsigned long fptr = pe_get32 (dll, secptr1 + 20);
8053 # lseek(dll, secptr1, SEEK_SET);
8054 # read(dll, sname, 8);
8055 # if (vaddr <= export_rva && vaddr+vsize > export_rva)
8057 # expptr = fptr + (export_rva - vaddr);
8058 # if (export_rva + export_size > vaddr + vsize)
8059 # export_size = vsize - (export_rva - vaddr);
8064 # expdata = (unsigned char*)malloc(export_size);
8065 # lseek (dll, expptr, SEEK_SET);
8066 # read (dll, expdata, export_size);
8067 # erva = expdata - export_rva;
8069 # nexp = pe_as32 (expdata+24);
8070 # name_rvas = pe_as32 (expdata+32);
8072 # printf ("EXPORTS\n");
8073 # for (i = 0; i<nexp; i++)
8075 # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
8076 # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
8081 # /* impgen.c ends here */
8087 # We use sed instead of cat because bash on DJGPP gets confused if
8088 # if finds mixed CR/LF and LF-only lines. Since sed operates in
8089 # text mode, it properly converts lines to CR/LF. This bash problem
8090 # is reportedly fixed, but why not run on old versions too?
8091 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
8093 mv -f "${ofile}T" "$ofile" || \
8094 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
8104 # This can be used to rebuild libtool when needed
8105 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
8107 # Always use our own libtool.
8108 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8110 # Prevent multiple expansion
8116 ac_cpp='$CXXCPP $CPPFLAGS'
8117 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8118 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8119 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8122 # Checking for header files.
8123 # ===========================================================================
8125 if test -d /stuff/include; then
8126 CPPFLAGS="$CPPFLAGS -I/stuff/include"
8131 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8132 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8133 if test "${ac_cv_header_stdc+set}" = set; then
8134 echo $ECHO_N "(cached) $ECHO_C" >&6
8136 cat >conftest.$ac_ext <<_ACEOF
8137 #line $LINENO "configure"
8140 cat confdefs.h >>conftest.$ac_ext
8141 cat >>conftest.$ac_ext <<_ACEOF
8142 /* end confdefs.h. */
8156 rm -f conftest.$ac_objext
8157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8158 (eval $ac_compile) 2>&5
8160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8161 (exit $ac_status); } &&
8162 { ac_try='test -s conftest.$ac_objext'
8163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8167 (exit $ac_status); }; }; then
8168 ac_cv_header_stdc=yes
8170 echo "$as_me: failed program was:" >&5
8171 sed 's/^/| /' conftest.$ac_ext >&5
8173 ac_cv_header_stdc=no
8175 rm -f conftest.$ac_objext conftest.$ac_ext
8177 if test $ac_cv_header_stdc = yes; then
8178 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8179 cat >conftest.$ac_ext <<_ACEOF
8180 #line $LINENO "configure"
8183 cat confdefs.h >>conftest.$ac_ext
8184 cat >>conftest.$ac_ext <<_ACEOF
8185 /* end confdefs.h. */
8189 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8190 $EGREP "memchr" >/dev/null 2>&1; then
8193 ac_cv_header_stdc=no
8199 if test $ac_cv_header_stdc = yes; then
8200 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8201 cat >conftest.$ac_ext <<_ACEOF
8202 #line $LINENO "configure"
8205 cat confdefs.h >>conftest.$ac_ext
8206 cat >>conftest.$ac_ext <<_ACEOF
8207 /* end confdefs.h. */
8211 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8212 $EGREP "free" >/dev/null 2>&1; then
8215 ac_cv_header_stdc=no
8221 if test $ac_cv_header_stdc = yes; then
8222 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8223 if test "$cross_compiling" = yes; then
8226 cat >conftest.$ac_ext <<_ACEOF
8227 #line $LINENO "configure"
8230 cat confdefs.h >>conftest.$ac_ext
8231 cat >>conftest.$ac_ext <<_ACEOF
8232 /* end confdefs.h. */
8234 #if ((' ' & 0x0FF) == 0x020)
8235 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8236 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8238 # define ISLOWER(c) \
8239 (('a' <= (c) && (c) <= 'i') \
8240 || ('j' <= (c) && (c) <= 'r') \
8241 || ('s' <= (c) && (c) <= 'z'))
8242 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8245 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8250 for (i = 0; i < 256; i++)
8251 if (XOR (islower (i), ISLOWER (i))
8252 || toupper (i) != TOUPPER (i))
8257 rm -f conftest$ac_exeext
8258 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8259 (eval $ac_link) 2>&5
8261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8262 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8267 (exit $ac_status); }; }; then
8270 echo "$as_me: program exited with status $ac_status" >&5
8271 echo "$as_me: failed program was:" >&5
8272 sed 's/^/| /' conftest.$ac_ext >&5
8275 ac_cv_header_stdc=no
8277 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8281 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8282 echo "${ECHO_T}$ac_cv_header_stdc" >&6
8283 if test $ac_cv_header_stdc = yes; then
8285 cat >>confdefs.h <<\_ACEOF
8286 #define STDC_HEADERS 1
8292 for ac_header in getopt.h
8294 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8295 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8296 echo "$as_me:$LINENO: checking for $ac_header" >&5
8297 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8298 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8299 echo $ECHO_N "(cached) $ECHO_C" >&6
8301 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8302 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8304 # Is the header compilable?
8305 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8306 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8307 cat >conftest.$ac_ext <<_ACEOF
8308 #line $LINENO "configure"
8311 cat confdefs.h >>conftest.$ac_ext
8312 cat >>conftest.$ac_ext <<_ACEOF
8313 /* end confdefs.h. */
8314 $ac_includes_default
8315 #include <$ac_header>
8317 rm -f conftest.$ac_objext
8318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8319 (eval $ac_compile) 2>&5
8321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8322 (exit $ac_status); } &&
8323 { ac_try='test -s conftest.$ac_objext'
8324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8328 (exit $ac_status); }; }; then
8329 ac_header_compiler=yes
8331 echo "$as_me: failed program was:" >&5
8332 sed 's/^/| /' conftest.$ac_ext >&5
8334 ac_header_compiler=no
8336 rm -f conftest.$ac_objext conftest.$ac_ext
8337 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8338 echo "${ECHO_T}$ac_header_compiler" >&6
8340 # Is the header present?
8341 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8342 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8343 cat >conftest.$ac_ext <<_ACEOF
8344 #line $LINENO "configure"
8347 cat confdefs.h >>conftest.$ac_ext
8348 cat >>conftest.$ac_ext <<_ACEOF
8349 /* end confdefs.h. */
8350 #include <$ac_header>
8352 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8353 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8355 grep -v '^ *+' conftest.er1 >conftest.err
8357 cat conftest.err >&5
8358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8359 (exit $ac_status); } >/dev/null; then
8360 if test -s conftest.err; then
8361 ac_cpp_err=$ac_cxx_preproc_warn_flag
8368 if test -z "$ac_cpp_err"; then
8369 ac_header_preproc=yes
8371 echo "$as_me: failed program was:" >&5
8372 sed 's/^/| /' conftest.$ac_ext >&5
8374 ac_header_preproc=no
8376 rm -f conftest.err conftest.$ac_ext
8377 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8378 echo "${ECHO_T}$ac_header_preproc" >&6
8380 # So? What about this header?
8381 case $ac_header_compiler:$ac_header_preproc in
8383 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8384 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8385 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8386 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8389 ## ------------------------------------ ##
8390 ## Report this to bug-autoconf@gnu.org. ##
8391 ## ------------------------------------ ##
8394 sed "s/^/$as_me: WARNING: /" >&2
8397 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8398 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8399 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8400 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8401 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8402 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8405 ## ------------------------------------ ##
8406 ## Report this to bug-autoconf@gnu.org. ##
8407 ## ------------------------------------ ##
8410 sed "s/^/$as_me: WARNING: /" >&2
8413 echo "$as_me:$LINENO: checking for $ac_header" >&5
8414 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8415 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8416 echo $ECHO_N "(cached) $ECHO_C" >&6
8418 eval "$as_ac_Header=$ac_header_preproc"
8420 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8421 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8424 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8425 cat >>confdefs.h <<_ACEOF
8426 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8434 for ac_header in unistd.h
8436 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8437 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8438 echo "$as_me:$LINENO: checking for $ac_header" >&5
8439 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8440 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8441 echo $ECHO_N "(cached) $ECHO_C" >&6
8443 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8444 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8446 # Is the header compilable?
8447 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8448 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8449 cat >conftest.$ac_ext <<_ACEOF
8450 #line $LINENO "configure"
8453 cat confdefs.h >>conftest.$ac_ext
8454 cat >>conftest.$ac_ext <<_ACEOF
8455 /* end confdefs.h. */
8456 $ac_includes_default
8457 #include <$ac_header>
8459 rm -f conftest.$ac_objext
8460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8461 (eval $ac_compile) 2>&5
8463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8464 (exit $ac_status); } &&
8465 { ac_try='test -s conftest.$ac_objext'
8466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8470 (exit $ac_status); }; }; then
8471 ac_header_compiler=yes
8473 echo "$as_me: failed program was:" >&5
8474 sed 's/^/| /' conftest.$ac_ext >&5
8476 ac_header_compiler=no
8478 rm -f conftest.$ac_objext conftest.$ac_ext
8479 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8480 echo "${ECHO_T}$ac_header_compiler" >&6
8482 # Is the header present?
8483 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8484 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8485 cat >conftest.$ac_ext <<_ACEOF
8486 #line $LINENO "configure"
8489 cat confdefs.h >>conftest.$ac_ext
8490 cat >>conftest.$ac_ext <<_ACEOF
8491 /* end confdefs.h. */
8492 #include <$ac_header>
8494 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8495 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8497 grep -v '^ *+' conftest.er1 >conftest.err
8499 cat conftest.err >&5
8500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8501 (exit $ac_status); } >/dev/null; then
8502 if test -s conftest.err; then
8503 ac_cpp_err=$ac_cxx_preproc_warn_flag
8510 if test -z "$ac_cpp_err"; then
8511 ac_header_preproc=yes
8513 echo "$as_me: failed program was:" >&5
8514 sed 's/^/| /' conftest.$ac_ext >&5
8516 ac_header_preproc=no
8518 rm -f conftest.err conftest.$ac_ext
8519 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8520 echo "${ECHO_T}$ac_header_preproc" >&6
8522 # So? What about this header?
8523 case $ac_header_compiler:$ac_header_preproc in
8525 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8526 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8527 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8528 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8531 ## ------------------------------------ ##
8532 ## Report this to bug-autoconf@gnu.org. ##
8533 ## ------------------------------------ ##
8536 sed "s/^/$as_me: WARNING: /" >&2
8539 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8540 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8541 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8542 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8543 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8544 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8547 ## ------------------------------------ ##
8548 ## Report this to bug-autoconf@gnu.org. ##
8549 ## ------------------------------------ ##
8552 sed "s/^/$as_me: WARNING: /" >&2
8555 echo "$as_me:$LINENO: checking for $ac_header" >&5
8556 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8557 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8558 echo $ECHO_N "(cached) $ECHO_C" >&6
8560 eval "$as_ac_Header=$ac_header_preproc"
8562 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8563 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8566 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8567 cat >>confdefs.h <<_ACEOF
8568 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8575 if test "${ac_cv_header_sys_socket_h+set}" = set; then
8576 echo "$as_me:$LINENO: checking for sys/socket.h" >&5
8577 echo $ECHO_N "checking for sys/socket.h... $ECHO_C" >&6
8578 if test "${ac_cv_header_sys_socket_h+set}" = set; then
8579 echo $ECHO_N "(cached) $ECHO_C" >&6
8581 echo "$as_me:$LINENO: result: $ac_cv_header_sys_socket_h" >&5
8582 echo "${ECHO_T}$ac_cv_header_sys_socket_h" >&6
8584 # Is the header compilable?
8585 echo "$as_me:$LINENO: checking sys/socket.h usability" >&5
8586 echo $ECHO_N "checking sys/socket.h usability... $ECHO_C" >&6
8587 cat >conftest.$ac_ext <<_ACEOF
8588 #line $LINENO "configure"
8591 cat confdefs.h >>conftest.$ac_ext
8592 cat >>conftest.$ac_ext <<_ACEOF
8593 /* end confdefs.h. */
8594 $ac_includes_default
8595 #include <sys/socket.h>
8597 rm -f conftest.$ac_objext
8598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8599 (eval $ac_compile) 2>&5
8601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8602 (exit $ac_status); } &&
8603 { ac_try='test -s conftest.$ac_objext'
8604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8608 (exit $ac_status); }; }; then
8609 ac_header_compiler=yes
8611 echo "$as_me: failed program was:" >&5
8612 sed 's/^/| /' conftest.$ac_ext >&5
8614 ac_header_compiler=no
8616 rm -f conftest.$ac_objext conftest.$ac_ext
8617 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8618 echo "${ECHO_T}$ac_header_compiler" >&6
8620 # Is the header present?
8621 echo "$as_me:$LINENO: checking sys/socket.h presence" >&5
8622 echo $ECHO_N "checking sys/socket.h presence... $ECHO_C" >&6
8623 cat >conftest.$ac_ext <<_ACEOF
8624 #line $LINENO "configure"
8627 cat confdefs.h >>conftest.$ac_ext
8628 cat >>conftest.$ac_ext <<_ACEOF
8629 /* end confdefs.h. */
8630 #include <sys/socket.h>
8632 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8633 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8635 grep -v '^ *+' conftest.er1 >conftest.err
8637 cat conftest.err >&5
8638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8639 (exit $ac_status); } >/dev/null; then
8640 if test -s conftest.err; then
8641 ac_cpp_err=$ac_cxx_preproc_warn_flag
8648 if test -z "$ac_cpp_err"; then
8649 ac_header_preproc=yes
8651 echo "$as_me: failed program was:" >&5
8652 sed 's/^/| /' conftest.$ac_ext >&5
8654 ac_header_preproc=no
8656 rm -f conftest.err conftest.$ac_ext
8657 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8658 echo "${ECHO_T}$ac_header_preproc" >&6
8660 # So? What about this header?
8661 case $ac_header_compiler:$ac_header_preproc in
8663 { echo "$as_me:$LINENO: WARNING: sys/socket.h: accepted by the compiler, rejected by the preprocessor!" >&5
8664 echo "$as_me: WARNING: sys/socket.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8665 { echo "$as_me:$LINENO: WARNING: sys/socket.h: proceeding with the preprocessor's result" >&5
8666 echo "$as_me: WARNING: sys/socket.h: proceeding with the preprocessor's result" >&2;}
8669 ## ------------------------------------ ##
8670 ## Report this to bug-autoconf@gnu.org. ##
8671 ## ------------------------------------ ##
8674 sed "s/^/$as_me: WARNING: /" >&2
8677 { echo "$as_me:$LINENO: WARNING: sys/socket.h: present but cannot be compiled" >&5
8678 echo "$as_me: WARNING: sys/socket.h: present but cannot be compiled" >&2;}
8679 { echo "$as_me:$LINENO: WARNING: sys/socket.h: check for missing prerequisite headers?" >&5
8680 echo "$as_me: WARNING: sys/socket.h: check for missing prerequisite headers?" >&2;}
8681 { echo "$as_me:$LINENO: WARNING: sys/socket.h: proceeding with the preprocessor's result" >&5
8682 echo "$as_me: WARNING: sys/socket.h: proceeding with the preprocessor's result" >&2;}
8685 ## ------------------------------------ ##
8686 ## Report this to bug-autoconf@gnu.org. ##
8687 ## ------------------------------------ ##
8690 sed "s/^/$as_me: WARNING: /" >&2
8693 echo "$as_me:$LINENO: checking for sys/socket.h" >&5
8694 echo $ECHO_N "checking for sys/socket.h... $ECHO_C" >&6
8695 if test "${ac_cv_header_sys_socket_h+set}" = set; then
8696 echo $ECHO_N "(cached) $ECHO_C" >&6
8698 ac_cv_header_sys_socket_h=$ac_header_preproc
8700 echo "$as_me:$LINENO: result: $ac_cv_header_sys_socket_h" >&5
8701 echo "${ECHO_T}$ac_cv_header_sys_socket_h" >&6
8704 if test $ac_cv_header_sys_socket_h = yes; then
8705 cat >>confdefs.h <<\_ACEOF
8706 #define SOCKET_AVAIL 1
8709 cat >>confdefs.h <<\_ACEOF
8710 #define HAVE_SYS_SOCKET_H 1
8713 cat >conftest.$ac_ext <<_ACEOF
8714 #line $LINENO "configure"
8717 cat confdefs.h >>conftest.$ac_ext
8718 cat >>conftest.$ac_ext <<_ACEOF
8719 /* end confdefs.h. */
8720 #include <sys/socket.h>
8723 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8724 $EGREP "socklen_t" >/dev/null 2>&1; then
8725 cat >>confdefs.h <<_ACEOF
8726 #define SOCKLEN_T socklen_t
8730 cat >>confdefs.h <<_ACEOF
8731 #define SOCKLEN_T uint
8741 if test "${ac_cv_header_dlfcn_h+set}" = set; then
8742 echo "$as_me:$LINENO: checking for dlfcn.h" >&5
8743 echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6
8744 if test "${ac_cv_header_dlfcn_h+set}" = set; then
8745 echo $ECHO_N "(cached) $ECHO_C" >&6
8747 echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
8748 echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6
8750 # Is the header compilable?
8751 echo "$as_me:$LINENO: checking dlfcn.h usability" >&5
8752 echo $ECHO_N "checking dlfcn.h usability... $ECHO_C" >&6
8753 cat >conftest.$ac_ext <<_ACEOF
8754 #line $LINENO "configure"
8757 cat confdefs.h >>conftest.$ac_ext
8758 cat >>conftest.$ac_ext <<_ACEOF
8759 /* end confdefs.h. */
8760 $ac_includes_default
8763 rm -f conftest.$ac_objext
8764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8765 (eval $ac_compile) 2>&5
8767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8768 (exit $ac_status); } &&
8769 { ac_try='test -s conftest.$ac_objext'
8770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8774 (exit $ac_status); }; }; then
8775 ac_header_compiler=yes
8777 echo "$as_me: failed program was:" >&5
8778 sed 's/^/| /' conftest.$ac_ext >&5
8780 ac_header_compiler=no
8782 rm -f conftest.$ac_objext conftest.$ac_ext
8783 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8784 echo "${ECHO_T}$ac_header_compiler" >&6
8786 # Is the header present?
8787 echo "$as_me:$LINENO: checking dlfcn.h presence" >&5
8788 echo $ECHO_N "checking dlfcn.h presence... $ECHO_C" >&6
8789 cat >conftest.$ac_ext <<_ACEOF
8790 #line $LINENO "configure"
8793 cat confdefs.h >>conftest.$ac_ext
8794 cat >>conftest.$ac_ext <<_ACEOF
8795 /* end confdefs.h. */
8798 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8799 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8801 grep -v '^ *+' conftest.er1 >conftest.err
8803 cat conftest.err >&5
8804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8805 (exit $ac_status); } >/dev/null; then
8806 if test -s conftest.err; then
8807 ac_cpp_err=$ac_cxx_preproc_warn_flag
8814 if test -z "$ac_cpp_err"; then
8815 ac_header_preproc=yes
8817 echo "$as_me: failed program was:" >&5
8818 sed 's/^/| /' conftest.$ac_ext >&5
8820 ac_header_preproc=no
8822 rm -f conftest.err conftest.$ac_ext
8823 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8824 echo "${ECHO_T}$ac_header_preproc" >&6
8826 # So? What about this header?
8827 case $ac_header_compiler:$ac_header_preproc in
8829 { echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5
8830 echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8831 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5
8832 echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;}
8835 ## ------------------------------------ ##
8836 ## Report this to bug-autoconf@gnu.org. ##
8837 ## ------------------------------------ ##
8840 sed "s/^/$as_me: WARNING: /" >&2
8843 { echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5
8844 echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;}
8845 { echo "$as_me:$LINENO: WARNING: dlfcn.h: check for missing prerequisite headers?" >&5
8846 echo "$as_me: WARNING: dlfcn.h: check for missing prerequisite headers?" >&2;}
8847 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5
8848 echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;}
8851 ## ------------------------------------ ##
8852 ## Report this to bug-autoconf@gnu.org. ##
8853 ## ------------------------------------ ##
8856 sed "s/^/$as_me: WARNING: /" >&2
8859 echo "$as_me:$LINENO: checking for dlfcn.h" >&5
8860 echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6
8861 if test "${ac_cv_header_dlfcn_h+set}" = set; then
8862 echo $ECHO_N "(cached) $ECHO_C" >&6
8864 ac_cv_header_dlfcn_h=$ac_header_preproc
8866 echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
8867 echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6
8878 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8879 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8880 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8881 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
8882 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8883 echo $ECHO_N "(cached) $ECHO_C" >&6
8885 cat >conftest.$ac_ext <<_ACEOF
8886 #line $LINENO "configure"
8889 cat confdefs.h >>conftest.$ac_ext
8890 cat >>conftest.$ac_ext <<_ACEOF
8891 /* end confdefs.h. */
8892 #include <sys/types.h>
8904 rm -f conftest.$ac_objext
8905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8906 (eval $ac_compile) 2>&5
8908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8909 (exit $ac_status); } &&
8910 { ac_try='test -s conftest.$ac_objext'
8911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8915 (exit $ac_status); }; }; then
8916 eval "$as_ac_Header=yes"
8918 echo "$as_me: failed program was:" >&5
8919 sed 's/^/| /' conftest.$ac_ext >&5
8921 eval "$as_ac_Header=no"
8923 rm -f conftest.$ac_objext conftest.$ac_ext
8925 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8926 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8927 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8928 cat >>confdefs.h <<_ACEOF
8929 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8932 ac_header_dirent=$ac_hdr; break
8936 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8937 if test $ac_header_dirent = dirent.h; then
8938 echo "$as_me:$LINENO: checking for library containing opendir" >&5
8939 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
8940 if test "${ac_cv_search_opendir+set}" = set; then
8941 echo $ECHO_N "(cached) $ECHO_C" >&6
8943 ac_func_search_save_LIBS=$LIBS
8944 ac_cv_search_opendir=no
8945 cat >conftest.$ac_ext <<_ACEOF
8946 #line $LINENO "configure"
8949 cat confdefs.h >>conftest.$ac_ext
8950 cat >>conftest.$ac_ext <<_ACEOF
8951 /* end confdefs.h. */
8953 /* Override any gcc2 internal prototype to avoid an error. */
8957 /* We use char because int might match the return type of a gcc2
8958 builtin and then its argument prototype would still apply. */
8968 rm -f conftest.$ac_objext conftest$ac_exeext
8969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8970 (eval $ac_link) 2>&5
8972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8973 (exit $ac_status); } &&
8974 { ac_try='test -s conftest$ac_exeext'
8975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8979 (exit $ac_status); }; }; then
8980 ac_cv_search_opendir="none required"
8982 echo "$as_me: failed program was:" >&5
8983 sed 's/^/| /' conftest.$ac_ext >&5
8986 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8987 if test "$ac_cv_search_opendir" = no; then
8988 for ac_lib in dir; do
8989 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8990 cat >conftest.$ac_ext <<_ACEOF
8991 #line $LINENO "configure"
8994 cat confdefs.h >>conftest.$ac_ext
8995 cat >>conftest.$ac_ext <<_ACEOF
8996 /* end confdefs.h. */
8998 /* Override any gcc2 internal prototype to avoid an error. */
9002 /* We use char because int might match the return type of a gcc2
9003 builtin and then its argument prototype would still apply. */
9013 rm -f conftest.$ac_objext conftest$ac_exeext
9014 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9015 (eval $ac_link) 2>&5
9017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9018 (exit $ac_status); } &&
9019 { ac_try='test -s conftest$ac_exeext'
9020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9024 (exit $ac_status); }; }; then
9025 ac_cv_search_opendir="-l$ac_lib"
9028 echo "$as_me: failed program was:" >&5
9029 sed 's/^/| /' conftest.$ac_ext >&5
9032 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9035 LIBS=$ac_func_search_save_LIBS
9037 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9038 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9039 if test "$ac_cv_search_opendir" != no; then
9040 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9045 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9046 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9047 if test "${ac_cv_search_opendir+set}" = set; then
9048 echo $ECHO_N "(cached) $ECHO_C" >&6
9050 ac_func_search_save_LIBS=$LIBS
9051 ac_cv_search_opendir=no
9052 cat >conftest.$ac_ext <<_ACEOF
9053 #line $LINENO "configure"
9056 cat confdefs.h >>conftest.$ac_ext
9057 cat >>conftest.$ac_ext <<_ACEOF
9058 /* end confdefs.h. */
9060 /* Override any gcc2 internal prototype to avoid an error. */
9064 /* We use char because int might match the return type of a gcc2
9065 builtin and then its argument prototype would still apply. */
9075 rm -f conftest.$ac_objext conftest$ac_exeext
9076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9077 (eval $ac_link) 2>&5
9079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9080 (exit $ac_status); } &&
9081 { ac_try='test -s conftest$ac_exeext'
9082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9086 (exit $ac_status); }; }; then
9087 ac_cv_search_opendir="none required"
9089 echo "$as_me: failed program was:" >&5
9090 sed 's/^/| /' conftest.$ac_ext >&5
9093 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9094 if test "$ac_cv_search_opendir" = no; then
9096 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9097 cat >conftest.$ac_ext <<_ACEOF
9098 #line $LINENO "configure"
9101 cat confdefs.h >>conftest.$ac_ext
9102 cat >>conftest.$ac_ext <<_ACEOF
9103 /* end confdefs.h. */
9105 /* Override any gcc2 internal prototype to avoid an error. */
9109 /* We use char because int might match the return type of a gcc2
9110 builtin and then its argument prototype would still apply. */
9120 rm -f conftest.$ac_objext conftest$ac_exeext
9121 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9122 (eval $ac_link) 2>&5
9124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9125 (exit $ac_status); } &&
9126 { ac_try='test -s conftest$ac_exeext'
9127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9131 (exit $ac_status); }; }; then
9132 ac_cv_search_opendir="-l$ac_lib"
9135 echo "$as_me: failed program was:" >&5
9136 sed 's/^/| /' conftest.$ac_ext >&5
9139 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9142 LIBS=$ac_func_search_save_LIBS
9144 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9145 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9146 if test "$ac_cv_search_opendir" != no; then
9147 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9154 # This must be after CXXCPP
9156 echo "$as_me:$LINENO: checking which header file defines FD_ macros" >&5
9157 echo $ECHO_N "checking which header file defines FD_ macros... $ECHO_C" >&6
9158 if test "${ucsim_cv_fd+set}" = set; then
9159 echo $ECHO_N "(cached) $ECHO_C" >&6
9161 ucsim_cv_fd="unknown"
9162 cat >conftest.$ac_ext <<_ACEOF
9163 #line $LINENO "configure"
9166 cat confdefs.h >>conftest.$ac_ext
9167 cat >>conftest.$ac_ext <<_ACEOF
9168 /* end confdefs.h. */
9170 #include <sys/time.h>
9175 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9176 $EGREP "yes" >/dev/null 2>&1; then
9177 ucsim_cv_fd="<sys/time.h>"
9181 cat >conftest.$ac_ext <<_ACEOF
9182 #line $LINENO "configure"
9185 cat confdefs.h >>conftest.$ac_ext
9186 cat >>conftest.$ac_ext <<_ACEOF
9187 /* end confdefs.h. */
9189 #include <sys/types.h>
9194 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9195 $EGREP "yes" >/dev/null 2>&1; then
9196 ucsim_cv_fd="<sys/types.h>"
9200 cat >conftest.$ac_ext <<_ACEOF
9201 #line $LINENO "configure"
9204 cat confdefs.h >>conftest.$ac_ext
9205 cat >>conftest.$ac_ext <<_ACEOF
9206 /* end confdefs.h. */
9208 #include <sys/select.h>
9213 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9214 $EGREP "yes" >/dev/null 2>&1; then
9215 ucsim_cv_fd="<sys/types.h>"
9220 echo "$as_me:$LINENO: result: $ucsim_cv_fd" >&5
9221 echo "${ECHO_T}$ucsim_cv_fd" >&6
9223 cat >>confdefs.h <<\_ACEOF
9224 #define FD_HEADER_OK 0
9227 if echo $ucsim_cv_fd|grep time >/dev/null 2>&1; then
9228 cat >>confdefs.h <<\_ACEOF
9229 #define FD_NEED_TIME_H 1
9232 cat >>confdefs.h <<\_ACEOF
9233 #define FD_HEADER_OK 1
9237 cat >>confdefs.h <<\_ACEOF
9238 #define FD_NEED_TIME_H 0
9242 if echo $ucsim_cv_fd|grep types >/dev/null 2>&1; then
9243 cat >>confdefs.h <<\_ACEOF
9244 #define FD_NEED_TYPES_H 1
9247 cat >>confdefs.h <<\_ACEOF
9248 #define FD_HEADER_OK 1
9252 cat >>confdefs.h <<\_ACEOF
9253 #define FD_NEED_TYPES_H 0
9257 if echo $ucsim_cv_fd|grep select >/dev/null 2>&1; then
9258 cat >>confdefs.h <<\_ACEOF
9259 #define FD_NEED_SELECT_H 1
9262 cat >>confdefs.h <<\_ACEOF
9263 #define FD_HEADER_OK 1
9267 cat >>confdefs.h <<\_ACEOF
9268 #define FD_NEED_SELECT_H 0
9273 cat >>confdefs.h <<_ACEOF
9274 #define HEADER_FD ${ucsim_cv_fd}
9279 # Checking for functions/libs
9280 # ===========================================================================
9282 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
9283 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
9284 if test "${ac_cv_lib_socket_socket+set}" = set; then
9285 echo $ECHO_N "(cached) $ECHO_C" >&6
9287 ac_check_lib_save_LIBS=$LIBS
9288 LIBS="-lsocket $LIBS"
9289 cat >conftest.$ac_ext <<_ACEOF
9290 #line $LINENO "configure"
9293 cat confdefs.h >>conftest.$ac_ext
9294 cat >>conftest.$ac_ext <<_ACEOF
9295 /* end confdefs.h. */
9297 /* Override any gcc2 internal prototype to avoid an error. */
9301 /* We use char because int might match the return type of a gcc2
9302 builtin and then its argument prototype would still apply. */
9312 rm -f conftest.$ac_objext conftest$ac_exeext
9313 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9314 (eval $ac_link) 2>&5
9316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9317 (exit $ac_status); } &&
9318 { ac_try='test -s conftest$ac_exeext'
9319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9323 (exit $ac_status); }; }; then
9324 ac_cv_lib_socket_socket=yes
9326 echo "$as_me: failed program was:" >&5
9327 sed 's/^/| /' conftest.$ac_ext >&5
9329 ac_cv_lib_socket_socket=no
9331 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9332 LIBS=$ac_check_lib_save_LIBS
9334 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
9335 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
9336 if test $ac_cv_lib_socket_socket = yes; then
9337 cat >>confdefs.h <<_ACEOF
9338 #define HAVE_LIBSOCKET 1
9341 LIBS="-lsocket $LIBS"
9346 echo "$as_me:$LINENO: checking for xdr_short in -lnsl" >&5
9347 echo $ECHO_N "checking for xdr_short in -lnsl... $ECHO_C" >&6
9348 if test "${ac_cv_lib_nsl_xdr_short+set}" = set; then
9349 echo $ECHO_N "(cached) $ECHO_C" >&6
9351 ac_check_lib_save_LIBS=$LIBS
9353 cat >conftest.$ac_ext <<_ACEOF
9354 #line $LINENO "configure"
9357 cat confdefs.h >>conftest.$ac_ext
9358 cat >>conftest.$ac_ext <<_ACEOF
9359 /* end confdefs.h. */
9361 /* Override any gcc2 internal prototype to avoid an error. */
9365 /* We use char because int might match the return type of a gcc2
9366 builtin and then its argument prototype would still apply. */
9376 rm -f conftest.$ac_objext conftest$ac_exeext
9377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9378 (eval $ac_link) 2>&5
9380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9381 (exit $ac_status); } &&
9382 { ac_try='test -s conftest$ac_exeext'
9383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9387 (exit $ac_status); }; }; then
9388 ac_cv_lib_nsl_xdr_short=yes
9390 echo "$as_me: failed program was:" >&5
9391 sed 's/^/| /' conftest.$ac_ext >&5
9393 ac_cv_lib_nsl_xdr_short=no
9395 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9396 LIBS=$ac_check_lib_save_LIBS
9398 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_xdr_short" >&5
9399 echo "${ECHO_T}$ac_cv_lib_nsl_xdr_short" >&6
9400 if test $ac_cv_lib_nsl_xdr_short = yes; then
9401 cat >>confdefs.h <<_ACEOF
9402 #define HAVE_LIBNSL 1
9409 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9410 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9411 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9412 echo $ECHO_N "(cached) $ECHO_C" >&6
9414 ac_check_lib_save_LIBS=$LIBS
9416 cat >conftest.$ac_ext <<_ACEOF
9417 #line $LINENO "configure"
9420 cat confdefs.h >>conftest.$ac_ext
9421 cat >>conftest.$ac_ext <<_ACEOF
9422 /* end confdefs.h. */
9424 /* Override any gcc2 internal prototype to avoid an error. */
9428 /* We use char because int might match the return type of a gcc2
9429 builtin and then its argument prototype would still apply. */
9439 rm -f conftest.$ac_objext conftest$ac_exeext
9440 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9441 (eval $ac_link) 2>&5
9443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9444 (exit $ac_status); } &&
9445 { ac_try='test -s conftest$ac_exeext'
9446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9450 (exit $ac_status); }; }; then
9451 ac_cv_lib_dl_dlopen=yes
9453 echo "$as_me: failed program was:" >&5
9454 sed 's/^/| /' conftest.$ac_ext >&5
9456 ac_cv_lib_dl_dlopen=no
9458 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9459 LIBS=$ac_check_lib_save_LIBS
9461 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9462 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9463 if test $ac_cv_lib_dl_dlopen = yes; then
9473 echo "$as_me:$LINENO: checking for panel_above in -lpanel" >&5
9474 echo $ECHO_N "checking for panel_above in -lpanel... $ECHO_C" >&6
9475 if test "${ac_cv_lib_panel_panel_above+set}" = set; then
9476 echo $ECHO_N "(cached) $ECHO_C" >&6
9478 ac_check_lib_save_LIBS=$LIBS
9479 LIBS="-lpanel -lcurses $LIBS"
9480 cat >conftest.$ac_ext <<_ACEOF
9481 #line $LINENO "configure"
9484 cat confdefs.h >>conftest.$ac_ext
9485 cat >>conftest.$ac_ext <<_ACEOF
9486 /* end confdefs.h. */
9488 /* Override any gcc2 internal prototype to avoid an error. */
9492 /* We use char because int might match the return type of a gcc2
9493 builtin and then its argument prototype would still apply. */
9494 char panel_above ();
9503 rm -f conftest.$ac_objext conftest$ac_exeext
9504 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9505 (eval $ac_link) 2>&5
9507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9508 (exit $ac_status); } &&
9509 { ac_try='test -s conftest$ac_exeext'
9510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9514 (exit $ac_status); }; }; then
9515 ac_cv_lib_panel_panel_above=yes
9517 echo "$as_me: failed program was:" >&5
9518 sed 's/^/| /' conftest.$ac_ext >&5
9520 ac_cv_lib_panel_panel_above=no
9522 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9523 LIBS=$ac_check_lib_save_LIBS
9525 echo "$as_me:$LINENO: result: $ac_cv_lib_panel_panel_above" >&5
9526 echo "${ECHO_T}$ac_cv_lib_panel_panel_above" >&6
9527 if test $ac_cv_lib_panel_panel_above = yes; then
9530 CURSES_LIBS="-lpanel -lcurses"
9534 echo "$as_me:$LINENO: checking for nl in -lcurses" >&5
9535 echo $ECHO_N "checking for nl in -lcurses... $ECHO_C" >&6
9536 if test "${ac_cv_lib_curses_nl+set}" = set; then
9537 echo $ECHO_N "(cached) $ECHO_C" >&6
9539 ac_check_lib_save_LIBS=$LIBS
9540 LIBS="-lcurses $LIBS"
9541 cat >conftest.$ac_ext <<_ACEOF
9542 #line $LINENO "configure"
9545 cat confdefs.h >>conftest.$ac_ext
9546 cat >>conftest.$ac_ext <<_ACEOF
9547 /* end confdefs.h. */
9549 /* Override any gcc2 internal prototype to avoid an error. */
9553 /* We use char because int might match the return type of a gcc2
9554 builtin and then its argument prototype would still apply. */
9564 rm -f conftest.$ac_objext conftest$ac_exeext
9565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9566 (eval $ac_link) 2>&5
9568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9569 (exit $ac_status); } &&
9570 { ac_try='test -s conftest$ac_exeext'
9571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9575 (exit $ac_status); }; }; then
9576 ac_cv_lib_curses_nl=yes
9578 echo "$as_me: failed program was:" >&5
9579 sed 's/^/| /' conftest.$ac_ext >&5
9581 ac_cv_lib_curses_nl=no
9583 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9584 LIBS=$ac_check_lib_save_LIBS
9586 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_nl" >&5
9587 echo "${ECHO_T}$ac_cv_lib_curses_nl" >&6
9588 if test $ac_cv_lib_curses_nl = yes; then
9590 CURSES_LIBS="-lcurses"
9604 for ac_func in vprintf
9606 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9607 echo "$as_me:$LINENO: checking for $ac_func" >&5
9608 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9609 if eval "test \"\${$as_ac_var+set}\" = set"; then
9610 echo $ECHO_N "(cached) $ECHO_C" >&6
9612 cat >conftest.$ac_ext <<_ACEOF
9613 #line $LINENO "configure"
9616 cat confdefs.h >>conftest.$ac_ext
9617 cat >>conftest.$ac_ext <<_ACEOF
9618 /* end confdefs.h. */
9619 /* System header to define __stub macros and hopefully few prototypes,
9620 which can conflict with char $ac_func (); below.
9621 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9622 <limits.h> exists even on freestanding compilers. */
9624 # include <limits.h>
9626 # include <assert.h>
9628 /* Override any gcc2 internal prototype to avoid an error. */
9633 /* We use char because int might match the return type of a gcc2
9634 builtin and then its argument prototype would still apply. */
9636 /* The GNU C library defines this for functions which it implements
9637 to always fail with ENOSYS. Some functions are actually named
9638 something starting with __ and the normal name is an alias. */
9639 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9642 char (*f) () = $ac_func;
9651 return f != $ac_func;
9656 rm -f conftest.$ac_objext conftest$ac_exeext
9657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9658 (eval $ac_link) 2>&5
9660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9661 (exit $ac_status); } &&
9662 { ac_try='test -s conftest$ac_exeext'
9663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9667 (exit $ac_status); }; }; then
9668 eval "$as_ac_var=yes"
9670 echo "$as_me: failed program was:" >&5
9671 sed 's/^/| /' conftest.$ac_ext >&5
9673 eval "$as_ac_var=no"
9675 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9677 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9678 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9679 if test `eval echo '${'$as_ac_var'}'` = yes; then
9680 cat >>confdefs.h <<_ACEOF
9681 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9684 echo "$as_me:$LINENO: checking for _doprnt" >&5
9685 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
9686 if test "${ac_cv_func__doprnt+set}" = set; then
9687 echo $ECHO_N "(cached) $ECHO_C" >&6
9689 cat >conftest.$ac_ext <<_ACEOF
9690 #line $LINENO "configure"
9693 cat confdefs.h >>conftest.$ac_ext
9694 cat >>conftest.$ac_ext <<_ACEOF
9695 /* end confdefs.h. */
9696 /* System header to define __stub macros and hopefully few prototypes,
9697 which can conflict with char _doprnt (); below.
9698 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9699 <limits.h> exists even on freestanding compilers. */
9701 # include <limits.h>
9703 # include <assert.h>
9705 /* Override any gcc2 internal prototype to avoid an error. */
9710 /* We use char because int might match the return type of a gcc2
9711 builtin and then its argument prototype would still apply. */
9713 /* The GNU C library defines this for functions which it implements
9714 to always fail with ENOSYS. Some functions are actually named
9715 something starting with __ and the normal name is an alias. */
9716 #if defined (__stub__doprnt) || defined (__stub____doprnt)
9719 char (*f) () = _doprnt;
9728 return f != _doprnt;
9733 rm -f conftest.$ac_objext conftest$ac_exeext
9734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9735 (eval $ac_link) 2>&5
9737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9738 (exit $ac_status); } &&
9739 { ac_try='test -s conftest$ac_exeext'
9740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9744 (exit $ac_status); }; }; then
9745 ac_cv_func__doprnt=yes
9747 echo "$as_me: failed program was:" >&5
9748 sed 's/^/| /' conftest.$ac_ext >&5
9750 ac_cv_func__doprnt=no
9752 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9754 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
9755 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
9756 if test $ac_cv_func__doprnt = yes; then
9758 cat >>confdefs.h <<\_ACEOF
9759 #define HAVE_DOPRNT 1
9770 for ac_func in vsnprintf vasprintf
9772 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9773 echo "$as_me:$LINENO: checking for $ac_func" >&5
9774 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9775 if eval "test \"\${$as_ac_var+set}\" = set"; then
9776 echo $ECHO_N "(cached) $ECHO_C" >&6
9778 cat >conftest.$ac_ext <<_ACEOF
9779 #line $LINENO "configure"
9782 cat confdefs.h >>conftest.$ac_ext
9783 cat >>conftest.$ac_ext <<_ACEOF
9784 /* end confdefs.h. */
9785 /* System header to define __stub macros and hopefully few prototypes,
9786 which can conflict with char $ac_func (); below.
9787 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9788 <limits.h> exists even on freestanding compilers. */
9790 # include <limits.h>
9792 # include <assert.h>
9794 /* Override any gcc2 internal prototype to avoid an error. */
9799 /* We use char because int might match the return type of a gcc2
9800 builtin and then its argument prototype would still apply. */
9802 /* The GNU C library defines this for functions which it implements
9803 to always fail with ENOSYS. Some functions are actually named
9804 something starting with __ and the normal name is an alias. */
9805 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9808 char (*f) () = $ac_func;
9817 return f != $ac_func;
9822 rm -f conftest.$ac_objext conftest$ac_exeext
9823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9824 (eval $ac_link) 2>&5
9826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9827 (exit $ac_status); } &&
9828 { ac_try='test -s conftest$ac_exeext'
9829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9833 (exit $ac_status); }; }; then
9834 eval "$as_ac_var=yes"
9836 echo "$as_me: failed program was:" >&5
9837 sed 's/^/| /' conftest.$ac_ext >&5
9839 eval "$as_ac_var=no"
9841 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9843 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9844 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9845 if test `eval echo '${'$as_ac_var'}'` = yes; then
9846 cat >>confdefs.h <<_ACEOF
9847 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9861 for ac_func in strlen strcpy strcat strstr strcmp strerror strtok strdup
9863 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9864 echo "$as_me:$LINENO: checking for $ac_func" >&5
9865 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9866 if eval "test \"\${$as_ac_var+set}\" = set"; then
9867 echo $ECHO_N "(cached) $ECHO_C" >&6
9869 cat >conftest.$ac_ext <<_ACEOF
9870 #line $LINENO "configure"
9873 cat confdefs.h >>conftest.$ac_ext
9874 cat >>conftest.$ac_ext <<_ACEOF
9875 /* end confdefs.h. */
9876 /* System header to define __stub macros and hopefully few prototypes,
9877 which can conflict with char $ac_func (); below.
9878 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9879 <limits.h> exists even on freestanding compilers. */
9881 # include <limits.h>
9883 # include <assert.h>
9885 /* Override any gcc2 internal prototype to avoid an error. */
9890 /* We use char because int might match the return type of a gcc2
9891 builtin and then its argument prototype would still apply. */
9893 /* The GNU C library defines this for functions which it implements
9894 to always fail with ENOSYS. Some functions are actually named
9895 something starting with __ and the normal name is an alias. */
9896 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9899 char (*f) () = $ac_func;
9908 return f != $ac_func;
9913 rm -f conftest.$ac_objext conftest$ac_exeext
9914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9915 (eval $ac_link) 2>&5
9917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9918 (exit $ac_status); } &&
9919 { ac_try='test -s conftest$ac_exeext'
9920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9924 (exit $ac_status); }; }; then
9925 eval "$as_ac_var=yes"
9927 echo "$as_me: failed program was:" >&5
9928 sed 's/^/| /' conftest.$ac_ext >&5
9930 eval "$as_ac_var=no"
9932 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9934 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9935 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9936 if test `eval echo '${'$as_ac_var'}'` = yes; then
9937 cat >>confdefs.h <<_ACEOF
9938 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9946 for ac_func in strchr memcpy
9948 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9949 echo "$as_me:$LINENO: checking for $ac_func" >&5
9950 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9951 if eval "test \"\${$as_ac_var+set}\" = set"; then
9952 echo $ECHO_N "(cached) $ECHO_C" >&6
9954 cat >conftest.$ac_ext <<_ACEOF
9955 #line $LINENO "configure"
9958 cat confdefs.h >>conftest.$ac_ext
9959 cat >>conftest.$ac_ext <<_ACEOF
9960 /* end confdefs.h. */
9961 /* System header to define __stub macros and hopefully few prototypes,
9962 which can conflict with char $ac_func (); below.
9963 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9964 <limits.h> exists even on freestanding compilers. */
9966 # include <limits.h>
9968 # include <assert.h>
9970 /* Override any gcc2 internal prototype to avoid an error. */
9975 /* We use char because int might match the return type of a gcc2
9976 builtin and then its argument prototype would still apply. */
9978 /* The GNU C library defines this for functions which it implements
9979 to always fail with ENOSYS. Some functions are actually named
9980 something starting with __ and the normal name is an alias. */
9981 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9984 char (*f) () = $ac_func;
9993 return f != $ac_func;
9998 rm -f conftest.$ac_objext conftest$ac_exeext
9999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10000 (eval $ac_link) 2>&5
10002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10003 (exit $ac_status); } &&
10004 { ac_try='test -s conftest$ac_exeext'
10005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10006 (eval $ac_try) 2>&5
10008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10009 (exit $ac_status); }; }; then
10010 eval "$as_ac_var=yes"
10012 echo "$as_me: failed program was:" >&5
10013 sed 's/^/| /' conftest.$ac_ext >&5
10015 eval "$as_ac_var=no"
10017 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10019 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10020 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10021 if test `eval echo '${'$as_ac_var'}'` = yes; then
10022 cat >>confdefs.h <<_ACEOF
10023 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10030 for ac_func in fgets
10032 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10033 echo "$as_me:$LINENO: checking for $ac_func" >&5
10034 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10035 if eval "test \"\${$as_ac_var+set}\" = set"; then
10036 echo $ECHO_N "(cached) $ECHO_C" >&6
10038 cat >conftest.$ac_ext <<_ACEOF
10039 #line $LINENO "configure"
10042 cat confdefs.h >>conftest.$ac_ext
10043 cat >>conftest.$ac_ext <<_ACEOF
10044 /* end confdefs.h. */
10045 /* System header to define __stub macros and hopefully few prototypes,
10046 which can conflict with char $ac_func (); below.
10047 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10048 <limits.h> exists even on freestanding compilers. */
10050 # include <limits.h>
10052 # include <assert.h>
10054 /* Override any gcc2 internal prototype to avoid an error. */
10059 /* We use char because int might match the return type of a gcc2
10060 builtin and then its argument prototype would still apply. */
10062 /* The GNU C library defines this for functions which it implements
10063 to always fail with ENOSYS. Some functions are actually named
10064 something starting with __ and the normal name is an alias. */
10065 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10068 char (*f) () = $ac_func;
10077 return f != $ac_func;
10082 rm -f conftest.$ac_objext conftest$ac_exeext
10083 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10084 (eval $ac_link) 2>&5
10086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10087 (exit $ac_status); } &&
10088 { ac_try='test -s conftest$ac_exeext'
10089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10090 (eval $ac_try) 2>&5
10092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10093 (exit $ac_status); }; }; then
10094 eval "$as_ac_var=yes"
10096 echo "$as_me: failed program was:" >&5
10097 sed 's/^/| /' conftest.$ac_ext >&5
10099 eval "$as_ac_var=no"
10101 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10103 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10104 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10105 if test `eval echo '${'$as_ac_var'}'` = yes; then
10106 cat >>confdefs.h <<_ACEOF
10107 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10114 for ac_func in yylex
10116 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10117 echo "$as_me:$LINENO: checking for $ac_func" >&5
10118 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10119 if eval "test \"\${$as_ac_var+set}\" = set"; then
10120 echo $ECHO_N "(cached) $ECHO_C" >&6
10122 cat >conftest.$ac_ext <<_ACEOF
10123 #line $LINENO "configure"
10126 cat confdefs.h >>conftest.$ac_ext
10127 cat >>conftest.$ac_ext <<_ACEOF
10128 /* end confdefs.h. */
10129 /* System header to define __stub macros and hopefully few prototypes,
10130 which can conflict with char $ac_func (); below.
10131 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10132 <limits.h> exists even on freestanding compilers. */
10134 # include <limits.h>
10136 # include <assert.h>
10138 /* Override any gcc2 internal prototype to avoid an error. */
10143 /* We use char because int might match the return type of a gcc2
10144 builtin and then its argument prototype would still apply. */
10146 /* The GNU C library defines this for functions which it implements
10147 to always fail with ENOSYS. Some functions are actually named
10148 something starting with __ and the normal name is an alias. */
10149 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10152 char (*f) () = $ac_func;
10161 return f != $ac_func;
10166 rm -f conftest.$ac_objext conftest$ac_exeext
10167 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10168 (eval $ac_link) 2>&5
10170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10171 (exit $ac_status); } &&
10172 { ac_try='test -s conftest$ac_exeext'
10173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10174 (eval $ac_try) 2>&5
10176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10177 (exit $ac_status); }; }; then
10178 eval "$as_ac_var=yes"
10180 echo "$as_me: failed program was:" >&5
10181 sed 's/^/| /' conftest.$ac_ext >&5
10183 eval "$as_ac_var=no"
10185 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10187 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10188 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10189 if test `eval echo '${'$as_ac_var'}'` = yes; then
10190 cat >>confdefs.h <<_ACEOF
10191 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10198 echo "$as_me:$LINENO: checking whether scanf knows %a" >&5
10199 echo $ECHO_N "checking whether scanf knows %a... $ECHO_C" >&6
10200 if test "${ucsim_cv_scanf_a+set}" = set; then
10201 echo $ECHO_N "(cached) $ECHO_C" >&6
10203 echo "a b" >conftest.data
10204 if test "$cross_compiling" = yes; then
10205 ucsim_cv_scanf_a="unknown"
10207 cat >conftest.$ac_ext <<_ACEOF
10208 #line $LINENO "configure"
10211 cat confdefs.h >>conftest.$ac_ext
10212 cat >>conftest.$ac_ext <<_ACEOF
10213 /* end confdefs.h. */
10221 if ((f= fopen("conftest.data", "r")) == NULL)
10223 i= fscanf(f, " %a[a-z] ", &a);
10232 rm -f conftest$ac_exeext
10233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10234 (eval $ac_link) 2>&5
10236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10237 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10239 (eval $ac_try) 2>&5
10241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10242 (exit $ac_status); }; }; then
10243 ucsim_cv_scanf_a="yes"
10245 echo "$as_me: program exited with status $ac_status" >&5
10246 echo "$as_me: failed program was:" >&5
10247 sed 's/^/| /' conftest.$ac_ext >&5
10249 ( exit $ac_status )
10250 ucsim_cv_scanf_a="no"
10252 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10256 echo "$as_me:$LINENO: result: $ucsim_cv_scanf_a" >&5
10257 echo "${ECHO_T}$ucsim_cv_scanf_a" >&6
10258 if test "$ucsim_cv_scanf_a" = "yes"; then
10259 cat >>confdefs.h <<\_ACEOF
10265 echo "$as_me:$LINENO: checking whether getcwd is GNUish" >&5
10266 echo $ECHO_N "checking whether getcwd is GNUish... $ECHO_C" >&6
10267 if test "${ucsim_cv_getcwd+set}" = set; then
10268 echo $ECHO_N "(cached) $ECHO_C" >&6
10270 if test "$cross_compiling" = yes; then
10271 ucsim_cv_getcwd="unknown"
10273 cat >conftest.$ac_ext <<_ACEOF
10274 #line $LINENO "configure"
10277 cat confdefs.h >>conftest.$ac_ext
10278 cat >>conftest.$ac_ext <<_ACEOF
10279 /* end confdefs.h. */
10281 #include <unistd.h>
10284 if ((getcwd(NULL, 0)) == NULL)
10289 rm -f conftest$ac_exeext
10290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10291 (eval $ac_link) 2>&5
10293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10294 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10296 (eval $ac_try) 2>&5
10298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10299 (exit $ac_status); }; }; then
10300 ucsim_cv_getcwd="yes"
10302 echo "$as_me: program exited with status $ac_status" >&5
10303 echo "$as_me: failed program was:" >&5
10304 sed 's/^/| /' conftest.$ac_ext >&5
10306 ( exit $ac_status )
10307 ucsim_cv_getcwd="no"
10309 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10313 echo "$as_me:$LINENO: result: $ucsim_cv_getcwd" >&5
10314 echo "${ECHO_T}$ucsim_cv_getcwd" >&6
10315 if test "$ucsim_cv_getcwd" = "yes"; then
10316 cat >>confdefs.h <<\_ACEOF
10317 #define GNU_GETCWD 1
10325 echo "$as_me:$LINENO: checking for type of length pointer parameter of accept" >&5
10326 echo $ECHO_N "checking for type of length pointer parameter of accept... $ECHO_C" >&6
10327 if test "${ucsim_cv_accept_length_type+set}" = set; then
10328 echo $ECHO_N "(cached) $ECHO_C" >&6
10330 ac_save_CPPFLAGS="$CPPFLAGS"
10331 ucsim_cv_accept_length_type=no
10332 for ac_val in int size_t socklen_t; do
10333 CPPFLAGS="$ac_save_CPPFLAGS -DACCEPT_SOCKLEN_T=$ac_val"
10334 cat >conftest.$ac_ext <<_ACEOF
10335 #line $LINENO "configure"
10338 cat confdefs.h >>conftest.$ac_ext
10339 cat >>conftest.$ac_ext <<_ACEOF
10340 /* end confdefs.h. */
10341 #include <sys/types.h>
10342 #include <sys/socket.h>
10346 struct sockaddr a; $ac_val len; accept (0, &a, &len);
10351 rm -f conftest.$ac_objext
10352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10353 (eval $ac_compile) 2>&5
10355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10356 (exit $ac_status); } &&
10357 { ac_try='test -s conftest.$ac_objext'
10358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10359 (eval $ac_try) 2>&5
10361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10362 (exit $ac_status); }; }; then
10363 ucsim_cv_accept_length_type=$ac_val; break
10365 echo "$as_me: failed program was:" >&5
10366 sed 's/^/| /' conftest.$ac_ext >&5
10369 rm -f conftest.$ac_objext conftest.$ac_ext
10371 CPPFLAGS="$ac_save_CPPFLAGS"
10373 echo "$as_me:$LINENO: result: $ucsim_cv_accept_length_type" >&5
10374 echo "${ECHO_T}$ucsim_cv_accept_length_type" >&6
10375 if test "$ucsim_cv_accept_length_type" != no; then
10377 cat >>confdefs.h <<_ACEOF
10378 #define ACCEPT_SOCKLEN_T $ucsim_cv_accept_length_type
10385 # Macro definitions
10386 ###################
10388 # DD_COPT macro checks if the compiler specified as the 1st parameter
10389 # supports option specified as the 2nd parameter
10390 # For example: DD_COPT(CXX, fPIC)
10395 # Checking characteristics of compilers and other programs
10396 # --------------------------------------------------------
10398 # Cross compiling overrides
10400 if test "$CC" = "i586-mingw32msvc-gcc"; then
10401 ac_cv_c_bigendian=no
10402 ac_cv_sizeof_char=1
10403 ac_cv_sizeof_short=2
10405 ac_cv_sizeof_long=4
10406 ac_cv_sizeof_long_long=4
10409 if test "$cross_compiling" = "no"
10411 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
10412 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
10413 if test "${ac_cv_c_bigendian+set}" = set; then
10414 echo $ECHO_N "(cached) $ECHO_C" >&6
10416 # See if sys/param.h defines the BYTE_ORDER macro.
10417 cat >conftest.$ac_ext <<_ACEOF
10418 #line $LINENO "configure"
10421 cat confdefs.h >>conftest.$ac_ext
10422 cat >>conftest.$ac_ext <<_ACEOF
10423 /* end confdefs.h. */
10424 #include <sys/types.h>
10425 #include <sys/param.h>
10430 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
10431 bogus endian macros
10438 rm -f conftest.$ac_objext
10439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10440 (eval $ac_compile) 2>&5
10442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10443 (exit $ac_status); } &&
10444 { ac_try='test -s conftest.$ac_objext'
10445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10446 (eval $ac_try) 2>&5
10448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10449 (exit $ac_status); }; }; then
10450 # It does; now see whether it defined to BIG_ENDIAN or not.
10451 cat >conftest.$ac_ext <<_ACEOF
10452 #line $LINENO "configure"
10455 cat confdefs.h >>conftest.$ac_ext
10456 cat >>conftest.$ac_ext <<_ACEOF
10457 /* end confdefs.h. */
10458 #include <sys/types.h>
10459 #include <sys/param.h>
10464 #if BYTE_ORDER != BIG_ENDIAN
10472 rm -f conftest.$ac_objext
10473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10474 (eval $ac_compile) 2>&5
10476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10477 (exit $ac_status); } &&
10478 { ac_try='test -s conftest.$ac_objext'
10479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10480 (eval $ac_try) 2>&5
10482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10483 (exit $ac_status); }; }; then
10484 ac_cv_c_bigendian=yes
10486 echo "$as_me: failed program was:" >&5
10487 sed 's/^/| /' conftest.$ac_ext >&5
10489 ac_cv_c_bigendian=no
10491 rm -f conftest.$ac_objext conftest.$ac_ext
10493 echo "$as_me: failed program was:" >&5
10494 sed 's/^/| /' conftest.$ac_ext >&5
10496 # It does not; compile a test program.
10497 if test "$cross_compiling" = yes; then
10498 # try to guess the endianness by grepping values into an object file
10499 ac_cv_c_bigendian=unknown
10500 cat >conftest.$ac_ext <<_ACEOF
10501 #line $LINENO "configure"
10504 cat confdefs.h >>conftest.$ac_ext
10505 cat >>conftest.$ac_ext <<_ACEOF
10506 /* end confdefs.h. */
10507 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
10508 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
10509 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
10510 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
10511 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
10512 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
10516 _ascii (); _ebcdic ();
10521 rm -f conftest.$ac_objext
10522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10523 (eval $ac_compile) 2>&5
10525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10526 (exit $ac_status); } &&
10527 { ac_try='test -s conftest.$ac_objext'
10528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10529 (eval $ac_try) 2>&5
10531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10532 (exit $ac_status); }; }; then
10533 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
10534 ac_cv_c_bigendian=yes
10536 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
10537 if test "$ac_cv_c_bigendian" = unknown; then
10538 ac_cv_c_bigendian=no
10540 # finding both strings is unlikely to happen, but who knows?
10541 ac_cv_c_bigendian=unknown
10545 echo "$as_me: failed program was:" >&5
10546 sed 's/^/| /' conftest.$ac_ext >&5
10549 rm -f conftest.$ac_objext conftest.$ac_ext
10551 cat >conftest.$ac_ext <<_ACEOF
10552 #line $LINENO "configure"
10555 cat confdefs.h >>conftest.$ac_ext
10556 cat >>conftest.$ac_ext <<_ACEOF
10557 /* end confdefs.h. */
10561 /* Are we little or big endian? From Harbison&Steele. */
10565 char c[sizeof (long)];
10568 exit (u.c[sizeof (long) - 1] == 1);
10571 rm -f conftest$ac_exeext
10572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10573 (eval $ac_link) 2>&5
10575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10576 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10578 (eval $ac_try) 2>&5
10580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10581 (exit $ac_status); }; }; then
10582 ac_cv_c_bigendian=no
10584 echo "$as_me: program exited with status $ac_status" >&5
10585 echo "$as_me: failed program was:" >&5
10586 sed 's/^/| /' conftest.$ac_ext >&5
10588 ( exit $ac_status )
10589 ac_cv_c_bigendian=yes
10591 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10594 rm -f conftest.$ac_objext conftest.$ac_ext
10596 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
10597 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
10598 case $ac_cv_c_bigendian in
10601 cat >>confdefs.h <<\_ACEOF
10602 #define WORDS_BIGENDIAN 1
10608 { { echo "$as_me:$LINENO: error: unknown endianness
10609 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
10610 echo "$as_me: error: unknown endianness
10611 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
10612 { (exit 1); exit 1; }; } ;;
10616 #echo "CROSS ENDIAN"
10617 if $CXX -v 2>&1|grep "mingw" >/dev/null 2>&1; then
10618 ac_cv_c_bigendian=no
10622 #echo "CROSS ENDIAN DONE"
10625 echo "$as_me:$LINENO: checking whether preprocessor accepts -MM or -M" >&5
10626 echo $ECHO_N "checking whether preprocessor accepts -MM or -M... $ECHO_C" >&6
10627 if test "${ucsim_cv_MM+set}" = set; then
10628 echo $ECHO_N "(cached) $ECHO_C" >&6
10630 echo "#include <stdio.h>" >_test_.c
10632 $CXXCPP -v -MM _test_.c 1>&5 2>&5
10633 if test "$?" = "0"; then
10640 echo "$as_me:$LINENO: result: $ucsim_cv_MM" >&5
10641 echo "${ECHO_T}$ucsim_cv_MM" >&6
10642 M_OR_MM=$ucsim_cv_MM
10645 # This is the first time when CFLAGS are set/modified!!
10648 echo "$as_me:$LINENO: checking whether $CXX accepts -ggdb" >&5
10649 echo $ECHO_N "checking whether $CXX accepts -ggdb... $ECHO_C" >&6
10650 if test "${ucsim_cv_CXXggdb+set}" = set; then
10651 echo $ECHO_N "(cached) $ECHO_C" >&6
10653 cat >_test_.c <<EOF
10657 $CXX -v -ggdb -c _test_.c 1>&5 2>&5
10658 if test "$?" = "0"; then
10659 ucsim_cv_CXXggdb="yes"
10661 ucsim_cv_CXXggdb="no"
10663 rm -f _test_.* a.out
10665 echo "$as_me:$LINENO: result: $ucsim_cv_CXXggdb" >&5
10666 echo "${ECHO_T}$ucsim_cv_CXXggdb" >&6
10668 if test "$ucsim_cv_CXXggdb" = "yes"; then
10669 if test "$CXXFLAGS"x = x ;then
10672 CXXFLAGS="$CXXFLAGS -ggdb"
10677 echo "$as_me:$LINENO: checking whether $CXX accepts -pipe" >&5
10678 echo $ECHO_N "checking whether $CXX accepts -pipe... $ECHO_C" >&6
10679 if test "${ucsim_cv_CXXpipe+set}" = set; then
10680 echo $ECHO_N "(cached) $ECHO_C" >&6
10682 cat >_test_.c <<EOF
10686 $CXX -v -pipe -c _test_.c 1>&5 2>&5
10687 if test "$?" = "0"; then
10688 ucsim_cv_CXXpipe="yes"
10690 ucsim_cv_CXXpipe="no"
10692 rm -f _test_.* a.out
10694 echo "$as_me:$LINENO: result: $ucsim_cv_CXXpipe" >&5
10695 echo "${ECHO_T}$ucsim_cv_CXXpipe" >&6
10697 if test "$ucsim_cv_CXXpipe" = "yes"; then
10698 CXXFLAGS="$CXXFLAGS -pipe"
10704 echo "$as_me:$LINENO: checking whether $CXX accepts -fPIC" >&5
10705 echo $ECHO_N "checking whether $CXX accepts -fPIC... $ECHO_C" >&6
10706 if test "${ucsim_cv_CXXfPIC+set}" = set; then
10707 echo $ECHO_N "(cached) $ECHO_C" >&6
10709 cat >_test_.c <<EOF
10713 $CXX -v -fPIC -c _test_.c 1>&5 2>&5
10714 if test "$?" = "0"; then
10715 ucsim_cv_CXXfPIC="yes"
10717 ucsim_cv_CXXfPIC="no"
10719 rm -f _test_.* a.out
10721 echo "$as_me:$LINENO: result: $ucsim_cv_CXXfPIC" >&5
10722 echo "${ECHO_T}$ucsim_cv_CXXfPIC" >&6
10724 if test "$ucsim_cv_CXXfPIC" = "yes"; then
10728 echo "$as_me:$LINENO: checking whether $CXX accepts -fpic" >&5
10729 echo $ECHO_N "checking whether $CXX accepts -fpic... $ECHO_C" >&6
10730 if test "${ucsim_cv_CXXfpic+set}" = set; then
10731 echo $ECHO_N "(cached) $ECHO_C" >&6
10733 cat >_test_.c <<EOF
10737 $CXX -v -fpic -c _test_.c 1>&5 2>&5
10738 if test "$?" = "0"; then
10739 ucsim_cv_CXXfpic="yes"
10741 ucsim_cv_CXXfpic="no"
10743 rm -f _test_.* a.out
10745 echo "$as_me:$LINENO: result: $ucsim_cv_CXXfpic" >&5
10746 echo "${ECHO_T}$ucsim_cv_CXXfpic" >&6
10748 if test "$ucsim_cv_CXXfpic" = "yes"; then
10752 if test "$PICOPT"x != "x"; then
10755 # If this is Cygwin neither use Position Independant Code
10757 # Quick + dirty by Bernhard
10759 if $CXX -v 2>&1 | grep -i cygwin 1>&5 2>&5; then
10767 if test $SHAREDLIB = "yes" -a $dl_ok = "yes" -a $enable_dlso = "yes"; then
10772 # Checks for typedefs, structures, and compiler characteristics.
10773 # ===========================================================================
10775 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
10776 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
10777 if test "${ac_cv_type_signal+set}" = set; then
10778 echo $ECHO_N "(cached) $ECHO_C" >&6
10780 cat >conftest.$ac_ext <<_ACEOF
10781 #line $LINENO "configure"
10784 cat confdefs.h >>conftest.$ac_ext
10785 cat >>conftest.$ac_ext <<_ACEOF
10786 /* end confdefs.h. */
10787 #include <sys/types.h>
10788 #include <signal.h>
10793 extern "C" void (*signal (int, void (*)(int)))(int);
10795 void (*signal ()) ();
10806 rm -f conftest.$ac_objext
10807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10808 (eval $ac_compile) 2>&5
10810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10811 (exit $ac_status); } &&
10812 { ac_try='test -s conftest.$ac_objext'
10813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10814 (eval $ac_try) 2>&5
10816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10817 (exit $ac_status); }; }; then
10818 ac_cv_type_signal=void
10820 echo "$as_me: failed program was:" >&5
10821 sed 's/^/| /' conftest.$ac_ext >&5
10823 ac_cv_type_signal=int
10825 rm -f conftest.$ac_objext conftest.$ac_ext
10827 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
10828 echo "${ECHO_T}$ac_cv_type_signal" >&6
10830 cat >>confdefs.h <<_ACEOF
10831 #define RETSIGTYPE $ac_cv_type_signal
10835 if test "$cross_compiling" = "no"; then
10836 echo "$as_me:$LINENO: checking for char" >&5
10837 echo $ECHO_N "checking for char... $ECHO_C" >&6
10838 if test "${ac_cv_type_char+set}" = set; then
10839 echo $ECHO_N "(cached) $ECHO_C" >&6
10841 cat >conftest.$ac_ext <<_ACEOF
10842 #line $LINENO "configure"
10845 cat confdefs.h >>conftest.$ac_ext
10846 cat >>conftest.$ac_ext <<_ACEOF
10847 /* end confdefs.h. */
10848 $ac_includes_default
10860 rm -f conftest.$ac_objext
10861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10862 (eval $ac_compile) 2>&5
10864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10865 (exit $ac_status); } &&
10866 { ac_try='test -s conftest.$ac_objext'
10867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10868 (eval $ac_try) 2>&5
10870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10871 (exit $ac_status); }; }; then
10872 ac_cv_type_char=yes
10874 echo "$as_me: failed program was:" >&5
10875 sed 's/^/| /' conftest.$ac_ext >&5
10879 rm -f conftest.$ac_objext conftest.$ac_ext
10881 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
10882 echo "${ECHO_T}$ac_cv_type_char" >&6
10884 echo "$as_me:$LINENO: checking size of char" >&5
10885 echo $ECHO_N "checking size of char... $ECHO_C" >&6
10886 if test "${ac_cv_sizeof_char+set}" = set; then
10887 echo $ECHO_N "(cached) $ECHO_C" >&6
10889 if test "$ac_cv_type_char" = yes; then
10890 # The cast to unsigned long works around a bug in the HP C Compiler
10891 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10892 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10893 # This bug is HP SR number 8606223364.
10894 if test "$cross_compiling" = yes; then
10895 # Depending upon the size, compute the lo and hi bounds.
10896 cat >conftest.$ac_ext <<_ACEOF
10897 #line $LINENO "configure"
10900 cat confdefs.h >>conftest.$ac_ext
10901 cat >>conftest.$ac_ext <<_ACEOF
10902 /* end confdefs.h. */
10903 $ac_includes_default
10907 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
10914 rm -f conftest.$ac_objext
10915 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10916 (eval $ac_compile) 2>&5
10918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10919 (exit $ac_status); } &&
10920 { ac_try='test -s conftest.$ac_objext'
10921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10922 (eval $ac_try) 2>&5
10924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10925 (exit $ac_status); }; }; then
10928 cat >conftest.$ac_ext <<_ACEOF
10929 #line $LINENO "configure"
10932 cat confdefs.h >>conftest.$ac_ext
10933 cat >>conftest.$ac_ext <<_ACEOF
10934 /* end confdefs.h. */
10935 $ac_includes_default
10939 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
10946 rm -f conftest.$ac_objext
10947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10948 (eval $ac_compile) 2>&5
10950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10951 (exit $ac_status); } &&
10952 { ac_try='test -s conftest.$ac_objext'
10953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10954 (eval $ac_try) 2>&5
10956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10957 (exit $ac_status); }; }; then
10958 ac_hi=$ac_mid; break
10960 echo "$as_me: failed program was:" >&5
10961 sed 's/^/| /' conftest.$ac_ext >&5
10963 ac_lo=`expr $ac_mid + 1`
10964 if test $ac_lo -le $ac_mid; then
10968 ac_mid=`expr 2 '*' $ac_mid + 1`
10970 rm -f conftest.$ac_objext conftest.$ac_ext
10973 echo "$as_me: failed program was:" >&5
10974 sed 's/^/| /' conftest.$ac_ext >&5
10976 cat >conftest.$ac_ext <<_ACEOF
10977 #line $LINENO "configure"
10980 cat confdefs.h >>conftest.$ac_ext
10981 cat >>conftest.$ac_ext <<_ACEOF
10982 /* end confdefs.h. */
10983 $ac_includes_default
10987 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
10994 rm -f conftest.$ac_objext
10995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10996 (eval $ac_compile) 2>&5
10998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10999 (exit $ac_status); } &&
11000 { ac_try='test -s conftest.$ac_objext'
11001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11002 (eval $ac_try) 2>&5
11004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11005 (exit $ac_status); }; }; then
11008 cat >conftest.$ac_ext <<_ACEOF
11009 #line $LINENO "configure"
11012 cat confdefs.h >>conftest.$ac_ext
11013 cat >>conftest.$ac_ext <<_ACEOF
11014 /* end confdefs.h. */
11015 $ac_includes_default
11019 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
11026 rm -f conftest.$ac_objext
11027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11028 (eval $ac_compile) 2>&5
11030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11031 (exit $ac_status); } &&
11032 { ac_try='test -s conftest.$ac_objext'
11033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11034 (eval $ac_try) 2>&5
11036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11037 (exit $ac_status); }; }; then
11038 ac_lo=$ac_mid; break
11040 echo "$as_me: failed program was:" >&5
11041 sed 's/^/| /' conftest.$ac_ext >&5
11043 ac_hi=`expr '(' $ac_mid ')' - 1`
11044 if test $ac_mid -le $ac_hi; then
11048 ac_mid=`expr 2 '*' $ac_mid`
11050 rm -f conftest.$ac_objext conftest.$ac_ext
11053 echo "$as_me: failed program was:" >&5
11054 sed 's/^/| /' conftest.$ac_ext >&5
11058 rm -f conftest.$ac_objext conftest.$ac_ext
11060 rm -f conftest.$ac_objext conftest.$ac_ext
11061 # Binary search between lo and hi bounds.
11062 while test "x$ac_lo" != "x$ac_hi"; do
11063 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11064 cat >conftest.$ac_ext <<_ACEOF
11065 #line $LINENO "configure"
11068 cat confdefs.h >>conftest.$ac_ext
11069 cat >>conftest.$ac_ext <<_ACEOF
11070 /* end confdefs.h. */
11071 $ac_includes_default
11075 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
11082 rm -f conftest.$ac_objext
11083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11084 (eval $ac_compile) 2>&5
11086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11087 (exit $ac_status); } &&
11088 { ac_try='test -s conftest.$ac_objext'
11089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11090 (eval $ac_try) 2>&5
11092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11093 (exit $ac_status); }; }; then
11096 echo "$as_me: failed program was:" >&5
11097 sed 's/^/| /' conftest.$ac_ext >&5
11099 ac_lo=`expr '(' $ac_mid ')' + 1`
11101 rm -f conftest.$ac_objext conftest.$ac_ext
11104 ?*) ac_cv_sizeof_char=$ac_lo;;
11105 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
11106 See \`config.log' for more details." >&5
11107 echo "$as_me: error: cannot compute sizeof (char), 77
11108 See \`config.log' for more details." >&2;}
11109 { (exit 1); exit 1; }; } ;;
11112 if test "$cross_compiling" = yes; then
11113 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11114 See \`config.log' for more details." >&5
11115 echo "$as_me: error: cannot run test program while cross compiling
11116 See \`config.log' for more details." >&2;}
11117 { (exit 1); exit 1; }; }
11119 cat >conftest.$ac_ext <<_ACEOF
11120 #line $LINENO "configure"
11123 cat confdefs.h >>conftest.$ac_ext
11124 cat >>conftest.$ac_ext <<_ACEOF
11125 /* end confdefs.h. */
11126 $ac_includes_default
11127 long longval () { return (long) (sizeof (char)); }
11128 unsigned long ulongval () { return (long) (sizeof (char)); }
11130 #include <stdlib.h>
11135 FILE *f = fopen ("conftest.val", "w");
11138 if (((long) (sizeof (char))) < 0)
11140 long i = longval ();
11141 if (i != ((long) (sizeof (char))))
11143 fprintf (f, "%ld\n", i);
11147 unsigned long i = ulongval ();
11148 if (i != ((long) (sizeof (char))))
11150 fprintf (f, "%lu\n", i);
11152 exit (ferror (f) || fclose (f) != 0);
11158 rm -f conftest$ac_exeext
11159 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11160 (eval $ac_link) 2>&5
11162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11163 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11165 (eval $ac_try) 2>&5
11167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11168 (exit $ac_status); }; }; then
11169 ac_cv_sizeof_char=`cat conftest.val`
11171 echo "$as_me: program exited with status $ac_status" >&5
11172 echo "$as_me: failed program was:" >&5
11173 sed 's/^/| /' conftest.$ac_ext >&5
11175 ( exit $ac_status )
11176 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
11177 See \`config.log' for more details." >&5
11178 echo "$as_me: error: cannot compute sizeof (char), 77
11179 See \`config.log' for more details." >&2;}
11180 { (exit 1); exit 1; }; }
11182 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11187 ac_cv_sizeof_char=0
11190 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
11191 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
11192 cat >>confdefs.h <<_ACEOF
11193 #define SIZEOF_CHAR $ac_cv_sizeof_char
11197 echo "$as_me:$LINENO: checking for short" >&5
11198 echo $ECHO_N "checking for short... $ECHO_C" >&6
11199 if test "${ac_cv_type_short+set}" = set; then
11200 echo $ECHO_N "(cached) $ECHO_C" >&6
11202 cat >conftest.$ac_ext <<_ACEOF
11203 #line $LINENO "configure"
11206 cat confdefs.h >>conftest.$ac_ext
11207 cat >>conftest.$ac_ext <<_ACEOF
11208 /* end confdefs.h. */
11209 $ac_includes_default
11215 if (sizeof (short))
11221 rm -f conftest.$ac_objext
11222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11223 (eval $ac_compile) 2>&5
11225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11226 (exit $ac_status); } &&
11227 { ac_try='test -s conftest.$ac_objext'
11228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11229 (eval $ac_try) 2>&5
11231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11232 (exit $ac_status); }; }; then
11233 ac_cv_type_short=yes
11235 echo "$as_me: failed program was:" >&5
11236 sed 's/^/| /' conftest.$ac_ext >&5
11238 ac_cv_type_short=no
11240 rm -f conftest.$ac_objext conftest.$ac_ext
11242 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
11243 echo "${ECHO_T}$ac_cv_type_short" >&6
11245 echo "$as_me:$LINENO: checking size of short" >&5
11246 echo $ECHO_N "checking size of short... $ECHO_C" >&6
11247 if test "${ac_cv_sizeof_short+set}" = set; then
11248 echo $ECHO_N "(cached) $ECHO_C" >&6
11250 if test "$ac_cv_type_short" = yes; then
11251 # The cast to unsigned long works around a bug in the HP C Compiler
11252 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11253 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11254 # This bug is HP SR number 8606223364.
11255 if test "$cross_compiling" = yes; then
11256 # Depending upon the size, compute the lo and hi bounds.
11257 cat >conftest.$ac_ext <<_ACEOF
11258 #line $LINENO "configure"
11261 cat confdefs.h >>conftest.$ac_ext
11262 cat >>conftest.$ac_ext <<_ACEOF
11263 /* end confdefs.h. */
11264 $ac_includes_default
11268 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
11275 rm -f conftest.$ac_objext
11276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11277 (eval $ac_compile) 2>&5
11279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11280 (exit $ac_status); } &&
11281 { ac_try='test -s conftest.$ac_objext'
11282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11283 (eval $ac_try) 2>&5
11285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11286 (exit $ac_status); }; }; then
11289 cat >conftest.$ac_ext <<_ACEOF
11290 #line $LINENO "configure"
11293 cat confdefs.h >>conftest.$ac_ext
11294 cat >>conftest.$ac_ext <<_ACEOF
11295 /* end confdefs.h. */
11296 $ac_includes_default
11300 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
11307 rm -f conftest.$ac_objext
11308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11309 (eval $ac_compile) 2>&5
11311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11312 (exit $ac_status); } &&
11313 { ac_try='test -s conftest.$ac_objext'
11314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11315 (eval $ac_try) 2>&5
11317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11318 (exit $ac_status); }; }; then
11319 ac_hi=$ac_mid; break
11321 echo "$as_me: failed program was:" >&5
11322 sed 's/^/| /' conftest.$ac_ext >&5
11324 ac_lo=`expr $ac_mid + 1`
11325 if test $ac_lo -le $ac_mid; then
11329 ac_mid=`expr 2 '*' $ac_mid + 1`
11331 rm -f conftest.$ac_objext conftest.$ac_ext
11334 echo "$as_me: failed program was:" >&5
11335 sed 's/^/| /' conftest.$ac_ext >&5
11337 cat >conftest.$ac_ext <<_ACEOF
11338 #line $LINENO "configure"
11341 cat confdefs.h >>conftest.$ac_ext
11342 cat >>conftest.$ac_ext <<_ACEOF
11343 /* end confdefs.h. */
11344 $ac_includes_default
11348 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
11355 rm -f conftest.$ac_objext
11356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11357 (eval $ac_compile) 2>&5
11359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11360 (exit $ac_status); } &&
11361 { ac_try='test -s conftest.$ac_objext'
11362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11363 (eval $ac_try) 2>&5
11365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11366 (exit $ac_status); }; }; then
11369 cat >conftest.$ac_ext <<_ACEOF
11370 #line $LINENO "configure"
11373 cat confdefs.h >>conftest.$ac_ext
11374 cat >>conftest.$ac_ext <<_ACEOF
11375 /* end confdefs.h. */
11376 $ac_includes_default
11380 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
11387 rm -f conftest.$ac_objext
11388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11389 (eval $ac_compile) 2>&5
11391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11392 (exit $ac_status); } &&
11393 { ac_try='test -s conftest.$ac_objext'
11394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11395 (eval $ac_try) 2>&5
11397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11398 (exit $ac_status); }; }; then
11399 ac_lo=$ac_mid; break
11401 echo "$as_me: failed program was:" >&5
11402 sed 's/^/| /' conftest.$ac_ext >&5
11404 ac_hi=`expr '(' $ac_mid ')' - 1`
11405 if test $ac_mid -le $ac_hi; then
11409 ac_mid=`expr 2 '*' $ac_mid`
11411 rm -f conftest.$ac_objext conftest.$ac_ext
11414 echo "$as_me: failed program was:" >&5
11415 sed 's/^/| /' conftest.$ac_ext >&5
11419 rm -f conftest.$ac_objext conftest.$ac_ext
11421 rm -f conftest.$ac_objext conftest.$ac_ext
11422 # Binary search between lo and hi bounds.
11423 while test "x$ac_lo" != "x$ac_hi"; do
11424 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11425 cat >conftest.$ac_ext <<_ACEOF
11426 #line $LINENO "configure"
11429 cat confdefs.h >>conftest.$ac_ext
11430 cat >>conftest.$ac_ext <<_ACEOF
11431 /* end confdefs.h. */
11432 $ac_includes_default
11436 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
11443 rm -f conftest.$ac_objext
11444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11445 (eval $ac_compile) 2>&5
11447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11448 (exit $ac_status); } &&
11449 { ac_try='test -s conftest.$ac_objext'
11450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11451 (eval $ac_try) 2>&5
11453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11454 (exit $ac_status); }; }; then
11457 echo "$as_me: failed program was:" >&5
11458 sed 's/^/| /' conftest.$ac_ext >&5
11460 ac_lo=`expr '(' $ac_mid ')' + 1`
11462 rm -f conftest.$ac_objext conftest.$ac_ext
11465 ?*) ac_cv_sizeof_short=$ac_lo;;
11466 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
11467 See \`config.log' for more details." >&5
11468 echo "$as_me: error: cannot compute sizeof (short), 77
11469 See \`config.log' for more details." >&2;}
11470 { (exit 1); exit 1; }; } ;;
11473 if test "$cross_compiling" = yes; then
11474 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11475 See \`config.log' for more details." >&5
11476 echo "$as_me: error: cannot run test program while cross compiling
11477 See \`config.log' for more details." >&2;}
11478 { (exit 1); exit 1; }; }
11480 cat >conftest.$ac_ext <<_ACEOF
11481 #line $LINENO "configure"
11484 cat confdefs.h >>conftest.$ac_ext
11485 cat >>conftest.$ac_ext <<_ACEOF
11486 /* end confdefs.h. */
11487 $ac_includes_default
11488 long longval () { return (long) (sizeof (short)); }
11489 unsigned long ulongval () { return (long) (sizeof (short)); }
11491 #include <stdlib.h>
11496 FILE *f = fopen ("conftest.val", "w");
11499 if (((long) (sizeof (short))) < 0)
11501 long i = longval ();
11502 if (i != ((long) (sizeof (short))))
11504 fprintf (f, "%ld\n", i);
11508 unsigned long i = ulongval ();
11509 if (i != ((long) (sizeof (short))))
11511 fprintf (f, "%lu\n", i);
11513 exit (ferror (f) || fclose (f) != 0);
11519 rm -f conftest$ac_exeext
11520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11521 (eval $ac_link) 2>&5
11523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11524 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11526 (eval $ac_try) 2>&5
11528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11529 (exit $ac_status); }; }; then
11530 ac_cv_sizeof_short=`cat conftest.val`
11532 echo "$as_me: program exited with status $ac_status" >&5
11533 echo "$as_me: failed program was:" >&5
11534 sed 's/^/| /' conftest.$ac_ext >&5
11536 ( exit $ac_status )
11537 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
11538 See \`config.log' for more details." >&5
11539 echo "$as_me: error: cannot compute sizeof (short), 77
11540 See \`config.log' for more details." >&2;}
11541 { (exit 1); exit 1; }; }
11543 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11548 ac_cv_sizeof_short=0
11551 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
11552 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
11553 cat >>confdefs.h <<_ACEOF
11554 #define SIZEOF_SHORT $ac_cv_sizeof_short
11558 echo "$as_me:$LINENO: checking for int" >&5
11559 echo $ECHO_N "checking for int... $ECHO_C" >&6
11560 if test "${ac_cv_type_int+set}" = set; then
11561 echo $ECHO_N "(cached) $ECHO_C" >&6
11563 cat >conftest.$ac_ext <<_ACEOF
11564 #line $LINENO "configure"
11567 cat confdefs.h >>conftest.$ac_ext
11568 cat >>conftest.$ac_ext <<_ACEOF
11569 /* end confdefs.h. */
11570 $ac_includes_default
11582 rm -f conftest.$ac_objext
11583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11584 (eval $ac_compile) 2>&5
11586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11587 (exit $ac_status); } &&
11588 { ac_try='test -s conftest.$ac_objext'
11589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11590 (eval $ac_try) 2>&5
11592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11593 (exit $ac_status); }; }; then
11596 echo "$as_me: failed program was:" >&5
11597 sed 's/^/| /' conftest.$ac_ext >&5
11601 rm -f conftest.$ac_objext conftest.$ac_ext
11603 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
11604 echo "${ECHO_T}$ac_cv_type_int" >&6
11606 echo "$as_me:$LINENO: checking size of int" >&5
11607 echo $ECHO_N "checking size of int... $ECHO_C" >&6
11608 if test "${ac_cv_sizeof_int+set}" = set; then
11609 echo $ECHO_N "(cached) $ECHO_C" >&6
11611 if test "$ac_cv_type_int" = yes; then
11612 # The cast to unsigned long works around a bug in the HP C Compiler
11613 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11614 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11615 # This bug is HP SR number 8606223364.
11616 if test "$cross_compiling" = yes; then
11617 # Depending upon the size, compute the lo and hi bounds.
11618 cat >conftest.$ac_ext <<_ACEOF
11619 #line $LINENO "configure"
11622 cat confdefs.h >>conftest.$ac_ext
11623 cat >>conftest.$ac_ext <<_ACEOF
11624 /* end confdefs.h. */
11625 $ac_includes_default
11629 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
11636 rm -f conftest.$ac_objext
11637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11638 (eval $ac_compile) 2>&5
11640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11641 (exit $ac_status); } &&
11642 { ac_try='test -s conftest.$ac_objext'
11643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11644 (eval $ac_try) 2>&5
11646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11647 (exit $ac_status); }; }; then
11650 cat >conftest.$ac_ext <<_ACEOF
11651 #line $LINENO "configure"
11654 cat confdefs.h >>conftest.$ac_ext
11655 cat >>conftest.$ac_ext <<_ACEOF
11656 /* end confdefs.h. */
11657 $ac_includes_default
11661 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
11668 rm -f conftest.$ac_objext
11669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11670 (eval $ac_compile) 2>&5
11672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11673 (exit $ac_status); } &&
11674 { ac_try='test -s conftest.$ac_objext'
11675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11676 (eval $ac_try) 2>&5
11678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11679 (exit $ac_status); }; }; then
11680 ac_hi=$ac_mid; break
11682 echo "$as_me: failed program was:" >&5
11683 sed 's/^/| /' conftest.$ac_ext >&5
11685 ac_lo=`expr $ac_mid + 1`
11686 if test $ac_lo -le $ac_mid; then
11690 ac_mid=`expr 2 '*' $ac_mid + 1`
11692 rm -f conftest.$ac_objext conftest.$ac_ext
11695 echo "$as_me: failed program was:" >&5
11696 sed 's/^/| /' conftest.$ac_ext >&5
11698 cat >conftest.$ac_ext <<_ACEOF
11699 #line $LINENO "configure"
11702 cat confdefs.h >>conftest.$ac_ext
11703 cat >>conftest.$ac_ext <<_ACEOF
11704 /* end confdefs.h. */
11705 $ac_includes_default
11709 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
11716 rm -f conftest.$ac_objext
11717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11718 (eval $ac_compile) 2>&5
11720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11721 (exit $ac_status); } &&
11722 { ac_try='test -s conftest.$ac_objext'
11723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11724 (eval $ac_try) 2>&5
11726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11727 (exit $ac_status); }; }; then
11730 cat >conftest.$ac_ext <<_ACEOF
11731 #line $LINENO "configure"
11734 cat confdefs.h >>conftest.$ac_ext
11735 cat >>conftest.$ac_ext <<_ACEOF
11736 /* end confdefs.h. */
11737 $ac_includes_default
11741 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
11748 rm -f conftest.$ac_objext
11749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11750 (eval $ac_compile) 2>&5
11752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11753 (exit $ac_status); } &&
11754 { ac_try='test -s conftest.$ac_objext'
11755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11756 (eval $ac_try) 2>&5
11758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11759 (exit $ac_status); }; }; then
11760 ac_lo=$ac_mid; break
11762 echo "$as_me: failed program was:" >&5
11763 sed 's/^/| /' conftest.$ac_ext >&5
11765 ac_hi=`expr '(' $ac_mid ')' - 1`
11766 if test $ac_mid -le $ac_hi; then
11770 ac_mid=`expr 2 '*' $ac_mid`
11772 rm -f conftest.$ac_objext conftest.$ac_ext
11775 echo "$as_me: failed program was:" >&5
11776 sed 's/^/| /' conftest.$ac_ext >&5
11780 rm -f conftest.$ac_objext conftest.$ac_ext
11782 rm -f conftest.$ac_objext conftest.$ac_ext
11783 # Binary search between lo and hi bounds.
11784 while test "x$ac_lo" != "x$ac_hi"; do
11785 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11786 cat >conftest.$ac_ext <<_ACEOF
11787 #line $LINENO "configure"
11790 cat confdefs.h >>conftest.$ac_ext
11791 cat >>conftest.$ac_ext <<_ACEOF
11792 /* end confdefs.h. */
11793 $ac_includes_default
11797 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
11804 rm -f conftest.$ac_objext
11805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11806 (eval $ac_compile) 2>&5
11808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11809 (exit $ac_status); } &&
11810 { ac_try='test -s conftest.$ac_objext'
11811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11812 (eval $ac_try) 2>&5
11814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11815 (exit $ac_status); }; }; then
11818 echo "$as_me: failed program was:" >&5
11819 sed 's/^/| /' conftest.$ac_ext >&5
11821 ac_lo=`expr '(' $ac_mid ')' + 1`
11823 rm -f conftest.$ac_objext conftest.$ac_ext
11826 ?*) ac_cv_sizeof_int=$ac_lo;;
11827 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
11828 See \`config.log' for more details." >&5
11829 echo "$as_me: error: cannot compute sizeof (int), 77
11830 See \`config.log' for more details." >&2;}
11831 { (exit 1); exit 1; }; } ;;
11834 if test "$cross_compiling" = yes; then
11835 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11836 See \`config.log' for more details." >&5
11837 echo "$as_me: error: cannot run test program while cross compiling
11838 See \`config.log' for more details." >&2;}
11839 { (exit 1); exit 1; }; }
11841 cat >conftest.$ac_ext <<_ACEOF
11842 #line $LINENO "configure"
11845 cat confdefs.h >>conftest.$ac_ext
11846 cat >>conftest.$ac_ext <<_ACEOF
11847 /* end confdefs.h. */
11848 $ac_includes_default
11849 long longval () { return (long) (sizeof (int)); }
11850 unsigned long ulongval () { return (long) (sizeof (int)); }
11852 #include <stdlib.h>
11857 FILE *f = fopen ("conftest.val", "w");
11860 if (((long) (sizeof (int))) < 0)
11862 long i = longval ();
11863 if (i != ((long) (sizeof (int))))
11865 fprintf (f, "%ld\n", i);
11869 unsigned long i = ulongval ();
11870 if (i != ((long) (sizeof (int))))
11872 fprintf (f, "%lu\n", i);
11874 exit (ferror (f) || fclose (f) != 0);
11880 rm -f conftest$ac_exeext
11881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11882 (eval $ac_link) 2>&5
11884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11885 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11887 (eval $ac_try) 2>&5
11889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11890 (exit $ac_status); }; }; then
11891 ac_cv_sizeof_int=`cat conftest.val`
11893 echo "$as_me: program exited with status $ac_status" >&5
11894 echo "$as_me: failed program was:" >&5
11895 sed 's/^/| /' conftest.$ac_ext >&5
11897 ( exit $ac_status )
11898 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
11899 See \`config.log' for more details." >&5
11900 echo "$as_me: error: cannot compute sizeof (int), 77
11901 See \`config.log' for more details." >&2;}
11902 { (exit 1); exit 1; }; }
11904 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11912 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
11913 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
11914 cat >>confdefs.h <<_ACEOF
11915 #define SIZEOF_INT $ac_cv_sizeof_int
11919 echo "$as_me:$LINENO: checking for long" >&5
11920 echo $ECHO_N "checking for long... $ECHO_C" >&6
11921 if test "${ac_cv_type_long+set}" = set; then
11922 echo $ECHO_N "(cached) $ECHO_C" >&6
11924 cat >conftest.$ac_ext <<_ACEOF
11925 #line $LINENO "configure"
11928 cat confdefs.h >>conftest.$ac_ext
11929 cat >>conftest.$ac_ext <<_ACEOF
11930 /* end confdefs.h. */
11931 $ac_includes_default
11943 rm -f conftest.$ac_objext
11944 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11945 (eval $ac_compile) 2>&5
11947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11948 (exit $ac_status); } &&
11949 { ac_try='test -s conftest.$ac_objext'
11950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11951 (eval $ac_try) 2>&5
11953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11954 (exit $ac_status); }; }; then
11955 ac_cv_type_long=yes
11957 echo "$as_me: failed program was:" >&5
11958 sed 's/^/| /' conftest.$ac_ext >&5
11962 rm -f conftest.$ac_objext conftest.$ac_ext
11964 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
11965 echo "${ECHO_T}$ac_cv_type_long" >&6
11967 echo "$as_me:$LINENO: checking size of long" >&5
11968 echo $ECHO_N "checking size of long... $ECHO_C" >&6
11969 if test "${ac_cv_sizeof_long+set}" = set; then
11970 echo $ECHO_N "(cached) $ECHO_C" >&6
11972 if test "$ac_cv_type_long" = yes; then
11973 # The cast to unsigned long works around a bug in the HP C Compiler
11974 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11975 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11976 # This bug is HP SR number 8606223364.
11977 if test "$cross_compiling" = yes; then
11978 # Depending upon the size, compute the lo and hi bounds.
11979 cat >conftest.$ac_ext <<_ACEOF
11980 #line $LINENO "configure"
11983 cat confdefs.h >>conftest.$ac_ext
11984 cat >>conftest.$ac_ext <<_ACEOF
11985 /* end confdefs.h. */
11986 $ac_includes_default
11990 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
11997 rm -f conftest.$ac_objext
11998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11999 (eval $ac_compile) 2>&5
12001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12002 (exit $ac_status); } &&
12003 { ac_try='test -s conftest.$ac_objext'
12004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12005 (eval $ac_try) 2>&5
12007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12008 (exit $ac_status); }; }; then
12011 cat >conftest.$ac_ext <<_ACEOF
12012 #line $LINENO "configure"
12015 cat confdefs.h >>conftest.$ac_ext
12016 cat >>conftest.$ac_ext <<_ACEOF
12017 /* end confdefs.h. */
12018 $ac_includes_default
12022 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
12029 rm -f conftest.$ac_objext
12030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12031 (eval $ac_compile) 2>&5
12033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12034 (exit $ac_status); } &&
12035 { ac_try='test -s conftest.$ac_objext'
12036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12037 (eval $ac_try) 2>&5
12039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12040 (exit $ac_status); }; }; then
12041 ac_hi=$ac_mid; break
12043 echo "$as_me: failed program was:" >&5
12044 sed 's/^/| /' conftest.$ac_ext >&5
12046 ac_lo=`expr $ac_mid + 1`
12047 if test $ac_lo -le $ac_mid; then
12051 ac_mid=`expr 2 '*' $ac_mid + 1`
12053 rm -f conftest.$ac_objext conftest.$ac_ext
12056 echo "$as_me: failed program was:" >&5
12057 sed 's/^/| /' conftest.$ac_ext >&5
12059 cat >conftest.$ac_ext <<_ACEOF
12060 #line $LINENO "configure"
12063 cat confdefs.h >>conftest.$ac_ext
12064 cat >>conftest.$ac_ext <<_ACEOF
12065 /* end confdefs.h. */
12066 $ac_includes_default
12070 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
12077 rm -f conftest.$ac_objext
12078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12079 (eval $ac_compile) 2>&5
12081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12082 (exit $ac_status); } &&
12083 { ac_try='test -s conftest.$ac_objext'
12084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12085 (eval $ac_try) 2>&5
12087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12088 (exit $ac_status); }; }; then
12091 cat >conftest.$ac_ext <<_ACEOF
12092 #line $LINENO "configure"
12095 cat confdefs.h >>conftest.$ac_ext
12096 cat >>conftest.$ac_ext <<_ACEOF
12097 /* end confdefs.h. */
12098 $ac_includes_default
12102 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
12109 rm -f conftest.$ac_objext
12110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12111 (eval $ac_compile) 2>&5
12113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12114 (exit $ac_status); } &&
12115 { ac_try='test -s conftest.$ac_objext'
12116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12117 (eval $ac_try) 2>&5
12119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12120 (exit $ac_status); }; }; then
12121 ac_lo=$ac_mid; break
12123 echo "$as_me: failed program was:" >&5
12124 sed 's/^/| /' conftest.$ac_ext >&5
12126 ac_hi=`expr '(' $ac_mid ')' - 1`
12127 if test $ac_mid -le $ac_hi; then
12131 ac_mid=`expr 2 '*' $ac_mid`
12133 rm -f conftest.$ac_objext conftest.$ac_ext
12136 echo "$as_me: failed program was:" >&5
12137 sed 's/^/| /' conftest.$ac_ext >&5
12141 rm -f conftest.$ac_objext conftest.$ac_ext
12143 rm -f conftest.$ac_objext conftest.$ac_ext
12144 # Binary search between lo and hi bounds.
12145 while test "x$ac_lo" != "x$ac_hi"; do
12146 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12147 cat >conftest.$ac_ext <<_ACEOF
12148 #line $LINENO "configure"
12151 cat confdefs.h >>conftest.$ac_ext
12152 cat >>conftest.$ac_ext <<_ACEOF
12153 /* end confdefs.h. */
12154 $ac_includes_default
12158 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
12165 rm -f conftest.$ac_objext
12166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12167 (eval $ac_compile) 2>&5
12169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12170 (exit $ac_status); } &&
12171 { ac_try='test -s conftest.$ac_objext'
12172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12173 (eval $ac_try) 2>&5
12175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12176 (exit $ac_status); }; }; then
12179 echo "$as_me: failed program was:" >&5
12180 sed 's/^/| /' conftest.$ac_ext >&5
12182 ac_lo=`expr '(' $ac_mid ')' + 1`
12184 rm -f conftest.$ac_objext conftest.$ac_ext
12187 ?*) ac_cv_sizeof_long=$ac_lo;;
12188 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
12189 See \`config.log' for more details." >&5
12190 echo "$as_me: error: cannot compute sizeof (long), 77
12191 See \`config.log' for more details." >&2;}
12192 { (exit 1); exit 1; }; } ;;
12195 if test "$cross_compiling" = yes; then
12196 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12197 See \`config.log' for more details." >&5
12198 echo "$as_me: error: cannot run test program while cross compiling
12199 See \`config.log' for more details." >&2;}
12200 { (exit 1); exit 1; }; }
12202 cat >conftest.$ac_ext <<_ACEOF
12203 #line $LINENO "configure"
12206 cat confdefs.h >>conftest.$ac_ext
12207 cat >>conftest.$ac_ext <<_ACEOF
12208 /* end confdefs.h. */
12209 $ac_includes_default
12210 long longval () { return (long) (sizeof (long)); }
12211 unsigned long ulongval () { return (long) (sizeof (long)); }
12213 #include <stdlib.h>
12218 FILE *f = fopen ("conftest.val", "w");
12221 if (((long) (sizeof (long))) < 0)
12223 long i = longval ();
12224 if (i != ((long) (sizeof (long))))
12226 fprintf (f, "%ld\n", i);
12230 unsigned long i = ulongval ();
12231 if (i != ((long) (sizeof (long))))
12233 fprintf (f, "%lu\n", i);
12235 exit (ferror (f) || fclose (f) != 0);
12241 rm -f conftest$ac_exeext
12242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12243 (eval $ac_link) 2>&5
12245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12246 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12248 (eval $ac_try) 2>&5
12250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12251 (exit $ac_status); }; }; then
12252 ac_cv_sizeof_long=`cat conftest.val`
12254 echo "$as_me: program exited with status $ac_status" >&5
12255 echo "$as_me: failed program was:" >&5
12256 sed 's/^/| /' conftest.$ac_ext >&5
12258 ( exit $ac_status )
12259 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
12260 See \`config.log' for more details." >&5
12261 echo "$as_me: error: cannot compute sizeof (long), 77
12262 See \`config.log' for more details." >&2;}
12263 { (exit 1); exit 1; }; }
12265 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12270 ac_cv_sizeof_long=0
12273 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
12274 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
12275 cat >>confdefs.h <<_ACEOF
12276 #define SIZEOF_LONG $ac_cv_sizeof_long
12280 echo "$as_me:$LINENO: checking for long long" >&5
12281 echo $ECHO_N "checking for long long... $ECHO_C" >&6
12282 if test "${ac_cv_type_long_long+set}" = set; then
12283 echo $ECHO_N "(cached) $ECHO_C" >&6
12285 cat >conftest.$ac_ext <<_ACEOF
12286 #line $LINENO "configure"
12289 cat confdefs.h >>conftest.$ac_ext
12290 cat >>conftest.$ac_ext <<_ACEOF
12291 /* end confdefs.h. */
12292 $ac_includes_default
12296 if ((long long *) 0)
12298 if (sizeof (long long))
12304 rm -f conftest.$ac_objext
12305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12306 (eval $ac_compile) 2>&5
12308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12309 (exit $ac_status); } &&
12310 { ac_try='test -s conftest.$ac_objext'
12311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12312 (eval $ac_try) 2>&5
12314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12315 (exit $ac_status); }; }; then
12316 ac_cv_type_long_long=yes
12318 echo "$as_me: failed program was:" >&5
12319 sed 's/^/| /' conftest.$ac_ext >&5
12321 ac_cv_type_long_long=no
12323 rm -f conftest.$ac_objext conftest.$ac_ext
12325 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
12326 echo "${ECHO_T}$ac_cv_type_long_long" >&6
12328 echo "$as_me:$LINENO: checking size of long long" >&5
12329 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
12330 if test "${ac_cv_sizeof_long_long+set}" = set; then
12331 echo $ECHO_N "(cached) $ECHO_C" >&6
12333 if test "$ac_cv_type_long_long" = yes; then
12334 # The cast to unsigned long works around a bug in the HP C Compiler
12335 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12336 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12337 # This bug is HP SR number 8606223364.
12338 if test "$cross_compiling" = yes; then
12339 # Depending upon the size, compute the lo and hi bounds.
12340 cat >conftest.$ac_ext <<_ACEOF
12341 #line $LINENO "configure"
12344 cat confdefs.h >>conftest.$ac_ext
12345 cat >>conftest.$ac_ext <<_ACEOF
12346 /* end confdefs.h. */
12347 $ac_includes_default
12351 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
12358 rm -f conftest.$ac_objext
12359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12360 (eval $ac_compile) 2>&5
12362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12363 (exit $ac_status); } &&
12364 { ac_try='test -s conftest.$ac_objext'
12365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12366 (eval $ac_try) 2>&5
12368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12369 (exit $ac_status); }; }; then
12372 cat >conftest.$ac_ext <<_ACEOF
12373 #line $LINENO "configure"
12376 cat confdefs.h >>conftest.$ac_ext
12377 cat >>conftest.$ac_ext <<_ACEOF
12378 /* end confdefs.h. */
12379 $ac_includes_default
12383 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
12390 rm -f conftest.$ac_objext
12391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12392 (eval $ac_compile) 2>&5
12394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12395 (exit $ac_status); } &&
12396 { ac_try='test -s conftest.$ac_objext'
12397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12398 (eval $ac_try) 2>&5
12400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12401 (exit $ac_status); }; }; then
12402 ac_hi=$ac_mid; break
12404 echo "$as_me: failed program was:" >&5
12405 sed 's/^/| /' conftest.$ac_ext >&5
12407 ac_lo=`expr $ac_mid + 1`
12408 if test $ac_lo -le $ac_mid; then
12412 ac_mid=`expr 2 '*' $ac_mid + 1`
12414 rm -f conftest.$ac_objext conftest.$ac_ext
12417 echo "$as_me: failed program was:" >&5
12418 sed 's/^/| /' conftest.$ac_ext >&5
12420 cat >conftest.$ac_ext <<_ACEOF
12421 #line $LINENO "configure"
12424 cat confdefs.h >>conftest.$ac_ext
12425 cat >>conftest.$ac_ext <<_ACEOF
12426 /* end confdefs.h. */
12427 $ac_includes_default
12431 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
12438 rm -f conftest.$ac_objext
12439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12440 (eval $ac_compile) 2>&5
12442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12443 (exit $ac_status); } &&
12444 { ac_try='test -s conftest.$ac_objext'
12445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12446 (eval $ac_try) 2>&5
12448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12449 (exit $ac_status); }; }; then
12452 cat >conftest.$ac_ext <<_ACEOF
12453 #line $LINENO "configure"
12456 cat confdefs.h >>conftest.$ac_ext
12457 cat >>conftest.$ac_ext <<_ACEOF
12458 /* end confdefs.h. */
12459 $ac_includes_default
12463 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
12470 rm -f conftest.$ac_objext
12471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12472 (eval $ac_compile) 2>&5
12474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12475 (exit $ac_status); } &&
12476 { ac_try='test -s conftest.$ac_objext'
12477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12478 (eval $ac_try) 2>&5
12480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12481 (exit $ac_status); }; }; then
12482 ac_lo=$ac_mid; break
12484 echo "$as_me: failed program was:" >&5
12485 sed 's/^/| /' conftest.$ac_ext >&5
12487 ac_hi=`expr '(' $ac_mid ')' - 1`
12488 if test $ac_mid -le $ac_hi; then
12492 ac_mid=`expr 2 '*' $ac_mid`
12494 rm -f conftest.$ac_objext conftest.$ac_ext
12497 echo "$as_me: failed program was:" >&5
12498 sed 's/^/| /' conftest.$ac_ext >&5
12502 rm -f conftest.$ac_objext conftest.$ac_ext
12504 rm -f conftest.$ac_objext conftest.$ac_ext
12505 # Binary search between lo and hi bounds.
12506 while test "x$ac_lo" != "x$ac_hi"; do
12507 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12508 cat >conftest.$ac_ext <<_ACEOF
12509 #line $LINENO "configure"
12512 cat confdefs.h >>conftest.$ac_ext
12513 cat >>conftest.$ac_ext <<_ACEOF
12514 /* end confdefs.h. */
12515 $ac_includes_default
12519 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
12526 rm -f conftest.$ac_objext
12527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12528 (eval $ac_compile) 2>&5
12530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12531 (exit $ac_status); } &&
12532 { ac_try='test -s conftest.$ac_objext'
12533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12534 (eval $ac_try) 2>&5
12536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12537 (exit $ac_status); }; }; then
12540 echo "$as_me: failed program was:" >&5
12541 sed 's/^/| /' conftest.$ac_ext >&5
12543 ac_lo=`expr '(' $ac_mid ')' + 1`
12545 rm -f conftest.$ac_objext conftest.$ac_ext
12548 ?*) ac_cv_sizeof_long_long=$ac_lo;;
12549 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
12550 See \`config.log' for more details." >&5
12551 echo "$as_me: error: cannot compute sizeof (long long), 77
12552 See \`config.log' for more details." >&2;}
12553 { (exit 1); exit 1; }; } ;;
12556 if test "$cross_compiling" = yes; then
12557 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12558 See \`config.log' for more details." >&5
12559 echo "$as_me: error: cannot run test program while cross compiling
12560 See \`config.log' for more details." >&2;}
12561 { (exit 1); exit 1; }; }
12563 cat >conftest.$ac_ext <<_ACEOF
12564 #line $LINENO "configure"
12567 cat confdefs.h >>conftest.$ac_ext
12568 cat >>conftest.$ac_ext <<_ACEOF
12569 /* end confdefs.h. */
12570 $ac_includes_default
12571 long longval () { return (long) (sizeof (long long)); }
12572 unsigned long ulongval () { return (long) (sizeof (long long)); }
12574 #include <stdlib.h>
12579 FILE *f = fopen ("conftest.val", "w");
12582 if (((long) (sizeof (long long))) < 0)
12584 long i = longval ();
12585 if (i != ((long) (sizeof (long long))))
12587 fprintf (f, "%ld\n", i);
12591 unsigned long i = ulongval ();
12592 if (i != ((long) (sizeof (long long))))
12594 fprintf (f, "%lu\n", i);
12596 exit (ferror (f) || fclose (f) != 0);
12602 rm -f conftest$ac_exeext
12603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12604 (eval $ac_link) 2>&5
12606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12607 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12609 (eval $ac_try) 2>&5
12611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12612 (exit $ac_status); }; }; then
12613 ac_cv_sizeof_long_long=`cat conftest.val`
12615 echo "$as_me: program exited with status $ac_status" >&5
12616 echo "$as_me: failed program was:" >&5
12617 sed 's/^/| /' conftest.$ac_ext >&5
12619 ( exit $ac_status )
12620 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
12621 See \`config.log' for more details." >&5
12622 echo "$as_me: error: cannot compute sizeof (long long), 77
12623 See \`config.log' for more details." >&2;}
12624 { (exit 1); exit 1; }; }
12626 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12631 ac_cv_sizeof_long_long=0
12634 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
12635 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
12636 cat >>confdefs.h <<_ACEOF
12637 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12642 if $CXX -v 2>&1|grep "mingw" >/dev/null 2>&1; then
12643 ac_cv_sizeof_char=1
12644 ac_cv_sizeof_short=2
12646 ac_cv_sizeof_long=4
12647 ac_cv_sizeof_long_long=4
12656 if expr "$ac_cv_sizeof_char" '>=' "$1" >/dev/null; then
12660 if expr "$ac_cv_sizeof_short" '>=' "$1" >/dev/null; then
12664 if expr "$ac_cv_sizeof_int" '>=' "$1" >/dev/null; then
12668 if expr "$ac_cv_sizeof_long" '>=' "$1" >/dev/null; then
12672 if expr "$ac_cv_sizeof_long_long" '>=' "$1" >/dev/null; then
12679 echo "$as_me:$LINENO: checking type name for byte" >&5
12680 echo $ECHO_N "checking type name for byte... $ECHO_C" >&6
12681 TYPE_BYTE=`type_name 1`
12682 echo "$as_me:$LINENO: result: $TYPE_BYTE" >&5
12683 echo "${ECHO_T}$TYPE_BYTE" >&6
12684 echo "$as_me:$LINENO: checking type name for word" >&5
12685 echo $ECHO_N "checking type name for word... $ECHO_C" >&6
12686 TYPE_WORD=`type_name 2`
12687 echo "$as_me:$LINENO: result: $TYPE_WORD" >&5
12688 echo "${ECHO_T}$TYPE_WORD" >&6
12689 echo "$as_me:$LINENO: checking type name for dword" >&5
12690 echo $ECHO_N "checking type name for dword... $ECHO_C" >&6
12691 TYPE_DWORD=`type_name 4`
12692 echo "$as_me:$LINENO: result: $TYPE_DWORD" >&5
12693 echo "${ECHO_T}$TYPE_DWORD" >&6
12694 cat >>confdefs.h <<_ACEOF
12695 #define TYPE_BYTE $TYPE_BYTE
12698 cat >>confdefs.h <<_ACEOF
12699 #define TYPE_WORD $TYPE_WORD
12702 cat >>confdefs.h <<_ACEOF
12703 #define TYPE_DWORD $TYPE_DWORD
12707 if echo $TYPE_DWORD|grep short >/dev/null; then
12709 elif echo $TYPE_DWORD|grep long >/dev/null; then
12715 if echo $TYPE_WORD|grep short >/dev/null; then M="h"
12716 elif echo $TYPE_WORD|grep long >/dev/null; then M="l"
12720 cat >>confdefs.h <<_ACEOF
12724 cat >>confdefs.h <<_ACEOF
12729 # *nix default: "${datadir}/sdcc/doc"
12731 if test "${docdir}" = ""; then
12732 docdir="\${datadir}"/sdcc/doc
12736 # Generating output files
12737 # ===========================================================================
12739 ac_config_files="$ac_config_files main.mk:main_in.mk packages.mk:packages_in.mk sim.src/Makefile cmd.src/Makefile s51.src/Makefile avr.src/Makefile z80.src/Makefile hc08.src/Makefile xa.src/Makefile gui.src/Makefile gui.src/serio.src/Makefile doc/Makefile"
12740 cat >confcache <<\_ACEOF
12741 # This file is a shell script that caches the results of configure
12742 # tests run on this system so they can be shared between configure
12743 # scripts and configure runs, see configure's option --config-cache.
12744 # It is not useful on other systems. If it contains results you don't
12745 # want to keep, you may remove or edit it.
12747 # config.status only pays attention to the cache file if you give it
12748 # the --recheck option to rerun configure.
12750 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12751 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12752 # following values.
12756 # The following way of writing the cache mishandles newlines in values,
12757 # but we know of no workaround that is simple, portable, and efficient.
12758 # So, don't put newlines in cache variables' values.
12759 # Ultrix sh set writes to stderr and can't be redirected directly,
12760 # and sets the high bit in the cache file unless we assign to the vars.
12763 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12765 # `set' does not quote correctly, so add quotes (double-quote
12766 # substitution turns \\\\ into \\, and sed turns \\ into \).
12769 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12772 # `set' quotes correctly as required by POSIX, so do not add quotes.
12774 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12781 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12783 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12785 if diff $cache_file confcache >/dev/null 2>&1; then :; else
12786 if test -w $cache_file; then
12787 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12788 cat confcache >$cache_file
12790 echo "not updating unwritable cache $cache_file"
12795 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12796 # Let make expand exec_prefix.
12797 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12799 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12800 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12801 # trailing colons and then remove the whole line if VPATH becomes empty
12802 # (actually we leave an empty line to preserve line numbers).
12803 if test "x$srcdir" = x.; then
12804 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12805 s/:*\$(srcdir):*/:/;
12806 s/:*\${srcdir}:*/:/;
12808 s/^\([^=]*=[ ]*\):*/\1/;
12814 DEFS=-DHAVE_CONFIG_H
12818 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12819 # 1. Remove the extension, and $U if already installed.
12820 ac_i=`echo "$ac_i" |
12821 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12823 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12824 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
12826 LIBOBJS=$ac_libobjs
12828 LTLIBOBJS=$ac_ltlibobjs
12832 : ${CONFIG_STATUS=./config.status}
12833 ac_clean_files_save=$ac_clean_files
12834 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12835 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12836 echo "$as_me: creating $CONFIG_STATUS" >&6;}
12837 cat >$CONFIG_STATUS <<_ACEOF
12839 # Generated by $as_me.
12840 # Run this file to recreate the current configuration.
12841 # Compiler output produced by configure, useful for debugging
12842 # configure, is in config.log if it exists.
12845 ac_cs_recheck=false
12847 SHELL=\${CONFIG_SHELL-$SHELL}
12850 cat >>$CONFIG_STATUS <<\_ACEOF
12851 ## --------------------- ##
12852 ## M4sh Initialization. ##
12853 ## --------------------- ##
12855 # Be Bourne compatible
12856 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12859 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12860 # is contrary to our usage. Disable this feature.
12861 alias -g '${1+"$@"}'='"$@"'
12862 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12866 # Support unset when possible.
12867 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
12874 # Work around bugs in pre-3.0 UWIN ksh.
12875 $as_unset ENV MAIL MAILPATH
12882 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12883 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12884 LC_TELEPHONE LC_TIME
12886 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
12887 eval $as_var=C; export $as_var
12893 # Required to use basename.
12894 if expr a : '\(a\)' >/dev/null 2>&1; then
12900 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
12901 as_basename=basename
12907 # Name of the executable.
12908 as_me=`$as_basename "$0" ||
12909 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12910 X"$0" : 'X\(//\)$' \| \
12911 X"$0" : 'X\(/\)$' \| \
12912 . : '\(.\)' 2>/dev/null ||
12914 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12915 /^X\/\(\/\/\)$/{ s//\1/; q; }
12916 /^X\/\(\/\).*/{ s//\1/; q; }
12920 # PATH needs CR, and LINENO needs CR and PATH.
12921 # Avoid depending upon Character Ranges.
12922 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12923 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12924 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12925 as_cr_digits='0123456789'
12926 as_cr_alnum=$as_cr_Letters$as_cr_digits
12928 # The user is always right.
12929 if test "${PATH_SEPARATOR+set}" != set; then
12930 echo "#! /bin/sh" >conf$$.sh
12931 echo "exit 0" >>conf$$.sh
12933 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12942 as_lineno_1=$LINENO
12943 as_lineno_2=$LINENO
12944 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12945 test "x$as_lineno_1" != "x$as_lineno_2" &&
12946 test "x$as_lineno_3" = "x$as_lineno_2" || {
12947 # Find who we are. Look in the path if we contain no path at all
12950 *[\\/]* ) as_myself=$0 ;;
12951 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12952 for as_dir in $PATH
12955 test -z "$as_dir" && as_dir=.
12956 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12961 # We did not find ourselves, most probably we were run as `sh COMMAND'
12962 # in which case we are not to be found in the path.
12963 if test "x$as_myself" = x; then
12966 if test ! -f "$as_myself"; then
12967 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12968 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12969 { (exit 1); exit 1; }; }
12971 case $CONFIG_SHELL in
12973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12974 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12977 test -z "$as_dir" && as_dir=.
12978 for as_base in sh bash ksh sh5; do
12981 if ("$as_dir/$as_base" -c '
12982 as_lineno_1=$LINENO
12983 as_lineno_2=$LINENO
12984 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12985 test "x$as_lineno_1" != "x$as_lineno_2" &&
12986 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
12987 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12988 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12989 CONFIG_SHELL=$as_dir/$as_base
12990 export CONFIG_SHELL
12991 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12999 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13000 # uniformly replaced by the line number. The first 'sed' inserts a
13001 # line-number line before each line; the second 'sed' does the real
13002 # work. The second script uses 'N' to pair each line-number line
13003 # with the numbered line, and appends trailing '-' during
13004 # substitution so that $LINENO is not a special case at line end.
13005 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13006 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
13007 sed '=' <$as_myself |
13012 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
13015 s,^['$as_cr_digits']*\n,,
13016 ' >$as_me.lineno &&
13017 chmod +x $as_me.lineno ||
13018 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
13019 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
13020 { (exit 1); exit 1; }; }
13022 # Don't try to exec as it changes $[0], causing all sort of problems
13023 # (the dirname of $[0] is not the place where we might find the
13024 # original and so on. Autoconf is especially sensible to this).
13026 # Exit status is that of the last command.
13031 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
13032 *c*,-n*) ECHO_N= ECHO_C='
13034 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
13035 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
13038 if expr a : '\(a\)' >/dev/null 2>&1; then
13044 rm -f conf$$ conf$$.exe conf$$.file
13046 if ln -s conf$$.file conf$$ 2>/dev/null; then
13047 # We could just check for DJGPP; but this test a) works b) is more generic
13048 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
13049 if test -f conf$$.exe; then
13050 # Don't use ln at all; we don't have any links
13055 elif ln conf$$.file conf$$ 2>/dev/null; then
13060 rm -f conf$$ conf$$.exe conf$$.file
13062 if mkdir -p . 2>/dev/null; then
13068 as_executable_p="test -f"
13070 # Sed expression to map a string onto a valid CPP name.
13071 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
13073 # Sed expression to map a string onto a valid variable name.
13074 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
13078 # We need space, tab and new line, in precisely that order.
13088 # Open the log real soon, to keep \$[0] and so on meaningful, and to
13089 # report actual input values of CONFIG_FILES etc. instead of their
13090 # values after options handling. Logging --version etc. is OK.
13094 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13095 ## Running $as_me. ##
13100 This file was extended by $as_me, which was
13101 generated by GNU Autoconf 2.57. Invocation command line was
13103 CONFIG_FILES = $CONFIG_FILES
13104 CONFIG_HEADERS = $CONFIG_HEADERS
13105 CONFIG_LINKS = $CONFIG_LINKS
13106 CONFIG_COMMANDS = $CONFIG_COMMANDS
13110 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
13114 # Files that config.status was made for.
13115 if test -n "$ac_config_files"; then
13116 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
13119 if test -n "$ac_config_headers"; then
13120 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
13123 if test -n "$ac_config_links"; then
13124 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
13127 if test -n "$ac_config_commands"; then
13128 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
13131 cat >>$CONFIG_STATUS <<\_ACEOF
13134 \`$as_me' instantiates files from templates according to the
13135 current configuration.
13137 Usage: $0 [OPTIONS] [FILE]...
13139 -h, --help print this help, then exit
13140 -V, --version print version number, then exit
13141 -q, --quiet do not print progress messages
13142 -d, --debug don't remove temporary files
13143 --recheck update $as_me by reconfiguring in the same conditions
13144 --file=FILE[:TEMPLATE]
13145 instantiate the configuration file FILE
13146 --header=FILE[:TEMPLATE]
13147 instantiate the configuration header FILE
13149 Configuration files:
13152 Configuration headers:
13155 Report bugs to <bug-autoconf@gnu.org>."
13158 cat >>$CONFIG_STATUS <<_ACEOF
13161 configured by $0, generated by GNU Autoconf 2.57,
13162 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
13164 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
13165 Free Software Foundation, Inc.
13166 This config.status script is free software; the Free Software Foundation
13167 gives unlimited permission to copy, distribute and modify it."
13172 cat >>$CONFIG_STATUS <<\_ACEOF
13173 # If no file are specified by the user, then we need to provide default
13174 # value. By we need to know if files were specified by the user.
13180 ac_option=`expr "x$1" : 'x\([^=]*\)='`
13181 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
13189 *) # This is not an option, so the user has probably given explicit
13192 ac_need_defaults=false;;
13196 # Handling of the options.
13198 cat >>$CONFIG_STATUS <<\_ACEOF
13199 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13201 --version | --vers* | -V )
13202 echo "$ac_cs_version"; exit 0 ;;
13204 # Conflict between --help and --header
13205 { { echo "$as_me:$LINENO: error: ambiguous option: $1
13206 Try \`$0 --help' for more information." >&5
13207 echo "$as_me: error: ambiguous option: $1
13208 Try \`$0 --help' for more information." >&2;}
13209 { (exit 1); exit 1; }; };;
13210 --help | --hel | -h )
13211 echo "$ac_cs_usage"; exit 0 ;;
13212 --debug | --d* | -d )
13214 --file | --fil | --fi | --f )
13216 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
13217 ac_need_defaults=false;;
13218 --header | --heade | --head | --hea )
13220 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
13221 ac_need_defaults=false;;
13222 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13223 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13226 # This is an error.
13227 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
13228 Try \`$0 --help' for more information." >&5
13229 echo "$as_me: error: unrecognized option: $1
13230 Try \`$0 --help' for more information." >&2;}
13231 { (exit 1); exit 1; }; } ;;
13233 *) ac_config_targets="$ac_config_targets $1" ;;
13239 ac_configure_extra_args=
13241 if $ac_cs_silent; then
13243 ac_configure_extra_args="$ac_configure_extra_args --silent"
13247 cat >>$CONFIG_STATUS <<_ACEOF
13248 if \$ac_cs_recheck; then
13249 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
13250 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13259 cat >>$CONFIG_STATUS <<\_ACEOF
13260 for ac_config_target in $ac_config_targets
13262 case "$ac_config_target" in
13263 # Handling of arguments.
13264 "main.mk" ) CONFIG_FILES="$CONFIG_FILES main.mk:main_in.mk" ;;
13265 "packages.mk" ) CONFIG_FILES="$CONFIG_FILES packages.mk:packages_in.mk" ;;
13266 "sim.src/Makefile" ) CONFIG_FILES="$CONFIG_FILES sim.src/Makefile" ;;
13267 "cmd.src/Makefile" ) CONFIG_FILES="$CONFIG_FILES cmd.src/Makefile" ;;
13268 "s51.src/Makefile" ) CONFIG_FILES="$CONFIG_FILES s51.src/Makefile" ;;
13269 "avr.src/Makefile" ) CONFIG_FILES="$CONFIG_FILES avr.src/Makefile" ;;
13270 "z80.src/Makefile" ) CONFIG_FILES="$CONFIG_FILES z80.src/Makefile" ;;
13271 "hc08.src/Makefile" ) CONFIG_FILES="$CONFIG_FILES hc08.src/Makefile" ;;
13272 "xa.src/Makefile" ) CONFIG_FILES="$CONFIG_FILES xa.src/Makefile" ;;
13273 "gui.src/Makefile" ) CONFIG_FILES="$CONFIG_FILES gui.src/Makefile" ;;
13274 "gui.src/serio.src/Makefile" ) CONFIG_FILES="$CONFIG_FILES gui.src/serio.src/Makefile" ;;
13275 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
13276 "ddconfig.h" ) CONFIG_HEADERS="$CONFIG_HEADERS ddconfig.h:ddconfig_in.h" ;;
13277 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13278 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13279 { (exit 1); exit 1; }; };;
13283 # If the user did not use the arguments to specify the items to instantiate,
13284 # then the envvar interface is used. Set only those that are not.
13285 # We use the long form for the default assignment because of an extremely
13286 # bizarre bug on SunOS 4.1.3.
13287 if $ac_need_defaults; then
13288 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13289 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13292 # Have a temporary directory for convenience. Make it in the build tree
13293 # simply because there is no reason to put it here, and in addition,
13294 # creating and moving files from /tmp can sometimes cause problems.
13295 # Create a temporary directory, and hook for its removal unless debugging.
13298 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
13299 trap '{ (exit 1); exit 1; }' 1 2 13 15
13302 # Create a (secure) tmp directory for tmp files.
13305 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
13306 test -n "$tmp" && test -d "$tmp"
13309 tmp=./confstat$$-$RANDOM
13310 (umask 077 && mkdir $tmp)
13313 echo "$me: cannot create a temporary directory in ." >&2
13314 { (exit 1); exit 1; }
13319 cat >>$CONFIG_STATUS <<_ACEOF
13322 # CONFIG_FILES section.
13325 # No need to generate the scripts if there are no CONFIG_FILES.
13326 # This happens for instance when ./config.status config.h
13327 if test -n "\$CONFIG_FILES"; then
13328 # Protect against being on the right side of a sed subst in config.status.
13329 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
13330 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
13331 s,@SHELL@,$SHELL,;t t
13332 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
13333 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
13334 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
13335 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
13336 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
13337 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
13338 s,@exec_prefix@,$exec_prefix,;t t
13339 s,@prefix@,$prefix,;t t
13340 s,@program_transform_name@,$program_transform_name,;t t
13341 s,@bindir@,$bindir,;t t
13342 s,@sbindir@,$sbindir,;t t
13343 s,@libexecdir@,$libexecdir,;t t
13344 s,@datadir@,$datadir,;t t
13345 s,@sysconfdir@,$sysconfdir,;t t
13346 s,@sharedstatedir@,$sharedstatedir,;t t
13347 s,@localstatedir@,$localstatedir,;t t
13348 s,@libdir@,$libdir,;t t
13349 s,@includedir@,$includedir,;t t
13350 s,@oldincludedir@,$oldincludedir,;t t
13351 s,@infodir@,$infodir,;t t
13352 s,@mandir@,$mandir,;t t
13353 s,@build_alias@,$build_alias,;t t
13354 s,@host_alias@,$host_alias,;t t
13355 s,@target_alias@,$target_alias,;t t
13356 s,@DEFS@,$DEFS,;t t
13357 s,@ECHO_C@,$ECHO_C,;t t
13358 s,@ECHO_N@,$ECHO_N,;t t
13359 s,@ECHO_T@,$ECHO_T,;t t
13360 s,@LIBS@,$LIBS,;t t
13362 s,@VERSION@,$VERSION,;t t
13363 s,@VERSIONHI@,$VERSIONHI,;t t
13364 s,@VERSIONLO@,$VERSIONLO,;t t
13365 s,@VERSIONP@,$VERSIONP,;t t
13366 s,@enable_ucsim@,$enable_ucsim,;t t
13367 s,@enable_dlso@,$enable_dlso,;t t
13368 s,@enable_51@,$enable_51,;t t
13369 s,@enable_avr@,$enable_avr,;t t
13370 s,@enable_z80@,$enable_z80,;t t
13371 s,@enable_hc08@,$enable_hc08,;t t
13372 s,@enable_xa@,$enable_xa,;t t
13373 s,@enable_serio@,$enable_serio,;t t
13375 s,@CXXFLAGS@,$CXXFLAGS,;t t
13376 s,@LDFLAGS@,$LDFLAGS,;t t
13377 s,@CPPFLAGS@,$CPPFLAGS,;t t
13378 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
13379 s,@EXEEXT@,$EXEEXT,;t t
13380 s,@OBJEXT@,$OBJEXT,;t t
13381 s,@CXXCPP@,$CXXCPP,;t t
13382 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
13383 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
13384 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
13385 s,@RANLIB@,$RANLIB,;t t
13386 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
13387 s,@STRIP@,$STRIP,;t t
13388 s,@build@,$build,;t t
13389 s,@build_cpu@,$build_cpu,;t t
13390 s,@build_vendor@,$build_vendor,;t t
13391 s,@build_os@,$build_os,;t t
13392 s,@host@,$host,;t t
13393 s,@host_cpu@,$host_cpu,;t t
13394 s,@host_vendor@,$host_vendor,;t t
13395 s,@host_os@,$host_os,;t t
13397 s,@CFLAGS@,$CFLAGS,;t t
13398 s,@ac_ct_CC@,$ac_ct_CC,;t t
13399 s,@LN_S@,$LN_S,;t t
13400 s,@ECHO@,$ECHO,;t t
13401 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
13403 s,@EGREP@,$EGREP,;t t
13404 s,@LIBTOOL@,$LIBTOOL,;t t
13405 s,@LIBTOOL_DEPS@,$LIBTOOL_DEPS,;t t
13406 s,@dl_ok@,$dl_ok,;t t
13408 s,@panel_ok@,$panel_ok,;t t
13409 s,@curses_ok@,$curses_ok,;t t
13410 s,@CURSES_LIBS@,$CURSES_LIBS,;t t
13411 s,@M_OR_MM@,$M_OR_MM,;t t
13412 s,@SHAREDLIB@,$SHAREDLIB,;t t
13413 s,@PICOPT@,$PICOPT,;t t
13414 s,@dlso_ok@,$dlso_ok,;t t
13415 s,@docdir@,$docdir,;t t
13416 s,@LIBOBJS@,$LIBOBJS,;t t
13417 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
13422 cat >>$CONFIG_STATUS <<\_ACEOF
13423 # Split the substitutions into bite-sized pieces for seds with
13424 # small command number limits, like on Digital OSF/1 and HP-UX.
13425 ac_max_sed_lines=48
13426 ac_sed_frag=1 # Number of current file.
13427 ac_beg=1 # First line for current file.
13428 ac_end=$ac_max_sed_lines # Line after last line for current file.
13431 while $ac_more_lines; do
13432 if test $ac_beg -gt 1; then
13433 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13435 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13437 if test ! -s $tmp/subs.frag; then
13438 ac_more_lines=false
13440 # The purpose of the label and of the branching condition is to
13441 # speed up the sed processing (if there are no `@' at all, there
13442 # is no need to browse any of the substitutions).
13443 # These are the two extra sed commands mentioned above.
13445 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13446 if test -z "$ac_sed_cmds"; then
13447 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13449 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13451 ac_sed_frag=`expr $ac_sed_frag + 1`
13453 ac_end=`expr $ac_end + $ac_max_sed_lines`
13456 if test -z "$ac_sed_cmds"; then
13459 fi # test -n "$CONFIG_FILES"
13462 cat >>$CONFIG_STATUS <<\_ACEOF
13463 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
13464 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13466 - | *:- | *:-:* ) # input from stdin
13468 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13469 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13470 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13471 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13472 * ) ac_file_in=$ac_file.in ;;
13475 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13476 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13477 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13478 X"$ac_file" : 'X\(//\)[^/]' \| \
13479 X"$ac_file" : 'X\(//\)$' \| \
13480 X"$ac_file" : 'X\(/\)' \| \
13481 . : '\(.\)' 2>/dev/null ||
13483 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13484 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13485 /^X\(\/\/\)$/{ s//\1/; q; }
13486 /^X\(\/\).*/{ s//\1/; q; }
13488 { if $as_mkdir_p; then
13493 while test ! -d "$as_dir"; do
13494 as_dirs="$as_dir $as_dirs"
13495 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13496 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13497 X"$as_dir" : 'X\(//\)[^/]' \| \
13498 X"$as_dir" : 'X\(//\)$' \| \
13499 X"$as_dir" : 'X\(/\)' \| \
13500 . : '\(.\)' 2>/dev/null ||
13502 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13503 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13504 /^X\(\/\/\)$/{ s//\1/; q; }
13505 /^X\(\/\).*/{ s//\1/; q; }
13508 test ! -n "$as_dirs" || mkdir $as_dirs
13509 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13510 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13511 { (exit 1); exit 1; }; }; }
13515 if test "$ac_dir" != .; then
13516 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13517 # A "../" for each directory in $ac_dir_suffix.
13518 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13520 ac_dir_suffix= ac_top_builddir=
13524 .) # No --srcdir option. We are building in place.
13526 if test -z "$ac_top_builddir"; then
13529 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13531 [\\/]* | ?:[\\/]* ) # Absolute path.
13532 ac_srcdir=$srcdir$ac_dir_suffix;
13533 ac_top_srcdir=$srcdir ;;
13534 *) # Relative path.
13535 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13536 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13538 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
13540 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
13541 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
13542 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
13543 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
13547 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13548 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
13551 if test x"$ac_file" != x-; then
13552 { echo "$as_me:$LINENO: creating $ac_file" >&5
13553 echo "$as_me: creating $ac_file" >&6;}
13556 # Let's still pretend it is `configure' which instantiates (i.e., don't
13557 # use $as_me), people would be surprised to read:
13558 # /* config.h. Generated by config.status. */
13559 if test x"$ac_file" = x-; then
13562 configure_input="$ac_file. "
13564 configure_input=$configure_input"Generated from `echo $ac_file_in |
13565 sed 's,.*/,,'` by configure."
13567 # First look for the input files in the build tree, otherwise in the
13569 ac_file_inputs=`IFS=:
13570 for f in $ac_file_in; do
13572 -) echo $tmp/stdin ;;
13574 # Absolute (can't be DOS-style, as IFS=:)
13575 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13576 echo "$as_me: error: cannot find input file: $f" >&2;}
13577 { (exit 1); exit 1; }; }
13580 if test -f "$f"; then
13583 elif test -f "$srcdir/$f"; then
13588 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13589 echo "$as_me: error: cannot find input file: $f" >&2;}
13590 { (exit 1); exit 1; }; }
13593 done` || { (exit 1); exit 1; }
13595 cat >>$CONFIG_STATUS <<_ACEOF
13599 cat >>$CONFIG_STATUS <<\_ACEOF
13601 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13602 s,@configure_input@,$configure_input,;t t
13603 s,@srcdir@,$ac_srcdir,;t t
13604 s,@abs_srcdir@,$ac_abs_srcdir,;t t
13605 s,@top_srcdir@,$ac_top_srcdir,;t t
13606 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13607 s,@builddir@,$ac_builddir,;t t
13608 s,@abs_builddir@,$ac_abs_builddir,;t t
13609 s,@top_builddir@,$ac_top_builddir,;t t
13610 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13611 s,@INSTALL@,$ac_INSTALL,;t t
13612 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13614 if test x"$ac_file" != x-; then
13615 mv $tmp/out $ac_file
13623 cat >>$CONFIG_STATUS <<\_ACEOF
13626 # CONFIG_HEADER section.
13629 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13630 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13632 # ac_d sets the value in "#define NAME VALUE" lines.
13633 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13634 ac_dB='[ ].*$,\1#\2'
13637 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13638 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13639 ac_uB='$,\1#\2define\3'
13643 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
13644 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13646 - | *:- | *:-:* ) # input from stdin
13648 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13649 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13650 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13651 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13652 * ) ac_file_in=$ac_file.in ;;
13655 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
13656 echo "$as_me: creating $ac_file" >&6;}
13658 # First look for the input files in the build tree, otherwise in the
13660 ac_file_inputs=`IFS=:
13661 for f in $ac_file_in; do
13663 -) echo $tmp/stdin ;;
13665 # Absolute (can't be DOS-style, as IFS=:)
13666 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13667 echo "$as_me: error: cannot find input file: $f" >&2;}
13668 { (exit 1); exit 1; }; }
13671 if test -f "$f"; then
13674 elif test -f "$srcdir/$f"; then
13679 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13680 echo "$as_me: error: cannot find input file: $f" >&2;}
13681 { (exit 1); exit 1; }; }
13684 done` || { (exit 1); exit 1; }
13685 # Remove the trailing spaces.
13686 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
13690 # Transform confdefs.h into two sed scripts, `conftest.defines' and
13691 # `conftest.undefs', that substitutes the proper values into
13692 # config.h.in to produce config.h. The first handles `#define'
13693 # templates, and the second `#undef' templates.
13694 # And first: Protect against being on the right side of a sed subst in
13695 # config.status. Protect against being in an unquoted here document
13696 # in config.status.
13697 rm -f conftest.defines conftest.undefs
13698 # Using a here document instead of a string reduces the quoting nightmare.
13699 # Putting comments in sed scripts is not portable.
13701 # `end' is used to avoid that the second main sed command (meant for
13702 # 0-ary CPP macros) applies to n-ary macro definitions.
13703 # See the Autoconf documentation for `clear'.
13704 cat >confdef2sed.sed <<\_ACEOF
13709 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
13711 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
13714 # If some macros were called several times there might be several times
13715 # the same #defines, which is useless. Nevertheless, we may not want to
13716 # sort them, since we want the *last* AC-DEFINE to be honored.
13717 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
13718 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
13719 rm -f confdef2sed.sed
13721 # This sed command replaces #undef with comments. This is necessary, for
13722 # example, in the case of _POSIX_SOURCE, which is predefined and required
13723 # on some systems where configure will not decide to define it.
13724 cat >>conftest.undefs <<\_ACEOF
13725 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
13728 # Break up conftest.defines because some shells have a limit on the size
13729 # of here documents, and old seds have small limits too (100 cmds).
13730 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
13731 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
13732 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
13733 echo ' :' >>$CONFIG_STATUS
13734 rm -f conftest.tail
13735 while grep . conftest.defines >/dev/null
13737 # Write a limited-size here document to $tmp/defines.sed.
13738 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
13739 # Speed up: don't consider the non `#define' lines.
13740 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
13741 # Work around the forget-to-reset-the-flag bug.
13742 echo 't clr' >>$CONFIG_STATUS
13743 echo ': clr' >>$CONFIG_STATUS
13744 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
13746 sed -f $tmp/defines.sed $tmp/in >$tmp/out
13748 mv $tmp/out $tmp/in
13750 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
13751 rm -f conftest.defines
13752 mv conftest.tail conftest.defines
13754 rm -f conftest.defines
13755 echo ' fi # grep' >>$CONFIG_STATUS
13756 echo >>$CONFIG_STATUS
13758 # Break up conftest.undefs because some shells have a limit on the size
13759 # of here documents, and old seds have small limits too (100 cmds).
13760 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
13761 rm -f conftest.tail
13762 while grep . conftest.undefs >/dev/null
13764 # Write a limited-size here document to $tmp/undefs.sed.
13765 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
13766 # Speed up: don't consider the non `#undef'
13767 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
13768 # Work around the forget-to-reset-the-flag bug.
13769 echo 't clr' >>$CONFIG_STATUS
13770 echo ': clr' >>$CONFIG_STATUS
13771 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
13773 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
13775 mv $tmp/out $tmp/in
13777 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
13778 rm -f conftest.undefs
13779 mv conftest.tail conftest.undefs
13781 rm -f conftest.undefs
13783 cat >>$CONFIG_STATUS <<\_ACEOF
13784 # Let's still pretend it is `configure' which instantiates (i.e., don't
13785 # use $as_me), people would be surprised to read:
13786 # /* config.h. Generated by config.status. */
13787 if test x"$ac_file" = x-; then
13788 echo "/* Generated by configure. */" >$tmp/config.h
13790 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
13792 cat $tmp/in >>$tmp/config.h
13794 if test x"$ac_file" != x-; then
13795 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
13796 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13797 echo "$as_me: $ac_file is unchanged" >&6;}
13799 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13800 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13801 X"$ac_file" : 'X\(//\)[^/]' \| \
13802 X"$ac_file" : 'X\(//\)$' \| \
13803 X"$ac_file" : 'X\(/\)' \| \
13804 . : '\(.\)' 2>/dev/null ||
13806 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13807 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13808 /^X\(\/\/\)$/{ s//\1/; q; }
13809 /^X\(\/\).*/{ s//\1/; q; }
13811 { if $as_mkdir_p; then
13816 while test ! -d "$as_dir"; do
13817 as_dirs="$as_dir $as_dirs"
13818 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13819 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13820 X"$as_dir" : 'X\(//\)[^/]' \| \
13821 X"$as_dir" : 'X\(//\)$' \| \
13822 X"$as_dir" : 'X\(/\)' \| \
13823 . : '\(.\)' 2>/dev/null ||
13825 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13826 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13827 /^X\(\/\/\)$/{ s//\1/; q; }
13828 /^X\(\/\).*/{ s//\1/; q; }
13831 test ! -n "$as_dirs" || mkdir $as_dirs
13832 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13833 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13834 { (exit 1); exit 1; }; }; }
13837 mv $tmp/config.h $ac_file
13841 rm -f $tmp/config.h
13846 cat >>$CONFIG_STATUS <<\_ACEOF
13848 { (exit 0); exit 0; }
13850 chmod +x $CONFIG_STATUS
13851 ac_clean_files=$ac_clean_files_save
13854 # configure is writing to config.log, and then calls config.status.
13855 # config.status does its own redirection, appending to config.log.
13856 # Unfortunately, on DOS this fails, as config.log is still kept open
13857 # by configure, so config.status won't be able to write to it; its
13858 # output is simply discarded. So we exec the FD to /dev/null,
13859 # effectively closing config.log, so it can be properly (re)opened and
13860 # appended to by config.status. When coming back to configure, we
13861 # need to make the FD available again.
13862 if test "$no_create" != yes; then
13864 ac_config_status_args=
13865 test "$silent" = yes &&
13866 ac_config_status_args="$ac_config_status_args --quiet"
13868 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13870 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13871 # would make configure fail if this is the last instruction.
13872 $ac_cs_success || { (exit 1); exit 1; }
13876 #gui.src/portmon.src/Makefile
13879 # End of configure/configure.in