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-maintainer-mode enable make rules and dependencies not useful
16 (and sometimes confusing) to the casual installer"
18 --enable-werror Count compiler warning as errors "
20 --enable-ndebug Build with NDEBUG defined "
22 --with-opengl Build OpenGL support "
24 --with-ggi Build GGI support "
26 --with-svga Build SVGALib support "
28 --without-assembler Do not use assembler optimization "
30 --without-network Do not build network/serial support "
32 # Initialize some variables set by options.
33 # The variables have the same names as the options, with
34 # dashes changed to underlines.
36 cache_file=./config.cache
45 program_transform_name=s,x,x,
53 bindir='${exec_prefix}/bin'
54 sbindir='${exec_prefix}/sbin'
55 libexecdir='${exec_prefix}/libexec'
56 datadir='${prefix}/share'
57 sysconfdir='${prefix}/etc'
58 sharedstatedir='${prefix}/com'
59 localstatedir='${prefix}/var'
60 libdir='${exec_prefix}/lib'
61 includedir='${prefix}/include'
62 oldincludedir='/usr/include'
63 infodir='${prefix}/info'
64 mandir='${prefix}/man'
66 # Initialize some other variables.
69 SHELL=${CONFIG_SHELL-/bin/sh}
70 # Maximum number of lines to put in a shell here document.
77 # If the previous option needs an argument, assign it.
78 if test -n "$ac_prev"; then
79 eval "$ac_prev=\$ac_option"
85 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
89 # Accept the important Cygnus configure options, so we can diagnose typos.
93 -bindir | --bindir | --bindi | --bind | --bin | --bi)
95 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
96 bindir="$ac_optarg" ;;
98 -build | --build | --buil | --bui | --bu)
100 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
101 build="$ac_optarg" ;;
103 -cache-file | --cache-file | --cache-fil | --cache-fi \
104 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
105 ac_prev=cache_file ;;
106 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
107 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
108 cache_file="$ac_optarg" ;;
110 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
112 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
114 datadir="$ac_optarg" ;;
116 -disable-* | --disable-*)
117 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
118 # Reject names that are not valid shell variable names.
119 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
120 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
122 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
123 eval "enable_${ac_feature}=no" ;;
125 -enable-* | --enable-*)
126 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
127 # Reject names that are not valid shell variable names.
128 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
129 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
131 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
136 eval "enable_${ac_feature}='$ac_optarg'" ;;
138 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
139 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
140 | --exec | --exe | --ex)
141 ac_prev=exec_prefix ;;
142 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
143 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
144 | --exec=* | --exe=* | --ex=*)
145 exec_prefix="$ac_optarg" ;;
147 -gas | --gas | --ga | --g)
148 # Obsolete; use --with-gas.
151 -help | --help | --hel | --he)
152 # Omit some internal or obsolete options to make the list less imposing.
153 # This message is too long to be a string in the A/UX 3.1 sh.
155 Usage: configure [options] [host]
156 Options: [defaults in brackets after descriptions]
158 --cache-file=FILE cache test results in FILE
159 --help print this message
160 --no-create do not create output files
161 --quiet, --silent do not print \`checking...' messages
162 --version print the version of autoconf that created configure
163 Directory and file names:
164 --prefix=PREFIX install architecture-independent files in PREFIX
166 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
168 --bindir=DIR user executables in DIR [EPREFIX/bin]
169 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
170 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
171 --datadir=DIR read-only architecture-independent data in DIR
173 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
174 --sharedstatedir=DIR modifiable architecture-independent data in DIR
176 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
177 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
178 --includedir=DIR C header files in DIR [PREFIX/include]
179 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
180 --infodir=DIR info documentation in DIR [PREFIX/info]
181 --mandir=DIR man documentation in DIR [PREFIX/man]
182 --srcdir=DIR find the sources in DIR [configure dir or ..]
183 --program-prefix=PREFIX prepend PREFIX to installed program names
184 --program-suffix=SUFFIX append SUFFIX to installed program names
185 --program-transform-name=PROGRAM
186 run sed PROGRAM on installed program names
190 --build=BUILD configure for building on BUILD [BUILD=HOST]
191 --host=HOST configure for HOST [guessed]
192 --target=TARGET configure for TARGET [TARGET=HOST]
193 Features and packages:
194 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
195 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
196 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
197 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
198 --x-includes=DIR X include files are in DIR
199 --x-libraries=DIR X library files are in DIR
201 if test -n "$ac_help"; then
202 echo "--enable and --with options recognized:$ac_help"
206 -host | --host | --hos | --ho)
208 -host=* | --host=* | --hos=* | --ho=*)
211 -includedir | --includedir | --includedi | --included | --include \
212 | --includ | --inclu | --incl | --inc)
213 ac_prev=includedir ;;
214 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
215 | --includ=* | --inclu=* | --incl=* | --inc=*)
216 includedir="$ac_optarg" ;;
218 -infodir | --infodir | --infodi | --infod | --info | --inf)
220 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
221 infodir="$ac_optarg" ;;
223 -libdir | --libdir | --libdi | --libd)
225 -libdir=* | --libdir=* | --libdi=* | --libd=*)
226 libdir="$ac_optarg" ;;
228 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
229 | --libexe | --libex | --libe)
230 ac_prev=libexecdir ;;
231 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
232 | --libexe=* | --libex=* | --libe=*)
233 libexecdir="$ac_optarg" ;;
235 -localstatedir | --localstatedir | --localstatedi | --localstated \
236 | --localstate | --localstat | --localsta | --localst \
237 | --locals | --local | --loca | --loc | --lo)
238 ac_prev=localstatedir ;;
239 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
240 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
241 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
242 localstatedir="$ac_optarg" ;;
244 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
246 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
247 mandir="$ac_optarg" ;;
250 # Obsolete; use --without-fp.
253 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
257 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
258 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
261 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
262 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
263 | --oldin | --oldi | --old | --ol | --o)
264 ac_prev=oldincludedir ;;
265 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
266 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
267 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
268 oldincludedir="$ac_optarg" ;;
270 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
272 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
273 prefix="$ac_optarg" ;;
275 -program-prefix | --program-prefix | --program-prefi | --program-pref \
276 | --program-pre | --program-pr | --program-p)
277 ac_prev=program_prefix ;;
278 -program-prefix=* | --program-prefix=* | --program-prefi=* \
279 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
280 program_prefix="$ac_optarg" ;;
282 -program-suffix | --program-suffix | --program-suffi | --program-suff \
283 | --program-suf | --program-su | --program-s)
284 ac_prev=program_suffix ;;
285 -program-suffix=* | --program-suffix=* | --program-suffi=* \
286 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
287 program_suffix="$ac_optarg" ;;
289 -program-transform-name | --program-transform-name \
290 | --program-transform-nam | --program-transform-na \
291 | --program-transform-n | --program-transform- \
292 | --program-transform | --program-transfor \
293 | --program-transfo | --program-transf \
294 | --program-trans | --program-tran \
295 | --progr-tra | --program-tr | --program-t)
296 ac_prev=program_transform_name ;;
297 -program-transform-name=* | --program-transform-name=* \
298 | --program-transform-nam=* | --program-transform-na=* \
299 | --program-transform-n=* | --program-transform-=* \
300 | --program-transform=* | --program-transfor=* \
301 | --program-transfo=* | --program-transf=* \
302 | --program-trans=* | --program-tran=* \
303 | --progr-tra=* | --program-tr=* | --program-t=*)
304 program_transform_name="$ac_optarg" ;;
306 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
307 | -silent | --silent | --silen | --sile | --sil)
310 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
312 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
314 sbindir="$ac_optarg" ;;
316 -sharedstatedir | --sharedstatedir | --sharedstatedi \
317 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
318 | --sharedst | --shareds | --shared | --share | --shar \
320 ac_prev=sharedstatedir ;;
321 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
322 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
323 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
325 sharedstatedir="$ac_optarg" ;;
327 -site | --site | --sit)
329 -site=* | --site=* | --sit=*)
332 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
334 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
335 srcdir="$ac_optarg" ;;
337 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
338 | --syscon | --sysco | --sysc | --sys | --sy)
339 ac_prev=sysconfdir ;;
340 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
341 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
342 sysconfdir="$ac_optarg" ;;
344 -target | --target | --targe | --targ | --tar | --ta | --t)
346 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
347 target="$ac_optarg" ;;
349 -v | -verbose | --verbose | --verbos | --verbo | --verb)
352 -version | --version | --versio | --versi | --vers)
353 echo "configure generated by autoconf version 2.13"
357 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
358 # Reject names that are not valid shell variable names.
359 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
360 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
362 ac_package=`echo $ac_package| sed 's/-/_/g'`
367 eval "with_${ac_package}='$ac_optarg'" ;;
369 -without-* | --without-*)
370 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
371 # Reject names that are not valid shell variable names.
372 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
373 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
375 ac_package=`echo $ac_package| sed 's/-/_/g'`
376 eval "with_${ac_package}=no" ;;
379 # Obsolete; use --with-x.
382 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
383 | --x-incl | --x-inc | --x-in | --x-i)
384 ac_prev=x_includes ;;
385 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
386 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
387 x_includes="$ac_optarg" ;;
389 -x-libraries | --x-libraries | --x-librarie | --x-librari \
390 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
391 ac_prev=x_libraries ;;
392 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
393 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
394 x_libraries="$ac_optarg" ;;
396 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
400 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
401 echo "configure: warning: $ac_option: invalid host type" 1>&2
403 if test "x$nonopt" != xNONE; then
404 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
412 if test -n "$ac_prev"; then
413 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
416 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
418 # File descriptor usage:
421 # 2 errors and warnings
422 # 3 some systems may open it to /dev/tty
423 # 4 used on the Kubota Titan
424 # 6 checking for... messages and results
425 # 5 compiler messages saved in config.log
426 if test "$silent" = yes; then
434 This file contains any messages produced by compilers while
435 running configure, to aid debugging if configure makes a mistake.
438 # Strip out --no-create and --no-recursion so they do not pile up.
439 # Also quote any args containing shell metacharacters.
444 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
445 | --no-cr | --no-c) ;;
446 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
447 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
448 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
449 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
450 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
455 # Only set these to C if already set. These must not be set unconditionally
456 # because not all systems understand e.g. LANG=C (notably SCO).
457 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
458 # Non-C LC_CTYPE values break the ctype check.
459 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
460 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
461 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
462 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
464 # confdefs.h avoids OS command line length limits that DEFS can exceed.
465 rm -rf conftest* confdefs.h
466 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
469 # A filename unique to this package, relative to the directory that
470 # configure is in, which we can look for to find out if srcdir is correct.
471 ac_unique_file=main/game.c
473 # Find the source files, if location was not specified.
474 if test -z "$srcdir"; then
475 ac_srcdir_defaulted=yes
476 # Try the directory containing this script, then its parent.
478 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
479 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
481 if test ! -r $srcdir/$ac_unique_file; then
485 ac_srcdir_defaulted=no
487 if test ! -r $srcdir/$ac_unique_file; then
488 if test "$ac_srcdir_defaulted" = yes; then
489 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
491 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
494 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
496 # Prefer explicitly selected file to automatically selected ones.
497 if test -z "$CONFIG_SITE"; then
498 if test "x$prefix" != xNONE; then
499 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
501 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
504 for ac_site_file in $CONFIG_SITE; do
505 if test -r "$ac_site_file"; then
506 echo "loading site script $ac_site_file"
511 if test -r "$cache_file"; then
512 echo "loading cache $cache_file"
515 echo "creating cache $cache_file"
520 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
521 ac_cpp='$CPP $CPPFLAGS'
522 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
523 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
524 cross_compiling=$ac_cv_prog_cc_cross
528 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
529 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
530 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
537 ac_n= ac_c='\c' ac_t=
546 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
547 if test -f $ac_dir/install-sh; then
549 ac_install_sh="$ac_aux_dir/install-sh -c"
551 elif test -f $ac_dir/install.sh; then
553 ac_install_sh="$ac_aux_dir/install.sh -c"
557 if test -z "$ac_aux_dir"; then
558 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
560 ac_config_guess=$ac_aux_dir/config.guess
561 ac_config_sub=$ac_aux_dir/config.sub
562 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
564 # Find a good install program. We prefer a C program (faster),
565 # so one script is as good as another. But avoid the broken or
566 # incompatible versions:
567 # SysV /etc/install, /usr/sbin/install
568 # SunOS /usr/etc/install
571 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
572 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
573 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
574 # ./install, which can be erroneously created by make from ./install.sh.
575 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
576 echo "configure:577: checking for a BSD compatible install" >&5
577 if test -z "$INSTALL"; then
578 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
579 echo $ac_n "(cached) $ac_c" 1>&6
581 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
582 for ac_dir in $PATH; do
583 # Account for people who put trailing slashes in PATH elements.
585 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
587 # OSF1 and SCO ODT 3.0 have their own names for install.
588 # Don't use installbsd from OSF since it installs stuff as root
590 for ac_prog in ginstall scoinst install; do
591 if test -f $ac_dir/$ac_prog; then
592 if test $ac_prog = install &&
593 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
594 # AIX install. It has an incompatible calling convention.
597 ac_cv_path_install="$ac_dir/$ac_prog -c"
608 if test "${ac_cv_path_install+set}" = set; then
609 INSTALL="$ac_cv_path_install"
611 # As a last resort, use the slow shell script. We don't cache a
612 # path for INSTALL within a source directory, because that will
613 # break other packages using the cache if that directory is
614 # removed, or if the path is relative.
615 INSTALL="$ac_install_sh"
618 echo "$ac_t""$INSTALL" 1>&6
620 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
621 # It thinks the first close brace ends the variable substitution.
622 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
624 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
626 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
628 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
629 echo "configure:630: checking whether build environment is sane" >&5
632 echo timestamp > conftestfile
633 # Do `set' in a subshell so we don't clobber the current shell's
634 # arguments. Must try -L first in case configure is actually a
635 # symlink; some systems play weird games with the mod time of symlinks
636 # (eg FreeBSD returns the mod time of the symlink's containing
639 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
640 if test "$*" = "X"; then
642 set X `ls -t $srcdir/configure conftestfile`
644 if test "$*" != "X $srcdir/configure conftestfile" \
645 && test "$*" != "X conftestfile $srcdir/configure"; then
647 # If neither matched, then we have a broken ls. This can happen
648 # if, for instance, CONFIG_SHELL is bash and it inherits a
649 # broken ls alias from the environment. This has actually
650 # happened. Such a system could not be considered "sane".
651 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
652 alias in your environment" 1>&2; exit 1; }
655 test "$2" = conftestfile
661 { echo "configure: error: newly created file is older than distributed files!
662 Check your system clock" 1>&2; exit 1; }
665 echo "$ac_t""yes" 1>&6
666 if test "$program_transform_name" = s,x,x,; then
667 program_transform_name=
669 # Double any \ or $. echo might interpret backslashes.
670 cat <<\EOF_SED > conftestsed
671 s,\\,\\\\,g; s,\$,$$,g
673 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
676 test "$program_prefix" != NONE &&
677 program_transform_name="s,^,${program_prefix},; $program_transform_name"
678 # Use a double $ so make ignores it.
679 test "$program_suffix" != NONE &&
680 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
682 # sed with no file args requires a program.
683 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
685 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
686 echo "configure:687: checking whether ${MAKE-make} sets \${MAKE}" >&5
687 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
688 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
689 echo $ac_n "(cached) $ac_c" 1>&6
691 cat > conftestmake <<\EOF
693 @echo 'ac_maketemp="${MAKE}"'
695 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
696 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
697 if test -n "$ac_maketemp"; then
698 eval ac_cv_prog_make_${ac_make}_set=yes
700 eval ac_cv_prog_make_${ac_make}_set=no
704 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
705 echo "$ac_t""yes" 1>&6
708 echo "$ac_t""no" 1>&6
709 SET_MAKE="MAKE=${MAKE-make}"
717 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
718 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
720 cat >> confdefs.h <<EOF
721 #define PACKAGE "$PACKAGE"
724 cat >> confdefs.h <<EOF
725 #define VERSION "$VERSION"
730 missing_dir=`cd $ac_aux_dir && pwd`
731 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
732 echo "configure:733: checking for working aclocal" >&5
733 # Run test in a subshell; some versions of sh will print an error if
734 # an executable is not found, even if stderr is redirected.
735 # Redirect stdin to placate older versions of autoconf. Sigh.
736 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
738 echo "$ac_t""found" 1>&6
740 ACLOCAL="$missing_dir/missing aclocal"
741 echo "$ac_t""missing" 1>&6
744 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
745 echo "configure:746: checking for working autoconf" >&5
746 # Run test in a subshell; some versions of sh will print an error if
747 # an executable is not found, even if stderr is redirected.
748 # Redirect stdin to placate older versions of autoconf. Sigh.
749 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
751 echo "$ac_t""found" 1>&6
753 AUTOCONF="$missing_dir/missing autoconf"
754 echo "$ac_t""missing" 1>&6
757 echo $ac_n "checking for working automake""... $ac_c" 1>&6
758 echo "configure:759: checking for working automake" >&5
759 # Run test in a subshell; some versions of sh will print an error if
760 # an executable is not found, even if stderr is redirected.
761 # Redirect stdin to placate older versions of autoconf. Sigh.
762 if (automake --version) < /dev/null > /dev/null 2>&1; then
764 echo "$ac_t""found" 1>&6
766 AUTOMAKE="$missing_dir/missing automake"
767 echo "$ac_t""missing" 1>&6
770 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
771 echo "configure:772: checking for working autoheader" >&5
772 # Run test in a subshell; some versions of sh will print an error if
773 # an executable is not found, even if stderr is redirected.
774 # Redirect stdin to placate older versions of autoconf. Sigh.
775 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
776 AUTOHEADER=autoheader
777 echo "$ac_t""found" 1>&6
779 AUTOHEADER="$missing_dir/missing autoheader"
780 echo "$ac_t""missing" 1>&6
783 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
784 echo "configure:785: checking for working makeinfo" >&5
785 # Run test in a subshell; some versions of sh will print an error if
786 # an executable is not found, even if stderr is redirected.
787 # Redirect stdin to placate older versions of autoconf. Sigh.
788 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
790 echo "$ac_t""found" 1>&6
792 MAKEINFO="$missing_dir/missing makeinfo"
793 echo "$ac_t""missing" 1>&6
798 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
799 echo "configure:800: checking whether to enable maintainer-specific portions of Makefiles" >&5
800 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
801 if test "${enable_maintainer_mode+set}" = set; then
802 enableval="$enable_maintainer_mode"
803 USE_MAINTAINER_MODE=$enableval
805 USE_MAINTAINER_MODE=no
808 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
811 if test $USE_MAINTAINER_MODE = yes; then
812 MAINTAINER_MODE_TRUE=
813 MAINTAINER_MODE_FALSE='#'
815 MAINTAINER_MODE_TRUE='#'
816 MAINTAINER_MODE_FALSE=
818 MAINT=$MAINTAINER_MODE_TRUE
822 # Extract the first word of "gcc", so it can be a program name with args.
823 set dummy gcc; ac_word=$2
824 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
825 echo "configure:826: checking for $ac_word" >&5
826 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
827 echo $ac_n "(cached) $ac_c" 1>&6
829 if test -n "$CC"; then
830 ac_cv_prog_CC="$CC" # Let the user override the test.
832 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
834 for ac_dir in $ac_dummy; do
835 test -z "$ac_dir" && ac_dir=.
836 if test -f $ac_dir/$ac_word; then
845 if test -n "$CC"; then
846 echo "$ac_t""$CC" 1>&6
848 echo "$ac_t""no" 1>&6
851 if test -z "$CC"; then
852 # Extract the first word of "cc", so it can be a program name with args.
853 set dummy cc; ac_word=$2
854 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
855 echo "configure:856: checking for $ac_word" >&5
856 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
857 echo $ac_n "(cached) $ac_c" 1>&6
859 if test -n "$CC"; then
860 ac_cv_prog_CC="$CC" # Let the user override the test.
862 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
865 for ac_dir in $ac_dummy; do
866 test -z "$ac_dir" && ac_dir=.
867 if test -f $ac_dir/$ac_word; then
868 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
877 if test $ac_prog_rejected = yes; then
878 # We found a bogon in the path, so make sure we never use it.
879 set dummy $ac_cv_prog_CC
881 if test $# -gt 0; then
882 # We chose a different compiler from the bogus one.
883 # However, it has the same basename, so the bogon will be chosen
884 # first if we set CC to just the basename; use the full file name.
886 set dummy "$ac_dir/$ac_word" "$@"
894 if test -n "$CC"; then
895 echo "$ac_t""$CC" 1>&6
897 echo "$ac_t""no" 1>&6
900 if test -z "$CC"; then
903 # Extract the first word of "cl", so it can be a program name with args.
904 set dummy cl; ac_word=$2
905 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
906 echo "configure:907: checking for $ac_word" >&5
907 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
908 echo $ac_n "(cached) $ac_c" 1>&6
910 if test -n "$CC"; then
911 ac_cv_prog_CC="$CC" # Let the user override the test.
913 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
915 for ac_dir in $ac_dummy; do
916 test -z "$ac_dir" && ac_dir=.
917 if test -f $ac_dir/$ac_word; then
926 if test -n "$CC"; then
927 echo "$ac_t""$CC" 1>&6
929 echo "$ac_t""no" 1>&6
934 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
937 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
938 echo "configure:939: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
941 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
942 ac_cpp='$CPP $CPPFLAGS'
943 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
944 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
945 cross_compiling=$ac_cv_prog_cc_cross
947 cat > conftest.$ac_ext << EOF
949 #line 950 "configure"
950 #include "confdefs.h"
954 if { (eval echo configure:955: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
955 ac_cv_prog_cc_works=yes
956 # If we can't run a trivial program, we are probably using a cross compiler.
957 if (./conftest; exit) 2>/dev/null; then
958 ac_cv_prog_cc_cross=no
960 ac_cv_prog_cc_cross=yes
963 echo "configure: failed program was:" >&5
964 cat conftest.$ac_ext >&5
965 ac_cv_prog_cc_works=no
969 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
970 ac_cpp='$CPP $CPPFLAGS'
971 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
972 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
973 cross_compiling=$ac_cv_prog_cc_cross
975 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
976 if test $ac_cv_prog_cc_works = no; then
977 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
979 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
980 echo "configure:981: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
981 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
982 cross_compiling=$ac_cv_prog_cc_cross
984 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
985 echo "configure:986: checking whether we are using GNU C" >&5
986 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
987 echo $ac_n "(cached) $ac_c" 1>&6
989 cat > conftest.c <<EOF
994 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:995: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1001 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1003 if test $ac_cv_prog_gcc = yes; then
1009 ac_test_CFLAGS="${CFLAGS+set}"
1010 ac_save_CFLAGS="$CFLAGS"
1012 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1013 echo "configure:1014: checking whether ${CC-cc} accepts -g" >&5
1014 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1015 echo $ac_n "(cached) $ac_c" 1>&6
1017 echo 'void f(){}' > conftest.c
1018 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1027 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1028 if test "$ac_test_CFLAGS" = set; then
1029 CFLAGS="$ac_save_CFLAGS"
1030 elif test $ac_cv_prog_cc_g = yes; then
1031 if test "$GCC" = yes; then
1037 if test "$GCC" = yes; then
1044 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1045 echo "configure:1046: checking for POSIXized ISC" >&5
1046 if test -d /etc/conf/kconfig.d &&
1047 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
1049 echo "$ac_t""yes" 1>&6
1050 ISC=yes # If later tests want to check for ISC.
1051 cat >> confdefs.h <<\EOF
1052 #define _POSIX_SOURCE 1
1055 if test "$GCC" = yes; then
1061 echo "$ac_t""no" 1>&6
1065 # Extract the first word of "gcc", so it can be a program name with args.
1066 set dummy gcc; ac_word=$2
1067 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1068 echo "configure:1069: checking for $ac_word" >&5
1069 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1070 echo $ac_n "(cached) $ac_c" 1>&6
1072 if test -n "$CC"; then
1073 ac_cv_prog_CC="$CC" # Let the user override the test.
1075 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1077 for ac_dir in $ac_dummy; do
1078 test -z "$ac_dir" && ac_dir=.
1079 if test -f $ac_dir/$ac_word; then
1088 if test -n "$CC"; then
1089 echo "$ac_t""$CC" 1>&6
1091 echo "$ac_t""no" 1>&6
1094 if test -z "$CC"; then
1095 # Extract the first word of "cc", so it can be a program name with args.
1096 set dummy cc; ac_word=$2
1097 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1098 echo "configure:1099: checking for $ac_word" >&5
1099 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1100 echo $ac_n "(cached) $ac_c" 1>&6
1102 if test -n "$CC"; then
1103 ac_cv_prog_CC="$CC" # Let the user override the test.
1105 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1108 for ac_dir in $ac_dummy; do
1109 test -z "$ac_dir" && ac_dir=.
1110 if test -f $ac_dir/$ac_word; then
1111 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1112 ac_prog_rejected=yes
1120 if test $ac_prog_rejected = yes; then
1121 # We found a bogon in the path, so make sure we never use it.
1122 set dummy $ac_cv_prog_CC
1124 if test $# -gt 0; then
1125 # We chose a different compiler from the bogus one.
1126 # However, it has the same basename, so the bogon will be chosen
1127 # first if we set CC to just the basename; use the full file name.
1129 set dummy "$ac_dir/$ac_word" "$@"
1137 if test -n "$CC"; then
1138 echo "$ac_t""$CC" 1>&6
1140 echo "$ac_t""no" 1>&6
1143 if test -z "$CC"; then
1144 case "`uname -s`" in
1146 # Extract the first word of "cl", so it can be a program name with args.
1147 set dummy cl; ac_word=$2
1148 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1149 echo "configure:1150: checking for $ac_word" >&5
1150 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1151 echo $ac_n "(cached) $ac_c" 1>&6
1153 if test -n "$CC"; then
1154 ac_cv_prog_CC="$CC" # Let the user override the test.
1156 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1158 for ac_dir in $ac_dummy; do
1159 test -z "$ac_dir" && ac_dir=.
1160 if test -f $ac_dir/$ac_word; then
1169 if test -n "$CC"; then
1170 echo "$ac_t""$CC" 1>&6
1172 echo "$ac_t""no" 1>&6
1177 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1180 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1181 echo "configure:1182: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1184 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1185 ac_cpp='$CPP $CPPFLAGS'
1186 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1187 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1188 cross_compiling=$ac_cv_prog_cc_cross
1190 cat > conftest.$ac_ext << EOF
1192 #line 1193 "configure"
1193 #include "confdefs.h"
1197 if { (eval echo configure:1198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1198 ac_cv_prog_cc_works=yes
1199 # If we can't run a trivial program, we are probably using a cross compiler.
1200 if (./conftest; exit) 2>/dev/null; then
1201 ac_cv_prog_cc_cross=no
1203 ac_cv_prog_cc_cross=yes
1206 echo "configure: failed program was:" >&5
1207 cat conftest.$ac_ext >&5
1208 ac_cv_prog_cc_works=no
1212 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1213 ac_cpp='$CPP $CPPFLAGS'
1214 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1215 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1216 cross_compiling=$ac_cv_prog_cc_cross
1218 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1219 if test $ac_cv_prog_cc_works = no; then
1220 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1222 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1223 echo "configure:1224: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1224 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1225 cross_compiling=$ac_cv_prog_cc_cross
1227 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1228 echo "configure:1229: checking whether we are using GNU C" >&5
1229 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1230 echo $ac_n "(cached) $ac_c" 1>&6
1232 cat > conftest.c <<EOF
1237 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1238: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1244 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1246 if test $ac_cv_prog_gcc = yes; then
1252 ac_test_CFLAGS="${CFLAGS+set}"
1253 ac_save_CFLAGS="$CFLAGS"
1255 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1256 echo "configure:1257: checking whether ${CC-cc} accepts -g" >&5
1257 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1258 echo $ac_n "(cached) $ac_c" 1>&6
1260 echo 'void f(){}' > conftest.c
1261 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1270 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1271 if test "$ac_test_CFLAGS" = set; then
1272 CFLAGS="$ac_save_CFLAGS"
1273 elif test $ac_cv_prog_cc_g = yes; then
1274 if test "$GCC" = yes; then
1280 if test "$GCC" = yes; then
1287 # Extract the first word of "ranlib", so it can be a program name with args.
1288 set dummy ranlib; ac_word=$2
1289 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1290 echo "configure:1291: checking for $ac_word" >&5
1291 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1292 echo $ac_n "(cached) $ac_c" 1>&6
1294 if test -n "$RANLIB"; then
1295 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1297 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1299 for ac_dir in $ac_dummy; do
1300 test -z "$ac_dir" && ac_dir=.
1301 if test -f $ac_dir/$ac_word; then
1302 ac_cv_prog_RANLIB="ranlib"
1307 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1310 RANLIB="$ac_cv_prog_RANLIB"
1311 if test -n "$RANLIB"; then
1312 echo "$ac_t""$RANLIB" 1>&6
1314 echo "$ac_t""no" 1>&6
1317 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1318 echo "configure:1319: checking how to run the C preprocessor" >&5
1319 # On Suns, sometimes $CPP names a directory.
1320 if test -n "$CPP" && test -d "$CPP"; then
1323 if test -z "$CPP"; then
1324 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1325 echo $ac_n "(cached) $ac_c" 1>&6
1327 # This must be in double quotes, not single quotes, because CPP may get
1328 # substituted into the Makefile and "${CC-cc}" will confuse make.
1330 # On the NeXT, cc -E runs the code through the compiler's parser,
1331 # not just through cpp.
1332 cat > conftest.$ac_ext <<EOF
1333 #line 1334 "configure"
1334 #include "confdefs.h"
1338 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1339 { (eval echo configure:1340: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1340 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1341 if test -z "$ac_err"; then
1345 echo "configure: failed program was:" >&5
1346 cat conftest.$ac_ext >&5
1348 CPP="${CC-cc} -E -traditional-cpp"
1349 cat > conftest.$ac_ext <<EOF
1350 #line 1351 "configure"
1351 #include "confdefs.h"
1355 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1356 { (eval echo configure:1357: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1357 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1358 if test -z "$ac_err"; then
1362 echo "configure: failed program was:" >&5
1363 cat conftest.$ac_ext >&5
1365 CPP="${CC-cc} -nologo -E"
1366 cat > conftest.$ac_ext <<EOF
1367 #line 1368 "configure"
1368 #include "confdefs.h"
1372 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1373 { (eval echo configure:1374: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1374 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1375 if test -z "$ac_err"; then
1379 echo "configure: failed program was:" >&5
1380 cat conftest.$ac_ext >&5
1389 ac_cv_prog_CPP="$CPP"
1391 CPP="$ac_cv_prog_CPP"
1393 ac_cv_prog_CPP="$CPP"
1395 echo "$ac_t""$CPP" 1>&6
1397 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1398 echo "configure:1399: checking for ANSI C header files" >&5
1399 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1400 echo $ac_n "(cached) $ac_c" 1>&6
1402 cat > conftest.$ac_ext <<EOF
1403 #line 1404 "configure"
1404 #include "confdefs.h"
1410 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1411 { (eval echo configure:1412: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1412 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1413 if test -z "$ac_err"; then
1415 ac_cv_header_stdc=yes
1418 echo "configure: failed program was:" >&5
1419 cat conftest.$ac_ext >&5
1421 ac_cv_header_stdc=no
1425 if test $ac_cv_header_stdc = yes; then
1426 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1427 cat > conftest.$ac_ext <<EOF
1428 #line 1429 "configure"
1429 #include "confdefs.h"
1432 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1433 egrep "memchr" >/dev/null 2>&1; then
1437 ac_cv_header_stdc=no
1443 if test $ac_cv_header_stdc = yes; then
1444 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1445 cat > conftest.$ac_ext <<EOF
1446 #line 1447 "configure"
1447 #include "confdefs.h"
1450 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1451 egrep "free" >/dev/null 2>&1; then
1455 ac_cv_header_stdc=no
1461 if test $ac_cv_header_stdc = yes; then
1462 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1463 if test "$cross_compiling" = yes; then
1466 cat > conftest.$ac_ext <<EOF
1467 #line 1468 "configure"
1468 #include "confdefs.h"
1470 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1471 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1472 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1473 int main () { int i; for (i = 0; i < 256; i++)
1474 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1478 if { (eval echo configure:1479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1482 echo "configure: failed program was:" >&5
1483 cat conftest.$ac_ext >&5
1485 ac_cv_header_stdc=no
1493 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1494 if test $ac_cv_header_stdc = yes; then
1495 cat >> confdefs.h <<\EOF
1496 #define STDC_HEADERS 1
1502 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1503 echo "configure:1504: checking for Cygwin environment" >&5
1504 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1505 echo $ac_n "(cached) $ac_c" 1>&6
1507 cat > conftest.$ac_ext <<EOF
1508 #line 1509 "configure"
1509 #include "confdefs.h"
1514 #define __CYGWIN__ __CYGWIN32__
1519 if { (eval echo configure:1520: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1523 echo "configure: failed program was:" >&5
1524 cat conftest.$ac_ext >&5
1532 echo "$ac_t""$ac_cv_cygwin" 1>&6
1534 test "$ac_cv_cygwin" = yes && CYGWIN=yes
1535 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1536 echo "configure:1537: checking for mingw32 environment" >&5
1537 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1538 echo $ac_n "(cached) $ac_c" 1>&6
1540 cat > conftest.$ac_ext <<EOF
1541 #line 1542 "configure"
1542 #include "confdefs.h"
1548 if { (eval echo configure:1549: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1552 echo "configure: failed program was:" >&5
1553 cat conftest.$ac_ext >&5
1561 echo "$ac_t""$ac_cv_mingw32" 1>&6
1563 test "$ac_cv_mingw32" = yes && MINGW32=yes
1565 CFLAGS="-g -O2 -Wall"
1567 # Check whether --enable-werror or --disable-werror was given.
1568 if test "${enable_werror+set}" = set; then
1569 enableval="$enable_werror"
1570 case "${enableval}" in
1571 yes) CFLAGS="-Werror $CFLAGS" ;;
1573 *) { echo "configure: error: bad value ${enableval} for --enable-werror" 1>&2; exit 1; } ;;
1578 # Check whether --enable-ndebug or --disable-ndebug was given.
1579 if test "${enable_ndebug+set}" = set; then
1580 enableval="$enable_ndebug"
1581 case "${enableval}" in
1582 yes) CFLAGS="-DNDEBUG $CFLAGS" ;;
1584 *) { echo "configure: error: bad value ${withval} for --enable-ndebug" 1>&2; exit 1; } ;;
1590 if test "$OSTYPE" = "MSDOS"; then
1592 CFLAGS="-I \$(top_srcdir)/arch/dos/include $CFLAGS"
1595 if test "$OSTYPE" = "MSDOS"; then
1602 cat >> confdefs.h <<\EOF
1603 #define __ENV_DJGPP__ 1
1606 # Extract the first word of "nasmw", so it can be a program name with args.
1607 set dummy nasmw; ac_word=$2
1608 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1609 echo "configure:1610: checking for $ac_word" >&5
1610 if eval "test \"`echo '$''{'ac_cv_path_NASM'+set}'`\" = set"; then
1611 echo $ac_n "(cached) $ac_c" 1>&6
1615 ac_cv_path_NASM="$NASM" # Let the user override the test with a path.
1618 ac_cv_path_NASM="$NASM" # Let the user override the test with a dos path.
1621 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1623 for ac_dir in $ac_dummy; do
1624 test -z "$ac_dir" && ac_dir=.
1625 if test -f $ac_dir/$ac_word; then
1626 ac_cv_path_NASM="$ac_dir/$ac_word"
1631 test -z "$ac_cv_path_NASM" && ac_cv_path_NASM="no"
1635 NASM="$ac_cv_path_NASM"
1636 if test -n "$NASM"; then
1637 echo "$ac_t""$NASM" 1>&6
1639 echo "$ac_t""no" 1>&6
1645 CFLAGS="-D_REENTRANT -pipe $CFLAGS"
1648 if test "$OSTYPE" != "MSDOS"; then
1655 cat >> confdefs.h <<\EOF
1656 #define __ENV_LINUX__ 1
1661 echo $ac_n "checking for SDL_Init in -lSDL""... $ac_c" 1>&6
1662 echo "configure:1663: checking for SDL_Init in -lSDL" >&5
1663 ac_lib_var=`echo SDL'_'SDL_Init | sed 'y%./+-%__p_%'`
1664 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1665 echo $ac_n "(cached) $ac_c" 1>&6
1667 ac_save_LIBS="$LIBS"
1668 LIBS="-lSDL -ldl -lpthread $LIBS"
1669 cat > conftest.$ac_ext <<EOF
1670 #line 1671 "configure"
1671 #include "confdefs.h"
1672 /* Override any gcc2 internal prototype to avoid an error. */
1673 /* We use char because int might match the return type of a gcc2
1674 builtin and then its argument prototype would still apply. */
1681 if { (eval echo configure:1682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1683 eval "ac_cv_lib_$ac_lib_var=yes"
1685 echo "configure: failed program was:" >&5
1686 cat conftest.$ac_ext >&5
1688 eval "ac_cv_lib_$ac_lib_var=no"
1691 LIBS="$ac_save_LIBS"
1694 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1695 echo "$ac_t""yes" 1>&6
1698 echo "$ac_t""no" 1>&6
1699 { echo "configure: error: The SDL which is required not found." 1>&2; exit 1; }
1702 for ac_hdr in netipx/ipx.h
1704 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1705 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1706 echo "configure:1707: checking for $ac_hdr" >&5
1707 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1708 echo $ac_n "(cached) $ac_c" 1>&6
1710 cat > conftest.$ac_ext <<EOF
1711 #line 1712 "configure"
1712 #include "confdefs.h"
1715 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1716 { (eval echo configure:1717: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1717 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1718 if test -z "$ac_err"; then
1720 eval "ac_cv_header_$ac_safe=yes"
1723 echo "configure: failed program was:" >&5
1724 cat conftest.$ac_ext >&5
1726 eval "ac_cv_header_$ac_safe=no"
1730 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1731 echo "$ac_t""yes" 1>&6
1732 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1733 cat >> confdefs.h <<EOF
1734 #define $ac_tr_hdr 1
1738 echo "$ac_t""no" 1>&6
1745 # Check whether --with-opengl or --without-opengl was given.
1746 if test "${with_opengl+set}" = set; then
1747 withval="$with_opengl"
1748 case "${withval}" in
1751 *) { echo "configure: error: bad value ${withval} for --with-opengl" 1>&2; exit 1; } ;;
1758 if test x$opengl = xtrue; then
1759 echo $ac_n "checking for main in -lGL""... $ac_c" 1>&6
1760 echo "configure:1761: checking for main in -lGL" >&5
1761 ac_lib_var=`echo GL'_'main | sed 'y%./+-%__p_%'`
1762 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1763 echo $ac_n "(cached) $ac_c" 1>&6
1765 ac_save_LIBS="$LIBS"
1766 LIBS="-lGL -L/usr/X11R6/lib -lX11 -lXext -lm $LIBS"
1767 cat > conftest.$ac_ext <<EOF
1768 #line 1769 "configure"
1769 #include "confdefs.h"
1775 if { (eval echo configure:1776: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1777 eval "ac_cv_lib_$ac_lib_var=yes"
1779 echo "configure: failed program was:" >&5
1780 cat conftest.$ac_ext >&5
1782 eval "ac_cv_lib_$ac_lib_var=no"
1785 LIBS="$ac_save_LIBS"
1788 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1789 echo "$ac_t""yes" 1>&6
1792 echo "$ac_t""no" 1>&6
1793 { echo "configure: error: GL not found, OpenGL cannot be built" 1>&2; exit 1; }
1797 echo $ac_n "checking for main in -lGLU""... $ac_c" 1>&6
1798 echo "configure:1799: checking for main in -lGLU" >&5
1799 ac_lib_var=`echo GLU'_'main | sed 'y%./+-%__p_%'`
1800 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1801 echo $ac_n "(cached) $ac_c" 1>&6
1803 ac_save_LIBS="$LIBS"
1804 LIBS="-lGLU -lGL -L/usr/X11R6/lib -lX11 -lXext -lm $LIBS"
1805 cat > conftest.$ac_ext <<EOF
1806 #line 1807 "configure"
1807 #include "confdefs.h"
1813 if { (eval echo configure:1814: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1815 eval "ac_cv_lib_$ac_lib_var=yes"
1817 echo "configure: failed program was:" >&5
1818 cat conftest.$ac_ext >&5
1820 eval "ac_cv_lib_$ac_lib_var=no"
1823 LIBS="$ac_save_LIBS"
1826 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1827 echo "$ac_t""yes" 1>&6
1828 OGL_LIBS="${OGL_LIBS} -lGLU"
1830 echo "$ac_t""no" 1>&6
1831 { echo "configure: error: GLU not found, OpenGL cannot be built" 1>&2; exit 1; }
1839 if test x$opengl = xtrue; then
1841 USE_OPENGL_FALSE='#'
1848 # Check whether --with-ggi or --without-ggi was given.
1849 if test "${with_ggi+set}" = set; then
1851 case "${withval}" in
1854 *) { echo "configure: error: bad value ${withval} for --with-ggi" 1>&2; exit 1; } ;;
1861 if test x$ggi = xtrue; then
1862 echo $ac_n "checking for ggiInit in -lggi""... $ac_c" 1>&6
1863 echo "configure:1864: checking for ggiInit in -lggi" >&5
1864 ac_lib_var=`echo ggi'_'ggiInit | sed 'y%./+-%__p_%'`
1865 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1866 echo $ac_n "(cached) $ac_c" 1>&6
1868 ac_save_LIBS="$LIBS"
1870 cat > conftest.$ac_ext <<EOF
1871 #line 1872 "configure"
1872 #include "confdefs.h"
1873 /* Override any gcc2 internal prototype to avoid an error. */
1874 /* We use char because int might match the return type of a gcc2
1875 builtin and then its argument prototype would still apply. */
1882 if { (eval echo configure:1883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1884 eval "ac_cv_lib_$ac_lib_var=yes"
1886 echo "configure: failed program was:" >&5
1887 cat conftest.$ac_ext >&5
1889 eval "ac_cv_lib_$ac_lib_var=no"
1892 LIBS="$ac_save_LIBS"
1895 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1896 echo "$ac_t""yes" 1>&6
1899 echo "$ac_t""no" 1>&6
1900 { echo "configure: error: GGI not found, GGI version cannot be built" 1>&2; exit 1; }; ggi=false
1903 echo $ac_n "checking for giiInit in -lgii""... $ac_c" 1>&6
1904 echo "configure:1905: checking for giiInit in -lgii" >&5
1905 ac_lib_var=`echo gii'_'giiInit | sed 'y%./+-%__p_%'`
1906 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1907 echo $ac_n "(cached) $ac_c" 1>&6
1909 ac_save_LIBS="$LIBS"
1911 cat > conftest.$ac_ext <<EOF
1912 #line 1913 "configure"
1913 #include "confdefs.h"
1914 /* Override any gcc2 internal prototype to avoid an error. */
1915 /* We use char because int might match the return type of a gcc2
1916 builtin and then its argument prototype would still apply. */
1923 if { (eval echo configure:1924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1925 eval "ac_cv_lib_$ac_lib_var=yes"
1927 echo "configure: failed program was:" >&5
1928 cat conftest.$ac_ext >&5
1930 eval "ac_cv_lib_$ac_lib_var=no"
1933 LIBS="$ac_save_LIBS"
1936 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1937 echo "$ac_t""yes" 1>&6
1938 GGI_LIBS="${GGI_LIBS} -lgii"
1940 echo "$ac_t""no" 1>&6
1941 { echo "configure: error: GII not found, GGI version cannot be built" 1>&2; exit 1; }; ggi=false
1948 if test x$ggi = xtrue; then
1957 # Check whether --with-svga or --without-svga was given.
1958 if test "${with_svga+set}" = set; then
1959 withval="$with_svga"
1960 case "${withval}" in
1963 *) { echo "configure: error: bad value ${withval} for --with-svga" 1>&2; exit 1; } ;;
1970 if test x$svga = xtrue; then
1971 echo $ac_n "checking for vga_getmousetype in -lvga""... $ac_c" 1>&6
1972 echo "configure:1973: checking for vga_getmousetype in -lvga" >&5
1973 ac_lib_var=`echo vga'_'vga_getmousetype | sed 'y%./+-%__p_%'`
1974 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1975 echo $ac_n "(cached) $ac_c" 1>&6
1977 ac_save_LIBS="$LIBS"
1979 cat > conftest.$ac_ext <<EOF
1980 #line 1981 "configure"
1981 #include "confdefs.h"
1982 /* Override any gcc2 internal prototype to avoid an error. */
1983 /* We use char because int might match the return type of a gcc2
1984 builtin and then its argument prototype would still apply. */
1985 char vga_getmousetype();
1991 if { (eval echo configure:1992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1993 eval "ac_cv_lib_$ac_lib_var=yes"
1995 echo "configure: failed program was:" >&5
1996 cat conftest.$ac_ext >&5
1998 eval "ac_cv_lib_$ac_lib_var=no"
2001 LIBS="$ac_save_LIBS"
2004 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2005 echo "$ac_t""yes" 1>&6
2008 echo "$ac_t""no" 1>&6
2009 { echo "configure: error: vga not found, SVGALib cannot be built" 1>&2; exit 1; }
2013 echo $ac_n "checking for gl_getcontext in -lvgagl""... $ac_c" 1>&6
2014 echo "configure:2015: checking for gl_getcontext in -lvgagl" >&5
2015 ac_lib_var=`echo vgagl'_'gl_getcontext | sed 'y%./+-%__p_%'`
2016 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2017 echo $ac_n "(cached) $ac_c" 1>&6
2019 ac_save_LIBS="$LIBS"
2020 LIBS="-lvgagl -lvga $LIBS"
2021 cat > conftest.$ac_ext <<EOF
2022 #line 2023 "configure"
2023 #include "confdefs.h"
2024 /* Override any gcc2 internal prototype to avoid an error. */
2025 /* We use char because int might match the return type of a gcc2
2026 builtin and then its argument prototype would still apply. */
2027 char gl_getcontext();
2033 if { (eval echo configure:2034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2035 eval "ac_cv_lib_$ac_lib_var=yes"
2037 echo "configure: failed program was:" >&5
2038 cat conftest.$ac_ext >&5
2040 eval "ac_cv_lib_$ac_lib_var=no"
2043 LIBS="$ac_save_LIBS"
2046 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2047 echo "$ac_t""yes" 1>&6
2048 SVGA_LIBS="${SVGA_LIBS} -lvgagl"
2050 echo "$ac_t""no" 1>&6
2051 { echo "configure: error: vgagl not found, SVGALib cannot be built" 1>&2; exit 1; }
2059 if test x$svga = xtrue; then
2061 USE_SVGALIB_FALSE='#'
2063 USE_SVGALIB_TRUE='#'
2067 if test x$opengl = xtrue; then
2068 cat >> confdefs.h <<\EOF
2072 CFLAGS="-I \$(top_srcdir)/input/ggi/include $CFLAGS"
2074 if test x$svga = xtrue; then
2075 cat >> confdefs.h <<\EOF
2079 CFLAGS="-I \$(top_srcdir)/input/svgalib/include $CFLAGS"
2081 if test x$ggi = xtrue; then
2082 cat >> confdefs.h <<\EOF
2086 CFLAGS="-I \$(top_srcdir)/input/ggi/include $CFLAGS"
2088 CFLAGS="-I \$(top_srcdir)/input/sdl/include $CFLAGS"
2093 # Extract the first word of "nasm", so it can be a program name with args.
2094 set dummy nasm; ac_word=$2
2095 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2096 echo "configure:2097: checking for $ac_word" >&5
2097 if eval "test \"`echo '$''{'ac_cv_path_NASM'+set}'`\" = set"; then
2098 echo $ac_n "(cached) $ac_c" 1>&6
2102 ac_cv_path_NASM="$NASM" # Let the user override the test with a path.
2105 ac_cv_path_NASM="$NASM" # Let the user override the test with a dos path.
2108 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2110 for ac_dir in $ac_dummy; do
2111 test -z "$ac_dir" && ac_dir=.
2112 if test -f $ac_dir/$ac_word; then
2113 ac_cv_path_NASM="$ac_dir/$ac_word"
2118 test -z "$ac_cv_path_NASM" && ac_cv_path_NASM="no"
2122 NASM="$ac_cv_path_NASM"
2123 if test -n "$NASM"; then
2124 echo "$ac_t""$NASM" 1>&6
2126 echo "$ac_t""no" 1>&6
2129 CFLAGS="-I \$(top_srcdir)/input/linux/include -I \$(top_srcdir)/arch/linux/include $CFLAGS"
2133 # Check for NASM and network
2136 # Check whether --with-assembler or --without-assembler was given.
2137 if test "${with_assembler+set}" = set; then
2138 withval="$with_assembler"
2139 if test x$withval = xno; then
2144 # Check whether --with-network or --without-network was given.
2145 if test "${with_network+set}" = set; then
2146 withval="$with_network"
2147 if test x$withval = xno; then
2153 if test "$NASM" = "no"; then
2156 if test "$NO_ASM" = 1; then
2157 cat >> confdefs.h <<\EOF
2165 NASMFLAGS="-f win32"
2168 if test "$OSTYPE" = "MSDOS"; then
2171 NASMFLAGS="-f elf -d__ENV_LINUX__ -i\$(srcdir)/"
2176 if test "$NO_NETWORK" = 0; then
2177 cat >> confdefs.h <<\EOF
2184 if test "$NO_ASM" != 1; then
2195 if test "$program_transform_name" = s,x,x,; then
2196 program_transform_name=
2198 # Double any \ or $. echo might interpret backslashes.
2199 cat <<\EOF_SED > conftestsed
2200 s,\\,\\\\,g; s,\$,$$,g
2202 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
2205 test "$program_prefix" != NONE &&
2206 program_transform_name="s,^,${program_prefix},; $program_transform_name"
2207 # Use a double $ so make ignores it.
2208 test "$program_suffix" != NONE &&
2209 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
2211 # sed with no file args requires a program.
2212 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
2215 #libdir='$(shell pwd)/${top_srcdir}/main'
2217 cat > confcache <<\EOF
2218 # This file is a shell script that caches the results of configure
2219 # tests run on this system so they can be shared between configure
2220 # scripts and configure runs. It is not useful on other systems.
2221 # If it contains results you don't want to keep, you may remove or edit it.
2223 # By default, configure uses ./config.cache as the cache file,
2224 # creating it if it does not exist already. You can give configure
2225 # the --cache-file=FILE option to use a different cache file; that is
2226 # what configure does when it calls configure scripts in
2227 # subdirectories, so they share the cache.
2228 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2229 # config.status only pays attention to the cache file if you give it the
2230 # --recheck option to rerun configure.
2233 # The following way of writing the cache mishandles newlines in values,
2234 # but we know of no workaround that is simple, portable, and efficient.
2235 # So, don't put newlines in cache variables' values.
2236 # Ultrix sh set writes to stderr and can't be redirected directly,
2237 # and sets the high bit in the cache file unless we assign to the vars.
2239 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2241 # `set' does not quote correctly, so add quotes (double-quote substitution
2242 # turns \\\\ into \\, and sed turns \\ into \).
2244 -e "s/'/'\\\\''/g" \
2245 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2248 # `set' quotes correctly as required by POSIX, so do not add quotes.
2249 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2252 if cmp -s $cache_file confcache; then
2255 if test -w $cache_file; then
2256 echo "updating cache $cache_file"
2257 cat confcache > $cache_file
2259 echo "not updating unwritable cache $cache_file"
2264 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2266 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2267 # Let make expand exec_prefix.
2268 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2270 # Any assignment to VPATH causes Sun make to only execute
2271 # the first set of double-colon rules, so remove it if not needed.
2272 # If there is a colon in the path, we need to keep it.
2273 if test "x$srcdir" = x.; then
2274 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2277 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2279 DEFS=-DHAVE_CONFIG_H
2281 # Without the "./", some shells look in PATH for config.status.
2282 : ${CONFIG_STATUS=./config.status}
2284 echo creating $CONFIG_STATUS
2285 rm -f $CONFIG_STATUS
2286 cat > $CONFIG_STATUS <<EOF
2288 # Generated automatically by configure.
2289 # Run this file to recreate the current configuration.
2290 # This directory was configured as follows,
2291 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2293 # $0 $ac_configure_args
2295 # Compiler output produced by configure, useful for debugging
2296 # configure, is in ./config.log if it exists.
2298 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2301 case "\$ac_option" in
2302 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2303 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2304 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2305 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2306 echo "$CONFIG_STATUS generated by autoconf version 2.13"
2308 -help | --help | --hel | --he | --h)
2309 echo "\$ac_cs_usage"; exit 0 ;;
2310 *) echo "\$ac_cs_usage"; exit 1 ;;
2314 ac_given_srcdir=$srcdir
2315 ac_given_INSTALL="$INSTALL"
2317 trap 'rm -fr `echo "Makefile
2331 conf.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2333 cat >> $CONFIG_STATUS <<EOF
2335 # Protect against being on the right side of a sed subst in config.status.
2336 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2337 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2341 s%@CFLAGS@%$CFLAGS%g
2342 s%@CPPFLAGS@%$CPPFLAGS%g
2343 s%@CXXFLAGS@%$CXXFLAGS%g
2344 s%@FFLAGS@%$FFLAGS%g
2346 s%@LDFLAGS@%$LDFLAGS%g
2348 s%@exec_prefix@%$exec_prefix%g
2349 s%@prefix@%$prefix%g
2350 s%@program_transform_name@%$program_transform_name%g
2351 s%@bindir@%$bindir%g
2352 s%@sbindir@%$sbindir%g
2353 s%@libexecdir@%$libexecdir%g
2354 s%@datadir@%$datadir%g
2355 s%@sysconfdir@%$sysconfdir%g
2356 s%@sharedstatedir@%$sharedstatedir%g
2357 s%@localstatedir@%$localstatedir%g
2358 s%@libdir@%$libdir%g
2359 s%@includedir@%$includedir%g
2360 s%@oldincludedir@%$oldincludedir%g
2361 s%@infodir@%$infodir%g
2362 s%@mandir@%$mandir%g
2363 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2364 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2365 s%@INSTALL_DATA@%$INSTALL_DATA%g
2366 s%@PACKAGE@%$PACKAGE%g
2367 s%@VERSION@%$VERSION%g
2368 s%@ACLOCAL@%$ACLOCAL%g
2369 s%@AUTOCONF@%$AUTOCONF%g
2370 s%@AUTOMAKE@%$AUTOMAKE%g
2371 s%@AUTOHEADER@%$AUTOHEADER%g
2372 s%@MAKEINFO@%$MAKEINFO%g
2373 s%@SET_MAKE@%$SET_MAKE%g
2374 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
2375 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
2378 s%@RANLIB@%$RANLIB%g
2380 s%@ENV_DJGPP_TRUE@%$ENV_DJGPP_TRUE%g
2381 s%@ENV_DJGPP_FALSE@%$ENV_DJGPP_FALSE%g
2383 s%@ENV_LINUX_TRUE@%$ENV_LINUX_TRUE%g
2384 s%@ENV_LINUX_FALSE@%$ENV_LINUX_FALSE%g
2385 s%@SDL_LIBS@%$SDL_LIBS%g
2386 s%@OGL_LIBS@%$OGL_LIBS%g
2387 s%@USE_OPENGL_TRUE@%$USE_OPENGL_TRUE%g
2388 s%@USE_OPENGL_FALSE@%$USE_OPENGL_FALSE%g
2389 s%@GGI_LIBS@%$GGI_LIBS%g
2390 s%@USE_GGI_TRUE@%$USE_GGI_TRUE%g
2391 s%@USE_GGI_FALSE@%$USE_GGI_FALSE%g
2392 s%@SVGA_LIBS@%$SVGA_LIBS%g
2393 s%@USE_SVGALIB_TRUE@%$USE_SVGALIB_TRUE%g
2394 s%@USE_SVGALIB_FALSE@%$USE_SVGALIB_FALSE%g
2395 s%@USE_ASM_TRUE@%$USE_ASM_TRUE%g
2396 s%@USE_ASM_FALSE@%$USE_ASM_FALSE%g
2397 s%@NASMFLAGS@%$NASMFLAGS%g
2402 cat >> $CONFIG_STATUS <<\EOF
2404 # Split the substitutions into bite-sized pieces for seds with
2405 # small command number limits, like on Digital OSF/1 and HP-UX.
2406 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2407 ac_file=1 # Number of current file.
2408 ac_beg=1 # First line for current file.
2409 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2412 while $ac_more_lines; do
2413 if test $ac_beg -gt 1; then
2414 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2416 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2418 if test ! -s conftest.s$ac_file; then
2420 rm -f conftest.s$ac_file
2422 if test -z "$ac_sed_cmds"; then
2423 ac_sed_cmds="sed -f conftest.s$ac_file"
2425 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2427 ac_file=`expr $ac_file + 1`
2429 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2432 if test -z "$ac_sed_cmds"; then
2437 cat >> $CONFIG_STATUS <<EOF
2439 CONFIG_FILES=\${CONFIG_FILES-"Makefile
2455 cat >> $CONFIG_STATUS <<\EOF
2456 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2457 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2459 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2460 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2461 *) ac_file_in="${ac_file}.in" ;;
2464 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2466 # Remove last slash and all that follows it. Not all systems have dirname.
2467 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2468 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2469 # The file is in a subdirectory.
2470 test ! -d "$ac_dir" && mkdir "$ac_dir"
2471 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2472 # A "../" for each directory in $ac_dir_suffix.
2473 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2475 ac_dir_suffix= ac_dots=
2478 case "$ac_given_srcdir" in
2480 if test -z "$ac_dots"; then top_srcdir=.
2481 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2482 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2484 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2485 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2488 case "$ac_given_INSTALL" in
2489 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2490 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2493 echo creating "$ac_file"
2495 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2497 *Makefile*) ac_comsub="1i\\
2498 # $configure_input" ;;
2502 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2504 s%@configure_input@%$configure_input%g
2505 s%@srcdir@%$srcdir%g
2506 s%@top_srcdir@%$top_srcdir%g
2507 s%@INSTALL@%$INSTALL%g
2508 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2512 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2513 # NAME is the cpp macro being defined and VALUE is the value it is being given.
2515 # ac_d sets the value in "#define NAME VALUE" lines.
2516 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
2517 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
2520 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2521 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2522 ac_uB='\([ ]\)%\1#\2define\3'
2525 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2526 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2527 ac_eB='$%\1#\2define\3'
2531 if test "${CONFIG_HEADERS+set}" != set; then
2533 cat >> $CONFIG_STATUS <<EOF
2534 CONFIG_HEADERS="conf.h"
2536 cat >> $CONFIG_STATUS <<\EOF
2538 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
2539 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2541 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2542 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2543 *) ac_file_in="${ac_file}.in" ;;
2546 echo creating $ac_file
2548 rm -f conftest.frag conftest.in conftest.out
2549 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2550 cat $ac_file_inputs > conftest.in
2554 # Transform confdefs.h into a sed script conftest.vals that substitutes
2555 # the proper values into config.h.in to produce config.h. And first:
2556 # Protect against being on the right side of a sed subst in config.status.
2557 # Protect against being in an unquoted here document in config.status.
2559 cat > conftest.hdr <<\EOF
2562 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2566 sed -n -f conftest.hdr confdefs.h > conftest.vals
2569 # This sed command replaces #undef with comments. This is necessary, for
2570 # example, in the case of _POSIX_SOURCE, which is predefined and required
2571 # on some systems where configure will not decide to define it.
2572 cat >> conftest.vals <<\EOF
2573 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2576 # Break up conftest.vals because some shells have a limit on
2577 # the size of here documents, and old seds have small limits too.
2582 ac_lines=`grep -c . conftest.vals`
2583 # grep -c gives empty output for an empty file on some AIX systems.
2584 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2585 # Write a limited-size here document to conftest.frag.
2586 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2587 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2589 sed -f conftest.frag conftest.in > conftest.out
2591 mv conftest.out conftest.in
2593 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2595 mv conftest.tail conftest.vals
2599 cat >> $CONFIG_STATUS <<\EOF
2600 rm -f conftest.frag conftest.h
2601 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
2602 cat conftest.in >> conftest.h
2604 if cmp -s $ac_file conftest.h 2>/dev/null; then
2605 echo "$ac_file is unchanged"
2608 # Remove last slash and all that follows it. Not all systems have dirname.
2609 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2610 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2611 # The file is in a subdirectory.
2612 test ! -d "$ac_dir" && mkdir "$ac_dir"
2615 mv conftest.h $ac_file
2620 cat >> $CONFIG_STATUS <<EOF
2624 cat >> $CONFIG_STATUS <<\EOF
2625 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
2629 chmod +x $CONFIG_STATUS
2630 rm -fr confdefs* $ac_clean_files
2631 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1