3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 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.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 --enable-ucsim compile ucsim frontend"
17 --enable-dlso compile dynamically loadable shared libraries"
19 --disable-51 do not compile simulator for MCS51"
21 --disable-avr do not compile simulator for AVR"
23 --enable-z80 compile simulator for Z80"
25 --enable-xa compile simulator for XA"
27 --enable-serio compile serio GUI tool (needs curses)"
29 # Initialize some variables set by options.
30 # The variables have the same names as the options, with
31 # dashes changed to underlines.
33 cache_file=./config.cache
42 program_transform_name=s,x,x,
50 bindir='${exec_prefix}/bin'
51 sbindir='${exec_prefix}/sbin'
52 libexecdir='${exec_prefix}/libexec'
53 datadir='${prefix}/share'
54 sysconfdir='${prefix}/etc'
55 sharedstatedir='${prefix}/com'
56 localstatedir='${prefix}/var'
57 libdir='${exec_prefix}/lib'
58 includedir='${prefix}/include'
59 oldincludedir='/usr/include'
60 infodir='${prefix}/info'
61 mandir='${prefix}/man'
63 # Initialize some other variables.
66 SHELL=${CONFIG_SHELL-/bin/sh}
67 # Maximum number of lines to put in a shell here document.
74 # If the previous option needs an argument, assign it.
75 if test -n "$ac_prev"; then
76 eval "$ac_prev=\$ac_option"
82 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
86 # Accept the important Cygnus configure options, so we can diagnose typos.
90 -bindir | --bindir | --bindi | --bind | --bin | --bi)
92 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
93 bindir="$ac_optarg" ;;
95 -build | --build | --buil | --bui | --bu)
97 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
100 -cache-file | --cache-file | --cache-fil | --cache-fi \
101 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
102 ac_prev=cache_file ;;
103 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
104 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
105 cache_file="$ac_optarg" ;;
107 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
109 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
111 datadir="$ac_optarg" ;;
113 -disable-* | --disable-*)
114 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
115 # Reject names that are not valid shell variable names.
116 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
117 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
119 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
120 eval "enable_${ac_feature}=no" ;;
122 -enable-* | --enable-*)
123 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
124 # Reject names that are not valid shell variable names.
125 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
126 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
128 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
133 eval "enable_${ac_feature}='$ac_optarg'" ;;
135 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
136 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
137 | --exec | --exe | --ex)
138 ac_prev=exec_prefix ;;
139 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
140 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
141 | --exec=* | --exe=* | --ex=*)
142 exec_prefix="$ac_optarg" ;;
144 -gas | --gas | --ga | --g)
145 # Obsolete; use --with-gas.
148 -help | --help | --hel | --he)
149 # Omit some internal or obsolete options to make the list less imposing.
150 # This message is too long to be a string in the A/UX 3.1 sh.
152 Usage: configure [options] [host]
153 Options: [defaults in brackets after descriptions]
155 --cache-file=FILE cache test results in FILE
156 --help print this message
157 --no-create do not create output files
158 --quiet, --silent do not print \`checking...' messages
159 --version print the version of autoconf that created configure
160 Directory and file names:
161 --prefix=PREFIX install architecture-independent files in PREFIX
163 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
165 --bindir=DIR user executables in DIR [EPREFIX/bin]
166 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
167 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
168 --datadir=DIR read-only architecture-independent data in DIR
170 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
171 --sharedstatedir=DIR modifiable architecture-independent data in DIR
173 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
174 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
175 --includedir=DIR C header files in DIR [PREFIX/include]
176 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
177 --infodir=DIR info documentation in DIR [PREFIX/info]
178 --mandir=DIR man documentation in DIR [PREFIX/man]
179 --srcdir=DIR find the sources in DIR [configure dir or ..]
180 --program-prefix=PREFIX prepend PREFIX to installed program names
181 --program-suffix=SUFFIX append SUFFIX to installed program names
182 --program-transform-name=PROGRAM
183 run sed PROGRAM on installed program names
187 --build=BUILD configure for building on BUILD [BUILD=HOST]
188 --host=HOST configure for HOST [guessed]
189 --target=TARGET configure for TARGET [TARGET=HOST]
190 Features and packages:
191 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
192 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
193 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
194 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
195 --x-includes=DIR X include files are in DIR
196 --x-libraries=DIR X library files are in DIR
198 if test -n "$ac_help"; then
199 echo "--enable and --with options recognized:$ac_help"
203 -host | --host | --hos | --ho)
205 -host=* | --host=* | --hos=* | --ho=*)
208 -includedir | --includedir | --includedi | --included | --include \
209 | --includ | --inclu | --incl | --inc)
210 ac_prev=includedir ;;
211 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
212 | --includ=* | --inclu=* | --incl=* | --inc=*)
213 includedir="$ac_optarg" ;;
215 -infodir | --infodir | --infodi | --infod | --info | --inf)
217 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
218 infodir="$ac_optarg" ;;
220 -libdir | --libdir | --libdi | --libd)
222 -libdir=* | --libdir=* | --libdi=* | --libd=*)
223 libdir="$ac_optarg" ;;
225 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
226 | --libexe | --libex | --libe)
227 ac_prev=libexecdir ;;
228 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
229 | --libexe=* | --libex=* | --libe=*)
230 libexecdir="$ac_optarg" ;;
232 -localstatedir | --localstatedir | --localstatedi | --localstated \
233 | --localstate | --localstat | --localsta | --localst \
234 | --locals | --local | --loca | --loc | --lo)
235 ac_prev=localstatedir ;;
236 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
237 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
238 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
239 localstatedir="$ac_optarg" ;;
241 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
243 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
244 mandir="$ac_optarg" ;;
247 # Obsolete; use --without-fp.
250 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
254 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
255 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
258 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
259 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
260 | --oldin | --oldi | --old | --ol | --o)
261 ac_prev=oldincludedir ;;
262 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
263 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
264 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
265 oldincludedir="$ac_optarg" ;;
267 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
269 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
270 prefix="$ac_optarg" ;;
272 -program-prefix | --program-prefix | --program-prefi | --program-pref \
273 | --program-pre | --program-pr | --program-p)
274 ac_prev=program_prefix ;;
275 -program-prefix=* | --program-prefix=* | --program-prefi=* \
276 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
277 program_prefix="$ac_optarg" ;;
279 -program-suffix | --program-suffix | --program-suffi | --program-suff \
280 | --program-suf | --program-su | --program-s)
281 ac_prev=program_suffix ;;
282 -program-suffix=* | --program-suffix=* | --program-suffi=* \
283 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
284 program_suffix="$ac_optarg" ;;
286 -program-transform-name | --program-transform-name \
287 | --program-transform-nam | --program-transform-na \
288 | --program-transform-n | --program-transform- \
289 | --program-transform | --program-transfor \
290 | --program-transfo | --program-transf \
291 | --program-trans | --program-tran \
292 | --progr-tra | --program-tr | --program-t)
293 ac_prev=program_transform_name ;;
294 -program-transform-name=* | --program-transform-name=* \
295 | --program-transform-nam=* | --program-transform-na=* \
296 | --program-transform-n=* | --program-transform-=* \
297 | --program-transform=* | --program-transfor=* \
298 | --program-transfo=* | --program-transf=* \
299 | --program-trans=* | --program-tran=* \
300 | --progr-tra=* | --program-tr=* | --program-t=*)
301 program_transform_name="$ac_optarg" ;;
303 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
304 | -silent | --silent | --silen | --sile | --sil)
307 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
309 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
311 sbindir="$ac_optarg" ;;
313 -sharedstatedir | --sharedstatedir | --sharedstatedi \
314 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
315 | --sharedst | --shareds | --shared | --share | --shar \
317 ac_prev=sharedstatedir ;;
318 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
319 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
320 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
322 sharedstatedir="$ac_optarg" ;;
324 -site | --site | --sit)
326 -site=* | --site=* | --sit=*)
329 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
331 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
332 srcdir="$ac_optarg" ;;
334 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
335 | --syscon | --sysco | --sysc | --sys | --sy)
336 ac_prev=sysconfdir ;;
337 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
338 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
339 sysconfdir="$ac_optarg" ;;
341 -target | --target | --targe | --targ | --tar | --ta | --t)
343 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
344 target="$ac_optarg" ;;
346 -v | -verbose | --verbose | --verbos | --verbo | --verb)
349 -version | --version | --versio | --versi | --vers)
350 echo "configure generated by autoconf version 2.13"
354 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
355 # Reject names that are not valid shell variable names.
356 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
357 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
359 ac_package=`echo $ac_package| sed 's/-/_/g'`
364 eval "with_${ac_package}='$ac_optarg'" ;;
366 -without-* | --without-*)
367 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
368 # Reject names that are not valid shell variable names.
369 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
370 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
372 ac_package=`echo $ac_package| sed 's/-/_/g'`
373 eval "with_${ac_package}=no" ;;
376 # Obsolete; use --with-x.
379 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
380 | --x-incl | --x-inc | --x-in | --x-i)
381 ac_prev=x_includes ;;
382 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
383 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
384 x_includes="$ac_optarg" ;;
386 -x-libraries | --x-libraries | --x-librarie | --x-librari \
387 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
388 ac_prev=x_libraries ;;
389 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
390 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
391 x_libraries="$ac_optarg" ;;
393 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
397 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
398 echo "configure: warning: $ac_option: invalid host type" 1>&2
400 if test "x$nonopt" != xNONE; then
401 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
409 if test -n "$ac_prev"; then
410 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
413 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
415 # File descriptor usage:
418 # 2 errors and warnings
419 # 3 some systems may open it to /dev/tty
420 # 4 used on the Kubota Titan
421 # 6 checking for... messages and results
422 # 5 compiler messages saved in config.log
423 if test "$silent" = yes; then
431 This file contains any messages produced by compilers while
432 running configure, to aid debugging if configure makes a mistake.
435 # Strip out --no-create and --no-recursion so they do not pile up.
436 # Also quote any args containing shell metacharacters.
441 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
442 | --no-cr | --no-c) ;;
443 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
444 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
445 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
446 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
447 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
452 # Only set these to C if already set. These must not be set unconditionally
453 # because not all systems understand e.g. LANG=C (notably SCO).
454 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
455 # Non-C LC_CTYPE values break the ctype check.
456 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
457 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
458 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
459 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
461 # confdefs.h avoids OS command line length limits that DEFS can exceed.
462 rm -rf conftest* confdefs.h
463 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
466 # A filename unique to this package, relative to the directory that
467 # configure is in, which we can look for to find out if srcdir is correct.
468 ac_unique_file=.version
470 # Find the source files, if location was not specified.
471 if test -z "$srcdir"; then
472 ac_srcdir_defaulted=yes
473 # Try the directory containing this script, then its parent.
475 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
476 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
478 if test ! -r $srcdir/$ac_unique_file; then
482 ac_srcdir_defaulted=no
484 if test ! -r $srcdir/$ac_unique_file; then
485 if test "$ac_srcdir_defaulted" = yes; then
486 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
488 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
491 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
493 # Prefer explicitly selected file to automatically selected ones.
494 if test -z "$CONFIG_SITE"; then
495 if test "x$prefix" != xNONE; then
496 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
498 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
501 for ac_site_file in $CONFIG_SITE; do
502 if test -r "$ac_site_file"; then
503 echo "loading site script $ac_site_file"
508 if test -r "$cache_file"; then
509 echo "loading cache $cache_file"
512 echo "creating cache $cache_file"
517 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
518 ac_cpp='$CPP $CPPFLAGS'
519 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
520 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
521 cross_compiling=$ac_cv_prog_cc_cross
525 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
526 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
527 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
534 ac_n= ac_c='\c' ac_t=
540 for ac_prog in mawk gawk nawk awk
542 # Extract the first word of "$ac_prog", so it can be a program name with args.
543 set dummy $ac_prog; ac_word=$2
544 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
545 echo "configure:546: checking for $ac_word" >&5
546 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
547 echo $ac_n "(cached) $ac_c" 1>&6
549 if test -n "$AWK"; then
550 ac_cv_prog_AWK="$AWK" # Let the user override the test.
552 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
554 for ac_dir in $ac_dummy; do
555 test -z "$ac_dir" && ac_dir=.
556 if test -f $ac_dir/$ac_word; then
557 ac_cv_prog_AWK="$ac_prog"
564 AWK="$ac_cv_prog_AWK"
565 if test -n "$AWK"; then
566 echo "$ac_t""$AWK" 1>&6
568 echo "$ac_t""no" 1>&6
571 test -n "$AWK" && break
575 echo $ac_n "checking version of the package""... $ac_c" 1>&6
576 echo "configure:577: checking version of the package" >&5
577 if test -f .version; then
578 VERSION=`cat .version`
579 echo "$ac_t""$VERSION" 1>&6
582 echo "$ac_t""unknown using 0.0.0" 1>&6
584 VERSIONHI=`echo $VERSION|$AWK 'BEGIN {FS="."} {print $1}'`
585 VERSIONLO=`echo $VERSION|$AWK 'BEGIN {FS="."} {print $2}'`
586 VERSIONP=`echo $VERSION|$AWK 'BEGIN {FS="."} {print $3}'`
591 cat >> confdefs.h <<EOF
592 #define VERSIONSTR "${VERSION}"
595 cat >> confdefs.h <<EOF
596 #define VERSIONHI $VERSIONHI
599 cat >> confdefs.h <<EOF
600 #define VERSIONLO $VERSIONLO
603 cat >> confdefs.h <<EOF
604 #define VERSIONP $VERSIONP
610 # Check whether --enable-ucsim or --disable-ucsim was given.
611 if test "${enable_ucsim+set}" = set; then
612 enableval="$enable_ucsim"
613 if test $enable_ucsim != "no"; then
621 # Check whether --enable-dlso or --disable-dlso was given.
622 if test "${enable_dlso+set}" = set; then
623 enableval="$enable_dlso"
624 if test $enable_dlso != "no"; then
631 # Check whether --enable-51 or --disable-51 was given.
632 if test "${enable_51+set}" = set; then
633 enableval="$enable_51"
634 if test $enable_51 != "no"; then
641 # Check whether --enable-avr or --disable-avr was given.
642 if test "${enable_avr+set}" = set; then
643 enableval="$enable_avr"
644 if test $enable_avr != "no"; then
651 # Check whether --enable-z80 or --disable-z80 was given.
652 if test "${enable_z80+set}" = set; then
653 enableval="$enable_z80"
654 if test $enable_z80 != "no"; then
661 # Check whether --enable-xa or --disable-xa was given.
662 if test "${enable_xa+set}" = set; then
663 enableval="$enable_xa"
664 if test $enable_xa != "no"; then
671 # Check whether --enable-portmon or --disable-portmon was given.
672 if test "${enable_portmon+set}" = set; then
673 enableval="$enable_portmon"
674 if test $enable_serio != "no"; then
691 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
693 # Extract the first word of "$ac_prog", so it can be a program name with args.
694 set dummy $ac_prog; ac_word=$2
695 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
696 echo "configure:697: checking for $ac_word" >&5
697 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
698 echo $ac_n "(cached) $ac_c" 1>&6
700 if test -n "$CXX"; then
701 ac_cv_prog_CXX="$CXX" # Let the user override the test.
703 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
705 for ac_dir in $ac_dummy; do
706 test -z "$ac_dir" && ac_dir=.
707 if test -f $ac_dir/$ac_word; then
708 ac_cv_prog_CXX="$ac_prog"
715 CXX="$ac_cv_prog_CXX"
716 if test -n "$CXX"; then
717 echo "$ac_t""$CXX" 1>&6
719 echo "$ac_t""no" 1>&6
722 test -n "$CXX" && break
724 test -n "$CXX" || CXX="gcc"
727 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
728 echo "configure:729: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
731 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
732 ac_cpp='$CXXCPP $CPPFLAGS'
733 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
734 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
735 cross_compiling=$ac_cv_prog_cxx_cross
737 cat > conftest.$ac_ext << EOF
739 #line 740 "configure"
740 #include "confdefs.h"
742 int main(){return(0);}
744 if { (eval echo configure:745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
745 ac_cv_prog_cxx_works=yes
746 # If we can't run a trivial program, we are probably using a cross compiler.
747 if (./conftest; exit) 2>/dev/null; then
748 ac_cv_prog_cxx_cross=no
750 ac_cv_prog_cxx_cross=yes
753 echo "configure: failed program was:" >&5
754 cat conftest.$ac_ext >&5
755 ac_cv_prog_cxx_works=no
759 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
760 ac_cpp='$CPP $CPPFLAGS'
761 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
762 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
763 cross_compiling=$ac_cv_prog_cc_cross
765 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
766 if test $ac_cv_prog_cxx_works = no; then
767 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
769 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
770 echo "configure:771: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
771 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
772 cross_compiling=$ac_cv_prog_cxx_cross
774 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
775 echo "configure:776: checking whether we are using GNU C++" >&5
776 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
777 echo $ac_n "(cached) $ac_c" 1>&6
779 cat > conftest.C <<EOF
784 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:785: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
791 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
793 if test $ac_cv_prog_gxx = yes; then
799 ac_test_CXXFLAGS="${CXXFLAGS+set}"
800 ac_save_CXXFLAGS="$CXXFLAGS"
802 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
803 echo "configure:804: checking whether ${CXX-g++} accepts -g" >&5
804 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
805 echo $ac_n "(cached) $ac_c" 1>&6
807 echo 'void f(){}' > conftest.cc
808 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
817 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
818 if test "$ac_test_CXXFLAGS" = set; then
819 CXXFLAGS="$ac_save_CXXFLAGS"
820 elif test $ac_cv_prog_cxx_g = yes; then
821 if test "$GXX" = yes; then
827 if test "$GXX" = yes; then
834 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
835 echo "configure:836: checking how to run the C++ preprocessor" >&5
836 if test -z "$CXXCPP"; then
837 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
838 echo $ac_n "(cached) $ac_c" 1>&6
841 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
842 ac_cpp='$CXXCPP $CPPFLAGS'
843 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
844 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
845 cross_compiling=$ac_cv_prog_cxx_cross
846 CXXCPP="${CXX-g++} -E"
847 cat > conftest.$ac_ext <<EOF
848 #line 849 "configure"
849 #include "confdefs.h"
852 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
853 { (eval echo configure:854: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
854 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
855 if test -z "$ac_err"; then
859 echo "configure: failed program was:" >&5
860 cat conftest.$ac_ext >&5
865 ac_cv_prog_CXXCPP="$CXXCPP"
867 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
868 ac_cpp='$CPP $CPPFLAGS'
869 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
870 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
871 cross_compiling=$ac_cv_prog_cc_cross
874 CXXCPP="$ac_cv_prog_CXXCPP"
875 echo "$ac_t""$CXXCPP" 1>&6
878 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
879 if test -f $ac_dir/install-sh; then
881 ac_install_sh="$ac_aux_dir/install-sh -c"
883 elif test -f $ac_dir/install.sh; then
885 ac_install_sh="$ac_aux_dir/install.sh -c"
889 if test -z "$ac_aux_dir"; then
890 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
892 ac_config_guess=$ac_aux_dir/config.guess
893 ac_config_sub=$ac_aux_dir/config.sub
894 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
896 # Find a good install program. We prefer a C program (faster),
897 # so one script is as good as another. But avoid the broken or
898 # incompatible versions:
899 # SysV /etc/install, /usr/sbin/install
900 # SunOS /usr/etc/install
903 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
904 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
905 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
906 # ./install, which can be erroneously created by make from ./install.sh.
907 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
908 echo "configure:909: checking for a BSD compatible install" >&5
909 if test -z "$INSTALL"; then
910 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
911 echo $ac_n "(cached) $ac_c" 1>&6
913 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
914 for ac_dir in $PATH; do
915 # Account for people who put trailing slashes in PATH elements.
917 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
919 # OSF1 and SCO ODT 3.0 have their own names for install.
920 # Don't use installbsd from OSF since it installs stuff as root
922 for ac_prog in ginstall scoinst install; do
923 if test -f $ac_dir/$ac_prog; then
924 if test $ac_prog = install &&
925 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
926 # AIX install. It has an incompatible calling convention.
929 ac_cv_path_install="$ac_dir/$ac_prog -c"
940 if test "${ac_cv_path_install+set}" = set; then
941 INSTALL="$ac_cv_path_install"
943 # As a last resort, use the slow shell script. We don't cache a
944 # path for INSTALL within a source directory, because that will
945 # break other packages using the cache if that directory is
946 # removed, or if the path is relative.
947 INSTALL="$ac_install_sh"
950 echo "$ac_t""$INSTALL" 1>&6
952 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
953 # It thinks the first close brace ends the variable substitution.
954 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
956 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
958 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
960 # Extract the first word of "ranlib", so it can be a program name with args.
961 set dummy ranlib; ac_word=$2
962 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
963 echo "configure:964: checking for $ac_word" >&5
964 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
965 echo $ac_n "(cached) $ac_c" 1>&6
967 if test -n "$RANLIB"; then
968 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
970 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
972 for ac_dir in $ac_dummy; do
973 test -z "$ac_dir" && ac_dir=.
974 if test -f $ac_dir/$ac_word; then
975 ac_cv_prog_RANLIB="ranlib"
980 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
983 RANLIB="$ac_cv_prog_RANLIB"
984 if test -n "$RANLIB"; then
985 echo "$ac_t""$RANLIB" 1>&6
987 echo "$ac_t""no" 1>&6
991 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
992 ac_cpp='$CXXCPP $CPPFLAGS'
993 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
994 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
995 cross_compiling=$ac_cv_prog_cxx_cross
998 # Extract the first word of "strip", so it can be a program name with args.
999 set dummy strip; ac_word=$2
1000 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1001 echo "configure:1002: checking for $ac_word" >&5
1002 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1003 echo $ac_n "(cached) $ac_c" 1>&6
1005 if test -n "$STRIP"; then
1006 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1008 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1010 for ac_dir in $ac_dummy; do
1011 test -z "$ac_dir" && ac_dir=.
1012 if test -f $ac_dir/$ac_word; then
1013 ac_cv_prog_STRIP="strip"
1018 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
1021 STRIP="$ac_cv_prog_STRIP"
1022 if test -n "$STRIP"; then
1023 echo "$ac_t""$STRIP" 1>&6
1025 echo "$ac_t""no" 1>&6
1029 # Checking for header files.
1030 # ===========================================================================
1032 if test -d /stuff/include; then
1033 CPPFLAGS="$CPPFLAGS -I/stuff/include"
1036 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1037 echo "configure:1038: checking for ANSI C header files" >&5
1038 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1039 echo $ac_n "(cached) $ac_c" 1>&6
1041 cat > conftest.$ac_ext <<EOF
1042 #line 1043 "configure"
1043 #include "confdefs.h"
1049 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1050 { (eval echo configure:1051: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1051 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1052 if test -z "$ac_err"; then
1054 ac_cv_header_stdc=yes
1057 echo "configure: failed program was:" >&5
1058 cat conftest.$ac_ext >&5
1060 ac_cv_header_stdc=no
1064 if test $ac_cv_header_stdc = yes; then
1065 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1066 cat > conftest.$ac_ext <<EOF
1067 #line 1068 "configure"
1068 #include "confdefs.h"
1071 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1072 egrep "memchr" >/dev/null 2>&1; then
1076 ac_cv_header_stdc=no
1082 if test $ac_cv_header_stdc = yes; then
1083 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1084 cat > conftest.$ac_ext <<EOF
1085 #line 1086 "configure"
1086 #include "confdefs.h"
1089 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1090 egrep "free" >/dev/null 2>&1; then
1094 ac_cv_header_stdc=no
1100 if test $ac_cv_header_stdc = yes; then
1101 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1102 if test "$cross_compiling" = yes; then
1105 cat > conftest.$ac_ext <<EOF
1106 #line 1107 "configure"
1107 #include "confdefs.h"
1109 extern "C" void exit(int);
1112 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1113 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1114 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1115 int main () { int i; for (i = 0; i < 256; i++)
1116 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1120 if { (eval echo configure:1121: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1124 echo "configure: failed program was:" >&5
1125 cat conftest.$ac_ext >&5
1127 ac_cv_header_stdc=no
1135 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1136 if test $ac_cv_header_stdc = yes; then
1137 cat >> confdefs.h <<\EOF
1138 #define STDC_HEADERS 1
1143 for ac_hdr in getopt.h
1145 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1146 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1147 echo "configure:1148: checking for $ac_hdr" >&5
1148 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1149 echo $ac_n "(cached) $ac_c" 1>&6
1151 cat > conftest.$ac_ext <<EOF
1152 #line 1153 "configure"
1153 #include "confdefs.h"
1156 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1157 { (eval echo configure:1158: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1158 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1159 if test -z "$ac_err"; then
1161 eval "ac_cv_header_$ac_safe=yes"
1164 echo "configure: failed program was:" >&5
1165 cat conftest.$ac_ext >&5
1167 eval "ac_cv_header_$ac_safe=no"
1171 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1172 echo "$ac_t""yes" 1>&6
1173 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1174 cat >> confdefs.h <<EOF
1175 #define $ac_tr_hdr 1
1179 echo "$ac_t""no" 1>&6
1183 for ac_hdr in unistd.h
1185 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1186 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1187 echo "configure:1188: checking for $ac_hdr" >&5
1188 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1189 echo $ac_n "(cached) $ac_c" 1>&6
1191 cat > conftest.$ac_ext <<EOF
1192 #line 1193 "configure"
1193 #include "confdefs.h"
1196 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1197 { (eval echo configure:1198: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1198 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1199 if test -z "$ac_err"; then
1201 eval "ac_cv_header_$ac_safe=yes"
1204 echo "configure: failed program was:" >&5
1205 cat conftest.$ac_ext >&5
1207 eval "ac_cv_header_$ac_safe=no"
1211 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1212 echo "$ac_t""yes" 1>&6
1213 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1214 cat >> confdefs.h <<EOF
1215 #define $ac_tr_hdr 1
1219 echo "$ac_t""no" 1>&6
1223 ac_safe=`echo "sys/socket.h" | sed 'y%./+-%__p_%'`
1224 echo $ac_n "checking for sys/socket.h""... $ac_c" 1>&6
1225 echo "configure:1226: checking for sys/socket.h" >&5
1226 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1227 echo $ac_n "(cached) $ac_c" 1>&6
1229 cat > conftest.$ac_ext <<EOF
1230 #line 1231 "configure"
1231 #include "confdefs.h"
1232 #include <sys/socket.h>
1234 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1235 { (eval echo configure:1236: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1236 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1237 if test -z "$ac_err"; then
1239 eval "ac_cv_header_$ac_safe=yes"
1242 echo "configure: failed program was:" >&5
1243 cat conftest.$ac_ext >&5
1245 eval "ac_cv_header_$ac_safe=no"
1249 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1250 echo "$ac_t""yes" 1>&6
1251 cat >> confdefs.h <<\EOF
1252 #define SOCKET_AVAIL 1
1255 cat >> confdefs.h <<\EOF
1256 #define HAVE_SYS_SOCKET_H 1
1259 cat > conftest.$ac_ext <<EOF
1260 #line 1261 "configure"
1261 #include "confdefs.h"
1262 #include <sys/socket.h>
1264 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1265 egrep "socklen_t" >/dev/null 2>&1; then
1267 cat >> confdefs.h <<EOF
1268 #define SOCKLEN_T socklen_t
1273 cat >> confdefs.h <<EOF
1274 #define SOCKLEN_T uint
1282 echo "$ac_t""no" 1>&6
1285 ac_safe=`echo "dlfcn.h" | sed 'y%./+-%__p_%'`
1286 echo $ac_n "checking for dlfcn.h""... $ac_c" 1>&6
1287 echo "configure:1288: checking for dlfcn.h" >&5
1288 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1289 echo $ac_n "(cached) $ac_c" 1>&6
1291 cat > conftest.$ac_ext <<EOF
1292 #line 1293 "configure"
1293 #include "confdefs.h"
1296 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1297 { (eval echo configure:1298: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1298 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1299 if test -z "$ac_err"; then
1301 eval "ac_cv_header_$ac_safe=yes"
1304 echo "configure: failed program was:" >&5
1305 cat conftest.$ac_ext >&5
1307 eval "ac_cv_header_$ac_safe=no"
1311 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1312 echo "$ac_t""yes" 1>&6
1315 echo "$ac_t""no" 1>&6
1319 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
1321 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1322 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1323 echo "configure:1324: checking for $ac_hdr that defines DIR" >&5
1324 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1325 echo $ac_n "(cached) $ac_c" 1>&6
1327 cat > conftest.$ac_ext <<EOF
1328 #line 1329 "configure"
1329 #include "confdefs.h"
1330 #include <sys/types.h>
1336 if { (eval echo configure:1337: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1338 eval "ac_cv_header_dirent_$ac_safe=yes"
1340 echo "configure: failed program was:" >&5
1341 cat conftest.$ac_ext >&5
1343 eval "ac_cv_header_dirent_$ac_safe=no"
1347 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1348 echo "$ac_t""yes" 1>&6
1349 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1350 cat >> confdefs.h <<EOF
1351 #define $ac_tr_hdr 1
1353 ac_header_dirent=$ac_hdr; break
1355 echo "$ac_t""no" 1>&6
1358 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1359 if test $ac_header_dirent = dirent.h; then
1360 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1361 echo "configure:1362: checking for opendir in -ldir" >&5
1362 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1363 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1364 echo $ac_n "(cached) $ac_c" 1>&6
1366 ac_save_LIBS="$LIBS"
1368 cat > conftest.$ac_ext <<EOF
1369 #line 1370 "configure"
1370 #include "confdefs.h"
1371 /* Override any gcc2 internal prototype to avoid an error. */
1375 /* We use char because int might match the return type of a gcc2
1376 builtin and then its argument prototype would still apply. */
1383 if { (eval echo configure:1384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1385 eval "ac_cv_lib_$ac_lib_var=yes"
1387 echo "configure: failed program was:" >&5
1388 cat conftest.$ac_ext >&5
1390 eval "ac_cv_lib_$ac_lib_var=no"
1393 LIBS="$ac_save_LIBS"
1396 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1397 echo "$ac_t""yes" 1>&6
1400 echo "$ac_t""no" 1>&6
1404 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1405 echo "configure:1406: checking for opendir in -lx" >&5
1406 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1407 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1408 echo $ac_n "(cached) $ac_c" 1>&6
1410 ac_save_LIBS="$LIBS"
1412 cat > conftest.$ac_ext <<EOF
1413 #line 1414 "configure"
1414 #include "confdefs.h"
1415 /* Override any gcc2 internal prototype to avoid an error. */
1419 /* We use char because int might match the return type of a gcc2
1420 builtin and then its argument prototype would still apply. */
1427 if { (eval echo configure:1428: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1429 eval "ac_cv_lib_$ac_lib_var=yes"
1431 echo "configure: failed program was:" >&5
1432 cat conftest.$ac_ext >&5
1434 eval "ac_cv_lib_$ac_lib_var=no"
1437 LIBS="$ac_save_LIBS"
1440 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1441 echo "$ac_t""yes" 1>&6
1444 echo "$ac_t""no" 1>&6
1450 # This must be after CXXCPP
1452 echo $ac_n "checking which header file defines FD_ macros""... $ac_c" 1>&6
1453 echo "configure:1454: checking which header file defines FD_ macros" >&5
1454 if eval "test \"`echo '$''{'ucsim_cv_fd'+set}'`\" = set"; then
1455 echo $ac_n "(cached) $ac_c" 1>&6
1457 ucsim_cv_fd="unknown"
1458 cat > conftest.$ac_ext <<EOF
1459 #line 1460 "configure"
1460 #include "confdefs.h"
1462 #include <sys/time.h>
1467 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1468 egrep "yes" >/dev/null 2>&1; then
1470 ucsim_cv_fd="<sys/time.h>"
1474 cat > conftest.$ac_ext <<EOF
1475 #line 1476 "configure"
1476 #include "confdefs.h"
1478 #include <sys/types.h>
1483 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1484 egrep "yes" >/dev/null 2>&1; then
1486 ucsim_cv_fd="<sys/types.h>"
1490 cat > conftest.$ac_ext <<EOF
1491 #line 1492 "configure"
1492 #include "confdefs.h"
1494 #include <sys/select.h>
1499 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1500 egrep "yes" >/dev/null 2>&1; then
1502 ucsim_cv_fd="<sys/types.h>"
1508 echo "$ac_t""$ucsim_cv_fd" 1>&6
1510 cat >> confdefs.h <<\EOF
1511 #define FD_HEADER_OK 0
1514 if echo $ucsim_cv_fd|grep time >/dev/null 2>&1; then
1515 cat >> confdefs.h <<\EOF
1516 #define FD_NEED_TIME_H 1
1519 cat >> confdefs.h <<\EOF
1520 #define FD_HEADER_OK 1
1524 cat >> confdefs.h <<\EOF
1525 #define FD_NEED_TIME_H 0
1529 if echo $ucsim_cv_fd|grep types >/dev/null 2>&1; then
1530 cat >> confdefs.h <<\EOF
1531 #define FD_NEED_TYPES_H 1
1534 cat >> confdefs.h <<\EOF
1535 #define FD_HEADER_OK 1
1539 cat >> confdefs.h <<\EOF
1540 #define FD_NEED_TYPES_H 0
1544 if echo $ucsim_cv_fd|grep select >/dev/null 2>&1; then
1545 cat >> confdefs.h <<\EOF
1546 #define FD_NEED_SELECT_H 1
1549 cat >> confdefs.h <<\EOF
1550 #define FD_HEADER_OK 1
1554 cat >> confdefs.h <<\EOF
1555 #define FD_NEED_SELECT_H 0
1560 cat >> confdefs.h <<EOF
1561 #define HEADER_FD ${ucsim_cv_fd}
1566 # Checking for functions/libs
1567 # ===========================================================================
1568 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
1569 echo "configure:1570: checking for socket in -lsocket" >&5
1570 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
1571 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1572 echo $ac_n "(cached) $ac_c" 1>&6
1574 ac_save_LIBS="$LIBS"
1575 LIBS="-lsocket $LIBS"
1576 cat > conftest.$ac_ext <<EOF
1577 #line 1578 "configure"
1578 #include "confdefs.h"
1579 /* Override any gcc2 internal prototype to avoid an error. */
1583 /* We use char because int might match the return type of a gcc2
1584 builtin and then its argument prototype would still apply. */
1591 if { (eval echo configure:1592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1593 eval "ac_cv_lib_$ac_lib_var=yes"
1595 echo "configure: failed program was:" >&5
1596 cat conftest.$ac_ext >&5
1598 eval "ac_cv_lib_$ac_lib_var=no"
1601 LIBS="$ac_save_LIBS"
1604 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1605 echo "$ac_t""yes" 1>&6
1606 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1607 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1608 cat >> confdefs.h <<EOF
1609 #define $ac_tr_lib 1
1612 LIBS="-lsocket $LIBS"
1615 echo "$ac_t""no" 1>&6
1618 echo $ac_n "checking for xdr_short in -lnsl""... $ac_c" 1>&6
1619 echo "configure:1620: checking for xdr_short in -lnsl" >&5
1620 ac_lib_var=`echo nsl'_'xdr_short | sed 'y%./+-%__p_%'`
1621 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1622 echo $ac_n "(cached) $ac_c" 1>&6
1624 ac_save_LIBS="$LIBS"
1626 cat > conftest.$ac_ext <<EOF
1627 #line 1628 "configure"
1628 #include "confdefs.h"
1629 /* Override any gcc2 internal prototype to avoid an error. */
1633 /* We use char because int might match the return type of a gcc2
1634 builtin and then its argument prototype would still apply. */
1641 if { (eval echo configure:1642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1643 eval "ac_cv_lib_$ac_lib_var=yes"
1645 echo "configure: failed program was:" >&5
1646 cat conftest.$ac_ext >&5
1648 eval "ac_cv_lib_$ac_lib_var=no"
1651 LIBS="$ac_save_LIBS"
1654 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1655 echo "$ac_t""yes" 1>&6
1656 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1657 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1658 cat >> confdefs.h <<EOF
1659 #define $ac_tr_lib 1
1665 echo "$ac_t""no" 1>&6
1668 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
1669 echo "configure:1670: checking for dlopen in -ldl" >&5
1670 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
1671 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1672 echo $ac_n "(cached) $ac_c" 1>&6
1674 ac_save_LIBS="$LIBS"
1676 cat > conftest.$ac_ext <<EOF
1677 #line 1678 "configure"
1678 #include "confdefs.h"
1679 /* Override any gcc2 internal prototype to avoid an error. */
1683 /* We use char because int might match the return type of a gcc2
1684 builtin and then its argument prototype would still apply. */
1691 if { (eval echo configure:1692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1693 eval "ac_cv_lib_$ac_lib_var=yes"
1695 echo "configure: failed program was:" >&5
1696 cat conftest.$ac_ext >&5
1698 eval "ac_cv_lib_$ac_lib_var=no"
1701 LIBS="$ac_save_LIBS"
1704 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1705 echo "$ac_t""yes" 1>&6
1709 echo "$ac_t""no" 1>&6
1716 echo $ac_n "checking for panel_above in -lpanel""... $ac_c" 1>&6
1717 echo "configure:1718: checking for panel_above in -lpanel" >&5
1718 ac_lib_var=`echo panel'_'panel_above | sed 'y%./+-%__p_%'`
1719 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1720 echo $ac_n "(cached) $ac_c" 1>&6
1722 ac_save_LIBS="$LIBS"
1723 LIBS="-lpanel -lcurses $LIBS"
1724 cat > conftest.$ac_ext <<EOF
1725 #line 1726 "configure"
1726 #include "confdefs.h"
1727 /* Override any gcc2 internal prototype to avoid an error. */
1731 /* We use char because int might match the return type of a gcc2
1732 builtin and then its argument prototype would still apply. */
1739 if { (eval echo configure:1740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1741 eval "ac_cv_lib_$ac_lib_var=yes"
1743 echo "configure: failed program was:" >&5
1744 cat conftest.$ac_ext >&5
1746 eval "ac_cv_lib_$ac_lib_var=no"
1749 LIBS="$ac_save_LIBS"
1752 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1753 echo "$ac_t""yes" 1>&6
1756 CURSES_LIBS="-lpanel -lcurses"
1759 echo "$ac_t""no" 1>&6
1761 echo $ac_n "checking for nl in -lcurses""... $ac_c" 1>&6
1762 echo "configure:1763: checking for nl in -lcurses" >&5
1763 ac_lib_var=`echo curses'_'nl | sed 'y%./+-%__p_%'`
1764 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1765 echo $ac_n "(cached) $ac_c" 1>&6
1767 ac_save_LIBS="$LIBS"
1768 LIBS="-lcurses $LIBS"
1769 cat > conftest.$ac_ext <<EOF
1770 #line 1771 "configure"
1771 #include "confdefs.h"
1772 /* Override any gcc2 internal prototype to avoid an error. */
1776 /* We use char because int might match the return type of a gcc2
1777 builtin and then its argument prototype would still apply. */
1784 if { (eval echo configure:1785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1786 eval "ac_cv_lib_$ac_lib_var=yes"
1788 echo "configure: failed program was:" >&5
1789 cat conftest.$ac_ext >&5
1791 eval "ac_cv_lib_$ac_lib_var=no"
1794 LIBS="$ac_save_LIBS"
1797 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1798 echo "$ac_t""yes" 1>&6
1800 CURSES_LIBS="-lcurses"
1803 echo "$ac_t""no" 1>&6
1814 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
1815 echo "configure:1816: checking for vprintf" >&5
1816 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
1817 echo $ac_n "(cached) $ac_c" 1>&6
1819 cat > conftest.$ac_ext <<EOF
1820 #line 1821 "configure"
1821 #include "confdefs.h"
1822 /* System header to define __stub macros and hopefully few prototypes,
1823 which can conflict with char vprintf(); below. */
1825 /* Override any gcc2 internal prototype to avoid an error. */
1829 /* We use char because int might match the return type of a gcc2
1830 builtin and then its argument prototype would still apply. */
1835 /* The GNU C library defines this for functions which it implements
1836 to always fail with ENOSYS. Some functions are actually named
1837 something starting with __ and the normal name is an alias. */
1838 #if defined (__stub_vprintf) || defined (__stub___vprintf)
1846 if { (eval echo configure:1847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1848 eval "ac_cv_func_vprintf=yes"
1850 echo "configure: failed program was:" >&5
1851 cat conftest.$ac_ext >&5
1853 eval "ac_cv_func_vprintf=no"
1858 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
1859 echo "$ac_t""yes" 1>&6
1860 cat >> confdefs.h <<\EOF
1861 #define HAVE_VPRINTF 1
1865 echo "$ac_t""no" 1>&6
1868 if test "$ac_cv_func_vprintf" != yes; then
1869 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
1870 echo "configure:1871: checking for _doprnt" >&5
1871 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
1872 echo $ac_n "(cached) $ac_c" 1>&6
1874 cat > conftest.$ac_ext <<EOF
1875 #line 1876 "configure"
1876 #include "confdefs.h"
1877 /* System header to define __stub macros and hopefully few prototypes,
1878 which can conflict with char _doprnt(); below. */
1880 /* Override any gcc2 internal prototype to avoid an error. */
1884 /* We use char because int might match the return type of a gcc2
1885 builtin and then its argument prototype would still apply. */
1890 /* The GNU C library defines this for functions which it implements
1891 to always fail with ENOSYS. Some functions are actually named
1892 something starting with __ and the normal name is an alias. */
1893 #if defined (__stub__doprnt) || defined (__stub____doprnt)
1901 if { (eval echo configure:1902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1903 eval "ac_cv_func__doprnt=yes"
1905 echo "configure: failed program was:" >&5
1906 cat conftest.$ac_ext >&5
1908 eval "ac_cv_func__doprnt=no"
1913 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
1914 echo "$ac_t""yes" 1>&6
1915 cat >> confdefs.h <<\EOF
1916 #define HAVE_DOPRNT 1
1920 echo "$ac_t""no" 1>&6
1925 for ac_func in vsnprintf vasprintf
1927 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1928 echo "configure:1929: checking for $ac_func" >&5
1929 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1930 echo $ac_n "(cached) $ac_c" 1>&6
1932 cat > conftest.$ac_ext <<EOF
1933 #line 1934 "configure"
1934 #include "confdefs.h"
1935 /* System header to define __stub macros and hopefully few prototypes,
1936 which can conflict with char $ac_func(); below. */
1938 /* Override any gcc2 internal prototype to avoid an error. */
1942 /* We use char because int might match the return type of a gcc2
1943 builtin and then its argument prototype would still apply. */
1948 /* The GNU C library defines this for functions which it implements
1949 to always fail with ENOSYS. Some functions are actually named
1950 something starting with __ and the normal name is an alias. */
1951 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1959 if { (eval echo configure:1960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1961 eval "ac_cv_func_$ac_func=yes"
1963 echo "configure: failed program was:" >&5
1964 cat conftest.$ac_ext >&5
1966 eval "ac_cv_func_$ac_func=no"
1971 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1972 echo "$ac_t""yes" 1>&6
1973 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1974 cat >> confdefs.h <<EOF
1975 #define $ac_tr_func 1
1979 echo "$ac_t""no" 1>&6
1983 for ac_func in strlen strcpy strcat strstr strcmp strerror strtok strdup
1985 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1986 echo "configure:1987: checking for $ac_func" >&5
1987 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1988 echo $ac_n "(cached) $ac_c" 1>&6
1990 cat > conftest.$ac_ext <<EOF
1991 #line 1992 "configure"
1992 #include "confdefs.h"
1993 /* System header to define __stub macros and hopefully few prototypes,
1994 which can conflict with char $ac_func(); below. */
1996 /* Override any gcc2 internal prototype to avoid an error. */
2000 /* We use char because int might match the return type of a gcc2
2001 builtin and then its argument prototype would still apply. */
2006 /* The GNU C library defines this for functions which it implements
2007 to always fail with ENOSYS. Some functions are actually named
2008 something starting with __ and the normal name is an alias. */
2009 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2017 if { (eval echo configure:2018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2019 eval "ac_cv_func_$ac_func=yes"
2021 echo "configure: failed program was:" >&5
2022 cat conftest.$ac_ext >&5
2024 eval "ac_cv_func_$ac_func=no"
2029 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2030 echo "$ac_t""yes" 1>&6
2031 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2032 cat >> confdefs.h <<EOF
2033 #define $ac_tr_func 1
2037 echo "$ac_t""no" 1>&6
2041 for ac_func in strchr memcpy
2043 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2044 echo "configure:2045: checking for $ac_func" >&5
2045 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2046 echo $ac_n "(cached) $ac_c" 1>&6
2048 cat > conftest.$ac_ext <<EOF
2049 #line 2050 "configure"
2050 #include "confdefs.h"
2051 /* System header to define __stub macros and hopefully few prototypes,
2052 which can conflict with char $ac_func(); below. */
2054 /* Override any gcc2 internal prototype to avoid an error. */
2058 /* We use char because int might match the return type of a gcc2
2059 builtin and then its argument prototype would still apply. */
2064 /* The GNU C library defines this for functions which it implements
2065 to always fail with ENOSYS. Some functions are actually named
2066 something starting with __ and the normal name is an alias. */
2067 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2075 if { (eval echo configure:2076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2077 eval "ac_cv_func_$ac_func=yes"
2079 echo "configure: failed program was:" >&5
2080 cat conftest.$ac_ext >&5
2082 eval "ac_cv_func_$ac_func=no"
2087 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2088 echo "$ac_t""yes" 1>&6
2089 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2090 cat >> confdefs.h <<EOF
2091 #define $ac_tr_func 1
2095 echo "$ac_t""no" 1>&6
2099 for ac_func in fgets
2101 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2102 echo "configure:2103: checking for $ac_func" >&5
2103 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2104 echo $ac_n "(cached) $ac_c" 1>&6
2106 cat > conftest.$ac_ext <<EOF
2107 #line 2108 "configure"
2108 #include "confdefs.h"
2109 /* System header to define __stub macros and hopefully few prototypes,
2110 which can conflict with char $ac_func(); below. */
2112 /* Override any gcc2 internal prototype to avoid an error. */
2116 /* We use char because int might match the return type of a gcc2
2117 builtin and then its argument prototype would still apply. */
2122 /* The GNU C library defines this for functions which it implements
2123 to always fail with ENOSYS. Some functions are actually named
2124 something starting with __ and the normal name is an alias. */
2125 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2133 if { (eval echo configure:2134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2135 eval "ac_cv_func_$ac_func=yes"
2137 echo "configure: failed program was:" >&5
2138 cat conftest.$ac_ext >&5
2140 eval "ac_cv_func_$ac_func=no"
2145 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2146 echo "$ac_t""yes" 1>&6
2147 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2148 cat >> confdefs.h <<EOF
2149 #define $ac_tr_func 1
2153 echo "$ac_t""no" 1>&6
2157 for ac_func in yylex
2159 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2160 echo "configure:2161: checking for $ac_func" >&5
2161 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2162 echo $ac_n "(cached) $ac_c" 1>&6
2164 cat > conftest.$ac_ext <<EOF
2165 #line 2166 "configure"
2166 #include "confdefs.h"
2167 /* System header to define __stub macros and hopefully few prototypes,
2168 which can conflict with char $ac_func(); below. */
2170 /* Override any gcc2 internal prototype to avoid an error. */
2174 /* We use char because int might match the return type of a gcc2
2175 builtin and then its argument prototype would still apply. */
2180 /* The GNU C library defines this for functions which it implements
2181 to always fail with ENOSYS. Some functions are actually named
2182 something starting with __ and the normal name is an alias. */
2183 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2191 if { (eval echo configure:2192: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2193 eval "ac_cv_func_$ac_func=yes"
2195 echo "configure: failed program was:" >&5
2196 cat conftest.$ac_ext >&5
2198 eval "ac_cv_func_$ac_func=no"
2203 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2204 echo "$ac_t""yes" 1>&6
2205 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2206 cat >> confdefs.h <<EOF
2207 #define $ac_tr_func 1
2211 echo "$ac_t""no" 1>&6
2216 echo $ac_n "checking whether scanf knows %a""... $ac_c" 1>&6
2217 echo "configure:2218: checking whether scanf knows %a" >&5
2218 if eval "test \"`echo '$''{'ucsim_cv_scanf_a'+set}'`\" = set"; then
2219 echo $ac_n "(cached) $ac_c" 1>&6
2221 echo "a b" >conftest.data
2222 if test "$cross_compiling" = yes; then
2223 ucsim_cv_scanf_a="unknown"
2225 cat > conftest.$ac_ext <<EOF
2226 #line 2227 "configure"
2227 #include "confdefs.h"
2229 extern "C" void exit(int);
2238 if ((f= fopen("conftest.data", "r")) == NULL)
2240 i= fscanf(f, " %a[a-z] ", &a);
2249 if { (eval echo configure:2250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2251 ucsim_cv_scanf_a="yes"
2253 echo "configure: failed program was:" >&5
2254 cat conftest.$ac_ext >&5
2256 ucsim_cv_scanf_a="no"
2264 echo "$ac_t""$ucsim_cv_scanf_a" 1>&6
2265 if test "$ucsim_cv_scanf_a" = "yes"; then
2266 cat >> confdefs.h <<\EOF
2272 echo $ac_n "checking whether getcwd is GNUish""... $ac_c" 1>&6
2273 echo "configure:2274: checking whether getcwd is GNUish" >&5
2274 if eval "test \"`echo '$''{'ucsim_cv_getcwd'+set}'`\" = set"; then
2275 echo $ac_n "(cached) $ac_c" 1>&6
2277 if test "$cross_compiling" = yes; then
2278 ucsim_cv_getcwd="unknown"
2280 cat > conftest.$ac_ext <<EOF
2281 #line 2282 "configure"
2282 #include "confdefs.h"
2284 extern "C" void exit(int);
2290 if ((getcwd(NULL, 0)) == NULL)
2295 if { (eval echo configure:2296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2297 ucsim_cv_getcwd="yes"
2299 echo "configure: failed program was:" >&5
2300 cat conftest.$ac_ext >&5
2302 ucsim_cv_getcwd="no"
2310 echo "$ac_t""$ucsim_cv_getcwd" 1>&6
2311 if test "$ucsim_cv_getcwd" = "yes"; then
2312 cat >> confdefs.h <<\EOF
2313 #define GNU_GETCWD 1
2321 echo $ac_n "checking for type of length pointer parameter of accept""... $ac_c" 1>&6
2322 echo "configure:2323: checking for type of length pointer parameter of accept" >&5
2323 if eval "test \"`echo '$''{'ucsim_cv_accept_length_type'+set}'`\" = set"; then
2324 echo $ac_n "(cached) $ac_c" 1>&6
2326 ac_save_CPPFLAGS="$CPPFLAGS"
2327 ucsim_cv_accept_length_type=no
2328 for ac_val in int size_t socklen_t; do
2329 CPPFLAGS="$ac_save_CPPFLAGS -DACCEPT_SOCKLEN_T=$ac_val"
2330 cat > conftest.$ac_ext <<EOF
2331 #line 2332 "configure"
2332 #include "confdefs.h"
2333 #include <sys/types.h>
2334 #include <sys/socket.h>
2336 struct sockaddr a; $ac_val len; accept (0, &a, &len);
2339 if { (eval echo configure:2340: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2341 ucsim_cv_accept_length_type=$ac_val; break
2343 echo "configure: failed program was:" >&5
2344 cat conftest.$ac_ext >&5
2348 CPPFLAGS="$ac_save_CPPFLAGS"
2351 echo "$ac_t""$ucsim_cv_accept_length_type" 1>&6
2352 if test "$ucsim_cv_accept_length_type" != no; then
2353 cat >> confdefs.h <<EOF
2354 #define ACCEPT_SOCKLEN_T $ucsim_cv_accept_length_type
2364 # DD_COPT macro checks if the compiler specified as the 1st parameter
2365 # supports option specified as the 2nd parameter
2366 # For example: DD_COPT(CXX, fPIC)
2371 # Checking characteristics of compilers and other programs
2372 # --------------------------------------------------------
2374 # Cross compiling overrides
2376 if test "$CC" = "i586-mingw32msvc-gcc"; then
2377 ac_cv_c_bigendian=no
2379 ac_cv_sizeof_short=2
2382 ac_cv_sizeof_long_long=4
2385 if test "$cross_compiling" = "no"
2387 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
2388 echo "configure:2389: checking whether byte ordering is bigendian" >&5
2389 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
2390 echo $ac_n "(cached) $ac_c" 1>&6
2392 ac_cv_c_bigendian=unknown
2393 # See if sys/param.h defines the BYTE_ORDER macro.
2394 cat > conftest.$ac_ext <<EOF
2395 #line 2396 "configure"
2396 #include "confdefs.h"
2397 #include <sys/types.h>
2398 #include <sys/param.h>
2401 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2406 if { (eval echo configure:2407: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2408 # It does; now see whether it defined to BIG_ENDIAN or not.
2409 cat > conftest.$ac_ext <<EOF
2410 #line 2411 "configure"
2411 #include "confdefs.h"
2412 #include <sys/types.h>
2413 #include <sys/param.h>
2416 #if BYTE_ORDER != BIG_ENDIAN
2421 if { (eval echo configure:2422: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2423 ac_cv_c_bigendian=yes
2425 echo "configure: failed program was:" >&5
2426 cat conftest.$ac_ext >&5
2428 ac_cv_c_bigendian=no
2432 echo "configure: failed program was:" >&5
2433 cat conftest.$ac_ext >&5
2436 if test $ac_cv_c_bigendian = unknown; then
2437 if test "$cross_compiling" = yes; then
2438 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2440 cat > conftest.$ac_ext <<EOF
2441 #line 2442 "configure"
2442 #include "confdefs.h"
2444 extern "C" void exit(int);
2447 /* Are we little or big endian? From Harbison&Steele. */
2451 char c[sizeof (long)];
2454 exit (u.c[sizeof (long) - 1] == 1);
2457 if { (eval echo configure:2458: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2459 ac_cv_c_bigendian=no
2461 echo "configure: failed program was:" >&5
2462 cat conftest.$ac_ext >&5
2464 ac_cv_c_bigendian=yes
2472 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
2473 if test $ac_cv_c_bigendian = yes; then
2474 cat >> confdefs.h <<\EOF
2475 #define WORDS_BIGENDIAN 1
2481 #echo "CROSS ENDIAN"
2482 if $CXX -v 2>&1|grep "mingw" >/dev/null 2>&1; then
2483 ac_cv_c_bigendian=no
2487 #echo "CROSS ENDIAN DONE"
2490 echo $ac_n "checking whether preprocessor accepts -MM or -M""... $ac_c" 1>&6
2491 echo "configure:2492: checking whether preprocessor accepts -MM or -M" >&5
2492 if eval "test \"`echo '$''{'ucsim_cv_MM'+set}'`\" = set"; then
2493 echo $ac_n "(cached) $ac_c" 1>&6
2495 echo "#include <stdio.h>" >_test_.c
2497 $CXXCPP -v -MM _test_.c 1>&5 2>&5
2498 if test "$?" = "0"; then
2506 echo "$ac_t""$ucsim_cv_MM" 1>&6
2507 M_OR_MM=$ucsim_cv_MM
2510 # This is the first time when CFLAGS are set/modified!!
2513 echo $ac_n "checking whether $CXX accepts -ggdb""... $ac_c" 1>&6
2514 echo "configure:2515: checking whether $CXX accepts -ggdb" >&5
2515 if eval "test \"`echo '$''{'ucsim_cv_CXXggdb'+set}'`\" = set"; then
2516 echo $ac_n "(cached) $ac_c" 1>&6
2522 $CXX -v -ggdb -c _test_.c 1>&5 2>&5
2523 if test "$?" = "0"; then
2524 ucsim_cv_CXXggdb="yes"
2526 ucsim_cv_CXXggdb="no"
2528 rm -f _test_.* a.out
2531 echo "$ac_t""$ucsim_cv_CXXggdb" 1>&6
2533 if test "$ucsim_cv_CXXggdb" = "yes"; then
2534 if test "$CXXFLAGS"x = x ;then
2537 CXXFLAGS="$CXXFLAGS -ggdb"
2542 echo $ac_n "checking whether $CXX accepts -pipe""... $ac_c" 1>&6
2543 echo "configure:2544: checking whether $CXX accepts -pipe" >&5
2544 if eval "test \"`echo '$''{'ucsim_cv_CXXpipe'+set}'`\" = set"; then
2545 echo $ac_n "(cached) $ac_c" 1>&6
2551 $CXX -v -pipe -c _test_.c 1>&5 2>&5
2552 if test "$?" = "0"; then
2553 ucsim_cv_CXXpipe="yes"
2555 ucsim_cv_CXXpipe="no"
2557 rm -f _test_.* a.out
2560 echo "$ac_t""$ucsim_cv_CXXpipe" 1>&6
2562 if test "$ucsim_cv_CXXpipe" = "yes"; then
2563 CXXFLAGS="$CXXFLAGS -pipe"
2569 echo $ac_n "checking whether $CXX accepts -fPIC""... $ac_c" 1>&6
2570 echo "configure:2571: checking whether $CXX accepts -fPIC" >&5
2571 if eval "test \"`echo '$''{'ucsim_cv_CXXfPIC'+set}'`\" = set"; then
2572 echo $ac_n "(cached) $ac_c" 1>&6
2578 $CXX -v -fPIC -c _test_.c 1>&5 2>&5
2579 if test "$?" = "0"; then
2580 ucsim_cv_CXXfPIC="yes"
2582 ucsim_cv_CXXfPIC="no"
2584 rm -f _test_.* a.out
2587 echo "$ac_t""$ucsim_cv_CXXfPIC" 1>&6
2589 if test "$ucsim_cv_CXXfPIC" = "yes"; then
2593 echo $ac_n "checking whether $CXX accepts -fpic""... $ac_c" 1>&6
2594 echo "configure:2595: checking whether $CXX accepts -fpic" >&5
2595 if eval "test \"`echo '$''{'ucsim_cv_CXXfpic'+set}'`\" = set"; then
2596 echo $ac_n "(cached) $ac_c" 1>&6
2602 $CXX -v -fpic -c _test_.c 1>&5 2>&5
2603 if test "$?" = "0"; then
2604 ucsim_cv_CXXfpic="yes"
2606 ucsim_cv_CXXfpic="no"
2608 rm -f _test_.* a.out
2611 echo "$ac_t""$ucsim_cv_CXXfpic" 1>&6
2613 if test "$ucsim_cv_CXXfpic" = "yes"; then
2617 if test "$PICOPT"x != "x"; then
2620 # If this is Cygwin neither use Position Independant Code
2622 # Quick + dirty by Bernhard
2624 if $CXX -v 2>&1 | grep -i cygwin 1>&5 2>&5; then
2632 if test $SHAREDLIB = "yes" -a $dl_ok = "yes" -a $enable_dlso = "yes"; then
2637 # Checks for typedefs, structures, and compiler characteristics.
2638 # ===========================================================================
2640 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2641 echo "configure:2642: checking return type of signal handlers" >&5
2642 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2643 echo $ac_n "(cached) $ac_c" 1>&6
2645 cat > conftest.$ac_ext <<EOF
2646 #line 2647 "configure"
2647 #include "confdefs.h"
2648 #include <sys/types.h>
2654 extern "C" void (*signal (int, void (*)(int)))(int);
2656 void (*signal ()) ();
2663 if { (eval echo configure:2664: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2665 ac_cv_type_signal=void
2667 echo "configure: failed program was:" >&5
2668 cat conftest.$ac_ext >&5
2670 ac_cv_type_signal=int
2675 echo "$ac_t""$ac_cv_type_signal" 1>&6
2676 cat >> confdefs.h <<EOF
2677 #define RETSIGTYPE $ac_cv_type_signal
2681 if test "$cross_compiling" = "no"; then
2682 echo $ac_n "checking size of char""... $ac_c" 1>&6
2683 echo "configure:2684: checking size of char" >&5
2684 if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
2685 echo $ac_n "(cached) $ac_c" 1>&6
2687 if test "$cross_compiling" = yes; then
2688 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2690 cat > conftest.$ac_ext <<EOF
2691 #line 2692 "configure"
2692 #include "confdefs.h"
2694 extern "C" void exit(int);
2699 FILE *f=fopen("conftestval", "w");
2701 fprintf(f, "%d\n", sizeof(char));
2705 if { (eval echo configure:2706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2707 ac_cv_sizeof_char=`cat conftestval`
2709 echo "configure: failed program was:" >&5
2710 cat conftest.$ac_ext >&5
2718 echo "$ac_t""$ac_cv_sizeof_char" 1>&6
2719 cat >> confdefs.h <<EOF
2720 #define SIZEOF_CHAR $ac_cv_sizeof_char
2724 echo $ac_n "checking size of short""... $ac_c" 1>&6
2725 echo "configure:2726: checking size of short" >&5
2726 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
2727 echo $ac_n "(cached) $ac_c" 1>&6
2729 if test "$cross_compiling" = yes; then
2730 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2732 cat > conftest.$ac_ext <<EOF
2733 #line 2734 "configure"
2734 #include "confdefs.h"
2736 extern "C" void exit(int);
2741 FILE *f=fopen("conftestval", "w");
2743 fprintf(f, "%d\n", sizeof(short));
2747 if { (eval echo configure:2748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2749 ac_cv_sizeof_short=`cat conftestval`
2751 echo "configure: failed program was:" >&5
2752 cat conftest.$ac_ext >&5
2754 ac_cv_sizeof_short=0
2760 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
2761 cat >> confdefs.h <<EOF
2762 #define SIZEOF_SHORT $ac_cv_sizeof_short
2766 echo $ac_n "checking size of int""... $ac_c" 1>&6
2767 echo "configure:2768: checking size of int" >&5
2768 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
2769 echo $ac_n "(cached) $ac_c" 1>&6
2771 if test "$cross_compiling" = yes; then
2772 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2774 cat > conftest.$ac_ext <<EOF
2775 #line 2776 "configure"
2776 #include "confdefs.h"
2778 extern "C" void exit(int);
2783 FILE *f=fopen("conftestval", "w");
2785 fprintf(f, "%d\n", sizeof(int));
2789 if { (eval echo configure:2790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2791 ac_cv_sizeof_int=`cat conftestval`
2793 echo "configure: failed program was:" >&5
2794 cat conftest.$ac_ext >&5
2802 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
2803 cat >> confdefs.h <<EOF
2804 #define SIZEOF_INT $ac_cv_sizeof_int
2808 echo $ac_n "checking size of long""... $ac_c" 1>&6
2809 echo "configure:2810: checking size of long" >&5
2810 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
2811 echo $ac_n "(cached) $ac_c" 1>&6
2813 if test "$cross_compiling" = yes; then
2814 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2816 cat > conftest.$ac_ext <<EOF
2817 #line 2818 "configure"
2818 #include "confdefs.h"
2820 extern "C" void exit(int);
2825 FILE *f=fopen("conftestval", "w");
2827 fprintf(f, "%d\n", sizeof(long));
2831 if { (eval echo configure:2832: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2833 ac_cv_sizeof_long=`cat conftestval`
2835 echo "configure: failed program was:" >&5
2836 cat conftest.$ac_ext >&5
2844 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
2845 cat >> confdefs.h <<EOF
2846 #define SIZEOF_LONG $ac_cv_sizeof_long
2850 echo $ac_n "checking size of long long""... $ac_c" 1>&6
2851 echo "configure:2852: checking size of long long" >&5
2852 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
2853 echo $ac_n "(cached) $ac_c" 1>&6
2855 if test "$cross_compiling" = yes; then
2856 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2858 cat > conftest.$ac_ext <<EOF
2859 #line 2860 "configure"
2860 #include "confdefs.h"
2862 extern "C" void exit(int);
2867 FILE *f=fopen("conftestval", "w");
2869 fprintf(f, "%d\n", sizeof(long long));
2873 if { (eval echo configure:2874: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2875 ac_cv_sizeof_long_long=`cat conftestval`
2877 echo "configure: failed program was:" >&5
2878 cat conftest.$ac_ext >&5
2880 ac_cv_sizeof_long_long=0
2886 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
2887 cat >> confdefs.h <<EOF
2888 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
2893 if $CXX -v 2>&1|grep "mingw" >/dev/null 2>&1; then
2895 ac_cv_sizeof_short=2
2898 ac_cv_sizeof_long_long=4
2907 if expr "$ac_cv_sizeof_char" '>=' "$1" >/dev/null; then
2911 if expr "$ac_cv_sizeof_short" '>=' "$1" >/dev/null; then
2915 if expr "$ac_cv_sizeof_int" '>=' "$1" >/dev/null; then
2919 if expr "$ac_cv_sizeof_long" '>=' "$1" >/dev/null; then
2923 if expr "$ac_cv_sizeof_long_long" '>=' "$1" >/dev/null; then
2930 echo $ac_n "checking type name for byte""... $ac_c" 1>&6
2931 echo "configure:2932: checking type name for byte" >&5
2932 TYPE_BYTE=`type_name 1`
2933 echo "$ac_t""$TYPE_BYTE" 1>&6
2934 echo $ac_n "checking type name for word""... $ac_c" 1>&6
2935 echo "configure:2936: checking type name for word" >&5
2936 TYPE_WORD=`type_name 2`
2937 echo "$ac_t""$TYPE_WORD" 1>&6
2938 echo $ac_n "checking type name for dword""... $ac_c" 1>&6
2939 echo "configure:2940: checking type name for dword" >&5
2940 TYPE_DWORD=`type_name 4`
2941 echo "$ac_t""$TYPE_DWORD" 1>&6
2942 cat >> confdefs.h <<EOF
2943 #define TYPE_BYTE $TYPE_BYTE
2946 cat >> confdefs.h <<EOF
2947 #define TYPE_WORD $TYPE_WORD
2950 cat >> confdefs.h <<EOF
2951 #define TYPE_DWORD $TYPE_DWORD
2955 if echo $TYPE_DWORD|grep short >/dev/null; then
2957 elif echo $TYPE_DWORD|grep long >/dev/null; then
2963 if echo $TYPE_WORD|grep short >/dev/null; then M="h"
2964 elif echo $TYPE_WORD|grep long >/dev/null; then M="l"
2968 cat >> confdefs.h <<EOF
2972 cat >> confdefs.h <<EOF
2978 # Generating output files
2979 # ===========================================================================
2982 cat > confcache <<\EOF
2983 # This file is a shell script that caches the results of configure
2984 # tests run on this system so they can be shared between configure
2985 # scripts and configure runs. It is not useful on other systems.
2986 # If it contains results you don't want to keep, you may remove or edit it.
2988 # By default, configure uses ./config.cache as the cache file,
2989 # creating it if it does not exist already. You can give configure
2990 # the --cache-file=FILE option to use a different cache file; that is
2991 # what configure does when it calls configure scripts in
2992 # subdirectories, so they share the cache.
2993 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2994 # config.status only pays attention to the cache file if you give it the
2995 # --recheck option to rerun configure.
2998 # The following way of writing the cache mishandles newlines in values,
2999 # but we know of no workaround that is simple, portable, and efficient.
3000 # So, don't put newlines in cache variables' values.
3001 # Ultrix sh set writes to stderr and can't be redirected directly,
3002 # and sets the high bit in the cache file unless we assign to the vars.
3004 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3006 # `set' does not quote correctly, so add quotes (double-quote substitution
3007 # turns \\\\ into \\, and sed turns \\ into \).
3009 -e "s/'/'\\\\''/g" \
3010 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3013 # `set' quotes correctly as required by POSIX, so do not add quotes.
3014 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3017 if cmp -s $cache_file confcache; then
3020 if test -w $cache_file; then
3021 echo "updating cache $cache_file"
3022 cat confcache > $cache_file
3024 echo "not updating unwritable cache $cache_file"
3029 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3031 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3032 # Let make expand exec_prefix.
3033 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3035 # Any assignment to VPATH causes Sun make to only execute
3036 # the first set of double-colon rules, so remove it if not needed.
3037 # If there is a colon in the path, we need to keep it.
3038 if test "x$srcdir" = x.; then
3039 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
3042 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3044 DEFS=-DHAVE_CONFIG_H
3046 # Without the "./", some shells look in PATH for config.status.
3047 : ${CONFIG_STATUS=./config.status}
3049 echo creating $CONFIG_STATUS
3050 rm -f $CONFIG_STATUS
3051 cat > $CONFIG_STATUS <<EOF
3053 # Generated automatically by configure.
3054 # Run this file to recreate the current configuration.
3055 # This directory was configured as follows,
3056 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3058 # $0 $ac_configure_args
3060 # Compiler output produced by configure, useful for debugging
3061 # configure, is in ./config.log if it exists.
3063 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3066 case "\$ac_option" in
3067 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3068 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3069 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3070 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3071 echo "$CONFIG_STATUS generated by autoconf version 2.13"
3073 -help | --help | --hel | --he | --h)
3074 echo "\$ac_cs_usage"; exit 0 ;;
3075 *) echo "\$ac_cs_usage"; exit 1 ;;
3079 ac_given_srcdir=$srcdir
3080 ac_given_INSTALL="$INSTALL"
3082 trap 'rm -fr `echo "main.mk:main_in.mk
3083 packages.mk:packages_in.mk
3091 gui.src/serio.src/Makefile
3093 ddconfig.h:ddconfig_in.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3095 cat >> $CONFIG_STATUS <<EOF
3097 # Protect against being on the right side of a sed subst in config.status.
3098 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3099 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3103 s%@CFLAGS@%$CFLAGS%g
3104 s%@CPPFLAGS@%$CPPFLAGS%g
3105 s%@CXXFLAGS@%$CXXFLAGS%g
3106 s%@FFLAGS@%$FFLAGS%g
3108 s%@LDFLAGS@%$LDFLAGS%g
3110 s%@exec_prefix@%$exec_prefix%g
3111 s%@prefix@%$prefix%g
3112 s%@program_transform_name@%$program_transform_name%g
3113 s%@bindir@%$bindir%g
3114 s%@sbindir@%$sbindir%g
3115 s%@libexecdir@%$libexecdir%g
3116 s%@datadir@%$datadir%g
3117 s%@sysconfdir@%$sysconfdir%g
3118 s%@sharedstatedir@%$sharedstatedir%g
3119 s%@localstatedir@%$localstatedir%g
3120 s%@libdir@%$libdir%g
3121 s%@includedir@%$includedir%g
3122 s%@oldincludedir@%$oldincludedir%g
3123 s%@infodir@%$infodir%g
3124 s%@mandir@%$mandir%g
3126 s%@VERSION@%$VERSION%g
3127 s%@VERSIONHI@%$VERSIONHI%g
3128 s%@VERSIONLO@%$VERSIONLO%g
3129 s%@VERSIONP@%$VERSIONP%g
3130 s%@enable_ucsim@%$enable_ucsim%g
3131 s%@enable_dlso@%$enable_dlso%g
3132 s%@enable_51@%$enable_51%g
3133 s%@enable_avr@%$enable_avr%g
3134 s%@enable_z80@%$enable_z80%g
3135 s%@enable_xa@%$enable_xa%g
3136 s%@enable_serio@%$enable_serio%g
3138 s%@CXXCPP@%$CXXCPP%g
3139 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3140 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3141 s%@INSTALL_DATA@%$INSTALL_DATA%g
3142 s%@RANLIB@%$RANLIB%g
3146 s%@panel_ok@%$panel_ok%g
3147 s%@curses_ok@%$curses_ok%g
3148 s%@CURSES_LIBS@%$CURSES_LIBS%g
3149 s%@M_OR_MM@%$M_OR_MM%g
3150 s%@SHAREDLIB@%$SHAREDLIB%g
3151 s%@PICOPT@%$PICOPT%g
3152 s%@dlso_ok@%$dlso_ok%g
3157 cat >> $CONFIG_STATUS <<\EOF
3159 # Split the substitutions into bite-sized pieces for seds with
3160 # small command number limits, like on Digital OSF/1 and HP-UX.
3161 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3162 ac_file=1 # Number of current file.
3163 ac_beg=1 # First line for current file.
3164 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3167 while $ac_more_lines; do
3168 if test $ac_beg -gt 1; then
3169 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3171 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3173 if test ! -s conftest.s$ac_file; then
3175 rm -f conftest.s$ac_file
3177 if test -z "$ac_sed_cmds"; then
3178 ac_sed_cmds="sed -f conftest.s$ac_file"
3180 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3182 ac_file=`expr $ac_file + 1`
3184 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3187 if test -z "$ac_sed_cmds"; then
3192 cat >> $CONFIG_STATUS <<EOF
3194 CONFIG_FILES=\${CONFIG_FILES-"main.mk:main_in.mk
3195 packages.mk:packages_in.mk
3203 gui.src/serio.src/Makefile
3207 cat >> $CONFIG_STATUS <<\EOF
3208 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3209 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3211 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3212 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3213 *) ac_file_in="${ac_file}.in" ;;
3216 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3218 # Remove last slash and all that follows it. Not all systems have dirname.
3219 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3220 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3221 # The file is in a subdirectory.
3222 test ! -d "$ac_dir" && mkdir "$ac_dir"
3223 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3224 # A "../" for each directory in $ac_dir_suffix.
3225 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3227 ac_dir_suffix= ac_dots=
3230 case "$ac_given_srcdir" in
3232 if test -z "$ac_dots"; then top_srcdir=.
3233 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3234 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3236 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3237 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3240 case "$ac_given_INSTALL" in
3241 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3242 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3245 echo creating "$ac_file"
3247 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3249 *Makefile*) ac_comsub="1i\\
3250 # $configure_input" ;;
3254 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3256 s%@configure_input@%$configure_input%g
3257 s%@srcdir@%$srcdir%g
3258 s%@top_srcdir@%$top_srcdir%g
3259 s%@INSTALL@%$INSTALL%g
3260 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3264 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3265 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3267 # ac_d sets the value in "#define NAME VALUE" lines.
3268 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3269 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
3272 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3273 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3274 ac_uB='\([ ]\)%\1#\2define\3'
3277 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3278 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3279 ac_eB='$%\1#\2define\3'
3283 if test "${CONFIG_HEADERS+set}" != set; then
3285 cat >> $CONFIG_STATUS <<EOF
3286 CONFIG_HEADERS="ddconfig.h:ddconfig_in.h"
3288 cat >> $CONFIG_STATUS <<\EOF
3290 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3291 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3293 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3294 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3295 *) ac_file_in="${ac_file}.in" ;;
3298 echo creating $ac_file
3300 rm -f conftest.frag conftest.in conftest.out
3301 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3302 cat $ac_file_inputs > conftest.in
3306 # Transform confdefs.h into a sed script conftest.vals that substitutes
3307 # the proper values into config.h.in to produce config.h. And first:
3308 # Protect against being on the right side of a sed subst in config.status.
3309 # Protect against being in an unquoted here document in config.status.
3311 cat > conftest.hdr <<\EOF
3314 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3318 sed -n -f conftest.hdr confdefs.h > conftest.vals
3321 # This sed command replaces #undef with comments. This is necessary, for
3322 # example, in the case of _POSIX_SOURCE, which is predefined and required
3323 # on some systems where configure will not decide to define it.
3324 cat >> conftest.vals <<\EOF
3325 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3328 # Break up conftest.vals because some shells have a limit on
3329 # the size of here documents, and old seds have small limits too.
3334 ac_lines=`grep -c . conftest.vals`
3335 # grep -c gives empty output for an empty file on some AIX systems.
3336 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3337 # Write a limited-size here document to conftest.frag.
3338 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3339 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3341 sed -f conftest.frag conftest.in > conftest.out
3343 mv conftest.out conftest.in
3345 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3347 mv conftest.tail conftest.vals
3351 cat >> $CONFIG_STATUS <<\EOF
3352 rm -f conftest.frag conftest.h
3353 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3354 cat conftest.in >> conftest.h
3356 if cmp -s $ac_file conftest.h 2>/dev/null; then
3357 echo "$ac_file is unchanged"
3360 # Remove last slash and all that follows it. Not all systems have dirname.
3361 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3362 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3363 # The file is in a subdirectory.
3364 test ! -d "$ac_dir" && mkdir "$ac_dir"
3367 mv conftest.h $ac_file
3372 cat >> $CONFIG_STATUS <<EOF
3375 cat >> $CONFIG_STATUS <<\EOF
3379 chmod +x $CONFIG_STATUS
3380 rm -fr confdefs* $ac_clean_files
3381 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3384 #gui.src/portmon.src/Makefile
3387 # End of configure/configure.in