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 --without-assembler Do not use assembler optimization "
20 --without-network Do not build network/serial support "
22 --with-opengl Build OpenGL 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
815 # Extract the first word of "gcc", so it can be a program name with args.
816 set dummy gcc; ac_word=$2
817 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
818 echo "configure:819: checking for $ac_word" >&5
819 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
820 echo $ac_n "(cached) $ac_c" 1>&6
822 if test -n "$CC"; then
823 ac_cv_prog_CC="$CC" # Let the user override the test.
825 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
827 for ac_dir in $ac_dummy; do
828 test -z "$ac_dir" && ac_dir=.
829 if test -f $ac_dir/$ac_word; then
838 if test -n "$CC"; then
839 echo "$ac_t""$CC" 1>&6
841 echo "$ac_t""no" 1>&6
844 if test -z "$CC"; then
845 # Extract the first word of "cc", so it can be a program name with args.
846 set dummy cc; ac_word=$2
847 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
848 echo "configure:849: checking for $ac_word" >&5
849 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
850 echo $ac_n "(cached) $ac_c" 1>&6
852 if test -n "$CC"; then
853 ac_cv_prog_CC="$CC" # Let the user override the test.
855 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
858 for ac_dir in $ac_dummy; do
859 test -z "$ac_dir" && ac_dir=.
860 if test -f $ac_dir/$ac_word; then
861 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
870 if test $ac_prog_rejected = yes; then
871 # We found a bogon in the path, so make sure we never use it.
872 set dummy $ac_cv_prog_CC
874 if test $# -gt 0; then
875 # We chose a different compiler from the bogus one.
876 # However, it has the same basename, so the bogon will be chosen
877 # first if we set CC to just the basename; use the full file name.
879 set dummy "$ac_dir/$ac_word" "$@"
887 if test -n "$CC"; then
888 echo "$ac_t""$CC" 1>&6
890 echo "$ac_t""no" 1>&6
893 if test -z "$CC"; then
896 # Extract the first word of "cl", so it can be a program name with args.
897 set dummy cl; ac_word=$2
898 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
899 echo "configure:900: checking for $ac_word" >&5
900 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
901 echo $ac_n "(cached) $ac_c" 1>&6
903 if test -n "$CC"; then
904 ac_cv_prog_CC="$CC" # Let the user override the test.
906 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
908 for ac_dir in $ac_dummy; do
909 test -z "$ac_dir" && ac_dir=.
910 if test -f $ac_dir/$ac_word; then
919 if test -n "$CC"; then
920 echo "$ac_t""$CC" 1>&6
922 echo "$ac_t""no" 1>&6
927 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
930 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
931 echo "configure:932: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
934 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
935 ac_cpp='$CPP $CPPFLAGS'
936 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
937 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
938 cross_compiling=$ac_cv_prog_cc_cross
940 cat > conftest.$ac_ext << EOF
942 #line 943 "configure"
943 #include "confdefs.h"
947 if { (eval echo configure:948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
948 ac_cv_prog_cc_works=yes
949 # If we can't run a trivial program, we are probably using a cross compiler.
950 if (./conftest; exit) 2>/dev/null; then
951 ac_cv_prog_cc_cross=no
953 ac_cv_prog_cc_cross=yes
956 echo "configure: failed program was:" >&5
957 cat conftest.$ac_ext >&5
958 ac_cv_prog_cc_works=no
962 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
963 ac_cpp='$CPP $CPPFLAGS'
964 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
965 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
966 cross_compiling=$ac_cv_prog_cc_cross
968 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
969 if test $ac_cv_prog_cc_works = no; then
970 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
972 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
973 echo "configure:974: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
974 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
975 cross_compiling=$ac_cv_prog_cc_cross
977 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
978 echo "configure:979: checking whether we are using GNU C" >&5
979 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
980 echo $ac_n "(cached) $ac_c" 1>&6
982 cat > conftest.c <<EOF
987 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:988: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
994 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
996 if test $ac_cv_prog_gcc = yes; then
1002 ac_test_CFLAGS="${CFLAGS+set}"
1003 ac_save_CFLAGS="$CFLAGS"
1005 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1006 echo "configure:1007: checking whether ${CC-cc} accepts -g" >&5
1007 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1008 echo $ac_n "(cached) $ac_c" 1>&6
1010 echo 'void f(){}' > conftest.c
1011 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1020 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1021 if test "$ac_test_CFLAGS" = set; then
1022 CFLAGS="$ac_save_CFLAGS"
1023 elif test $ac_cv_prog_cc_g = yes; then
1024 if test "$GCC" = yes; then
1030 if test "$GCC" = yes; then
1037 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1038 echo "configure:1039: checking for POSIXized ISC" >&5
1039 if test -d /etc/conf/kconfig.d &&
1040 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
1042 echo "$ac_t""yes" 1>&6
1043 ISC=yes # If later tests want to check for ISC.
1044 cat >> confdefs.h <<\EOF
1045 #define _POSIX_SOURCE 1
1048 if test "$GCC" = yes; then
1054 echo "$ac_t""no" 1>&6
1058 # Extract the first word of "gcc", so it can be a program name with args.
1059 set dummy gcc; ac_word=$2
1060 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1061 echo "configure:1062: checking for $ac_word" >&5
1062 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1063 echo $ac_n "(cached) $ac_c" 1>&6
1065 if test -n "$CC"; then
1066 ac_cv_prog_CC="$CC" # Let the user override the test.
1068 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1070 for ac_dir in $ac_dummy; do
1071 test -z "$ac_dir" && ac_dir=.
1072 if test -f $ac_dir/$ac_word; then
1081 if test -n "$CC"; then
1082 echo "$ac_t""$CC" 1>&6
1084 echo "$ac_t""no" 1>&6
1087 if test -z "$CC"; then
1088 # Extract the first word of "cc", so it can be a program name with args.
1089 set dummy cc; ac_word=$2
1090 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1091 echo "configure:1092: checking for $ac_word" >&5
1092 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1093 echo $ac_n "(cached) $ac_c" 1>&6
1095 if test -n "$CC"; then
1096 ac_cv_prog_CC="$CC" # Let the user override the test.
1098 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1101 for ac_dir in $ac_dummy; do
1102 test -z "$ac_dir" && ac_dir=.
1103 if test -f $ac_dir/$ac_word; then
1104 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1105 ac_prog_rejected=yes
1113 if test $ac_prog_rejected = yes; then
1114 # We found a bogon in the path, so make sure we never use it.
1115 set dummy $ac_cv_prog_CC
1117 if test $# -gt 0; then
1118 # We chose a different compiler from the bogus one.
1119 # However, it has the same basename, so the bogon will be chosen
1120 # first if we set CC to just the basename; use the full file name.
1122 set dummy "$ac_dir/$ac_word" "$@"
1130 if test -n "$CC"; then
1131 echo "$ac_t""$CC" 1>&6
1133 echo "$ac_t""no" 1>&6
1136 if test -z "$CC"; then
1137 case "`uname -s`" in
1139 # Extract the first word of "cl", so it can be a program name with args.
1140 set dummy cl; ac_word=$2
1141 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1142 echo "configure:1143: checking for $ac_word" >&5
1143 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1144 echo $ac_n "(cached) $ac_c" 1>&6
1146 if test -n "$CC"; then
1147 ac_cv_prog_CC="$CC" # Let the user override the test.
1149 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1151 for ac_dir in $ac_dummy; do
1152 test -z "$ac_dir" && ac_dir=.
1153 if test -f $ac_dir/$ac_word; then
1162 if test -n "$CC"; then
1163 echo "$ac_t""$CC" 1>&6
1165 echo "$ac_t""no" 1>&6
1170 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1173 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1174 echo "configure:1175: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1177 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1178 ac_cpp='$CPP $CPPFLAGS'
1179 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1180 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1181 cross_compiling=$ac_cv_prog_cc_cross
1183 cat > conftest.$ac_ext << EOF
1185 #line 1186 "configure"
1186 #include "confdefs.h"
1190 if { (eval echo configure:1191: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1191 ac_cv_prog_cc_works=yes
1192 # If we can't run a trivial program, we are probably using a cross compiler.
1193 if (./conftest; exit) 2>/dev/null; then
1194 ac_cv_prog_cc_cross=no
1196 ac_cv_prog_cc_cross=yes
1199 echo "configure: failed program was:" >&5
1200 cat conftest.$ac_ext >&5
1201 ac_cv_prog_cc_works=no
1205 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1206 ac_cpp='$CPP $CPPFLAGS'
1207 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1208 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1209 cross_compiling=$ac_cv_prog_cc_cross
1211 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1212 if test $ac_cv_prog_cc_works = no; then
1213 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1215 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1216 echo "configure:1217: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1217 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1218 cross_compiling=$ac_cv_prog_cc_cross
1220 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1221 echo "configure:1222: checking whether we are using GNU C" >&5
1222 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1223 echo $ac_n "(cached) $ac_c" 1>&6
1225 cat > conftest.c <<EOF
1230 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1231: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1237 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1239 if test $ac_cv_prog_gcc = yes; then
1245 ac_test_CFLAGS="${CFLAGS+set}"
1246 ac_save_CFLAGS="$CFLAGS"
1248 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1249 echo "configure:1250: checking whether ${CC-cc} accepts -g" >&5
1250 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1251 echo $ac_n "(cached) $ac_c" 1>&6
1253 echo 'void f(){}' > conftest.c
1254 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1263 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1264 if test "$ac_test_CFLAGS" = set; then
1265 CFLAGS="$ac_save_CFLAGS"
1266 elif test $ac_cv_prog_cc_g = yes; then
1267 if test "$GCC" = yes; then
1273 if test "$GCC" = yes; then
1280 # Extract the first word of "ranlib", so it can be a program name with args.
1281 set dummy ranlib; ac_word=$2
1282 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1283 echo "configure:1284: checking for $ac_word" >&5
1284 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1285 echo $ac_n "(cached) $ac_c" 1>&6
1287 if test -n "$RANLIB"; then
1288 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1290 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1292 for ac_dir in $ac_dummy; do
1293 test -z "$ac_dir" && ac_dir=.
1294 if test -f $ac_dir/$ac_word; then
1295 ac_cv_prog_RANLIB="ranlib"
1300 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1303 RANLIB="$ac_cv_prog_RANLIB"
1304 if test -n "$RANLIB"; then
1305 echo "$ac_t""$RANLIB" 1>&6
1307 echo "$ac_t""no" 1>&6
1310 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1311 echo "configure:1312: checking how to run the C preprocessor" >&5
1312 # On Suns, sometimes $CPP names a directory.
1313 if test -n "$CPP" && test -d "$CPP"; then
1316 if test -z "$CPP"; then
1317 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1318 echo $ac_n "(cached) $ac_c" 1>&6
1320 # This must be in double quotes, not single quotes, because CPP may get
1321 # substituted into the Makefile and "${CC-cc}" will confuse make.
1323 # On the NeXT, cc -E runs the code through the compiler's parser,
1324 # not just through cpp.
1325 cat > conftest.$ac_ext <<EOF
1326 #line 1327 "configure"
1327 #include "confdefs.h"
1331 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1332 { (eval echo configure:1333: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1333 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1334 if test -z "$ac_err"; then
1338 echo "configure: failed program was:" >&5
1339 cat conftest.$ac_ext >&5
1341 CPP="${CC-cc} -E -traditional-cpp"
1342 cat > conftest.$ac_ext <<EOF
1343 #line 1344 "configure"
1344 #include "confdefs.h"
1348 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1349 { (eval echo configure:1350: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1350 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1351 if test -z "$ac_err"; then
1355 echo "configure: failed program was:" >&5
1356 cat conftest.$ac_ext >&5
1358 CPP="${CC-cc} -nologo -E"
1359 cat > conftest.$ac_ext <<EOF
1360 #line 1361 "configure"
1361 #include "confdefs.h"
1365 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1366 { (eval echo configure:1367: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1367 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1368 if test -z "$ac_err"; then
1372 echo "configure: failed program was:" >&5
1373 cat conftest.$ac_ext >&5
1382 ac_cv_prog_CPP="$CPP"
1384 CPP="$ac_cv_prog_CPP"
1386 ac_cv_prog_CPP="$CPP"
1388 echo "$ac_t""$CPP" 1>&6
1390 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1391 echo "configure:1392: checking for ANSI C header files" >&5
1392 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1393 echo $ac_n "(cached) $ac_c" 1>&6
1395 cat > conftest.$ac_ext <<EOF
1396 #line 1397 "configure"
1397 #include "confdefs.h"
1403 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1404 { (eval echo configure:1405: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1405 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1406 if test -z "$ac_err"; then
1408 ac_cv_header_stdc=yes
1411 echo "configure: failed program was:" >&5
1412 cat conftest.$ac_ext >&5
1414 ac_cv_header_stdc=no
1418 if test $ac_cv_header_stdc = yes; then
1419 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1420 cat > conftest.$ac_ext <<EOF
1421 #line 1422 "configure"
1422 #include "confdefs.h"
1425 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1426 egrep "memchr" >/dev/null 2>&1; then
1430 ac_cv_header_stdc=no
1436 if test $ac_cv_header_stdc = yes; then
1437 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1438 cat > conftest.$ac_ext <<EOF
1439 #line 1440 "configure"
1440 #include "confdefs.h"
1443 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1444 egrep "free" >/dev/null 2>&1; then
1448 ac_cv_header_stdc=no
1454 if test $ac_cv_header_stdc = yes; then
1455 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1456 if test "$cross_compiling" = yes; then
1459 cat > conftest.$ac_ext <<EOF
1460 #line 1461 "configure"
1461 #include "confdefs.h"
1463 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1464 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1465 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1466 int main () { int i; for (i = 0; i < 256; i++)
1467 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1471 if { (eval echo configure:1472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1475 echo "configure: failed program was:" >&5
1476 cat conftest.$ac_ext >&5
1478 ac_cv_header_stdc=no
1486 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1487 if test $ac_cv_header_stdc = yes; then
1488 cat >> confdefs.h <<\EOF
1489 #define STDC_HEADERS 1
1495 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1496 echo "configure:1497: checking for Cygwin environment" >&5
1497 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1498 echo $ac_n "(cached) $ac_c" 1>&6
1500 cat > conftest.$ac_ext <<EOF
1501 #line 1502 "configure"
1502 #include "confdefs.h"
1507 #define __CYGWIN__ __CYGWIN32__
1512 if { (eval echo configure:1513: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1516 echo "configure: failed program was:" >&5
1517 cat conftest.$ac_ext >&5
1525 echo "$ac_t""$ac_cv_cygwin" 1>&6
1527 test "$ac_cv_cygwin" = yes && CYGWIN=yes
1528 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1529 echo "configure:1530: checking for mingw32 environment" >&5
1530 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1531 echo $ac_n "(cached) $ac_c" 1>&6
1533 cat > conftest.$ac_ext <<EOF
1534 #line 1535 "configure"
1535 #include "confdefs.h"
1541 if { (eval echo configure:1542: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1545 echo "configure: failed program was:" >&5
1546 cat conftest.$ac_ext >&5
1554 echo "$ac_t""$ac_cv_mingw32" 1>&6
1556 test "$ac_cv_mingw32" = yes && MINGW32=yes
1558 CFLAGS="-D_REENTRANT -g -O2 -Wall -pipe"
1561 echo $ac_n "checking for SDL_Init in -lSDL""... $ac_c" 1>&6
1562 echo "configure:1563: checking for SDL_Init in -lSDL" >&5
1563 ac_lib_var=`echo SDL'_'SDL_Init | sed 'y%./+-%__p_%'`
1564 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1565 echo $ac_n "(cached) $ac_c" 1>&6
1567 ac_save_LIBS="$LIBS"
1568 LIBS="-lSDL -ldl -lpthread $LIBS"
1569 cat > conftest.$ac_ext <<EOF
1570 #line 1571 "configure"
1571 #include "confdefs.h"
1572 /* Override any gcc2 internal prototype to avoid an error. */
1573 /* We use char because int might match the return type of a gcc2
1574 builtin and then its argument prototype would still apply. */
1581 if { (eval echo configure:1582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1583 eval "ac_cv_lib_$ac_lib_var=yes"
1585 echo "configure: failed program was:" >&5
1586 cat conftest.$ac_ext >&5
1588 eval "ac_cv_lib_$ac_lib_var=no"
1591 LIBS="$ac_save_LIBS"
1594 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1595 echo "$ac_t""yes" 1>&6
1598 echo "$ac_t""no" 1>&6
1599 { echo "configure: error: The SDL" 1>&2; exit 1; }
1602 for ac_hdr in netipx/ipx.h
1604 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1605 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1606 echo "configure:1607: checking for $ac_hdr" >&5
1607 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1608 echo $ac_n "(cached) $ac_c" 1>&6
1610 cat > conftest.$ac_ext <<EOF
1611 #line 1612 "configure"
1612 #include "confdefs.h"
1615 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1616 { (eval echo configure:1617: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1617 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1618 if test -z "$ac_err"; then
1620 eval "ac_cv_header_$ac_safe=yes"
1623 echo "configure: failed program was:" >&5
1624 cat conftest.$ac_ext >&5
1626 eval "ac_cv_header_$ac_safe=no"
1630 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1631 echo "$ac_t""yes" 1>&6
1632 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1633 cat >> confdefs.h <<EOF
1634 #define $ac_tr_hdr 1
1638 echo "$ac_t""no" 1>&6
1644 # Check for NASM and network
1647 # Check whether --with-assembler or --without-assembler was given.
1648 if test "${with_assembler+set}" = set; then
1649 withval="$with_assembler"
1650 if test x$withval = xno; then
1655 # Check whether --with-network or --without-network was given.
1656 if test "${with_network+set}" = set; then
1657 withval="$with_network"
1658 if test x$withval = xno; then
1665 # Extract the first word of "nasm", so it can be a program name with args.
1666 set dummy nasm; ac_word=$2
1667 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1668 echo "configure:1669: checking for $ac_word" >&5
1669 if eval "test \"`echo '$''{'ac_cv_path_NASM'+set}'`\" = set"; then
1670 echo $ac_n "(cached) $ac_c" 1>&6
1674 ac_cv_path_NASM="$NASM" # Let the user override the test with a path.
1677 ac_cv_path_NASM="$NASM" # Let the user override the test with a dos path.
1680 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1682 for ac_dir in $ac_dummy; do
1683 test -z "$ac_dir" && ac_dir=.
1684 if test -f $ac_dir/$ac_word; then
1685 ac_cv_path_NASM="$ac_dir/$ac_word"
1690 test -z "$ac_cv_path_NASM" && ac_cv_path_NASM="no"
1694 NASM="$ac_cv_path_NASM"
1695 if test -n "$NASM"; then
1696 echo "$ac_t""$NASM" 1>&6
1698 echo "$ac_t""no" 1>&6
1701 if test "$NASM" = "no"; then
1704 if test "$NO_ASM" = 1; then
1705 cat >> confdefs.h <<\EOF
1713 NASMFLAGS="-f win32"
1716 NASMFLAGS="-f elf -d__ENV_LINUX__"
1720 if test "$NO_NETWORK" = 0; then
1721 cat >> confdefs.h <<\EOF
1728 if test "$NO_ASM" != 1; then
1738 # Check whether --with-opengl or --without-opengl was given.
1739 if test "${with_opengl+set}" = set; then
1740 withval="$with_opengl"
1741 case "${withval}" in
1744 *) { echo "configure: error: bad value ${withval} for --with-opengl" 1>&2; exit 1; } ;;
1751 if test x$opengl = xtrue; then
1752 echo $ac_n "checking for main in -lMesaGL""... $ac_c" 1>&6
1753 echo "configure:1754: checking for main in -lMesaGL" >&5
1754 ac_lib_var=`echo MesaGL'_'main | sed 'y%./+-%__p_%'`
1755 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1756 echo $ac_n "(cached) $ac_c" 1>&6
1758 ac_save_LIBS="$LIBS"
1759 LIBS="-lMesaGL -L/usr/X11R6/lib -lX11 -lXext -lm $LIBS"
1760 cat > conftest.$ac_ext <<EOF
1761 #line 1762 "configure"
1762 #include "confdefs.h"
1768 if { (eval echo configure:1769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1770 eval "ac_cv_lib_$ac_lib_var=yes"
1772 echo "configure: failed program was:" >&5
1773 cat conftest.$ac_ext >&5
1775 eval "ac_cv_lib_$ac_lib_var=no"
1778 LIBS="$ac_save_LIBS"
1781 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1782 echo "$ac_t""yes" 1>&6
1785 echo "$ac_t""no" 1>&6
1786 { echo "configure: error: MesaGL not found" 1>&2; exit 1; }
1790 echo $ac_n "checking for main in -lMesaGLU""... $ac_c" 1>&6
1791 echo "configure:1792: checking for main in -lMesaGLU" >&5
1792 ac_lib_var=`echo MesaGLU'_'main | sed 'y%./+-%__p_%'`
1793 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1794 echo $ac_n "(cached) $ac_c" 1>&6
1796 ac_save_LIBS="$LIBS"
1797 LIBS="-lMesaGLU -lMesaGL -L/usr/X11R6/lib -lX11 -lXext -lm $LIBS"
1798 cat > conftest.$ac_ext <<EOF
1799 #line 1800 "configure"
1800 #include "confdefs.h"
1806 if { (eval echo configure:1807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1808 eval "ac_cv_lib_$ac_lib_var=yes"
1810 echo "configure: failed program was:" >&5
1811 cat conftest.$ac_ext >&5
1813 eval "ac_cv_lib_$ac_lib_var=no"
1816 LIBS="$ac_save_LIBS"
1819 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1820 echo "$ac_t""yes" 1>&6
1821 OGL_LIBS="${OGL_LIBS} -lMesaGLU"
1823 echo "$ac_t""no" 1>&6
1824 { echo "configure: error: MesaGLU not found" 1>&2; exit 1; }
1830 if test x$opengl = xtrue; then
1831 cat >> confdefs.h <<\EOF
1838 if test x$opengl = xtrue; then
1840 USE_OPENGL_FALSE='#'
1847 if test "$program_transform_name" = s,x,x,; then
1848 program_transform_name=
1850 # Double any \ or $. echo might interpret backslashes.
1851 cat <<\EOF_SED > conftestsed
1852 s,\\,\\\\,g; s,\$,$$,g
1854 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1857 test "$program_prefix" != NONE &&
1858 program_transform_name="s,^,${program_prefix},; $program_transform_name"
1859 # Use a double $ so make ignores it.
1860 test "$program_suffix" != NONE &&
1861 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
1863 # sed with no file args requires a program.
1864 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
1867 #libdir='$(shell pwd)/${top_srcdir}/main'
1870 cat > confcache <<\EOF
1871 # This file is a shell script that caches the results of configure
1872 # tests run on this system so they can be shared between configure
1873 # scripts and configure runs. It is not useful on other systems.
1874 # If it contains results you don't want to keep, you may remove or edit it.
1876 # By default, configure uses ./config.cache as the cache file,
1877 # creating it if it does not exist already. You can give configure
1878 # the --cache-file=FILE option to use a different cache file; that is
1879 # what configure does when it calls configure scripts in
1880 # subdirectories, so they share the cache.
1881 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1882 # config.status only pays attention to the cache file if you give it the
1883 # --recheck option to rerun configure.
1886 # The following way of writing the cache mishandles newlines in values,
1887 # but we know of no workaround that is simple, portable, and efficient.
1888 # So, don't put newlines in cache variables' values.
1889 # Ultrix sh set writes to stderr and can't be redirected directly,
1890 # and sets the high bit in the cache file unless we assign to the vars.
1892 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1894 # `set' does not quote correctly, so add quotes (double-quote substitution
1895 # turns \\\\ into \\, and sed turns \\ into \).
1897 -e "s/'/'\\\\''/g" \
1898 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1901 # `set' quotes correctly as required by POSIX, so do not add quotes.
1902 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1905 if cmp -s $cache_file confcache; then
1908 if test -w $cache_file; then
1909 echo "updating cache $cache_file"
1910 cat confcache > $cache_file
1912 echo "not updating unwritable cache $cache_file"
1917 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1919 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1920 # Let make expand exec_prefix.
1921 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1923 # Any assignment to VPATH causes Sun make to only execute
1924 # the first set of double-colon rules, so remove it if not needed.
1925 # If there is a colon in the path, we need to keep it.
1926 if test "x$srcdir" = x.; then
1927 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
1930 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1932 DEFS=-DHAVE_CONFIG_H
1934 # Without the "./", some shells look in PATH for config.status.
1935 : ${CONFIG_STATUS=./config.status}
1937 echo creating $CONFIG_STATUS
1938 rm -f $CONFIG_STATUS
1939 cat > $CONFIG_STATUS <<EOF
1941 # Generated automatically by configure.
1942 # Run this file to recreate the current configuration.
1943 # This directory was configured as follows,
1944 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1946 # $0 $ac_configure_args
1948 # Compiler output produced by configure, useful for debugging
1949 # configure, is in ./config.log if it exists.
1951 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1954 case "\$ac_option" in
1955 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1956 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1957 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1958 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1959 echo "$CONFIG_STATUS generated by autoconf version 2.13"
1961 -help | --help | --hel | --he | --h)
1962 echo "\$ac_cs_usage"; exit 0 ;;
1963 *) echo "\$ac_cs_usage"; exit 1 ;;
1967 ac_given_srcdir=$srcdir
1968 ac_given_INSTALL="$INSTALL"
1970 trap 'rm -fr `echo "Makefile
1981 input/linux/Makefile
1989 conf.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1991 cat >> $CONFIG_STATUS <<EOF
1993 # Protect against being on the right side of a sed subst in config.status.
1994 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1995 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1999 s%@CFLAGS@%$CFLAGS%g
2000 s%@CPPFLAGS@%$CPPFLAGS%g
2001 s%@CXXFLAGS@%$CXXFLAGS%g
2002 s%@FFLAGS@%$FFLAGS%g
2004 s%@LDFLAGS@%$LDFLAGS%g
2006 s%@exec_prefix@%$exec_prefix%g
2007 s%@prefix@%$prefix%g
2008 s%@program_transform_name@%$program_transform_name%g
2009 s%@bindir@%$bindir%g
2010 s%@sbindir@%$sbindir%g
2011 s%@libexecdir@%$libexecdir%g
2012 s%@datadir@%$datadir%g
2013 s%@sysconfdir@%$sysconfdir%g
2014 s%@sharedstatedir@%$sharedstatedir%g
2015 s%@localstatedir@%$localstatedir%g
2016 s%@libdir@%$libdir%g
2017 s%@includedir@%$includedir%g
2018 s%@oldincludedir@%$oldincludedir%g
2019 s%@infodir@%$infodir%g
2020 s%@mandir@%$mandir%g
2021 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2022 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2023 s%@INSTALL_DATA@%$INSTALL_DATA%g
2024 s%@PACKAGE@%$PACKAGE%g
2025 s%@VERSION@%$VERSION%g
2026 s%@ACLOCAL@%$ACLOCAL%g
2027 s%@AUTOCONF@%$AUTOCONF%g
2028 s%@AUTOMAKE@%$AUTOMAKE%g
2029 s%@AUTOHEADER@%$AUTOHEADER%g
2030 s%@MAKEINFO@%$MAKEINFO%g
2031 s%@SET_MAKE@%$SET_MAKE%g
2032 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
2033 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
2036 s%@RANLIB@%$RANLIB%g
2038 s%@SDL_LIBS@%$SDL_LIBS%g
2040 s%@USE_ASM_TRUE@%$USE_ASM_TRUE%g
2041 s%@USE_ASM_FALSE@%$USE_ASM_FALSE%g
2042 s%@NASMFLAGS@%$NASMFLAGS%g
2043 s%@USE_OPENGL_TRUE@%$USE_OPENGL_TRUE%g
2044 s%@USE_OPENGL_FALSE@%$USE_OPENGL_FALSE%g
2049 cat >> $CONFIG_STATUS <<\EOF
2051 # Split the substitutions into bite-sized pieces for seds with
2052 # small command number limits, like on Digital OSF/1 and HP-UX.
2053 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2054 ac_file=1 # Number of current file.
2055 ac_beg=1 # First line for current file.
2056 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2059 while $ac_more_lines; do
2060 if test $ac_beg -gt 1; then
2061 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2063 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2065 if test ! -s conftest.s$ac_file; then
2067 rm -f conftest.s$ac_file
2069 if test -z "$ac_sed_cmds"; then
2070 ac_sed_cmds="sed -f conftest.s$ac_file"
2072 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2074 ac_file=`expr $ac_file + 1`
2076 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2079 if test -z "$ac_sed_cmds"; then
2084 cat >> $CONFIG_STATUS <<EOF
2086 CONFIG_FILES=\${CONFIG_FILES-"Makefile
2097 input/linux/Makefile
2107 cat >> $CONFIG_STATUS <<\EOF
2108 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2109 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2111 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2112 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2113 *) ac_file_in="${ac_file}.in" ;;
2116 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2118 # Remove last slash and all that follows it. Not all systems have dirname.
2119 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2120 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2121 # The file is in a subdirectory.
2122 test ! -d "$ac_dir" && mkdir "$ac_dir"
2123 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2124 # A "../" for each directory in $ac_dir_suffix.
2125 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2127 ac_dir_suffix= ac_dots=
2130 case "$ac_given_srcdir" in
2132 if test -z "$ac_dots"; then top_srcdir=.
2133 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2134 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2136 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2137 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2140 case "$ac_given_INSTALL" in
2141 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2142 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2145 echo creating "$ac_file"
2147 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2149 *Makefile*) ac_comsub="1i\\
2150 # $configure_input" ;;
2154 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2156 s%@configure_input@%$configure_input%g
2157 s%@srcdir@%$srcdir%g
2158 s%@top_srcdir@%$top_srcdir%g
2159 s%@INSTALL@%$INSTALL%g
2160 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2164 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2165 # NAME is the cpp macro being defined and VALUE is the value it is being given.
2167 # ac_d sets the value in "#define NAME VALUE" lines.
2168 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
2169 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
2172 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2173 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2174 ac_uB='\([ ]\)%\1#\2define\3'
2177 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2178 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2179 ac_eB='$%\1#\2define\3'
2183 if test "${CONFIG_HEADERS+set}" != set; then
2185 cat >> $CONFIG_STATUS <<EOF
2186 CONFIG_HEADERS="conf.h"
2188 cat >> $CONFIG_STATUS <<\EOF
2190 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
2191 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2193 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2194 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2195 *) ac_file_in="${ac_file}.in" ;;
2198 echo creating $ac_file
2200 rm -f conftest.frag conftest.in conftest.out
2201 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2202 cat $ac_file_inputs > conftest.in
2206 # Transform confdefs.h into a sed script conftest.vals that substitutes
2207 # the proper values into config.h.in to produce config.h. And first:
2208 # Protect against being on the right side of a sed subst in config.status.
2209 # Protect against being in an unquoted here document in config.status.
2211 cat > conftest.hdr <<\EOF
2214 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2218 sed -n -f conftest.hdr confdefs.h > conftest.vals
2221 # This sed command replaces #undef with comments. This is necessary, for
2222 # example, in the case of _POSIX_SOURCE, which is predefined and required
2223 # on some systems where configure will not decide to define it.
2224 cat >> conftest.vals <<\EOF
2225 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2228 # Break up conftest.vals because some shells have a limit on
2229 # the size of here documents, and old seds have small limits too.
2234 ac_lines=`grep -c . conftest.vals`
2235 # grep -c gives empty output for an empty file on some AIX systems.
2236 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2237 # Write a limited-size here document to conftest.frag.
2238 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2239 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2241 sed -f conftest.frag conftest.in > conftest.out
2243 mv conftest.out conftest.in
2245 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2247 mv conftest.tail conftest.vals
2251 cat >> $CONFIG_STATUS <<\EOF
2252 rm -f conftest.frag conftest.h
2253 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
2254 cat conftest.in >> conftest.h
2256 if cmp -s $ac_file conftest.h 2>/dev/null; then
2257 echo "$ac_file is unchanged"
2260 # Remove last slash and all that follows it. Not all systems have dirname.
2261 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2262 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2263 # The file is in a subdirectory.
2264 test ! -d "$ac_dir" && mkdir "$ac_dir"
2267 mv conftest.h $ac_file
2272 cat >> $CONFIG_STATUS <<EOF
2276 cat >> $CONFIG_STATUS <<\EOF
2277 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
2281 chmod +x $CONFIG_STATUS
2282 rm -fr confdefs* $ac_clean_files
2283 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1