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 --with-opengl Build OpenGL support "
20 --without-assembler Do not use assembler optimization "
22 --without-network Do not build network/serial support "
24 # Initialize some variables set by options.
25 # The variables have the same names as the options, with
26 # dashes changed to underlines.
28 cache_file=./config.cache
37 program_transform_name=s,x,x,
45 bindir='${exec_prefix}/bin'
46 sbindir='${exec_prefix}/sbin'
47 libexecdir='${exec_prefix}/libexec'
48 datadir='${prefix}/share'
49 sysconfdir='${prefix}/etc'
50 sharedstatedir='${prefix}/com'
51 localstatedir='${prefix}/var'
52 libdir='${exec_prefix}/lib'
53 includedir='${prefix}/include'
54 oldincludedir='/usr/include'
55 infodir='${prefix}/info'
56 mandir='${prefix}/man'
58 # Initialize some other variables.
61 SHELL=${CONFIG_SHELL-/bin/sh}
62 # Maximum number of lines to put in a shell here document.
69 # If the previous option needs an argument, assign it.
70 if test -n "$ac_prev"; then
71 eval "$ac_prev=\$ac_option"
77 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
81 # Accept the important Cygnus configure options, so we can diagnose typos.
85 -bindir | --bindir | --bindi | --bind | --bin | --bi)
87 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
88 bindir="$ac_optarg" ;;
90 -build | --build | --buil | --bui | --bu)
92 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
95 -cache-file | --cache-file | --cache-fil | --cache-fi \
96 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
98 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
99 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
100 cache_file="$ac_optarg" ;;
102 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
104 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
106 datadir="$ac_optarg" ;;
108 -disable-* | --disable-*)
109 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
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'`
115 eval "enable_${ac_feature}=no" ;;
117 -enable-* | --enable-*)
118 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
119 # Reject names that are not valid shell variable names.
120 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
121 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
123 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
128 eval "enable_${ac_feature}='$ac_optarg'" ;;
130 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
131 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
132 | --exec | --exe | --ex)
133 ac_prev=exec_prefix ;;
134 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
135 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
136 | --exec=* | --exe=* | --ex=*)
137 exec_prefix="$ac_optarg" ;;
139 -gas | --gas | --ga | --g)
140 # Obsolete; use --with-gas.
143 -help | --help | --hel | --he)
144 # Omit some internal or obsolete options to make the list less imposing.
145 # This message is too long to be a string in the A/UX 3.1 sh.
147 Usage: configure [options] [host]
148 Options: [defaults in brackets after descriptions]
150 --cache-file=FILE cache test results in FILE
151 --help print this message
152 --no-create do not create output files
153 --quiet, --silent do not print \`checking...' messages
154 --version print the version of autoconf that created configure
155 Directory and file names:
156 --prefix=PREFIX install architecture-independent files in PREFIX
158 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
160 --bindir=DIR user executables in DIR [EPREFIX/bin]
161 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
162 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
163 --datadir=DIR read-only architecture-independent data in DIR
165 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
166 --sharedstatedir=DIR modifiable architecture-independent data in DIR
168 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
169 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
170 --includedir=DIR C header files in DIR [PREFIX/include]
171 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
172 --infodir=DIR info documentation in DIR [PREFIX/info]
173 --mandir=DIR man documentation in DIR [PREFIX/man]
174 --srcdir=DIR find the sources in DIR [configure dir or ..]
175 --program-prefix=PREFIX prepend PREFIX to installed program names
176 --program-suffix=SUFFIX append SUFFIX to installed program names
177 --program-transform-name=PROGRAM
178 run sed PROGRAM on installed program names
182 --build=BUILD configure for building on BUILD [BUILD=HOST]
183 --host=HOST configure for HOST [guessed]
184 --target=TARGET configure for TARGET [TARGET=HOST]
185 Features and packages:
186 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
187 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
188 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
189 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
190 --x-includes=DIR X include files are in DIR
191 --x-libraries=DIR X library files are in DIR
193 if test -n "$ac_help"; then
194 echo "--enable and --with options recognized:$ac_help"
198 -host | --host | --hos | --ho)
200 -host=* | --host=* | --hos=* | --ho=*)
203 -includedir | --includedir | --includedi | --included | --include \
204 | --includ | --inclu | --incl | --inc)
205 ac_prev=includedir ;;
206 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
207 | --includ=* | --inclu=* | --incl=* | --inc=*)
208 includedir="$ac_optarg" ;;
210 -infodir | --infodir | --infodi | --infod | --info | --inf)
212 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
213 infodir="$ac_optarg" ;;
215 -libdir | --libdir | --libdi | --libd)
217 -libdir=* | --libdir=* | --libdi=* | --libd=*)
218 libdir="$ac_optarg" ;;
220 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
221 | --libexe | --libex | --libe)
222 ac_prev=libexecdir ;;
223 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
224 | --libexe=* | --libex=* | --libe=*)
225 libexecdir="$ac_optarg" ;;
227 -localstatedir | --localstatedir | --localstatedi | --localstated \
228 | --localstate | --localstat | --localsta | --localst \
229 | --locals | --local | --loca | --loc | --lo)
230 ac_prev=localstatedir ;;
231 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
232 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
233 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
234 localstatedir="$ac_optarg" ;;
236 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
238 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
239 mandir="$ac_optarg" ;;
242 # Obsolete; use --without-fp.
245 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
249 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
250 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
253 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
254 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
255 | --oldin | --oldi | --old | --ol | --o)
256 ac_prev=oldincludedir ;;
257 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
258 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
259 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
260 oldincludedir="$ac_optarg" ;;
262 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
264 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
265 prefix="$ac_optarg" ;;
267 -program-prefix | --program-prefix | --program-prefi | --program-pref \
268 | --program-pre | --program-pr | --program-p)
269 ac_prev=program_prefix ;;
270 -program-prefix=* | --program-prefix=* | --program-prefi=* \
271 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
272 program_prefix="$ac_optarg" ;;
274 -program-suffix | --program-suffix | --program-suffi | --program-suff \
275 | --program-suf | --program-su | --program-s)
276 ac_prev=program_suffix ;;
277 -program-suffix=* | --program-suffix=* | --program-suffi=* \
278 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
279 program_suffix="$ac_optarg" ;;
281 -program-transform-name | --program-transform-name \
282 | --program-transform-nam | --program-transform-na \
283 | --program-transform-n | --program-transform- \
284 | --program-transform | --program-transfor \
285 | --program-transfo | --program-transf \
286 | --program-trans | --program-tran \
287 | --progr-tra | --program-tr | --program-t)
288 ac_prev=program_transform_name ;;
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 program_transform_name="$ac_optarg" ;;
298 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
299 | -silent | --silent | --silen | --sile | --sil)
302 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
304 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
306 sbindir="$ac_optarg" ;;
308 -sharedstatedir | --sharedstatedir | --sharedstatedi \
309 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
310 | --sharedst | --shareds | --shared | --share | --shar \
312 ac_prev=sharedstatedir ;;
313 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
314 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
315 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
317 sharedstatedir="$ac_optarg" ;;
319 -site | --site | --sit)
321 -site=* | --site=* | --sit=*)
324 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
326 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
327 srcdir="$ac_optarg" ;;
329 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
330 | --syscon | --sysco | --sysc | --sys | --sy)
331 ac_prev=sysconfdir ;;
332 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
333 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
334 sysconfdir="$ac_optarg" ;;
336 -target | --target | --targe | --targ | --tar | --ta | --t)
338 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
339 target="$ac_optarg" ;;
341 -v | -verbose | --verbose | --verbos | --verbo | --verb)
344 -version | --version | --versio | --versi | --vers)
345 echo "configure generated by autoconf version 2.13"
349 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
350 # Reject names that are not valid shell variable names.
351 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
352 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
354 ac_package=`echo $ac_package| sed 's/-/_/g'`
359 eval "with_${ac_package}='$ac_optarg'" ;;
361 -without-* | --without-*)
362 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
363 # Reject names that are not valid shell variable names.
364 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
365 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
367 ac_package=`echo $ac_package| sed 's/-/_/g'`
368 eval "with_${ac_package}=no" ;;
371 # Obsolete; use --with-x.
374 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
375 | --x-incl | --x-inc | --x-in | --x-i)
376 ac_prev=x_includes ;;
377 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
378 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
379 x_includes="$ac_optarg" ;;
381 -x-libraries | --x-libraries | --x-librarie | --x-librari \
382 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
383 ac_prev=x_libraries ;;
384 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
385 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
386 x_libraries="$ac_optarg" ;;
388 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
392 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
393 echo "configure: warning: $ac_option: invalid host type" 1>&2
395 if test "x$nonopt" != xNONE; then
396 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
404 if test -n "$ac_prev"; then
405 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
408 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
410 # File descriptor usage:
413 # 2 errors and warnings
414 # 3 some systems may open it to /dev/tty
415 # 4 used on the Kubota Titan
416 # 6 checking for... messages and results
417 # 5 compiler messages saved in config.log
418 if test "$silent" = yes; then
426 This file contains any messages produced by compilers while
427 running configure, to aid debugging if configure makes a mistake.
430 # Strip out --no-create and --no-recursion so they do not pile up.
431 # Also quote any args containing shell metacharacters.
436 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
437 | --no-cr | --no-c) ;;
438 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
439 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
440 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
441 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
442 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
447 # Only set these to C if already set. These must not be set unconditionally
448 # because not all systems understand e.g. LANG=C (notably SCO).
449 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
450 # Non-C LC_CTYPE values break the ctype check.
451 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
452 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
453 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
454 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
456 # confdefs.h avoids OS command line length limits that DEFS can exceed.
457 rm -rf conftest* confdefs.h
458 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
461 # A filename unique to this package, relative to the directory that
462 # configure is in, which we can look for to find out if srcdir is correct.
463 ac_unique_file=main/game.c
465 # Find the source files, if location was not specified.
466 if test -z "$srcdir"; then
467 ac_srcdir_defaulted=yes
468 # Try the directory containing this script, then its parent.
470 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
471 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
473 if test ! -r $srcdir/$ac_unique_file; then
477 ac_srcdir_defaulted=no
479 if test ! -r $srcdir/$ac_unique_file; then
480 if test "$ac_srcdir_defaulted" = yes; then
481 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
483 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
486 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
488 # Prefer explicitly selected file to automatically selected ones.
489 if test -z "$CONFIG_SITE"; then
490 if test "x$prefix" != xNONE; then
491 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
493 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
496 for ac_site_file in $CONFIG_SITE; do
497 if test -r "$ac_site_file"; then
498 echo "loading site script $ac_site_file"
503 if test -r "$cache_file"; then
504 echo "loading cache $cache_file"
507 echo "creating cache $cache_file"
512 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
513 ac_cpp='$CPP $CPPFLAGS'
514 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
515 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
516 cross_compiling=$ac_cv_prog_cc_cross
520 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
521 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
522 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
529 ac_n= ac_c='\c' ac_t=
538 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
539 if test -f $ac_dir/install-sh; then
541 ac_install_sh="$ac_aux_dir/install-sh -c"
543 elif test -f $ac_dir/install.sh; then
545 ac_install_sh="$ac_aux_dir/install.sh -c"
549 if test -z "$ac_aux_dir"; then
550 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
552 ac_config_guess=$ac_aux_dir/config.guess
553 ac_config_sub=$ac_aux_dir/config.sub
554 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
556 # Find a good install program. We prefer a C program (faster),
557 # so one script is as good as another. But avoid the broken or
558 # incompatible versions:
559 # SysV /etc/install, /usr/sbin/install
560 # SunOS /usr/etc/install
563 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
564 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
565 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
566 # ./install, which can be erroneously created by make from ./install.sh.
567 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
568 echo "configure:569: checking for a BSD compatible install" >&5
569 if test -z "$INSTALL"; then
570 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
571 echo $ac_n "(cached) $ac_c" 1>&6
573 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
574 for ac_dir in $PATH; do
575 # Account for people who put trailing slashes in PATH elements.
577 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
579 # OSF1 and SCO ODT 3.0 have their own names for install.
580 # Don't use installbsd from OSF since it installs stuff as root
582 for ac_prog in ginstall scoinst install; do
583 if test -f $ac_dir/$ac_prog; then
584 if test $ac_prog = install &&
585 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
586 # AIX install. It has an incompatible calling convention.
589 ac_cv_path_install="$ac_dir/$ac_prog -c"
600 if test "${ac_cv_path_install+set}" = set; then
601 INSTALL="$ac_cv_path_install"
603 # As a last resort, use the slow shell script. We don't cache a
604 # path for INSTALL within a source directory, because that will
605 # break other packages using the cache if that directory is
606 # removed, or if the path is relative.
607 INSTALL="$ac_install_sh"
610 echo "$ac_t""$INSTALL" 1>&6
612 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
613 # It thinks the first close brace ends the variable substitution.
614 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
616 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
618 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
620 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
621 echo "configure:622: checking whether build environment is sane" >&5
624 echo timestamp > conftestfile
625 # Do `set' in a subshell so we don't clobber the current shell's
626 # arguments. Must try -L first in case configure is actually a
627 # symlink; some systems play weird games with the mod time of symlinks
628 # (eg FreeBSD returns the mod time of the symlink's containing
631 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
632 if test "$*" = "X"; then
634 set X `ls -t $srcdir/configure conftestfile`
636 if test "$*" != "X $srcdir/configure conftestfile" \
637 && test "$*" != "X conftestfile $srcdir/configure"; then
639 # If neither matched, then we have a broken ls. This can happen
640 # if, for instance, CONFIG_SHELL is bash and it inherits a
641 # broken ls alias from the environment. This has actually
642 # happened. Such a system could not be considered "sane".
643 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
644 alias in your environment" 1>&2; exit 1; }
647 test "$2" = conftestfile
653 { echo "configure: error: newly created file is older than distributed files!
654 Check your system clock" 1>&2; exit 1; }
657 echo "$ac_t""yes" 1>&6
658 if test "$program_transform_name" = s,x,x,; then
659 program_transform_name=
661 # Double any \ or $. echo might interpret backslashes.
662 cat <<\EOF_SED > conftestsed
663 s,\\,\\\\,g; s,\$,$$,g
665 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
668 test "$program_prefix" != NONE &&
669 program_transform_name="s,^,${program_prefix},; $program_transform_name"
670 # Use a double $ so make ignores it.
671 test "$program_suffix" != NONE &&
672 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
674 # sed with no file args requires a program.
675 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
677 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
678 echo "configure:679: checking whether ${MAKE-make} sets \${MAKE}" >&5
679 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
680 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
681 echo $ac_n "(cached) $ac_c" 1>&6
683 cat > conftestmake <<\EOF
685 @echo 'ac_maketemp="${MAKE}"'
687 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
688 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
689 if test -n "$ac_maketemp"; then
690 eval ac_cv_prog_make_${ac_make}_set=yes
692 eval ac_cv_prog_make_${ac_make}_set=no
696 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
697 echo "$ac_t""yes" 1>&6
700 echo "$ac_t""no" 1>&6
701 SET_MAKE="MAKE=${MAKE-make}"
709 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
710 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
712 cat >> confdefs.h <<EOF
713 #define PACKAGE "$PACKAGE"
716 cat >> confdefs.h <<EOF
717 #define VERSION "$VERSION"
722 missing_dir=`cd $ac_aux_dir && pwd`
723 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
724 echo "configure:725: checking for working aclocal" >&5
725 # Run test in a subshell; some versions of sh will print an error if
726 # an executable is not found, even if stderr is redirected.
727 # Redirect stdin to placate older versions of autoconf. Sigh.
728 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
730 echo "$ac_t""found" 1>&6
732 ACLOCAL="$missing_dir/missing aclocal"
733 echo "$ac_t""missing" 1>&6
736 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
737 echo "configure:738: checking for working autoconf" >&5
738 # Run test in a subshell; some versions of sh will print an error if
739 # an executable is not found, even if stderr is redirected.
740 # Redirect stdin to placate older versions of autoconf. Sigh.
741 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
743 echo "$ac_t""found" 1>&6
745 AUTOCONF="$missing_dir/missing autoconf"
746 echo "$ac_t""missing" 1>&6
749 echo $ac_n "checking for working automake""... $ac_c" 1>&6
750 echo "configure:751: checking for working automake" >&5
751 # Run test in a subshell; some versions of sh will print an error if
752 # an executable is not found, even if stderr is redirected.
753 # Redirect stdin to placate older versions of autoconf. Sigh.
754 if (automake --version) < /dev/null > /dev/null 2>&1; then
756 echo "$ac_t""found" 1>&6
758 AUTOMAKE="$missing_dir/missing automake"
759 echo "$ac_t""missing" 1>&6
762 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
763 echo "configure:764: checking for working autoheader" >&5
764 # Run test in a subshell; some versions of sh will print an error if
765 # an executable is not found, even if stderr is redirected.
766 # Redirect stdin to placate older versions of autoconf. Sigh.
767 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
768 AUTOHEADER=autoheader
769 echo "$ac_t""found" 1>&6
771 AUTOHEADER="$missing_dir/missing autoheader"
772 echo "$ac_t""missing" 1>&6
775 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
776 echo "configure:777: checking for working makeinfo" >&5
777 # Run test in a subshell; some versions of sh will print an error if
778 # an executable is not found, even if stderr is redirected.
779 # Redirect stdin to placate older versions of autoconf. Sigh.
780 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
782 echo "$ac_t""found" 1>&6
784 MAKEINFO="$missing_dir/missing makeinfo"
785 echo "$ac_t""missing" 1>&6
790 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
791 echo "configure:792: checking whether to enable maintainer-specific portions of Makefiles" >&5
792 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
793 if test "${enable_maintainer_mode+set}" = set; then
794 enableval="$enable_maintainer_mode"
795 USE_MAINTAINER_MODE=$enableval
797 USE_MAINTAINER_MODE=no
800 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
803 if test $USE_MAINTAINER_MODE = yes; then
804 MAINTAINER_MODE_TRUE=
805 MAINTAINER_MODE_FALSE='#'
807 MAINTAINER_MODE_TRUE='#'
808 MAINTAINER_MODE_FALSE=
810 MAINT=$MAINTAINER_MODE_TRUE
814 # Extract the first word of "gcc", so it can be a program name with args.
815 set dummy gcc; ac_word=$2
816 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
817 echo "configure:818: checking for $ac_word" >&5
818 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
819 echo $ac_n "(cached) $ac_c" 1>&6
821 if test -n "$CC"; then
822 ac_cv_prog_CC="$CC" # Let the user override the test.
824 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
826 for ac_dir in $ac_dummy; do
827 test -z "$ac_dir" && ac_dir=.
828 if test -f $ac_dir/$ac_word; then
837 if test -n "$CC"; then
838 echo "$ac_t""$CC" 1>&6
840 echo "$ac_t""no" 1>&6
843 if test -z "$CC"; then
844 # Extract the first word of "cc", so it can be a program name with args.
845 set dummy cc; ac_word=$2
846 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
847 echo "configure:848: checking for $ac_word" >&5
848 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
849 echo $ac_n "(cached) $ac_c" 1>&6
851 if test -n "$CC"; then
852 ac_cv_prog_CC="$CC" # Let the user override the test.
854 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
857 for ac_dir in $ac_dummy; do
858 test -z "$ac_dir" && ac_dir=.
859 if test -f $ac_dir/$ac_word; then
860 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
869 if test $ac_prog_rejected = yes; then
870 # We found a bogon in the path, so make sure we never use it.
871 set dummy $ac_cv_prog_CC
873 if test $# -gt 0; then
874 # We chose a different compiler from the bogus one.
875 # However, it has the same basename, so the bogon will be chosen
876 # first if we set CC to just the basename; use the full file name.
878 set dummy "$ac_dir/$ac_word" "$@"
886 if test -n "$CC"; then
887 echo "$ac_t""$CC" 1>&6
889 echo "$ac_t""no" 1>&6
892 if test -z "$CC"; then
895 # Extract the first word of "cl", so it can be a program name with args.
896 set dummy cl; ac_word=$2
897 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
898 echo "configure:899: checking for $ac_word" >&5
899 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
900 echo $ac_n "(cached) $ac_c" 1>&6
902 if test -n "$CC"; then
903 ac_cv_prog_CC="$CC" # Let the user override the test.
905 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
907 for ac_dir in $ac_dummy; do
908 test -z "$ac_dir" && ac_dir=.
909 if test -f $ac_dir/$ac_word; then
918 if test -n "$CC"; then
919 echo "$ac_t""$CC" 1>&6
921 echo "$ac_t""no" 1>&6
926 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
929 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
930 echo "configure:931: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
933 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
934 ac_cpp='$CPP $CPPFLAGS'
935 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
936 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
937 cross_compiling=$ac_cv_prog_cc_cross
939 cat > conftest.$ac_ext << EOF
941 #line 942 "configure"
942 #include "confdefs.h"
946 if { (eval echo configure:947: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
947 ac_cv_prog_cc_works=yes
948 # If we can't run a trivial program, we are probably using a cross compiler.
949 if (./conftest; exit) 2>/dev/null; then
950 ac_cv_prog_cc_cross=no
952 ac_cv_prog_cc_cross=yes
955 echo "configure: failed program was:" >&5
956 cat conftest.$ac_ext >&5
957 ac_cv_prog_cc_works=no
961 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
962 ac_cpp='$CPP $CPPFLAGS'
963 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
964 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
965 cross_compiling=$ac_cv_prog_cc_cross
967 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
968 if test $ac_cv_prog_cc_works = no; then
969 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
971 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
972 echo "configure:973: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
973 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
974 cross_compiling=$ac_cv_prog_cc_cross
976 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
977 echo "configure:978: checking whether we are using GNU C" >&5
978 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
979 echo $ac_n "(cached) $ac_c" 1>&6
981 cat > conftest.c <<EOF
986 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:987: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
993 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
995 if test $ac_cv_prog_gcc = yes; then
1001 ac_test_CFLAGS="${CFLAGS+set}"
1002 ac_save_CFLAGS="$CFLAGS"
1004 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1005 echo "configure:1006: checking whether ${CC-cc} accepts -g" >&5
1006 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1007 echo $ac_n "(cached) $ac_c" 1>&6
1009 echo 'void f(){}' > conftest.c
1010 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1019 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1020 if test "$ac_test_CFLAGS" = set; then
1021 CFLAGS="$ac_save_CFLAGS"
1022 elif test $ac_cv_prog_cc_g = yes; then
1023 if test "$GCC" = yes; then
1029 if test "$GCC" = yes; then
1036 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1037 echo "configure:1038: checking for POSIXized ISC" >&5
1038 if test -d /etc/conf/kconfig.d &&
1039 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
1041 echo "$ac_t""yes" 1>&6
1042 ISC=yes # If later tests want to check for ISC.
1043 cat >> confdefs.h <<\EOF
1044 #define _POSIX_SOURCE 1
1047 if test "$GCC" = yes; then
1053 echo "$ac_t""no" 1>&6
1057 # Extract the first word of "gcc", so it can be a program name with args.
1058 set dummy gcc; ac_word=$2
1059 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1060 echo "configure:1061: checking for $ac_word" >&5
1061 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1062 echo $ac_n "(cached) $ac_c" 1>&6
1064 if test -n "$CC"; then
1065 ac_cv_prog_CC="$CC" # Let the user override the test.
1067 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1069 for ac_dir in $ac_dummy; do
1070 test -z "$ac_dir" && ac_dir=.
1071 if test -f $ac_dir/$ac_word; then
1080 if test -n "$CC"; then
1081 echo "$ac_t""$CC" 1>&6
1083 echo "$ac_t""no" 1>&6
1086 if test -z "$CC"; then
1087 # Extract the first word of "cc", so it can be a program name with args.
1088 set dummy cc; ac_word=$2
1089 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1090 echo "configure:1091: checking for $ac_word" >&5
1091 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1092 echo $ac_n "(cached) $ac_c" 1>&6
1094 if test -n "$CC"; then
1095 ac_cv_prog_CC="$CC" # Let the user override the test.
1097 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1100 for ac_dir in $ac_dummy; do
1101 test -z "$ac_dir" && ac_dir=.
1102 if test -f $ac_dir/$ac_word; then
1103 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1104 ac_prog_rejected=yes
1112 if test $ac_prog_rejected = yes; then
1113 # We found a bogon in the path, so make sure we never use it.
1114 set dummy $ac_cv_prog_CC
1116 if test $# -gt 0; then
1117 # We chose a different compiler from the bogus one.
1118 # However, it has the same basename, so the bogon will be chosen
1119 # first if we set CC to just the basename; use the full file name.
1121 set dummy "$ac_dir/$ac_word" "$@"
1129 if test -n "$CC"; then
1130 echo "$ac_t""$CC" 1>&6
1132 echo "$ac_t""no" 1>&6
1135 if test -z "$CC"; then
1136 case "`uname -s`" in
1138 # Extract the first word of "cl", so it can be a program name with args.
1139 set dummy cl; ac_word=$2
1140 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1141 echo "configure:1142: checking for $ac_word" >&5
1142 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1143 echo $ac_n "(cached) $ac_c" 1>&6
1145 if test -n "$CC"; then
1146 ac_cv_prog_CC="$CC" # Let the user override the test.
1148 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1150 for ac_dir in $ac_dummy; do
1151 test -z "$ac_dir" && ac_dir=.
1152 if test -f $ac_dir/$ac_word; then
1161 if test -n "$CC"; then
1162 echo "$ac_t""$CC" 1>&6
1164 echo "$ac_t""no" 1>&6
1169 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1172 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1173 echo "configure:1174: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1176 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1177 ac_cpp='$CPP $CPPFLAGS'
1178 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1179 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1180 cross_compiling=$ac_cv_prog_cc_cross
1182 cat > conftest.$ac_ext << EOF
1184 #line 1185 "configure"
1185 #include "confdefs.h"
1189 if { (eval echo configure:1190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1190 ac_cv_prog_cc_works=yes
1191 # If we can't run a trivial program, we are probably using a cross compiler.
1192 if (./conftest; exit) 2>/dev/null; then
1193 ac_cv_prog_cc_cross=no
1195 ac_cv_prog_cc_cross=yes
1198 echo "configure: failed program was:" >&5
1199 cat conftest.$ac_ext >&5
1200 ac_cv_prog_cc_works=no
1204 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1205 ac_cpp='$CPP $CPPFLAGS'
1206 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1207 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1208 cross_compiling=$ac_cv_prog_cc_cross
1210 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1211 if test $ac_cv_prog_cc_works = no; then
1212 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1214 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1215 echo "configure:1216: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1216 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1217 cross_compiling=$ac_cv_prog_cc_cross
1219 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1220 echo "configure:1221: checking whether we are using GNU C" >&5
1221 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1222 echo $ac_n "(cached) $ac_c" 1>&6
1224 cat > conftest.c <<EOF
1229 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1230: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1236 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1238 if test $ac_cv_prog_gcc = yes; then
1244 ac_test_CFLAGS="${CFLAGS+set}"
1245 ac_save_CFLAGS="$CFLAGS"
1247 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1248 echo "configure:1249: checking whether ${CC-cc} accepts -g" >&5
1249 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1250 echo $ac_n "(cached) $ac_c" 1>&6
1252 echo 'void f(){}' > conftest.c
1253 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1262 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1263 if test "$ac_test_CFLAGS" = set; then
1264 CFLAGS="$ac_save_CFLAGS"
1265 elif test $ac_cv_prog_cc_g = yes; then
1266 if test "$GCC" = yes; then
1272 if test "$GCC" = yes; then
1279 # Extract the first word of "ranlib", so it can be a program name with args.
1280 set dummy ranlib; ac_word=$2
1281 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1282 echo "configure:1283: checking for $ac_word" >&5
1283 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1284 echo $ac_n "(cached) $ac_c" 1>&6
1286 if test -n "$RANLIB"; then
1287 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1289 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1291 for ac_dir in $ac_dummy; do
1292 test -z "$ac_dir" && ac_dir=.
1293 if test -f $ac_dir/$ac_word; then
1294 ac_cv_prog_RANLIB="ranlib"
1299 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1302 RANLIB="$ac_cv_prog_RANLIB"
1303 if test -n "$RANLIB"; then
1304 echo "$ac_t""$RANLIB" 1>&6
1306 echo "$ac_t""no" 1>&6
1309 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1310 echo "configure:1311: checking how to run the C preprocessor" >&5
1311 # On Suns, sometimes $CPP names a directory.
1312 if test -n "$CPP" && test -d "$CPP"; then
1315 if test -z "$CPP"; then
1316 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1317 echo $ac_n "(cached) $ac_c" 1>&6
1319 # This must be in double quotes, not single quotes, because CPP may get
1320 # substituted into the Makefile and "${CC-cc}" will confuse make.
1322 # On the NeXT, cc -E runs the code through the compiler's parser,
1323 # not just through cpp.
1324 cat > conftest.$ac_ext <<EOF
1325 #line 1326 "configure"
1326 #include "confdefs.h"
1330 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1331 { (eval echo configure:1332: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1332 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1333 if test -z "$ac_err"; then
1337 echo "configure: failed program was:" >&5
1338 cat conftest.$ac_ext >&5
1340 CPP="${CC-cc} -E -traditional-cpp"
1341 cat > conftest.$ac_ext <<EOF
1342 #line 1343 "configure"
1343 #include "confdefs.h"
1347 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1348 { (eval echo configure:1349: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1349 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1350 if test -z "$ac_err"; then
1354 echo "configure: failed program was:" >&5
1355 cat conftest.$ac_ext >&5
1357 CPP="${CC-cc} -nologo -E"
1358 cat > conftest.$ac_ext <<EOF
1359 #line 1360 "configure"
1360 #include "confdefs.h"
1364 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1365 { (eval echo configure:1366: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1366 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1367 if test -z "$ac_err"; then
1371 echo "configure: failed program was:" >&5
1372 cat conftest.$ac_ext >&5
1381 ac_cv_prog_CPP="$CPP"
1383 CPP="$ac_cv_prog_CPP"
1385 ac_cv_prog_CPP="$CPP"
1387 echo "$ac_t""$CPP" 1>&6
1389 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1390 echo "configure:1391: checking for ANSI C header files" >&5
1391 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1392 echo $ac_n "(cached) $ac_c" 1>&6
1394 cat > conftest.$ac_ext <<EOF
1395 #line 1396 "configure"
1396 #include "confdefs.h"
1402 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1403 { (eval echo configure:1404: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1404 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1405 if test -z "$ac_err"; then
1407 ac_cv_header_stdc=yes
1410 echo "configure: failed program was:" >&5
1411 cat conftest.$ac_ext >&5
1413 ac_cv_header_stdc=no
1417 if test $ac_cv_header_stdc = yes; then
1418 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1419 cat > conftest.$ac_ext <<EOF
1420 #line 1421 "configure"
1421 #include "confdefs.h"
1424 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1425 egrep "memchr" >/dev/null 2>&1; then
1429 ac_cv_header_stdc=no
1435 if test $ac_cv_header_stdc = yes; then
1436 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1437 cat > conftest.$ac_ext <<EOF
1438 #line 1439 "configure"
1439 #include "confdefs.h"
1442 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1443 egrep "free" >/dev/null 2>&1; then
1447 ac_cv_header_stdc=no
1453 if test $ac_cv_header_stdc = yes; then
1454 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1455 if test "$cross_compiling" = yes; then
1458 cat > conftest.$ac_ext <<EOF
1459 #line 1460 "configure"
1460 #include "confdefs.h"
1462 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1463 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1464 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1465 int main () { int i; for (i = 0; i < 256; i++)
1466 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1470 if { (eval echo configure:1471: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1474 echo "configure: failed program was:" >&5
1475 cat conftest.$ac_ext >&5
1477 ac_cv_header_stdc=no
1485 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1486 if test $ac_cv_header_stdc = yes; then
1487 cat >> confdefs.h <<\EOF
1488 #define STDC_HEADERS 1
1494 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1495 echo "configure:1496: checking for Cygwin environment" >&5
1496 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1497 echo $ac_n "(cached) $ac_c" 1>&6
1499 cat > conftest.$ac_ext <<EOF
1500 #line 1501 "configure"
1501 #include "confdefs.h"
1506 #define __CYGWIN__ __CYGWIN32__
1511 if { (eval echo configure:1512: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1515 echo "configure: failed program was:" >&5
1516 cat conftest.$ac_ext >&5
1524 echo "$ac_t""$ac_cv_cygwin" 1>&6
1526 test "$ac_cv_cygwin" = yes && CYGWIN=yes
1527 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1528 echo "configure:1529: checking for mingw32 environment" >&5
1529 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1530 echo $ac_n "(cached) $ac_c" 1>&6
1532 cat > conftest.$ac_ext <<EOF
1533 #line 1534 "configure"
1534 #include "confdefs.h"
1540 if { (eval echo configure:1541: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1544 echo "configure: failed program was:" >&5
1545 cat conftest.$ac_ext >&5
1553 echo "$ac_t""$ac_cv_mingw32" 1>&6
1555 test "$ac_cv_mingw32" = yes && MINGW32=yes
1557 CFLAGS="-g -O2 -Wall -Werror"
1560 if test "$OSTYPE" = "MSDOS"; then
1562 CFLAGS="-I \$(top_srcdir)/arch/dos/include $CFLAGS"
1565 if test "$OSTYPE" = "MSDOS"; then
1572 cat >> confdefs.h <<\EOF
1573 #define __ENV_DJGPP__ 1
1576 # Extract the first word of "nasmw", so it can be a program name with args.
1577 set dummy nasmw; ac_word=$2
1578 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1579 echo "configure:1580: checking for $ac_word" >&5
1580 if eval "test \"`echo '$''{'ac_cv_path_NASM'+set}'`\" = set"; then
1581 echo $ac_n "(cached) $ac_c" 1>&6
1585 ac_cv_path_NASM="$NASM" # Let the user override the test with a path.
1588 ac_cv_path_NASM="$NASM" # Let the user override the test with a dos path.
1591 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1593 for ac_dir in $ac_dummy; do
1594 test -z "$ac_dir" && ac_dir=.
1595 if test -f $ac_dir/$ac_word; then
1596 ac_cv_path_NASM="$ac_dir/$ac_word"
1601 test -z "$ac_cv_path_NASM" && ac_cv_path_NASM="no"
1605 NASM="$ac_cv_path_NASM"
1606 if test -n "$NASM"; then
1607 echo "$ac_t""$NASM" 1>&6
1609 echo "$ac_t""no" 1>&6
1615 CFLAGS="-D_REENTRANT -pipe $CFLAGS"
1618 if test "$OSTYPE" != "MSDOS"; then
1625 cat >> confdefs.h <<\EOF
1626 #define __ENV_LINUX__ 1
1631 echo $ac_n "checking for SDL_Init in -lSDL""... $ac_c" 1>&6
1632 echo "configure:1633: checking for SDL_Init in -lSDL" >&5
1633 ac_lib_var=`echo SDL'_'SDL_Init | sed 'y%./+-%__p_%'`
1634 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1635 echo $ac_n "(cached) $ac_c" 1>&6
1637 ac_save_LIBS="$LIBS"
1638 LIBS="-lSDL -ldl -lpthread $LIBS"
1639 cat > conftest.$ac_ext <<EOF
1640 #line 1641 "configure"
1641 #include "confdefs.h"
1642 /* Override any gcc2 internal prototype to avoid an error. */
1643 /* We use char because int might match the return type of a gcc2
1644 builtin and then its argument prototype would still apply. */
1651 if { (eval echo configure:1652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1653 eval "ac_cv_lib_$ac_lib_var=yes"
1655 echo "configure: failed program was:" >&5
1656 cat conftest.$ac_ext >&5
1658 eval "ac_cv_lib_$ac_lib_var=no"
1661 LIBS="$ac_save_LIBS"
1664 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1665 echo "$ac_t""yes" 1>&6
1668 echo "$ac_t""no" 1>&6
1669 { echo "configure: error: The SDL which is required not found." 1>&2; exit 1; }
1672 for ac_hdr in netipx/ipx.h
1674 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1675 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1676 echo "configure:1677: checking for $ac_hdr" >&5
1677 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1678 echo $ac_n "(cached) $ac_c" 1>&6
1680 cat > conftest.$ac_ext <<EOF
1681 #line 1682 "configure"
1682 #include "confdefs.h"
1685 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1686 { (eval echo configure:1687: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1687 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1688 if test -z "$ac_err"; then
1690 eval "ac_cv_header_$ac_safe=yes"
1693 echo "configure: failed program was:" >&5
1694 cat conftest.$ac_ext >&5
1696 eval "ac_cv_header_$ac_safe=no"
1700 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1701 echo "$ac_t""yes" 1>&6
1702 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1703 cat >> confdefs.h <<EOF
1704 #define $ac_tr_hdr 1
1708 echo "$ac_t""no" 1>&6
1716 # Check whether --with-opengl or --without-opengl was given.
1717 if test "${with_opengl+set}" = set; then
1718 withval="$with_opengl"
1719 case "${withval}" in
1722 *) { echo "configure: error: bad value ${withval} for --with-opengl" 1>&2; exit 1; } ;;
1729 if test x$opengl = xtrue; then
1730 echo $ac_n "checking for main in -lGL""... $ac_c" 1>&6
1731 echo "configure:1732: checking for main in -lGL" >&5
1732 ac_lib_var=`echo GL'_'main | sed 'y%./+-%__p_%'`
1733 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1734 echo $ac_n "(cached) $ac_c" 1>&6
1736 ac_save_LIBS="$LIBS"
1737 LIBS="-lGL -L/usr/X11R6/lib -lX11 -lXext -lm $LIBS"
1738 cat > conftest.$ac_ext <<EOF
1739 #line 1740 "configure"
1740 #include "confdefs.h"
1746 if { (eval echo configure:1747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1748 eval "ac_cv_lib_$ac_lib_var=yes"
1750 echo "configure: failed program was:" >&5
1751 cat conftest.$ac_ext >&5
1753 eval "ac_cv_lib_$ac_lib_var=no"
1756 LIBS="$ac_save_LIBS"
1759 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1760 echo "$ac_t""yes" 1>&6
1763 echo "$ac_t""no" 1>&6
1764 { echo "configure: error: GL not found" 1>&2; exit 1; }
1768 echo $ac_n "checking for main in -lGLU""... $ac_c" 1>&6
1769 echo "configure:1770: checking for main in -lGLU" >&5
1770 ac_lib_var=`echo GLU'_'main | sed 'y%./+-%__p_%'`
1771 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1772 echo $ac_n "(cached) $ac_c" 1>&6
1774 ac_save_LIBS="$LIBS"
1775 LIBS="-lGLU -lGL -L/usr/X11R6/lib -lX11 -lXext -lm $LIBS"
1776 cat > conftest.$ac_ext <<EOF
1777 #line 1778 "configure"
1778 #include "confdefs.h"
1784 if { (eval echo configure:1785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1786 eval "ac_cv_lib_$ac_lib_var=yes"
1788 echo "configure: failed program was:" >&5
1789 cat conftest.$ac_ext >&5
1791 eval "ac_cv_lib_$ac_lib_var=no"
1794 LIBS="$ac_save_LIBS"
1797 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1798 echo "$ac_t""yes" 1>&6
1799 OGL_LIBS="${OGL_LIBS} -lGLU"
1801 echo "$ac_t""no" 1>&6
1802 { echo "configure: error: GLU not found" 1>&2; exit 1; }
1808 if test x$opengl = xtrue; then
1809 cat >> confdefs.h <<\EOF
1813 CFLAGS="-I \$(top_srcdir)/input/ggi/include $CFLAGS"
1815 CFLAGS="-I \$(top_srcdir)/input/sdl/include $CFLAGS"
1819 if test x$opengl = xtrue; then
1821 USE_OPENGL_FALSE='#'
1827 # Extract the first word of "nasm", so it can be a program name with args.
1828 set dummy nasm; ac_word=$2
1829 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1830 echo "configure:1831: checking for $ac_word" >&5
1831 if eval "test \"`echo '$''{'ac_cv_path_NASM'+set}'`\" = set"; then
1832 echo $ac_n "(cached) $ac_c" 1>&6
1836 ac_cv_path_NASM="$NASM" # Let the user override the test with a path.
1839 ac_cv_path_NASM="$NASM" # Let the user override the test with a dos path.
1842 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1844 for ac_dir in $ac_dummy; do
1845 test -z "$ac_dir" && ac_dir=.
1846 if test -f $ac_dir/$ac_word; then
1847 ac_cv_path_NASM="$ac_dir/$ac_word"
1852 test -z "$ac_cv_path_NASM" && ac_cv_path_NASM="no"
1856 NASM="$ac_cv_path_NASM"
1857 if test -n "$NASM"; then
1858 echo "$ac_t""$NASM" 1>&6
1860 echo "$ac_t""no" 1>&6
1863 CFLAGS="-I \$(top_srcdir)/input/linux/include -I \$(top_srcdir)/arch/linux/include $CFLAGS"
1867 # Check for NASM and network
1870 # Check whether --with-assembler or --without-assembler was given.
1871 if test "${with_assembler+set}" = set; then
1872 withval="$with_assembler"
1873 if test x$withval = xno; then
1878 # Check whether --with-network or --without-network was given.
1879 if test "${with_network+set}" = set; then
1880 withval="$with_network"
1881 if test x$withval = xno; then
1887 if test "$NASM" = "no"; then
1890 if test "$NO_ASM" = 1; then
1891 cat >> confdefs.h <<\EOF
1899 NASMFLAGS="-f win32"
1902 if test "$OSTYPE" = "MSDOS"; then
1905 NASMFLAGS="-f elf -d__ENV_LINUX__"
1910 if test "$NO_NETWORK" = 0; then
1911 cat >> confdefs.h <<\EOF
1918 if test "$NO_ASM" != 1; then
1929 if test "$program_transform_name" = s,x,x,; then
1930 program_transform_name=
1932 # Double any \ or $. echo might interpret backslashes.
1933 cat <<\EOF_SED > conftestsed
1934 s,\\,\\\\,g; s,\$,$$,g
1936 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1939 test "$program_prefix" != NONE &&
1940 program_transform_name="s,^,${program_prefix},; $program_transform_name"
1941 # Use a double $ so make ignores it.
1942 test "$program_suffix" != NONE &&
1943 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
1945 # sed with no file args requires a program.
1946 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
1949 #libdir='$(shell pwd)/${top_srcdir}/main'
1951 cat > confcache <<\EOF
1952 # This file is a shell script that caches the results of configure
1953 # tests run on this system so they can be shared between configure
1954 # scripts and configure runs. It is not useful on other systems.
1955 # If it contains results you don't want to keep, you may remove or edit it.
1957 # By default, configure uses ./config.cache as the cache file,
1958 # creating it if it does not exist already. You can give configure
1959 # the --cache-file=FILE option to use a different cache file; that is
1960 # what configure does when it calls configure scripts in
1961 # subdirectories, so they share the cache.
1962 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1963 # config.status only pays attention to the cache file if you give it the
1964 # --recheck option to rerun configure.
1967 # The following way of writing the cache mishandles newlines in values,
1968 # but we know of no workaround that is simple, portable, and efficient.
1969 # So, don't put newlines in cache variables' values.
1970 # Ultrix sh set writes to stderr and can't be redirected directly,
1971 # and sets the high bit in the cache file unless we assign to the vars.
1973 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1975 # `set' does not quote correctly, so add quotes (double-quote substitution
1976 # turns \\\\ into \\, and sed turns \\ into \).
1978 -e "s/'/'\\\\''/g" \
1979 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1982 # `set' quotes correctly as required by POSIX, so do not add quotes.
1983 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1986 if cmp -s $cache_file confcache; then
1989 if test -w $cache_file; then
1990 echo "updating cache $cache_file"
1991 cat confcache > $cache_file
1993 echo "not updating unwritable cache $cache_file"
1998 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2000 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2001 # Let make expand exec_prefix.
2002 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2004 # Any assignment to VPATH causes Sun make to only execute
2005 # the first set of double-colon rules, so remove it if not needed.
2006 # If there is a colon in the path, we need to keep it.
2007 if test "x$srcdir" = x.; then
2008 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2011 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2013 DEFS=-DHAVE_CONFIG_H
2015 # Without the "./", some shells look in PATH for config.status.
2016 : ${CONFIG_STATUS=./config.status}
2018 echo creating $CONFIG_STATUS
2019 rm -f $CONFIG_STATUS
2020 cat > $CONFIG_STATUS <<EOF
2022 # Generated automatically by configure.
2023 # Run this file to recreate the current configuration.
2024 # This directory was configured as follows,
2025 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2027 # $0 $ac_configure_args
2029 # Compiler output produced by configure, useful for debugging
2030 # configure, is in ./config.log if it exists.
2032 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2035 case "\$ac_option" in
2036 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2037 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2038 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2039 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2040 echo "$CONFIG_STATUS generated by autoconf version 2.13"
2042 -help | --help | --hel | --he | --h)
2043 echo "\$ac_cs_usage"; exit 0 ;;
2044 *) echo "\$ac_cs_usage"; exit 1 ;;
2048 ac_given_srcdir=$srcdir
2049 ac_given_INSTALL="$INSTALL"
2051 trap 'rm -fr `echo "Makefile
2065 conf.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2067 cat >> $CONFIG_STATUS <<EOF
2069 # Protect against being on the right side of a sed subst in config.status.
2070 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2071 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2075 s%@CFLAGS@%$CFLAGS%g
2076 s%@CPPFLAGS@%$CPPFLAGS%g
2077 s%@CXXFLAGS@%$CXXFLAGS%g
2078 s%@FFLAGS@%$FFLAGS%g
2080 s%@LDFLAGS@%$LDFLAGS%g
2082 s%@exec_prefix@%$exec_prefix%g
2083 s%@prefix@%$prefix%g
2084 s%@program_transform_name@%$program_transform_name%g
2085 s%@bindir@%$bindir%g
2086 s%@sbindir@%$sbindir%g
2087 s%@libexecdir@%$libexecdir%g
2088 s%@datadir@%$datadir%g
2089 s%@sysconfdir@%$sysconfdir%g
2090 s%@sharedstatedir@%$sharedstatedir%g
2091 s%@localstatedir@%$localstatedir%g
2092 s%@libdir@%$libdir%g
2093 s%@includedir@%$includedir%g
2094 s%@oldincludedir@%$oldincludedir%g
2095 s%@infodir@%$infodir%g
2096 s%@mandir@%$mandir%g
2097 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2098 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2099 s%@INSTALL_DATA@%$INSTALL_DATA%g
2100 s%@PACKAGE@%$PACKAGE%g
2101 s%@VERSION@%$VERSION%g
2102 s%@ACLOCAL@%$ACLOCAL%g
2103 s%@AUTOCONF@%$AUTOCONF%g
2104 s%@AUTOMAKE@%$AUTOMAKE%g
2105 s%@AUTOHEADER@%$AUTOHEADER%g
2106 s%@MAKEINFO@%$MAKEINFO%g
2107 s%@SET_MAKE@%$SET_MAKE%g
2108 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
2109 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
2112 s%@RANLIB@%$RANLIB%g
2114 s%@ENV_DJGPP_TRUE@%$ENV_DJGPP_TRUE%g
2115 s%@ENV_DJGPP_FALSE@%$ENV_DJGPP_FALSE%g
2117 s%@ENV_LINUX_TRUE@%$ENV_LINUX_TRUE%g
2118 s%@ENV_LINUX_FALSE@%$ENV_LINUX_FALSE%g
2119 s%@SDL_LIBS@%$SDL_LIBS%g
2120 s%@USE_OPENGL_TRUE@%$USE_OPENGL_TRUE%g
2121 s%@USE_OPENGL_FALSE@%$USE_OPENGL_FALSE%g
2122 s%@USE_ASM_TRUE@%$USE_ASM_TRUE%g
2123 s%@USE_ASM_FALSE@%$USE_ASM_FALSE%g
2124 s%@NASMFLAGS@%$NASMFLAGS%g
2129 cat >> $CONFIG_STATUS <<\EOF
2131 # Split the substitutions into bite-sized pieces for seds with
2132 # small command number limits, like on Digital OSF/1 and HP-UX.
2133 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2134 ac_file=1 # Number of current file.
2135 ac_beg=1 # First line for current file.
2136 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2139 while $ac_more_lines; do
2140 if test $ac_beg -gt 1; then
2141 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2143 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2145 if test ! -s conftest.s$ac_file; then
2147 rm -f conftest.s$ac_file
2149 if test -z "$ac_sed_cmds"; then
2150 ac_sed_cmds="sed -f conftest.s$ac_file"
2152 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2154 ac_file=`expr $ac_file + 1`
2156 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2159 if test -z "$ac_sed_cmds"; then
2164 cat >> $CONFIG_STATUS <<EOF
2166 CONFIG_FILES=\${CONFIG_FILES-"Makefile
2182 cat >> $CONFIG_STATUS <<\EOF
2183 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2184 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2186 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2187 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2188 *) ac_file_in="${ac_file}.in" ;;
2191 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2193 # Remove last slash and all that follows it. Not all systems have dirname.
2194 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2195 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2196 # The file is in a subdirectory.
2197 test ! -d "$ac_dir" && mkdir "$ac_dir"
2198 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2199 # A "../" for each directory in $ac_dir_suffix.
2200 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2202 ac_dir_suffix= ac_dots=
2205 case "$ac_given_srcdir" in
2207 if test -z "$ac_dots"; then top_srcdir=.
2208 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2209 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2211 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2212 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2215 case "$ac_given_INSTALL" in
2216 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2217 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2220 echo creating "$ac_file"
2222 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2224 *Makefile*) ac_comsub="1i\\
2225 # $configure_input" ;;
2229 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2231 s%@configure_input@%$configure_input%g
2232 s%@srcdir@%$srcdir%g
2233 s%@top_srcdir@%$top_srcdir%g
2234 s%@INSTALL@%$INSTALL%g
2235 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2239 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2240 # NAME is the cpp macro being defined and VALUE is the value it is being given.
2242 # ac_d sets the value in "#define NAME VALUE" lines.
2243 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
2244 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
2247 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2248 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2249 ac_uB='\([ ]\)%\1#\2define\3'
2252 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2253 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2254 ac_eB='$%\1#\2define\3'
2258 if test "${CONFIG_HEADERS+set}" != set; then
2260 cat >> $CONFIG_STATUS <<EOF
2261 CONFIG_HEADERS="conf.h"
2263 cat >> $CONFIG_STATUS <<\EOF
2265 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
2266 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2268 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2269 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2270 *) ac_file_in="${ac_file}.in" ;;
2273 echo creating $ac_file
2275 rm -f conftest.frag conftest.in conftest.out
2276 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2277 cat $ac_file_inputs > conftest.in
2281 # Transform confdefs.h into a sed script conftest.vals that substitutes
2282 # the proper values into config.h.in to produce config.h. And first:
2283 # Protect against being on the right side of a sed subst in config.status.
2284 # Protect against being in an unquoted here document in config.status.
2286 cat > conftest.hdr <<\EOF
2289 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2293 sed -n -f conftest.hdr confdefs.h > conftest.vals
2296 # This sed command replaces #undef with comments. This is necessary, for
2297 # example, in the case of _POSIX_SOURCE, which is predefined and required
2298 # on some systems where configure will not decide to define it.
2299 cat >> conftest.vals <<\EOF
2300 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2303 # Break up conftest.vals because some shells have a limit on
2304 # the size of here documents, and old seds have small limits too.
2309 ac_lines=`grep -c . conftest.vals`
2310 # grep -c gives empty output for an empty file on some AIX systems.
2311 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2312 # Write a limited-size here document to conftest.frag.
2313 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2314 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2316 sed -f conftest.frag conftest.in > conftest.out
2318 mv conftest.out conftest.in
2320 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2322 mv conftest.tail conftest.vals
2326 cat >> $CONFIG_STATUS <<\EOF
2327 rm -f conftest.frag conftest.h
2328 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
2329 cat conftest.in >> conftest.h
2331 if cmp -s $ac_file conftest.h 2>/dev/null; then
2332 echo "$ac_file is unchanged"
2335 # Remove last slash and all that follows it. Not all systems have dirname.
2336 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2337 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2338 # The file is in a subdirectory.
2339 test ! -d "$ac_dir" && mkdir "$ac_dir"
2342 mv conftest.h $ac_file
2347 cat >> $CONFIG_STATUS <<EOF
2351 cat >> $CONFIG_STATUS <<\EOF
2352 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
2356 chmod +x $CONFIG_STATUS
2357 rm -fr confdefs* $ac_clean_files
2358 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1