2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.54.
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
39 for as_var in LANG LANGUAGE LC_ALL LC_COLLATE LC_CTYPE LC_NUMERIC LC_MESSAGES LC_TIME
41 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
42 eval $as_var=C; export $as_var
48 # Required to use basename.
49 if expr a : '\(a\)' >/dev/null 2>&1; then
55 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
62 # Name of the executable.
63 as_me=`$as_basename "$0" ||
64 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
65 X"$0" : 'X\(//\)$' \| \
66 X"$0" : 'X\(/\)$' \| \
67 . : '\(.\)' 2>/dev/null ||
69 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
70 /^X\/\(\/\/\)$/{ s//\1/; q; }
71 /^X\/\(\/\).*/{ s//\1/; q; }
75 # PATH needs CR, and LINENO needs CR and PATH.
76 # Avoid depending upon Character Ranges.
77 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
78 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
79 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
80 as_cr_digits='0123456789'
81 as_cr_alnum=$as_cr_Letters$as_cr_digits
83 # The user is always right.
84 if test "${PATH_SEPARATOR+set}" != set; then
85 echo "#! /bin/sh" >conftest.sh
86 echo "exit 0" >>conftest.sh
88 if (PATH="/nonexistent;."; conftest.sh) >/dev/null 2>&1; then
99 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
100 test "x$as_lineno_1" != "x$as_lineno_2" &&
101 test "x$as_lineno_3" = "x$as_lineno_2" || {
102 # Find who we are. Look in the path if we contain no path at all
105 *[\\/]* ) as_myself=$0 ;;
106 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 test -z "$as_dir" && as_dir=.
111 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
116 # We did not find ourselves, most probably we were run as `sh COMMAND'
117 # in which case we are not to be found in the path.
118 if test "x$as_myself" = x; then
121 if test ! -f "$as_myself"; then
122 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
123 { (exit 1); exit 1; }; }
125 case $CONFIG_SHELL in
127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
128 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
131 test -z "$as_dir" && as_dir=.
132 for as_base in sh bash ksh sh5; do
135 if ("$as_dir/$as_base" -c '
138 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
139 test "x$as_lineno_1" != "x$as_lineno_2" &&
140 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
141 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
142 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
143 CONFIG_SHELL=$as_dir/$as_base
145 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
153 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
154 # uniformly replaced by the line number. The first 'sed' inserts a
155 # line-number line before each line; the second 'sed' does the real
156 # work. The second script uses 'N' to pair each line-number line
157 # with the numbered line, and appends trailing '-' during
158 # substitution so that $LINENO is not a special case at line end.
159 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
160 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
161 sed '=' <$as_myself |
166 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
169 s,^['$as_cr_digits']*\n,,
171 chmod +x $as_me.lineno ||
172 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
173 { (exit 1); exit 1; }; }
175 # Don't try to exec as it changes $[0], causing all sort of problems
176 # (the dirname of $[0] is not the place where we might find the
177 # original and so on. Autoconf is especially sensible to this).
179 # Exit status is that of the last command.
184 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
185 *c*,-n*) ECHO_N= ECHO_C='
187 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
188 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
191 if expr a : '\(a\)' >/dev/null 2>&1; then
197 rm -f conf$$ conf$$.exe conf$$.file
199 if ln -s conf$$.file conf$$ 2>/dev/null; then
200 # We could just check for DJGPP; but this test a) works b) is more generic
201 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
202 if test -f conf$$.exe; then
203 # Don't use ln at all; we don't have any links
208 elif ln conf$$.file conf$$ 2>/dev/null; then
213 rm -f conf$$ conf$$.exe conf$$.file
215 if mkdir -p . 2>/dev/null; then
221 as_executable_p="test -f"
223 # Sed expression to map a string onto a valid CPP name.
224 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
226 # Sed expression to map a string onto a valid variable name.
227 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
231 # We need space, tab and new line, in precisely that order.
240 # Find the correct PATH separator. Usually this is `:', but
241 # DJGPP uses `;' like DOS.
242 if test "X${PATH_SEPARATOR+set}" != Xset; then
243 UNAME=${UNAME-`uname 2>/dev/null`}
245 *-DOS) lt_cv_sys_path_separator=';' ;;
246 *) lt_cv_sys_path_separator=':' ;;
248 PATH_SEPARATOR=$lt_cv_sys_path_separator
252 # Check that we are running under the correct shell.
253 SHELL=${CONFIG_SHELL-/bin/sh}
257 # Remove one level of quotation (which was required for Make).
258 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
263 if test "X$1" = X--no-reexec; then
264 # Discard the --no-reexec flag, and continue.
266 elif test "X$1" = X--fallback-echo; then
267 # Avoid inline document here, it may be left over
269 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
270 # Yippee, $echo works!
273 # Restart under the correct shell.
274 exec $SHELL "$0" --no-reexec ${1+"$@"}
277 if test "X$1" = X--fallback-echo; then
278 # used as fallback echo
286 # The HP-UX ksh and POSIX shell print the target directory to stdout
288 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
290 if test -z "$ECHO"; then
291 if test "X${echo_test_string+set}" != Xset; then
292 # find a string as large as possible, as long as the shell can cope with it
293 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
294 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
295 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
296 echo_test_string="`eval $cmd`" &&
297 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
304 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
305 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
306 test "X$echo_testing_string" = "X$echo_test_string"; then
309 # The Solaris, AIX, and Digital Unix default echo programs unquote
310 # backslashes. This makes it impossible to quote backslashes using
311 # echo "$something" | sed 's/\\/\\\\/g'
313 # So, first we look for a working echo in the user's PATH.
315 IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
316 for dir in $PATH /usr/ucb; do
317 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
318 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
319 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
320 test "X$echo_testing_string" = "X$echo_test_string"; then
327 if test "X$echo" = Xecho; then
328 # We didn't find a better echo, so look for alternatives.
329 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
330 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
331 test "X$echo_testing_string" = "X$echo_test_string"; then
332 # This shell has a builtin print -r that does the trick.
334 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
335 test "X$CONFIG_SHELL" != X/bin/ksh; then
336 # If we have ksh, try running configure again with it.
337 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
338 export ORIGINAL_CONFIG_SHELL
339 CONFIG_SHELL=/bin/ksh
341 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
345 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
346 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
347 test "X$echo_testing_string" = "X$echo_test_string"; then
350 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
351 test "X$echo_testing_string" = 'X\t' &&
352 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
353 test "X$echo_testing_string" = "X$echo_test_string"; then
354 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
356 SHELL="$CONFIG_SHELL"
358 echo="$CONFIG_SHELL $0 --fallback-echo"
359 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
360 test "X$echo_testing_string" = 'X\t' &&
361 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
362 test "X$echo_testing_string" = "X$echo_test_string"; then
363 echo="$CONFIG_SHELL $0 --fallback-echo"
365 # maybe with a smaller string...
368 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
369 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
376 if test "$prev" != 'sed 50q "$0"'; then
377 echo_test_string=`eval $prev`
378 export echo_test_string
379 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
381 # Oops. We lost completely, so just stick with echo.
390 # Copy echo and quote the copy suitably for passing to libtool from
391 # the Makefile, instead of quoting the original, which is used later.
393 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
394 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
400 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
401 # so uname gets run too.
402 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
409 ac_default_prefix=/usr/local
410 ac_config_libobj_dir=.
415 SHELL=${CONFIG_SHELL-/bin/sh}
417 # Maximum number of lines to put in a shell here document.
418 # This variable seems obsolete. It should probably be removed, and
419 # only ac_max_sed_lines should be used.
420 : ${ac_max_here_lines=38}
422 # Identity of this package.
429 ac_unique_file=".version"
430 # Factoring default headers for most tests.
431 ac_includes_default="\
434 # include <sys/types.h>
437 # include <sys/stat.h>
448 # if !STDC_HEADERS && HAVE_MEMORY_H
454 # include <strings.h>
457 # include <inttypes.h>
467 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_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 LIBOBJS LTLIBOBJS'
470 # Initialize some variables set by options.
472 ac_init_version=false
473 # The variables have the same names as the options, with
474 # dashes changed to underlines.
482 program_transform_name=s,x,x,
490 # Installation directory options.
491 # These are left unexpanded so users can "make install exec_prefix=/foo"
492 # and all the variables that are supposed to be based on exec_prefix
493 # by default will actually change.
494 # Use braces instead of parens because sh, perl, etc. also accept them.
495 bindir='${exec_prefix}/bin'
496 sbindir='${exec_prefix}/sbin'
497 libexecdir='${exec_prefix}/libexec'
498 datadir='${prefix}/share'
499 sysconfdir='${prefix}/etc'
500 sharedstatedir='${prefix}/com'
501 localstatedir='${prefix}/var'
502 libdir='${exec_prefix}/lib'
503 includedir='${prefix}/include'
504 oldincludedir='/usr/include'
505 infodir='${prefix}/info'
506 mandir='${prefix}/man'
511 # If the previous option needs an argument, assign it.
512 if test -n "$ac_prev"; then
513 eval "$ac_prev=\$ac_option"
518 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
520 # Accept the important Cygnus configure options, so we can diagnose typos.
524 -bindir | --bindir | --bindi | --bind | --bin | --bi)
526 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
529 -build | --build | --buil | --bui | --bu)
530 ac_prev=build_alias ;;
531 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
532 build_alias=$ac_optarg ;;
534 -cache-file | --cache-file | --cache-fil | --cache-fi \
535 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
536 ac_prev=cache_file ;;
537 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
538 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
539 cache_file=$ac_optarg ;;
542 cache_file=config.cache ;;
544 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
546 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
548 datadir=$ac_optarg ;;
550 -disable-* | --disable-*)
551 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
552 # Reject names that are not valid shell variable names.
553 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
554 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
555 { (exit 1); exit 1; }; }
556 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
557 eval "enable_$ac_feature=no" ;;
559 -enable-* | --enable-*)
560 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
561 # Reject names that are not valid shell variable names.
562 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
563 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
564 { (exit 1); exit 1; }; }
565 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
567 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
570 eval "enable_$ac_feature='$ac_optarg'" ;;
572 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
573 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
574 | --exec | --exe | --ex)
575 ac_prev=exec_prefix ;;
576 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
577 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
578 | --exec=* | --exe=* | --ex=*)
579 exec_prefix=$ac_optarg ;;
581 -gas | --gas | --ga | --g)
582 # Obsolete; use --with-gas.
585 -help | --help | --hel | --he | -h)
587 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
588 ac_init_help=recursive ;;
589 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
590 ac_init_help=short ;;
592 -host | --host | --hos | --ho)
593 ac_prev=host_alias ;;
594 -host=* | --host=* | --hos=* | --ho=*)
595 host_alias=$ac_optarg ;;
597 -includedir | --includedir | --includedi | --included | --include \
598 | --includ | --inclu | --incl | --inc)
599 ac_prev=includedir ;;
600 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
601 | --includ=* | --inclu=* | --incl=* | --inc=*)
602 includedir=$ac_optarg ;;
604 -infodir | --infodir | --infodi | --infod | --info | --inf)
606 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
607 infodir=$ac_optarg ;;
609 -libdir | --libdir | --libdi | --libd)
611 -libdir=* | --libdir=* | --libdi=* | --libd=*)
614 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
615 | --libexe | --libex | --libe)
616 ac_prev=libexecdir ;;
617 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
618 | --libexe=* | --libex=* | --libe=*)
619 libexecdir=$ac_optarg ;;
621 -localstatedir | --localstatedir | --localstatedi | --localstated \
622 | --localstate | --localstat | --localsta | --localst \
623 | --locals | --local | --loca | --loc | --lo)
624 ac_prev=localstatedir ;;
625 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
626 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
627 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
628 localstatedir=$ac_optarg ;;
630 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
632 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
636 # Obsolete; use --without-fp.
639 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
640 | --no-cr | --no-c | -n)
643 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
644 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
647 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
648 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
649 | --oldin | --oldi | --old | --ol | --o)
650 ac_prev=oldincludedir ;;
651 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
652 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
653 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
654 oldincludedir=$ac_optarg ;;
656 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
658 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
661 -program-prefix | --program-prefix | --program-prefi | --program-pref \
662 | --program-pre | --program-pr | --program-p)
663 ac_prev=program_prefix ;;
664 -program-prefix=* | --program-prefix=* | --program-prefi=* \
665 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
666 program_prefix=$ac_optarg ;;
668 -program-suffix | --program-suffix | --program-suffi | --program-suff \
669 | --program-suf | --program-su | --program-s)
670 ac_prev=program_suffix ;;
671 -program-suffix=* | --program-suffix=* | --program-suffi=* \
672 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
673 program_suffix=$ac_optarg ;;
675 -program-transform-name | --program-transform-name \
676 | --program-transform-nam | --program-transform-na \
677 | --program-transform-n | --program-transform- \
678 | --program-transform | --program-transfor \
679 | --program-transfo | --program-transf \
680 | --program-trans | --program-tran \
681 | --progr-tra | --program-tr | --program-t)
682 ac_prev=program_transform_name ;;
683 -program-transform-name=* | --program-transform-name=* \
684 | --program-transform-nam=* | --program-transform-na=* \
685 | --program-transform-n=* | --program-transform-=* \
686 | --program-transform=* | --program-transfor=* \
687 | --program-transfo=* | --program-transf=* \
688 | --program-trans=* | --program-tran=* \
689 | --progr-tra=* | --program-tr=* | --program-t=*)
690 program_transform_name=$ac_optarg ;;
692 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
693 | -silent | --silent | --silen | --sile | --sil)
696 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
698 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
700 sbindir=$ac_optarg ;;
702 -sharedstatedir | --sharedstatedir | --sharedstatedi \
703 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
704 | --sharedst | --shareds | --shared | --share | --shar \
706 ac_prev=sharedstatedir ;;
707 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
708 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
709 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
711 sharedstatedir=$ac_optarg ;;
713 -site | --site | --sit)
715 -site=* | --site=* | --sit=*)
718 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
720 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
723 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
724 | --syscon | --sysco | --sysc | --sys | --sy)
725 ac_prev=sysconfdir ;;
726 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
727 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
728 sysconfdir=$ac_optarg ;;
730 -target | --target | --targe | --targ | --tar | --ta | --t)
731 ac_prev=target_alias ;;
732 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
733 target_alias=$ac_optarg ;;
735 -v | -verbose | --verbose | --verbos | --verbo | --verb)
738 -version | --version | --versio | --versi | --vers | -V)
742 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
743 # Reject names that are not valid shell variable names.
744 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
745 { echo "$as_me: error: invalid package name: $ac_package" >&2
746 { (exit 1); exit 1; }; }
747 ac_package=`echo $ac_package| sed 's/-/_/g'`
749 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
752 eval "with_$ac_package='$ac_optarg'" ;;
754 -without-* | --without-*)
755 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
756 # Reject names that are not valid shell variable names.
757 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
758 { echo "$as_me: error: invalid package name: $ac_package" >&2
759 { (exit 1); exit 1; }; }
760 ac_package=`echo $ac_package | sed 's/-/_/g'`
761 eval "with_$ac_package=no" ;;
764 # Obsolete; use --with-x.
767 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
768 | --x-incl | --x-inc | --x-in | --x-i)
769 ac_prev=x_includes ;;
770 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
771 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
772 x_includes=$ac_optarg ;;
774 -x-libraries | --x-libraries | --x-librarie | --x-librari \
775 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
776 ac_prev=x_libraries ;;
777 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
778 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
779 x_libraries=$ac_optarg ;;
781 -*) { echo "$as_me: error: unrecognized option: $ac_option
782 Try \`$0 --help' for more information." >&2
783 { (exit 1); exit 1; }; }
787 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
788 # Reject names that are not valid shell variable names.
789 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
790 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
791 { (exit 1); exit 1; }; }
792 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
793 eval "$ac_envvar='$ac_optarg'"
797 # FIXME: should be removed in autoconf 3.0.
798 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
799 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
800 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
801 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
807 if test -n "$ac_prev"; then
808 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
809 { echo "$as_me: error: missing argument to $ac_option" >&2
810 { (exit 1); exit 1; }; }
813 # Be sure to have absolute paths.
814 for ac_var in exec_prefix prefix
816 eval ac_val=$`echo $ac_var`
818 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
819 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
820 { (exit 1); exit 1; }; };;
824 # Be sure to have absolute paths.
825 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
826 localstatedir libdir includedir oldincludedir infodir mandir
828 eval ac_val=$`echo $ac_var`
830 [\\/$]* | ?:[\\/]* ) ;;
831 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
832 { (exit 1); exit 1; }; };;
836 # There might be people who depend on the old broken behavior: `$host'
837 # used to hold the argument of --host etc.
838 # FIXME: To remove some day.
843 # FIXME: To remove some day.
844 if test "x$host_alias" != x; then
845 if test "x$build_alias" = x; then
846 cross_compiling=maybe
847 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
848 If a cross compiler is detected then cross compile mode will be used." >&2
849 elif test "x$build_alias" != "x$host_alias"; then
855 test -n "$host_alias" && ac_tool_prefix=$host_alias-
857 test "$silent" = yes && exec 6>/dev/null
860 # Find the source files, if location was not specified.
861 if test -z "$srcdir"; then
862 ac_srcdir_defaulted=yes
863 # Try the directory containing this script, then its parent.
864 ac_confdir=`(dirname "$0") 2>/dev/null ||
865 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
866 X"$0" : 'X\(//\)[^/]' \| \
867 X"$0" : 'X\(//\)$' \| \
868 X"$0" : 'X\(/\)' \| \
869 . : '\(.\)' 2>/dev/null ||
871 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
872 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
873 /^X\(\/\/\)$/{ s//\1/; q; }
874 /^X\(\/\).*/{ s//\1/; q; }
877 if test ! -r $srcdir/$ac_unique_file; then
881 ac_srcdir_defaulted=no
883 if test ! -r $srcdir/$ac_unique_file; then
884 if test "$ac_srcdir_defaulted" = yes; then
885 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
886 { (exit 1); exit 1; }; }
888 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
889 { (exit 1); exit 1; }; }
892 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
893 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
894 { (exit 1); exit 1; }; }
895 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
896 ac_env_build_alias_set=${build_alias+set}
897 ac_env_build_alias_value=$build_alias
898 ac_cv_env_build_alias_set=${build_alias+set}
899 ac_cv_env_build_alias_value=$build_alias
900 ac_env_host_alias_set=${host_alias+set}
901 ac_env_host_alias_value=$host_alias
902 ac_cv_env_host_alias_set=${host_alias+set}
903 ac_cv_env_host_alias_value=$host_alias
904 ac_env_target_alias_set=${target_alias+set}
905 ac_env_target_alias_value=$target_alias
906 ac_cv_env_target_alias_set=${target_alias+set}
907 ac_cv_env_target_alias_value=$target_alias
908 ac_env_CXX_set=${CXX+set}
909 ac_env_CXX_value=$CXX
910 ac_cv_env_CXX_set=${CXX+set}
911 ac_cv_env_CXX_value=$CXX
912 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
913 ac_env_CXXFLAGS_value=$CXXFLAGS
914 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
915 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
916 ac_env_LDFLAGS_set=${LDFLAGS+set}
917 ac_env_LDFLAGS_value=$LDFLAGS
918 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
919 ac_cv_env_LDFLAGS_value=$LDFLAGS
920 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
921 ac_env_CPPFLAGS_value=$CPPFLAGS
922 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
923 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
924 ac_env_CXXCPP_set=${CXXCPP+set}
925 ac_env_CXXCPP_value=$CXXCPP
926 ac_cv_env_CXXCPP_set=${CXXCPP+set}
927 ac_cv_env_CXXCPP_value=$CXXCPP
928 ac_env_CC_set=${CC+set}
930 ac_cv_env_CC_set=${CC+set}
931 ac_cv_env_CC_value=$CC
932 ac_env_CFLAGS_set=${CFLAGS+set}
933 ac_env_CFLAGS_value=$CFLAGS
934 ac_cv_env_CFLAGS_set=${CFLAGS+set}
935 ac_cv_env_CFLAGS_value=$CFLAGS
936 ac_env_CPP_set=${CPP+set}
937 ac_env_CPP_value=$CPP
938 ac_cv_env_CPP_set=${CPP+set}
939 ac_cv_env_CPP_value=$CPP
942 # Report the --help message.
944 if test "$ac_init_help" = "long"; then
945 # Omit some internal or obsolete options to make the list less imposing.
946 # This message is too long to be a string in the A/UX 3.1 sh.
948 \`configure' configures this package to adapt to many kinds of systems.
950 Usage: $0 [OPTION]... [VAR=VALUE]...
952 To assign environment variables (e.g., CC, CFLAGS...), specify them as
953 VAR=VALUE. See below for descriptions of some of the useful variables.
955 Defaults for the options are specified in brackets.
958 -h, --help display this help and exit
959 --help=short display options specific to this package
960 --help=recursive display the short help of all the included packages
961 -V, --version display version information and exit
962 -q, --quiet, --silent do not print \`checking...' messages
963 --cache-file=FILE cache test results in FILE [disabled]
964 -C, --config-cache alias for \`--cache-file=config.cache'
965 -n, --no-create do not create output files
966 --srcdir=DIR find the sources in DIR [configure dir or \`..']
971 Installation directories:
972 --prefix=PREFIX install architecture-independent files in PREFIX
974 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
977 By default, \`make install' will install all the files in
978 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
979 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
980 for instance \`--prefix=\$HOME'.
982 For better control, use the options below.
984 Fine tuning of the installation directories:
985 --bindir=DIR user executables [EPREFIX/bin]
986 --sbindir=DIR system admin executables [EPREFIX/sbin]
987 --libexecdir=DIR program executables [EPREFIX/libexec]
988 --datadir=DIR read-only architecture-independent data [PREFIX/share]
989 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
990 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
991 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
992 --libdir=DIR object code libraries [EPREFIX/lib]
993 --includedir=DIR C header files [PREFIX/include]
994 --oldincludedir=DIR C header files for non-gcc [/usr/include]
995 --infodir=DIR info documentation [PREFIX/info]
996 --mandir=DIR man documentation [PREFIX/man]
1002 --build=BUILD configure for building on BUILD [guessed]
1003 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1007 if test -n "$ac_init_help"; then
1012 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1013 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1014 --enable-ucsim compile ucsim frontend
1015 --enable-dlso compile dynamically loadable shared libraries
1016 --disable-51 do not compile simulator for MCS51
1017 --disable-avr do not compile simulator for AVR
1018 --enable-z80 compile simulator for Z80
1019 --enable-xa compile simulator for XA
1020 --enable-serio compile serio GUI tool (needs curses)
1021 --enable-statistic compile statistical features (slower simulation)
1022 --enable-shared=PKGS build shared libraries default=yes
1023 --enable-static=PKGS build static libraries default=yes
1024 --enable-fast-install=PKGS optimize for fast installation default=yes
1025 --disable-libtool-lock avoid locking (might break parallel builds)
1028 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1029 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1030 --with-gnu-ld assume the C compiler uses GNU ld default=no
1031 --with-pic try to use only PIC/non-PIC objects default=use both
1033 Some influential environment variables:
1034 CXX C++ compiler command
1035 CXXFLAGS C++ compiler flags
1036 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1037 nonstandard directory <lib dir>
1038 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1039 headers in a nonstandard directory <include dir>
1040 CXXCPP C++ preprocessor
1041 CC C compiler command
1042 CFLAGS C compiler flags
1045 Use these variables to override the choices made by `configure' or to help
1046 it to find libraries and programs with nonstandard names/locations.
1051 if test "$ac_init_help" = "recursive"; then
1052 # If there are subdirs, report their specific --help.
1054 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1055 test -d $ac_dir || continue
1058 if test "$ac_dir" != .; then
1059 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1060 # A "../" for each directory in $ac_dir_suffix.
1061 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1063 ac_dir_suffix= ac_top_builddir=
1067 .) # No --srcdir option. We are building in place.
1069 if test -z "$ac_top_builddir"; then
1072 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1074 [\\/]* | ?:[\\/]* ) # Absolute path.
1075 ac_srcdir=$srcdir$ac_dir_suffix;
1076 ac_top_srcdir=$srcdir ;;
1078 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1079 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1081 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1083 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1084 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
1085 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1086 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1089 # Check for guested configure; otherwise get Cygnus style configure.
1090 if test -f $ac_srcdir/configure.gnu; then
1092 $SHELL $ac_srcdir/configure.gnu --help=recursive
1093 elif test -f $ac_srcdir/configure; then
1095 $SHELL $ac_srcdir/configure --help=recursive
1096 elif test -f $ac_srcdir/configure.ac ||
1097 test -f $ac_srcdir/configure.in; then
1099 $ac_configure --help
1101 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1107 test -n "$ac_init_help" && exit 0
1108 if $ac_init_version; then
1111 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1112 Free Software Foundation, Inc.
1113 This configure script is free software; the Free Software Foundation
1114 gives unlimited permission to copy, distribute and modify it.
1120 This file contains any messages produced by compilers while
1121 running configure, to aid debugging if configure makes a mistake.
1123 It was created by $as_me, which was
1124 generated by GNU Autoconf 2.54. Invocation command line was
1135 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1136 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1137 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1138 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1139 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1141 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1142 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1144 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1145 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1146 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1147 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1148 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1149 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1150 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1158 test -z "$as_dir" && as_dir=.
1159 echo "PATH: $as_dir"
1174 # Keep a trace of the command line.
1175 # Strip out --no-create and --no-recursion so they do not pile up.
1176 # Also quote any args containing shell meta-characters.
1182 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1183 | --no-cr | --no-c | -n ) continue ;;
1184 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1185 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1187 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1188 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1190 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1191 # Get rid of the leading space.
1195 # When interrupted or exit'd, cleanup temporary files, and complete
1196 # config.log. We remove comments because anyway the quotes in there
1197 # would cause problems or look ugly.
1198 # WARNING: Be sure not to use single quotes in there, as some shells,
1199 # such as our DU 5.0 friend, will then `close' the trap.
1200 trap 'exit_status=$?
1201 # Save into config.log some information that might help in debugging.
1206 ## ---------------- ##
1207 ## Cache variables. ##
1208 ## ---------------- ##
1211 # The following way of writing the cache mishandles newlines in values,
1214 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1217 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1218 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1222 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1229 ## ----------------- ##
1230 ## Output variables. ##
1231 ## ----------------- ##
1234 for ac_var in $ac_subst_vars
1236 eval ac_val=$`echo $ac_var`
1237 echo "$ac_var='"'"'$ac_val'"'"'"
1241 if test -n "$ac_subst_files"; then
1248 for ac_var in $ac_subst_files
1250 eval ac_val=$`echo $ac_var`
1251 echo "$ac_var='"'"'$ac_val'"'"'"
1256 if test -s confdefs.h; then
1263 sed "/^$/d" confdefs.h | sort
1266 test "$ac_signal" != 0 &&
1267 echo "$as_me: caught signal $ac_signal"
1268 echo "$as_me: exit $exit_status"
1270 rm -f core core.* *.core &&
1271 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1274 for ac_signal in 1 2 13 15; do
1275 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1279 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1280 rm -rf conftest* confdefs.h
1281 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1284 # Predefined preprocessor variables.
1286 cat >>confdefs.h <<_ACEOF
1287 #define PACKAGE_NAME "$PACKAGE_NAME"
1291 cat >>confdefs.h <<_ACEOF
1292 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1296 cat >>confdefs.h <<_ACEOF
1297 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1301 cat >>confdefs.h <<_ACEOF
1302 #define PACKAGE_STRING "$PACKAGE_STRING"
1306 cat >>confdefs.h <<_ACEOF
1307 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1311 # Let the site file select an alternate cache file if it wants to.
1312 # Prefer explicitly selected file to automatically selected ones.
1313 if test -z "$CONFIG_SITE"; then
1314 if test "x$prefix" != xNONE; then
1315 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1317 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1320 for ac_site_file in $CONFIG_SITE; do
1321 if test -r "$ac_site_file"; then
1322 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1323 echo "$as_me: loading site script $ac_site_file" >&6;}
1324 sed 's/^/| /' "$ac_site_file" >&5
1329 if test -r "$cache_file"; then
1330 # Some versions of bash will fail to source /dev/null (special
1331 # files actually), so we avoid doing that.
1332 if test -f "$cache_file"; then
1333 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1334 echo "$as_me: loading cache $cache_file" >&6;}
1336 [\\/]* | ?:[\\/]* ) . $cache_file;;
1337 *) . ./$cache_file;;
1341 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1342 echo "$as_me: creating cache $cache_file" >&6;}
1346 # Check that the precious variables saved in the cache have kept the same
1348 ac_cache_corrupted=false
1349 for ac_var in `(set) 2>&1 |
1350 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1351 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1352 eval ac_new_set=\$ac_env_${ac_var}_set
1353 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1354 eval ac_new_val="\$ac_env_${ac_var}_value"
1355 case $ac_old_set,$ac_new_set in
1357 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1358 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1359 ac_cache_corrupted=: ;;
1361 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1362 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1363 ac_cache_corrupted=: ;;
1366 if test "x$ac_old_val" != "x$ac_new_val"; then
1367 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1368 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1369 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1370 echo "$as_me: former value: $ac_old_val" >&2;}
1371 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1372 echo "$as_me: current value: $ac_new_val" >&2;}
1373 ac_cache_corrupted=:
1376 # Pass precious variables to config.status.
1377 if test "$ac_new_set" = set; then
1379 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1380 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1381 *) ac_arg=$ac_var=$ac_new_val ;;
1383 case " $ac_configure_args " in
1384 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1385 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1389 if $ac_cache_corrupted; then
1390 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1391 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1392 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1393 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1394 { (exit 1); exit 1; }; }
1398 ac_cpp='$CPP $CPPFLAGS'
1399 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1400 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1401 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1421 ac_config_headers="$ac_config_headers ddconfig.h:ddconfig_in.h"
1424 for ac_prog in gawk mawk nawk awk
1426 # Extract the first word of "$ac_prog", so it can be a program name with args.
1427 set dummy $ac_prog; ac_word=$2
1428 echo "$as_me:$LINENO: checking for $ac_word" >&5
1429 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1430 if test "${ac_cv_prog_AWK+set}" = set; then
1431 echo $ECHO_N "(cached) $ECHO_C" >&6
1433 if test -n "$AWK"; then
1434 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1440 test -z "$as_dir" && as_dir=.
1441 for ac_exec_ext in '' $ac_executable_extensions; do
1442 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1443 ac_cv_prog_AWK="$ac_prog"
1444 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1453 if test -n "$AWK"; then
1454 echo "$as_me:$LINENO: result: $AWK" >&5
1455 echo "${ECHO_T}$AWK" >&6
1457 echo "$as_me:$LINENO: result: no" >&5
1458 echo "${ECHO_T}no" >&6
1461 test -n "$AWK" && break
1465 echo "$as_me:$LINENO: checking version of the package" >&5
1466 echo $ECHO_N "checking version of the package... $ECHO_C" >&6
1467 if test -f .version; then
1468 VERSION=`cat .version`
1469 echo "$as_me:$LINENO: result: $VERSION" >&5
1470 echo "${ECHO_T}$VERSION" >&6
1473 echo "$as_me:$LINENO: result: unknown using 0.0.0" >&5
1474 echo "${ECHO_T}unknown using 0.0.0" >&6
1476 VERSIONHI=`echo $VERSION|$AWK 'BEGIN {FS="."} {print $1}'`
1477 VERSIONLO=`echo $VERSION|$AWK 'BEGIN {FS="."} {print $2}'`
1478 VERSIONP=`echo $VERSION|$AWK 'BEGIN {FS="."} {print $3}'`
1483 cat >>confdefs.h <<_ACEOF
1484 #define VERSIONSTR "${VERSION}"
1487 cat >>confdefs.h <<_ACEOF
1488 #define VERSIONHI $VERSIONHI
1491 cat >>confdefs.h <<_ACEOF
1492 #define VERSIONLO $VERSIONLO
1495 cat >>confdefs.h <<_ACEOF
1496 #define VERSIONP $VERSIONP
1502 # Check whether --enable-ucsim or --disable-ucsim was given.
1503 if test "${enable_ucsim+set}" = set; then
1504 enableval="$enable_ucsim"
1505 if test $enable_ucsim != "no"; then
1512 # Check whether --enable-dlso or --disable-dlso was given.
1513 if test "${enable_dlso+set}" = set; then
1514 enableval="$enable_dlso"
1515 if test $enable_dlso != "no"; then
1521 # Check whether --enable-51 or --disable-51 was given.
1522 if test "${enable_51+set}" = set; then
1523 enableval="$enable_51"
1524 if test $enable_51 != "no"; then
1530 # Check whether --enable-avr or --disable-avr was given.
1531 if test "${enable_avr+set}" = set; then
1532 enableval="$enable_avr"
1533 if test $enable_avr != "no"; then
1539 # Check whether --enable-z80 or --disable-z80 was given.
1540 if test "${enable_z80+set}" = set; then
1541 enableval="$enable_z80"
1542 if test $enable_z80 != "no"; then
1548 # Check whether --enable-xa or --disable-xa was given.
1549 if test "${enable_xa+set}" = set; then
1550 enableval="$enable_xa"
1551 if test $enable_xa != "no"; then
1557 # Check whether --enable-portmon or --disable-portmon was given.
1558 if test "${enable_portmon+set}" = set; then
1559 enableval="$enable_portmon"
1560 if test $enable_serio != "no"; then
1574 # Check whether --enable-statistic or --disable-statistic was given.
1575 if test "${enable_statistic+set}" = set; then
1576 enableval="$enable_statistic"
1577 if test $enable_statistic != "no"; then
1578 enable_statistic="yes"
1581 enable_statistic="no"
1583 cat >>confdefs.h <<_ACEOF
1584 #define STATISTIC $enable_statistic
1590 #-------------------
1592 ac_cpp='$CXXCPP $CPPFLAGS'
1593 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1594 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1595 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1596 if test -n "$ac_tool_prefix"; then
1597 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1599 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1600 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1601 echo "$as_me:$LINENO: checking for $ac_word" >&5
1602 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1603 if test "${ac_cv_prog_CXX+set}" = set; then
1604 echo $ECHO_N "(cached) $ECHO_C" >&6
1606 if test -n "$CXX"; then
1607 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1613 test -z "$as_dir" && as_dir=.
1614 for ac_exec_ext in '' $ac_executable_extensions; do
1615 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1616 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1617 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1626 if test -n "$CXX"; then
1627 echo "$as_me:$LINENO: result: $CXX" >&5
1628 echo "${ECHO_T}$CXX" >&6
1630 echo "$as_me:$LINENO: result: no" >&5
1631 echo "${ECHO_T}no" >&6
1634 test -n "$CXX" && break
1637 if test -z "$CXX"; then
1639 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1641 # Extract the first word of "$ac_prog", so it can be a program name with args.
1642 set dummy $ac_prog; ac_word=$2
1643 echo "$as_me:$LINENO: checking for $ac_word" >&5
1644 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1645 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1646 echo $ECHO_N "(cached) $ECHO_C" >&6
1648 if test -n "$ac_ct_CXX"; then
1649 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1655 test -z "$as_dir" && as_dir=.
1656 for ac_exec_ext in '' $ac_executable_extensions; do
1657 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1658 ac_cv_prog_ac_ct_CXX="$ac_prog"
1659 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1667 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1668 if test -n "$ac_ct_CXX"; then
1669 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
1670 echo "${ECHO_T}$ac_ct_CXX" >&6
1672 echo "$as_me:$LINENO: result: no" >&5
1673 echo "${ECHO_T}no" >&6
1676 test -n "$ac_ct_CXX" && break
1678 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1684 # Provide some information about the compiler.
1685 echo "$as_me:$LINENO:" \
1686 "checking for C++ compiler version" >&5
1687 ac_compiler=`set X $ac_compile; echo $2`
1688 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1689 (eval $ac_compiler --version </dev/null >&5) 2>&5
1691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1692 (exit $ac_status); }
1693 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1694 (eval $ac_compiler -v </dev/null >&5) 2>&5
1696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1697 (exit $ac_status); }
1698 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1699 (eval $ac_compiler -V </dev/null >&5) 2>&5
1701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1702 (exit $ac_status); }
1704 cat >conftest.$ac_ext <<_ACEOF
1705 #line $LINENO "configure"
1706 #include "confdefs.h"
1716 ac_clean_files_save=$ac_clean_files
1717 ac_clean_files="$ac_clean_files a.out a.exe"
1718 # Try to create an executable without -o first, disregard a.out.
1719 # It will help us diagnose broken compilers, and finding out an intuition
1721 echo "$as_me:$LINENO: checking for C++ compiler default output" >&5
1722 echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
1723 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1724 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1725 (eval $ac_link_default) 2>&5
1727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1728 (exit $ac_status); }; then
1729 # Find the output, starting from the most likely. This scheme is
1730 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1733 # Be careful to initialize this variable, since it used to be cached.
1734 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1736 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.*; do
1737 test -f "$ac_file" || continue
1739 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1740 a.out ) # We found the default executable, but exeext='' is most
1743 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1744 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1751 echo "$as_me: failed program was:" >&5
1752 cat conftest.$ac_ext >&5
1753 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
1754 check \`config.log' for details." >&5
1755 echo "$as_me: error: C++ compiler cannot create executables
1756 check \`config.log' for details." >&2;}
1757 { (exit 77); exit 77; }; }
1760 ac_exeext=$ac_cv_exeext
1761 echo "$as_me:$LINENO: result: $ac_file" >&5
1762 echo "${ECHO_T}$ac_file" >&6
1764 # Check the compiler produces executables we can run. If not, either
1765 # the compiler is broken, or we cross compile.
1766 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
1767 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
1768 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1769 # If not cross compiling, check that we can run a simple program.
1770 if test "$cross_compiling" != yes; then
1771 if { ac_try='./$ac_file'
1772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1776 (exit $ac_status); }; }; then
1779 if test "$cross_compiling" = maybe; then
1782 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
1783 If you meant to cross compile, use \`--host'." >&5
1784 echo "$as_me: error: cannot run C++ compiled programs.
1785 If you meant to cross compile, use \`--host'." >&2;}
1786 { (exit 1); exit 1; }; }
1790 echo "$as_me:$LINENO: result: yes" >&5
1791 echo "${ECHO_T}yes" >&6
1793 rm -f a.out a.exe conftest$ac_cv_exeext
1794 ac_clean_files=$ac_clean_files_save
1795 # Check the compiler produces executables we can run. If not, either
1796 # the compiler is broken, or we cross compile.
1797 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1798 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1799 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1800 echo "${ECHO_T}$cross_compiling" >&6
1802 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1803 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1804 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1805 (eval $ac_link) 2>&5
1807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1808 (exit $ac_status); }; then
1809 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1810 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1811 # work properly (i.e., refer to `conftest.exe'), while it won't with
1813 for ac_file in conftest.exe conftest conftest.*; do
1814 test -f "$ac_file" || continue
1816 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1817 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1824 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
1825 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
1826 { (exit 1); exit 1; }; }
1829 rm -f conftest$ac_cv_exeext
1830 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1831 echo "${ECHO_T}$ac_cv_exeext" >&6
1833 rm -f conftest.$ac_ext
1834 EXEEXT=$ac_cv_exeext
1836 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1837 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1838 if test "${ac_cv_objext+set}" = set; then
1839 echo $ECHO_N "(cached) $ECHO_C" >&6
1841 cat >conftest.$ac_ext <<_ACEOF
1842 #line $LINENO "configure"
1843 #include "confdefs.h"
1853 rm -f conftest.o conftest.obj
1854 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1855 (eval $ac_compile) 2>&5
1857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1858 (exit $ac_status); }; then
1859 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1861 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1862 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1867 echo "$as_me: failed program was:" >&5
1868 cat conftest.$ac_ext >&5
1869 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
1870 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
1871 { (exit 1); exit 1; }; }
1874 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1876 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1877 echo "${ECHO_T}$ac_cv_objext" >&6
1878 OBJEXT=$ac_cv_objext
1880 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
1881 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
1882 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
1883 echo $ECHO_N "(cached) $ECHO_C" >&6
1885 cat >conftest.$ac_ext <<_ACEOF
1886 #line $LINENO "configure"
1887 #include "confdefs.h"
1900 rm -f conftest.$ac_objext
1901 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1902 (eval $ac_compile) 2>&5
1904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1905 (exit $ac_status); } &&
1906 { ac_try='test -s conftest.$ac_objext'
1907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1911 (exit $ac_status); }; }; then
1914 echo "$as_me: failed program was:" >&5
1915 cat conftest.$ac_ext >&5
1918 rm -f conftest.$ac_objext conftest.$ac_ext
1919 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
1922 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
1923 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
1924 GXX=`test $ac_compiler_gnu = yes && echo yes`
1925 ac_test_CXXFLAGS=${CXXFLAGS+set}
1926 ac_save_CXXFLAGS=$CXXFLAGS
1928 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
1929 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
1930 if test "${ac_cv_prog_cxx_g+set}" = set; then
1931 echo $ECHO_N "(cached) $ECHO_C" >&6
1933 cat >conftest.$ac_ext <<_ACEOF
1934 #line $LINENO "configure"
1935 #include "confdefs.h"
1945 rm -f conftest.$ac_objext
1946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1947 (eval $ac_compile) 2>&5
1949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1950 (exit $ac_status); } &&
1951 { ac_try='test -s conftest.$ac_objext'
1952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1956 (exit $ac_status); }; }; then
1957 ac_cv_prog_cxx_g=yes
1959 echo "$as_me: failed program was:" >&5
1960 cat conftest.$ac_ext >&5
1963 rm -f conftest.$ac_objext conftest.$ac_ext
1965 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
1966 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
1967 if test "$ac_test_CXXFLAGS" = set; then
1968 CXXFLAGS=$ac_save_CXXFLAGS
1969 elif test $ac_cv_prog_cxx_g = yes; then
1970 if test "$GXX" = yes; then
1976 if test "$GXX" = yes; then
1982 for ac_declaration in \
1984 '#include <stdlib.h>' \
1985 'extern "C" void std::exit (int) throw (); using std::exit;' \
1986 'extern "C" void std::exit (int); using std::exit;' \
1987 'extern "C" void exit (int) throw ();' \
1988 'extern "C" void exit (int);' \
1991 cat >conftest.$ac_ext <<_ACEOF
1992 #line $LINENO "configure"
1993 #include "confdefs.h"
2004 rm -f conftest.$ac_objext
2005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2006 (eval $ac_compile) 2>&5
2008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2009 (exit $ac_status); } &&
2010 { ac_try='test -s conftest.$ac_objext'
2011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2015 (exit $ac_status); }; }; then
2018 echo "$as_me: failed program was:" >&5
2019 cat conftest.$ac_ext >&5
2022 rm -f conftest.$ac_objext conftest.$ac_ext
2023 cat >conftest.$ac_ext <<_ACEOF
2024 #line $LINENO "configure"
2025 #include "confdefs.h"
2035 rm -f conftest.$ac_objext
2036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2037 (eval $ac_compile) 2>&5
2039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2040 (exit $ac_status); } &&
2041 { ac_try='test -s conftest.$ac_objext'
2042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2046 (exit $ac_status); }; }; then
2049 echo "$as_me: failed program was:" >&5
2050 cat conftest.$ac_ext >&5
2052 rm -f conftest.$ac_objext conftest.$ac_ext
2055 if test -n "$ac_declaration"; then
2056 echo '#ifdef __cplusplus' >>confdefs.h
2057 echo $ac_declaration >>confdefs.h
2058 echo '#endif' >>confdefs.h
2062 ac_cpp='$CPP $CPPFLAGS'
2063 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2064 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2065 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2068 ac_cpp='$CXXCPP $CPPFLAGS'
2069 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2070 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2071 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2072 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
2073 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
2074 if test -z "$CXXCPP"; then
2075 if test "${ac_cv_prog_CXXCPP+set}" = set; then
2076 echo $ECHO_N "(cached) $ECHO_C" >&6
2078 # Double quotes because CXXCPP needs to be expanded
2079 for CXXCPP in "$CXX -E" "/lib/cpp"
2082 for ac_cxx_preproc_warn_flag in '' yes
2084 # Use a header file that comes with gcc, so configuring glibc
2085 # with a fresh cross-compiler works.
2086 # On the NeXT, cc -E runs the code through the compiler's parser,
2087 # not just through cpp. "Syntax error" is here to catch this case.
2088 cat >conftest.$ac_ext <<_ACEOF
2089 #line $LINENO "configure"
2090 #include "confdefs.h"
2094 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2095 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2097 grep -v '^ *+' conftest.er1 >conftest.err
2099 cat conftest.err >&5
2100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2101 (exit $ac_status); } >/dev/null; then
2102 if test -s conftest.err; then
2103 ac_cpp_err=$ac_cxx_preproc_warn_flag
2110 if test -z "$ac_cpp_err"; then
2113 echo "$as_me: failed program was:" >&5
2114 cat conftest.$ac_ext >&5
2115 # Broken: fails on valid input.
2118 rm -f conftest.err conftest.$ac_ext
2120 # OK, works on sane cases. Now check whether non-existent headers
2121 # can be detected and how.
2122 cat >conftest.$ac_ext <<_ACEOF
2123 #line $LINENO "configure"
2124 #include "confdefs.h"
2125 #include <ac_nonexistent.h>
2127 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2128 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2130 grep -v '^ *+' conftest.er1 >conftest.err
2132 cat conftest.err >&5
2133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2134 (exit $ac_status); } >/dev/null; then
2135 if test -s conftest.err; then
2136 ac_cpp_err=$ac_cxx_preproc_warn_flag
2143 if test -z "$ac_cpp_err"; then
2144 # Broken: success on invalid input.
2147 echo "$as_me: failed program was:" >&5
2148 cat conftest.$ac_ext >&5
2149 # Passes both tests.
2153 rm -f conftest.err conftest.$ac_ext
2156 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2157 rm -f conftest.err conftest.$ac_ext
2158 if $ac_preproc_ok; then
2163 ac_cv_prog_CXXCPP=$CXXCPP
2166 CXXCPP=$ac_cv_prog_CXXCPP
2168 ac_cv_prog_CXXCPP=$CXXCPP
2170 echo "$as_me:$LINENO: result: $CXXCPP" >&5
2171 echo "${ECHO_T}$CXXCPP" >&6
2173 for ac_cxx_preproc_warn_flag in '' yes
2175 # Use a header file that comes with gcc, so configuring glibc
2176 # with a fresh cross-compiler works.
2177 # On the NeXT, cc -E runs the code through the compiler's parser,
2178 # not just through cpp. "Syntax error" is here to catch this case.
2179 cat >conftest.$ac_ext <<_ACEOF
2180 #line $LINENO "configure"
2181 #include "confdefs.h"
2185 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2186 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2188 grep -v '^ *+' conftest.er1 >conftest.err
2190 cat conftest.err >&5
2191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2192 (exit $ac_status); } >/dev/null; then
2193 if test -s conftest.err; then
2194 ac_cpp_err=$ac_cxx_preproc_warn_flag
2201 if test -z "$ac_cpp_err"; then
2204 echo "$as_me: failed program was:" >&5
2205 cat conftest.$ac_ext >&5
2206 # Broken: fails on valid input.
2209 rm -f conftest.err conftest.$ac_ext
2211 # OK, works on sane cases. Now check whether non-existent headers
2212 # can be detected and how.
2213 cat >conftest.$ac_ext <<_ACEOF
2214 #line $LINENO "configure"
2215 #include "confdefs.h"
2216 #include <ac_nonexistent.h>
2218 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2219 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2221 grep -v '^ *+' conftest.er1 >conftest.err
2223 cat conftest.err >&5
2224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2225 (exit $ac_status); } >/dev/null; then
2226 if test -s conftest.err; then
2227 ac_cpp_err=$ac_cxx_preproc_warn_flag
2234 if test -z "$ac_cpp_err"; then
2235 # Broken: success on invalid input.
2238 echo "$as_me: failed program was:" >&5
2239 cat conftest.$ac_ext >&5
2240 # Passes both tests.
2244 rm -f conftest.err conftest.$ac_ext
2247 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2248 rm -f conftest.err conftest.$ac_ext
2249 if $ac_preproc_ok; then
2252 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&5
2253 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&2;}
2254 { (exit 1); exit 1; }; }
2258 ac_cpp='$CPP $CPPFLAGS'
2259 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2260 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2261 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2264 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2265 if test -f $ac_dir/install-sh; then
2267 ac_install_sh="$ac_aux_dir/install-sh -c"
2269 elif test -f $ac_dir/install.sh; then
2271 ac_install_sh="$ac_aux_dir/install.sh -c"
2273 elif test -f $ac_dir/shtool; then
2275 ac_install_sh="$ac_aux_dir/shtool install -c"
2279 if test -z "$ac_aux_dir"; then
2280 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2281 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2282 { (exit 1); exit 1; }; }
2284 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2285 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2286 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2288 # Find a good install program. We prefer a C program (faster),
2289 # so one script is as good as another. But avoid the broken or
2290 # incompatible versions:
2291 # SysV /etc/install, /usr/sbin/install
2292 # SunOS /usr/etc/install
2293 # IRIX /sbin/install
2295 # AmigaOS /C/install, which installs bootblocks on floppy discs
2296 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2297 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2298 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2299 # ./install, which can be erroneously created by make from ./install.sh.
2300 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2301 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2302 if test -z "$INSTALL"; then
2303 if test "${ac_cv_path_install+set}" = set; then
2304 echo $ECHO_N "(cached) $ECHO_C" >&6
2306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2310 test -z "$as_dir" && as_dir=.
2311 # Account for people who put trailing slashes in PATH elements.
2313 ./ | .// | /cC/* | \
2314 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2317 # OSF1 and SCO ODT 3.0 have their own names for install.
2318 # Don't use installbsd from OSF since it installs stuff as root
2320 for ac_prog in ginstall scoinst install; do
2321 for ac_exec_ext in '' $ac_executable_extensions; do
2322 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2323 if test $ac_prog = install &&
2324 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2325 # AIX install. It has an incompatible calling convention.
2327 elif test $ac_prog = install &&
2328 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2329 # program-specific install script used by HP pwplus--don't use.
2332 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2344 if test "${ac_cv_path_install+set}" = set; then
2345 INSTALL=$ac_cv_path_install
2347 # As a last resort, use the slow shell script. We don't cache a
2348 # path for INSTALL within a source directory, because that will
2349 # break other packages using the cache if that directory is
2350 # removed, or if the path is relative.
2351 INSTALL=$ac_install_sh
2354 echo "$as_me:$LINENO: result: $INSTALL" >&5
2355 echo "${ECHO_T}$INSTALL" >&6
2357 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2358 # It thinks the first close brace ends the variable substitution.
2359 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2361 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2363 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2365 if test -n "$ac_tool_prefix"; then
2366 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2367 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2368 echo "$as_me:$LINENO: checking for $ac_word" >&5
2369 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2370 if test "${ac_cv_prog_RANLIB+set}" = set; then
2371 echo $ECHO_N "(cached) $ECHO_C" >&6
2373 if test -n "$RANLIB"; then
2374 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2380 test -z "$as_dir" && as_dir=.
2381 for ac_exec_ext in '' $ac_executable_extensions; do
2382 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2383 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2384 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2392 RANLIB=$ac_cv_prog_RANLIB
2393 if test -n "$RANLIB"; then
2394 echo "$as_me:$LINENO: result: $RANLIB" >&5
2395 echo "${ECHO_T}$RANLIB" >&6
2397 echo "$as_me:$LINENO: result: no" >&5
2398 echo "${ECHO_T}no" >&6
2402 if test -z "$ac_cv_prog_RANLIB"; then
2403 ac_ct_RANLIB=$RANLIB
2404 # Extract the first word of "ranlib", so it can be a program name with args.
2405 set dummy ranlib; ac_word=$2
2406 echo "$as_me:$LINENO: checking for $ac_word" >&5
2407 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2408 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2409 echo $ECHO_N "(cached) $ECHO_C" >&6
2411 if test -n "$ac_ct_RANLIB"; then
2412 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2418 test -z "$as_dir" && as_dir=.
2419 for ac_exec_ext in '' $ac_executable_extensions; do
2420 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2421 ac_cv_prog_ac_ct_RANLIB="ranlib"
2422 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2428 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2431 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2432 if test -n "$ac_ct_RANLIB"; then
2433 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2434 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2436 echo "$as_me:$LINENO: result: no" >&5
2437 echo "${ECHO_T}no" >&6
2440 RANLIB=$ac_ct_RANLIB
2442 RANLIB="$ac_cv_prog_RANLIB"
2446 # Extract the first word of "strip", so it can be a program name with args.
2447 set dummy strip; ac_word=$2
2448 echo "$as_me:$LINENO: checking for $ac_word" >&5
2449 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2450 if test "${ac_cv_prog_STRIP+set}" = set; then
2451 echo $ECHO_N "(cached) $ECHO_C" >&6
2453 if test -n "$STRIP"; then
2454 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2460 test -z "$as_dir" && as_dir=.
2461 for ac_exec_ext in '' $ac_executable_extensions; do
2462 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2463 ac_cv_prog_STRIP="strip"
2464 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2470 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2473 STRIP=$ac_cv_prog_STRIP
2474 if test -n "$STRIP"; then
2475 echo "$as_me:$LINENO: result: $STRIP" >&5
2476 echo "${ECHO_T}$STRIP" >&6
2478 echo "$as_me:$LINENO: result: no" >&5
2479 echo "${ECHO_T}no" >&6
2484 # Check whether --enable-shared or --disable-shared was given.
2485 if test "${enable_shared+set}" = set; then
2486 enableval="$enable_shared"
2487 p=${PACKAGE-default}
2489 yes) enable_shared=yes ;;
2490 no) enable_shared=no ;;
2493 # Look at the argument we got. We use all the common list separators.
2494 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2495 for pkg in $enableval; do
2496 if test "X$pkg" = "X$p"; then
2506 # Check whether --enable-static or --disable-static was given.
2507 if test "${enable_static+set}" = set; then
2508 enableval="$enable_static"
2509 p=${PACKAGE-default}
2511 yes) enable_static=yes ;;
2512 no) enable_static=no ;;
2515 # Look at the argument we got. We use all the common list separators.
2516 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2517 for pkg in $enableval; do
2518 if test "X$pkg" = "X$p"; then
2528 # Check whether --enable-fast-install or --disable-fast-install was given.
2529 if test "${enable_fast_install+set}" = set; then
2530 enableval="$enable_fast_install"
2531 p=${PACKAGE-default}
2533 yes) enable_fast_install=yes ;;
2534 no) enable_fast_install=no ;;
2536 enable_fast_install=no
2537 # Look at the argument we got. We use all the common list separators.
2538 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2539 for pkg in $enableval; do
2540 if test "X$pkg" = "X$p"; then
2541 enable_fast_install=yes
2548 enable_fast_install=yes
2550 # Make sure we can run config.sub.
2551 $ac_config_sub sun4 >/dev/null 2>&1 ||
2552 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2553 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2554 { (exit 1); exit 1; }; }
2556 echo "$as_me:$LINENO: checking build system type" >&5
2557 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2558 if test "${ac_cv_build+set}" = set; then
2559 echo $ECHO_N "(cached) $ECHO_C" >&6
2561 ac_cv_build_alias=$build_alias
2562 test -z "$ac_cv_build_alias" &&
2563 ac_cv_build_alias=`$ac_config_guess`
2564 test -z "$ac_cv_build_alias" &&
2565 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2566 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2567 { (exit 1); exit 1; }; }
2568 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2569 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2570 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2571 { (exit 1); exit 1; }; }
2574 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2575 echo "${ECHO_T}$ac_cv_build" >&6
2577 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2578 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2579 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2582 echo "$as_me:$LINENO: checking host system type" >&5
2583 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2584 if test "${ac_cv_host+set}" = set; then
2585 echo $ECHO_N "(cached) $ECHO_C" >&6
2587 ac_cv_host_alias=$host_alias
2588 test -z "$ac_cv_host_alias" &&
2589 ac_cv_host_alias=$ac_cv_build_alias
2590 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2591 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2592 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2593 { (exit 1); exit 1; }; }
2596 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2597 echo "${ECHO_T}$ac_cv_host" >&6
2599 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2600 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2601 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2605 ac_cpp='$CPP $CPPFLAGS'
2606 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2607 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2608 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2609 if test -n "$ac_tool_prefix"; then
2610 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2611 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2612 echo "$as_me:$LINENO: checking for $ac_word" >&5
2613 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2614 if test "${ac_cv_prog_CC+set}" = set; then
2615 echo $ECHO_N "(cached) $ECHO_C" >&6
2617 if test -n "$CC"; then
2618 ac_cv_prog_CC="$CC" # Let the user override the test.
2620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2624 test -z "$as_dir" && as_dir=.
2625 for ac_exec_ext in '' $ac_executable_extensions; do
2626 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2627 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2628 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2637 if test -n "$CC"; then
2638 echo "$as_me:$LINENO: result: $CC" >&5
2639 echo "${ECHO_T}$CC" >&6
2641 echo "$as_me:$LINENO: result: no" >&5
2642 echo "${ECHO_T}no" >&6
2646 if test -z "$ac_cv_prog_CC"; then
2648 # Extract the first word of "gcc", so it can be a program name with args.
2649 set dummy gcc; ac_word=$2
2650 echo "$as_me:$LINENO: checking for $ac_word" >&5
2651 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2652 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2653 echo $ECHO_N "(cached) $ECHO_C" >&6
2655 if test -n "$ac_ct_CC"; then
2656 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2662 test -z "$as_dir" && as_dir=.
2663 for ac_exec_ext in '' $ac_executable_extensions; do
2664 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2665 ac_cv_prog_ac_ct_CC="gcc"
2666 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2674 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2675 if test -n "$ac_ct_CC"; then
2676 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2677 echo "${ECHO_T}$ac_ct_CC" >&6
2679 echo "$as_me:$LINENO: result: no" >&5
2680 echo "${ECHO_T}no" >&6
2688 if test -z "$CC"; then
2689 if test -n "$ac_tool_prefix"; then
2690 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2691 set dummy ${ac_tool_prefix}cc; ac_word=$2
2692 echo "$as_me:$LINENO: checking for $ac_word" >&5
2693 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2694 if test "${ac_cv_prog_CC+set}" = set; then
2695 echo $ECHO_N "(cached) $ECHO_C" >&6
2697 if test -n "$CC"; then
2698 ac_cv_prog_CC="$CC" # Let the user override the test.
2700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2704 test -z "$as_dir" && as_dir=.
2705 for ac_exec_ext in '' $ac_executable_extensions; do
2706 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2707 ac_cv_prog_CC="${ac_tool_prefix}cc"
2708 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2717 if test -n "$CC"; then
2718 echo "$as_me:$LINENO: result: $CC" >&5
2719 echo "${ECHO_T}$CC" >&6
2721 echo "$as_me:$LINENO: result: no" >&5
2722 echo "${ECHO_T}no" >&6
2726 if test -z "$ac_cv_prog_CC"; then
2728 # Extract the first word of "cc", so it can be a program name with args.
2729 set dummy cc; ac_word=$2
2730 echo "$as_me:$LINENO: checking for $ac_word" >&5
2731 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2732 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2733 echo $ECHO_N "(cached) $ECHO_C" >&6
2735 if test -n "$ac_ct_CC"; then
2736 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2742 test -z "$as_dir" && as_dir=.
2743 for ac_exec_ext in '' $ac_executable_extensions; do
2744 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2745 ac_cv_prog_ac_ct_CC="cc"
2746 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2754 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2755 if test -n "$ac_ct_CC"; then
2756 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2757 echo "${ECHO_T}$ac_ct_CC" >&6
2759 echo "$as_me:$LINENO: result: no" >&5
2760 echo "${ECHO_T}no" >&6
2769 if test -z "$CC"; then
2770 # Extract the first word of "cc", so it can be a program name with args.
2771 set dummy cc; ac_word=$2
2772 echo "$as_me:$LINENO: checking for $ac_word" >&5
2773 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2774 if test "${ac_cv_prog_CC+set}" = set; then
2775 echo $ECHO_N "(cached) $ECHO_C" >&6
2777 if test -n "$CC"; then
2778 ac_cv_prog_CC="$CC" # Let the user override the test.
2781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2785 test -z "$as_dir" && as_dir=.
2786 for ac_exec_ext in '' $ac_executable_extensions; do
2787 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2788 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2789 ac_prog_rejected=yes
2793 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2799 if test $ac_prog_rejected = yes; then
2800 # We found a bogon in the path, so make sure we never use it.
2801 set dummy $ac_cv_prog_CC
2803 if test $# != 0; then
2804 # We chose a different compiler from the bogus one.
2805 # However, it has the same basename, so the bogon will be chosen
2806 # first if we set CC to just the basename; use the full file name.
2808 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2814 if test -n "$CC"; then
2815 echo "$as_me:$LINENO: result: $CC" >&5
2816 echo "${ECHO_T}$CC" >&6
2818 echo "$as_me:$LINENO: result: no" >&5
2819 echo "${ECHO_T}no" >&6
2823 if test -z "$CC"; then
2824 if test -n "$ac_tool_prefix"; then
2827 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2828 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2829 echo "$as_me:$LINENO: checking for $ac_word" >&5
2830 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2831 if test "${ac_cv_prog_CC+set}" = set; then
2832 echo $ECHO_N "(cached) $ECHO_C" >&6
2834 if test -n "$CC"; then
2835 ac_cv_prog_CC="$CC" # Let the user override the test.
2837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2841 test -z "$as_dir" && as_dir=.
2842 for ac_exec_ext in '' $ac_executable_extensions; do
2843 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2844 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2845 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2854 if test -n "$CC"; then
2855 echo "$as_me:$LINENO: result: $CC" >&5
2856 echo "${ECHO_T}$CC" >&6
2858 echo "$as_me:$LINENO: result: no" >&5
2859 echo "${ECHO_T}no" >&6
2862 test -n "$CC" && break
2865 if test -z "$CC"; then
2869 # Extract the first word of "$ac_prog", so it can be a program name with args.
2870 set dummy $ac_prog; ac_word=$2
2871 echo "$as_me:$LINENO: checking for $ac_word" >&5
2872 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2873 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2874 echo $ECHO_N "(cached) $ECHO_C" >&6
2876 if test -n "$ac_ct_CC"; then
2877 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2883 test -z "$as_dir" && as_dir=.
2884 for ac_exec_ext in '' $ac_executable_extensions; do
2885 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2886 ac_cv_prog_ac_ct_CC="$ac_prog"
2887 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2895 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2896 if test -n "$ac_ct_CC"; then
2897 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2898 echo "${ECHO_T}$ac_ct_CC" >&6
2900 echo "$as_me:$LINENO: result: no" >&5
2901 echo "${ECHO_T}no" >&6
2904 test -n "$ac_ct_CC" && break
2913 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
2914 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
2915 { (exit 1); exit 1; }; }
2917 # Provide some information about the compiler.
2918 echo "$as_me:$LINENO:" \
2919 "checking for C compiler version" >&5
2920 ac_compiler=`set X $ac_compile; echo $2`
2921 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2922 (eval $ac_compiler --version </dev/null >&5) 2>&5
2924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2925 (exit $ac_status); }
2926 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2927 (eval $ac_compiler -v </dev/null >&5) 2>&5
2929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2930 (exit $ac_status); }
2931 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2932 (eval $ac_compiler -V </dev/null >&5) 2>&5
2934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2935 (exit $ac_status); }
2937 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2938 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2939 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2940 echo $ECHO_N "(cached) $ECHO_C" >&6
2942 cat >conftest.$ac_ext <<_ACEOF
2943 #line $LINENO "configure"
2944 #include "confdefs.h"
2957 rm -f conftest.$ac_objext
2958 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2959 (eval $ac_compile) 2>&5
2961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2962 (exit $ac_status); } &&
2963 { ac_try='test -s conftest.$ac_objext'
2964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2968 (exit $ac_status); }; }; then
2971 echo "$as_me: failed program was:" >&5
2972 cat conftest.$ac_ext >&5
2975 rm -f conftest.$ac_objext conftest.$ac_ext
2976 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2979 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2980 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2981 GCC=`test $ac_compiler_gnu = yes && echo yes`
2982 ac_test_CFLAGS=${CFLAGS+set}
2983 ac_save_CFLAGS=$CFLAGS
2985 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2986 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2987 if test "${ac_cv_prog_cc_g+set}" = set; then
2988 echo $ECHO_N "(cached) $ECHO_C" >&6
2990 cat >conftest.$ac_ext <<_ACEOF
2991 #line $LINENO "configure"
2992 #include "confdefs.h"
3002 rm -f conftest.$ac_objext
3003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3004 (eval $ac_compile) 2>&5
3006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3007 (exit $ac_status); } &&
3008 { ac_try='test -s conftest.$ac_objext'
3009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3013 (exit $ac_status); }; }; then
3016 echo "$as_me: failed program was:" >&5
3017 cat conftest.$ac_ext >&5
3020 rm -f conftest.$ac_objext conftest.$ac_ext
3022 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3023 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3024 if test "$ac_test_CFLAGS" = set; then
3025 CFLAGS=$ac_save_CFLAGS
3026 elif test $ac_cv_prog_cc_g = yes; then
3027 if test "$GCC" = yes; then
3033 if test "$GCC" = yes; then
3039 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3040 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3041 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3042 echo $ECHO_N "(cached) $ECHO_C" >&6
3044 ac_cv_prog_cc_stdc=no
3046 cat >conftest.$ac_ext <<_ACEOF
3047 #line $LINENO "configure"
3048 #include "confdefs.h"
3051 #include <sys/types.h>
3052 #include <sys/stat.h>
3053 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3054 struct buf { int x; };
3055 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3056 static char *e (p, i)
3062 static char *f (char * (*g) (char **, int), char **p, ...)
3067 s = g (p, va_arg (v,int));
3071 int test (int i, double x);
3072 struct s1 {int (*f) (int a);};
3073 struct s2 {int (*f) (double a);};
3074 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3080 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3085 # Don't try gcc -ansi; that turns off useful extensions and
3086 # breaks some systems' header files.
3087 # AIX -qlanglvl=ansi
3088 # Ultrix and OSF/1 -std1
3089 # HP-UX 10.20 and later -Ae
3090 # HP-UX older versions -Aa -D_HPUX_SOURCE
3091 # SVR4 -Xc -D__EXTENSIONS__
3092 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3094 CC="$ac_save_CC $ac_arg"
3095 rm -f conftest.$ac_objext
3096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3097 (eval $ac_compile) 2>&5
3099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3100 (exit $ac_status); } &&
3101 { ac_try='test -s conftest.$ac_objext'
3102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3106 (exit $ac_status); }; }; then
3107 ac_cv_prog_cc_stdc=$ac_arg
3110 echo "$as_me: failed program was:" >&5
3111 cat conftest.$ac_ext >&5
3113 rm -f conftest.$ac_objext
3115 rm -f conftest.$ac_ext conftest.$ac_objext
3120 case "x$ac_cv_prog_cc_stdc" in
3122 echo "$as_me:$LINENO: result: none needed" >&5
3123 echo "${ECHO_T}none needed" >&6 ;;
3125 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3126 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3127 CC="$CC $ac_cv_prog_cc_stdc" ;;
3130 # Some people use a C++ compiler to compile C. Since we use `exit',
3131 # in C++ we need to declare it. In case someone uses the same compiler
3132 # for both compiling C and C++ we need to have the C++ compiler decide
3133 # the declaration of exit, since it's the most demanding environment.
3134 cat >conftest.$ac_ext <<_ACEOF
3139 rm -f conftest.$ac_objext
3140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3141 (eval $ac_compile) 2>&5
3143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3144 (exit $ac_status); } &&
3145 { ac_try='test -s conftest.$ac_objext'
3146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3150 (exit $ac_status); }; }; then
3151 for ac_declaration in \
3153 '#include <stdlib.h>' \
3154 'extern "C" void std::exit (int) throw (); using std::exit;' \
3155 'extern "C" void std::exit (int); using std::exit;' \
3156 'extern "C" void exit (int) throw ();' \
3157 'extern "C" void exit (int);' \
3160 cat >conftest.$ac_ext <<_ACEOF
3161 #line $LINENO "configure"
3162 #include "confdefs.h"
3173 rm -f conftest.$ac_objext
3174 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3175 (eval $ac_compile) 2>&5
3177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3178 (exit $ac_status); } &&
3179 { ac_try='test -s conftest.$ac_objext'
3180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3184 (exit $ac_status); }; }; then
3187 echo "$as_me: failed program was:" >&5
3188 cat conftest.$ac_ext >&5
3191 rm -f conftest.$ac_objext conftest.$ac_ext
3192 cat >conftest.$ac_ext <<_ACEOF
3193 #line $LINENO "configure"
3194 #include "confdefs.h"
3204 rm -f conftest.$ac_objext
3205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3206 (eval $ac_compile) 2>&5
3208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3209 (exit $ac_status); } &&
3210 { ac_try='test -s conftest.$ac_objext'
3211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3215 (exit $ac_status); }; }; then
3218 echo "$as_me: failed program was:" >&5
3219 cat conftest.$ac_ext >&5
3221 rm -f conftest.$ac_objext conftest.$ac_ext
3224 if test -n "$ac_declaration"; then
3225 echo '#ifdef __cplusplus' >>confdefs.h
3226 echo $ac_declaration >>confdefs.h
3227 echo '#endif' >>confdefs.h
3231 echo "$as_me: failed program was:" >&5
3232 cat conftest.$ac_ext >&5
3234 rm -f conftest.$ac_objext conftest.$ac_ext
3236 ac_cpp='$CPP $CPPFLAGS'
3237 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3238 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3239 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3241 # Find the correct PATH separator. Usually this is `:', but
3242 # DJGPP uses `;' like DOS.
3243 if test "X${PATH_SEPARATOR+set}" != Xset; then
3244 UNAME=${UNAME-`uname 2>/dev/null`}
3246 *-DOS) lt_cv_sys_path_separator=';' ;;
3247 *) lt_cv_sys_path_separator=':' ;;
3249 PATH_SEPARATOR=$lt_cv_sys_path_separator
3253 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3254 if test "${with_gnu_ld+set}" = set; then
3255 withval="$with_gnu_ld"
3256 test "$withval" = no || with_gnu_ld=yes
3261 if test "$GCC" = yes; then
3262 # Check if gcc -print-prog-name=ld gives a path.
3263 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3264 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3267 # gcc leaves a trailing carriage return which upsets mingw
3268 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3270 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3273 # Accept absolute paths.
3274 [\\/]* | [A-Za-z]:[\\/]*)
3275 re_direlt='/[^/][^/]*/\.\./'
3276 # Canonicalize the path of ld
3277 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3278 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3279 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3281 test -z "$LD" && LD="$ac_prog"
3284 # If it fails, then pretend we aren't using GCC.
3288 # If it is relative, then search for the first ld in PATH.
3292 elif test "$with_gnu_ld" = yes; then
3293 echo "$as_me:$LINENO: checking for GNU ld" >&5
3294 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3296 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3297 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3299 if test "${lt_cv_path_LD+set}" = set; then
3300 echo $ECHO_N "(cached) $ECHO_C" >&6
3302 if test -z "$LD"; then
3303 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3304 for ac_dir in $PATH; do
3305 test -z "$ac_dir" && ac_dir=.
3306 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3307 lt_cv_path_LD="$ac_dir/$ac_prog"
3308 # Check to see if the program is GNU ld. I'd rather use --version,
3309 # but apparently some GNU ld's only accept -v.
3310 # Break only if it was the GNU/non-GNU ld that we prefer.
3311 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3312 test "$with_gnu_ld" != no && break
3314 test "$with_gnu_ld" != yes && break
3320 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3325 if test -n "$LD"; then
3326 echo "$as_me:$LINENO: result: $LD" >&5
3327 echo "${ECHO_T}$LD" >&6
3329 echo "$as_me:$LINENO: result: no" >&5
3330 echo "${ECHO_T}no" >&6
3332 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3333 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3334 { (exit 1); exit 1; }; }
3335 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3336 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3337 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3338 echo $ECHO_N "(cached) $ECHO_C" >&6
3340 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3341 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3342 lt_cv_prog_gnu_ld=yes
3344 lt_cv_prog_gnu_ld=no
3347 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3348 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3349 with_gnu_ld=$lt_cv_prog_gnu_ld
3352 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3353 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3354 if test "${lt_cv_ld_reload_flag+set}" = set; then
3355 echo $ECHO_N "(cached) $ECHO_C" >&6
3357 lt_cv_ld_reload_flag='-r'
3359 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3360 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3361 reload_flag=$lt_cv_ld_reload_flag
3362 test -n "$reload_flag" && reload_flag=" $reload_flag"
3364 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3365 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3366 if test "${lt_cv_path_NM+set}" = set; then
3367 echo $ECHO_N "(cached) $ECHO_C" >&6
3369 if test -n "$NM"; then
3370 # Let the user override the test.
3373 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3374 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3375 test -z "$ac_dir" && ac_dir=.
3376 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3377 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3378 # Check to see if the nm accepts a BSD-compat flag.
3379 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3380 # nm: unknown option "B" ignored
3381 # Tru64's nm complains that /dev/null is an invalid object file
3382 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3383 lt_cv_path_NM="$tmp_nm -B"
3385 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3386 lt_cv_path_NM="$tmp_nm -p"
3389 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3390 continue # so that we can try to find one that supports BSD flags
3395 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3400 echo "$as_me:$LINENO: result: $NM" >&5
3401 echo "${ECHO_T}$NM" >&6
3403 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3404 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3406 if test "$LN_S" = "ln -s"; then
3407 echo "$as_me:$LINENO: result: yes" >&5
3408 echo "${ECHO_T}yes" >&6
3410 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3411 echo "${ECHO_T}no, using $LN_S" >&6
3414 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3415 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3416 if test "${lt_cv_deplibs_check_method+set}" = set; then
3417 echo $ECHO_N "(cached) $ECHO_C" >&6
3419 lt_cv_file_magic_cmd='$MAGIC_CMD'
3420 lt_cv_file_magic_test_file=
3421 lt_cv_deplibs_check_method='unknown'
3422 # Need to set the preceding variable on all platforms that support
3423 # interlibrary dependencies.
3424 # 'none' -- dependencies not supported.
3425 # `unknown' -- same as none, but documents that we really don't know.
3426 # 'pass_all' -- all dependencies passed with no checks.
3427 # 'test_compile' -- check by making test program.
3428 # 'file_magic [[regex]]' -- check by looking for files in library path
3429 # which responds to the $file_magic_cmd with a given egrep regex.
3430 # If you have `file' or equivalent on your system and you're not sure
3431 # whether `pass_all' will *always* work, you probably want this one.
3435 lt_cv_deplibs_check_method=pass_all
3439 lt_cv_deplibs_check_method=pass_all
3443 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3444 lt_cv_file_magic_cmd='/usr/bin/file -L'
3445 lt_cv_file_magic_test_file=/shlib/libc.so
3448 cygwin* | mingw* | pw32*)
3449 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3450 lt_cv_file_magic_cmd='$OBJDUMP -f'
3453 darwin* | rhapsody*)
3454 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3455 lt_cv_file_magic_cmd='/usr/bin/file -L'
3457 rhapsody* | darwin1.[012])
3458 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3461 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3467 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3470 # Not sure whether the presence of OpenBSD here was a mistake.
3471 # Let's accept both of them until this is cleared up.
3472 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3473 lt_cv_file_magic_cmd=/usr/bin/file
3474 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3478 lt_cv_deplibs_check_method=pass_all
3483 lt_cv_deplibs_check_method=pass_all
3487 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3488 lt_cv_file_magic_cmd=/usr/bin/file
3489 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3492 irix5* | irix6* | nonstopux*)
3494 irix5* | nonstopux*)
3495 # this will be overridden with pass_all, but let us keep it just in case
3496 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3500 *-32|*"-32 ") libmagic=32-bit;;
3501 *-n32|*"-n32 ") libmagic=N32;;
3502 *-64|*"-64 ") libmagic=64-bit;;
3503 *) libmagic=never-match;;
3505 # this will be overridden with pass_all, but let us keep it just in case
3506 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3509 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3510 lt_cv_deplibs_check_method=pass_all
3513 # This must be Linux ELF.
3516 alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
3517 lt_cv_deplibs_check_method=pass_all ;;
3519 # glibc up to 2.1.1 does not perform some relocations on ARM
3520 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3522 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3526 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3527 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3529 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3534 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3535 lt_cv_file_magic_cmd=/usr/bin/file
3536 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3540 lt_cv_file_magic_cmd=/usr/bin/file
3541 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3542 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3543 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3545 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3549 osf3* | osf4* | osf5*)
3550 # this will be overridden with pass_all, but let us keep it just in case
3551 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3552 lt_cv_file_magic_test_file=/shlib/libc.so
3553 lt_cv_deplibs_check_method=pass_all
3557 lt_cv_deplibs_check_method=pass_all
3561 lt_cv_deplibs_check_method=pass_all
3562 lt_cv_file_magic_test_file=/lib/libc.so
3565 sysv5uw[78]* | sysv4*uw2*)
3566 lt_cv_deplibs_check_method=pass_all
3569 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3570 case $host_vendor in
3572 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]'
3573 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3576 lt_cv_deplibs_check_method=pass_all
3579 lt_cv_file_magic_cmd='/bin/file'
3580 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3583 lt_cv_file_magic_cmd='/bin/file'
3584 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3585 lt_cv_file_magic_test_file=/lib/libc.so
3592 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3593 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3594 file_magic_cmd=$lt_cv_file_magic_cmd
3595 deplibs_check_method=$lt_cv_deplibs_check_method
3604 # Check for command to grab the raw symbol name followed by C symbol from nm.
3605 echo "$as_me:$LINENO: checking command to parse $NM output" >&5
3606 echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
3607 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
3608 echo $ECHO_N "(cached) $ECHO_C" >&6
3611 # These are sane defaults that work on at least a few old systems.
3612 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
3614 # Character class describing NM global symbol codes.
3615 symcode='[BCDEGRST]'
3617 # Regexp to match symbols that can be accessed directly from C.
3618 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
3620 # Transform the above into a raw symbol and a C symbol.
3621 symxfrm='\1 \2\3 \3'
3623 # Transform an extracted symbol line into a proper C declaration
3624 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
3626 # Transform an extracted symbol line into symbol name and symbol address
3627 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'"
3629 # Define system-specific variables.
3634 cygwin* | mingw* | pw32*)
3635 symcode='[ABCDGISTW]'
3637 hpux*) # Its linker distinguishes data from code symbols
3638 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3639 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'"
3642 symcode='[BCDEGRST]'
3652 # Handle CRLF in mingw tool chain
3656 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3660 # If we're using GNU nm, then use its standard symbol codes.
3661 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
3662 symcode='[ABCDGISTW]'
3665 # Try without a prefix undercore, then with it.
3666 for ac_symprfx in "" "_"; do
3668 # Write the raw and C identifiers.
3669 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
3671 # Check to see that the pipe works correctly.
3674 cat > conftest.$ac_ext <<EOF
3679 void nm_test_func(){}
3683 int main(){nm_test_var='a';nm_test_func();return(0);}
3686 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3687 (eval $ac_compile) 2>&5
3689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3690 (exit $ac_status); }; then
3691 # Now try to grab the symbols.
3693 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
3694 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
3696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3697 (exit $ac_status); } && test -s "$nlist"; then
3698 # Try sorting and uniquifying the output.
3699 if sort "$nlist" | uniq > "$nlist"T; then
3700 mv -f "$nlist"T "$nlist"
3705 # Make sure that we snagged all the symbols we need.
3706 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
3707 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
3708 cat <<EOF > conftest.$ac_ext
3714 # Now generate the symbol file.
3715 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
3717 cat <<EOF >> conftest.$ac_ext
3718 #if defined (__STDC__) && __STDC__
3719 # define lt_ptr void *
3721 # define lt_ptr char *
3725 /* The mapping between symbol names and symbols. */
3730 lt_preloaded_symbols[] =
3733 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
3734 cat <<\EOF >> conftest.$ac_ext
3742 # Now try linking the two files.
3743 mv conftest.$ac_objext conftstm.$ac_objext
3745 save_CFLAGS="$CFLAGS"
3746 LIBS="conftstm.$ac_objext"
3747 CFLAGS="$CFLAGS$no_builtin_flag"
3748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3749 (eval $ac_link) 2>&5
3751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3752 (exit $ac_status); } && test -s conftest; then
3756 CFLAGS="$save_CFLAGS"
3758 echo "cannot find nm_test_func in $nlist" >&5
3761 echo "cannot find nm_test_var in $nlist" >&5
3764 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
3767 echo "$progname: failed program was:" >&5
3768 cat conftest.$ac_ext >&5
3770 rm -f conftest* conftst*
3772 # Do not use the global_symbol_pipe unless it works.
3773 if test "$pipe_works" = yes; then
3776 lt_cv_sys_global_symbol_pipe=
3782 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
3783 if test -z "$lt_cv_sys_global_symbol_pipe"; then
3784 global_symbol_to_cdecl=
3785 global_symbol_to_c_name_address=
3787 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
3788 global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
3790 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
3792 echo "$as_me:$LINENO: result: failed" >&5
3793 echo "${ECHO_T}failed" >&6
3795 echo "$as_me:$LINENO: result: ok" >&5
3796 echo "${ECHO_T}ok" >&6
3800 ac_cpp='$CPP $CPPFLAGS'
3801 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3802 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3803 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3804 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3805 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3806 # On Suns, sometimes $CPP names a directory.
3807 if test -n "$CPP" && test -d "$CPP"; then
3810 if test -z "$CPP"; then
3811 if test "${ac_cv_prog_CPP+set}" = set; then
3812 echo $ECHO_N "(cached) $ECHO_C" >&6
3814 # Double quotes because CPP needs to be expanded
3815 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3818 for ac_c_preproc_warn_flag in '' yes
3820 # Use a header file that comes with gcc, so configuring glibc
3821 # with a fresh cross-compiler works.
3822 # On the NeXT, cc -E runs the code through the compiler's parser,
3823 # not just through cpp. "Syntax error" is here to catch this case.
3824 cat >conftest.$ac_ext <<_ACEOF
3825 #line $LINENO "configure"
3826 #include "confdefs.h"
3830 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3831 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3833 grep -v '^ *+' conftest.er1 >conftest.err
3835 cat conftest.err >&5
3836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3837 (exit $ac_status); } >/dev/null; then
3838 if test -s conftest.err; then
3839 ac_cpp_err=$ac_c_preproc_warn_flag
3846 if test -z "$ac_cpp_err"; then
3849 echo "$as_me: failed program was:" >&5
3850 cat conftest.$ac_ext >&5
3851 # Broken: fails on valid input.
3854 rm -f conftest.err conftest.$ac_ext
3856 # OK, works on sane cases. Now check whether non-existent headers
3857 # can be detected and how.
3858 cat >conftest.$ac_ext <<_ACEOF
3859 #line $LINENO "configure"
3860 #include "confdefs.h"
3861 #include <ac_nonexistent.h>
3863 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3864 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3866 grep -v '^ *+' conftest.er1 >conftest.err
3868 cat conftest.err >&5
3869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3870 (exit $ac_status); } >/dev/null; then
3871 if test -s conftest.err; then
3872 ac_cpp_err=$ac_c_preproc_warn_flag
3879 if test -z "$ac_cpp_err"; then
3880 # Broken: success on invalid input.
3883 echo "$as_me: failed program was:" >&5
3884 cat conftest.$ac_ext >&5
3885 # Passes both tests.
3889 rm -f conftest.err conftest.$ac_ext
3892 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3893 rm -f conftest.err conftest.$ac_ext
3894 if $ac_preproc_ok; then
3906 echo "$as_me:$LINENO: result: $CPP" >&5
3907 echo "${ECHO_T}$CPP" >&6
3909 for ac_c_preproc_warn_flag in '' yes
3911 # Use a header file that comes with gcc, so configuring glibc
3912 # with a fresh cross-compiler works.
3913 # On the NeXT, cc -E runs the code through the compiler's parser,
3914 # not just through cpp. "Syntax error" is here to catch this case.
3915 cat >conftest.$ac_ext <<_ACEOF
3916 #line $LINENO "configure"
3917 #include "confdefs.h"
3921 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3922 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3924 grep -v '^ *+' conftest.er1 >conftest.err
3926 cat conftest.err >&5
3927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3928 (exit $ac_status); } >/dev/null; then
3929 if test -s conftest.err; then
3930 ac_cpp_err=$ac_c_preproc_warn_flag
3937 if test -z "$ac_cpp_err"; then
3940 echo "$as_me: failed program was:" >&5
3941 cat conftest.$ac_ext >&5
3942 # Broken: fails on valid input.
3945 rm -f conftest.err conftest.$ac_ext
3947 # OK, works on sane cases. Now check whether non-existent headers
3948 # can be detected and how.
3949 cat >conftest.$ac_ext <<_ACEOF
3950 #line $LINENO "configure"
3951 #include "confdefs.h"
3952 #include <ac_nonexistent.h>
3954 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3955 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3957 grep -v '^ *+' conftest.er1 >conftest.err
3959 cat conftest.err >&5
3960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3961 (exit $ac_status); } >/dev/null; then
3962 if test -s conftest.err; then
3963 ac_cpp_err=$ac_c_preproc_warn_flag
3970 if test -z "$ac_cpp_err"; then
3971 # Broken: success on invalid input.
3974 echo "$as_me: failed program was:" >&5
3975 cat conftest.$ac_ext >&5
3976 # Passes both tests.
3980 rm -f conftest.err conftest.$ac_ext
3983 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3984 rm -f conftest.err conftest.$ac_ext
3985 if $ac_preproc_ok; then
3988 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
3989 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
3990 { (exit 1); exit 1; }; }
3994 ac_cpp='$CPP $CPPFLAGS'
3995 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3996 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3997 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4000 echo "$as_me:$LINENO: checking for egrep" >&5
4001 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4002 if test "${ac_cv_prog_egrep+set}" = set; then
4003 echo $ECHO_N "(cached) $ECHO_C" >&6
4005 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4006 then ac_cv_prog_egrep='grep -E'
4007 else ac_cv_prog_egrep='egrep'
4010 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4011 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4012 EGREP=$ac_cv_prog_egrep
4015 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4016 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4017 if test "${ac_cv_header_stdc+set}" = set; then
4018 echo $ECHO_N "(cached) $ECHO_C" >&6
4020 cat >conftest.$ac_ext <<_ACEOF
4021 #line $LINENO "configure"
4022 #include "confdefs.h"
4029 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4030 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4032 grep -v '^ *+' conftest.er1 >conftest.err
4034 cat conftest.err >&5
4035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4036 (exit $ac_status); } >/dev/null; then
4037 if test -s conftest.err; then
4038 ac_cpp_err=$ac_c_preproc_warn_flag
4045 if test -z "$ac_cpp_err"; then
4046 ac_cv_header_stdc=yes
4048 echo "$as_me: failed program was:" >&5
4049 cat conftest.$ac_ext >&5
4050 ac_cv_header_stdc=no
4052 rm -f conftest.err conftest.$ac_ext
4054 if test $ac_cv_header_stdc = yes; then
4055 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4056 cat >conftest.$ac_ext <<_ACEOF
4057 #line $LINENO "configure"
4058 #include "confdefs.h"
4062 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4063 $EGREP "memchr" >/dev/null 2>&1; then
4066 ac_cv_header_stdc=no
4072 if test $ac_cv_header_stdc = yes; then
4073 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4074 cat >conftest.$ac_ext <<_ACEOF
4075 #line $LINENO "configure"
4076 #include "confdefs.h"
4080 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4081 $EGREP "free" >/dev/null 2>&1; then
4084 ac_cv_header_stdc=no
4090 if test $ac_cv_header_stdc = yes; then
4091 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4092 if test "$cross_compiling" = yes; then
4095 cat >conftest.$ac_ext <<_ACEOF
4096 #line $LINENO "configure"
4097 #include "confdefs.h"
4099 #if ((' ' & 0x0FF) == 0x020)
4100 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4101 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4103 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4104 || ('j' <= (c) && (c) <= 'r') \
4105 || ('s' <= (c) && (c) <= 'z'))
4106 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4109 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4114 for (i = 0; i < 256; i++)
4115 if (XOR (islower (i), ISLOWER (i))
4116 || toupper (i) != TOUPPER (i))
4121 rm -f conftest$ac_exeext
4122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4123 (eval $ac_link) 2>&5
4125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4126 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4131 (exit $ac_status); }; }; then
4134 echo "$as_me: program exited with status $ac_status" >&5
4135 echo "$as_me: failed program was:" >&5
4136 cat conftest.$ac_ext >&5
4138 ac_cv_header_stdc=no
4140 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4144 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4145 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4146 if test $ac_cv_header_stdc = yes; then
4148 cat >>confdefs.h <<\_ACEOF
4149 #define STDC_HEADERS 1
4154 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4164 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4165 inttypes.h stdint.h unistd.h
4167 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4168 echo "$as_me:$LINENO: checking for $ac_header" >&5
4169 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4170 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4171 echo $ECHO_N "(cached) $ECHO_C" >&6
4173 cat >conftest.$ac_ext <<_ACEOF
4174 #line $LINENO "configure"
4175 #include "confdefs.h"
4176 $ac_includes_default
4178 #include <$ac_header>
4180 rm -f conftest.$ac_objext
4181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4182 (eval $ac_compile) 2>&5
4184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4185 (exit $ac_status); } &&
4186 { ac_try='test -s conftest.$ac_objext'
4187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4191 (exit $ac_status); }; }; then
4192 eval "$as_ac_Header=yes"
4194 echo "$as_me: failed program was:" >&5
4195 cat conftest.$ac_ext >&5
4196 eval "$as_ac_Header=no"
4198 rm -f conftest.$ac_objext conftest.$ac_ext
4200 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4201 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4202 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4203 cat >>confdefs.h <<_ACEOF
4204 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4213 for ac_header in dlfcn.h
4215 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4216 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4217 echo "$as_me:$LINENO: checking for $ac_header" >&5
4218 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4219 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4220 echo $ECHO_N "(cached) $ECHO_C" >&6
4222 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4223 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4225 # Is the header compilable?
4226 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4227 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4228 cat >conftest.$ac_ext <<_ACEOF
4229 #line $LINENO "configure"
4230 #include "confdefs.h"
4231 $ac_includes_default
4232 #include <$ac_header>
4234 rm -f conftest.$ac_objext
4235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4236 (eval $ac_compile) 2>&5
4238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4239 (exit $ac_status); } &&
4240 { ac_try='test -s conftest.$ac_objext'
4241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4245 (exit $ac_status); }; }; then
4246 ac_header_compiler=yes
4248 echo "$as_me: failed program was:" >&5
4249 cat conftest.$ac_ext >&5
4250 ac_header_compiler=no
4252 rm -f conftest.$ac_objext conftest.$ac_ext
4253 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4254 echo "${ECHO_T}$ac_header_compiler" >&6
4256 # Is the header present?
4257 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4258 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4259 cat >conftest.$ac_ext <<_ACEOF
4260 #line $LINENO "configure"
4261 #include "confdefs.h"
4262 #include <$ac_header>
4264 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4265 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4267 grep -v '^ *+' conftest.er1 >conftest.err
4269 cat conftest.err >&5
4270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4271 (exit $ac_status); } >/dev/null; then
4272 if test -s conftest.err; then
4273 ac_cpp_err=$ac_c_preproc_warn_flag
4280 if test -z "$ac_cpp_err"; then
4281 ac_header_preproc=yes
4283 echo "$as_me: failed program was:" >&5
4284 cat conftest.$ac_ext >&5
4285 ac_header_preproc=no
4287 rm -f conftest.err conftest.$ac_ext
4288 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4289 echo "${ECHO_T}$ac_header_preproc" >&6
4291 # So? What about this header?
4292 case $ac_header_compiler:$ac_header_preproc in
4294 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4295 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4296 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4297 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4299 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4300 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4301 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4302 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4303 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4304 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4306 echo "$as_me:$LINENO: checking for $ac_header" >&5
4307 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4308 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4309 echo $ECHO_N "(cached) $ECHO_C" >&6
4311 eval "$as_ac_Header=$ac_header_preproc"
4313 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4314 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4317 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4318 cat >>confdefs.h <<_ACEOF
4319 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4330 # Only perform the check for file, if the check method requires it
4331 case $deplibs_check_method in
4333 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4334 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4335 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4336 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4337 echo $ECHO_N "(cached) $ECHO_C" >&6
4341 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4344 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4347 ac_save_MAGIC_CMD="$MAGIC_CMD"
4348 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4349 ac_dummy="/usr/bin:$PATH"
4350 for ac_dir in $ac_dummy; do
4351 test -z "$ac_dir" && ac_dir=.
4352 if test -f $ac_dir/${ac_tool_prefix}file; then
4353 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4354 if test -n "$file_magic_test_file"; then
4355 case $deplibs_check_method in
4357 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4358 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4359 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4360 egrep "$file_magic_regex" > /dev/null; then
4365 *** Warning: the command libtool uses to detect shared libraries,
4366 *** $file_magic_cmd, produces output that libtool cannot recognize.
4367 *** The result is that libtool may fail to recognize shared libraries
4368 *** as such. This will affect the creation of libtool libraries that
4369 *** depend on shared libraries, but programs linked with such libtool
4370 *** libraries will work regardless of this problem. Nevertheless, you
4371 *** may want to report the problem to your system manager and/or to
4372 *** bug-libtool@gnu.org
4382 MAGIC_CMD="$ac_save_MAGIC_CMD"
4387 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4388 if test -n "$MAGIC_CMD"; then
4389 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4390 echo "${ECHO_T}$MAGIC_CMD" >&6
4392 echo "$as_me:$LINENO: result: no" >&5
4393 echo "${ECHO_T}no" >&6
4396 if test -z "$lt_cv_path_MAGIC_CMD"; then
4397 if test -n "$ac_tool_prefix"; then
4398 echo "$as_me:$LINENO: checking for file" >&5
4399 echo $ECHO_N "checking for file... $ECHO_C" >&6
4400 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4401 echo $ECHO_N "(cached) $ECHO_C" >&6
4405 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4408 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4411 ac_save_MAGIC_CMD="$MAGIC_CMD"
4412 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4413 ac_dummy="/usr/bin:$PATH"
4414 for ac_dir in $ac_dummy; do
4415 test -z "$ac_dir" && ac_dir=.
4416 if test -f $ac_dir/file; then
4417 lt_cv_path_MAGIC_CMD="$ac_dir/file"
4418 if test -n "$file_magic_test_file"; then
4419 case $deplibs_check_method in
4421 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4422 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4423 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4424 egrep "$file_magic_regex" > /dev/null; then
4429 *** Warning: the command libtool uses to detect shared libraries,
4430 *** $file_magic_cmd, produces output that libtool cannot recognize.
4431 *** The result is that libtool may fail to recognize shared libraries
4432 *** as such. This will affect the creation of libtool libraries that
4433 *** depend on shared libraries, but programs linked with such libtool
4434 *** libraries will work regardless of this problem. Nevertheless, you
4435 *** may want to report the problem to your system manager and/or to
4436 *** bug-libtool@gnu.org
4446 MAGIC_CMD="$ac_save_MAGIC_CMD"
4451 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4452 if test -n "$MAGIC_CMD"; then
4453 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4454 echo "${ECHO_T}$MAGIC_CMD" >&6
4456 echo "$as_me:$LINENO: result: no" >&5
4457 echo "${ECHO_T}no" >&6
4469 if test -n "$ac_tool_prefix"; then
4470 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4471 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4472 echo "$as_me:$LINENO: checking for $ac_word" >&5
4473 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4474 if test "${ac_cv_prog_RANLIB+set}" = set; then
4475 echo $ECHO_N "(cached) $ECHO_C" >&6
4477 if test -n "$RANLIB"; then
4478 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4484 test -z "$as_dir" && as_dir=.
4485 for ac_exec_ext in '' $ac_executable_extensions; do
4486 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4487 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4488 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4496 RANLIB=$ac_cv_prog_RANLIB
4497 if test -n "$RANLIB"; then
4498 echo "$as_me:$LINENO: result: $RANLIB" >&5
4499 echo "${ECHO_T}$RANLIB" >&6
4501 echo "$as_me:$LINENO: result: no" >&5
4502 echo "${ECHO_T}no" >&6
4506 if test -z "$ac_cv_prog_RANLIB"; then
4507 ac_ct_RANLIB=$RANLIB
4508 # Extract the first word of "ranlib", so it can be a program name with args.
4509 set dummy ranlib; ac_word=$2
4510 echo "$as_me:$LINENO: checking for $ac_word" >&5
4511 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4512 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4513 echo $ECHO_N "(cached) $ECHO_C" >&6
4515 if test -n "$ac_ct_RANLIB"; then
4516 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4522 test -z "$as_dir" && as_dir=.
4523 for ac_exec_ext in '' $ac_executable_extensions; do
4524 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4525 ac_cv_prog_ac_ct_RANLIB="ranlib"
4526 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4532 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4535 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4536 if test -n "$ac_ct_RANLIB"; then
4537 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4538 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4540 echo "$as_me:$LINENO: result: no" >&5
4541 echo "${ECHO_T}no" >&6
4544 RANLIB=$ac_ct_RANLIB
4546 RANLIB="$ac_cv_prog_RANLIB"
4549 if test -n "$ac_tool_prefix"; then
4550 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4551 set dummy ${ac_tool_prefix}strip; ac_word=$2
4552 echo "$as_me:$LINENO: checking for $ac_word" >&5
4553 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4554 if test "${ac_cv_prog_STRIP+set}" = set; then
4555 echo $ECHO_N "(cached) $ECHO_C" >&6
4557 if test -n "$STRIP"; then
4558 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4564 test -z "$as_dir" && as_dir=.
4565 for ac_exec_ext in '' $ac_executable_extensions; do
4566 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4567 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4568 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4576 STRIP=$ac_cv_prog_STRIP
4577 if test -n "$STRIP"; then
4578 echo "$as_me:$LINENO: result: $STRIP" >&5
4579 echo "${ECHO_T}$STRIP" >&6
4581 echo "$as_me:$LINENO: result: no" >&5
4582 echo "${ECHO_T}no" >&6
4586 if test -z "$ac_cv_prog_STRIP"; then
4588 # Extract the first word of "strip", so it can be a program name with args.
4589 set dummy strip; ac_word=$2
4590 echo "$as_me:$LINENO: checking for $ac_word" >&5
4591 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4592 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4593 echo $ECHO_N "(cached) $ECHO_C" >&6
4595 if test -n "$ac_ct_STRIP"; then
4596 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4602 test -z "$as_dir" && as_dir=.
4603 for ac_exec_ext in '' $ac_executable_extensions; do
4604 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4605 ac_cv_prog_ac_ct_STRIP="strip"
4606 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4612 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4615 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4616 if test -n "$ac_ct_STRIP"; then
4617 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4618 echo "${ECHO_T}$ac_ct_STRIP" >&6
4620 echo "$as_me:$LINENO: result: no" >&5
4621 echo "${ECHO_T}no" >&6
4626 STRIP="$ac_cv_prog_STRIP"
4633 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4634 if test "${enable_libtool_lock+set}" = set; then
4635 enableval="$enable_libtool_lock"
4638 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4640 # Some flags need to be propagated to the compiler or linker for good
4644 # Find out which ABI we are using.
4645 echo '#line 4645 "configure"' > conftest.$ac_ext
4646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4647 (eval $ac_compile) 2>&5
4649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4650 (exit $ac_status); }; then
4651 case `/usr/bin/file conftest.$ac_objext` in
4667 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4668 SAVE_CFLAGS="$CFLAGS"
4669 CFLAGS="$CFLAGS -belf"
4670 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4671 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4672 if test "${lt_cv_cc_needs_belf+set}" = set; then
4673 echo $ECHO_N "(cached) $ECHO_C" >&6
4678 ac_cpp='$CPP $CPPFLAGS'
4679 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4680 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4681 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4683 cat >conftest.$ac_ext <<_ACEOF
4684 #line $LINENO "configure"
4685 #include "confdefs.h"
4695 rm -f conftest.$ac_objext conftest$ac_exeext
4696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4697 (eval $ac_link) 2>&5
4699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4700 (exit $ac_status); } &&
4701 { ac_try='test -s conftest$ac_exeext'
4702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4706 (exit $ac_status); }; }; then
4707 lt_cv_cc_needs_belf=yes
4709 echo "$as_me: failed program was:" >&5
4710 cat conftest.$ac_ext >&5
4711 lt_cv_cc_needs_belf=no
4713 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4715 ac_cpp='$CPP $CPPFLAGS'
4716 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4717 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4718 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4721 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4722 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4723 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4724 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4725 CFLAGS="$SAVE_CFLAGS"
4732 # Sed substitution that helps us do robust quoting. It backslashifies
4733 # metacharacters that are still active within double-quoted strings.
4734 Xsed='sed -e s/^X//'
4735 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
4737 # Same as above, but do not quote variable references.
4738 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
4740 # Sed substitution to delay expansion of an escaped shell variable in a
4741 # double_quote_subst'ed string.
4742 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4748 default_ofile=libtool
4749 can_build_shared=yes
4751 # All known linkers require a `.a' archive for static linking (except M$VC,
4752 # which needs '.lib').
4754 ltmain="$ac_aux_dir/ltmain.sh"
4755 ofile="$default_ofile"
4756 with_gnu_ld="$lt_cv_prog_gnu_ld"
4757 need_locks="$enable_libtool_lock"
4760 old_CFLAGS="$CFLAGS"
4762 # Set sane defaults for various variables
4763 test -z "$AR" && AR=ar
4764 test -z "$AR_FLAGS" && AR_FLAGS=cru
4765 test -z "$AS" && AS=as
4766 test -z "$CC" && CC=cc
4767 test -z "$DLLTOOL" && DLLTOOL=dlltool
4768 test -z "$LD" && LD=ld
4769 test -z "$LN_S" && LN_S="ln -s"
4770 test -z "$MAGIC_CMD" && MAGIC_CMD=file
4771 test -z "$NM" && NM=nm
4772 test -z "$OBJDUMP" && OBJDUMP=objdump
4773 test -z "$RANLIB" && RANLIB=:
4774 test -z "$STRIP" && STRIP=:
4775 test -z "$ac_objext" && ac_objext=o
4777 if test x"$host" != x"$build"; then
4778 ac_tool_prefix=${host_alias}-
4783 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
4786 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
4791 # AIX sometimes has problems with the GCC collect2 program. For some
4792 # reason, if we set the COLLECT_NAMES environment variable, the problems
4793 # vanish in a puff of smoke.
4794 if test "X${COLLECT_NAMES+set}" != Xset; then
4796 export COLLECT_NAMES
4801 # Determine commands to create old-style static archives.
4802 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4803 old_postinstall_cmds='chmod 644 $oldlib'
4804 old_postuninstall_cmds=
4806 if test -n "$RANLIB"; then
4809 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
4812 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
4815 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4818 # Allow CC to be a program name with arguments.
4822 ## FIXME: this should be a separate macro
4824 echo "$as_me:$LINENO: checking for objdir" >&5
4825 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
4826 rm -f .libs 2>/dev/null
4827 mkdir .libs 2>/dev/null
4828 if test -d .libs; then
4831 # MS-DOS does not allow filenames that begin with a dot.
4834 rmdir .libs 2>/dev/null
4835 echo "$as_me:$LINENO: result: $objdir" >&5
4836 echo "${ECHO_T}$objdir" >&6
4841 ## FIXME: this should be a separate macro
4844 # Check whether --with-pic or --without-pic was given.
4845 if test "${with_pic+set}" = set; then
4851 test -z "$pic_mode" && pic_mode=default
4853 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
4854 # in isolation, and that seeing it set (from the cache) indicates that
4855 # the associated values are set (in the cache) correctly too.
4856 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
4857 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
4858 if test "${lt_cv_prog_cc_pic+set}" = set; then
4859 echo $ECHO_N "(cached) $ECHO_C" >&6
4862 lt_cv_prog_cc_shlib=
4864 lt_cv_prog_cc_static=
4865 lt_cv_prog_cc_no_builtin=
4866 lt_cv_prog_cc_can_build_shared=$can_build_shared
4868 if test "$GCC" = yes; then
4869 lt_cv_prog_cc_wl='-Wl,'
4870 lt_cv_prog_cc_static='-static'
4874 # Below there is a dirty hack to force normal static linking with -ldl
4875 # The problem is because libdl dynamically linked with both libc and
4876 # libC (AIX C++ library), which obviously doesn't included in libraries
4877 # list by gcc. This cause undefined symbols with -static flags.
4878 # This hack allows C programs to be linked with "-static -ldl", but
4879 # not sure about C++ programs.
4880 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
4883 # FIXME: we need at least 68020 code to build shared libraries, but
4884 # adding the `-m68020' flag to GCC prevents building anything better,
4886 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
4888 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4889 # PIC is the default for these OSes.
4891 darwin* | rhapsody*)
4892 # PIC is the default on this platform
4893 # Common symbols not allowed in MH_DYLIB files
4894 lt_cv_prog_cc_pic='-fno-common'
4896 cygwin* | mingw* | pw32* | os2*)
4897 # This hack is so that the source file can tell whether it is being
4898 # built for inclusion in a dll (and should export symbols for example).
4899 lt_cv_prog_cc_pic='-DDLL_EXPORT'
4902 if test -d /usr/nec; then
4903 lt_cv_prog_cc_pic=-Kconform_pic
4907 lt_cv_prog_cc_pic='-fPIC'
4911 # PORTME Check for PIC flags for the system compiler.
4913 aix3* | aix4* | aix5*)
4914 lt_cv_prog_cc_wl='-Wl,'
4915 # All AIX code is PIC.
4916 if test "$host_cpu" = ia64; then
4917 # AIX 5 now supports IA64 processor
4918 lt_cv_prog_cc_static='-Bstatic'
4920 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
4924 hpux9* | hpux10* | hpux11*)
4925 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
4926 lt_cv_prog_cc_wl='-Wl,'
4927 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
4928 lt_cv_prog_cc_pic='+Z'
4931 irix5* | irix6* | nonstopux*)
4932 lt_cv_prog_cc_wl='-Wl,'
4933 lt_cv_prog_cc_static='-non_shared'
4934 # PIC (with -KPIC) is the default.
4937 cygwin* | mingw* | pw32* | os2*)
4938 # This hack is so that the source file can tell whether it is being
4939 # built for inclusion in a dll (and should export symbols for example).
4940 lt_cv_prog_cc_pic='-DDLL_EXPORT'
4944 lt_cv_prog_cc_pic='-KPIC'
4945 lt_cv_prog_cc_static='-Bstatic'
4948 osf3* | osf4* | osf5*)
4949 # All OSF/1 code is PIC.
4950 lt_cv_prog_cc_wl='-Wl,'
4951 lt_cv_prog_cc_static='-non_shared'
4955 lt_cv_prog_cc_pic='-Kpic'
4956 lt_cv_prog_cc_static='-dn'
4957 lt_cv_prog_cc_shlib='-belf'
4961 lt_cv_prog_cc_pic='-KPIC'
4962 lt_cv_prog_cc_static='-Bstatic'
4963 lt_cv_prog_cc_wl='-Wl,'
4967 lt_cv_prog_cc_pic='-PIC'
4968 lt_cv_prog_cc_static='-Bstatic'
4969 lt_cv_prog_cc_wl='-Qoption ld '
4972 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4973 lt_cv_prog_cc_pic='-KPIC'
4974 lt_cv_prog_cc_static='-Bstatic'
4975 if test "x$host_vendor" = xsni; then
4976 lt_cv_prog_cc_wl='-LD'
4978 lt_cv_prog_cc_wl='-Wl,'
4983 lt_cv_prog_cc_pic='-pic'
4984 lt_cv_prog_cc_static='-Bstatic'
4988 if test -d /usr/nec ;then
4989 lt_cv_prog_cc_pic='-Kconform_pic'
4990 lt_cv_prog_cc_static='-Bstatic'
4995 lt_cv_prog_cc_can_build_shared=no
5002 if test -z "$lt_cv_prog_cc_pic"; then
5003 echo "$as_me:$LINENO: result: none" >&5
5004 echo "${ECHO_T}none" >&6
5006 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
5007 echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
5009 # Check to make sure the pic_flag actually works.
5010 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
5011 echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
5012 if test "${lt_cv_prog_cc_pic_works+set}" = set; then
5013 echo $ECHO_N "(cached) $ECHO_C" >&6
5015 save_CFLAGS="$CFLAGS"
5016 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
5017 cat >conftest.$ac_ext <<_ACEOF
5018 #line $LINENO "configure"
5019 #include "confdefs.h"
5029 rm -f conftest.$ac_objext
5030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5031 (eval $ac_compile) 2>&5
5033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5034 (exit $ac_status); } &&
5035 { ac_try='test -s conftest.$ac_objext'
5036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5040 (exit $ac_status); }; }; then
5042 hpux9* | hpux10* | hpux11*)
5043 # On HP-UX, both CC and GCC only warn that PIC is supported... then
5044 # they create non-PIC objects. So, if there were any warnings, we
5045 # assume that PIC is not supported.
5046 if test -s conftest.err; then
5047 lt_cv_prog_cc_pic_works=no
5049 lt_cv_prog_cc_pic_works=yes
5053 lt_cv_prog_cc_pic_works=yes
5058 echo "$as_me: failed program was:" >&5
5059 cat conftest.$ac_ext >&5
5060 lt_cv_prog_cc_pic_works=no
5063 rm -f conftest.$ac_objext conftest.$ac_ext
5064 CFLAGS="$save_CFLAGS"
5069 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
5071 lt_cv_prog_cc_can_build_shared=no
5073 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
5076 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
5077 echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
5082 # Check for any special shared library compilation flags.
5083 if test -n "$lt_cv_prog_cc_shlib"; then
5084 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
5085 echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
5086 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
5088 { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5089 echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5090 lt_cv_prog_cc_can_build_shared=no
5094 ## FIXME: this should be a separate macro
5096 echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
5097 echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
5098 if test "${lt_cv_prog_cc_static_works+set}" = set; then
5099 echo $ECHO_N "(cached) $ECHO_C" >&6
5101 lt_cv_prog_cc_static_works=no
5102 save_LDFLAGS="$LDFLAGS"
5103 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
5104 cat >conftest.$ac_ext <<_ACEOF
5105 #line $LINENO "configure"
5106 #include "confdefs.h"
5116 rm -f conftest.$ac_objext conftest$ac_exeext
5117 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5118 (eval $ac_link) 2>&5
5120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5121 (exit $ac_status); } &&
5122 { ac_try='test -s conftest$ac_exeext'
5123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5127 (exit $ac_status); }; }; then
5128 lt_cv_prog_cc_static_works=yes
5130 echo "$as_me: failed program was:" >&5
5131 cat conftest.$ac_ext >&5
5133 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5134 LDFLAGS="$save_LDFLAGS"
5139 # Belt *and* braces to stop my trousers falling down:
5140 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
5141 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
5142 echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
5144 pic_flag="$lt_cv_prog_cc_pic"
5145 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
5146 wl="$lt_cv_prog_cc_wl"
5147 link_static_flag="$lt_cv_prog_cc_static"
5148 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
5149 can_build_shared="$lt_cv_prog_cc_can_build_shared"
5154 ## FIXME: this should be a separate macro
5156 # Check to see if options -o and -c are simultaneously supported by compiler
5157 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
5158 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
5159 if test "${lt_cv_compiler_c_o+set}" = set; then
5160 echo $ECHO_N "(cached) $ECHO_C" >&6
5163 $rm -r conftest 2>/dev/null
5166 echo "int some_variable = 0;" > conftest.$ac_ext
5168 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5169 # that will create temporary files in the current directory regardless of
5170 # the output directory. Thus, making CWD read-only will cause this test
5171 # to fail, enabling locking or at least warning the user not to do parallel
5174 save_CFLAGS="$CFLAGS"
5175 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
5177 if { (eval echo configure:5177: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
5178 # The compiler can only warn and ignore the option if not recognized
5179 # So say no if there are warnings
5180 if test -s out/conftest.err; then
5181 lt_cv_compiler_c_o=no
5183 lt_cv_compiler_c_o=yes
5186 # Append any errors to the config.log.
5187 cat out/conftest.err 1>&5
5188 lt_cv_compiler_c_o=no
5190 CFLAGS="$save_CFLAGS"
5196 $rm -r conftest 2>/dev/null
5200 compiler_c_o=$lt_cv_compiler_c_o
5201 echo "$as_me:$LINENO: result: $compiler_c_o" >&5
5202 echo "${ECHO_T}$compiler_c_o" >&6
5204 if test x"$compiler_c_o" = x"yes"; then
5205 # Check to see if we can write to a .lo
5206 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
5207 echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
5208 if test "${lt_cv_compiler_o_lo+set}" = set; then
5209 echo $ECHO_N "(cached) $ECHO_C" >&6
5212 lt_cv_compiler_o_lo=no
5213 save_CFLAGS="$CFLAGS"
5214 CFLAGS="$CFLAGS -c -o conftest.lo"
5215 save_objext="$ac_objext"
5217 cat >conftest.$ac_ext <<_ACEOF
5218 #line $LINENO "configure"
5219 #include "confdefs.h"
5224 int some_variable = 0;
5229 rm -f conftest.$ac_objext
5230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5231 (eval $ac_compile) 2>&5
5233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5234 (exit $ac_status); } &&
5235 { ac_try='test -s conftest.$ac_objext'
5236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5240 (exit $ac_status); }; }; then
5241 # The compiler can only warn and ignore the option if not recognized
5242 # So say no if there are warnings
5243 if test -s conftest.err; then
5244 lt_cv_compiler_o_lo=no
5246 lt_cv_compiler_o_lo=yes
5250 echo "$as_me: failed program was:" >&5
5251 cat conftest.$ac_ext >&5
5253 rm -f conftest.$ac_objext conftest.$ac_ext
5254 ac_objext="$save_objext"
5255 CFLAGS="$save_CFLAGS"
5259 compiler_o_lo=$lt_cv_compiler_o_lo
5260 echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
5261 echo "${ECHO_T}$compiler_o_lo" >&6
5268 ## FIXME: this should be a separate macro
5270 # Check to see if we can do hard links to lock some files if needed
5271 hard_links="nottested"
5272 if test "$compiler_c_o" = no && test "$need_locks" != no; then
5273 # do not overwrite the value of need_locks provided by the user
5274 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
5275 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
5278 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5280 ln conftest.a conftest.b 2>&5 || hard_links=no
5281 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5282 echo "$as_me:$LINENO: result: $hard_links" >&5
5283 echo "${ECHO_T}$hard_links" >&6
5284 if test "$hard_links" = no; then
5285 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
5286 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
5295 ## FIXME: this should be a separate macro
5297 if test "$GCC" = yes; then
5298 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5299 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5300 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5301 echo "int some_variable = 0;" > conftest.$ac_ext
5302 save_CFLAGS="$CFLAGS"
5303 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5304 compiler_rtti_exceptions=no
5305 cat >conftest.$ac_ext <<_ACEOF
5306 #line $LINENO "configure"
5307 #include "confdefs.h"
5312 int some_variable = 0;
5317 rm -f conftest.$ac_objext
5318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5319 (eval $ac_compile) 2>&5
5321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5322 (exit $ac_status); } &&
5323 { ac_try='test -s conftest.$ac_objext'
5324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5328 (exit $ac_status); }; }; then
5329 # The compiler can only warn and ignore the option if not recognized
5330 # So say no if there are warnings
5331 if test -s conftest.err; then
5332 compiler_rtti_exceptions=no
5334 compiler_rtti_exceptions=yes
5338 echo "$as_me: failed program was:" >&5
5339 cat conftest.$ac_ext >&5
5341 rm -f conftest.$ac_objext conftest.$ac_ext
5342 CFLAGS="$save_CFLAGS"
5343 echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
5344 echo "${ECHO_T}$compiler_rtti_exceptions" >&6
5346 if test "$compiler_rtti_exceptions" = "yes"; then
5347 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
5349 no_builtin_flag=' -fno-builtin'
5355 ## FIXME: this should be a separate macro
5357 # See if the linker supports building shared libraries.
5358 echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
5359 echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
5361 allow_undefined_flag=
5363 need_lib_prefix=unknown
5364 need_version=unknown
5365 # when you set need_version to no, make sure it does not cause -set_version
5366 # flags to be left without arguments
5368 archive_expsym_cmds=
5369 old_archive_from_new_cmds=
5370 old_archive_from_expsyms_cmds=
5371 export_dynamic_flag_spec=
5372 whole_archive_flag_spec=
5373 thread_safe_flag_spec=
5374 hardcode_into_libs=no
5375 hardcode_libdir_flag_spec=
5376 hardcode_libdir_separator=
5379 hardcode_shlibpath_var=unsupported
5381 link_all_deplibs=unknown
5382 always_export_symbols=no
5383 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
5384 # include_expsyms should be a list of space-separated symbols to be *always*
5385 # included in the symbol list
5387 # exclude_expsyms can be an egrep regular expression of symbols to exclude
5388 # it will be wrapped by ` (' and `)$', so one must not match beginning or
5389 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5390 # as well as any symbol that contains `d'.
5391 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5392 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5393 # platforms (ab)use it in PIC code, but their linkers get confused if
5394 # the symbol is explicitly referenced. Since portable code cannot
5395 # rely on this symbol name, it's probably fine to never include it in
5396 # preloaded symbol tables.
5397 extract_expsyms_cmds=
5400 cygwin* | mingw* | pw32*)
5401 # FIXME: the MSVC++ port hasn't been tested in a loooong time
5402 # When not using gcc, we currently assume that we are using
5403 # Microsoft Visual C++.
5404 if test "$GCC" != yes; then
5414 if test "$with_gnu_ld" = yes; then
5415 # If archive_cmds runs LD, not CC, wlarc should be empty
5418 # See if GNU ld supports shared libraries.
5420 aix3* | aix4* | aix5*)
5421 # On AIX, the GNU linker is very broken
5422 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
5426 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
5427 *** to be unable to reliably create shared libraries on AIX.
5428 *** Therefore, libtool is disabling shared libraries support. If you
5429 *** really care for shared libraries, you may want to modify your PATH
5430 *** so that a non-GNU linker is found, and then restart.
5436 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)'
5437 hardcode_libdir_flag_spec='-L$libdir'
5438 hardcode_minus_L=yes
5440 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5441 # that the semantics of dynamic libraries on AmigaOS, at least up
5442 # to version 4, is to share data among multiple programs linked
5443 # with the same dynamic library. Since this doesn't match the
5444 # behavior of shared libraries on other platforms, we can use
5450 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5451 allow_undefined_flag=unsupported
5452 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5453 # support --undefined. This deserves some investigation. FIXME
5454 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5460 cygwin* | mingw* | pw32*)
5461 # hardcode_libdir_flag_spec is actually meaningless, as there is
5462 # no search path for DLLs.
5463 hardcode_libdir_flag_spec='-L$libdir'
5464 allow_undefined_flag=unsupported
5465 always_export_symbols=yes
5467 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
5468 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
5469 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
5470 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
5471 else $CC -o impgen impgen.c ; fi)~
5472 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
5474 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
5476 # cygwin and mingw dlls have different entry points and sets of symbols
5478 # FIXME: what about values for MSVC?
5479 dll_entry=__cygwin_dll_entry@12
5480 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
5484 dll_entry=_DllMainCRTStartup@12
5485 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
5489 # mingw and cygwin differ, and it's simplest to just exclude the union
5490 # of the two symbol sets.
5491 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
5493 # recent cygwin and mingw systems supply a stub DllMain which the user
5494 # can override, but on older systems we have to supply one (in ltdll.c)
5495 if test "x$lt_cv_need_dllmain" = "xyes"; then
5496 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
5497 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~
5498 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
5504 # Extract the symbol export list from an `--export-all' def file,
5505 # then regenerate the def file from the symbol export list, so that
5506 # the compiled dll only exports the symbol export list.
5507 # Be careful not to strip the DATA tag left be newer dlltools.
5508 export_symbols_cmds="$ltdll_cmds"'
5509 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
5510 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
5512 # If the export-symbols file already is a .def file (1st line
5513 # is EXPORTS), use it as is.
5514 # If DATA tags from a recent dlltool are present, honour them!
5515 archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
5516 cp $export_symbols $output_objdir/$soname-def;
5518 echo EXPORTS > $output_objdir/$soname-def;
5520 cat $export_symbols | while read symbol; do
5523 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
5524 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
5526 _lt_hint=`expr 1 + \$_lt_hint`;
5530 $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~
5531 $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~
5532 $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~
5533 $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~
5534 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
5538 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5539 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5542 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5543 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5548 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
5552 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
5553 *** create shared libraries on Solaris systems. Therefore, libtool
5554 *** is disabling shared libraries support. We urge you to upgrade GNU
5555 *** binutils to release 2.9.1 or newer. Another option is to modify
5556 *** your PATH or compiler configuration so that the native linker is
5557 *** used, and then restart.
5560 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5561 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5562 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5569 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5572 hardcode_shlibpath_var=no
5576 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5577 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5578 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5585 if test "$ld_shlibs" = yes; then
5586 runpath_var=LD_RUN_PATH
5587 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
5588 export_dynamic_flag_spec='${wl}--export-dynamic'
5590 cygwin* | mingw* | pw32*)
5591 # dlltool doesn't understand --whole-archive et. al.
5592 whole_archive_flag_spec=
5595 # ancient GNU ld didn't support --whole-archive et. al.
5596 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
5597 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5599 whole_archive_flag_spec=
5605 # PORTME fill in a description of your system's linker (not GNU ld)
5608 allow_undefined_flag=unsupported
5609 always_export_symbols=yes
5610 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'
5611 # Note: this linker hardcodes the directories in LIBPATH if there
5612 # are no directories specified by -L.
5613 hardcode_minus_L=yes
5614 if test "$GCC" = yes && test -z "$link_static_flag"; then
5615 # Neither direct hardcoding nor static linking is supported with a
5617 hardcode_direct=unsupported
5622 if test "$host_cpu" = ia64; then
5623 # On IA64, the linker does run time linking by default, so we don't
5624 # have to do anything special.
5625 aix_use_runtimelinking=no
5626 exp_sym_flag='-Bexport'
5629 aix_use_runtimelinking=no
5631 # Test if we are trying to use run time linking or normal
5632 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5633 # need to do runtime linking.
5634 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
5635 for ld_flag in $LDFLAGS; do
5636 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
5637 aix_use_runtimelinking=yes
5643 exp_sym_flag='-bexport'
5644 no_entry_flag='-bnoentry'
5647 # When large executables or shared objects are built, AIX ld can
5648 # have problems creating the table of contents. If linking a library
5649 # or program results in "error TOC overflow" add -mminimal-toc to
5650 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5651 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5655 hardcode_libdir_separator=':'
5656 if test "$GCC" = yes; then
5657 case $host_os in aix4.[012]|aix4.[012].*)
5658 collect2name=`${CC} -print-prog-name=collect2`
5659 if test -f "$collect2name" && \
5660 strings "$collect2name" | grep resolve_lib_name >/dev/null
5662 # We have reworked collect2
5665 # We have old collect2
5666 hardcode_direct=unsupported
5667 # It fails to find uninstalled libraries when the uninstalled
5668 # path is not listed in the libpath. Setting hardcode_minus_L
5669 # to unsupported forces relinking
5670 hardcode_minus_L=yes
5671 hardcode_libdir_flag_spec='-L$libdir'
5672 hardcode_libdir_separator=
5676 shared_flag='-shared'
5679 if test "$host_cpu" = ia64; then
5680 shared_flag='${wl}-G'
5682 if test "$aix_use_runtimelinking" = yes; then
5683 shared_flag='${wl}-G'
5685 shared_flag='${wl}-bM:SRE'
5690 # It seems that -bexpall can do strange things, so it is better to
5691 # generate a list of symbols to export.
5692 always_export_symbols=yes
5693 if test "$aix_use_runtimelinking" = yes; then
5694 # Warning - without using the other runtime loading flags (-brtl),
5695 # -berok will link without error, but may produce a broken library.
5696 allow_undefined_flag='-berok'
5697 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
5698 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"
5700 if test "$host_cpu" = ia64; then
5701 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
5702 allow_undefined_flag="-z nodefs"
5703 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"
5705 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
5706 # Warning - without using the other run time loading flags,
5707 # -berok will link without error, but may produce a broken library.
5708 allow_undefined_flag='${wl}-berok'
5709 # This is a bit strange, but is similar to how AIX traditionally builds
5710 # it's shared libraries.
5711 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'
5717 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)'
5718 hardcode_libdir_flag_spec='-L$libdir'
5719 hardcode_minus_L=yes
5720 # see comment about different semantics on the GNU ld section
5724 cygwin* | mingw* | pw32*)
5725 # When not using gcc, we currently assume that we are using
5726 # Microsoft Visual C++.
5727 # hardcode_libdir_flag_spec is actually meaningless, as there is
5728 # no search path for DLLs.
5729 hardcode_libdir_flag_spec=' '
5730 allow_undefined_flag=unsupported
5731 # Tell ltmain to make .lib files, not .a files.
5733 # FIXME: Setting linknames here is a bad hack.
5734 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5735 # The linker will automatically build a .lib file if we build a DLL.
5736 old_archive_from_new_cmds='true'
5737 # FIXME: Should let the user specify the lib program.
5738 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
5739 fix_srcfile_path='`cygpath -w "$srcfile"`'
5742 darwin* | rhapsody*)
5744 rhapsody* | darwin1.[012])
5745 allow_undefined_flag='-undefined suppress'
5748 allow_undefined_flag='-flat_namespace -undefined suppress'
5751 # FIXME: Relying on posixy $() will cause problems for
5752 # cross-compilation, but unfortunately the echo tests do not
5753 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
5754 # `"' quotes if we put them in here... so don't!
5755 archive_cmds='$nonopt $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
5756 # We need to add '_' to the symbols in $export_symbols first
5757 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
5759 hardcode_shlibpath_var=no
5760 whole_archive_flag_spec='-all_load $convenience'
5767 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5768 # support. Future versions do this automatically, but an explicit c++rt0.o
5769 # does not break anything, and helps significantly (at the cost of a little
5772 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5773 hardcode_libdir_flag_spec='-R$libdir'
5775 hardcode_shlibpath_var=no
5778 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5780 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5782 hardcode_minus_L=yes
5783 hardcode_shlibpath_var=no
5786 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5788 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5789 hardcode_libdir_flag_spec='-R$libdir'
5791 hardcode_shlibpath_var=no
5794 hpux9* | hpux10* | hpux11*)
5796 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' ;;
5797 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
5799 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
5800 hardcode_libdir_separator=:
5802 hardcode_minus_L=yes # Not in the search PATH, but as the default
5803 # location of the library.
5804 export_dynamic_flag_spec='${wl}-E'
5807 irix5* | irix6* | nonstopux*)
5808 if test "$GCC" = yes; then
5809 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'
5811 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'
5813 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5814 hardcode_libdir_separator=:
5815 link_all_deplibs=yes
5819 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5820 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
5822 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
5824 hardcode_libdir_flag_spec='-R$libdir'
5826 hardcode_shlibpath_var=no
5830 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5832 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5833 hardcode_libdir_separator=:
5834 hardcode_shlibpath_var=no
5839 hardcode_shlibpath_var=no
5840 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5841 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
5842 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5843 export_dynamic_flag_spec='${wl}-E'
5846 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
5847 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5848 hardcode_libdir_flag_spec='-R$libdir'
5851 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
5852 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5859 hardcode_libdir_flag_spec='-L$libdir'
5860 hardcode_minus_L=yes
5861 allow_undefined_flag=unsupported
5862 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'
5863 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5867 if test "$GCC" = yes; then
5868 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5869 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'
5871 allow_undefined_flag=' -expect_unresolved \*'
5872 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'
5874 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5875 hardcode_libdir_separator=:
5878 osf4* | osf5*) # as osf3* with the addition of -msym flag
5879 if test "$GCC" = yes; then
5880 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5881 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'
5882 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5884 allow_undefined_flag=' -expect_unresolved \*'
5885 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'
5886 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
5887 $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'
5889 #Both c and cxx compiler support -rpath directly
5890 hardcode_libdir_flag_spec='-rpath $libdir'
5892 hardcode_libdir_separator=:
5896 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5897 hardcode_shlibpath_var=no
5898 runpath_var=LD_RUN_PATH
5899 hardcode_runpath_var=yes
5900 export_dynamic_flag_spec='${wl}-Bexport'
5904 # gcc --version < 3.0 without binutils cannot create self contained
5905 # shared libraries reliably, requiring libgcc.a to resolve some of
5906 # the object symbols generated in some cases. Libraries that use
5907 # assert need libgcc.a to resolve __eprintf, for example. Linking
5908 # a copy of libgcc.a into every shared library to guarantee resolving
5909 # such symbols causes other problems: According to Tim Van Holder
5910 # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
5911 # (to the application) exception stack for one thing.
5912 no_undefined_flag=' -z defs'
5913 if test "$GCC" = yes; then
5914 case `$CC --version 2>/dev/null` in
5918 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
5919 *** create self contained shared libraries on Solaris systems, without
5920 *** introducing a dependency on libgcc.a. Therefore, libtool is disabling
5921 *** -no-undefined support, which will at least allow you to build shared
5922 *** libraries. However, you may find that when you link such libraries
5923 *** into an application without using GCC, you have to manually add
5924 *** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
5925 *** upgrade to a newer version of GCC. Another option is to rebuild your
5926 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
5933 # $CC -shared without GNU ld will not create a library from C++
5934 # object files and a static libstdc++, better avoid it by now
5935 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5936 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5937 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5938 hardcode_libdir_flag_spec='-R$libdir'
5939 hardcode_shlibpath_var=no
5941 solaris2.[0-5] | solaris2.[0-5].*) ;;
5942 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
5943 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
5945 link_all_deplibs=yes
5949 if test "x$host_vendor" = xsequent; then
5950 # Use $CC to link under sequent, because it throws in some extra .o
5951 # files that make .init and .fini sections work.
5952 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5954 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5956 hardcode_libdir_flag_spec='-L$libdir'
5958 hardcode_minus_L=yes
5959 hardcode_shlibpath_var=no
5963 if test "x$host_vendor" = xsno; then
5964 archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
5965 hardcode_direct=yes # is this really true???
5967 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5968 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
5970 runpath_var='LD_RUN_PATH'
5971 hardcode_shlibpath_var=no
5975 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5976 hardcode_shlibpath_var=no
5977 export_dynamic_flag_spec='-Bexport'
5981 no_undefined_flag=' -z text'
5982 # $CC -shared without GNU ld will not create a library from C++
5983 # object files and a static libstdc++, better avoid it by now
5984 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5985 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5986 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5987 hardcode_libdir_flag_spec=
5988 hardcode_shlibpath_var=no
5989 runpath_var='LD_RUN_PATH'
5993 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5994 hardcode_libdir_flag_spec='-L$libdir'
5995 hardcode_shlibpath_var=no
5999 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6000 hardcode_libdir_flag_spec='-L$libdir'
6001 hardcode_shlibpath_var=no
6005 if test -d /usr/nec; then
6006 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6007 hardcode_shlibpath_var=no
6008 runpath_var=LD_RUN_PATH
6009 hardcode_runpath_var=yes
6015 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6018 hardcode_shlibpath_var=no
6019 hardcode_runpath_var=yes
6020 runpath_var=LD_RUN_PATH
6023 sysv5uw7* | unixware7*)
6024 no_undefined_flag='${wl}-z ${wl}text'
6025 if test "$GCC" = yes; then
6026 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6028 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6030 runpath_var='LD_RUN_PATH'
6031 hardcode_shlibpath_var=no
6039 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
6040 echo "${ECHO_T}$ld_shlibs" >&6
6041 test "$ld_shlibs" = no && can_build_shared=no
6045 ## FIXME: this should be a separate macro
6047 # Check hardcoding attributes.
6048 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
6049 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
6051 if test -n "$hardcode_libdir_flag_spec" || \
6052 test -n "$runpath_var"; then
6054 # We can hardcode non-existant directories.
6055 if test "$hardcode_direct" != no &&
6056 # If the only mechanism to avoid hardcoding is shlibpath_var, we
6057 # have to relink, otherwise we might link with an installed library
6058 # when we should be linking with a yet-to-be-installed one
6059 ## test "$hardcode_shlibpath_var" != no &&
6060 test "$hardcode_minus_L" != no; then
6061 # Linking always hardcodes the temporary library directory.
6062 hardcode_action=relink
6064 # We can link without hardcoding, and we can hardcode nonexisting dirs.
6065 hardcode_action=immediate
6068 # We cannot hardcode anything, or else we can only hardcode existing
6070 hardcode_action=unsupported
6072 echo "$as_me:$LINENO: result: $hardcode_action" >&5
6073 echo "${ECHO_T}$hardcode_action" >&6
6077 ## FIXME: this should be a separate macro
6081 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
6082 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
6083 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6084 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6085 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6086 echo "$as_me:$LINENO: result: yes" >&5
6087 echo "${ECHO_T}yes" >&6
6089 echo "$as_me:$LINENO: result: no" >&5
6090 echo "${ECHO_T}no" >&6
6095 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6096 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6098 ## FIXME: this should be a separate macro
6100 # PORTME Fill in your ld.so characteristics
6101 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6102 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6104 libname_spec='lib$name'
6111 shlibpath_overrides_runpath=unknown
6113 dynamic_linker="$host_os ld.so"
6114 sys_lib_dlsearch_path_spec="/lib /usr/lib"
6115 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6120 library_names_spec='${libname}${release}.so$versuffix $libname.a'
6121 shlibpath_var=LIBPATH
6123 # AIX has no versioning support, so we append a major version to the name.
6124 soname_spec='${libname}${release}.so$major'
6129 if test "$host_cpu" = ia64; then
6130 # AIX 5 supports IA64
6131 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
6132 shlibpath_var=LD_LIBRARY_PATH
6134 # With GCC up to 2.95.x, collect2 would create an import file
6135 # for dependence libraries. The import file would start with
6136 # the line `#! .'. This would cause the generated library to
6137 # depend on `.', always an invalid library. This was fixed in
6138 # development snapshots of GCC prior to 3.0.
6140 aix4 | aix4.[01] | aix4.[01].*)
6141 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6143 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6150 # AIX (on Power*) has no versioning support, so currently we can
6151 # not hardcode correct soname into executable. Probably we can
6152 # add versioning support to collect2, so additional links can
6153 # be useful in future.
6154 if test "$aix_use_runtimelinking" = yes; then
6155 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6156 # instead of lib<name>.a to let people know that these are not
6157 # typical AIX shared libraries.
6158 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6160 # We preserve .a as extension for shared libraries through AIX4.2
6161 # and later when we are not doing run time linking.
6162 library_names_spec='${libname}${release}.a $libname.a'
6163 soname_spec='${libname}${release}.so$major'
6165 shlibpath_var=LIBPATH
6170 library_names_spec='$libname.ixlibrary $libname.a'
6171 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6172 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'
6176 library_names_spec='${libname}.so'
6177 dynamic_linker="$host_os ld.so"
6178 shlibpath_var=LIBRARY_PATH
6184 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6185 soname_spec='${libname}${release}.so$major'
6186 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6187 shlibpath_var=LD_LIBRARY_PATH
6188 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6189 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6190 export_dynamic_flag_spec=-rdynamic
6191 # the default ld.so.conf also contains /usr/contrib/lib and
6192 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6193 # libtool to hard-code these into programs
6196 cygwin* | mingw* | pw32*)
6197 version_type=windows
6200 case $GCC,$host_os in
6202 library_names_spec='$libname.dll.a'
6203 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6204 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
6205 dldir=$destdir/`dirname \$dlpath`~
6206 test -d \$dldir || mkdir -p \$dldir~
6207 $install_prog .libs/$dlname \$dldir/$dlname'
6208 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
6209 dlpath=$dir/\$dldll~
6213 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6214 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
6217 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
6220 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
6223 dynamic_linker='Win32 ld.exe'
6224 # FIXME: first we should search . and the directory the executable is in
6228 darwin* | rhapsody*)
6229 dynamic_linker="$host_os dyld"
6233 # FIXME: Relying on posixy $() will cause problems for
6234 # cross-compilation, but unfortunately the echo tests do not
6235 # yet detect zsh echo's removal of \ escapes.
6236 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)'
6237 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
6238 shlibpath_overrides_runpath=yes
6239 shlibpath_var=DYLD_LIBRARY_PATH
6247 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6248 version_type=freebsd-$objformat
6249 case $version_type in
6251 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6256 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
6260 shlibpath_var=LD_LIBRARY_PATH
6263 shlibpath_overrides_runpath=yes
6266 shlibpath_overrides_runpath=no
6267 hardcode_into_libs=yes
6276 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
6277 soname_spec='${libname}${release}.so$major'
6278 shlibpath_var=LD_LIBRARY_PATH
6279 hardcode_into_libs=yes
6282 hpux9* | hpux10* | hpux11*)
6283 # Give a soname corresponding to the major version so that dld.sl refuses to
6284 # link against other versions.
6285 dynamic_linker="$host_os dld.sl"
6289 shlibpath_var=SHLIB_PATH
6290 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6291 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
6292 soname_spec='${libname}${release}.sl$major'
6293 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6294 postinstall_cmds='chmod 555 $lib'
6297 irix5* | irix6* | nonstopux*)
6299 nonstopux*) version_type=nonstopux ;;
6300 *) version_type=irix ;;
6304 soname_spec='${libname}${release}.so$major'
6305 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
6307 irix5* | nonstopux*)
6311 case $LD in # libtool.m4 will add one of these switches to LD
6312 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
6313 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
6314 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
6315 *) libsuff= shlibsuff= libmagic=never-match;;
6319 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6320 shlibpath_overrides_runpath=no
6321 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6322 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6325 # No shared lib support for Linux oldld, aout, or coff.
6326 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
6330 # This must be Linux ELF.
6335 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6336 soname_spec='${libname}${release}.so$major'
6337 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6338 shlibpath_var=LD_LIBRARY_PATH
6339 shlibpath_overrides_runpath=no
6340 # This implies no fast_install, which is unacceptable.
6341 # Some rework will be needed to allow for fast_install
6342 # before this can be enabled.
6343 hardcode_into_libs=yes
6345 # We used to test for /lib/ld.so.1 and disable shared libraries on
6346 # powerpc, because MkLinux only supported shared libraries with the
6347 # GNU dynamic linker. Since this was broken with cross compilers,
6348 # most powerpc-linux boxes support dynamic linking these days and
6349 # people can always --disable-shared, the test was removed, and we
6350 # assume the GNU/Linux dynamic linker is in use.
6351 dynamic_linker='GNU/Linux ld.so'
6358 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6359 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6360 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6361 dynamic_linker='NetBSD (a.out) ld.so'
6363 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
6364 soname_spec='${libname}${release}.so$major'
6365 dynamic_linker='NetBSD ld.elf_so'
6367 shlibpath_var=LD_LIBRARY_PATH
6368 shlibpath_overrides_runpath=yes
6369 hardcode_into_libs=yes
6374 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6375 shlibpath_var=LD_LIBRARY_PATH
6376 shlibpath_overrides_runpath=yes
6383 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6385 openbsd2.[89] | openbsd2.[89].*)
6386 shlibpath_overrides_runpath=no
6389 shlibpath_overrides_runpath=yes
6393 shlibpath_overrides_runpath=yes
6395 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6396 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6397 shlibpath_var=LD_LIBRARY_PATH
6401 libname_spec='$name'
6403 library_names_spec='$libname.dll $libname.a'
6404 dynamic_linker='OS/2 ld.exe'
6405 shlibpath_var=LIBPATH
6408 osf3* | osf4* | osf5*)
6411 soname_spec='${libname}${release}.so'
6412 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6413 shlibpath_var=LD_LIBRARY_PATH
6414 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6415 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6420 soname_spec='${libname}${release}.so$major'
6421 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6422 shlibpath_var=LD_LIBRARY_PATH
6429 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6430 soname_spec='${libname}${release}.so$major'
6431 shlibpath_var=LD_LIBRARY_PATH
6432 shlibpath_overrides_runpath=yes
6433 hardcode_into_libs=yes
6434 # ldd complains unless libraries are executable
6435 postinstall_cmds='chmod +x $lib'
6440 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6441 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6442 shlibpath_var=LD_LIBRARY_PATH
6443 shlibpath_overrides_runpath=yes
6444 if test "$with_gnu_ld" = yes; then
6450 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6452 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6453 soname_spec='${libname}${release}.so$major'
6454 shlibpath_var=LD_LIBRARY_PATH
6455 case $host_vendor in
6457 shlibpath_overrides_runpath=no
6462 shlibpath_overrides_runpath=no
6463 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6470 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6471 soname_spec='${libname}${release}.so$major'
6472 shlibpath_var=LD_LIBRARY_PATH
6479 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6480 soname_spec='${libname}${release}.so$major'
6481 shlibpath_var=LD_LIBRARY_PATH
6485 if test -d /usr/nec ;then
6487 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
6488 soname_spec='$libname.so.$major'
6489 shlibpath_var=LD_LIBRARY_PATH
6497 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
6498 echo "${ECHO_T}$dynamic_linker" >&6
6499 test "$dynamic_linker" = no && can_build_shared=no
6503 ## FIXME: this should be a separate macro
6505 # Report the final consequences.
6506 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
6507 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
6508 echo "$as_me:$LINENO: result: $can_build_shared" >&5
6509 echo "${ECHO_T}$can_build_shared" >&6
6513 ## FIXME: this should be a separate macro
6515 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
6516 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
6517 test "$can_build_shared" = "no" && enable_shared=no
6519 # On AIX, shared libraries and static libraries use the same namespace, and
6520 # are all built from PIC.
6523 test "$enable_shared" = yes && enable_static=no
6524 if test -n "$RANLIB"; then
6525 archive_cmds="$archive_cmds~\$RANLIB \$lib"
6526 postinstall_cmds='$RANLIB $lib'
6531 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6532 test "$enable_shared" = yes && enable_static=no
6536 echo "$as_me:$LINENO: result: $enable_shared" >&5
6537 echo "${ECHO_T}$enable_shared" >&6
6541 ## FIXME: this should be a separate macro
6543 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
6544 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
6545 # Make sure either enable_shared or enable_static is yes.
6546 test "$enable_shared" = yes || enable_static=yes
6547 echo "$as_me:$LINENO: result: $enable_static" >&5
6548 echo "${ECHO_T}$enable_static" >&6
6552 if test "$hardcode_action" = relink; then
6553 # Fast installation is not supported
6554 enable_fast_install=no
6555 elif test "$shlibpath_overrides_runpath" = yes ||
6556 test "$enable_shared" = no; then
6557 # Fast installation is not necessary
6558 enable_fast_install=needless
6561 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6562 if test "$GCC" = yes; then
6563 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6566 if test "x$enable_dlopen" != xyes; then
6567 enable_dlopen=unknown
6568 enable_dlopen_self=unknown
6569 enable_dlopen_self_static=unknown
6576 lt_cv_dlopen="load_add_on"
6578 lt_cv_dlopen_self=yes
6581 cygwin* | mingw* | pw32*)
6582 lt_cv_dlopen="LoadLibrary"
6587 echo "$as_me:$LINENO: checking for shl_load" >&5
6588 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
6589 if test "${ac_cv_func_shl_load+set}" = set; then
6590 echo $ECHO_N "(cached) $ECHO_C" >&6
6592 cat >conftest.$ac_ext <<_ACEOF
6593 #line $LINENO "configure"
6594 #include "confdefs.h"
6595 /* System header to define __stub macros and hopefully few prototypes,
6596 which can conflict with char shl_load (); below. */
6598 /* Override any gcc2 internal prototype to avoid an error. */
6602 /* We use char because int might match the return type of a gcc2
6603 builtin and then its argument prototype would still apply. */
6610 /* The GNU C library defines this for functions which it implements
6611 to always fail with ENOSYS. Some functions are actually named
6612 something starting with __ and the normal name is an alias. */
6613 #if defined (__stub_shl_load) || defined (__stub___shl_load)
6623 rm -f conftest.$ac_objext conftest$ac_exeext
6624 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6625 (eval $ac_link) 2>&5
6627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6628 (exit $ac_status); } &&
6629 { ac_try='test -s conftest$ac_exeext'
6630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6634 (exit $ac_status); }; }; then
6635 ac_cv_func_shl_load=yes
6637 echo "$as_me: failed program was:" >&5
6638 cat conftest.$ac_ext >&5
6639 ac_cv_func_shl_load=no
6641 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6643 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
6644 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
6645 if test $ac_cv_func_shl_load = yes; then
6646 lt_cv_dlopen="shl_load"
6648 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
6649 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
6650 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
6651 echo $ECHO_N "(cached) $ECHO_C" >&6
6653 ac_check_lib_save_LIBS=$LIBS
6655 cat >conftest.$ac_ext <<_ACEOF
6656 #line $LINENO "configure"
6657 #include "confdefs.h"
6659 /* Override any gcc2 internal prototype to avoid an error. */
6663 /* We use char because int might match the return type of a gcc2
6664 builtin and then its argument prototype would still apply. */
6674 rm -f conftest.$ac_objext conftest$ac_exeext
6675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6676 (eval $ac_link) 2>&5
6678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6679 (exit $ac_status); } &&
6680 { ac_try='test -s conftest$ac_exeext'
6681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6685 (exit $ac_status); }; }; then
6686 ac_cv_lib_dld_shl_load=yes
6688 echo "$as_me: failed program was:" >&5
6689 cat conftest.$ac_ext >&5
6690 ac_cv_lib_dld_shl_load=no
6692 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6693 LIBS=$ac_check_lib_save_LIBS
6695 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
6696 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
6697 if test $ac_cv_lib_dld_shl_load = yes; then
6698 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
6700 echo "$as_me:$LINENO: checking for dlopen" >&5
6701 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
6702 if test "${ac_cv_func_dlopen+set}" = set; then
6703 echo $ECHO_N "(cached) $ECHO_C" >&6
6705 cat >conftest.$ac_ext <<_ACEOF
6706 #line $LINENO "configure"
6707 #include "confdefs.h"
6708 /* System header to define __stub macros and hopefully few prototypes,
6709 which can conflict with char dlopen (); below. */
6711 /* Override any gcc2 internal prototype to avoid an error. */
6715 /* We use char because int might match the return type of a gcc2
6716 builtin and then its argument prototype would still apply. */
6723 /* The GNU C library defines this for functions which it implements
6724 to always fail with ENOSYS. Some functions are actually named
6725 something starting with __ and the normal name is an alias. */
6726 #if defined (__stub_dlopen) || defined (__stub___dlopen)
6736 rm -f conftest.$ac_objext conftest$ac_exeext
6737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6738 (eval $ac_link) 2>&5
6740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6741 (exit $ac_status); } &&
6742 { ac_try='test -s conftest$ac_exeext'
6743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6747 (exit $ac_status); }; }; then
6748 ac_cv_func_dlopen=yes
6750 echo "$as_me: failed program was:" >&5
6751 cat conftest.$ac_ext >&5
6752 ac_cv_func_dlopen=no
6754 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6756 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
6757 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
6758 if test $ac_cv_func_dlopen = yes; then
6759 lt_cv_dlopen="dlopen"
6761 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
6762 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
6763 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
6764 echo $ECHO_N "(cached) $ECHO_C" >&6
6766 ac_check_lib_save_LIBS=$LIBS
6768 cat >conftest.$ac_ext <<_ACEOF
6769 #line $LINENO "configure"
6770 #include "confdefs.h"
6772 /* Override any gcc2 internal prototype to avoid an error. */
6776 /* We use char because int might match the return type of a gcc2
6777 builtin and then its argument prototype would still apply. */
6787 rm -f conftest.$ac_objext conftest$ac_exeext
6788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6789 (eval $ac_link) 2>&5
6791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6792 (exit $ac_status); } &&
6793 { ac_try='test -s conftest$ac_exeext'
6794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6798 (exit $ac_status); }; }; then
6799 ac_cv_lib_dl_dlopen=yes
6801 echo "$as_me: failed program was:" >&5
6802 cat conftest.$ac_ext >&5
6803 ac_cv_lib_dl_dlopen=no
6805 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6806 LIBS=$ac_check_lib_save_LIBS
6808 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
6809 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
6810 if test $ac_cv_lib_dl_dlopen = yes; then
6811 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
6813 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
6814 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
6815 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
6816 echo $ECHO_N "(cached) $ECHO_C" >&6
6818 ac_check_lib_save_LIBS=$LIBS
6820 cat >conftest.$ac_ext <<_ACEOF
6821 #line $LINENO "configure"
6822 #include "confdefs.h"
6824 /* Override any gcc2 internal prototype to avoid an error. */
6828 /* We use char because int might match the return type of a gcc2
6829 builtin and then its argument prototype would still apply. */
6839 rm -f conftest.$ac_objext conftest$ac_exeext
6840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6841 (eval $ac_link) 2>&5
6843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6844 (exit $ac_status); } &&
6845 { ac_try='test -s conftest$ac_exeext'
6846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6850 (exit $ac_status); }; }; then
6851 ac_cv_lib_svld_dlopen=yes
6853 echo "$as_me: failed program was:" >&5
6854 cat conftest.$ac_ext >&5
6855 ac_cv_lib_svld_dlopen=no
6857 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6858 LIBS=$ac_check_lib_save_LIBS
6860 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
6861 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
6862 if test $ac_cv_lib_svld_dlopen = yes; then
6863 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
6865 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
6866 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
6867 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
6868 echo $ECHO_N "(cached) $ECHO_C" >&6
6870 ac_check_lib_save_LIBS=$LIBS
6872 cat >conftest.$ac_ext <<_ACEOF
6873 #line $LINENO "configure"
6874 #include "confdefs.h"
6876 /* Override any gcc2 internal prototype to avoid an error. */
6880 /* We use char because int might match the return type of a gcc2
6881 builtin and then its argument prototype would still apply. */
6891 rm -f conftest.$ac_objext conftest$ac_exeext
6892 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6893 (eval $ac_link) 2>&5
6895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6896 (exit $ac_status); } &&
6897 { ac_try='test -s conftest$ac_exeext'
6898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6902 (exit $ac_status); }; }; then
6903 ac_cv_lib_dld_dld_link=yes
6905 echo "$as_me: failed program was:" >&5
6906 cat conftest.$ac_ext >&5
6907 ac_cv_lib_dld_dld_link=no
6909 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6910 LIBS=$ac_check_lib_save_LIBS
6912 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
6913 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
6914 if test $ac_cv_lib_dld_dld_link = yes; then
6915 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
6936 if test "x$lt_cv_dlopen" != xno; then
6942 case $lt_cv_dlopen in
6944 save_CPPFLAGS="$CPPFLAGS"
6945 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
6947 save_LDFLAGS="$LDFLAGS"
6948 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
6951 LIBS="$lt_cv_dlopen_libs $LIBS"
6953 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
6954 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
6955 if test "${lt_cv_dlopen_self+set}" = set; then
6956 echo $ECHO_N "(cached) $ECHO_C" >&6
6958 if test "$cross_compiling" = yes; then :
6959 lt_cv_dlopen_self=cross
6961 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6962 lt_status=$lt_dlunknown
6963 cat > conftest.$ac_ext <<EOF
6964 #line 6964 "configure"
6965 #include "confdefs.h"
6974 # define LT_DLGLOBAL RTLD_GLOBAL
6977 # define LT_DLGLOBAL DL_GLOBAL
6979 # define LT_DLGLOBAL 0
6983 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6984 find out it does not work in some platform. */
6985 #ifndef LT_DLLAZY_OR_NOW
6987 # define LT_DLLAZY_OR_NOW RTLD_LAZY
6990 # define LT_DLLAZY_OR_NOW DL_LAZY
6993 # define LT_DLLAZY_OR_NOW RTLD_NOW
6996 # define LT_DLLAZY_OR_NOW DL_NOW
6998 # define LT_DLLAZY_OR_NOW 0
7006 extern "C" void exit (int);
7009 void fnord() { int i=42;}
7012 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7013 int status = $lt_dlunknown;
7017 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7018 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7019 /* dlclose (self); */
7025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7026 (eval $ac_link) 2>&5
7028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7029 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7030 (./conftest; exit; ) 2>/dev/null
7033 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
7034 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
7035 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
7038 # compilation failed
7039 lt_cv_dlopen_self=no
7046 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
7047 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
7049 if test "x$lt_cv_dlopen_self" = xyes; then
7050 LDFLAGS="$LDFLAGS $link_static_flag"
7051 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
7052 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
7053 if test "${lt_cv_dlopen_self_static+set}" = set; then
7054 echo $ECHO_N "(cached) $ECHO_C" >&6
7056 if test "$cross_compiling" = yes; then :
7057 lt_cv_dlopen_self_static=cross
7059 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7060 lt_status=$lt_dlunknown
7061 cat > conftest.$ac_ext <<EOF
7062 #line 7062 "configure"
7063 #include "confdefs.h"
7072 # define LT_DLGLOBAL RTLD_GLOBAL
7075 # define LT_DLGLOBAL DL_GLOBAL
7077 # define LT_DLGLOBAL 0
7081 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7082 find out it does not work in some platform. */
7083 #ifndef LT_DLLAZY_OR_NOW
7085 # define LT_DLLAZY_OR_NOW RTLD_LAZY
7088 # define LT_DLLAZY_OR_NOW DL_LAZY
7091 # define LT_DLLAZY_OR_NOW RTLD_NOW
7094 # define LT_DLLAZY_OR_NOW DL_NOW
7096 # define LT_DLLAZY_OR_NOW 0
7104 extern "C" void exit (int);
7107 void fnord() { int i=42;}
7110 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7111 int status = $lt_dlunknown;
7115 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7116 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7117 /* dlclose (self); */
7123 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7124 (eval $ac_link) 2>&5
7126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7127 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7128 (./conftest; exit; ) 2>/dev/null
7131 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
7132 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
7133 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
7136 # compilation failed
7137 lt_cv_dlopen_self_static=no
7144 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
7145 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
7148 CPPFLAGS="$save_CPPFLAGS"
7149 LDFLAGS="$save_LDFLAGS"
7154 case $lt_cv_dlopen_self in
7155 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
7156 *) enable_dlopen_self=unknown ;;
7159 case $lt_cv_dlopen_self_static in
7160 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
7161 *) enable_dlopen_self_static=unknown ;;
7166 ## FIXME: this should be a separate macro
7168 if test "$enable_shared" = yes && test "$GCC" = yes; then
7169 case $archive_cmds in
7171 # FIXME: we may have to deal with multi-command sequences.
7174 # Test whether the compiler implicitly links with -lc since on some
7175 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7176 # to ld, don't add -lc before -lgcc.
7177 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7178 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7179 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
7180 echo $ECHO_N "(cached) $ECHO_C" >&6
7183 echo 'static int dummy;' > conftest.$ac_ext
7185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7186 (eval $ac_compile) 2>&5
7188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7189 (exit $ac_status); }; then
7192 libobjs=conftest.$ac_objext
7194 wl=$lt_cv_prog_cc_wl
7200 save_allow_undefined_flag=$allow_undefined_flag
7201 allow_undefined_flag=
7202 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7203 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7206 (exit $ac_status); }
7208 lt_cv_archive_cmds_need_lc=no
7210 lt_cv_archive_cmds_need_lc=yes
7212 allow_undefined_flag=$save_allow_undefined_flag
7214 cat conftest.err 1>&5
7218 echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
7219 echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
7223 need_lc=${lt_cv_archive_cmds_need_lc-yes}
7227 ## FIXME: this should be a separate macro
7229 # The second clause should only fire when bootstrapping the
7230 # libtool distribution, otherwise you forgot to ship ltmain.sh
7231 # with your package, and you will get complaints that there are
7232 # no rules to generate ltmain.sh.
7233 if test -f "$ltmain"; then
7236 # If there is no Makefile yet, we rely on a make rule to execute
7237 # `config.status --recheck' to rerun these tests and create the
7238 # libtool script then.
7239 test -f Makefile && make "$ltmain"
7242 if test -f "$ltmain"; then
7243 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
7246 echo creating $ofile
7248 # Now quote all the things that may contain metacharacters while being
7249 # careful not to overquote the AC_SUBSTed values. We take copies of the
7250 # variables and quote the copies for generation of the libtool script.
7251 for var in echo old_CC old_CFLAGS \
7252 AR AR_FLAGS CC LD LN_S NM SHELL \
7253 reload_flag reload_cmds wl \
7254 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
7255 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
7256 library_names_spec soname_spec \
7257 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
7258 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
7259 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
7260 old_striplib striplib file_magic_cmd export_symbols_cmds \
7261 deplibs_check_method allow_undefined_flag no_undefined_flag \
7262 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
7263 global_symbol_to_c_name_address \
7264 hardcode_libdir_flag_spec hardcode_libdir_separator \
7265 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
7266 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
7269 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
7270 old_postinstall_cmds | old_postuninstall_cmds | \
7271 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
7272 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
7273 postinstall_cmds | postuninstall_cmds | \
7274 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
7275 # Double-quote double-evaled strings.
7276 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
7279 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
7284 cat <<__EOF__ > "${ofile}T"
7287 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7288 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7289 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
7291 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
7292 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7294 # This program is free software; you can redistribute it and/or modify
7295 # it under the terms of the GNU General Public License as published by
7296 # the Free Software Foundation; either version 2 of the License, or
7297 # (at your option) any later version.
7299 # This program is distributed in the hope that it will be useful, but
7300 # WITHOUT ANY WARRANTY; without even the implied warranty of
7301 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
7302 # General Public License for more details.
7304 # You should have received a copy of the GNU General Public License
7305 # along with this program; if not, write to the Free Software
7306 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7308 # As a special exception to the GNU General Public License, if you
7309 # distribute this file as part of a program that contains a
7310 # configuration script generated by Autoconf, you may include it under
7311 # the same distribution terms that you use for the rest of that program.
7313 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
7314 Xsed="sed -e s/^X//"
7316 # The HP-UX ksh and POSIX shell print the target directory to stdout
7318 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
7320 # ### BEGIN LIBTOOL CONFIG
7322 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7324 # Shell to use when invoking shell scripts.
7327 # Whether or not to build shared libraries.
7328 build_libtool_libs=$enable_shared
7330 # Whether or not to build static libraries.
7331 build_old_libs=$enable_static
7333 # Whether or not to add -lc for building shared libraries.
7334 build_libtool_need_lc=$need_lc
7336 # Whether or not to optimize for fast installation.
7337 fast_install=$enable_fast_install
7340 host_alias=$host_alias
7343 # An echo program that does not interpret backslashes.
7348 AR_FLAGS=$lt_AR_FLAGS
7350 # The default C compiler.
7353 # Is the compiler the GNU C compiler?
7356 # The linker used to build libraries.
7359 # Whether we need hard or soft links.
7362 # A BSD-compatible nm program.
7365 # A symbol stripping program
7368 # Used to examine libraries when file_magic_cmd begins "file"
7369 MAGIC_CMD=$MAGIC_CMD
7371 # Used on cygwin: DLL creation program.
7374 # Used on cygwin: object dumper.
7377 # Used on cygwin: assembler.
7380 # The name of the directory that contains temporary libtool files.
7383 # How to create reloadable object files.
7384 reload_flag=$lt_reload_flag
7385 reload_cmds=$lt_reload_cmds
7387 # How to pass a linker flag through the compiler.
7390 # Object file suffix (normally "o").
7393 # Old archive suffix (normally "a").
7396 # Executable file suffix (normally "").
7399 # Additional compiler flags for building library objects.
7400 pic_flag=$lt_pic_flag
7403 # Does compiler simultaneously support -c and -o options?
7404 compiler_c_o=$lt_compiler_c_o
7406 # Can we write directly to a .lo ?
7407 compiler_o_lo=$lt_compiler_o_lo
7409 # Must we lock files when doing compilation ?
7410 need_locks=$lt_need_locks
7412 # Do we need the lib prefix for modules?
7413 need_lib_prefix=$need_lib_prefix
7415 # Do we need a version for libraries?
7416 need_version=$need_version
7418 # Whether dlopen is supported.
7419 dlopen_support=$enable_dlopen
7421 # Whether dlopen of programs is supported.
7422 dlopen_self=$enable_dlopen_self
7424 # Whether dlopen of statically linked programs is supported.
7425 dlopen_self_static=$enable_dlopen_self_static
7427 # Compiler flag to prevent dynamic linking.
7428 link_static_flag=$lt_link_static_flag
7430 # Compiler flag to turn off builtin functions.
7431 no_builtin_flag=$lt_no_builtin_flag
7433 # Compiler flag to allow reflexive dlopens.
7434 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
7436 # Compiler flag to generate shared objects directly from archives.
7437 whole_archive_flag_spec=$lt_whole_archive_flag_spec
7439 # Compiler flag to generate thread-safe objects.
7440 thread_safe_flag_spec=$lt_thread_safe_flag_spec
7442 # Library versioning type.
7443 version_type=$version_type
7445 # Format of library name prefix.
7446 libname_spec=$lt_libname_spec
7448 # List of archive names. First name is the real one, the rest are links.
7449 # The last name is the one that the linker finds with -lNAME.
7450 library_names_spec=$lt_library_names_spec
7452 # The coded name of the library, if different from the real name.
7453 soname_spec=$lt_soname_spec
7455 # Commands used to build and install an old-style archive.
7457 old_archive_cmds=$lt_old_archive_cmds
7458 old_postinstall_cmds=$lt_old_postinstall_cmds
7459 old_postuninstall_cmds=$lt_old_postuninstall_cmds
7461 # Create an old-style archive from a shared archive.
7462 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
7464 # Create a temporary old-style archive to link instead of a shared archive.
7465 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
7467 # Commands used to build and install a shared archive.
7468 archive_cmds=$lt_archive_cmds
7469 archive_expsym_cmds=$lt_archive_expsym_cmds
7470 postinstall_cmds=$lt_postinstall_cmds
7471 postuninstall_cmds=$lt_postuninstall_cmds
7473 # Commands to strip libraries.
7474 old_striplib=$lt_old_striplib
7475 striplib=$lt_striplib
7477 # Method to check whether dependent libraries are shared objects.
7478 deplibs_check_method=$lt_deplibs_check_method
7480 # Command to use when deplibs_check_method == file_magic.
7481 file_magic_cmd=$lt_file_magic_cmd
7483 # Flag that allows shared libraries with undefined symbols to be built.
7484 allow_undefined_flag=$lt_allow_undefined_flag
7486 # Flag that forces no undefined symbols.
7487 no_undefined_flag=$lt_no_undefined_flag
7489 # Commands used to finish a libtool library installation in a directory.
7490 finish_cmds=$lt_finish_cmds
7492 # Same as above, but a single script fragment to be evaled but not shown.
7493 finish_eval=$lt_finish_eval
7495 # Take the output of nm and produce a listing of raw symbols and C names.
7496 global_symbol_pipe=$lt_global_symbol_pipe
7498 # Transform the output of nm in a proper C declaration
7499 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
7501 # Transform the output of nm in a C name address pair
7502 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
7504 # This is the shared library runtime path variable.
7505 runpath_var=$runpath_var
7507 # This is the shared library path variable.
7508 shlibpath_var=$shlibpath_var
7510 # Is shlibpath searched before the hard-coded library search path?
7511 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
7513 # How to hardcode a shared library path into an executable.
7514 hardcode_action=$hardcode_action
7516 # Whether we should hardcode library paths into libraries.
7517 hardcode_into_libs=$hardcode_into_libs
7519 # Flag to hardcode \$libdir into a binary during linking.
7520 # This must work even if \$libdir does not exist.
7521 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
7523 # Whether we need a single -rpath flag with a separated argument.
7524 hardcode_libdir_separator=$lt_hardcode_libdir_separator
7526 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
7528 hardcode_direct=$hardcode_direct
7530 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
7532 hardcode_minus_L=$hardcode_minus_L
7534 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
7535 # the resulting binary.
7536 hardcode_shlibpath_var=$hardcode_shlibpath_var
7538 # Variables whose values should be saved in libtool wrapper scripts and
7539 # restored at relink time.
7540 variables_saved_for_relink="$variables_saved_for_relink"
7542 # Whether libtool must link a program against all its dependency libraries.
7543 link_all_deplibs=$link_all_deplibs
7545 # Compile-time system search path for libraries
7546 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
7548 # Run-time system search path for libraries
7549 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
7551 # Fix the shell variable \$srcfile for the compiler.
7552 fix_srcfile_path="$fix_srcfile_path"
7554 # Set to yes if exported symbols are required.
7555 always_export_symbols=$always_export_symbols
7557 # The commands to list exported symbols.
7558 export_symbols_cmds=$lt_export_symbols_cmds
7560 # The commands to extract the exported symbol list from a shared archive.
7561 extract_expsyms_cmds=$lt_extract_expsyms_cmds
7563 # Symbols that should not be listed in the preloaded symbols.
7564 exclude_expsyms=$lt_exclude_expsyms
7566 # Symbols that must always be exported.
7567 include_expsyms=$lt_include_expsyms
7569 # ### END LIBTOOL CONFIG
7575 cat <<\EOF >> "${ofile}T"
7577 # AIX sometimes has problems with the GCC collect2 program. For some
7578 # reason, if we set the COLLECT_NAMES environment variable, the problems
7579 # vanish in a puff of smoke.
7580 if test "X${COLLECT_NAMES+set}" != Xset; then
7582 export COLLECT_NAMES
7589 cygwin* | mingw* | pw32* | os2*)
7590 cat <<'EOF' >> "${ofile}T"
7591 # This is a source program that is used to create dlls on Windows
7592 # Don't remove nor modify the starting and closing comments
7593 # /* ltdll.c starts here */
7594 # #define WIN32_LEAN_AND_MEAN
7595 # #include <windows.h>
7596 # #undef WIN32_LEAN_AND_MEAN
7597 # #include <stdio.h>
7599 # #ifndef __CYGWIN__
7600 # # ifdef __CYGWIN32__
7601 # # define __CYGWIN__ __CYGWIN32__
7605 # #ifdef __cplusplus
7608 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7609 # #ifdef __cplusplus
7614 # #include <cygwin/cygwin_dll.h>
7615 # DECLARE_CYGWIN_DLL( DllMain );
7617 # HINSTANCE __hDllInstance_base;
7620 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7622 # __hDllInstance_base = hInst;
7625 # /* ltdll.c ends here */
7626 # This is a source program that is used to create import libraries
7627 # on Windows for dlls which lack them. Don't remove nor modify the
7628 # starting and closing comments
7629 # /* impgen.c starts here */
7630 # /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
7632 # This file is part of GNU libtool.
7634 # This program is free software; you can redistribute it and/or modify
7635 # it under the terms of the GNU General Public License as published by
7636 # the Free Software Foundation; either version 2 of the License, or
7637 # (at your option) any later version.
7639 # This program is distributed in the hope that it will be useful,
7640 # but WITHOUT ANY WARRANTY; without even the implied warranty of
7641 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7642 # GNU General Public License for more details.
7644 # You should have received a copy of the GNU General Public License
7645 # along with this program; if not, write to the Free Software
7646 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7649 # #include <stdio.h> /* for printf() */
7650 # #include <unistd.h> /* for open(), lseek(), read() */
7651 # #include <fcntl.h> /* for O_RDONLY, O_BINARY */
7652 # #include <string.h> /* for strdup() */
7654 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
7656 # #define O_BINARY 0
7659 # static unsigned int
7660 # pe_get16 (fd, offset)
7664 # unsigned char b[2];
7665 # lseek (fd, offset, SEEK_SET);
7667 # return b[0] + (b[1]<<8);
7670 # static unsigned int
7671 # pe_get32 (fd, offset)
7675 # unsigned char b[4];
7676 # lseek (fd, offset, SEEK_SET);
7678 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7681 # static unsigned int
7685 # unsigned char *b = ptr;
7686 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7695 # unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
7696 # unsigned long export_rva, export_size, nsections, secptr, expptr;
7697 # unsigned long name_rvas, nexp;
7698 # unsigned char *expdata, *erva;
7699 # char *filename, *dll_name;
7701 # filename = argv[1];
7703 # dll = open(filename, O_RDONLY|O_BINARY);
7707 # dll_name = filename;
7709 # for (i=0; filename[i]; i++)
7710 # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
7711 # dll_name = filename + i +1;
7713 # pe_header_offset = pe_get32 (dll, 0x3c);
7714 # opthdr_ofs = pe_header_offset + 4 + 20;
7715 # num_entries = pe_get32 (dll, opthdr_ofs + 92);
7717 # if (num_entries < 1) /* no exports */
7720 # export_rva = pe_get32 (dll, opthdr_ofs + 96);
7721 # export_size = pe_get32 (dll, opthdr_ofs + 100);
7722 # nsections = pe_get16 (dll, pe_header_offset + 4 +2);
7723 # secptr = (pe_header_offset + 4 + 20 +
7724 # pe_get16 (dll, pe_header_offset + 4 + 16));
7727 # for (i = 0; i < nsections; i++)
7730 # unsigned long secptr1 = secptr + 40 * i;
7731 # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
7732 # unsigned long vsize = pe_get32 (dll, secptr1 + 16);
7733 # unsigned long fptr = pe_get32 (dll, secptr1 + 20);
7734 # lseek(dll, secptr1, SEEK_SET);
7735 # read(dll, sname, 8);
7736 # if (vaddr <= export_rva && vaddr+vsize > export_rva)
7738 # expptr = fptr + (export_rva - vaddr);
7739 # if (export_rva + export_size > vaddr + vsize)
7740 # export_size = vsize - (export_rva - vaddr);
7745 # expdata = (unsigned char*)malloc(export_size);
7746 # lseek (dll, expptr, SEEK_SET);
7747 # read (dll, expdata, export_size);
7748 # erva = expdata - export_rva;
7750 # nexp = pe_as32 (expdata+24);
7751 # name_rvas = pe_as32 (expdata+32);
7753 # printf ("EXPORTS\n");
7754 # for (i = 0; i<nexp; i++)
7756 # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
7757 # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
7762 # /* impgen.c ends here */
7768 # We use sed instead of cat because bash on DJGPP gets confused if
7769 # if finds mixed CR/LF and LF-only lines. Since sed operates in
7770 # text mode, it properly converts lines to CR/LF. This bash problem
7771 # is reportedly fixed, but why not run on old versions too?
7772 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
7774 mv -f "${ofile}T" "$ofile" || \
7775 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
7785 # This can be used to rebuild libtool when needed
7786 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
7788 # Always use our own libtool.
7789 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7791 # Prevent multiple expansion
7797 ac_cpp='$CXXCPP $CPPFLAGS'
7798 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7799 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7800 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7803 # Checking for header files.
7804 # ===========================================================================
7806 if test -d /stuff/include; then
7807 CPPFLAGS="$CPPFLAGS -I/stuff/include"
7812 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7813 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7814 if test "${ac_cv_header_stdc+set}" = set; then
7815 echo $ECHO_N "(cached) $ECHO_C" >&6
7817 cat >conftest.$ac_ext <<_ACEOF
7818 #line $LINENO "configure"
7819 #include "confdefs.h"
7826 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7827 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7829 grep -v '^ *+' conftest.er1 >conftest.err
7831 cat conftest.err >&5
7832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7833 (exit $ac_status); } >/dev/null; then
7834 if test -s conftest.err; then
7835 ac_cpp_err=$ac_cxx_preproc_warn_flag
7842 if test -z "$ac_cpp_err"; then
7843 ac_cv_header_stdc=yes
7845 echo "$as_me: failed program was:" >&5
7846 cat conftest.$ac_ext >&5
7847 ac_cv_header_stdc=no
7849 rm -f conftest.err conftest.$ac_ext
7851 if test $ac_cv_header_stdc = yes; then
7852 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7853 cat >conftest.$ac_ext <<_ACEOF
7854 #line $LINENO "configure"
7855 #include "confdefs.h"
7859 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7860 $EGREP "memchr" >/dev/null 2>&1; then
7863 ac_cv_header_stdc=no
7869 if test $ac_cv_header_stdc = yes; then
7870 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7871 cat >conftest.$ac_ext <<_ACEOF
7872 #line $LINENO "configure"
7873 #include "confdefs.h"
7877 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7878 $EGREP "free" >/dev/null 2>&1; then
7881 ac_cv_header_stdc=no
7887 if test $ac_cv_header_stdc = yes; then
7888 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7889 if test "$cross_compiling" = yes; then
7892 cat >conftest.$ac_ext <<_ACEOF
7893 #line $LINENO "configure"
7894 #include "confdefs.h"
7896 #if ((' ' & 0x0FF) == 0x020)
7897 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7898 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7900 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
7901 || ('j' <= (c) && (c) <= 'r') \
7902 || ('s' <= (c) && (c) <= 'z'))
7903 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7906 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7911 for (i = 0; i < 256; i++)
7912 if (XOR (islower (i), ISLOWER (i))
7913 || toupper (i) != TOUPPER (i))
7918 rm -f conftest$ac_exeext
7919 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7920 (eval $ac_link) 2>&5
7922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7923 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7928 (exit $ac_status); }; }; then
7931 echo "$as_me: program exited with status $ac_status" >&5
7932 echo "$as_me: failed program was:" >&5
7933 cat conftest.$ac_ext >&5
7935 ac_cv_header_stdc=no
7937 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7941 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7942 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7943 if test $ac_cv_header_stdc = yes; then
7945 cat >>confdefs.h <<\_ACEOF
7946 #define STDC_HEADERS 1
7952 for ac_header in getopt.h
7954 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7955 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7956 echo "$as_me:$LINENO: checking for $ac_header" >&5
7957 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7958 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7959 echo $ECHO_N "(cached) $ECHO_C" >&6
7961 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7962 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7964 # Is the header compilable?
7965 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7966 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7967 cat >conftest.$ac_ext <<_ACEOF
7968 #line $LINENO "configure"
7969 #include "confdefs.h"
7970 $ac_includes_default
7971 #include <$ac_header>
7973 rm -f conftest.$ac_objext
7974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7975 (eval $ac_compile) 2>&5
7977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7978 (exit $ac_status); } &&
7979 { ac_try='test -s conftest.$ac_objext'
7980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7984 (exit $ac_status); }; }; then
7985 ac_header_compiler=yes
7987 echo "$as_me: failed program was:" >&5
7988 cat conftest.$ac_ext >&5
7989 ac_header_compiler=no
7991 rm -f conftest.$ac_objext conftest.$ac_ext
7992 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7993 echo "${ECHO_T}$ac_header_compiler" >&6
7995 # Is the header present?
7996 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7997 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7998 cat >conftest.$ac_ext <<_ACEOF
7999 #line $LINENO "configure"
8000 #include "confdefs.h"
8001 #include <$ac_header>
8003 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8004 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8006 grep -v '^ *+' conftest.er1 >conftest.err
8008 cat conftest.err >&5
8009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8010 (exit $ac_status); } >/dev/null; then
8011 if test -s conftest.err; then
8012 ac_cpp_err=$ac_cxx_preproc_warn_flag
8019 if test -z "$ac_cpp_err"; then
8020 ac_header_preproc=yes
8022 echo "$as_me: failed program was:" >&5
8023 cat conftest.$ac_ext >&5
8024 ac_header_preproc=no
8026 rm -f conftest.err conftest.$ac_ext
8027 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8028 echo "${ECHO_T}$ac_header_preproc" >&6
8030 # So? What about this header?
8031 case $ac_header_compiler:$ac_header_preproc in
8033 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8034 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8035 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8036 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8038 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8039 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8040 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8041 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8042 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8043 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8045 echo "$as_me:$LINENO: checking for $ac_header" >&5
8046 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8047 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8048 echo $ECHO_N "(cached) $ECHO_C" >&6
8050 eval "$as_ac_Header=$ac_header_preproc"
8052 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8053 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8056 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8057 cat >>confdefs.h <<_ACEOF
8058 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8066 for ac_header in unistd.h
8068 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8069 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8070 echo "$as_me:$LINENO: checking for $ac_header" >&5
8071 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8072 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8073 echo $ECHO_N "(cached) $ECHO_C" >&6
8075 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8076 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8078 # Is the header compilable?
8079 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8080 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8081 cat >conftest.$ac_ext <<_ACEOF
8082 #line $LINENO "configure"
8083 #include "confdefs.h"
8084 $ac_includes_default
8085 #include <$ac_header>
8087 rm -f conftest.$ac_objext
8088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8089 (eval $ac_compile) 2>&5
8091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8092 (exit $ac_status); } &&
8093 { ac_try='test -s conftest.$ac_objext'
8094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8098 (exit $ac_status); }; }; then
8099 ac_header_compiler=yes
8101 echo "$as_me: failed program was:" >&5
8102 cat conftest.$ac_ext >&5
8103 ac_header_compiler=no
8105 rm -f conftest.$ac_objext conftest.$ac_ext
8106 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8107 echo "${ECHO_T}$ac_header_compiler" >&6
8109 # Is the header present?
8110 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8111 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8112 cat >conftest.$ac_ext <<_ACEOF
8113 #line $LINENO "configure"
8114 #include "confdefs.h"
8115 #include <$ac_header>
8117 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8118 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8120 grep -v '^ *+' conftest.er1 >conftest.err
8122 cat conftest.err >&5
8123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8124 (exit $ac_status); } >/dev/null; then
8125 if test -s conftest.err; then
8126 ac_cpp_err=$ac_cxx_preproc_warn_flag
8133 if test -z "$ac_cpp_err"; then
8134 ac_header_preproc=yes
8136 echo "$as_me: failed program was:" >&5
8137 cat conftest.$ac_ext >&5
8138 ac_header_preproc=no
8140 rm -f conftest.err conftest.$ac_ext
8141 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8142 echo "${ECHO_T}$ac_header_preproc" >&6
8144 # So? What about this header?
8145 case $ac_header_compiler:$ac_header_preproc in
8147 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8148 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8149 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8150 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8152 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8153 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8154 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8155 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8156 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8157 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8159 echo "$as_me:$LINENO: checking for $ac_header" >&5
8160 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8161 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8162 echo $ECHO_N "(cached) $ECHO_C" >&6
8164 eval "$as_ac_Header=$ac_header_preproc"
8166 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8167 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8170 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8171 cat >>confdefs.h <<_ACEOF
8172 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8179 if test "${ac_cv_header_sys_socket_h+set}" = set; then
8180 echo "$as_me:$LINENO: checking for sys/socket.h" >&5
8181 echo $ECHO_N "checking for sys/socket.h... $ECHO_C" >&6
8182 if test "${ac_cv_header_sys_socket_h+set}" = set; then
8183 echo $ECHO_N "(cached) $ECHO_C" >&6
8185 echo "$as_me:$LINENO: result: $ac_cv_header_sys_socket_h" >&5
8186 echo "${ECHO_T}$ac_cv_header_sys_socket_h" >&6
8188 # Is the header compilable?
8189 echo "$as_me:$LINENO: checking sys/socket.h usability" >&5
8190 echo $ECHO_N "checking sys/socket.h usability... $ECHO_C" >&6
8191 cat >conftest.$ac_ext <<_ACEOF
8192 #line $LINENO "configure"
8193 #include "confdefs.h"
8194 $ac_includes_default
8195 #include <sys/socket.h>
8197 rm -f conftest.$ac_objext
8198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8199 (eval $ac_compile) 2>&5
8201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8202 (exit $ac_status); } &&
8203 { ac_try='test -s conftest.$ac_objext'
8204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8208 (exit $ac_status); }; }; then
8209 ac_header_compiler=yes
8211 echo "$as_me: failed program was:" >&5
8212 cat conftest.$ac_ext >&5
8213 ac_header_compiler=no
8215 rm -f conftest.$ac_objext conftest.$ac_ext
8216 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8217 echo "${ECHO_T}$ac_header_compiler" >&6
8219 # Is the header present?
8220 echo "$as_me:$LINENO: checking sys/socket.h presence" >&5
8221 echo $ECHO_N "checking sys/socket.h presence... $ECHO_C" >&6
8222 cat >conftest.$ac_ext <<_ACEOF
8223 #line $LINENO "configure"
8224 #include "confdefs.h"
8225 #include <sys/socket.h>
8227 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8228 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8230 grep -v '^ *+' conftest.er1 >conftest.err
8232 cat conftest.err >&5
8233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8234 (exit $ac_status); } >/dev/null; then
8235 if test -s conftest.err; then
8236 ac_cpp_err=$ac_cxx_preproc_warn_flag
8243 if test -z "$ac_cpp_err"; then
8244 ac_header_preproc=yes
8246 echo "$as_me: failed program was:" >&5
8247 cat conftest.$ac_ext >&5
8248 ac_header_preproc=no
8250 rm -f conftest.err conftest.$ac_ext
8251 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8252 echo "${ECHO_T}$ac_header_preproc" >&6
8254 # So? What about this header?
8255 case $ac_header_compiler:$ac_header_preproc in
8257 { echo "$as_me:$LINENO: WARNING: sys/socket.h: accepted by the compiler, rejected by the preprocessor!" >&5
8258 echo "$as_me: WARNING: sys/socket.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8259 { echo "$as_me:$LINENO: WARNING: sys/socket.h: proceeding with the preprocessor's result" >&5
8260 echo "$as_me: WARNING: sys/socket.h: proceeding with the preprocessor's result" >&2;};;
8262 { echo "$as_me:$LINENO: WARNING: sys/socket.h: present but cannot be compiled" >&5
8263 echo "$as_me: WARNING: sys/socket.h: present but cannot be compiled" >&2;}
8264 { echo "$as_me:$LINENO: WARNING: sys/socket.h: check for missing prerequisite headers?" >&5
8265 echo "$as_me: WARNING: sys/socket.h: check for missing prerequisite headers?" >&2;}
8266 { echo "$as_me:$LINENO: WARNING: sys/socket.h: proceeding with the preprocessor's result" >&5
8267 echo "$as_me: WARNING: sys/socket.h: proceeding with the preprocessor's result" >&2;};;
8269 echo "$as_me:$LINENO: checking for sys/socket.h" >&5
8270 echo $ECHO_N "checking for sys/socket.h... $ECHO_C" >&6
8271 if test "${ac_cv_header_sys_socket_h+set}" = set; then
8272 echo $ECHO_N "(cached) $ECHO_C" >&6
8274 ac_cv_header_sys_socket_h=$ac_header_preproc
8276 echo "$as_me:$LINENO: result: $ac_cv_header_sys_socket_h" >&5
8277 echo "${ECHO_T}$ac_cv_header_sys_socket_h" >&6
8280 if test $ac_cv_header_sys_socket_h = yes; then
8281 cat >>confdefs.h <<\_ACEOF
8282 #define SOCKET_AVAIL 1
8285 cat >>confdefs.h <<\_ACEOF
8286 #define HAVE_SYS_SOCKET_H 1
8289 cat >conftest.$ac_ext <<_ACEOF
8290 #line $LINENO "configure"
8291 #include "confdefs.h"
8292 #include <sys/socket.h>
8295 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8296 $EGREP "socklen_t" >/dev/null 2>&1; then
8297 cat >>confdefs.h <<_ACEOF
8298 #define SOCKLEN_T socklen_t
8302 cat >>confdefs.h <<_ACEOF
8303 #define SOCKLEN_T uint
8313 if test "${ac_cv_header_dlfcn_h+set}" = set; then
8314 echo "$as_me:$LINENO: checking for dlfcn.h" >&5
8315 echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6
8316 if test "${ac_cv_header_dlfcn_h+set}" = set; then
8317 echo $ECHO_N "(cached) $ECHO_C" >&6
8319 echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
8320 echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6
8322 # Is the header compilable?
8323 echo "$as_me:$LINENO: checking dlfcn.h usability" >&5
8324 echo $ECHO_N "checking dlfcn.h usability... $ECHO_C" >&6
8325 cat >conftest.$ac_ext <<_ACEOF
8326 #line $LINENO "configure"
8327 #include "confdefs.h"
8328 $ac_includes_default
8331 rm -f conftest.$ac_objext
8332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8333 (eval $ac_compile) 2>&5
8335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8336 (exit $ac_status); } &&
8337 { ac_try='test -s conftest.$ac_objext'
8338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8342 (exit $ac_status); }; }; then
8343 ac_header_compiler=yes
8345 echo "$as_me: failed program was:" >&5
8346 cat conftest.$ac_ext >&5
8347 ac_header_compiler=no
8349 rm -f conftest.$ac_objext conftest.$ac_ext
8350 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8351 echo "${ECHO_T}$ac_header_compiler" >&6
8353 # Is the header present?
8354 echo "$as_me:$LINENO: checking dlfcn.h presence" >&5
8355 echo $ECHO_N "checking dlfcn.h presence... $ECHO_C" >&6
8356 cat >conftest.$ac_ext <<_ACEOF
8357 #line $LINENO "configure"
8358 #include "confdefs.h"
8361 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8362 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8364 grep -v '^ *+' conftest.er1 >conftest.err
8366 cat conftest.err >&5
8367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8368 (exit $ac_status); } >/dev/null; then
8369 if test -s conftest.err; then
8370 ac_cpp_err=$ac_cxx_preproc_warn_flag
8377 if test -z "$ac_cpp_err"; then
8378 ac_header_preproc=yes
8380 echo "$as_me: failed program was:" >&5
8381 cat conftest.$ac_ext >&5
8382 ac_header_preproc=no
8384 rm -f conftest.err conftest.$ac_ext
8385 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8386 echo "${ECHO_T}$ac_header_preproc" >&6
8388 # So? What about this header?
8389 case $ac_header_compiler:$ac_header_preproc in
8391 { echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5
8392 echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8393 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5
8394 echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;};;
8396 { echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5
8397 echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;}
8398 { echo "$as_me:$LINENO: WARNING: dlfcn.h: check for missing prerequisite headers?" >&5
8399 echo "$as_me: WARNING: dlfcn.h: check for missing prerequisite headers?" >&2;}
8400 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5
8401 echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;};;
8403 echo "$as_me:$LINENO: checking for dlfcn.h" >&5
8404 echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6
8405 if test "${ac_cv_header_dlfcn_h+set}" = set; then
8406 echo $ECHO_N "(cached) $ECHO_C" >&6
8408 ac_cv_header_dlfcn_h=$ac_header_preproc
8410 echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
8411 echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6
8422 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8423 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8424 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8425 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
8426 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8427 echo $ECHO_N "(cached) $ECHO_C" >&6
8429 cat >conftest.$ac_ext <<_ACEOF
8430 #line $LINENO "configure"
8431 #include "confdefs.h"
8432 #include <sys/types.h>
8444 rm -f conftest.$ac_objext
8445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8446 (eval $ac_compile) 2>&5
8448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8449 (exit $ac_status); } &&
8450 { ac_try='test -s conftest.$ac_objext'
8451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8455 (exit $ac_status); }; }; then
8456 eval "$as_ac_Header=yes"
8458 echo "$as_me: failed program was:" >&5
8459 cat conftest.$ac_ext >&5
8460 eval "$as_ac_Header=no"
8462 rm -f conftest.$ac_objext conftest.$ac_ext
8464 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8465 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8466 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8467 cat >>confdefs.h <<_ACEOF
8468 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8471 ac_header_dirent=$ac_hdr; break
8475 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8476 if test $ac_header_dirent = dirent.h; then
8477 echo "$as_me:$LINENO: checking for library containing opendir" >&5
8478 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
8479 if test "${ac_cv_search_opendir+set}" = set; then
8480 echo $ECHO_N "(cached) $ECHO_C" >&6
8482 ac_func_search_save_LIBS=$LIBS
8483 ac_cv_search_opendir=no
8484 cat >conftest.$ac_ext <<_ACEOF
8485 #line $LINENO "configure"
8486 #include "confdefs.h"
8488 /* Override any gcc2 internal prototype to avoid an error. */
8492 /* We use char because int might match the return type of a gcc2
8493 builtin and then its argument prototype would still apply. */
8503 rm -f conftest.$ac_objext conftest$ac_exeext
8504 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8505 (eval $ac_link) 2>&5
8507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8508 (exit $ac_status); } &&
8509 { ac_try='test -s conftest$ac_exeext'
8510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8514 (exit $ac_status); }; }; then
8515 ac_cv_search_opendir="none required"
8517 echo "$as_me: failed program was:" >&5
8518 cat conftest.$ac_ext >&5
8520 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8521 if test "$ac_cv_search_opendir" = no; then
8522 for ac_lib in dir; do
8523 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8524 cat >conftest.$ac_ext <<_ACEOF
8525 #line $LINENO "configure"
8526 #include "confdefs.h"
8528 /* Override any gcc2 internal prototype to avoid an error. */
8532 /* We use char because int might match the return type of a gcc2
8533 builtin and then its argument prototype would still apply. */
8543 rm -f conftest.$ac_objext conftest$ac_exeext
8544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8545 (eval $ac_link) 2>&5
8547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8548 (exit $ac_status); } &&
8549 { ac_try='test -s conftest$ac_exeext'
8550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8554 (exit $ac_status); }; }; then
8555 ac_cv_search_opendir="-l$ac_lib"
8558 echo "$as_me: failed program was:" >&5
8559 cat conftest.$ac_ext >&5
8561 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8564 LIBS=$ac_func_search_save_LIBS
8566 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8567 echo "${ECHO_T}$ac_cv_search_opendir" >&6
8568 if test "$ac_cv_search_opendir" != no; then
8569 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
8574 echo "$as_me:$LINENO: checking for library containing opendir" >&5
8575 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
8576 if test "${ac_cv_search_opendir+set}" = set; then
8577 echo $ECHO_N "(cached) $ECHO_C" >&6
8579 ac_func_search_save_LIBS=$LIBS
8580 ac_cv_search_opendir=no
8581 cat >conftest.$ac_ext <<_ACEOF
8582 #line $LINENO "configure"
8583 #include "confdefs.h"
8585 /* Override any gcc2 internal prototype to avoid an error. */
8589 /* We use char because int might match the return type of a gcc2
8590 builtin and then its argument prototype would still apply. */
8600 rm -f conftest.$ac_objext conftest$ac_exeext
8601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8602 (eval $ac_link) 2>&5
8604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8605 (exit $ac_status); } &&
8606 { ac_try='test -s conftest$ac_exeext'
8607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8611 (exit $ac_status); }; }; then
8612 ac_cv_search_opendir="none required"
8614 echo "$as_me: failed program was:" >&5
8615 cat conftest.$ac_ext >&5
8617 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8618 if test "$ac_cv_search_opendir" = no; then
8620 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8621 cat >conftest.$ac_ext <<_ACEOF
8622 #line $LINENO "configure"
8623 #include "confdefs.h"
8625 /* Override any gcc2 internal prototype to avoid an error. */
8629 /* We use char because int might match the return type of a gcc2
8630 builtin and then its argument prototype would still apply. */
8640 rm -f conftest.$ac_objext conftest$ac_exeext
8641 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8642 (eval $ac_link) 2>&5
8644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8645 (exit $ac_status); } &&
8646 { ac_try='test -s conftest$ac_exeext'
8647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8651 (exit $ac_status); }; }; then
8652 ac_cv_search_opendir="-l$ac_lib"
8655 echo "$as_me: failed program was:" >&5
8656 cat conftest.$ac_ext >&5
8658 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8661 LIBS=$ac_func_search_save_LIBS
8663 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8664 echo "${ECHO_T}$ac_cv_search_opendir" >&6
8665 if test "$ac_cv_search_opendir" != no; then
8666 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
8673 # This must be after CXXCPP
8675 echo "$as_me:$LINENO: checking which header file defines FD_ macros" >&5
8676 echo $ECHO_N "checking which header file defines FD_ macros... $ECHO_C" >&6
8677 if test "${ucsim_cv_fd+set}" = set; then
8678 echo $ECHO_N "(cached) $ECHO_C" >&6
8680 ucsim_cv_fd="unknown"
8681 cat >conftest.$ac_ext <<_ACEOF
8682 #line $LINENO "configure"
8683 #include "confdefs.h"
8685 #include <sys/time.h>
8690 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8691 $EGREP "yes" >/dev/null 2>&1; then
8692 ucsim_cv_fd="<sys/time.h>"
8696 cat >conftest.$ac_ext <<_ACEOF
8697 #line $LINENO "configure"
8698 #include "confdefs.h"
8700 #include <sys/types.h>
8705 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8706 $EGREP "yes" >/dev/null 2>&1; then
8707 ucsim_cv_fd="<sys/types.h>"
8711 cat >conftest.$ac_ext <<_ACEOF
8712 #line $LINENO "configure"
8713 #include "confdefs.h"
8715 #include <sys/select.h>
8720 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8721 $EGREP "yes" >/dev/null 2>&1; then
8722 ucsim_cv_fd="<sys/types.h>"
8727 echo "$as_me:$LINENO: result: $ucsim_cv_fd" >&5
8728 echo "${ECHO_T}$ucsim_cv_fd" >&6
8730 cat >>confdefs.h <<\_ACEOF
8731 #define FD_HEADER_OK 0
8734 if echo $ucsim_cv_fd|grep time >/dev/null 2>&1; then
8735 cat >>confdefs.h <<\_ACEOF
8736 #define FD_NEED_TIME_H 1
8739 cat >>confdefs.h <<\_ACEOF
8740 #define FD_HEADER_OK 1
8744 cat >>confdefs.h <<\_ACEOF
8745 #define FD_NEED_TIME_H 0
8749 if echo $ucsim_cv_fd|grep types >/dev/null 2>&1; then
8750 cat >>confdefs.h <<\_ACEOF
8751 #define FD_NEED_TYPES_H 1
8754 cat >>confdefs.h <<\_ACEOF
8755 #define FD_HEADER_OK 1
8759 cat >>confdefs.h <<\_ACEOF
8760 #define FD_NEED_TYPES_H 0
8764 if echo $ucsim_cv_fd|grep select >/dev/null 2>&1; then
8765 cat >>confdefs.h <<\_ACEOF
8766 #define FD_NEED_SELECT_H 1
8769 cat >>confdefs.h <<\_ACEOF
8770 #define FD_HEADER_OK 1
8774 cat >>confdefs.h <<\_ACEOF
8775 #define FD_NEED_SELECT_H 0
8780 cat >>confdefs.h <<_ACEOF
8781 #define HEADER_FD ${ucsim_cv_fd}
8786 # Checking for functions/libs
8787 # ===========================================================================
8789 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
8790 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
8791 if test "${ac_cv_lib_socket_socket+set}" = set; then
8792 echo $ECHO_N "(cached) $ECHO_C" >&6
8794 ac_check_lib_save_LIBS=$LIBS
8795 LIBS="-lsocket $LIBS"
8796 cat >conftest.$ac_ext <<_ACEOF
8797 #line $LINENO "configure"
8798 #include "confdefs.h"
8800 /* Override any gcc2 internal prototype to avoid an error. */
8804 /* We use char because int might match the return type of a gcc2
8805 builtin and then its argument prototype would still apply. */
8815 rm -f conftest.$ac_objext conftest$ac_exeext
8816 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8817 (eval $ac_link) 2>&5
8819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8820 (exit $ac_status); } &&
8821 { ac_try='test -s conftest$ac_exeext'
8822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8826 (exit $ac_status); }; }; then
8827 ac_cv_lib_socket_socket=yes
8829 echo "$as_me: failed program was:" >&5
8830 cat conftest.$ac_ext >&5
8831 ac_cv_lib_socket_socket=no
8833 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8834 LIBS=$ac_check_lib_save_LIBS
8836 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
8837 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
8838 if test $ac_cv_lib_socket_socket = yes; then
8839 cat >>confdefs.h <<_ACEOF
8840 #define HAVE_LIBSOCKET 1
8843 LIBS="-lsocket $LIBS"
8848 echo "$as_me:$LINENO: checking for xdr_short in -lnsl" >&5
8849 echo $ECHO_N "checking for xdr_short in -lnsl... $ECHO_C" >&6
8850 if test "${ac_cv_lib_nsl_xdr_short+set}" = set; then
8851 echo $ECHO_N "(cached) $ECHO_C" >&6
8853 ac_check_lib_save_LIBS=$LIBS
8855 cat >conftest.$ac_ext <<_ACEOF
8856 #line $LINENO "configure"
8857 #include "confdefs.h"
8859 /* Override any gcc2 internal prototype to avoid an error. */
8863 /* We use char because int might match the return type of a gcc2
8864 builtin and then its argument prototype would still apply. */
8874 rm -f conftest.$ac_objext conftest$ac_exeext
8875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8876 (eval $ac_link) 2>&5
8878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8879 (exit $ac_status); } &&
8880 { ac_try='test -s conftest$ac_exeext'
8881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8885 (exit $ac_status); }; }; then
8886 ac_cv_lib_nsl_xdr_short=yes
8888 echo "$as_me: failed program was:" >&5
8889 cat conftest.$ac_ext >&5
8890 ac_cv_lib_nsl_xdr_short=no
8892 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8893 LIBS=$ac_check_lib_save_LIBS
8895 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_xdr_short" >&5
8896 echo "${ECHO_T}$ac_cv_lib_nsl_xdr_short" >&6
8897 if test $ac_cv_lib_nsl_xdr_short = yes; then
8898 cat >>confdefs.h <<_ACEOF
8899 #define HAVE_LIBNSL 1
8906 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8907 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8908 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8909 echo $ECHO_N "(cached) $ECHO_C" >&6
8911 ac_check_lib_save_LIBS=$LIBS
8913 cat >conftest.$ac_ext <<_ACEOF
8914 #line $LINENO "configure"
8915 #include "confdefs.h"
8917 /* Override any gcc2 internal prototype to avoid an error. */
8921 /* We use char because int might match the return type of a gcc2
8922 builtin and then its argument prototype would still apply. */
8932 rm -f conftest.$ac_objext conftest$ac_exeext
8933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8934 (eval $ac_link) 2>&5
8936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8937 (exit $ac_status); } &&
8938 { ac_try='test -s conftest$ac_exeext'
8939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8943 (exit $ac_status); }; }; then
8944 ac_cv_lib_dl_dlopen=yes
8946 echo "$as_me: failed program was:" >&5
8947 cat conftest.$ac_ext >&5
8948 ac_cv_lib_dl_dlopen=no
8950 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8951 LIBS=$ac_check_lib_save_LIBS
8953 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8954 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8955 if test $ac_cv_lib_dl_dlopen = yes; then
8965 echo "$as_me:$LINENO: checking for panel_above in -lpanel" >&5
8966 echo $ECHO_N "checking for panel_above in -lpanel... $ECHO_C" >&6
8967 if test "${ac_cv_lib_panel_panel_above+set}" = set; then
8968 echo $ECHO_N "(cached) $ECHO_C" >&6
8970 ac_check_lib_save_LIBS=$LIBS
8971 LIBS="-lpanel -lcurses $LIBS"
8972 cat >conftest.$ac_ext <<_ACEOF
8973 #line $LINENO "configure"
8974 #include "confdefs.h"
8976 /* Override any gcc2 internal prototype to avoid an error. */
8980 /* We use char because int might match the return type of a gcc2
8981 builtin and then its argument prototype would still apply. */
8982 char panel_above ();
8991 rm -f conftest.$ac_objext conftest$ac_exeext
8992 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8993 (eval $ac_link) 2>&5
8995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8996 (exit $ac_status); } &&
8997 { ac_try='test -s conftest$ac_exeext'
8998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9002 (exit $ac_status); }; }; then
9003 ac_cv_lib_panel_panel_above=yes
9005 echo "$as_me: failed program was:" >&5
9006 cat conftest.$ac_ext >&5
9007 ac_cv_lib_panel_panel_above=no
9009 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9010 LIBS=$ac_check_lib_save_LIBS
9012 echo "$as_me:$LINENO: result: $ac_cv_lib_panel_panel_above" >&5
9013 echo "${ECHO_T}$ac_cv_lib_panel_panel_above" >&6
9014 if test $ac_cv_lib_panel_panel_above = yes; then
9017 CURSES_LIBS="-lpanel -lcurses"
9021 echo "$as_me:$LINENO: checking for nl in -lcurses" >&5
9022 echo $ECHO_N "checking for nl in -lcurses... $ECHO_C" >&6
9023 if test "${ac_cv_lib_curses_nl+set}" = set; then
9024 echo $ECHO_N "(cached) $ECHO_C" >&6
9026 ac_check_lib_save_LIBS=$LIBS
9027 LIBS="-lcurses $LIBS"
9028 cat >conftest.$ac_ext <<_ACEOF
9029 #line $LINENO "configure"
9030 #include "confdefs.h"
9032 /* Override any gcc2 internal prototype to avoid an error. */
9036 /* We use char because int might match the return type of a gcc2
9037 builtin and then its argument prototype would still apply. */
9047 rm -f conftest.$ac_objext conftest$ac_exeext
9048 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9049 (eval $ac_link) 2>&5
9051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9052 (exit $ac_status); } &&
9053 { ac_try='test -s conftest$ac_exeext'
9054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9058 (exit $ac_status); }; }; then
9059 ac_cv_lib_curses_nl=yes
9061 echo "$as_me: failed program was:" >&5
9062 cat conftest.$ac_ext >&5
9063 ac_cv_lib_curses_nl=no
9065 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9066 LIBS=$ac_check_lib_save_LIBS
9068 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_nl" >&5
9069 echo "${ECHO_T}$ac_cv_lib_curses_nl" >&6
9070 if test $ac_cv_lib_curses_nl = yes; then
9072 CURSES_LIBS="-lcurses"
9086 for ac_func in vprintf
9088 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9089 echo "$as_me:$LINENO: checking for $ac_func" >&5
9090 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9091 if eval "test \"\${$as_ac_var+set}\" = set"; then
9092 echo $ECHO_N "(cached) $ECHO_C" >&6
9094 cat >conftest.$ac_ext <<_ACEOF
9095 #line $LINENO "configure"
9096 #include "confdefs.h"
9097 /* System header to define __stub macros and hopefully few prototypes,
9098 which can conflict with char $ac_func (); below. */
9100 /* Override any gcc2 internal prototype to avoid an error. */
9104 /* We use char because int might match the return type of a gcc2
9105 builtin and then its argument prototype would still apply. */
9112 /* The GNU C library defines this for functions which it implements
9113 to always fail with ENOSYS. Some functions are actually named
9114 something starting with __ and the normal name is an alias. */
9115 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9125 rm -f conftest.$ac_objext conftest$ac_exeext
9126 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9127 (eval $ac_link) 2>&5
9129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9130 (exit $ac_status); } &&
9131 { ac_try='test -s conftest$ac_exeext'
9132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9136 (exit $ac_status); }; }; then
9137 eval "$as_ac_var=yes"
9139 echo "$as_me: failed program was:" >&5
9140 cat conftest.$ac_ext >&5
9141 eval "$as_ac_var=no"
9143 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9145 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9146 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9147 if test `eval echo '${'$as_ac_var'}'` = yes; then
9148 cat >>confdefs.h <<_ACEOF
9149 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9152 echo "$as_me:$LINENO: checking for _doprnt" >&5
9153 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
9154 if test "${ac_cv_func__doprnt+set}" = set; then
9155 echo $ECHO_N "(cached) $ECHO_C" >&6
9157 cat >conftest.$ac_ext <<_ACEOF
9158 #line $LINENO "configure"
9159 #include "confdefs.h"
9160 /* System header to define __stub macros and hopefully few prototypes,
9161 which can conflict with char _doprnt (); below. */
9163 /* Override any gcc2 internal prototype to avoid an error. */
9167 /* We use char because int might match the return type of a gcc2
9168 builtin and then its argument prototype would still apply. */
9175 /* The GNU C library defines this for functions which it implements
9176 to always fail with ENOSYS. Some functions are actually named
9177 something starting with __ and the normal name is an alias. */
9178 #if defined (__stub__doprnt) || defined (__stub____doprnt)
9188 rm -f conftest.$ac_objext conftest$ac_exeext
9189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9190 (eval $ac_link) 2>&5
9192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9193 (exit $ac_status); } &&
9194 { ac_try='test -s conftest$ac_exeext'
9195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9199 (exit $ac_status); }; }; then
9200 ac_cv_func__doprnt=yes
9202 echo "$as_me: failed program was:" >&5
9203 cat conftest.$ac_ext >&5
9204 ac_cv_func__doprnt=no
9206 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9208 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
9209 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
9210 if test $ac_cv_func__doprnt = yes; then
9212 cat >>confdefs.h <<\_ACEOF
9213 #define HAVE_DOPRNT 1
9224 for ac_func in vsnprintf vasprintf
9226 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9227 echo "$as_me:$LINENO: checking for $ac_func" >&5
9228 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9229 if eval "test \"\${$as_ac_var+set}\" = set"; then
9230 echo $ECHO_N "(cached) $ECHO_C" >&6
9232 cat >conftest.$ac_ext <<_ACEOF
9233 #line $LINENO "configure"
9234 #include "confdefs.h"
9235 /* System header to define __stub macros and hopefully few prototypes,
9236 which can conflict with char $ac_func (); below. */
9238 /* Override any gcc2 internal prototype to avoid an error. */
9242 /* We use char because int might match the return type of a gcc2
9243 builtin and then its argument prototype would still apply. */
9250 /* The GNU C library defines this for functions which it implements
9251 to always fail with ENOSYS. Some functions are actually named
9252 something starting with __ and the normal name is an alias. */
9253 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9263 rm -f conftest.$ac_objext conftest$ac_exeext
9264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9265 (eval $ac_link) 2>&5
9267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9268 (exit $ac_status); } &&
9269 { ac_try='test -s conftest$ac_exeext'
9270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9274 (exit $ac_status); }; }; then
9275 eval "$as_ac_var=yes"
9277 echo "$as_me: failed program was:" >&5
9278 cat conftest.$ac_ext >&5
9279 eval "$as_ac_var=no"
9281 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9283 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9284 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9285 if test `eval echo '${'$as_ac_var'}'` = yes; then
9286 cat >>confdefs.h <<_ACEOF
9287 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9301 for ac_func in strlen strcpy strcat strstr strcmp strerror strtok strdup
9303 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9304 echo "$as_me:$LINENO: checking for $ac_func" >&5
9305 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9306 if eval "test \"\${$as_ac_var+set}\" = set"; then
9307 echo $ECHO_N "(cached) $ECHO_C" >&6
9309 cat >conftest.$ac_ext <<_ACEOF
9310 #line $LINENO "configure"
9311 #include "confdefs.h"
9312 /* System header to define __stub macros and hopefully few prototypes,
9313 which can conflict with char $ac_func (); below. */
9315 /* Override any gcc2 internal prototype to avoid an error. */
9319 /* We use char because int might match the return type of a gcc2
9320 builtin and then its argument prototype would still apply. */
9327 /* The GNU C library defines this for functions which it implements
9328 to always fail with ENOSYS. Some functions are actually named
9329 something starting with __ and the normal name is an alias. */
9330 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9340 rm -f conftest.$ac_objext conftest$ac_exeext
9341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9342 (eval $ac_link) 2>&5
9344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9345 (exit $ac_status); } &&
9346 { ac_try='test -s conftest$ac_exeext'
9347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9351 (exit $ac_status); }; }; then
9352 eval "$as_ac_var=yes"
9354 echo "$as_me: failed program was:" >&5
9355 cat conftest.$ac_ext >&5
9356 eval "$as_ac_var=no"
9358 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9360 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9361 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9362 if test `eval echo '${'$as_ac_var'}'` = yes; then
9363 cat >>confdefs.h <<_ACEOF
9364 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9372 for ac_func in strchr memcpy
9374 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9375 echo "$as_me:$LINENO: checking for $ac_func" >&5
9376 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9377 if eval "test \"\${$as_ac_var+set}\" = set"; then
9378 echo $ECHO_N "(cached) $ECHO_C" >&6
9380 cat >conftest.$ac_ext <<_ACEOF
9381 #line $LINENO "configure"
9382 #include "confdefs.h"
9383 /* System header to define __stub macros and hopefully few prototypes,
9384 which can conflict with char $ac_func (); below. */
9386 /* Override any gcc2 internal prototype to avoid an error. */
9390 /* We use char because int might match the return type of a gcc2
9391 builtin and then its argument prototype would still apply. */
9398 /* The GNU C library defines this for functions which it implements
9399 to always fail with ENOSYS. Some functions are actually named
9400 something starting with __ and the normal name is an alias. */
9401 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9411 rm -f conftest.$ac_objext conftest$ac_exeext
9412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9413 (eval $ac_link) 2>&5
9415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9416 (exit $ac_status); } &&
9417 { ac_try='test -s conftest$ac_exeext'
9418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9422 (exit $ac_status); }; }; then
9423 eval "$as_ac_var=yes"
9425 echo "$as_me: failed program was:" >&5
9426 cat conftest.$ac_ext >&5
9427 eval "$as_ac_var=no"
9429 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9431 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9432 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9433 if test `eval echo '${'$as_ac_var'}'` = yes; then
9434 cat >>confdefs.h <<_ACEOF
9435 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9442 for ac_func in fgets
9444 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9445 echo "$as_me:$LINENO: checking for $ac_func" >&5
9446 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9447 if eval "test \"\${$as_ac_var+set}\" = set"; then
9448 echo $ECHO_N "(cached) $ECHO_C" >&6
9450 cat >conftest.$ac_ext <<_ACEOF
9451 #line $LINENO "configure"
9452 #include "confdefs.h"
9453 /* System header to define __stub macros and hopefully few prototypes,
9454 which can conflict with char $ac_func (); below. */
9456 /* Override any gcc2 internal prototype to avoid an error. */
9460 /* We use char because int might match the return type of a gcc2
9461 builtin and then its argument prototype would still apply. */
9468 /* The GNU C library defines this for functions which it implements
9469 to always fail with ENOSYS. Some functions are actually named
9470 something starting with __ and the normal name is an alias. */
9471 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9481 rm -f conftest.$ac_objext conftest$ac_exeext
9482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9483 (eval $ac_link) 2>&5
9485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9486 (exit $ac_status); } &&
9487 { ac_try='test -s conftest$ac_exeext'
9488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9492 (exit $ac_status); }; }; then
9493 eval "$as_ac_var=yes"
9495 echo "$as_me: failed program was:" >&5
9496 cat conftest.$ac_ext >&5
9497 eval "$as_ac_var=no"
9499 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9501 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9502 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9503 if test `eval echo '${'$as_ac_var'}'` = yes; then
9504 cat >>confdefs.h <<_ACEOF
9505 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9512 for ac_func in yylex
9514 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9515 echo "$as_me:$LINENO: checking for $ac_func" >&5
9516 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9517 if eval "test \"\${$as_ac_var+set}\" = set"; then
9518 echo $ECHO_N "(cached) $ECHO_C" >&6
9520 cat >conftest.$ac_ext <<_ACEOF
9521 #line $LINENO "configure"
9522 #include "confdefs.h"
9523 /* System header to define __stub macros and hopefully few prototypes,
9524 which can conflict with char $ac_func (); below. */
9526 /* Override any gcc2 internal prototype to avoid an error. */
9530 /* We use char because int might match the return type of a gcc2
9531 builtin and then its argument prototype would still apply. */
9538 /* The GNU C library defines this for functions which it implements
9539 to always fail with ENOSYS. Some functions are actually named
9540 something starting with __ and the normal name is an alias. */
9541 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9551 rm -f conftest.$ac_objext conftest$ac_exeext
9552 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9553 (eval $ac_link) 2>&5
9555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9556 (exit $ac_status); } &&
9557 { ac_try='test -s conftest$ac_exeext'
9558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9562 (exit $ac_status); }; }; then
9563 eval "$as_ac_var=yes"
9565 echo "$as_me: failed program was:" >&5
9566 cat conftest.$ac_ext >&5
9567 eval "$as_ac_var=no"
9569 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9571 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9572 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9573 if test `eval echo '${'$as_ac_var'}'` = yes; then
9574 cat >>confdefs.h <<_ACEOF
9575 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9582 echo "$as_me:$LINENO: checking whether scanf knows %a" >&5
9583 echo $ECHO_N "checking whether scanf knows %a... $ECHO_C" >&6
9584 if test "${ucsim_cv_scanf_a+set}" = set; then
9585 echo $ECHO_N "(cached) $ECHO_C" >&6
9587 echo "a b" >conftest.data
9588 if test "$cross_compiling" = yes; then
9589 ucsim_cv_scanf_a="unknown"
9591 cat >conftest.$ac_ext <<_ACEOF
9592 #line $LINENO "configure"
9593 #include "confdefs.h"
9601 if ((f= fopen("conftest.data", "r")) == NULL)
9603 i= fscanf(f, " %a[a-z] ", &a);
9612 rm -f conftest$ac_exeext
9613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9614 (eval $ac_link) 2>&5
9616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9617 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9622 (exit $ac_status); }; }; then
9623 ucsim_cv_scanf_a="yes"
9625 echo "$as_me: program exited with status $ac_status" >&5
9626 echo "$as_me: failed program was:" >&5
9627 cat conftest.$ac_ext >&5
9629 ucsim_cv_scanf_a="no"
9631 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9635 echo "$as_me:$LINENO: result: $ucsim_cv_scanf_a" >&5
9636 echo "${ECHO_T}$ucsim_cv_scanf_a" >&6
9637 if test "$ucsim_cv_scanf_a" = "yes"; then
9638 cat >>confdefs.h <<\_ACEOF
9644 echo "$as_me:$LINENO: checking whether getcwd is GNUish" >&5
9645 echo $ECHO_N "checking whether getcwd is GNUish... $ECHO_C" >&6
9646 if test "${ucsim_cv_getcwd+set}" = set; then
9647 echo $ECHO_N "(cached) $ECHO_C" >&6
9649 if test "$cross_compiling" = yes; then
9650 ucsim_cv_getcwd="unknown"
9652 cat >conftest.$ac_ext <<_ACEOF
9653 #line $LINENO "configure"
9654 #include "confdefs.h"
9659 if ((getcwd(NULL, 0)) == NULL)
9664 rm -f conftest$ac_exeext
9665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9666 (eval $ac_link) 2>&5
9668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9669 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9674 (exit $ac_status); }; }; then
9675 ucsim_cv_getcwd="yes"
9677 echo "$as_me: program exited with status $ac_status" >&5
9678 echo "$as_me: failed program was:" >&5
9679 cat conftest.$ac_ext >&5
9681 ucsim_cv_getcwd="no"
9683 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9687 echo "$as_me:$LINENO: result: $ucsim_cv_getcwd" >&5
9688 echo "${ECHO_T}$ucsim_cv_getcwd" >&6
9689 if test "$ucsim_cv_getcwd" = "yes"; then
9690 cat >>confdefs.h <<\_ACEOF
9691 #define GNU_GETCWD 1
9699 echo "$as_me:$LINENO: checking for type of length pointer parameter of accept" >&5
9700 echo $ECHO_N "checking for type of length pointer parameter of accept... $ECHO_C" >&6
9701 if test "${ucsim_cv_accept_length_type+set}" = set; then
9702 echo $ECHO_N "(cached) $ECHO_C" >&6
9704 ac_save_CPPFLAGS="$CPPFLAGS"
9705 ucsim_cv_accept_length_type=no
9706 for ac_val in int size_t socklen_t; do
9707 CPPFLAGS="$ac_save_CPPFLAGS -DACCEPT_SOCKLEN_T=$ac_val"
9708 cat >conftest.$ac_ext <<_ACEOF
9709 #line $LINENO "configure"
9710 #include "confdefs.h"
9711 #include <sys/types.h>
9712 #include <sys/socket.h>
9716 struct sockaddr a; $ac_val len; accept (0, &a, &len);
9721 rm -f conftest.$ac_objext
9722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9723 (eval $ac_compile) 2>&5
9725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9726 (exit $ac_status); } &&
9727 { ac_try='test -s conftest.$ac_objext'
9728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9732 (exit $ac_status); }; }; then
9733 ucsim_cv_accept_length_type=$ac_val; break
9735 echo "$as_me: failed program was:" >&5
9736 cat conftest.$ac_ext >&5
9738 rm -f conftest.$ac_objext conftest.$ac_ext
9740 CPPFLAGS="$ac_save_CPPFLAGS"
9742 echo "$as_me:$LINENO: result: $ucsim_cv_accept_length_type" >&5
9743 echo "${ECHO_T}$ucsim_cv_accept_length_type" >&6
9744 if test "$ucsim_cv_accept_length_type" != no; then
9746 cat >>confdefs.h <<_ACEOF
9747 #define ACCEPT_SOCKLEN_T $ucsim_cv_accept_length_type
9757 # DD_COPT macro checks if the compiler specified as the 1st parameter
9758 # supports option specified as the 2nd parameter
9759 # For example: DD_COPT(CXX, fPIC)
9764 # Checking characteristics of compilers and other programs
9765 # --------------------------------------------------------
9767 # Cross compiling overrides
9769 if test "$CC" = "i586-mingw32msvc-gcc"; then
9770 ac_cv_c_bigendian=no
9772 ac_cv_sizeof_short=2
9775 ac_cv_sizeof_long_long=4
9778 if test "$cross_compiling" = "no"
9780 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
9781 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
9782 if test "${ac_cv_c_bigendian+set}" = set; then
9783 echo $ECHO_N "(cached) $ECHO_C" >&6
9785 # See if sys/param.h defines the BYTE_ORDER macro.
9786 cat >conftest.$ac_ext <<_ACEOF
9787 #line $LINENO "configure"
9788 #include "confdefs.h"
9789 #include <sys/types.h>
9790 #include <sys/param.h>
9795 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
9803 rm -f conftest.$ac_objext
9804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9805 (eval $ac_compile) 2>&5
9807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9808 (exit $ac_status); } &&
9809 { ac_try='test -s conftest.$ac_objext'
9810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9814 (exit $ac_status); }; }; then
9815 # It does; now see whether it defined to BIG_ENDIAN or not.
9816 cat >conftest.$ac_ext <<_ACEOF
9817 #line $LINENO "configure"
9818 #include "confdefs.h"
9819 #include <sys/types.h>
9820 #include <sys/param.h>
9825 #if BYTE_ORDER != BIG_ENDIAN
9833 rm -f conftest.$ac_objext
9834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9835 (eval $ac_compile) 2>&5
9837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9838 (exit $ac_status); } &&
9839 { ac_try='test -s conftest.$ac_objext'
9840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9844 (exit $ac_status); }; }; then
9845 ac_cv_c_bigendian=yes
9847 echo "$as_me: failed program was:" >&5
9848 cat conftest.$ac_ext >&5
9849 ac_cv_c_bigendian=no
9851 rm -f conftest.$ac_objext conftest.$ac_ext
9853 echo "$as_me: failed program was:" >&5
9854 cat conftest.$ac_ext >&5
9855 # It does not; compile a test program.
9856 if test "$cross_compiling" = yes; then
9857 # try to guess the endianness by grepping values into an object file
9858 ac_cv_c_bigendian=unknown
9859 cat >conftest.$ac_ext <<_ACEOF
9860 #line $LINENO "configure"
9861 #include "confdefs.h"
9862 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9863 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9864 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
9865 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9866 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9867 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
9871 _ascii (); _ebcdic ();
9876 rm -f conftest.$ac_objext
9877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9878 (eval $ac_compile) 2>&5
9880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9881 (exit $ac_status); } &&
9882 { ac_try='test -s conftest.$ac_objext'
9883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9887 (exit $ac_status); }; }; then
9888 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
9889 ac_cv_c_bigendian=yes
9891 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9892 if test "$ac_cv_c_bigendian" = unknown; then
9893 ac_cv_c_bigendian=no
9895 # finding both strings is unlikely to happen, but who knows?
9896 ac_cv_c_bigendian=unknown
9900 echo "$as_me: failed program was:" >&5
9901 cat conftest.$ac_ext >&5
9903 rm -f conftest.$ac_objext conftest.$ac_ext
9905 cat >conftest.$ac_ext <<_ACEOF
9906 #line $LINENO "configure"
9907 #include "confdefs.h"
9911 /* Are we little or big endian? From Harbison&Steele. */
9915 char c[sizeof (long)];
9918 exit (u.c[sizeof (long) - 1] == 1);
9921 rm -f conftest$ac_exeext
9922 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9923 (eval $ac_link) 2>&5
9925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9926 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9931 (exit $ac_status); }; }; then
9932 ac_cv_c_bigendian=no
9934 echo "$as_me: program exited with status $ac_status" >&5
9935 echo "$as_me: failed program was:" >&5
9936 cat conftest.$ac_ext >&5
9938 ac_cv_c_bigendian=yes
9940 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9943 rm -f conftest.$ac_objext conftest.$ac_ext
9945 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
9946 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
9947 case $ac_cv_c_bigendian in
9950 cat >>confdefs.h <<\_ACEOF
9951 #define WORDS_BIGENDIAN 1
9957 { { echo "$as_me:$LINENO: error: unknown endianness
9958 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
9959 echo "$as_me: error: unknown endianness
9960 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
9961 { (exit 1); exit 1; }; } ;;
9965 #echo "CROSS ENDIAN"
9966 if $CXX -v 2>&1|grep "mingw" >/dev/null 2>&1; then
9967 ac_cv_c_bigendian=no
9971 #echo "CROSS ENDIAN DONE"
9974 echo "$as_me:$LINENO: checking whether preprocessor accepts -MM or -M" >&5
9975 echo $ECHO_N "checking whether preprocessor accepts -MM or -M... $ECHO_C" >&6
9976 if test "${ucsim_cv_MM+set}" = set; then
9977 echo $ECHO_N "(cached) $ECHO_C" >&6
9979 echo "#include <stdio.h>" >_test_.c
9981 $CXXCPP -v -MM _test_.c 1>&5 2>&5
9982 if test "$?" = "0"; then
9989 echo "$as_me:$LINENO: result: $ucsim_cv_MM" >&5
9990 echo "${ECHO_T}$ucsim_cv_MM" >&6
9991 M_OR_MM=$ucsim_cv_MM
9994 # This is the first time when CFLAGS are set/modified!!
9997 echo "$as_me:$LINENO: checking whether $CXX accepts -ggdb" >&5
9998 echo $ECHO_N "checking whether $CXX accepts -ggdb... $ECHO_C" >&6
9999 if test "${ucsim_cv_CXXggdb+set}" = set; then
10000 echo $ECHO_N "(cached) $ECHO_C" >&6
10002 cat >_test_.c <<EOF
10006 $CXX -v -ggdb -c _test_.c 1>&5 2>&5
10007 if test "$?" = "0"; then
10008 ucsim_cv_CXXggdb="yes"
10010 ucsim_cv_CXXggdb="no"
10012 rm -f _test_.* a.out
10014 echo "$as_me:$LINENO: result: $ucsim_cv_CXXggdb" >&5
10015 echo "${ECHO_T}$ucsim_cv_CXXggdb" >&6
10017 if test "$ucsim_cv_CXXggdb" = "yes"; then
10018 if test "$CXXFLAGS"x = x ;then
10021 CXXFLAGS="$CXXFLAGS -ggdb"
10026 echo "$as_me:$LINENO: checking whether $CXX accepts -pipe" >&5
10027 echo $ECHO_N "checking whether $CXX accepts -pipe... $ECHO_C" >&6
10028 if test "${ucsim_cv_CXXpipe+set}" = set; then
10029 echo $ECHO_N "(cached) $ECHO_C" >&6
10031 cat >_test_.c <<EOF
10035 $CXX -v -pipe -c _test_.c 1>&5 2>&5
10036 if test "$?" = "0"; then
10037 ucsim_cv_CXXpipe="yes"
10039 ucsim_cv_CXXpipe="no"
10041 rm -f _test_.* a.out
10043 echo "$as_me:$LINENO: result: $ucsim_cv_CXXpipe" >&5
10044 echo "${ECHO_T}$ucsim_cv_CXXpipe" >&6
10046 if test "$ucsim_cv_CXXpipe" = "yes"; then
10047 CXXFLAGS="$CXXFLAGS -pipe"
10053 echo "$as_me:$LINENO: checking whether $CXX accepts -fPIC" >&5
10054 echo $ECHO_N "checking whether $CXX accepts -fPIC... $ECHO_C" >&6
10055 if test "${ucsim_cv_CXXfPIC+set}" = set; then
10056 echo $ECHO_N "(cached) $ECHO_C" >&6
10058 cat >_test_.c <<EOF
10062 $CXX -v -fPIC -c _test_.c 1>&5 2>&5
10063 if test "$?" = "0"; then
10064 ucsim_cv_CXXfPIC="yes"
10066 ucsim_cv_CXXfPIC="no"
10068 rm -f _test_.* a.out
10070 echo "$as_me:$LINENO: result: $ucsim_cv_CXXfPIC" >&5
10071 echo "${ECHO_T}$ucsim_cv_CXXfPIC" >&6
10073 if test "$ucsim_cv_CXXfPIC" = "yes"; then
10077 echo "$as_me:$LINENO: checking whether $CXX accepts -fpic" >&5
10078 echo $ECHO_N "checking whether $CXX accepts -fpic... $ECHO_C" >&6
10079 if test "${ucsim_cv_CXXfpic+set}" = set; then
10080 echo $ECHO_N "(cached) $ECHO_C" >&6
10082 cat >_test_.c <<EOF
10086 $CXX -v -fpic -c _test_.c 1>&5 2>&5
10087 if test "$?" = "0"; then
10088 ucsim_cv_CXXfpic="yes"
10090 ucsim_cv_CXXfpic="no"
10092 rm -f _test_.* a.out
10094 echo "$as_me:$LINENO: result: $ucsim_cv_CXXfpic" >&5
10095 echo "${ECHO_T}$ucsim_cv_CXXfpic" >&6
10097 if test "$ucsim_cv_CXXfpic" = "yes"; then
10101 if test "$PICOPT"x != "x"; then
10104 # If this is Cygwin neither use Position Independant Code
10106 # Quick + dirty by Bernhard
10108 if $CXX -v 2>&1 | grep -i cygwin 1>&5 2>&5; then
10116 if test $SHAREDLIB = "yes" -a $dl_ok = "yes" -a $enable_dlso = "yes"; then
10121 # Checks for typedefs, structures, and compiler characteristics.
10122 # ===========================================================================
10124 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
10125 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
10126 if test "${ac_cv_type_signal+set}" = set; then
10127 echo $ECHO_N "(cached) $ECHO_C" >&6
10129 cat >conftest.$ac_ext <<_ACEOF
10130 #line $LINENO "configure"
10131 #include "confdefs.h"
10132 #include <sys/types.h>
10133 #include <signal.h>
10138 extern "C" void (*signal (int, void (*)(int)))(int);
10140 void (*signal ()) ();
10151 rm -f conftest.$ac_objext
10152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10153 (eval $ac_compile) 2>&5
10155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10156 (exit $ac_status); } &&
10157 { ac_try='test -s conftest.$ac_objext'
10158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10159 (eval $ac_try) 2>&5
10161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10162 (exit $ac_status); }; }; then
10163 ac_cv_type_signal=void
10165 echo "$as_me: failed program was:" >&5
10166 cat conftest.$ac_ext >&5
10167 ac_cv_type_signal=int
10169 rm -f conftest.$ac_objext conftest.$ac_ext
10171 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
10172 echo "${ECHO_T}$ac_cv_type_signal" >&6
10174 cat >>confdefs.h <<_ACEOF
10175 #define RETSIGTYPE $ac_cv_type_signal
10179 if test "$cross_compiling" = "no"; then
10180 echo "$as_me:$LINENO: checking for char" >&5
10181 echo $ECHO_N "checking for char... $ECHO_C" >&6
10182 if test "${ac_cv_type_char+set}" = set; then
10183 echo $ECHO_N "(cached) $ECHO_C" >&6
10185 cat >conftest.$ac_ext <<_ACEOF
10186 #line $LINENO "configure"
10187 #include "confdefs.h"
10188 $ac_includes_default
10200 rm -f conftest.$ac_objext
10201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10202 (eval $ac_compile) 2>&5
10204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10205 (exit $ac_status); } &&
10206 { ac_try='test -s conftest.$ac_objext'
10207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10208 (eval $ac_try) 2>&5
10210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10211 (exit $ac_status); }; }; then
10212 ac_cv_type_char=yes
10214 echo "$as_me: failed program was:" >&5
10215 cat conftest.$ac_ext >&5
10218 rm -f conftest.$ac_objext conftest.$ac_ext
10220 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
10221 echo "${ECHO_T}$ac_cv_type_char" >&6
10223 echo "$as_me:$LINENO: checking size of char" >&5
10224 echo $ECHO_N "checking size of char... $ECHO_C" >&6
10225 if test "${ac_cv_sizeof_char+set}" = set; then
10226 echo $ECHO_N "(cached) $ECHO_C" >&6
10228 if test "$ac_cv_type_char" = yes; then
10229 # The cast to unsigned long works around a bug in the HP C Compiler
10230 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10231 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10232 # This bug is HP SR number 8606223364.
10233 if test "$cross_compiling" = yes; then
10234 # Depending upon the size, compute the lo and hi bounds.
10235 cat >conftest.$ac_ext <<_ACEOF
10236 #line $LINENO "configure"
10237 #include "confdefs.h"
10238 $ac_includes_default
10242 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
10249 rm -f conftest.$ac_objext
10250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10251 (eval $ac_compile) 2>&5
10253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10254 (exit $ac_status); } &&
10255 { ac_try='test -s conftest.$ac_objext'
10256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10257 (eval $ac_try) 2>&5
10259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10260 (exit $ac_status); }; }; then
10263 cat >conftest.$ac_ext <<_ACEOF
10264 #line $LINENO "configure"
10265 #include "confdefs.h"
10266 $ac_includes_default
10270 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
10277 rm -f conftest.$ac_objext
10278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10279 (eval $ac_compile) 2>&5
10281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10282 (exit $ac_status); } &&
10283 { ac_try='test -s conftest.$ac_objext'
10284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10285 (eval $ac_try) 2>&5
10287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10288 (exit $ac_status); }; }; then
10289 ac_hi=$ac_mid; break
10291 echo "$as_me: failed program was:" >&5
10292 cat conftest.$ac_ext >&5
10293 ac_lo=`expr $ac_mid + 1`
10294 if test $ac_lo -le $ac_mid; then
10298 ac_mid=`expr 2 '*' $ac_mid + 1`
10300 rm -f conftest.$ac_objext conftest.$ac_ext
10303 echo "$as_me: failed program was:" >&5
10304 cat conftest.$ac_ext >&5
10305 cat >conftest.$ac_ext <<_ACEOF
10306 #line $LINENO "configure"
10307 #include "confdefs.h"
10308 $ac_includes_default
10312 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
10319 rm -f conftest.$ac_objext
10320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10321 (eval $ac_compile) 2>&5
10323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10324 (exit $ac_status); } &&
10325 { ac_try='test -s conftest.$ac_objext'
10326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10327 (eval $ac_try) 2>&5
10329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10330 (exit $ac_status); }; }; then
10333 cat >conftest.$ac_ext <<_ACEOF
10334 #line $LINENO "configure"
10335 #include "confdefs.h"
10336 $ac_includes_default
10340 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
10347 rm -f conftest.$ac_objext
10348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10349 (eval $ac_compile) 2>&5
10351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10352 (exit $ac_status); } &&
10353 { ac_try='test -s conftest.$ac_objext'
10354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10355 (eval $ac_try) 2>&5
10357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10358 (exit $ac_status); }; }; then
10359 ac_lo=$ac_mid; break
10361 echo "$as_me: failed program was:" >&5
10362 cat conftest.$ac_ext >&5
10363 ac_hi=`expr '(' $ac_mid ')' - 1`
10364 if test $ac_mid -le $ac_hi; then
10368 ac_mid=`expr 2 '*' $ac_mid`
10370 rm -f conftest.$ac_objext conftest.$ac_ext
10373 echo "$as_me: failed program was:" >&5
10374 cat conftest.$ac_ext >&5
10377 rm -f conftest.$ac_objext conftest.$ac_ext
10379 rm -f conftest.$ac_objext conftest.$ac_ext
10380 # Binary search between lo and hi bounds.
10381 while test "x$ac_lo" != "x$ac_hi"; do
10382 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10383 cat >conftest.$ac_ext <<_ACEOF
10384 #line $LINENO "configure"
10385 #include "confdefs.h"
10386 $ac_includes_default
10390 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
10397 rm -f conftest.$ac_objext
10398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10399 (eval $ac_compile) 2>&5
10401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10402 (exit $ac_status); } &&
10403 { ac_try='test -s conftest.$ac_objext'
10404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10405 (eval $ac_try) 2>&5
10407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10408 (exit $ac_status); }; }; then
10411 echo "$as_me: failed program was:" >&5
10412 cat conftest.$ac_ext >&5
10413 ac_lo=`expr '(' $ac_mid ')' + 1`
10415 rm -f conftest.$ac_objext conftest.$ac_ext
10418 ?*) ac_cv_sizeof_char=$ac_lo;;
10419 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77" >&5
10420 echo "$as_me: error: cannot compute sizeof (char), 77" >&2;}
10421 { (exit 1); exit 1; }; } ;;
10424 if test "$cross_compiling" = yes; then
10425 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
10426 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
10427 { (exit 1); exit 1; }; }
10429 cat >conftest.$ac_ext <<_ACEOF
10430 #line $LINENO "configure"
10431 #include "confdefs.h"
10432 $ac_includes_default
10433 long longval () { return (long) (sizeof (char)); }
10434 unsigned long ulongval () { return (long) (sizeof (char)); }
10436 #include <stdlib.h>
10441 FILE *f = fopen ("conftest.val", "w");
10444 if (((long) (sizeof (char))) < 0)
10446 long i = longval ();
10447 if (i != ((long) (sizeof (char))))
10449 fprintf (f, "%ld\n", i);
10453 unsigned long i = ulongval ();
10454 if (i != ((long) (sizeof (char))))
10456 fprintf (f, "%lu\n", i);
10458 exit (ferror (f) || fclose (f) != 0);
10464 rm -f conftest$ac_exeext
10465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10466 (eval $ac_link) 2>&5
10468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10469 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10471 (eval $ac_try) 2>&5
10473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10474 (exit $ac_status); }; }; then
10475 ac_cv_sizeof_char=`cat conftest.val`
10477 echo "$as_me: program exited with status $ac_status" >&5
10478 echo "$as_me: failed program was:" >&5
10479 cat conftest.$ac_ext >&5
10480 ( exit $ac_status )
10481 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77" >&5
10482 echo "$as_me: error: cannot compute sizeof (char), 77" >&2;}
10483 { (exit 1); exit 1; }; }
10485 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10490 ac_cv_sizeof_char=0
10493 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
10494 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
10495 cat >>confdefs.h <<_ACEOF
10496 #define SIZEOF_CHAR $ac_cv_sizeof_char
10500 echo "$as_me:$LINENO: checking for short" >&5
10501 echo $ECHO_N "checking for short... $ECHO_C" >&6
10502 if test "${ac_cv_type_short+set}" = set; then
10503 echo $ECHO_N "(cached) $ECHO_C" >&6
10505 cat >conftest.$ac_ext <<_ACEOF
10506 #line $LINENO "configure"
10507 #include "confdefs.h"
10508 $ac_includes_default
10514 if (sizeof (short))
10520 rm -f conftest.$ac_objext
10521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10522 (eval $ac_compile) 2>&5
10524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10525 (exit $ac_status); } &&
10526 { ac_try='test -s conftest.$ac_objext'
10527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10528 (eval $ac_try) 2>&5
10530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10531 (exit $ac_status); }; }; then
10532 ac_cv_type_short=yes
10534 echo "$as_me: failed program was:" >&5
10535 cat conftest.$ac_ext >&5
10536 ac_cv_type_short=no
10538 rm -f conftest.$ac_objext conftest.$ac_ext
10540 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
10541 echo "${ECHO_T}$ac_cv_type_short" >&6
10543 echo "$as_me:$LINENO: checking size of short" >&5
10544 echo $ECHO_N "checking size of short... $ECHO_C" >&6
10545 if test "${ac_cv_sizeof_short+set}" = set; then
10546 echo $ECHO_N "(cached) $ECHO_C" >&6
10548 if test "$ac_cv_type_short" = yes; then
10549 # The cast to unsigned long works around a bug in the HP C Compiler
10550 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10551 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10552 # This bug is HP SR number 8606223364.
10553 if test "$cross_compiling" = yes; then
10554 # Depending upon the size, compute the lo and hi bounds.
10555 cat >conftest.$ac_ext <<_ACEOF
10556 #line $LINENO "configure"
10557 #include "confdefs.h"
10558 $ac_includes_default
10562 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
10569 rm -f conftest.$ac_objext
10570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10571 (eval $ac_compile) 2>&5
10573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10574 (exit $ac_status); } &&
10575 { ac_try='test -s conftest.$ac_objext'
10576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10577 (eval $ac_try) 2>&5
10579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10580 (exit $ac_status); }; }; then
10583 cat >conftest.$ac_ext <<_ACEOF
10584 #line $LINENO "configure"
10585 #include "confdefs.h"
10586 $ac_includes_default
10590 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
10597 rm -f conftest.$ac_objext
10598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10599 (eval $ac_compile) 2>&5
10601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10602 (exit $ac_status); } &&
10603 { ac_try='test -s conftest.$ac_objext'
10604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10605 (eval $ac_try) 2>&5
10607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10608 (exit $ac_status); }; }; then
10609 ac_hi=$ac_mid; break
10611 echo "$as_me: failed program was:" >&5
10612 cat conftest.$ac_ext >&5
10613 ac_lo=`expr $ac_mid + 1`
10614 if test $ac_lo -le $ac_mid; then
10618 ac_mid=`expr 2 '*' $ac_mid + 1`
10620 rm -f conftest.$ac_objext conftest.$ac_ext
10623 echo "$as_me: failed program was:" >&5
10624 cat conftest.$ac_ext >&5
10625 cat >conftest.$ac_ext <<_ACEOF
10626 #line $LINENO "configure"
10627 #include "confdefs.h"
10628 $ac_includes_default
10632 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
10639 rm -f conftest.$ac_objext
10640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10641 (eval $ac_compile) 2>&5
10643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10644 (exit $ac_status); } &&
10645 { ac_try='test -s conftest.$ac_objext'
10646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10647 (eval $ac_try) 2>&5
10649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10650 (exit $ac_status); }; }; then
10653 cat >conftest.$ac_ext <<_ACEOF
10654 #line $LINENO "configure"
10655 #include "confdefs.h"
10656 $ac_includes_default
10660 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
10667 rm -f conftest.$ac_objext
10668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10669 (eval $ac_compile) 2>&5
10671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10672 (exit $ac_status); } &&
10673 { ac_try='test -s conftest.$ac_objext'
10674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10675 (eval $ac_try) 2>&5
10677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10678 (exit $ac_status); }; }; then
10679 ac_lo=$ac_mid; break
10681 echo "$as_me: failed program was:" >&5
10682 cat conftest.$ac_ext >&5
10683 ac_hi=`expr '(' $ac_mid ')' - 1`
10684 if test $ac_mid -le $ac_hi; then
10688 ac_mid=`expr 2 '*' $ac_mid`
10690 rm -f conftest.$ac_objext conftest.$ac_ext
10693 echo "$as_me: failed program was:" >&5
10694 cat conftest.$ac_ext >&5
10697 rm -f conftest.$ac_objext conftest.$ac_ext
10699 rm -f conftest.$ac_objext conftest.$ac_ext
10700 # Binary search between lo and hi bounds.
10701 while test "x$ac_lo" != "x$ac_hi"; do
10702 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10703 cat >conftest.$ac_ext <<_ACEOF
10704 #line $LINENO "configure"
10705 #include "confdefs.h"
10706 $ac_includes_default
10710 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
10717 rm -f conftest.$ac_objext
10718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10719 (eval $ac_compile) 2>&5
10721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10722 (exit $ac_status); } &&
10723 { ac_try='test -s conftest.$ac_objext'
10724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10725 (eval $ac_try) 2>&5
10727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10728 (exit $ac_status); }; }; then
10731 echo "$as_me: failed program was:" >&5
10732 cat conftest.$ac_ext >&5
10733 ac_lo=`expr '(' $ac_mid ')' + 1`
10735 rm -f conftest.$ac_objext conftest.$ac_ext
10738 ?*) ac_cv_sizeof_short=$ac_lo;;
10739 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77" >&5
10740 echo "$as_me: error: cannot compute sizeof (short), 77" >&2;}
10741 { (exit 1); exit 1; }; } ;;
10744 if test "$cross_compiling" = yes; then
10745 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
10746 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
10747 { (exit 1); exit 1; }; }
10749 cat >conftest.$ac_ext <<_ACEOF
10750 #line $LINENO "configure"
10751 #include "confdefs.h"
10752 $ac_includes_default
10753 long longval () { return (long) (sizeof (short)); }
10754 unsigned long ulongval () { return (long) (sizeof (short)); }
10756 #include <stdlib.h>
10761 FILE *f = fopen ("conftest.val", "w");
10764 if (((long) (sizeof (short))) < 0)
10766 long i = longval ();
10767 if (i != ((long) (sizeof (short))))
10769 fprintf (f, "%ld\n", i);
10773 unsigned long i = ulongval ();
10774 if (i != ((long) (sizeof (short))))
10776 fprintf (f, "%lu\n", i);
10778 exit (ferror (f) || fclose (f) != 0);
10784 rm -f conftest$ac_exeext
10785 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10786 (eval $ac_link) 2>&5
10788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10789 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10791 (eval $ac_try) 2>&5
10793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10794 (exit $ac_status); }; }; then
10795 ac_cv_sizeof_short=`cat conftest.val`
10797 echo "$as_me: program exited with status $ac_status" >&5
10798 echo "$as_me: failed program was:" >&5
10799 cat conftest.$ac_ext >&5
10800 ( exit $ac_status )
10801 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77" >&5
10802 echo "$as_me: error: cannot compute sizeof (short), 77" >&2;}
10803 { (exit 1); exit 1; }; }
10805 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10810 ac_cv_sizeof_short=0
10813 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
10814 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
10815 cat >>confdefs.h <<_ACEOF
10816 #define SIZEOF_SHORT $ac_cv_sizeof_short
10820 echo "$as_me:$LINENO: checking for int" >&5
10821 echo $ECHO_N "checking for int... $ECHO_C" >&6
10822 if test "${ac_cv_type_int+set}" = set; then
10823 echo $ECHO_N "(cached) $ECHO_C" >&6
10825 cat >conftest.$ac_ext <<_ACEOF
10826 #line $LINENO "configure"
10827 #include "confdefs.h"
10828 $ac_includes_default
10840 rm -f conftest.$ac_objext
10841 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10842 (eval $ac_compile) 2>&5
10844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10845 (exit $ac_status); } &&
10846 { ac_try='test -s conftest.$ac_objext'
10847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10848 (eval $ac_try) 2>&5
10850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10851 (exit $ac_status); }; }; then
10854 echo "$as_me: failed program was:" >&5
10855 cat conftest.$ac_ext >&5
10858 rm -f conftest.$ac_objext conftest.$ac_ext
10860 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
10861 echo "${ECHO_T}$ac_cv_type_int" >&6
10863 echo "$as_me:$LINENO: checking size of int" >&5
10864 echo $ECHO_N "checking size of int... $ECHO_C" >&6
10865 if test "${ac_cv_sizeof_int+set}" = set; then
10866 echo $ECHO_N "(cached) $ECHO_C" >&6
10868 if test "$ac_cv_type_int" = yes; then
10869 # The cast to unsigned long works around a bug in the HP C Compiler
10870 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10871 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10872 # This bug is HP SR number 8606223364.
10873 if test "$cross_compiling" = yes; then
10874 # Depending upon the size, compute the lo and hi bounds.
10875 cat >conftest.$ac_ext <<_ACEOF
10876 #line $LINENO "configure"
10877 #include "confdefs.h"
10878 $ac_includes_default
10882 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
10889 rm -f conftest.$ac_objext
10890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10891 (eval $ac_compile) 2>&5
10893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10894 (exit $ac_status); } &&
10895 { ac_try='test -s conftest.$ac_objext'
10896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10897 (eval $ac_try) 2>&5
10899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10900 (exit $ac_status); }; }; then
10903 cat >conftest.$ac_ext <<_ACEOF
10904 #line $LINENO "configure"
10905 #include "confdefs.h"
10906 $ac_includes_default
10910 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
10917 rm -f conftest.$ac_objext
10918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10919 (eval $ac_compile) 2>&5
10921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10922 (exit $ac_status); } &&
10923 { ac_try='test -s conftest.$ac_objext'
10924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10925 (eval $ac_try) 2>&5
10927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10928 (exit $ac_status); }; }; then
10929 ac_hi=$ac_mid; break
10931 echo "$as_me: failed program was:" >&5
10932 cat conftest.$ac_ext >&5
10933 ac_lo=`expr $ac_mid + 1`
10934 if test $ac_lo -le $ac_mid; then
10938 ac_mid=`expr 2 '*' $ac_mid + 1`
10940 rm -f conftest.$ac_objext conftest.$ac_ext
10943 echo "$as_me: failed program was:" >&5
10944 cat conftest.$ac_ext >&5
10945 cat >conftest.$ac_ext <<_ACEOF
10946 #line $LINENO "configure"
10947 #include "confdefs.h"
10948 $ac_includes_default
10952 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
10959 rm -f conftest.$ac_objext
10960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10961 (eval $ac_compile) 2>&5
10963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10964 (exit $ac_status); } &&
10965 { ac_try='test -s conftest.$ac_objext'
10966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10967 (eval $ac_try) 2>&5
10969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10970 (exit $ac_status); }; }; then
10973 cat >conftest.$ac_ext <<_ACEOF
10974 #line $LINENO "configure"
10975 #include "confdefs.h"
10976 $ac_includes_default
10980 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
10987 rm -f conftest.$ac_objext
10988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10989 (eval $ac_compile) 2>&5
10991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10992 (exit $ac_status); } &&
10993 { ac_try='test -s conftest.$ac_objext'
10994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10995 (eval $ac_try) 2>&5
10997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10998 (exit $ac_status); }; }; then
10999 ac_lo=$ac_mid; break
11001 echo "$as_me: failed program was:" >&5
11002 cat conftest.$ac_ext >&5
11003 ac_hi=`expr '(' $ac_mid ')' - 1`
11004 if test $ac_mid -le $ac_hi; then
11008 ac_mid=`expr 2 '*' $ac_mid`
11010 rm -f conftest.$ac_objext conftest.$ac_ext
11013 echo "$as_me: failed program was:" >&5
11014 cat conftest.$ac_ext >&5
11017 rm -f conftest.$ac_objext conftest.$ac_ext
11019 rm -f conftest.$ac_objext conftest.$ac_ext
11020 # Binary search between lo and hi bounds.
11021 while test "x$ac_lo" != "x$ac_hi"; do
11022 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11023 cat >conftest.$ac_ext <<_ACEOF
11024 #line $LINENO "configure"
11025 #include "confdefs.h"
11026 $ac_includes_default
11030 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
11037 rm -f conftest.$ac_objext
11038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11039 (eval $ac_compile) 2>&5
11041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11042 (exit $ac_status); } &&
11043 { ac_try='test -s conftest.$ac_objext'
11044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11045 (eval $ac_try) 2>&5
11047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11048 (exit $ac_status); }; }; then
11051 echo "$as_me: failed program was:" >&5
11052 cat conftest.$ac_ext >&5
11053 ac_lo=`expr '(' $ac_mid ')' + 1`
11055 rm -f conftest.$ac_objext conftest.$ac_ext
11058 ?*) ac_cv_sizeof_int=$ac_lo;;
11059 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5
11060 echo "$as_me: error: cannot compute sizeof (int), 77" >&2;}
11061 { (exit 1); exit 1; }; } ;;
11064 if test "$cross_compiling" = yes; then
11065 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
11066 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
11067 { (exit 1); exit 1; }; }
11069 cat >conftest.$ac_ext <<_ACEOF
11070 #line $LINENO "configure"
11071 #include "confdefs.h"
11072 $ac_includes_default
11073 long longval () { return (long) (sizeof (int)); }
11074 unsigned long ulongval () { return (long) (sizeof (int)); }
11076 #include <stdlib.h>
11081 FILE *f = fopen ("conftest.val", "w");
11084 if (((long) (sizeof (int))) < 0)
11086 long i = longval ();
11087 if (i != ((long) (sizeof (int))))
11089 fprintf (f, "%ld\n", i);
11093 unsigned long i = ulongval ();
11094 if (i != ((long) (sizeof (int))))
11096 fprintf (f, "%lu\n", i);
11098 exit (ferror (f) || fclose (f) != 0);
11104 rm -f conftest$ac_exeext
11105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11106 (eval $ac_link) 2>&5
11108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11109 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11111 (eval $ac_try) 2>&5
11113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11114 (exit $ac_status); }; }; then
11115 ac_cv_sizeof_int=`cat conftest.val`
11117 echo "$as_me: program exited with status $ac_status" >&5
11118 echo "$as_me: failed program was:" >&5
11119 cat conftest.$ac_ext >&5
11120 ( exit $ac_status )
11121 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5
11122 echo "$as_me: error: cannot compute sizeof (int), 77" >&2;}
11123 { (exit 1); exit 1; }; }
11125 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11133 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
11134 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
11135 cat >>confdefs.h <<_ACEOF
11136 #define SIZEOF_INT $ac_cv_sizeof_int
11140 echo "$as_me:$LINENO: checking for long" >&5
11141 echo $ECHO_N "checking for long... $ECHO_C" >&6
11142 if test "${ac_cv_type_long+set}" = set; then
11143 echo $ECHO_N "(cached) $ECHO_C" >&6
11145 cat >conftest.$ac_ext <<_ACEOF
11146 #line $LINENO "configure"
11147 #include "confdefs.h"
11148 $ac_includes_default
11160 rm -f conftest.$ac_objext
11161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11162 (eval $ac_compile) 2>&5
11164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11165 (exit $ac_status); } &&
11166 { ac_try='test -s conftest.$ac_objext'
11167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11168 (eval $ac_try) 2>&5
11170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11171 (exit $ac_status); }; }; then
11172 ac_cv_type_long=yes
11174 echo "$as_me: failed program was:" >&5
11175 cat conftest.$ac_ext >&5
11178 rm -f conftest.$ac_objext conftest.$ac_ext
11180 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
11181 echo "${ECHO_T}$ac_cv_type_long" >&6
11183 echo "$as_me:$LINENO: checking size of long" >&5
11184 echo $ECHO_N "checking size of long... $ECHO_C" >&6
11185 if test "${ac_cv_sizeof_long+set}" = set; then
11186 echo $ECHO_N "(cached) $ECHO_C" >&6
11188 if test "$ac_cv_type_long" = yes; then
11189 # The cast to unsigned long works around a bug in the HP C Compiler
11190 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11191 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11192 # This bug is HP SR number 8606223364.
11193 if test "$cross_compiling" = yes; then
11194 # Depending upon the size, compute the lo and hi bounds.
11195 cat >conftest.$ac_ext <<_ACEOF
11196 #line $LINENO "configure"
11197 #include "confdefs.h"
11198 $ac_includes_default
11202 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
11209 rm -f conftest.$ac_objext
11210 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11211 (eval $ac_compile) 2>&5
11213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11214 (exit $ac_status); } &&
11215 { ac_try='test -s conftest.$ac_objext'
11216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11217 (eval $ac_try) 2>&5
11219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11220 (exit $ac_status); }; }; then
11223 cat >conftest.$ac_ext <<_ACEOF
11224 #line $LINENO "configure"
11225 #include "confdefs.h"
11226 $ac_includes_default
11230 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
11237 rm -f conftest.$ac_objext
11238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11239 (eval $ac_compile) 2>&5
11241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11242 (exit $ac_status); } &&
11243 { ac_try='test -s conftest.$ac_objext'
11244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11245 (eval $ac_try) 2>&5
11247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11248 (exit $ac_status); }; }; then
11249 ac_hi=$ac_mid; break
11251 echo "$as_me: failed program was:" >&5
11252 cat conftest.$ac_ext >&5
11253 ac_lo=`expr $ac_mid + 1`
11254 if test $ac_lo -le $ac_mid; then
11258 ac_mid=`expr 2 '*' $ac_mid + 1`
11260 rm -f conftest.$ac_objext conftest.$ac_ext
11263 echo "$as_me: failed program was:" >&5
11264 cat conftest.$ac_ext >&5
11265 cat >conftest.$ac_ext <<_ACEOF
11266 #line $LINENO "configure"
11267 #include "confdefs.h"
11268 $ac_includes_default
11272 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
11279 rm -f conftest.$ac_objext
11280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11281 (eval $ac_compile) 2>&5
11283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11284 (exit $ac_status); } &&
11285 { ac_try='test -s conftest.$ac_objext'
11286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11287 (eval $ac_try) 2>&5
11289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11290 (exit $ac_status); }; }; then
11293 cat >conftest.$ac_ext <<_ACEOF
11294 #line $LINENO "configure"
11295 #include "confdefs.h"
11296 $ac_includes_default
11300 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $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_lo=$ac_mid; break
11321 echo "$as_me: failed program was:" >&5
11322 cat conftest.$ac_ext >&5
11323 ac_hi=`expr '(' $ac_mid ')' - 1`
11324 if test $ac_mid -le $ac_hi; then
11328 ac_mid=`expr 2 '*' $ac_mid`
11330 rm -f conftest.$ac_objext conftest.$ac_ext
11333 echo "$as_me: failed program was:" >&5
11334 cat conftest.$ac_ext >&5
11337 rm -f conftest.$ac_objext conftest.$ac_ext
11339 rm -f conftest.$ac_objext conftest.$ac_ext
11340 # Binary search between lo and hi bounds.
11341 while test "x$ac_lo" != "x$ac_hi"; do
11342 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11343 cat >conftest.$ac_ext <<_ACEOF
11344 #line $LINENO "configure"
11345 #include "confdefs.h"
11346 $ac_includes_default
11350 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
11357 rm -f conftest.$ac_objext
11358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11359 (eval $ac_compile) 2>&5
11361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11362 (exit $ac_status); } &&
11363 { ac_try='test -s conftest.$ac_objext'
11364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11365 (eval $ac_try) 2>&5
11367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11368 (exit $ac_status); }; }; then
11371 echo "$as_me: failed program was:" >&5
11372 cat conftest.$ac_ext >&5
11373 ac_lo=`expr '(' $ac_mid ')' + 1`
11375 rm -f conftest.$ac_objext conftest.$ac_ext
11378 ?*) ac_cv_sizeof_long=$ac_lo;;
11379 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77" >&5
11380 echo "$as_me: error: cannot compute sizeof (long), 77" >&2;}
11381 { (exit 1); exit 1; }; } ;;
11384 if test "$cross_compiling" = yes; then
11385 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
11386 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
11387 { (exit 1); exit 1; }; }
11389 cat >conftest.$ac_ext <<_ACEOF
11390 #line $LINENO "configure"
11391 #include "confdefs.h"
11392 $ac_includes_default
11393 long longval () { return (long) (sizeof (long)); }
11394 unsigned long ulongval () { return (long) (sizeof (long)); }
11396 #include <stdlib.h>
11401 FILE *f = fopen ("conftest.val", "w");
11404 if (((long) (sizeof (long))) < 0)
11406 long i = longval ();
11407 if (i != ((long) (sizeof (long))))
11409 fprintf (f, "%ld\n", i);
11413 unsigned long i = ulongval ();
11414 if (i != ((long) (sizeof (long))))
11416 fprintf (f, "%lu\n", i);
11418 exit (ferror (f) || fclose (f) != 0);
11424 rm -f conftest$ac_exeext
11425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11426 (eval $ac_link) 2>&5
11428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11429 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11431 (eval $ac_try) 2>&5
11433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11434 (exit $ac_status); }; }; then
11435 ac_cv_sizeof_long=`cat conftest.val`
11437 echo "$as_me: program exited with status $ac_status" >&5
11438 echo "$as_me: failed program was:" >&5
11439 cat conftest.$ac_ext >&5
11440 ( exit $ac_status )
11441 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77" >&5
11442 echo "$as_me: error: cannot compute sizeof (long), 77" >&2;}
11443 { (exit 1); exit 1; }; }
11445 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11450 ac_cv_sizeof_long=0
11453 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
11454 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
11455 cat >>confdefs.h <<_ACEOF
11456 #define SIZEOF_LONG $ac_cv_sizeof_long
11460 echo "$as_me:$LINENO: checking for long long" >&5
11461 echo $ECHO_N "checking for long long... $ECHO_C" >&6
11462 if test "${ac_cv_type_long_long+set}" = set; then
11463 echo $ECHO_N "(cached) $ECHO_C" >&6
11465 cat >conftest.$ac_ext <<_ACEOF
11466 #line $LINENO "configure"
11467 #include "confdefs.h"
11468 $ac_includes_default
11472 if ((long long *) 0)
11474 if (sizeof (long long))
11480 rm -f conftest.$ac_objext
11481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11482 (eval $ac_compile) 2>&5
11484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11485 (exit $ac_status); } &&
11486 { ac_try='test -s conftest.$ac_objext'
11487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11488 (eval $ac_try) 2>&5
11490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11491 (exit $ac_status); }; }; then
11492 ac_cv_type_long_long=yes
11494 echo "$as_me: failed program was:" >&5
11495 cat conftest.$ac_ext >&5
11496 ac_cv_type_long_long=no
11498 rm -f conftest.$ac_objext conftest.$ac_ext
11500 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
11501 echo "${ECHO_T}$ac_cv_type_long_long" >&6
11503 echo "$as_me:$LINENO: checking size of long long" >&5
11504 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
11505 if test "${ac_cv_sizeof_long_long+set}" = set; then
11506 echo $ECHO_N "(cached) $ECHO_C" >&6
11508 if test "$ac_cv_type_long_long" = yes; then
11509 # The cast to unsigned long works around a bug in the HP C Compiler
11510 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11511 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11512 # This bug is HP SR number 8606223364.
11513 if test "$cross_compiling" = yes; then
11514 # Depending upon the size, compute the lo and hi bounds.
11515 cat >conftest.$ac_ext <<_ACEOF
11516 #line $LINENO "configure"
11517 #include "confdefs.h"
11518 $ac_includes_default
11522 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
11529 rm -f conftest.$ac_objext
11530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11531 (eval $ac_compile) 2>&5
11533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11534 (exit $ac_status); } &&
11535 { ac_try='test -s conftest.$ac_objext'
11536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11537 (eval $ac_try) 2>&5
11539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11540 (exit $ac_status); }; }; then
11543 cat >conftest.$ac_ext <<_ACEOF
11544 #line $LINENO "configure"
11545 #include "confdefs.h"
11546 $ac_includes_default
11550 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
11557 rm -f conftest.$ac_objext
11558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11559 (eval $ac_compile) 2>&5
11561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11562 (exit $ac_status); } &&
11563 { ac_try='test -s conftest.$ac_objext'
11564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11565 (eval $ac_try) 2>&5
11567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11568 (exit $ac_status); }; }; then
11569 ac_hi=$ac_mid; break
11571 echo "$as_me: failed program was:" >&5
11572 cat conftest.$ac_ext >&5
11573 ac_lo=`expr $ac_mid + 1`
11574 if test $ac_lo -le $ac_mid; then
11578 ac_mid=`expr 2 '*' $ac_mid + 1`
11580 rm -f conftest.$ac_objext conftest.$ac_ext
11583 echo "$as_me: failed program was:" >&5
11584 cat conftest.$ac_ext >&5
11585 cat >conftest.$ac_ext <<_ACEOF
11586 #line $LINENO "configure"
11587 #include "confdefs.h"
11588 $ac_includes_default
11592 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
11599 rm -f conftest.$ac_objext
11600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11601 (eval $ac_compile) 2>&5
11603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11604 (exit $ac_status); } &&
11605 { ac_try='test -s conftest.$ac_objext'
11606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11607 (eval $ac_try) 2>&5
11609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11610 (exit $ac_status); }; }; then
11613 cat >conftest.$ac_ext <<_ACEOF
11614 #line $LINENO "configure"
11615 #include "confdefs.h"
11616 $ac_includes_default
11620 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
11627 rm -f conftest.$ac_objext
11628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11629 (eval $ac_compile) 2>&5
11631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11632 (exit $ac_status); } &&
11633 { ac_try='test -s conftest.$ac_objext'
11634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11635 (eval $ac_try) 2>&5
11637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11638 (exit $ac_status); }; }; then
11639 ac_lo=$ac_mid; break
11641 echo "$as_me: failed program was:" >&5
11642 cat conftest.$ac_ext >&5
11643 ac_hi=`expr '(' $ac_mid ')' - 1`
11644 if test $ac_mid -le $ac_hi; then
11648 ac_mid=`expr 2 '*' $ac_mid`
11650 rm -f conftest.$ac_objext conftest.$ac_ext
11653 echo "$as_me: failed program was:" >&5
11654 cat conftest.$ac_ext >&5
11657 rm -f conftest.$ac_objext conftest.$ac_ext
11659 rm -f conftest.$ac_objext conftest.$ac_ext
11660 # Binary search between lo and hi bounds.
11661 while test "x$ac_lo" != "x$ac_hi"; do
11662 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11663 cat >conftest.$ac_ext <<_ACEOF
11664 #line $LINENO "configure"
11665 #include "confdefs.h"
11666 $ac_includes_default
11670 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
11677 rm -f conftest.$ac_objext
11678 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11679 (eval $ac_compile) 2>&5
11681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11682 (exit $ac_status); } &&
11683 { ac_try='test -s conftest.$ac_objext'
11684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11685 (eval $ac_try) 2>&5
11687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11688 (exit $ac_status); }; }; then
11691 echo "$as_me: failed program was:" >&5
11692 cat conftest.$ac_ext >&5
11693 ac_lo=`expr '(' $ac_mid ')' + 1`
11695 rm -f conftest.$ac_objext conftest.$ac_ext
11698 ?*) ac_cv_sizeof_long_long=$ac_lo;;
11699 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77" >&5
11700 echo "$as_me: error: cannot compute sizeof (long long), 77" >&2;}
11701 { (exit 1); exit 1; }; } ;;
11704 if test "$cross_compiling" = yes; then
11705 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
11706 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
11707 { (exit 1); exit 1; }; }
11709 cat >conftest.$ac_ext <<_ACEOF
11710 #line $LINENO "configure"
11711 #include "confdefs.h"
11712 $ac_includes_default
11713 long longval () { return (long) (sizeof (long long)); }
11714 unsigned long ulongval () { return (long) (sizeof (long long)); }
11716 #include <stdlib.h>
11721 FILE *f = fopen ("conftest.val", "w");
11724 if (((long) (sizeof (long long))) < 0)
11726 long i = longval ();
11727 if (i != ((long) (sizeof (long long))))
11729 fprintf (f, "%ld\n", i);
11733 unsigned long i = ulongval ();
11734 if (i != ((long) (sizeof (long long))))
11736 fprintf (f, "%lu\n", i);
11738 exit (ferror (f) || fclose (f) != 0);
11744 rm -f conftest$ac_exeext
11745 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11746 (eval $ac_link) 2>&5
11748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11749 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11751 (eval $ac_try) 2>&5
11753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11754 (exit $ac_status); }; }; then
11755 ac_cv_sizeof_long_long=`cat conftest.val`
11757 echo "$as_me: program exited with status $ac_status" >&5
11758 echo "$as_me: failed program was:" >&5
11759 cat conftest.$ac_ext >&5
11760 ( exit $ac_status )
11761 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77" >&5
11762 echo "$as_me: error: cannot compute sizeof (long long), 77" >&2;}
11763 { (exit 1); exit 1; }; }
11765 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11770 ac_cv_sizeof_long_long=0
11773 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
11774 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
11775 cat >>confdefs.h <<_ACEOF
11776 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
11781 if $CXX -v 2>&1|grep "mingw" >/dev/null 2>&1; then
11782 ac_cv_sizeof_char=1
11783 ac_cv_sizeof_short=2
11785 ac_cv_sizeof_long=4
11786 ac_cv_sizeof_long_long=4
11795 if expr "$ac_cv_sizeof_char" '>=' "$1" >/dev/null; then
11799 if expr "$ac_cv_sizeof_short" '>=' "$1" >/dev/null; then
11803 if expr "$ac_cv_sizeof_int" '>=' "$1" >/dev/null; then
11807 if expr "$ac_cv_sizeof_long" '>=' "$1" >/dev/null; then
11811 if expr "$ac_cv_sizeof_long_long" '>=' "$1" >/dev/null; then
11818 echo "$as_me:$LINENO: checking type name for byte" >&5
11819 echo $ECHO_N "checking type name for byte... $ECHO_C" >&6
11820 TYPE_BYTE=`type_name 1`
11821 echo "$as_me:$LINENO: result: $TYPE_BYTE" >&5
11822 echo "${ECHO_T}$TYPE_BYTE" >&6
11823 echo "$as_me:$LINENO: checking type name for word" >&5
11824 echo $ECHO_N "checking type name for word... $ECHO_C" >&6
11825 TYPE_WORD=`type_name 2`
11826 echo "$as_me:$LINENO: result: $TYPE_WORD" >&5
11827 echo "${ECHO_T}$TYPE_WORD" >&6
11828 echo "$as_me:$LINENO: checking type name for dword" >&5
11829 echo $ECHO_N "checking type name for dword... $ECHO_C" >&6
11830 TYPE_DWORD=`type_name 4`
11831 echo "$as_me:$LINENO: result: $TYPE_DWORD" >&5
11832 echo "${ECHO_T}$TYPE_DWORD" >&6
11833 cat >>confdefs.h <<_ACEOF
11834 #define TYPE_BYTE $TYPE_BYTE
11837 cat >>confdefs.h <<_ACEOF
11838 #define TYPE_WORD $TYPE_WORD
11841 cat >>confdefs.h <<_ACEOF
11842 #define TYPE_DWORD $TYPE_DWORD
11846 if echo $TYPE_DWORD|grep short >/dev/null; then
11848 elif echo $TYPE_DWORD|grep long >/dev/null; then
11854 if echo $TYPE_WORD|grep short >/dev/null; then M="h"
11855 elif echo $TYPE_WORD|grep long >/dev/null; then M="l"
11859 cat >>confdefs.h <<_ACEOF
11863 cat >>confdefs.h <<_ACEOF
11869 # Generating output files
11870 # ===========================================================================
11872 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 xa.src/Makefile gui.src/Makefile gui.src/serio.src/Makefile doc/Makefile"
11873 cat >confcache <<\_ACEOF
11874 # This file is a shell script that caches the results of configure
11875 # tests run on this system so they can be shared between configure
11876 # scripts and configure runs, see configure's option --config-cache.
11877 # It is not useful on other systems. If it contains results you don't
11878 # want to keep, you may remove or edit it.
11880 # config.status only pays attention to the cache file if you give it
11881 # the --recheck option to rerun configure.
11883 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11884 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11885 # following values.
11889 # The following way of writing the cache mishandles newlines in values,
11890 # but we know of no workaround that is simple, portable, and efficient.
11891 # So, don't put newlines in cache variables' values.
11892 # Ultrix sh set writes to stderr and can't be redirected directly,
11893 # and sets the high bit in the cache file unless we assign to the vars.
11896 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11898 # `set' does not quote correctly, so add quotes (double-quote
11899 # substitution turns \\\\ into \\, and sed turns \\ into \).
11902 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11905 # `set' quotes correctly as required by POSIX, so do not add quotes.
11907 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11914 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11916 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11918 if cmp -s $cache_file confcache; then :; else
11919 if test -w $cache_file; then
11920 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11921 cat confcache >$cache_file
11923 echo "not updating unwritable cache $cache_file"
11928 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11929 # Let make expand exec_prefix.
11930 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11932 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11933 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11934 # trailing colons and then remove the whole line if VPATH becomes empty
11935 # (actually we leave an empty line to preserve line numbers).
11936 if test "x$srcdir" = x.; then
11937 ac_vpsub='/^[ ]*VPATH[ ]*=/{
11938 s/:*\$(srcdir):*/:/;
11939 s/:*\${srcdir}:*/:/;
11941 s/^\([^=]*=[ ]*\):*/\1/;
11947 DEFS=-DHAVE_CONFIG_H
11951 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11952 # 1. Remove the extension, and $U if already installed.
11953 ac_i=`echo "$ac_i" |
11954 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
11956 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
11957 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
11959 LIBOBJS=$ac_libobjs
11961 LTLIBOBJS=$ac_ltlibobjs
11965 : ${CONFIG_STATUS=./config.status}
11966 ac_clean_files_save=$ac_clean_files
11967 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11968 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11969 echo "$as_me: creating $CONFIG_STATUS" >&6;}
11970 cat >$CONFIG_STATUS <<_ACEOF
11972 # Generated by $as_me.
11973 # Run this file to recreate the current configuration.
11974 # Compiler output produced by configure, useful for debugging
11975 # configure, is in config.log if it exists.
11978 SHELL=\${CONFIG_SHELL-$SHELL}
11981 cat >>$CONFIG_STATUS <<\_ACEOF
11982 ## --------------------- ##
11983 ## M4sh Initialization. ##
11984 ## --------------------- ##
11986 # Be Bourne compatible
11987 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11990 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11991 # is contrary to our usage. Disable this feature.
11992 alias -g '${1+"$@"}'='"$@"'
11993 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11997 # Support unset when possible.
11998 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
12005 # Work around bugs in pre-3.0 UWIN ksh.
12006 $as_unset ENV MAIL MAILPATH
12012 for as_var in LANG LANGUAGE LC_ALL LC_COLLATE LC_CTYPE LC_NUMERIC LC_MESSAGES LC_TIME
12014 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
12015 eval $as_var=C; export $as_var
12021 # Required to use basename.
12022 if expr a : '\(a\)' >/dev/null 2>&1; then
12028 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
12029 as_basename=basename
12035 # Name of the executable.
12036 as_me=`$as_basename "$0" ||
12037 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12038 X"$0" : 'X\(//\)$' \| \
12039 X"$0" : 'X\(/\)$' \| \
12040 . : '\(.\)' 2>/dev/null ||
12042 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12043 /^X\/\(\/\/\)$/{ s//\1/; q; }
12044 /^X\/\(\/\).*/{ s//\1/; q; }
12048 # PATH needs CR, and LINENO needs CR and PATH.
12049 # Avoid depending upon Character Ranges.
12050 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12051 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12052 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12053 as_cr_digits='0123456789'
12054 as_cr_alnum=$as_cr_Letters$as_cr_digits
12056 # The user is always right.
12057 if test "${PATH_SEPARATOR+set}" != set; then
12058 echo "#! /bin/sh" >conftest.sh
12059 echo "exit 0" >>conftest.sh
12060 chmod +x conftest.sh
12061 if (PATH="/nonexistent;."; conftest.sh) >/dev/null 2>&1; then
12070 as_lineno_1=$LINENO
12071 as_lineno_2=$LINENO
12072 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12073 test "x$as_lineno_1" != "x$as_lineno_2" &&
12074 test "x$as_lineno_3" = "x$as_lineno_2" || {
12075 # Find who we are. Look in the path if we contain no path at all
12078 *[\\/]* ) as_myself=$0 ;;
12079 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12080 for as_dir in $PATH
12083 test -z "$as_dir" && as_dir=.
12084 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12089 # We did not find ourselves, most probably we were run as `sh COMMAND'
12090 # in which case we are not to be found in the path.
12091 if test "x$as_myself" = x; then
12094 if test ! -f "$as_myself"; then
12095 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12096 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12097 { (exit 1); exit 1; }; }
12099 case $CONFIG_SHELL in
12101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12102 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12105 test -z "$as_dir" && as_dir=.
12106 for as_base in sh bash ksh sh5; do
12109 if ("$as_dir/$as_base" -c '
12110 as_lineno_1=$LINENO
12111 as_lineno_2=$LINENO
12112 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12113 test "x$as_lineno_1" != "x$as_lineno_2" &&
12114 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
12115 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12116 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12117 CONFIG_SHELL=$as_dir/$as_base
12118 export CONFIG_SHELL
12119 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12127 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12128 # uniformly replaced by the line number. The first 'sed' inserts a
12129 # line-number line before each line; the second 'sed' does the real
12130 # work. The second script uses 'N' to pair each line-number line
12131 # with the numbered line, and appends trailing '-' during
12132 # substitution so that $LINENO is not a special case at line end.
12133 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12134 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
12135 sed '=' <$as_myself |
12140 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12143 s,^['$as_cr_digits']*\n,,
12144 ' >$as_me.lineno &&
12145 chmod +x $as_me.lineno ||
12146 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12147 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12148 { (exit 1); exit 1; }; }
12150 # Don't try to exec as it changes $[0], causing all sort of problems
12151 # (the dirname of $[0] is not the place where we might find the
12152 # original and so on. Autoconf is especially sensible to this).
12154 # Exit status is that of the last command.
12159 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12160 *c*,-n*) ECHO_N= ECHO_C='
12162 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12163 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
12166 if expr a : '\(a\)' >/dev/null 2>&1; then
12172 rm -f conf$$ conf$$.exe conf$$.file
12174 if ln -s conf$$.file conf$$ 2>/dev/null; then
12175 # We could just check for DJGPP; but this test a) works b) is more generic
12176 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12177 if test -f conf$$.exe; then
12178 # Don't use ln at all; we don't have any links
12183 elif ln conf$$.file conf$$ 2>/dev/null; then
12188 rm -f conf$$ conf$$.exe conf$$.file
12190 if mkdir -p . 2>/dev/null; then
12196 as_executable_p="test -f"
12198 # Sed expression to map a string onto a valid CPP name.
12199 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
12201 # Sed expression to map a string onto a valid variable name.
12202 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
12206 # We need space, tab and new line, in precisely that order.
12216 # Open the log real soon, to keep \$[0] and so on meaningful, and to
12217 # report actual input values of CONFIG_FILES etc. instead of their
12218 # values after options handling. Logging --version etc. is OK.
12222 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12223 ## Running $as_me. ##
12228 This file was extended by $as_me, which was
12229 generated by GNU Autoconf 2.54. Invocation command line was
12231 CONFIG_FILES = $CONFIG_FILES
12232 CONFIG_HEADERS = $CONFIG_HEADERS
12233 CONFIG_LINKS = $CONFIG_LINKS
12234 CONFIG_COMMANDS = $CONFIG_COMMANDS
12238 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12242 # Files that config.status was made for.
12243 if test -n "$ac_config_files"; then
12244 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12247 if test -n "$ac_config_headers"; then
12248 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12251 if test -n "$ac_config_links"; then
12252 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12255 if test -n "$ac_config_commands"; then
12256 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12259 cat >>$CONFIG_STATUS <<\_ACEOF
12262 \`$as_me' instantiates files from templates according to the
12263 current configuration.
12265 Usage: $0 [OPTIONS] [FILE]...
12267 -h, --help print this help, then exit
12268 -V, --version print version number, then exit
12269 -d, --debug don't remove temporary files
12270 --recheck update $as_me by reconfiguring in the same conditions
12271 --file=FILE[:TEMPLATE]
12272 instantiate the configuration file FILE
12273 --header=FILE[:TEMPLATE]
12274 instantiate the configuration header FILE
12276 Configuration files:
12279 Configuration headers:
12282 Report bugs to <bug-autoconf@gnu.org>."
12285 cat >>$CONFIG_STATUS <<_ACEOF
12288 configured by $0, generated by GNU Autoconf 2.54,
12289 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12291 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
12292 Free Software Foundation, Inc.
12293 This config.status script is free software; the Free Software Foundation
12294 gives unlimited permission to copy, distribute and modify it."
12299 cat >>$CONFIG_STATUS <<\_ACEOF
12300 # If no file are specified by the user, then we need to provide default
12301 # value. By we need to know if files were specified by the user.
12307 ac_option=`expr "x$1" : 'x\([^=]*\)='`
12308 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12316 *) # This is not an option, so the user has probably given explicit
12319 ac_need_defaults=false;;
12323 # Handling of the options.
12325 cat >>$CONFIG_STATUS <<_ACEOF
12326 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12327 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
12328 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
12330 cat >>$CONFIG_STATUS <<\_ACEOF
12331 --version | --vers* | -V )
12332 echo "$ac_cs_version"; exit 0 ;;
12334 # Conflict between --help and --header
12335 { { echo "$as_me:$LINENO: error: ambiguous option: $1
12336 Try \`$0 --help' for more information." >&5
12337 echo "$as_me: error: ambiguous option: $1
12338 Try \`$0 --help' for more information." >&2;}
12339 { (exit 1); exit 1; }; };;
12340 --help | --hel | -h )
12341 echo "$ac_cs_usage"; exit 0 ;;
12342 --debug | --d* | -d )
12344 --file | --fil | --fi | --f )
12346 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12347 ac_need_defaults=false;;
12348 --header | --heade | --head | --hea )
12350 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12351 ac_need_defaults=false;;
12353 # This is an error.
12354 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12355 Try \`$0 --help' for more information." >&5
12356 echo "$as_me: error: unrecognized option: $1
12357 Try \`$0 --help' for more information." >&2;}
12358 { (exit 1); exit 1; }; } ;;
12360 *) ac_config_targets="$ac_config_targets $1" ;;
12372 cat >>$CONFIG_STATUS <<\_ACEOF
12373 for ac_config_target in $ac_config_targets
12375 case "$ac_config_target" in
12376 # Handling of arguments.
12377 "main.mk" ) CONFIG_FILES="$CONFIG_FILES main.mk:main_in.mk" ;;
12378 "packages.mk" ) CONFIG_FILES="$CONFIG_FILES packages.mk:packages_in.mk" ;;
12379 "sim.src/Makefile" ) CONFIG_FILES="$CONFIG_FILES sim.src/Makefile" ;;
12380 "cmd.src/Makefile" ) CONFIG_FILES="$CONFIG_FILES cmd.src/Makefile" ;;
12381 "s51.src/Makefile" ) CONFIG_FILES="$CONFIG_FILES s51.src/Makefile" ;;
12382 "avr.src/Makefile" ) CONFIG_FILES="$CONFIG_FILES avr.src/Makefile" ;;
12383 "z80.src/Makefile" ) CONFIG_FILES="$CONFIG_FILES z80.src/Makefile" ;;
12384 "xa.src/Makefile" ) CONFIG_FILES="$CONFIG_FILES xa.src/Makefile" ;;
12385 "gui.src/Makefile" ) CONFIG_FILES="$CONFIG_FILES gui.src/Makefile" ;;
12386 "gui.src/serio.src/Makefile" ) CONFIG_FILES="$CONFIG_FILES gui.src/serio.src/Makefile" ;;
12387 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
12388 "ddconfig.h" ) CONFIG_HEADERS="$CONFIG_HEADERS ddconfig.h:ddconfig_in.h" ;;
12389 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12390 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12391 { (exit 1); exit 1; }; };;
12395 # If the user did not use the arguments to specify the items to instantiate,
12396 # then the envvar interface is used. Set only those that are not.
12397 # We use the long form for the default assignment because of an extremely
12398 # bizarre bug on SunOS 4.1.3.
12399 if $ac_need_defaults; then
12400 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12401 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12404 # Create a temporary directory, and hook for its removal unless debugging.
12407 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12408 trap '{ (exit 1); exit 1; }' 1 2 13 15
12411 # Create a (secure) tmp directory for tmp files.
12414 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
12415 test -n "$tmp" && test -d "$tmp"
12418 tmp=$TMPDIR/cs$$-$RANDOM
12419 (umask 077 && mkdir $tmp)
12422 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
12423 { (exit 1); exit 1; }
12428 cat >>$CONFIG_STATUS <<_ACEOF
12431 # CONFIG_FILES section.
12434 # No need to generate the scripts if there are no CONFIG_FILES.
12435 # This happens for instance when ./config.status config.h
12436 if test -n "\$CONFIG_FILES"; then
12437 # Protect against being on the right side of a sed subst in config.status.
12438 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12439 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12440 s,@SHELL@,$SHELL,;t t
12441 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12442 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12443 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12444 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12445 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12446 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12447 s,@exec_prefix@,$exec_prefix,;t t
12448 s,@prefix@,$prefix,;t t
12449 s,@program_transform_name@,$program_transform_name,;t t
12450 s,@bindir@,$bindir,;t t
12451 s,@sbindir@,$sbindir,;t t
12452 s,@libexecdir@,$libexecdir,;t t
12453 s,@datadir@,$datadir,;t t
12454 s,@sysconfdir@,$sysconfdir,;t t
12455 s,@sharedstatedir@,$sharedstatedir,;t t
12456 s,@localstatedir@,$localstatedir,;t t
12457 s,@libdir@,$libdir,;t t
12458 s,@includedir@,$includedir,;t t
12459 s,@oldincludedir@,$oldincludedir,;t t
12460 s,@infodir@,$infodir,;t t
12461 s,@mandir@,$mandir,;t t
12462 s,@build_alias@,$build_alias,;t t
12463 s,@host_alias@,$host_alias,;t t
12464 s,@target_alias@,$target_alias,;t t
12465 s,@DEFS@,$DEFS,;t t
12466 s,@ECHO_C@,$ECHO_C,;t t
12467 s,@ECHO_N@,$ECHO_N,;t t
12468 s,@ECHO_T@,$ECHO_T,;t t
12469 s,@LIBS@,$LIBS,;t t
12471 s,@VERSION@,$VERSION,;t t
12472 s,@VERSIONHI@,$VERSIONHI,;t t
12473 s,@VERSIONLO@,$VERSIONLO,;t t
12474 s,@VERSIONP@,$VERSIONP,;t t
12475 s,@enable_ucsim@,$enable_ucsim,;t t
12476 s,@enable_dlso@,$enable_dlso,;t t
12477 s,@enable_51@,$enable_51,;t t
12478 s,@enable_avr@,$enable_avr,;t t
12479 s,@enable_z80@,$enable_z80,;t t
12480 s,@enable_xa@,$enable_xa,;t t
12481 s,@enable_serio@,$enable_serio,;t t
12483 s,@CXXFLAGS@,$CXXFLAGS,;t t
12484 s,@LDFLAGS@,$LDFLAGS,;t t
12485 s,@CPPFLAGS@,$CPPFLAGS,;t t
12486 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
12487 s,@EXEEXT@,$EXEEXT,;t t
12488 s,@OBJEXT@,$OBJEXT,;t t
12489 s,@CXXCPP@,$CXXCPP,;t t
12490 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12491 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12492 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12493 s,@RANLIB@,$RANLIB,;t t
12494 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
12495 s,@STRIP@,$STRIP,;t t
12496 s,@build@,$build,;t t
12497 s,@build_cpu@,$build_cpu,;t t
12498 s,@build_vendor@,$build_vendor,;t t
12499 s,@build_os@,$build_os,;t t
12500 s,@host@,$host,;t t
12501 s,@host_cpu@,$host_cpu,;t t
12502 s,@host_vendor@,$host_vendor,;t t
12503 s,@host_os@,$host_os,;t t
12505 s,@CFLAGS@,$CFLAGS,;t t
12506 s,@ac_ct_CC@,$ac_ct_CC,;t t
12507 s,@LN_S@,$LN_S,;t t
12508 s,@ECHO@,$ECHO,;t t
12509 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
12511 s,@EGREP@,$EGREP,;t t
12512 s,@LIBTOOL@,$LIBTOOL,;t t
12513 s,@LIBTOOL_DEPS@,$LIBTOOL_DEPS,;t t
12514 s,@dl_ok@,$dl_ok,;t t
12516 s,@panel_ok@,$panel_ok,;t t
12517 s,@curses_ok@,$curses_ok,;t t
12518 s,@CURSES_LIBS@,$CURSES_LIBS,;t t
12519 s,@M_OR_MM@,$M_OR_MM,;t t
12520 s,@SHAREDLIB@,$SHAREDLIB,;t t
12521 s,@PICOPT@,$PICOPT,;t t
12522 s,@dlso_ok@,$dlso_ok,;t t
12523 s,@LIBOBJS@,$LIBOBJS,;t t
12524 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
12529 cat >>$CONFIG_STATUS <<\_ACEOF
12530 # Split the substitutions into bite-sized pieces for seds with
12531 # small command number limits, like on Digital OSF/1 and HP-UX.
12532 ac_max_sed_lines=48
12533 ac_sed_frag=1 # Number of current file.
12534 ac_beg=1 # First line for current file.
12535 ac_end=$ac_max_sed_lines # Line after last line for current file.
12538 while $ac_more_lines; do
12539 if test $ac_beg -gt 1; then
12540 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12542 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12544 if test ! -s $tmp/subs.frag; then
12545 ac_more_lines=false
12547 # The purpose of the label and of the branching condition is to
12548 # speed up the sed processing (if there are no `@' at all, there
12549 # is no need to browse any of the substitutions).
12550 # These are the two extra sed commands mentioned above.
12552 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12553 if test -z "$ac_sed_cmds"; then
12554 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12556 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12558 ac_sed_frag=`expr $ac_sed_frag + 1`
12560 ac_end=`expr $ac_end + $ac_max_sed_lines`
12563 if test -z "$ac_sed_cmds"; then
12566 fi # test -n "$CONFIG_FILES"
12569 cat >>$CONFIG_STATUS <<\_ACEOF
12570 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
12571 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12573 - | *:- | *:-:* ) # input from stdin
12575 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12576 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12577 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12578 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12579 * ) ac_file_in=$ac_file.in ;;
12582 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12583 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12584 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12585 X"$ac_file" : 'X\(//\)[^/]' \| \
12586 X"$ac_file" : 'X\(//\)$' \| \
12587 X"$ac_file" : 'X\(/\)' \| \
12588 . : '\(.\)' 2>/dev/null ||
12590 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12591 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12592 /^X\(\/\/\)$/{ s//\1/; q; }
12593 /^X\(\/\).*/{ s//\1/; q; }
12595 { if $as_mkdir_p; then
12600 while test ! -d "$as_dir"; do
12601 as_dirs="$as_dir $as_dirs"
12602 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12603 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12604 X"$as_dir" : 'X\(//\)[^/]' \| \
12605 X"$as_dir" : 'X\(//\)$' \| \
12606 X"$as_dir" : 'X\(/\)' \| \
12607 . : '\(.\)' 2>/dev/null ||
12609 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12610 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12611 /^X\(\/\/\)$/{ s//\1/; q; }
12612 /^X\(\/\).*/{ s//\1/; q; }
12615 test ! -n "$as_dirs" || mkdir $as_dirs
12616 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12617 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12618 { (exit 1); exit 1; }; }; }
12622 if test "$ac_dir" != .; then
12623 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12624 # A "../" for each directory in $ac_dir_suffix.
12625 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12627 ac_dir_suffix= ac_top_builddir=
12631 .) # No --srcdir option. We are building in place.
12633 if test -z "$ac_top_builddir"; then
12636 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12638 [\\/]* | ?:[\\/]* ) # Absolute path.
12639 ac_srcdir=$srcdir$ac_dir_suffix;
12640 ac_top_srcdir=$srcdir ;;
12641 *) # Relative path.
12642 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12643 ac_top_srcdir=$ac_top_builddir$srcdir ;;
12645 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
12647 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
12648 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
12649 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
12650 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
12654 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12655 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
12658 if test x"$ac_file" != x-; then
12659 { echo "$as_me:$LINENO: creating $ac_file" >&5
12660 echo "$as_me: creating $ac_file" >&6;}
12663 # Let's still pretend it is `configure' which instantiates (i.e., don't
12664 # use $as_me), people would be surprised to read:
12665 # /* config.h. Generated by config.status. */
12666 if test x"$ac_file" = x-; then
12669 configure_input="$ac_file. "
12671 configure_input=$configure_input"Generated from `echo $ac_file_in |
12672 sed 's,.*/,,'` by configure."
12674 # First look for the input files in the build tree, otherwise in the
12676 ac_file_inputs=`IFS=:
12677 for f in $ac_file_in; do
12679 -) echo $tmp/stdin ;;
12681 # Absolute (can't be DOS-style, as IFS=:)
12682 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12683 echo "$as_me: error: cannot find input file: $f" >&2;}
12684 { (exit 1); exit 1; }; }
12687 if test -f "$f"; then
12690 elif test -f "$srcdir/$f"; then
12695 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12696 echo "$as_me: error: cannot find input file: $f" >&2;}
12697 { (exit 1); exit 1; }; }
12700 done` || { (exit 1); exit 1; }
12702 cat >>$CONFIG_STATUS <<_ACEOF
12706 cat >>$CONFIG_STATUS <<\_ACEOF
12708 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12709 s,@configure_input@,$configure_input,;t t
12710 s,@srcdir@,$ac_srcdir,;t t
12711 s,@abs_srcdir@,$ac_abs_srcdir,;t t
12712 s,@top_srcdir@,$ac_top_srcdir,;t t
12713 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
12714 s,@builddir@,$ac_builddir,;t t
12715 s,@abs_builddir@,$ac_abs_builddir,;t t
12716 s,@top_builddir@,$ac_top_builddir,;t t
12717 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
12718 s,@INSTALL@,$ac_INSTALL,;t t
12719 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
12721 if test x"$ac_file" != x-; then
12722 mv $tmp/out $ac_file
12730 cat >>$CONFIG_STATUS <<\_ACEOF
12733 # CONFIG_HEADER section.
12736 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12737 # NAME is the cpp macro being defined and VALUE is the value it is being given.
12739 # ac_d sets the value in "#define NAME VALUE" lines.
12740 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
12741 ac_dB='[ ].*$,\1#\2'
12744 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12745 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12746 ac_uB='$,\1#\2define\3'
12750 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
12751 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12753 - | *:- | *:-:* ) # input from stdin
12755 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12756 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12757 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12758 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12759 * ) ac_file_in=$ac_file.in ;;
12762 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
12763 echo "$as_me: creating $ac_file" >&6;}
12765 # First look for the input files in the build tree, otherwise in the
12767 ac_file_inputs=`IFS=:
12768 for f in $ac_file_in; do
12770 -) echo $tmp/stdin ;;
12772 # Absolute (can't be DOS-style, as IFS=:)
12773 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12774 echo "$as_me: error: cannot find input file: $f" >&2;}
12775 { (exit 1); exit 1; }; }
12778 if test -f "$f"; then
12781 elif test -f "$srcdir/$f"; then
12786 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12787 echo "$as_me: error: cannot find input file: $f" >&2;}
12788 { (exit 1); exit 1; }; }
12791 done` || { (exit 1); exit 1; }
12792 # Remove the trailing spaces.
12793 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
12797 # Transform confdefs.h into two sed scripts, `conftest.defines' and
12798 # `conftest.undefs', that substitutes the proper values into
12799 # config.h.in to produce config.h. The first handles `#define'
12800 # templates, and the second `#undef' templates.
12801 # And first: Protect against being on the right side of a sed subst in
12802 # config.status. Protect against being in an unquoted here document
12803 # in config.status.
12804 rm -f conftest.defines conftest.undefs
12805 # Using a here document instead of a string reduces the quoting nightmare.
12806 # Putting comments in sed scripts is not portable.
12808 # `end' is used to avoid that the second main sed command (meant for
12809 # 0-ary CPP macros) applies to n-ary macro definitions.
12810 # See the Autoconf documentation for `clear'.
12811 cat >confdef2sed.sed <<\_ACEOF
12816 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
12818 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
12821 # If some macros were called several times there might be several times
12822 # the same #defines, which is useless. Nevertheless, we may not want to
12823 # sort them, since we want the *last* AC-DEFINE to be honored.
12824 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
12825 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
12826 rm -f confdef2sed.sed
12828 # This sed command replaces #undef with comments. This is necessary, for
12829 # example, in the case of _POSIX_SOURCE, which is predefined and required
12830 # on some systems where configure will not decide to define it.
12831 cat >>conftest.undefs <<\_ACEOF
12832 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
12835 # Break up conftest.defines because some shells have a limit on the size
12836 # of here documents, and old seds have small limits too (100 cmds).
12837 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
12838 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
12839 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
12840 echo ' :' >>$CONFIG_STATUS
12841 rm -f conftest.tail
12842 while grep . conftest.defines >/dev/null
12844 # Write a limited-size here document to $tmp/defines.sed.
12845 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
12846 # Speed up: don't consider the non `#define' lines.
12847 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
12848 # Work around the forget-to-reset-the-flag bug.
12849 echo 't clr' >>$CONFIG_STATUS
12850 echo ': clr' >>$CONFIG_STATUS
12851 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
12853 sed -f $tmp/defines.sed $tmp/in >$tmp/out
12855 mv $tmp/out $tmp/in
12857 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
12858 rm -f conftest.defines
12859 mv conftest.tail conftest.defines
12861 rm -f conftest.defines
12862 echo ' fi # grep' >>$CONFIG_STATUS
12863 echo >>$CONFIG_STATUS
12865 # Break up conftest.undefs because some shells have a limit on the size
12866 # of here documents, and old seds have small limits too (100 cmds).
12867 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
12868 rm -f conftest.tail
12869 while grep . conftest.undefs >/dev/null
12871 # Write a limited-size here document to $tmp/undefs.sed.
12872 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
12873 # Speed up: don't consider the non `#undef'
12874 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
12875 # Work around the forget-to-reset-the-flag bug.
12876 echo 't clr' >>$CONFIG_STATUS
12877 echo ': clr' >>$CONFIG_STATUS
12878 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
12880 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
12882 mv $tmp/out $tmp/in
12884 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
12885 rm -f conftest.undefs
12886 mv conftest.tail conftest.undefs
12888 rm -f conftest.undefs
12890 cat >>$CONFIG_STATUS <<\_ACEOF
12891 # Let's still pretend it is `configure' which instantiates (i.e., don't
12892 # use $as_me), people would be surprised to read:
12893 # /* config.h. Generated by config.status. */
12894 if test x"$ac_file" = x-; then
12895 echo "/* Generated by configure. */" >$tmp/config.h
12897 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
12899 cat $tmp/in >>$tmp/config.h
12901 if test x"$ac_file" != x-; then
12902 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
12903 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12904 echo "$as_me: $ac_file is unchanged" >&6;}
12906 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12907 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12908 X"$ac_file" : 'X\(//\)[^/]' \| \
12909 X"$ac_file" : 'X\(//\)$' \| \
12910 X"$ac_file" : 'X\(/\)' \| \
12911 . : '\(.\)' 2>/dev/null ||
12913 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12914 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12915 /^X\(\/\/\)$/{ s//\1/; q; }
12916 /^X\(\/\).*/{ s//\1/; q; }
12918 { if $as_mkdir_p; then
12923 while test ! -d "$as_dir"; do
12924 as_dirs="$as_dir $as_dirs"
12925 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12926 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12927 X"$as_dir" : 'X\(//\)[^/]' \| \
12928 X"$as_dir" : 'X\(//\)$' \| \
12929 X"$as_dir" : 'X\(/\)' \| \
12930 . : '\(.\)' 2>/dev/null ||
12932 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12933 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12934 /^X\(\/\/\)$/{ s//\1/; q; }
12935 /^X\(\/\).*/{ s//\1/; q; }
12938 test ! -n "$as_dirs" || mkdir $as_dirs
12939 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12940 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12941 { (exit 1); exit 1; }; }; }
12944 mv $tmp/config.h $ac_file
12948 rm -f $tmp/config.h
12953 cat >>$CONFIG_STATUS <<\_ACEOF
12955 { (exit 0); exit 0; }
12957 chmod +x $CONFIG_STATUS
12958 ac_clean_files=$ac_clean_files_save
12961 # configure is writing to config.log, and then calls config.status.
12962 # config.status does its own redirection, appending to config.log.
12963 # Unfortunately, on DOS this fails, as config.log is still kept open
12964 # by configure, so config.status won't be able to write to it; its
12965 # output is simply discarded. So we exec the FD to /dev/null,
12966 # effectively closing config.log, so it can be properly (re)opened and
12967 # appended to by config.status. When coming back to configure, we
12968 # need to make the FD available again.
12969 if test "$no_create" != yes; then
12972 $SHELL $CONFIG_STATUS || ac_cs_success=false
12974 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12975 # would make configure fail if this is the last instruction.
12976 $ac_cs_success || { (exit 1); exit 1; }
12980 #gui.src/portmon.src/Makefile
12983 # End of configure/configure.in