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 # Initialize some variables set by options.
16 # The variables have the same names as the options, with
17 # dashes changed to underlines.
19 cache_file=./config.cache
28 program_transform_name=s,x,x,
36 bindir='${exec_prefix}/bin'
37 sbindir='${exec_prefix}/sbin'
38 libexecdir='${exec_prefix}/libexec'
39 datadir='${prefix}/share'
40 sysconfdir='${prefix}/etc'
41 sharedstatedir='${prefix}/com'
42 localstatedir='${prefix}/var'
43 libdir='${exec_prefix}/lib'
44 includedir='${prefix}/include'
45 oldincludedir='/usr/include'
46 infodir='${prefix}/info'
47 mandir='${prefix}/man'
49 # Initialize some other variables.
52 SHELL=${CONFIG_SHELL-/bin/sh}
53 # Maximum number of lines to put in a shell here document.
60 # If the previous option needs an argument, assign it.
61 if test -n "$ac_prev"; then
62 eval "$ac_prev=\$ac_option"
68 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
72 # Accept the important Cygnus configure options, so we can diagnose typos.
76 -bindir | --bindir | --bindi | --bind | --bin | --bi)
78 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
79 bindir="$ac_optarg" ;;
81 -build | --build | --buil | --bui | --bu)
83 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
86 -cache-file | --cache-file | --cache-fil | --cache-fi \
87 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
89 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
90 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
91 cache_file="$ac_optarg" ;;
93 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
95 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
97 datadir="$ac_optarg" ;;
99 -disable-* | --disable-*)
100 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
101 # Reject names that are not valid shell variable names.
102 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
103 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
105 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
106 eval "enable_${ac_feature}=no" ;;
108 -enable-* | --enable-*)
109 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
110 # Reject names that are not valid shell variable names.
111 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
112 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
114 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
119 eval "enable_${ac_feature}='$ac_optarg'" ;;
121 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
122 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
123 | --exec | --exe | --ex)
124 ac_prev=exec_prefix ;;
125 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
126 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
127 | --exec=* | --exe=* | --ex=*)
128 exec_prefix="$ac_optarg" ;;
130 -gas | --gas | --ga | --g)
131 # Obsolete; use --with-gas.
134 -help | --help | --hel | --he)
135 # Omit some internal or obsolete options to make the list less imposing.
136 # This message is too long to be a string in the A/UX 3.1 sh.
138 Usage: configure [options] [host]
139 Options: [defaults in brackets after descriptions]
141 --cache-file=FILE cache test results in FILE
142 --help print this message
143 --no-create do not create output files
144 --quiet, --silent do not print \`checking...' messages
145 --version print the version of autoconf that created configure
146 Directory and file names:
147 --prefix=PREFIX install architecture-independent files in PREFIX
149 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
151 --bindir=DIR user executables in DIR [EPREFIX/bin]
152 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
153 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
154 --datadir=DIR read-only architecture-independent data in DIR
156 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
157 --sharedstatedir=DIR modifiable architecture-independent data in DIR
159 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
160 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
161 --includedir=DIR C header files in DIR [PREFIX/include]
162 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
163 --infodir=DIR info documentation in DIR [PREFIX/info]
164 --mandir=DIR man documentation in DIR [PREFIX/man]
165 --srcdir=DIR find the sources in DIR [configure dir or ..]
166 --program-prefix=PREFIX prepend PREFIX to installed program names
167 --program-suffix=SUFFIX append SUFFIX to installed program names
168 --program-transform-name=PROGRAM
169 run sed PROGRAM on installed program names
173 --build=BUILD configure for building on BUILD [BUILD=HOST]
174 --host=HOST configure for HOST [guessed]
175 --target=TARGET configure for TARGET [TARGET=HOST]
176 Features and packages:
177 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
178 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
179 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
180 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
181 --x-includes=DIR X include files are in DIR
182 --x-libraries=DIR X library files are in DIR
184 if test -n "$ac_help"; then
185 echo "--enable and --with options recognized:$ac_help"
189 -host | --host | --hos | --ho)
191 -host=* | --host=* | --hos=* | --ho=*)
194 -includedir | --includedir | --includedi | --included | --include \
195 | --includ | --inclu | --incl | --inc)
196 ac_prev=includedir ;;
197 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
198 | --includ=* | --inclu=* | --incl=* | --inc=*)
199 includedir="$ac_optarg" ;;
201 -infodir | --infodir | --infodi | --infod | --info | --inf)
203 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
204 infodir="$ac_optarg" ;;
206 -libdir | --libdir | --libdi | --libd)
208 -libdir=* | --libdir=* | --libdi=* | --libd=*)
209 libdir="$ac_optarg" ;;
211 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
212 | --libexe | --libex | --libe)
213 ac_prev=libexecdir ;;
214 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
215 | --libexe=* | --libex=* | --libe=*)
216 libexecdir="$ac_optarg" ;;
218 -localstatedir | --localstatedir | --localstatedi | --localstated \
219 | --localstate | --localstat | --localsta | --localst \
220 | --locals | --local | --loca | --loc | --lo)
221 ac_prev=localstatedir ;;
222 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
223 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
224 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
225 localstatedir="$ac_optarg" ;;
227 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
229 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
230 mandir="$ac_optarg" ;;
233 # Obsolete; use --without-fp.
236 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
240 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
241 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
244 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
245 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
246 | --oldin | --oldi | --old | --ol | --o)
247 ac_prev=oldincludedir ;;
248 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
249 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
250 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
251 oldincludedir="$ac_optarg" ;;
253 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
255 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
256 prefix="$ac_optarg" ;;
258 -program-prefix | --program-prefix | --program-prefi | --program-pref \
259 | --program-pre | --program-pr | --program-p)
260 ac_prev=program_prefix ;;
261 -program-prefix=* | --program-prefix=* | --program-prefi=* \
262 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
263 program_prefix="$ac_optarg" ;;
265 -program-suffix | --program-suffix | --program-suffi | --program-suff \
266 | --program-suf | --program-su | --program-s)
267 ac_prev=program_suffix ;;
268 -program-suffix=* | --program-suffix=* | --program-suffi=* \
269 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
270 program_suffix="$ac_optarg" ;;
272 -program-transform-name | --program-transform-name \
273 | --program-transform-nam | --program-transform-na \
274 | --program-transform-n | --program-transform- \
275 | --program-transform | --program-transfor \
276 | --program-transfo | --program-transf \
277 | --program-trans | --program-tran \
278 | --progr-tra | --program-tr | --program-t)
279 ac_prev=program_transform_name ;;
280 -program-transform-name=* | --program-transform-name=* \
281 | --program-transform-nam=* | --program-transform-na=* \
282 | --program-transform-n=* | --program-transform-=* \
283 | --program-transform=* | --program-transfor=* \
284 | --program-transfo=* | --program-transf=* \
285 | --program-trans=* | --program-tran=* \
286 | --progr-tra=* | --program-tr=* | --program-t=*)
287 program_transform_name="$ac_optarg" ;;
289 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
290 | -silent | --silent | --silen | --sile | --sil)
293 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
295 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
297 sbindir="$ac_optarg" ;;
299 -sharedstatedir | --sharedstatedir | --sharedstatedi \
300 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
301 | --sharedst | --shareds | --shared | --share | --shar \
303 ac_prev=sharedstatedir ;;
304 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
305 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
306 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
308 sharedstatedir="$ac_optarg" ;;
310 -site | --site | --sit)
312 -site=* | --site=* | --sit=*)
315 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
317 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
318 srcdir="$ac_optarg" ;;
320 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
321 | --syscon | --sysco | --sysc | --sys | --sy)
322 ac_prev=sysconfdir ;;
323 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
324 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
325 sysconfdir="$ac_optarg" ;;
327 -target | --target | --targe | --targ | --tar | --ta | --t)
329 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
330 target="$ac_optarg" ;;
332 -v | -verbose | --verbose | --verbos | --verbo | --verb)
335 -version | --version | --versio | --versi | --vers)
336 echo "configure generated by autoconf version 2.13"
340 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
341 # Reject names that are not valid shell variable names.
342 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
343 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
345 ac_package=`echo $ac_package| sed 's/-/_/g'`
350 eval "with_${ac_package}='$ac_optarg'" ;;
352 -without-* | --without-*)
353 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
354 # Reject names that are not valid shell variable names.
355 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
356 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
358 ac_package=`echo $ac_package| sed 's/-/_/g'`
359 eval "with_${ac_package}=no" ;;
362 # Obsolete; use --with-x.
365 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
366 | --x-incl | --x-inc | --x-in | --x-i)
367 ac_prev=x_includes ;;
368 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
369 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
370 x_includes="$ac_optarg" ;;
372 -x-libraries | --x-libraries | --x-librarie | --x-librari \
373 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
374 ac_prev=x_libraries ;;
375 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
376 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
377 x_libraries="$ac_optarg" ;;
379 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
383 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
384 echo "configure: warning: $ac_option: invalid host type" 1>&2
386 if test "x$nonopt" != xNONE; then
387 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
395 if test -n "$ac_prev"; then
396 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
399 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
401 # File descriptor usage:
404 # 2 errors and warnings
405 # 3 some systems may open it to /dev/tty
406 # 4 used on the Kubota Titan
407 # 6 checking for... messages and results
408 # 5 compiler messages saved in config.log
409 if test "$silent" = yes; then
417 This file contains any messages produced by compilers while
418 running configure, to aid debugging if configure makes a mistake.
421 # Strip out --no-create and --no-recursion so they do not pile up.
422 # Also quote any args containing shell metacharacters.
427 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
428 | --no-cr | --no-c) ;;
429 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
430 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
431 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
432 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
433 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
438 # Only set these to C if already set. These must not be set unconditionally
439 # because not all systems understand e.g. LANG=C (notably SCO).
440 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
441 # Non-C LC_CTYPE values break the ctype check.
442 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
443 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
444 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
445 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
447 # confdefs.h avoids OS command line length limits that DEFS can exceed.
448 rm -rf conftest* confdefs.h
449 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
452 # A filename unique to this package, relative to the directory that
453 # configure is in, which we can look for to find out if srcdir is correct.
454 ac_unique_file=.version
456 # Find the source files, if location was not specified.
457 if test -z "$srcdir"; then
458 ac_srcdir_defaulted=yes
459 # Try the directory containing this script, then its parent.
461 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
462 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
464 if test ! -r $srcdir/$ac_unique_file; then
468 ac_srcdir_defaulted=no
470 if test ! -r $srcdir/$ac_unique_file; then
471 if test "$ac_srcdir_defaulted" = yes; then
472 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
474 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
477 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
479 # Prefer explicitly selected file to automatically selected ones.
480 if test -z "$CONFIG_SITE"; then
481 if test "x$prefix" != xNONE; then
482 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
484 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
487 for ac_site_file in $CONFIG_SITE; do
488 if test -r "$ac_site_file"; then
489 echo "loading site script $ac_site_file"
494 if test -r "$cache_file"; then
495 echo "loading cache $cache_file"
498 echo "creating cache $cache_file"
503 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
504 ac_cpp='$CPP $CPPFLAGS'
505 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
506 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
507 cross_compiling=$ac_cv_prog_cc_cross
511 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
512 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
513 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
520 ac_n= ac_c='\c' ac_t=
526 for ac_prog in mawk gawk nawk awk
528 # Extract the first word of "$ac_prog", so it can be a program name with args.
529 set dummy $ac_prog; ac_word=$2
530 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
531 echo "configure:532: checking for $ac_word" >&5
532 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
533 echo $ac_n "(cached) $ac_c" 1>&6
535 if test -n "$AWK"; then
536 ac_cv_prog_AWK="$AWK" # Let the user override the test.
538 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
540 for ac_dir in $ac_dummy; do
541 test -z "$ac_dir" && ac_dir=.
542 if test -f $ac_dir/$ac_word; then
543 ac_cv_prog_AWK="$ac_prog"
550 AWK="$ac_cv_prog_AWK"
551 if test -n "$AWK"; then
552 echo "$ac_t""$AWK" 1>&6
554 echo "$ac_t""no" 1>&6
557 test -n "$AWK" && break
561 echo $ac_n "checking version of the package""... $ac_c" 1>&6
562 echo "configure:563: checking version of the package" >&5
563 if test -f .version; then
564 VERSION=`cat .version`
565 echo "$ac_t""$VERSION" 1>&6
568 echo "$ac_t""unknown using 0.0.0" 1>&6
570 VERSIONHI=`echo $VERSION|$AWK 'BEGIN {FS="."} {print $1}'`
571 VERSIONLO=`echo $VERSION|$AWK 'BEGIN {FS="."} {print $2}'`
572 VERSIONP=`echo $VERSION|$AWK 'BEGIN {FS="."} {print $3}'`
577 cat >> confdefs.h <<EOF
578 #define VERSIONSTR "${VERSION}"
581 cat >> confdefs.h <<EOF
582 #define VERSIONHI $VERSIONHI
585 cat >> confdefs.h <<EOF
586 #define VERSIONLO $VERSIONLO
589 cat >> confdefs.h <<EOF
590 #define VERSIONP $VERSIONP
597 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
599 # Extract the first word of "$ac_prog", so it can be a program name with args.
600 set dummy $ac_prog; ac_word=$2
601 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
602 echo "configure:603: checking for $ac_word" >&5
603 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
604 echo $ac_n "(cached) $ac_c" 1>&6
606 if test -n "$CXX"; then
607 ac_cv_prog_CXX="$CXX" # Let the user override the test.
609 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
611 for ac_dir in $ac_dummy; do
612 test -z "$ac_dir" && ac_dir=.
613 if test -f $ac_dir/$ac_word; then
614 ac_cv_prog_CXX="$ac_prog"
621 CXX="$ac_cv_prog_CXX"
622 if test -n "$CXX"; then
623 echo "$ac_t""$CXX" 1>&6
625 echo "$ac_t""no" 1>&6
628 test -n "$CXX" && break
630 test -n "$CXX" || CXX="gcc"
633 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
634 echo "configure:635: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
637 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
638 ac_cpp='$CXXCPP $CPPFLAGS'
639 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
640 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
641 cross_compiling=$ac_cv_prog_cxx_cross
643 cat > conftest.$ac_ext << EOF
645 #line 646 "configure"
646 #include "confdefs.h"
648 int main(){return(0);}
650 if { (eval echo configure:651: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
651 ac_cv_prog_cxx_works=yes
652 # If we can't run a trivial program, we are probably using a cross compiler.
653 if (./conftest; exit) 2>/dev/null; then
654 ac_cv_prog_cxx_cross=no
656 ac_cv_prog_cxx_cross=yes
659 echo "configure: failed program was:" >&5
660 cat conftest.$ac_ext >&5
661 ac_cv_prog_cxx_works=no
665 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
666 ac_cpp='$CPP $CPPFLAGS'
667 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
668 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
669 cross_compiling=$ac_cv_prog_cc_cross
671 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
672 if test $ac_cv_prog_cxx_works = no; then
673 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
675 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
676 echo "configure:677: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
677 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
678 cross_compiling=$ac_cv_prog_cxx_cross
680 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
681 echo "configure:682: checking whether we are using GNU C++" >&5
682 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
683 echo $ac_n "(cached) $ac_c" 1>&6
685 cat > conftest.C <<EOF
690 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:691: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
697 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
699 if test $ac_cv_prog_gxx = yes; then
705 ac_test_CXXFLAGS="${CXXFLAGS+set}"
706 ac_save_CXXFLAGS="$CXXFLAGS"
708 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
709 echo "configure:710: checking whether ${CXX-g++} accepts -g" >&5
710 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
711 echo $ac_n "(cached) $ac_c" 1>&6
713 echo 'void f(){}' > conftest.cc
714 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
723 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
724 if test "$ac_test_CXXFLAGS" = set; then
725 CXXFLAGS="$ac_save_CXXFLAGS"
726 elif test $ac_cv_prog_cxx_g = yes; then
727 if test "$GXX" = yes; then
733 if test "$GXX" = yes; then
740 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
741 echo "configure:742: checking how to run the C++ preprocessor" >&5
742 if test -z "$CXXCPP"; then
743 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
744 echo $ac_n "(cached) $ac_c" 1>&6
747 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
748 ac_cpp='$CXXCPP $CPPFLAGS'
749 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
750 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
751 cross_compiling=$ac_cv_prog_cxx_cross
752 CXXCPP="${CXX-g++} -E"
753 cat > conftest.$ac_ext <<EOF
754 #line 755 "configure"
755 #include "confdefs.h"
758 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
759 { (eval echo configure:760: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
760 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
761 if test -z "$ac_err"; then
765 echo "configure: failed program was:" >&5
766 cat conftest.$ac_ext >&5
771 ac_cv_prog_CXXCPP="$CXXCPP"
773 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
774 ac_cpp='$CPP $CPPFLAGS'
775 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
776 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
777 cross_compiling=$ac_cv_prog_cc_cross
780 CXXCPP="$ac_cv_prog_CXXCPP"
781 echo "$ac_t""$CXXCPP" 1>&6
784 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
785 if test -f $ac_dir/install-sh; then
787 ac_install_sh="$ac_aux_dir/install-sh -c"
789 elif test -f $ac_dir/install.sh; then
791 ac_install_sh="$ac_aux_dir/install.sh -c"
795 if test -z "$ac_aux_dir"; then
796 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
798 ac_config_guess=$ac_aux_dir/config.guess
799 ac_config_sub=$ac_aux_dir/config.sub
800 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
802 # Find a good install program. We prefer a C program (faster),
803 # so one script is as good as another. But avoid the broken or
804 # incompatible versions:
805 # SysV /etc/install, /usr/sbin/install
806 # SunOS /usr/etc/install
809 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
810 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
811 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
812 # ./install, which can be erroneously created by make from ./install.sh.
813 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
814 echo "configure:815: checking for a BSD compatible install" >&5
815 if test -z "$INSTALL"; then
816 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
817 echo $ac_n "(cached) $ac_c" 1>&6
819 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
820 for ac_dir in $PATH; do
821 # Account for people who put trailing slashes in PATH elements.
823 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
825 # OSF1 and SCO ODT 3.0 have their own names for install.
826 # Don't use installbsd from OSF since it installs stuff as root
828 for ac_prog in ginstall scoinst install; do
829 if test -f $ac_dir/$ac_prog; then
830 if test $ac_prog = install &&
831 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
832 # AIX install. It has an incompatible calling convention.
835 ac_cv_path_install="$ac_dir/$ac_prog -c"
846 if test "${ac_cv_path_install+set}" = set; then
847 INSTALL="$ac_cv_path_install"
849 # As a last resort, use the slow shell script. We don't cache a
850 # path for INSTALL within a source directory, because that will
851 # break other packages using the cache if that directory is
852 # removed, or if the path is relative.
853 INSTALL="$ac_install_sh"
856 echo "$ac_t""$INSTALL" 1>&6
858 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
859 # It thinks the first close brace ends the variable substitution.
860 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
862 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
864 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
866 # Extract the first word of "ranlib", so it can be a program name with args.
867 set dummy ranlib; ac_word=$2
868 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
869 echo "configure:870: checking for $ac_word" >&5
870 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
871 echo $ac_n "(cached) $ac_c" 1>&6
873 if test -n "$RANLIB"; then
874 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
876 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
878 for ac_dir in $ac_dummy; do
879 test -z "$ac_dir" && ac_dir=.
880 if test -f $ac_dir/$ac_word; then
881 ac_cv_prog_RANLIB="ranlib"
886 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
889 RANLIB="$ac_cv_prog_RANLIB"
890 if test -n "$RANLIB"; then
891 echo "$ac_t""$RANLIB" 1>&6
893 echo "$ac_t""no" 1>&6
897 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
898 ac_cpp='$CXXCPP $CPPFLAGS'
899 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
900 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
901 cross_compiling=$ac_cv_prog_cxx_cross
905 # Checking for header files.
906 # ===========================================================================
908 if test -d /stuff/include; then
909 CPPFLAGS="$CPPFLAGS -I/stuff/include"
912 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
913 echo "configure:914: checking for ANSI C header files" >&5
914 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
915 echo $ac_n "(cached) $ac_c" 1>&6
917 cat > conftest.$ac_ext <<EOF
918 #line 919 "configure"
919 #include "confdefs.h"
925 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
926 { (eval echo configure:927: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
927 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
928 if test -z "$ac_err"; then
930 ac_cv_header_stdc=yes
933 echo "configure: failed program was:" >&5
934 cat conftest.$ac_ext >&5
940 if test $ac_cv_header_stdc = yes; then
941 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
942 cat > conftest.$ac_ext <<EOF
943 #line 944 "configure"
944 #include "confdefs.h"
947 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
948 egrep "memchr" >/dev/null 2>&1; then
958 if test $ac_cv_header_stdc = yes; then
959 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
960 cat > conftest.$ac_ext <<EOF
961 #line 962 "configure"
962 #include "confdefs.h"
965 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
966 egrep "free" >/dev/null 2>&1; then
976 if test $ac_cv_header_stdc = yes; then
977 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
978 if test "$cross_compiling" = yes; then
981 cat > conftest.$ac_ext <<EOF
982 #line 983 "configure"
983 #include "confdefs.h"
985 extern "C" void exit(int);
988 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
989 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
990 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
991 int main () { int i; for (i = 0; i < 256; i++)
992 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
996 if { (eval echo configure:997: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1000 echo "configure: failed program was:" >&5
1001 cat conftest.$ac_ext >&5
1003 ac_cv_header_stdc=no
1011 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1012 if test $ac_cv_header_stdc = yes; then
1013 cat >> confdefs.h <<\EOF
1014 #define STDC_HEADERS 1
1019 for ac_hdr in getopt.h
1021 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1022 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1023 echo "configure:1024: checking for $ac_hdr" >&5
1024 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1025 echo $ac_n "(cached) $ac_c" 1>&6
1027 cat > conftest.$ac_ext <<EOF
1028 #line 1029 "configure"
1029 #include "confdefs.h"
1032 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1033 { (eval echo configure:1034: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1034 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1035 if test -z "$ac_err"; then
1037 eval "ac_cv_header_$ac_safe=yes"
1040 echo "configure: failed program was:" >&5
1041 cat conftest.$ac_ext >&5
1043 eval "ac_cv_header_$ac_safe=no"
1047 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1048 echo "$ac_t""yes" 1>&6
1049 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1050 cat >> confdefs.h <<EOF
1051 #define $ac_tr_hdr 1
1055 echo "$ac_t""no" 1>&6
1059 for ac_hdr in unistd.h
1061 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1062 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1063 echo "configure:1064: checking for $ac_hdr" >&5
1064 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1065 echo $ac_n "(cached) $ac_c" 1>&6
1067 cat > conftest.$ac_ext <<EOF
1068 #line 1069 "configure"
1069 #include "confdefs.h"
1072 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1073 { (eval echo configure:1074: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1074 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1075 if test -z "$ac_err"; then
1077 eval "ac_cv_header_$ac_safe=yes"
1080 echo "configure: failed program was:" >&5
1081 cat conftest.$ac_ext >&5
1083 eval "ac_cv_header_$ac_safe=no"
1087 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1088 echo "$ac_t""yes" 1>&6
1089 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1090 cat >> confdefs.h <<EOF
1091 #define $ac_tr_hdr 1
1095 echo "$ac_t""no" 1>&6
1099 ac_safe=`echo "sys/socket.h" | sed 'y%./+-%__p_%'`
1100 echo $ac_n "checking for sys/socket.h""... $ac_c" 1>&6
1101 echo "configure:1102: checking for sys/socket.h" >&5
1102 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1103 echo $ac_n "(cached) $ac_c" 1>&6
1105 cat > conftest.$ac_ext <<EOF
1106 #line 1107 "configure"
1107 #include "confdefs.h"
1108 #include <sys/socket.h>
1110 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1111 { (eval echo configure:1112: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1112 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1113 if test -z "$ac_err"; then
1115 eval "ac_cv_header_$ac_safe=yes"
1118 echo "configure: failed program was:" >&5
1119 cat conftest.$ac_ext >&5
1121 eval "ac_cv_header_$ac_safe=no"
1125 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1126 echo "$ac_t""yes" 1>&6
1127 cat >> confdefs.h <<\EOF
1128 #define SOCKET_AVAIL 1
1131 cat >> confdefs.h <<\EOF
1132 #define HAVE_SYS_SOCKET_H 1
1136 echo "$ac_t""no" 1>&6
1140 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
1142 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1143 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1144 echo "configure:1145: checking for $ac_hdr that defines DIR" >&5
1145 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1146 echo $ac_n "(cached) $ac_c" 1>&6
1148 cat > conftest.$ac_ext <<EOF
1149 #line 1150 "configure"
1150 #include "confdefs.h"
1151 #include <sys/types.h>
1157 if { (eval echo configure:1158: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1159 eval "ac_cv_header_dirent_$ac_safe=yes"
1161 echo "configure: failed program was:" >&5
1162 cat conftest.$ac_ext >&5
1164 eval "ac_cv_header_dirent_$ac_safe=no"
1168 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1169 echo "$ac_t""yes" 1>&6
1170 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1171 cat >> confdefs.h <<EOF
1172 #define $ac_tr_hdr 1
1174 ac_header_dirent=$ac_hdr; break
1176 echo "$ac_t""no" 1>&6
1179 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1180 if test $ac_header_dirent = dirent.h; then
1181 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1182 echo "configure:1183: checking for opendir in -ldir" >&5
1183 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1184 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1185 echo $ac_n "(cached) $ac_c" 1>&6
1187 ac_save_LIBS="$LIBS"
1189 cat > conftest.$ac_ext <<EOF
1190 #line 1191 "configure"
1191 #include "confdefs.h"
1192 /* Override any gcc2 internal prototype to avoid an error. */
1196 /* We use char because int might match the return type of a gcc2
1197 builtin and then its argument prototype would still apply. */
1204 if { (eval echo configure:1205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1206 eval "ac_cv_lib_$ac_lib_var=yes"
1208 echo "configure: failed program was:" >&5
1209 cat conftest.$ac_ext >&5
1211 eval "ac_cv_lib_$ac_lib_var=no"
1214 LIBS="$ac_save_LIBS"
1217 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1218 echo "$ac_t""yes" 1>&6
1221 echo "$ac_t""no" 1>&6
1225 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1226 echo "configure:1227: checking for opendir in -lx" >&5
1227 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1228 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1229 echo $ac_n "(cached) $ac_c" 1>&6
1231 ac_save_LIBS="$LIBS"
1233 cat > conftest.$ac_ext <<EOF
1234 #line 1235 "configure"
1235 #include "confdefs.h"
1236 /* Override any gcc2 internal prototype to avoid an error. */
1240 /* We use char because int might match the return type of a gcc2
1241 builtin and then its argument prototype would still apply. */
1248 if { (eval echo configure:1249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1250 eval "ac_cv_lib_$ac_lib_var=yes"
1252 echo "configure: failed program was:" >&5
1253 cat conftest.$ac_ext >&5
1255 eval "ac_cv_lib_$ac_lib_var=no"
1258 LIBS="$ac_save_LIBS"
1261 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1262 echo "$ac_t""yes" 1>&6
1265 echo "$ac_t""no" 1>&6
1271 # This must be after CXXCPP
1273 echo $ac_n "checking which header file defines FD_ macros""... $ac_c" 1>&6
1274 echo "configure:1275: checking which header file defines FD_ macros" >&5
1275 if eval "test \"`echo '$''{'s51_cv_fd'+set}'`\" = set"; then
1276 echo $ac_n "(cached) $ac_c" 1>&6
1279 cat > conftest.$ac_ext <<EOF
1280 #line 1281 "configure"
1281 #include "confdefs.h"
1283 #include <sys/time.h>
1288 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1289 egrep "yes" >/dev/null 2>&1; then
1291 s51_cv_fd="<sys/time.h>"
1295 cat > conftest.$ac_ext <<EOF
1296 #line 1297 "configure"
1297 #include "confdefs.h"
1299 #include <sys/types.h>
1304 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1305 egrep "yes" >/dev/null 2>&1; then
1307 s51_cv_fd="<sys/types.h>"
1311 cat > conftest.$ac_ext <<EOF
1312 #line 1313 "configure"
1313 #include "confdefs.h"
1315 #include <sys/select.h>
1320 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1321 egrep "yes" >/dev/null 2>&1; then
1323 s51_cv_fd="<sys/types.h>"
1329 echo "$ac_t""$s51_cv_fd" 1>&6
1331 cat >> confdefs.h <<\EOF
1332 #define FD_HEADER_OK 0
1335 if echo $s51_cv_fd|grep time >/dev/null 2>&1; then
1336 cat >> confdefs.h <<\EOF
1337 #define FD_NEED_TIME_H 1
1340 cat >> confdefs.h <<\EOF
1341 #define FD_HEADER_OK 1
1345 cat >> confdefs.h <<\EOF
1346 #define FD_NEED_TIME_H 0
1350 if echo $s51_cv_fd|grep types >/dev/null 2>&1; then
1351 cat >> confdefs.h <<\EOF
1352 #define FD_NEED_TYPES_H 1
1355 cat >> confdefs.h <<\EOF
1356 #define FD_HEADER_OK 1
1360 cat >> confdefs.h <<\EOF
1361 #define FD_NEED_TYPES_H 0
1365 if echo $s51_cv_fd|grep select >/dev/null 2>&1; then
1366 cat >> confdefs.h <<\EOF
1367 #define FD_NEED_SELECT_H 1
1370 cat >> confdefs.h <<\EOF
1371 #define FD_HEADER_OK 1
1375 cat >> confdefs.h <<\EOF
1376 #define FD_NEED_SELECT_H 0
1381 cat >> confdefs.h <<EOF
1382 #define HEADER_FD ${s51_cv_fd}
1387 # Checking for functions/libs
1388 # ===========================================================================
1389 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
1390 echo "configure:1391: checking for socket in -lsocket" >&5
1391 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
1392 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1393 echo $ac_n "(cached) $ac_c" 1>&6
1395 ac_save_LIBS="$LIBS"
1396 LIBS="-lsocket $LIBS"
1397 cat > conftest.$ac_ext <<EOF
1398 #line 1399 "configure"
1399 #include "confdefs.h"
1400 /* Override any gcc2 internal prototype to avoid an error. */
1404 /* We use char because int might match the return type of a gcc2
1405 builtin and then its argument prototype would still apply. */
1412 if { (eval echo configure:1413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1414 eval "ac_cv_lib_$ac_lib_var=yes"
1416 echo "configure: failed program was:" >&5
1417 cat conftest.$ac_ext >&5
1419 eval "ac_cv_lib_$ac_lib_var=no"
1422 LIBS="$ac_save_LIBS"
1425 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1426 echo "$ac_t""yes" 1>&6
1427 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1428 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1429 cat >> confdefs.h <<EOF
1430 #define $ac_tr_lib 1
1433 LIBS="-lsocket $LIBS"
1436 echo "$ac_t""no" 1>&6
1439 echo $ac_n "checking for xdr_short in -lnsl""... $ac_c" 1>&6
1440 echo "configure:1441: checking for xdr_short in -lnsl" >&5
1441 ac_lib_var=`echo nsl'_'xdr_short | sed 'y%./+-%__p_%'`
1442 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1443 echo $ac_n "(cached) $ac_c" 1>&6
1445 ac_save_LIBS="$LIBS"
1447 cat > conftest.$ac_ext <<EOF
1448 #line 1449 "configure"
1449 #include "confdefs.h"
1450 /* Override any gcc2 internal prototype to avoid an error. */
1454 /* We use char because int might match the return type of a gcc2
1455 builtin and then its argument prototype would still apply. */
1462 if { (eval echo configure:1463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1464 eval "ac_cv_lib_$ac_lib_var=yes"
1466 echo "configure: failed program was:" >&5
1467 cat conftest.$ac_ext >&5
1469 eval "ac_cv_lib_$ac_lib_var=no"
1472 LIBS="$ac_save_LIBS"
1475 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1476 echo "$ac_t""yes" 1>&6
1477 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1478 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1479 cat >> confdefs.h <<EOF
1480 #define $ac_tr_lib 1
1486 echo "$ac_t""no" 1>&6
1489 echo $ac_n "checking for panel_above in -lpanel""... $ac_c" 1>&6
1490 echo "configure:1491: checking for panel_above in -lpanel" >&5
1491 ac_lib_var=`echo panel'_'panel_above | sed 'y%./+-%__p_%'`
1492 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1493 echo $ac_n "(cached) $ac_c" 1>&6
1495 ac_save_LIBS="$LIBS"
1496 LIBS="-lpanel -lcurses $LIBS"
1497 cat > conftest.$ac_ext <<EOF
1498 #line 1499 "configure"
1499 #include "confdefs.h"
1500 /* Override any gcc2 internal prototype to avoid an error. */
1504 /* We use char because int might match the return type of a gcc2
1505 builtin and then its argument prototype would still apply. */
1512 if { (eval echo configure:1513: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1514 eval "ac_cv_lib_$ac_lib_var=yes"
1516 echo "configure: failed program was:" >&5
1517 cat conftest.$ac_ext >&5
1519 eval "ac_cv_lib_$ac_lib_var=no"
1522 LIBS="$ac_save_LIBS"
1525 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1526 echo "$ac_t""yes" 1>&6
1529 CURSES_LIBS="-lpanel -lcurses"
1532 echo "$ac_t""no" 1>&6
1534 echo $ac_n "checking for nl in -lcurses""... $ac_c" 1>&6
1535 echo "configure:1536: checking for nl in -lcurses" >&5
1536 ac_lib_var=`echo curses'_'nl | sed 'y%./+-%__p_%'`
1537 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1538 echo $ac_n "(cached) $ac_c" 1>&6
1540 ac_save_LIBS="$LIBS"
1541 LIBS="-lcurses $LIBS"
1542 cat > conftest.$ac_ext <<EOF
1543 #line 1544 "configure"
1544 #include "confdefs.h"
1545 /* Override any gcc2 internal prototype to avoid an error. */
1549 /* We use char because int might match the return type of a gcc2
1550 builtin and then its argument prototype would still apply. */
1557 if { (eval echo configure:1558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1559 eval "ac_cv_lib_$ac_lib_var=yes"
1561 echo "configure: failed program was:" >&5
1562 cat conftest.$ac_ext >&5
1564 eval "ac_cv_lib_$ac_lib_var=no"
1567 LIBS="$ac_save_LIBS"
1570 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1571 echo "$ac_t""yes" 1>&6
1573 CURSES_LIBS="-lcurses"
1576 echo "$ac_t""no" 1>&6
1587 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
1588 echo "configure:1589: checking for vprintf" >&5
1589 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
1590 echo $ac_n "(cached) $ac_c" 1>&6
1592 cat > conftest.$ac_ext <<EOF
1593 #line 1594 "configure"
1594 #include "confdefs.h"
1595 /* System header to define __stub macros and hopefully few prototypes,
1596 which can conflict with char vprintf(); below. */
1598 /* Override any gcc2 internal prototype to avoid an error. */
1602 /* We use char because int might match the return type of a gcc2
1603 builtin and then its argument prototype would still apply. */
1608 /* The GNU C library defines this for functions which it implements
1609 to always fail with ENOSYS. Some functions are actually named
1610 something starting with __ and the normal name is an alias. */
1611 #if defined (__stub_vprintf) || defined (__stub___vprintf)
1619 if { (eval echo configure:1620: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1621 eval "ac_cv_func_vprintf=yes"
1623 echo "configure: failed program was:" >&5
1624 cat conftest.$ac_ext >&5
1626 eval "ac_cv_func_vprintf=no"
1631 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
1632 echo "$ac_t""yes" 1>&6
1633 cat >> confdefs.h <<\EOF
1634 #define HAVE_VPRINTF 1
1638 echo "$ac_t""no" 1>&6
1641 if test "$ac_cv_func_vprintf" != yes; then
1642 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
1643 echo "configure:1644: checking for _doprnt" >&5
1644 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
1645 echo $ac_n "(cached) $ac_c" 1>&6
1647 cat > conftest.$ac_ext <<EOF
1648 #line 1649 "configure"
1649 #include "confdefs.h"
1650 /* System header to define __stub macros and hopefully few prototypes,
1651 which can conflict with char _doprnt(); below. */
1653 /* Override any gcc2 internal prototype to avoid an error. */
1657 /* We use char because int might match the return type of a gcc2
1658 builtin and then its argument prototype would still apply. */
1663 /* The GNU C library defines this for functions which it implements
1664 to always fail with ENOSYS. Some functions are actually named
1665 something starting with __ and the normal name is an alias. */
1666 #if defined (__stub__doprnt) || defined (__stub____doprnt)
1674 if { (eval echo configure:1675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1676 eval "ac_cv_func__doprnt=yes"
1678 echo "configure: failed program was:" >&5
1679 cat conftest.$ac_ext >&5
1681 eval "ac_cv_func__doprnt=no"
1686 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
1687 echo "$ac_t""yes" 1>&6
1688 cat >> confdefs.h <<\EOF
1689 #define HAVE_DOPRNT 1
1693 echo "$ac_t""no" 1>&6
1698 for ac_func in vsnprintf vasprintf
1700 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1701 echo "configure:1702: checking for $ac_func" >&5
1702 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1703 echo $ac_n "(cached) $ac_c" 1>&6
1705 cat > conftest.$ac_ext <<EOF
1706 #line 1707 "configure"
1707 #include "confdefs.h"
1708 /* System header to define __stub macros and hopefully few prototypes,
1709 which can conflict with char $ac_func(); below. */
1711 /* Override any gcc2 internal prototype to avoid an error. */
1715 /* We use char because int might match the return type of a gcc2
1716 builtin and then its argument prototype would still apply. */
1721 /* The GNU C library defines this for functions which it implements
1722 to always fail with ENOSYS. Some functions are actually named
1723 something starting with __ and the normal name is an alias. */
1724 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1732 if { (eval echo configure:1733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1734 eval "ac_cv_func_$ac_func=yes"
1736 echo "configure: failed program was:" >&5
1737 cat conftest.$ac_ext >&5
1739 eval "ac_cv_func_$ac_func=no"
1744 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1745 echo "$ac_t""yes" 1>&6
1746 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1747 cat >> confdefs.h <<EOF
1748 #define $ac_tr_func 1
1752 echo "$ac_t""no" 1>&6
1756 for ac_func in strlen strcpy strcat strstr strcmp strerror strtok strdup
1758 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1759 echo "configure:1760: checking for $ac_func" >&5
1760 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1761 echo $ac_n "(cached) $ac_c" 1>&6
1763 cat > conftest.$ac_ext <<EOF
1764 #line 1765 "configure"
1765 #include "confdefs.h"
1766 /* System header to define __stub macros and hopefully few prototypes,
1767 which can conflict with char $ac_func(); below. */
1769 /* Override any gcc2 internal prototype to avoid an error. */
1773 /* We use char because int might match the return type of a gcc2
1774 builtin and then its argument prototype would still apply. */
1779 /* The GNU C library defines this for functions which it implements
1780 to always fail with ENOSYS. Some functions are actually named
1781 something starting with __ and the normal name is an alias. */
1782 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1790 if { (eval echo configure:1791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1792 eval "ac_cv_func_$ac_func=yes"
1794 echo "configure: failed program was:" >&5
1795 cat conftest.$ac_ext >&5
1797 eval "ac_cv_func_$ac_func=no"
1802 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1803 echo "$ac_t""yes" 1>&6
1804 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1805 cat >> confdefs.h <<EOF
1806 #define $ac_tr_func 1
1810 echo "$ac_t""no" 1>&6
1814 for ac_func in strchr memcpy
1816 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1817 echo "configure:1818: checking for $ac_func" >&5
1818 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1819 echo $ac_n "(cached) $ac_c" 1>&6
1821 cat > conftest.$ac_ext <<EOF
1822 #line 1823 "configure"
1823 #include "confdefs.h"
1824 /* System header to define __stub macros and hopefully few prototypes,
1825 which can conflict with char $ac_func(); below. */
1827 /* Override any gcc2 internal prototype to avoid an error. */
1831 /* We use char because int might match the return type of a gcc2
1832 builtin and then its argument prototype would still apply. */
1837 /* The GNU C library defines this for functions which it implements
1838 to always fail with ENOSYS. Some functions are actually named
1839 something starting with __ and the normal name is an alias. */
1840 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1848 if { (eval echo configure:1849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1850 eval "ac_cv_func_$ac_func=yes"
1852 echo "configure: failed program was:" >&5
1853 cat conftest.$ac_ext >&5
1855 eval "ac_cv_func_$ac_func=no"
1860 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1861 echo "$ac_t""yes" 1>&6
1862 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1863 cat >> confdefs.h <<EOF
1864 #define $ac_tr_func 1
1868 echo "$ac_t""no" 1>&6
1872 for ac_func in fgets
1874 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1875 echo "configure:1876: checking for $ac_func" >&5
1876 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1877 echo $ac_n "(cached) $ac_c" 1>&6
1879 cat > conftest.$ac_ext <<EOF
1880 #line 1881 "configure"
1881 #include "confdefs.h"
1882 /* System header to define __stub macros and hopefully few prototypes,
1883 which can conflict with char $ac_func(); below. */
1885 /* Override any gcc2 internal prototype to avoid an error. */
1889 /* We use char because int might match the return type of a gcc2
1890 builtin and then its argument prototype would still apply. */
1895 /* The GNU C library defines this for functions which it implements
1896 to always fail with ENOSYS. Some functions are actually named
1897 something starting with __ and the normal name is an alias. */
1898 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1906 if { (eval echo configure:1907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1908 eval "ac_cv_func_$ac_func=yes"
1910 echo "configure: failed program was:" >&5
1911 cat conftest.$ac_ext >&5
1913 eval "ac_cv_func_$ac_func=no"
1918 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1919 echo "$ac_t""yes" 1>&6
1920 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1921 cat >> confdefs.h <<EOF
1922 #define $ac_tr_func 1
1926 echo "$ac_t""no" 1>&6
1930 for ac_func in yylex
1932 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1933 echo "configure:1934: checking for $ac_func" >&5
1934 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1935 echo $ac_n "(cached) $ac_c" 1>&6
1937 cat > conftest.$ac_ext <<EOF
1938 #line 1939 "configure"
1939 #include "confdefs.h"
1940 /* System header to define __stub macros and hopefully few prototypes,
1941 which can conflict with char $ac_func(); below. */
1943 /* Override any gcc2 internal prototype to avoid an error. */
1947 /* We use char because int might match the return type of a gcc2
1948 builtin and then its argument prototype would still apply. */
1953 /* The GNU C library defines this for functions which it implements
1954 to always fail with ENOSYS. Some functions are actually named
1955 something starting with __ and the normal name is an alias. */
1956 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1964 if { (eval echo configure:1965: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1966 eval "ac_cv_func_$ac_func=yes"
1968 echo "configure: failed program was:" >&5
1969 cat conftest.$ac_ext >&5
1971 eval "ac_cv_func_$ac_func=no"
1976 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1977 echo "$ac_t""yes" 1>&6
1978 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1979 cat >> confdefs.h <<EOF
1980 #define $ac_tr_func 1
1984 echo "$ac_t""no" 1>&6
1989 echo $ac_n "checking whether scanf knows %a""... $ac_c" 1>&6
1990 echo "configure:1991: checking whether scanf knows %a" >&5
1991 if eval "test \"`echo '$''{'s51_cv_scanf_a'+set}'`\" = set"; then
1992 echo $ac_n "(cached) $ac_c" 1>&6
1994 echo "a b" >conftest.data
1995 if test "$cross_compiling" = yes; then
1996 s51_cv_scanf_a="unknown"
1998 cat > conftest.$ac_ext <<EOF
1999 #line 2000 "configure"
2000 #include "confdefs.h"
2002 extern "C" void exit(int);
2011 if ((f= fopen("conftest.data", "r")) == NULL)
2013 i= fscanf(f, " %a[a-z] ", &a);
2022 if { (eval echo configure:2023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2024 s51_cv_scanf_a="yes"
2026 echo "configure: failed program was:" >&5
2027 cat conftest.$ac_ext >&5
2037 echo "$ac_t""$s51_cv_scanf_a" 1>&6
2038 if test "$s51_cv_scanf_a" = "yes"; then
2039 cat >> confdefs.h <<\EOF
2045 echo $ac_n "checking whether getcwd is GNUish""... $ac_c" 1>&6
2046 echo "configure:2047: checking whether getcwd is GNUish" >&5
2047 if eval "test \"`echo '$''{'s51_cv_getcwd'+set}'`\" = set"; then
2048 echo $ac_n "(cached) $ac_c" 1>&6
2050 if test "$cross_compiling" = yes; then
2051 s51_cv_getcwd="unknown"
2053 cat > conftest.$ac_ext <<EOF
2054 #line 2055 "configure"
2055 #include "confdefs.h"
2057 extern "C" void exit(int);
2063 if ((getcwd(NULL, 0)) == NULL)
2068 if { (eval echo configure:2069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2072 echo "configure: failed program was:" >&5
2073 cat conftest.$ac_ext >&5
2083 echo "$ac_t""$s51_cv_getcwd" 1>&6
2084 if test "$s51_cv_getcwd" = "yes"; then
2085 cat >> confdefs.h <<\EOF
2086 #define GNU_GETCWD 1
2095 # DD_COPT macro checks if the compiler specified as the 1st parameter
2096 # supports option specified as the 2nd parameter
2097 # For example: DD_CPORT(CXX, fPIC)
2102 # Checking characteristics of compilers and other programs
2103 # --------------------------------------------------------
2104 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
2105 echo "configure:2106: checking whether byte ordering is bigendian" >&5
2106 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
2107 echo $ac_n "(cached) $ac_c" 1>&6
2109 ac_cv_c_bigendian=unknown
2110 # See if sys/param.h defines the BYTE_ORDER macro.
2111 cat > conftest.$ac_ext <<EOF
2112 #line 2113 "configure"
2113 #include "confdefs.h"
2114 #include <sys/types.h>
2115 #include <sys/param.h>
2118 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2123 if { (eval echo configure:2124: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2125 # It does; now see whether it defined to BIG_ENDIAN or not.
2126 cat > conftest.$ac_ext <<EOF
2127 #line 2128 "configure"
2128 #include "confdefs.h"
2129 #include <sys/types.h>
2130 #include <sys/param.h>
2133 #if BYTE_ORDER != BIG_ENDIAN
2138 if { (eval echo configure:2139: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2140 ac_cv_c_bigendian=yes
2142 echo "configure: failed program was:" >&5
2143 cat conftest.$ac_ext >&5
2145 ac_cv_c_bigendian=no
2149 echo "configure: failed program was:" >&5
2150 cat conftest.$ac_ext >&5
2153 if test $ac_cv_c_bigendian = unknown; then
2154 if test "$cross_compiling" = yes; then
2155 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2157 cat > conftest.$ac_ext <<EOF
2158 #line 2159 "configure"
2159 #include "confdefs.h"
2161 extern "C" void exit(int);
2164 /* Are we little or big endian? From Harbison&Steele. */
2168 char c[sizeof (long)];
2171 exit (u.c[sizeof (long) - 1] == 1);
2174 if { (eval echo configure:2175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2176 ac_cv_c_bigendian=no
2178 echo "configure: failed program was:" >&5
2179 cat conftest.$ac_ext >&5
2181 ac_cv_c_bigendian=yes
2189 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
2190 if test $ac_cv_c_bigendian = yes; then
2191 cat >> confdefs.h <<\EOF
2192 #define WORDS_BIGENDIAN 1
2197 echo $ac_n "checking whether preprocessor accepts -MM or -M""... $ac_c" 1>&6
2198 echo "configure:2199: checking whether preprocessor accepts -MM or -M" >&5
2199 if eval "test \"`echo '$''{'s51_cv_MM'+set}'`\" = set"; then
2200 echo $ac_n "(cached) $ac_c" 1>&6
2202 echo "#include <stdio.h>" >_test_.c
2204 $CXXCPP -v -MM _test_.c 1>&5 2>&5
2205 if test "$?" = "0"; then
2213 echo "$ac_t""$s51_cv_MM" 1>&6
2217 # This is the first time when CFLAGS are set/modified!!
2220 echo $ac_n "checking whether $CXX accepts -ggdb""... $ac_c" 1>&6
2221 echo "configure:2222: checking whether $CXX accepts -ggdb" >&5
2222 if eval "test \"`echo '$''{'s51_cv_CXXggdb'+set}'`\" = set"; then
2223 echo $ac_n "(cached) $ac_c" 1>&6
2229 $CXX -v -ggdb -c _test_.c 1>&5 2>&5
2230 if test "$?" = "0"; then
2231 s51_cv_CXXggdb="yes"
2235 rm -f _test_.* a.out
2238 echo "$ac_t""$s51_cv_CXXggdb" 1>&6
2240 if test "$s51_cv_CXXggdb" = "yes"; then
2241 if test "$CXXFLAGS"x = x ;then
2244 CXXFLAGS="$CXXFLAGS -ggdb"
2249 echo $ac_n "checking whether $CXX accepts -pipe""... $ac_c" 1>&6
2250 echo "configure:2251: checking whether $CXX accepts -pipe" >&5
2251 if eval "test \"`echo '$''{'s51_cv_CXXpipe'+set}'`\" = set"; then
2252 echo $ac_n "(cached) $ac_c" 1>&6
2258 $CXX -v -pipe -c _test_.c 1>&5 2>&5
2259 if test "$?" = "0"; then
2260 s51_cv_CXXpipe="yes"
2264 rm -f _test_.* a.out
2267 echo "$ac_t""$s51_cv_CXXpipe" 1>&6
2269 if test "$s51_cv_CXXpipe" = "yes"; then
2270 CXXFLAGS="$CXXFLAGS -pipe"
2274 # Checks for typedefs, structures, and compiler characteristics.
2275 # ===========================================================================
2277 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2278 echo "configure:2279: checking return type of signal handlers" >&5
2279 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2280 echo $ac_n "(cached) $ac_c" 1>&6
2282 cat > conftest.$ac_ext <<EOF
2283 #line 2284 "configure"
2284 #include "confdefs.h"
2285 #include <sys/types.h>
2291 extern "C" void (*signal (int, void (*)(int)))(int);
2293 void (*signal ()) ();
2300 if { (eval echo configure:2301: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2302 ac_cv_type_signal=void
2304 echo "configure: failed program was:" >&5
2305 cat conftest.$ac_ext >&5
2307 ac_cv_type_signal=int
2312 echo "$ac_t""$ac_cv_type_signal" 1>&6
2313 cat >> confdefs.h <<EOF
2314 #define RETSIGTYPE $ac_cv_type_signal
2318 echo $ac_n "checking size of char""... $ac_c" 1>&6
2319 echo "configure:2320: checking size of char" >&5
2320 if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
2321 echo $ac_n "(cached) $ac_c" 1>&6
2323 if test "$cross_compiling" = yes; then
2324 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2326 cat > conftest.$ac_ext <<EOF
2327 #line 2328 "configure"
2328 #include "confdefs.h"
2330 extern "C" void exit(int);
2335 FILE *f=fopen("conftestval", "w");
2337 fprintf(f, "%d\n", sizeof(char));
2341 if { (eval echo configure:2342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2343 ac_cv_sizeof_char=`cat conftestval`
2345 echo "configure: failed program was:" >&5
2346 cat conftest.$ac_ext >&5
2354 echo "$ac_t""$ac_cv_sizeof_char" 1>&6
2355 cat >> confdefs.h <<EOF
2356 #define SIZEOF_CHAR $ac_cv_sizeof_char
2360 echo $ac_n "checking size of short""... $ac_c" 1>&6
2361 echo "configure:2362: checking size of short" >&5
2362 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
2363 echo $ac_n "(cached) $ac_c" 1>&6
2365 if test "$cross_compiling" = yes; then
2366 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2368 cat > conftest.$ac_ext <<EOF
2369 #line 2370 "configure"
2370 #include "confdefs.h"
2372 extern "C" void exit(int);
2377 FILE *f=fopen("conftestval", "w");
2379 fprintf(f, "%d\n", sizeof(short));
2383 if { (eval echo configure:2384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2385 ac_cv_sizeof_short=`cat conftestval`
2387 echo "configure: failed program was:" >&5
2388 cat conftest.$ac_ext >&5
2390 ac_cv_sizeof_short=0
2396 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
2397 cat >> confdefs.h <<EOF
2398 #define SIZEOF_SHORT $ac_cv_sizeof_short
2402 echo $ac_n "checking size of int""... $ac_c" 1>&6
2403 echo "configure:2404: checking size of int" >&5
2404 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
2405 echo $ac_n "(cached) $ac_c" 1>&6
2407 if test "$cross_compiling" = yes; then
2408 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2410 cat > conftest.$ac_ext <<EOF
2411 #line 2412 "configure"
2412 #include "confdefs.h"
2414 extern "C" void exit(int);
2419 FILE *f=fopen("conftestval", "w");
2421 fprintf(f, "%d\n", sizeof(int));
2425 if { (eval echo configure:2426: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2427 ac_cv_sizeof_int=`cat conftestval`
2429 echo "configure: failed program was:" >&5
2430 cat conftest.$ac_ext >&5
2438 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
2439 cat >> confdefs.h <<EOF
2440 #define SIZEOF_INT $ac_cv_sizeof_int
2444 echo $ac_n "checking size of long""... $ac_c" 1>&6
2445 echo "configure:2446: checking size of long" >&5
2446 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
2447 echo $ac_n "(cached) $ac_c" 1>&6
2449 if test "$cross_compiling" = yes; then
2450 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2452 cat > conftest.$ac_ext <<EOF
2453 #line 2454 "configure"
2454 #include "confdefs.h"
2456 extern "C" void exit(int);
2461 FILE *f=fopen("conftestval", "w");
2463 fprintf(f, "%d\n", sizeof(long));
2467 if { (eval echo configure:2468: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2469 ac_cv_sizeof_long=`cat conftestval`
2471 echo "configure: failed program was:" >&5
2472 cat conftest.$ac_ext >&5
2480 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
2481 cat >> confdefs.h <<EOF
2482 #define SIZEOF_LONG $ac_cv_sizeof_long
2486 echo $ac_n "checking size of long long""... $ac_c" 1>&6
2487 echo "configure:2488: checking size of long long" >&5
2488 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
2489 echo $ac_n "(cached) $ac_c" 1>&6
2491 if test "$cross_compiling" = yes; then
2492 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2494 cat > conftest.$ac_ext <<EOF
2495 #line 2496 "configure"
2496 #include "confdefs.h"
2498 extern "C" void exit(int);
2503 FILE *f=fopen("conftestval", "w");
2505 fprintf(f, "%d\n", sizeof(long long));
2509 if { (eval echo configure:2510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2511 ac_cv_sizeof_long_long=`cat conftestval`
2513 echo "configure: failed program was:" >&5
2514 cat conftest.$ac_ext >&5
2516 ac_cv_sizeof_long_long=0
2522 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
2523 cat >> confdefs.h <<EOF
2524 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
2531 if expr "$ac_cv_sizeof_char" '>=' "$1" >/dev/null; then
2535 if expr "$ac_cv_sizeof_short" '>=' "$1" >/dev/null; then
2539 if expr "$ac_cv_sizeof_int" '>=' "$1" >/dev/null; then
2543 if expr "$ac_cv_sizeof_long" '>=' "$1" >/dev/null; then
2547 if expr "$ac_cv_sizeof_long_long" '>=' "$1" >/dev/null; then
2554 echo $ac_n "checking type name for byte""... $ac_c" 1>&6
2555 echo "configure:2556: checking type name for byte" >&5
2556 TYPE_BYTE=`type_name 1`
2557 echo "$ac_t""$TYPE_BYTE" 1>&6
2558 echo $ac_n "checking type name for word""... $ac_c" 1>&6
2559 echo "configure:2560: checking type name for word" >&5
2560 TYPE_WORD=`type_name 2`
2561 echo "$ac_t""$TYPE_WORD" 1>&6
2562 echo $ac_n "checking type name for dword""... $ac_c" 1>&6
2563 echo "configure:2564: checking type name for dword" >&5
2564 TYPE_DWORD=`type_name 4`
2565 echo "$ac_t""$TYPE_DWORD" 1>&6
2566 cat >> confdefs.h <<EOF
2567 #define TYPE_BYTE $TYPE_BYTE
2570 cat >> confdefs.h <<EOF
2571 #define TYPE_WORD $TYPE_WORD
2574 cat >> confdefs.h <<EOF
2575 #define TYPE_DWORD $TYPE_DWORD
2579 # Generating output files
2580 # ===========================================================================
2583 cat > confcache <<\EOF
2584 # This file is a shell script that caches the results of configure
2585 # tests run on this system so they can be shared between configure
2586 # scripts and configure runs. It is not useful on other systems.
2587 # If it contains results you don't want to keep, you may remove or edit it.
2589 # By default, configure uses ./config.cache as the cache file,
2590 # creating it if it does not exist already. You can give configure
2591 # the --cache-file=FILE option to use a different cache file; that is
2592 # what configure does when it calls configure scripts in
2593 # subdirectories, so they share the cache.
2594 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2595 # config.status only pays attention to the cache file if you give it the
2596 # --recheck option to rerun configure.
2599 # The following way of writing the cache mishandles newlines in values,
2600 # but we know of no workaround that is simple, portable, and efficient.
2601 # So, don't put newlines in cache variables' values.
2602 # Ultrix sh set writes to stderr and can't be redirected directly,
2603 # and sets the high bit in the cache file unless we assign to the vars.
2605 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2607 # `set' does not quote correctly, so add quotes (double-quote substitution
2608 # turns \\\\ into \\, and sed turns \\ into \).
2610 -e "s/'/'\\\\''/g" \
2611 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2614 # `set' quotes correctly as required by POSIX, so do not add quotes.
2615 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2618 if cmp -s $cache_file confcache; then
2621 if test -w $cache_file; then
2622 echo "updating cache $cache_file"
2623 cat confcache > $cache_file
2625 echo "not updating unwritable cache $cache_file"
2630 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2632 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2633 # Let make expand exec_prefix.
2634 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2636 # Any assignment to VPATH causes Sun make to only execute
2637 # the first set of double-colon rules, so remove it if not needed.
2638 # If there is a colon in the path, we need to keep it.
2639 if test "x$srcdir" = x.; then
2640 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2643 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2645 DEFS=-DHAVE_CONFIG_H
2647 # Without the "./", some shells look in PATH for config.status.
2648 : ${CONFIG_STATUS=./config.status}
2650 echo creating $CONFIG_STATUS
2651 rm -f $CONFIG_STATUS
2652 cat > $CONFIG_STATUS <<EOF
2654 # Generated automatically by configure.
2655 # Run this file to recreate the current configuration.
2656 # This directory was configured as follows,
2657 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2659 # $0 $ac_configure_args
2661 # Compiler output produced by configure, useful for debugging
2662 # configure, is in ./config.log if it exists.
2664 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2667 case "\$ac_option" in
2668 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2669 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2670 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2671 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2672 echo "$CONFIG_STATUS generated by autoconf version 2.13"
2674 -help | --help | --hel | --he | --h)
2675 echo "\$ac_cs_usage"; exit 0 ;;
2676 *) echo "\$ac_cs_usage"; exit 1 ;;
2680 ac_given_srcdir=$srcdir
2681 ac_given_INSTALL="$INSTALL"
2683 trap 'rm -fr `echo "main.mk:main_in.mk
2690 gui.src/serio.src/Makefile
2691 gui.src/portmon.src/Makefile
2693 ddconfig.h:ddconfig_in.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2695 cat >> $CONFIG_STATUS <<EOF
2697 # Protect against being on the right side of a sed subst in config.status.
2698 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2699 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2703 s%@CFLAGS@%$CFLAGS%g
2704 s%@CPPFLAGS@%$CPPFLAGS%g
2705 s%@CXXFLAGS@%$CXXFLAGS%g
2706 s%@FFLAGS@%$FFLAGS%g
2708 s%@LDFLAGS@%$LDFLAGS%g
2710 s%@exec_prefix@%$exec_prefix%g
2711 s%@prefix@%$prefix%g
2712 s%@program_transform_name@%$program_transform_name%g
2713 s%@bindir@%$bindir%g
2714 s%@sbindir@%$sbindir%g
2715 s%@libexecdir@%$libexecdir%g
2716 s%@datadir@%$datadir%g
2717 s%@sysconfdir@%$sysconfdir%g
2718 s%@sharedstatedir@%$sharedstatedir%g
2719 s%@localstatedir@%$localstatedir%g
2720 s%@libdir@%$libdir%g
2721 s%@includedir@%$includedir%g
2722 s%@oldincludedir@%$oldincludedir%g
2723 s%@infodir@%$infodir%g
2724 s%@mandir@%$mandir%g
2726 s%@VERSION@%$VERSION%g
2727 s%@VERSIONHI@%$VERSIONHI%g
2728 s%@VERSIONLO@%$VERSIONLO%g
2729 s%@VERSIONP@%$VERSIONP%g
2731 s%@CXXCPP@%$CXXCPP%g
2732 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2733 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2734 s%@INSTALL_DATA@%$INSTALL_DATA%g
2735 s%@RANLIB@%$RANLIB%g
2736 s%@panel_ok@%$panel_ok%g
2737 s%@curses_ok@%$curses_ok%g
2738 s%@CURSES_LIBS@%$CURSES_LIBS%g
2739 s%@M_OR_MM@%$M_OR_MM%g
2744 cat >> $CONFIG_STATUS <<\EOF
2746 # Split the substitutions into bite-sized pieces for seds with
2747 # small command number limits, like on Digital OSF/1 and HP-UX.
2748 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2749 ac_file=1 # Number of current file.
2750 ac_beg=1 # First line for current file.
2751 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2754 while $ac_more_lines; do
2755 if test $ac_beg -gt 1; then
2756 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2758 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2760 if test ! -s conftest.s$ac_file; then
2762 rm -f conftest.s$ac_file
2764 if test -z "$ac_sed_cmds"; then
2765 ac_sed_cmds="sed -f conftest.s$ac_file"
2767 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2769 ac_file=`expr $ac_file + 1`
2771 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2774 if test -z "$ac_sed_cmds"; then
2779 cat >> $CONFIG_STATUS <<EOF
2781 CONFIG_FILES=\${CONFIG_FILES-"main.mk:main_in.mk
2788 gui.src/serio.src/Makefile
2789 gui.src/portmon.src/Makefile
2793 cat >> $CONFIG_STATUS <<\EOF
2794 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2795 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2797 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2798 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2799 *) ac_file_in="${ac_file}.in" ;;
2802 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2804 # Remove last slash and all that follows it. Not all systems have dirname.
2805 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2806 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2807 # The file is in a subdirectory.
2808 test ! -d "$ac_dir" && mkdir "$ac_dir"
2809 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2810 # A "../" for each directory in $ac_dir_suffix.
2811 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2813 ac_dir_suffix= ac_dots=
2816 case "$ac_given_srcdir" in
2818 if test -z "$ac_dots"; then top_srcdir=.
2819 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2820 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2822 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2823 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2826 case "$ac_given_INSTALL" in
2827 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2828 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2831 echo creating "$ac_file"
2833 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2835 *Makefile*) ac_comsub="1i\\
2836 # $configure_input" ;;
2840 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2842 s%@configure_input@%$configure_input%g
2843 s%@srcdir@%$srcdir%g
2844 s%@top_srcdir@%$top_srcdir%g
2845 s%@INSTALL@%$INSTALL%g
2846 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2850 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2851 # NAME is the cpp macro being defined and VALUE is the value it is being given.
2853 # ac_d sets the value in "#define NAME VALUE" lines.
2854 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
2855 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
2858 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2859 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2860 ac_uB='\([ ]\)%\1#\2define\3'
2863 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2864 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2865 ac_eB='$%\1#\2define\3'
2869 if test "${CONFIG_HEADERS+set}" != set; then
2871 cat >> $CONFIG_STATUS <<EOF
2872 CONFIG_HEADERS="ddconfig.h:ddconfig_in.h"
2874 cat >> $CONFIG_STATUS <<\EOF
2876 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
2877 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2879 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2880 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2881 *) ac_file_in="${ac_file}.in" ;;
2884 echo creating $ac_file
2886 rm -f conftest.frag conftest.in conftest.out
2887 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2888 cat $ac_file_inputs > conftest.in
2892 # Transform confdefs.h into a sed script conftest.vals that substitutes
2893 # the proper values into config.h.in to produce config.h. And first:
2894 # Protect against being on the right side of a sed subst in config.status.
2895 # Protect against being in an unquoted here document in config.status.
2897 cat > conftest.hdr <<\EOF
2900 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2904 sed -n -f conftest.hdr confdefs.h > conftest.vals
2907 # This sed command replaces #undef with comments. This is necessary, for
2908 # example, in the case of _POSIX_SOURCE, which is predefined and required
2909 # on some systems where configure will not decide to define it.
2910 cat >> conftest.vals <<\EOF
2911 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2914 # Break up conftest.vals because some shells have a limit on
2915 # the size of here documents, and old seds have small limits too.
2920 ac_lines=`grep -c . conftest.vals`
2921 # grep -c gives empty output for an empty file on some AIX systems.
2922 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2923 # Write a limited-size here document to conftest.frag.
2924 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2925 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2927 sed -f conftest.frag conftest.in > conftest.out
2929 mv conftest.out conftest.in
2931 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2933 mv conftest.tail conftest.vals
2937 cat >> $CONFIG_STATUS <<\EOF
2938 rm -f conftest.frag conftest.h
2939 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
2940 cat conftest.in >> conftest.h
2942 if cmp -s $ac_file conftest.h 2>/dev/null; then
2943 echo "$ac_file is unchanged"
2946 # Remove last slash and all that follows it. Not all systems have dirname.
2947 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2948 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2949 # The file is in a subdirectory.
2950 test ! -d "$ac_dir" && mkdir "$ac_dir"
2953 mv conftest.h $ac_file
2958 cat >> $CONFIG_STATUS <<EOF
2961 cat >> $CONFIG_STATUS <<\EOF
2965 chmod +x $CONFIG_STATUS
2966 rm -fr confdefs* $ac_clean_files
2967 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2971 # End of configure/configure.in