split sdl-audio backend into separate TU
[rofl0r-gnuboy.git] / configure
blobd840e8cdc27ac97b421d46c526808dda0587e278
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by Autoconf 2.52.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
6 # 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.
10 # Avoid depending upon Character Ranges.
11 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14 as_cr_digits='0123456789'
15 as_cr_alnum=$as_cr_Letters$as_cr_digits
17 # Sed expression to map a string onto a valid variable name.
18 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
20 # Sed expression to map a string onto a valid CPP name.
21 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
23 # Be Bourne compatible
24 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25 emulate sh
26 NULLCMD=:
27 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28 set -o posix
31 # Name of the executable.
32 as_me=`echo "$0" |sed 's,.*[\\/],,'`
34 if expr a : '\(a\)' >/dev/null 2>&1; then
35 as_expr=expr
36 else
37 as_expr=false
40 rm -f conf$$ conf$$.exe conf$$.file
41 echo >conf$$.file
42 if ln -s conf$$.file conf$$ 2>/dev/null; then
43 # We could just check for DJGPP; but this test a) works b) is more generic
44 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
45 if test -f conf$$.exe; then
46 # Don't use ln at all; we don't have any links
47 as_ln_s='cp -p'
48 else
49 as_ln_s='ln -s'
51 elif ln conf$$.file conf$$ 2>/dev/null; then
52 as_ln_s=ln
53 else
54 as_ln_s='cp -p'
56 rm -f conf$$ conf$$.exe conf$$.file
58 as_executable_p="test -f"
60 # Support unset when possible.
61 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
62 as_unset=unset
63 else
64 as_unset=false
67 # NLS nuisances.
68 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
69 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
70 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
71 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
72 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
73 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
74 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
75 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
77 # IFS
78 # We need space, tab and new line, in precisely that order.
79 as_nl='
81 IFS=" $as_nl"
83 # CDPATH.
84 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
86 # Name of the host.
87 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
88 # so uname gets run too.
89 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
91 exec 6>&1
94 # Initializations.
96 ac_default_prefix=/usr/local
97 cross_compiling=no
98 subdirs=
99 MFLAGS= MAKEFLAGS=
100 SHELL=${CONFIG_SHELL-/bin/sh}
102 # Maximum number of lines to put in a shell here document.
103 # This variable seems obsolete. It should probably be removed, and
104 # only ac_max_sed_lines should be used.
105 : ${ac_max_here_lines=38}
107 ac_unique_file="cpu.c"
109 # Initialize some variables set by options.
110 ac_init_help=
111 ac_init_version=false
112 # The variables have the same names as the options, with
113 # dashes changed to underlines.
114 cache_file=/dev/null
115 exec_prefix=NONE
116 no_create=
117 no_recursion=
118 prefix=NONE
119 program_prefix=NONE
120 program_suffix=NONE
121 program_transform_name=s,x,x,
122 silent=
123 site=
124 srcdir=
125 verbose=
126 x_includes=NONE
127 x_libraries=NONE
129 # Installation directory options.
130 # These are left unexpanded so users can "make install exec_prefix=/foo"
131 # and all the variables that are supposed to be based on exec_prefix
132 # by default will actually change.
133 # Use braces instead of parens because sh, perl, etc. also accept them.
134 bindir='${exec_prefix}/bin'
135 sbindir='${exec_prefix}/sbin'
136 libexecdir='${exec_prefix}/libexec'
137 datadir='${prefix}/share'
138 sysconfdir='${prefix}/etc'
139 sharedstatedir='${prefix}/com'
140 localstatedir='${prefix}/var'
141 libdir='${exec_prefix}/lib'
142 includedir='${prefix}/include'
143 oldincludedir='/usr/include'
144 infodir='${prefix}/info'
145 mandir='${prefix}/man'
147 # Identity of this package.
148 PACKAGE_NAME=
149 PACKAGE_TARNAME=
150 PACKAGE_VERSION=
151 PACKAGE_STRING=
152 PACKAGE_BUGREPORT=
154 ac_prev=
155 for ac_option
157 # If the previous option needs an argument, assign it.
158 if test -n "$ac_prev"; then
159 eval "$ac_prev=\$ac_option"
160 ac_prev=
161 continue
164 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
166 # Accept the important Cygnus configure options, so we can diagnose typos.
168 case $ac_option in
170 -bindir | --bindir | --bindi | --bind | --bin | --bi)
171 ac_prev=bindir ;;
172 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
173 bindir=$ac_optarg ;;
175 -build | --build | --buil | --bui | --bu)
176 ac_prev=build_alias ;;
177 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
178 build_alias=$ac_optarg ;;
180 -cache-file | --cache-file | --cache-fil | --cache-fi \
181 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
182 ac_prev=cache_file ;;
183 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
184 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
185 cache_file=$ac_optarg ;;
187 --config-cache | -C)
188 cache_file=config.cache ;;
190 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
191 ac_prev=datadir ;;
192 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
193 | --da=*)
194 datadir=$ac_optarg ;;
196 -disable-* | --disable-*)
197 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
198 # Reject names that are not valid shell variable names.
199 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
200 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
201 { (exit 1); exit 1; }; }
202 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
203 eval "enable_$ac_feature=no" ;;
205 -enable-* | --enable-*)
206 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
207 # Reject names that are not valid shell variable names.
208 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
209 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
210 { (exit 1); exit 1; }; }
211 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
212 case $ac_option in
213 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
214 *) ac_optarg=yes ;;
215 esac
216 eval "enable_$ac_feature='$ac_optarg'" ;;
218 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
219 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
220 | --exec | --exe | --ex)
221 ac_prev=exec_prefix ;;
222 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
223 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
224 | --exec=* | --exe=* | --ex=*)
225 exec_prefix=$ac_optarg ;;
227 -gas | --gas | --ga | --g)
228 # Obsolete; use --with-gas.
229 with_gas=yes ;;
231 -help | --help | --hel | --he | -h)
232 ac_init_help=long ;;
233 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
234 ac_init_help=recursive ;;
235 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
236 ac_init_help=short ;;
238 -host | --host | --hos | --ho)
239 ac_prev=host_alias ;;
240 -host=* | --host=* | --hos=* | --ho=*)
241 host_alias=$ac_optarg ;;
243 -includedir | --includedir | --includedi | --included | --include \
244 | --includ | --inclu | --incl | --inc)
245 ac_prev=includedir ;;
246 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
247 | --includ=* | --inclu=* | --incl=* | --inc=*)
248 includedir=$ac_optarg ;;
250 -infodir | --infodir | --infodi | --infod | --info | --inf)
251 ac_prev=infodir ;;
252 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
253 infodir=$ac_optarg ;;
255 -libdir | --libdir | --libdi | --libd)
256 ac_prev=libdir ;;
257 -libdir=* | --libdir=* | --libdi=* | --libd=*)
258 libdir=$ac_optarg ;;
260 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
261 | --libexe | --libex | --libe)
262 ac_prev=libexecdir ;;
263 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
264 | --libexe=* | --libex=* | --libe=*)
265 libexecdir=$ac_optarg ;;
267 -localstatedir | --localstatedir | --localstatedi | --localstated \
268 | --localstate | --localstat | --localsta | --localst \
269 | --locals | --local | --loca | --loc | --lo)
270 ac_prev=localstatedir ;;
271 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
272 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
273 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
274 localstatedir=$ac_optarg ;;
276 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
277 ac_prev=mandir ;;
278 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
279 mandir=$ac_optarg ;;
281 -nfp | --nfp | --nf)
282 # Obsolete; use --without-fp.
283 with_fp=no ;;
285 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
286 | --no-cr | --no-c)
287 no_create=yes ;;
289 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
290 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
291 no_recursion=yes ;;
293 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
294 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
295 | --oldin | --oldi | --old | --ol | --o)
296 ac_prev=oldincludedir ;;
297 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
298 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
299 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
300 oldincludedir=$ac_optarg ;;
302 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
303 ac_prev=prefix ;;
304 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
305 prefix=$ac_optarg ;;
307 -program-prefix | --program-prefix | --program-prefi | --program-pref \
308 | --program-pre | --program-pr | --program-p)
309 ac_prev=program_prefix ;;
310 -program-prefix=* | --program-prefix=* | --program-prefi=* \
311 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
312 program_prefix=$ac_optarg ;;
314 -program-suffix | --program-suffix | --program-suffi | --program-suff \
315 | --program-suf | --program-su | --program-s)
316 ac_prev=program_suffix ;;
317 -program-suffix=* | --program-suffix=* | --program-suffi=* \
318 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
319 program_suffix=$ac_optarg ;;
321 -program-transform-name | --program-transform-name \
322 | --program-transform-nam | --program-transform-na \
323 | --program-transform-n | --program-transform- \
324 | --program-transform | --program-transfor \
325 | --program-transfo | --program-transf \
326 | --program-trans | --program-tran \
327 | --progr-tra | --program-tr | --program-t)
328 ac_prev=program_transform_name ;;
329 -program-transform-name=* | --program-transform-name=* \
330 | --program-transform-nam=* | --program-transform-na=* \
331 | --program-transform-n=* | --program-transform-=* \
332 | --program-transform=* | --program-transfor=* \
333 | --program-transfo=* | --program-transf=* \
334 | --program-trans=* | --program-tran=* \
335 | --progr-tra=* | --program-tr=* | --program-t=*)
336 program_transform_name=$ac_optarg ;;
338 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
339 | -silent | --silent | --silen | --sile | --sil)
340 silent=yes ;;
342 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
343 ac_prev=sbindir ;;
344 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
345 | --sbi=* | --sb=*)
346 sbindir=$ac_optarg ;;
348 -sharedstatedir | --sharedstatedir | --sharedstatedi \
349 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
350 | --sharedst | --shareds | --shared | --share | --shar \
351 | --sha | --sh)
352 ac_prev=sharedstatedir ;;
353 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
354 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
355 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
356 | --sha=* | --sh=*)
357 sharedstatedir=$ac_optarg ;;
359 -site | --site | --sit)
360 ac_prev=site ;;
361 -site=* | --site=* | --sit=*)
362 site=$ac_optarg ;;
364 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
365 ac_prev=srcdir ;;
366 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
367 srcdir=$ac_optarg ;;
369 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
370 | --syscon | --sysco | --sysc | --sys | --sy)
371 ac_prev=sysconfdir ;;
372 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
373 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
374 sysconfdir=$ac_optarg ;;
376 -target | --target | --targe | --targ | --tar | --ta | --t)
377 ac_prev=target_alias ;;
378 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
379 target_alias=$ac_optarg ;;
381 -v | -verbose | --verbose | --verbos | --verbo | --verb)
382 verbose=yes ;;
384 -version | --version | --versio | --versi | --vers | -V)
385 ac_init_version=: ;;
387 -with-* | --with-*)
388 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
389 # Reject names that are not valid shell variable names.
390 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
391 { echo "$as_me: error: invalid package name: $ac_package" >&2
392 { (exit 1); exit 1; }; }
393 ac_package=`echo $ac_package| sed 's/-/_/g'`
394 case $ac_option in
395 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
396 *) ac_optarg=yes ;;
397 esac
398 eval "with_$ac_package='$ac_optarg'" ;;
400 -without-* | --without-*)
401 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
402 # Reject names that are not valid shell variable names.
403 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
404 { echo "$as_me: error: invalid package name: $ac_package" >&2
405 { (exit 1); exit 1; }; }
406 ac_package=`echo $ac_package | sed 's/-/_/g'`
407 eval "with_$ac_package=no" ;;
409 --x)
410 # Obsolete; use --with-x.
411 with_x=yes ;;
413 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
414 | --x-incl | --x-inc | --x-in | --x-i)
415 ac_prev=x_includes ;;
416 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
417 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
418 x_includes=$ac_optarg ;;
420 -x-libraries | --x-libraries | --x-librarie | --x-librari \
421 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
422 ac_prev=x_libraries ;;
423 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
424 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
425 x_libraries=$ac_optarg ;;
427 -*) { echo "$as_me: error: unrecognized option: $ac_option
428 Try \`$0 --help' for more information." >&2
429 { (exit 1); exit 1; }; }
432 *=*)
433 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
434 # Reject names that are not valid shell variable names.
435 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
436 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
437 { (exit 1); exit 1; }; }
438 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
439 eval "$ac_envvar='$ac_optarg'"
440 export $ac_envvar ;;
443 # FIXME: should be removed in autoconf 3.0.
444 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
445 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
446 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
447 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
450 esac
451 done
453 if test -n "$ac_prev"; then
454 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
455 { echo "$as_me: error: missing argument to $ac_option" >&2
456 { (exit 1); exit 1; }; }
459 # Be sure to have absolute paths.
460 for ac_var in exec_prefix prefix
462 eval ac_val=$`echo $ac_var`
463 case $ac_val in
464 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
465 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
466 { (exit 1); exit 1; }; };;
467 esac
468 done
470 # Be sure to have absolute paths.
471 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
472 localstatedir libdir includedir oldincludedir infodir mandir
474 eval ac_val=$`echo $ac_var`
475 case $ac_val in
476 [\\/$]* | ?:[\\/]* ) ;;
477 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
478 { (exit 1); exit 1; }; };;
479 esac
480 done
482 # There might be people who depend on the old broken behavior: `$host'
483 # used to hold the argument of --host etc.
484 build=$build_alias
485 host=$host_alias
486 target=$target_alias
488 # FIXME: should be removed in autoconf 3.0.
489 if test "x$host_alias" != x; then
490 if test "x$build_alias" = x; then
491 cross_compiling=maybe
492 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
493 If a cross compiler is detected then cross compile mode will be used." >&2
494 elif test "x$build_alias" != "x$host_alias"; then
495 cross_compiling=yes
499 ac_tool_prefix=
500 test -n "$host_alias" && ac_tool_prefix=$host_alias-
502 test "$silent" = yes && exec 6>/dev/null
504 # Find the source files, if location was not specified.
505 if test -z "$srcdir"; then
506 ac_srcdir_defaulted=yes
507 # Try the directory containing this script, then its parent.
508 ac_prog=$0
509 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
510 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
511 srcdir=$ac_confdir
512 if test ! -r $srcdir/$ac_unique_file; then
513 srcdir=..
515 else
516 ac_srcdir_defaulted=no
518 if test ! -r $srcdir/$ac_unique_file; then
519 if test "$ac_srcdir_defaulted" = yes; then
520 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
521 { (exit 1); exit 1; }; }
522 else
523 { echo "$as_me: error: cannot find sources in $srcdir" >&2
524 { (exit 1); exit 1; }; }
527 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
528 ac_env_build_alias_set=${build_alias+set}
529 ac_env_build_alias_value=$build_alias
530 ac_cv_env_build_alias_set=${build_alias+set}
531 ac_cv_env_build_alias_value=$build_alias
532 ac_env_host_alias_set=${host_alias+set}
533 ac_env_host_alias_value=$host_alias
534 ac_cv_env_host_alias_set=${host_alias+set}
535 ac_cv_env_host_alias_value=$host_alias
536 ac_env_target_alias_set=${target_alias+set}
537 ac_env_target_alias_value=$target_alias
538 ac_cv_env_target_alias_set=${target_alias+set}
539 ac_cv_env_target_alias_value=$target_alias
540 ac_env_CC_set=${CC+set}
541 ac_env_CC_value=$CC
542 ac_cv_env_CC_set=${CC+set}
543 ac_cv_env_CC_value=$CC
544 ac_env_CFLAGS_set=${CFLAGS+set}
545 ac_env_CFLAGS_value=$CFLAGS
546 ac_cv_env_CFLAGS_set=${CFLAGS+set}
547 ac_cv_env_CFLAGS_value=$CFLAGS
548 ac_env_LDFLAGS_set=${LDFLAGS+set}
549 ac_env_LDFLAGS_value=$LDFLAGS
550 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
551 ac_cv_env_LDFLAGS_value=$LDFLAGS
552 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
553 ac_env_CPPFLAGS_value=$CPPFLAGS
554 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
555 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
556 ac_env_CPP_set=${CPP+set}
557 ac_env_CPP_value=$CPP
558 ac_cv_env_CPP_set=${CPP+set}
559 ac_cv_env_CPP_value=$CPP
562 # Report the --help message.
564 if test "$ac_init_help" = "long"; then
565 # Omit some internal or obsolete options to make the list less imposing.
566 # This message is too long to be a string in the A/UX 3.1 sh.
567 cat <<EOF
568 \`configure' configures this package to adapt to many kinds of systems.
570 Usage: $0 [OPTION]... [VAR=VALUE]...
572 To assign environment variables (e.g., CC, CFLAGS...), specify them as
573 VAR=VALUE. See below for descriptions of some of the useful variables.
575 Defaults for the options are specified in brackets.
577 Configuration:
578 -h, --help display this help and exit
579 --help=short display options specific to this package
580 --help=recursive display the short help of all the included packages
581 -V, --version display version information and exit
582 -q, --quiet, --silent do not print \`checking...' messages
583 --cache-file=FILE cache test results in FILE [disabled]
584 -C, --config-cache alias for \`--cache-file=config.cache'
585 -n, --no-create do not create output files
586 --srcdir=DIR find the sources in DIR [configure dir or \`..']
590 cat <<EOF
591 Installation directories:
592 --prefix=PREFIX install architecture-independent files in PREFIX
593 [$ac_default_prefix]
594 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
595 [PREFIX]
597 By default, \`make install' will install all the files in
598 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
599 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
600 for instance \`--prefix=\$HOME'.
602 For better control, use the options below.
604 Fine tuning of the installation directories:
605 --bindir=DIR user executables [EPREFIX/bin]
606 --sbindir=DIR system admin executables [EPREFIX/sbin]
607 --libexecdir=DIR program executables [EPREFIX/libexec]
608 --datadir=DIR read-only architecture-independent data [PREFIX/share]
609 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
610 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
611 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
612 --libdir=DIR object code libraries [EPREFIX/lib]
613 --includedir=DIR C header files [PREFIX/include]
614 --oldincludedir=DIR C header files for non-gcc [/usr/include]
615 --infodir=DIR info documentation [PREFIX/info]
616 --mandir=DIR man documentation [PREFIX/man]
619 cat <<\EOF
621 X features:
622 --x-includes=DIR X include files are in DIR
623 --x-libraries=DIR X library files are in DIR
627 if test -n "$ac_init_help"; then
629 cat <<\EOF
631 Optional Features:
632 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
633 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
634 --enable-warnings enable selected compiler warnings
635 --enable-debug include debugging symbols
636 --enable-profile enable performance profiling
637 --enable-arch compile for specific host cpu architecture
638 --enable-optimize=LEVEL select optimization level (full,low,none)
639 --enable-asm use hand-optimized asm cores
641 Optional Packages:
642 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
643 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
644 --with-fb build framebuffer device interface
645 --with-svgalib build Linux svgalib interface
646 --with-sdl build SDL interface
647 --with-x use the X Window System
649 Some influential environment variables:
650 CC C compiler command
651 CFLAGS C compiler flags
652 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
653 nonstandard directory <lib dir>
654 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
655 headers in a nonstandard directory <include dir>
656 CPP C preprocessor
658 Use these variables to override the choices made by `configure' or to help
659 it to find libraries and programs with nonstandard names/locations.
664 if test "$ac_init_help" = "recursive"; then
665 # If there are subdirs, report their specific --help.
666 ac_popdir=`pwd`
667 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
668 cd $ac_subdir
669 # A "../" for each directory in /$ac_subdir.
670 ac_dots=`echo $ac_subdir |
671 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
673 case $srcdir in
674 .) # No --srcdir option. We are building in place.
675 ac_sub_srcdir=$srcdir ;;
676 [\\/]* | ?:[\\/]* ) # Absolute path.
677 ac_sub_srcdir=$srcdir/$ac_subdir ;;
678 *) # Relative path.
679 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
680 esac
682 # Check for guested configure; otherwise get Cygnus style configure.
683 if test -f $ac_sub_srcdir/configure.gnu; then
684 echo
685 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
686 elif test -f $ac_sub_srcdir/configure; then
687 echo
688 $SHELL $ac_sub_srcdir/configure --help=recursive
689 elif test -f $ac_sub_srcdir/configure.ac ||
690 test -f $ac_sub_srcdir/configure.in; then
691 echo
692 $ac_configure --help
693 else
694 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
696 cd $ac_popdir
697 done
700 test -n "$ac_init_help" && exit 0
701 if $ac_init_version; then
702 cat <<\EOF
704 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
705 Free Software Foundation, Inc.
706 This configure script is free software; the Free Software Foundation
707 gives unlimited permission to copy, distribute and modify it.
709 exit 0
711 exec 5>config.log
712 cat >&5 <<EOF
713 This file contains any messages produced by compilers while
714 running configure, to aid debugging if configure makes a mistake.
716 It was created by $as_me, which was
717 generated by GNU Autoconf 2.52. Invocation command line was
719 $ $0 $@
723 cat <<_ASUNAME
724 ## ---------- ##
725 ## Platform. ##
726 ## ---------- ##
728 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
729 uname -m = `(uname -m) 2>/dev/null || echo unknown`
730 uname -r = `(uname -r) 2>/dev/null || echo unknown`
731 uname -s = `(uname -s) 2>/dev/null || echo unknown`
732 uname -v = `(uname -v) 2>/dev/null || echo unknown`
734 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
735 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
737 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
738 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
739 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
740 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
741 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
742 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
743 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
745 PATH = $PATH
747 _ASUNAME
748 } >&5
750 cat >&5 <<EOF
751 ## ------------ ##
752 ## Core tests. ##
753 ## ------------ ##
757 # Keep a trace of the command line.
758 # Strip out --no-create and --no-recursion so they do not pile up.
759 # Also quote any args containing shell meta-characters.
760 ac_configure_args=
761 ac_sep=
762 for ac_arg
764 case $ac_arg in
765 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
766 | --no-cr | --no-c) ;;
767 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
768 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
769 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
770 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
771 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
772 ac_sep=" " ;;
773 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
774 ac_sep=" " ;;
775 esac
776 # Get rid of the leading space.
777 done
779 # When interrupted or exit'd, cleanup temporary files, and complete
780 # config.log. We remove comments because anyway the quotes in there
781 # would cause problems or look ugly.
782 trap 'exit_status=$?
783 # Save into config.log some information that might help in debugging.
784 echo >&5
785 echo "## ----------------- ##" >&5
786 echo "## Cache variables. ##" >&5
787 echo "## ----------------- ##" >&5
788 echo >&5
789 # The following way of writing the cache mishandles newlines in values,
791 (set) 2>&1 |
792 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
793 *ac_space=\ *)
794 sed -n \
795 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
796 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
799 sed -n \
800 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
802 esac;
803 } >&5
804 sed "/^$/d" confdefs.h >conftest.log
805 if test -s conftest.log; then
806 echo >&5
807 echo "## ------------ ##" >&5
808 echo "## confdefs.h. ##" >&5
809 echo "## ------------ ##" >&5
810 echo >&5
811 cat conftest.log >&5
813 (echo; echo) >&5
814 test "$ac_signal" != 0 &&
815 echo "$as_me: caught signal $ac_signal" >&5
816 echo "$as_me: exit $exit_status" >&5
817 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
818 exit $exit_status
820 for ac_signal in 1 2 13 15; do
821 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
822 done
823 ac_signal=0
825 # confdefs.h avoids OS command line length limits that DEFS can exceed.
826 rm -rf conftest* confdefs.h
827 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
828 echo >confdefs.h
830 # Let the site file select an alternate cache file if it wants to.
831 # Prefer explicitly selected file to automatically selected ones.
832 if test -z "$CONFIG_SITE"; then
833 if test "x$prefix" != xNONE; then
834 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
835 else
836 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
839 for ac_site_file in $CONFIG_SITE; do
840 if test -r "$ac_site_file"; then
841 { echo "$as_me:841: loading site script $ac_site_file" >&5
842 echo "$as_me: loading site script $ac_site_file" >&6;}
843 cat "$ac_site_file" >&5
844 . "$ac_site_file"
846 done
848 if test -r "$cache_file"; then
849 # Some versions of bash will fail to source /dev/null (special
850 # files actually), so we avoid doing that.
851 if test -f "$cache_file"; then
852 { echo "$as_me:852: loading cache $cache_file" >&5
853 echo "$as_me: loading cache $cache_file" >&6;}
854 case $cache_file in
855 [\\/]* | ?:[\\/]* ) . $cache_file;;
856 *) . ./$cache_file;;
857 esac
859 else
860 { echo "$as_me:860: creating cache $cache_file" >&5
861 echo "$as_me: creating cache $cache_file" >&6;}
862 >$cache_file
865 # Check that the precious variables saved in the cache have kept the same
866 # value.
867 ac_cache_corrupted=false
868 for ac_var in `(set) 2>&1 |
869 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
870 eval ac_old_set=\$ac_cv_env_${ac_var}_set
871 eval ac_new_set=\$ac_env_${ac_var}_set
872 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
873 eval ac_new_val="\$ac_env_${ac_var}_value"
874 case $ac_old_set,$ac_new_set in
875 set,)
876 { echo "$as_me:876: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
877 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
878 ac_cache_corrupted=: ;;
879 ,set)
880 { echo "$as_me:880: error: \`$ac_var' was not set in the previous run" >&5
881 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
882 ac_cache_corrupted=: ;;
883 ,);;
885 if test "x$ac_old_val" != "x$ac_new_val"; then
886 { echo "$as_me:886: error: \`$ac_var' has changed since the previous run:" >&5
887 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
888 { echo "$as_me:888: former value: $ac_old_val" >&5
889 echo "$as_me: former value: $ac_old_val" >&2;}
890 { echo "$as_me:890: current value: $ac_new_val" >&5
891 echo "$as_me: current value: $ac_new_val" >&2;}
892 ac_cache_corrupted=:
893 fi;;
894 esac
895 # Pass precious variables to config.status. It doesn't matter if
896 # we pass some twice (in addition to the command line arguments).
897 if test "$ac_new_set" = set; then
898 case $ac_new_val in
899 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
900 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
901 ac_configure_args="$ac_configure_args '$ac_arg'"
903 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
905 esac
907 done
908 if $ac_cache_corrupted; then
909 { echo "$as_me:909: error: changes in the environment can compromise the build" >&5
910 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
911 { { echo "$as_me:911: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
912 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
913 { (exit 1); exit 1; }; }
916 ac_ext=c
917 ac_cpp='$CPP $CPPFLAGS'
918 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
919 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
920 ac_compiler_gnu=$ac_cv_c_compiler_gnu
922 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
923 *c*,-n*) ECHO_N= ECHO_C='
924 ' ECHO_T=' ' ;;
925 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
926 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
927 esac
928 echo "#! $SHELL" >conftest.sh
929 echo "exit 0" >>conftest.sh
930 chmod +x conftest.sh
931 if { (echo "$as_me:931: PATH=\".;.\"; conftest.sh") >&5
932 (PATH=".;."; conftest.sh) 2>&5
933 ac_status=$?
934 echo "$as_me:934: \$? = $ac_status" >&5
935 (exit $ac_status); }; then
936 ac_path_separator=';'
937 else
938 ac_path_separator=:
940 PATH_SEPARATOR="$ac_path_separator"
941 rm -f conftest.sh
943 CFLAGS="$CFLAGS"
945 ac_ext=c
946 ac_cpp='$CPP $CPPFLAGS'
947 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
948 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
949 ac_compiler_gnu=$ac_cv_c_compiler_gnu
950 if test -n "$ac_tool_prefix"; then
951 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
952 set dummy ${ac_tool_prefix}gcc; ac_word=$2
953 echo "$as_me:953: checking for $ac_word" >&5
954 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
955 if test "${ac_cv_prog_CC+set}" = set; then
956 echo $ECHO_N "(cached) $ECHO_C" >&6
957 else
958 if test -n "$CC"; then
959 ac_cv_prog_CC="$CC" # Let the user override the test.
960 else
961 ac_save_IFS=$IFS; IFS=$ac_path_separator
962 ac_dummy="$PATH"
963 for ac_dir in $ac_dummy; do
964 IFS=$ac_save_IFS
965 test -z "$ac_dir" && ac_dir=.
966 $as_executable_p "$ac_dir/$ac_word" || continue
967 ac_cv_prog_CC="${ac_tool_prefix}gcc"
968 echo "$as_me:968: found $ac_dir/$ac_word" >&5
969 break
970 done
974 CC=$ac_cv_prog_CC
975 if test -n "$CC"; then
976 echo "$as_me:976: result: $CC" >&5
977 echo "${ECHO_T}$CC" >&6
978 else
979 echo "$as_me:979: result: no" >&5
980 echo "${ECHO_T}no" >&6
984 if test -z "$ac_cv_prog_CC"; then
985 ac_ct_CC=$CC
986 # Extract the first word of "gcc", so it can be a program name with args.
987 set dummy gcc; ac_word=$2
988 echo "$as_me:988: checking for $ac_word" >&5
989 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
990 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
991 echo $ECHO_N "(cached) $ECHO_C" >&6
992 else
993 if test -n "$ac_ct_CC"; then
994 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
995 else
996 ac_save_IFS=$IFS; IFS=$ac_path_separator
997 ac_dummy="$PATH"
998 for ac_dir in $ac_dummy; do
999 IFS=$ac_save_IFS
1000 test -z "$ac_dir" && ac_dir=.
1001 $as_executable_p "$ac_dir/$ac_word" || continue
1002 ac_cv_prog_ac_ct_CC="gcc"
1003 echo "$as_me:1003: found $ac_dir/$ac_word" >&5
1004 break
1005 done
1009 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1010 if test -n "$ac_ct_CC"; then
1011 echo "$as_me:1011: result: $ac_ct_CC" >&5
1012 echo "${ECHO_T}$ac_ct_CC" >&6
1013 else
1014 echo "$as_me:1014: result: no" >&5
1015 echo "${ECHO_T}no" >&6
1018 CC=$ac_ct_CC
1019 else
1020 CC="$ac_cv_prog_CC"
1023 if test -z "$CC"; then
1024 if test -n "$ac_tool_prefix"; then
1025 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1026 set dummy ${ac_tool_prefix}cc; ac_word=$2
1027 echo "$as_me:1027: checking for $ac_word" >&5
1028 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1029 if test "${ac_cv_prog_CC+set}" = set; then
1030 echo $ECHO_N "(cached) $ECHO_C" >&6
1031 else
1032 if test -n "$CC"; then
1033 ac_cv_prog_CC="$CC" # Let the user override the test.
1034 else
1035 ac_save_IFS=$IFS; IFS=$ac_path_separator
1036 ac_dummy="$PATH"
1037 for ac_dir in $ac_dummy; do
1038 IFS=$ac_save_IFS
1039 test -z "$ac_dir" && ac_dir=.
1040 $as_executable_p "$ac_dir/$ac_word" || continue
1041 ac_cv_prog_CC="${ac_tool_prefix}cc"
1042 echo "$as_me:1042: found $ac_dir/$ac_word" >&5
1043 break
1044 done
1048 CC=$ac_cv_prog_CC
1049 if test -n "$CC"; then
1050 echo "$as_me:1050: result: $CC" >&5
1051 echo "${ECHO_T}$CC" >&6
1052 else
1053 echo "$as_me:1053: result: no" >&5
1054 echo "${ECHO_T}no" >&6
1058 if test -z "$ac_cv_prog_CC"; then
1059 ac_ct_CC=$CC
1060 # Extract the first word of "cc", so it can be a program name with args.
1061 set dummy cc; ac_word=$2
1062 echo "$as_me:1062: checking for $ac_word" >&5
1063 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1064 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1065 echo $ECHO_N "(cached) $ECHO_C" >&6
1066 else
1067 if test -n "$ac_ct_CC"; then
1068 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1069 else
1070 ac_save_IFS=$IFS; IFS=$ac_path_separator
1071 ac_dummy="$PATH"
1072 for ac_dir in $ac_dummy; do
1073 IFS=$ac_save_IFS
1074 test -z "$ac_dir" && ac_dir=.
1075 $as_executable_p "$ac_dir/$ac_word" || continue
1076 ac_cv_prog_ac_ct_CC="cc"
1077 echo "$as_me:1077: found $ac_dir/$ac_word" >&5
1078 break
1079 done
1083 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1084 if test -n "$ac_ct_CC"; then
1085 echo "$as_me:1085: result: $ac_ct_CC" >&5
1086 echo "${ECHO_T}$ac_ct_CC" >&6
1087 else
1088 echo "$as_me:1088: result: no" >&5
1089 echo "${ECHO_T}no" >&6
1092 CC=$ac_ct_CC
1093 else
1094 CC="$ac_cv_prog_CC"
1098 if test -z "$CC"; then
1099 # Extract the first word of "cc", so it can be a program name with args.
1100 set dummy cc; ac_word=$2
1101 echo "$as_me:1101: checking for $ac_word" >&5
1102 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1103 if test "${ac_cv_prog_CC+set}" = set; then
1104 echo $ECHO_N "(cached) $ECHO_C" >&6
1105 else
1106 if test -n "$CC"; then
1107 ac_cv_prog_CC="$CC" # Let the user override the test.
1108 else
1109 ac_prog_rejected=no
1110 ac_save_IFS=$IFS; IFS=$ac_path_separator
1111 ac_dummy="$PATH"
1112 for ac_dir in $ac_dummy; do
1113 IFS=$ac_save_IFS
1114 test -z "$ac_dir" && ac_dir=.
1115 $as_executable_p "$ac_dir/$ac_word" || continue
1116 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1117 ac_prog_rejected=yes
1118 continue
1120 ac_cv_prog_CC="cc"
1121 echo "$as_me:1121: found $ac_dir/$ac_word" >&5
1122 break
1123 done
1125 if test $ac_prog_rejected = yes; then
1126 # We found a bogon in the path, so make sure we never use it.
1127 set dummy $ac_cv_prog_CC
1128 shift
1129 if test $# != 0; then
1130 # We chose a different compiler from the bogus one.
1131 # However, it has the same basename, so the bogon will be chosen
1132 # first if we set CC to just the basename; use the full file name.
1133 shift
1134 set dummy "$ac_dir/$ac_word" ${1+"$@"}
1135 shift
1136 ac_cv_prog_CC="$@"
1141 CC=$ac_cv_prog_CC
1142 if test -n "$CC"; then
1143 echo "$as_me:1143: result: $CC" >&5
1144 echo "${ECHO_T}$CC" >&6
1145 else
1146 echo "$as_me:1146: result: no" >&5
1147 echo "${ECHO_T}no" >&6
1151 if test -z "$CC"; then
1152 if test -n "$ac_tool_prefix"; then
1153 for ac_prog in cl
1155 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1156 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1157 echo "$as_me:1157: checking for $ac_word" >&5
1158 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1159 if test "${ac_cv_prog_CC+set}" = set; then
1160 echo $ECHO_N "(cached) $ECHO_C" >&6
1161 else
1162 if test -n "$CC"; then
1163 ac_cv_prog_CC="$CC" # Let the user override the test.
1164 else
1165 ac_save_IFS=$IFS; IFS=$ac_path_separator
1166 ac_dummy="$PATH"
1167 for ac_dir in $ac_dummy; do
1168 IFS=$ac_save_IFS
1169 test -z "$ac_dir" && ac_dir=.
1170 $as_executable_p "$ac_dir/$ac_word" || continue
1171 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1172 echo "$as_me:1172: found $ac_dir/$ac_word" >&5
1173 break
1174 done
1178 CC=$ac_cv_prog_CC
1179 if test -n "$CC"; then
1180 echo "$as_me:1180: result: $CC" >&5
1181 echo "${ECHO_T}$CC" >&6
1182 else
1183 echo "$as_me:1183: result: no" >&5
1184 echo "${ECHO_T}no" >&6
1187 test -n "$CC" && break
1188 done
1190 if test -z "$CC"; then
1191 ac_ct_CC=$CC
1192 for ac_prog in cl
1194 # Extract the first word of "$ac_prog", so it can be a program name with args.
1195 set dummy $ac_prog; ac_word=$2
1196 echo "$as_me:1196: checking for $ac_word" >&5
1197 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1198 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1199 echo $ECHO_N "(cached) $ECHO_C" >&6
1200 else
1201 if test -n "$ac_ct_CC"; then
1202 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1203 else
1204 ac_save_IFS=$IFS; IFS=$ac_path_separator
1205 ac_dummy="$PATH"
1206 for ac_dir in $ac_dummy; do
1207 IFS=$ac_save_IFS
1208 test -z "$ac_dir" && ac_dir=.
1209 $as_executable_p "$ac_dir/$ac_word" || continue
1210 ac_cv_prog_ac_ct_CC="$ac_prog"
1211 echo "$as_me:1211: found $ac_dir/$ac_word" >&5
1212 break
1213 done
1217 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1218 if test -n "$ac_ct_CC"; then
1219 echo "$as_me:1219: result: $ac_ct_CC" >&5
1220 echo "${ECHO_T}$ac_ct_CC" >&6
1221 else
1222 echo "$as_me:1222: result: no" >&5
1223 echo "${ECHO_T}no" >&6
1226 test -n "$ac_ct_CC" && break
1227 done
1229 CC=$ac_ct_CC
1234 test -z "$CC" && { { echo "$as_me:1234: error: no acceptable cc found in \$PATH" >&5
1235 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1236 { (exit 1); exit 1; }; }
1238 # Provide some information about the compiler.
1239 echo "$as_me:1239:" \
1240 "checking for C compiler version" >&5
1241 ac_compiler=`set X $ac_compile; echo $2`
1242 { (eval echo "$as_me:1242: \"$ac_compiler --version </dev/null >&5\"") >&5
1243 (eval $ac_compiler --version </dev/null >&5) 2>&5
1244 ac_status=$?
1245 echo "$as_me:1245: \$? = $ac_status" >&5
1246 (exit $ac_status); }
1247 { (eval echo "$as_me:1247: \"$ac_compiler -v </dev/null >&5\"") >&5
1248 (eval $ac_compiler -v </dev/null >&5) 2>&5
1249 ac_status=$?
1250 echo "$as_me:1250: \$? = $ac_status" >&5
1251 (exit $ac_status); }
1252 { (eval echo "$as_me:1252: \"$ac_compiler -V </dev/null >&5\"") >&5
1253 (eval $ac_compiler -V </dev/null >&5) 2>&5
1254 ac_status=$?
1255 echo "$as_me:1255: \$? = $ac_status" >&5
1256 (exit $ac_status); }
1258 cat >conftest.$ac_ext <<_ACEOF
1259 #line 1259 "configure"
1260 #include "confdefs.h"
1263 main ()
1267 return 0;
1269 _ACEOF
1270 ac_clean_files_save=$ac_clean_files
1271 ac_clean_files="$ac_clean_files a.out a.exe"
1272 # Try to create an executable without -o first, disregard a.out.
1273 # It will help us diagnose broken compilers, and finding out an intuition
1274 # of exeext.
1275 echo "$as_me:1275: checking for C compiler default output" >&5
1276 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1277 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1278 if { (eval echo "$as_me:1278: \"$ac_link_default\"") >&5
1279 (eval $ac_link_default) 2>&5
1280 ac_status=$?
1281 echo "$as_me:1281: \$? = $ac_status" >&5
1282 (exit $ac_status); }; then
1283 # Find the output, starting from the most likely. This scheme is
1284 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1285 # resort.
1286 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1287 ls a.out conftest 2>/dev/null;
1288 ls a.* conftest.* 2>/dev/null`; do
1289 case $ac_file in
1290 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1291 a.out ) # We found the default executable, but exeext='' is most
1292 # certainly right.
1293 break;;
1294 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1295 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1296 export ac_cv_exeext
1297 break;;
1298 * ) break;;
1299 esac
1300 done
1301 else
1302 echo "$as_me: failed program was:" >&5
1303 cat conftest.$ac_ext >&5
1304 { { echo "$as_me:1304: error: C compiler cannot create executables" >&5
1305 echo "$as_me: error: C compiler cannot create executables" >&2;}
1306 { (exit 77); exit 77; }; }
1309 ac_exeext=$ac_cv_exeext
1310 echo "$as_me:1310: result: $ac_file" >&5
1311 echo "${ECHO_T}$ac_file" >&6
1313 # Check the compiler produces executables we can run. If not, either
1314 # the compiler is broken, or we cross compile.
1315 echo "$as_me:1315: checking whether the C compiler works" >&5
1316 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1317 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1318 # If not cross compiling, check that we can run a simple program.
1319 if test "$cross_compiling" != yes; then
1320 if { ac_try='./$ac_file'
1321 { (eval echo "$as_me:1321: \"$ac_try\"") >&5
1322 (eval $ac_try) 2>&5
1323 ac_status=$?
1324 echo "$as_me:1324: \$? = $ac_status" >&5
1325 (exit $ac_status); }; }; then
1326 cross_compiling=no
1327 else
1328 if test "$cross_compiling" = maybe; then
1329 cross_compiling=yes
1330 else
1331 { { echo "$as_me:1331: error: cannot run C compiled programs.
1332 If you meant to cross compile, use \`--host'." >&5
1333 echo "$as_me: error: cannot run C compiled programs.
1334 If you meant to cross compile, use \`--host'." >&2;}
1335 { (exit 1); exit 1; }; }
1339 echo "$as_me:1339: result: yes" >&5
1340 echo "${ECHO_T}yes" >&6
1342 rm -f a.out a.exe conftest$ac_cv_exeext
1343 ac_clean_files=$ac_clean_files_save
1344 # Check the compiler produces executables we can run. If not, either
1345 # the compiler is broken, or we cross compile.
1346 echo "$as_me:1346: checking whether we are cross compiling" >&5
1347 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1348 echo "$as_me:1348: result: $cross_compiling" >&5
1349 echo "${ECHO_T}$cross_compiling" >&6
1351 echo "$as_me:1351: checking for executable suffix" >&5
1352 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1353 if { (eval echo "$as_me:1353: \"$ac_link\"") >&5
1354 (eval $ac_link) 2>&5
1355 ac_status=$?
1356 echo "$as_me:1356: \$? = $ac_status" >&5
1357 (exit $ac_status); }; then
1358 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1359 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1360 # work properly (i.e., refer to `conftest.exe'), while it won't with
1361 # `rm'.
1362 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1363 case $ac_file in
1364 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1365 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1366 export ac_cv_exeext
1367 break;;
1368 * ) break;;
1369 esac
1370 done
1371 else
1372 { { echo "$as_me:1372: error: cannot compute EXEEXT: cannot compile and link" >&5
1373 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1374 { (exit 1); exit 1; }; }
1377 rm -f conftest$ac_cv_exeext
1378 echo "$as_me:1378: result: $ac_cv_exeext" >&5
1379 echo "${ECHO_T}$ac_cv_exeext" >&6
1381 rm -f conftest.$ac_ext
1382 EXEEXT=$ac_cv_exeext
1383 ac_exeext=$EXEEXT
1384 echo "$as_me:1384: checking for object suffix" >&5
1385 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1386 if test "${ac_cv_objext+set}" = set; then
1387 echo $ECHO_N "(cached) $ECHO_C" >&6
1388 else
1389 cat >conftest.$ac_ext <<_ACEOF
1390 #line 1390 "configure"
1391 #include "confdefs.h"
1394 main ()
1398 return 0;
1400 _ACEOF
1401 rm -f conftest.o conftest.obj
1402 if { (eval echo "$as_me:1402: \"$ac_compile\"") >&5
1403 (eval $ac_compile) 2>&5
1404 ac_status=$?
1405 echo "$as_me:1405: \$? = $ac_status" >&5
1406 (exit $ac_status); }; then
1407 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1408 case $ac_file in
1409 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1410 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1411 break;;
1412 esac
1413 done
1414 else
1415 echo "$as_me: failed program was:" >&5
1416 cat conftest.$ac_ext >&5
1417 { { echo "$as_me:1417: error: cannot compute OBJEXT: cannot compile" >&5
1418 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1419 { (exit 1); exit 1; }; }
1422 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1424 echo "$as_me:1424: result: $ac_cv_objext" >&5
1425 echo "${ECHO_T}$ac_cv_objext" >&6
1426 OBJEXT=$ac_cv_objext
1427 ac_objext=$OBJEXT
1428 echo "$as_me:1428: checking whether we are using the GNU C compiler" >&5
1429 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1430 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1431 echo $ECHO_N "(cached) $ECHO_C" >&6
1432 else
1433 cat >conftest.$ac_ext <<_ACEOF
1434 #line 1434 "configure"
1435 #include "confdefs.h"
1438 main ()
1440 #ifndef __GNUC__
1441 choke me
1442 #endif
1445 return 0;
1447 _ACEOF
1448 rm -f conftest.$ac_objext
1449 if { (eval echo "$as_me:1449: \"$ac_compile\"") >&5
1450 (eval $ac_compile) 2>&5
1451 ac_status=$?
1452 echo "$as_me:1452: \$? = $ac_status" >&5
1453 (exit $ac_status); } &&
1454 { ac_try='test -s conftest.$ac_objext'
1455 { (eval echo "$as_me:1455: \"$ac_try\"") >&5
1456 (eval $ac_try) 2>&5
1457 ac_status=$?
1458 echo "$as_me:1458: \$? = $ac_status" >&5
1459 (exit $ac_status); }; }; then
1460 ac_compiler_gnu=yes
1461 else
1462 echo "$as_me: failed program was:" >&5
1463 cat conftest.$ac_ext >&5
1464 ac_compiler_gnu=no
1466 rm -f conftest.$ac_objext conftest.$ac_ext
1467 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1470 echo "$as_me:1470: result: $ac_cv_c_compiler_gnu" >&5
1471 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1472 GCC=`test $ac_compiler_gnu = yes && echo yes`
1473 ac_test_CFLAGS=${CFLAGS+set}
1474 ac_save_CFLAGS=$CFLAGS
1475 CFLAGS="-g"
1476 echo "$as_me:1476: checking whether $CC accepts -g" >&5
1477 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1478 if test "${ac_cv_prog_cc_g+set}" = set; then
1479 echo $ECHO_N "(cached) $ECHO_C" >&6
1480 else
1481 cat >conftest.$ac_ext <<_ACEOF
1482 #line 1482 "configure"
1483 #include "confdefs.h"
1486 main ()
1490 return 0;
1492 _ACEOF
1493 rm -f conftest.$ac_objext
1494 if { (eval echo "$as_me:1494: \"$ac_compile\"") >&5
1495 (eval $ac_compile) 2>&5
1496 ac_status=$?
1497 echo "$as_me:1497: \$? = $ac_status" >&5
1498 (exit $ac_status); } &&
1499 { ac_try='test -s conftest.$ac_objext'
1500 { (eval echo "$as_me:1500: \"$ac_try\"") >&5
1501 (eval $ac_try) 2>&5
1502 ac_status=$?
1503 echo "$as_me:1503: \$? = $ac_status" >&5
1504 (exit $ac_status); }; }; then
1505 ac_cv_prog_cc_g=yes
1506 else
1507 echo "$as_me: failed program was:" >&5
1508 cat conftest.$ac_ext >&5
1509 ac_cv_prog_cc_g=no
1511 rm -f conftest.$ac_objext conftest.$ac_ext
1513 echo "$as_me:1513: result: $ac_cv_prog_cc_g" >&5
1514 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1515 if test "$ac_test_CFLAGS" = set; then
1516 CFLAGS=$ac_save_CFLAGS
1517 elif test $ac_cv_prog_cc_g = yes; then
1518 if test "$GCC" = yes; then
1519 CFLAGS="-g -O2"
1520 else
1521 CFLAGS="-g"
1523 else
1524 if test "$GCC" = yes; then
1525 CFLAGS="-O2"
1526 else
1527 CFLAGS=
1530 # Some people use a C++ compiler to compile C. Since we use `exit',
1531 # in C++ we need to declare it. In case someone uses the same compiler
1532 # for both compiling C and C++ we need to have the C++ compiler decide
1533 # the declaration of exit, since it's the most demanding environment.
1534 cat >conftest.$ac_ext <<_ACEOF
1535 #ifndef __cplusplus
1536 choke me
1537 #endif
1538 _ACEOF
1539 rm -f conftest.$ac_objext
1540 if { (eval echo "$as_me:1540: \"$ac_compile\"") >&5
1541 (eval $ac_compile) 2>&5
1542 ac_status=$?
1543 echo "$as_me:1543: \$? = $ac_status" >&5
1544 (exit $ac_status); } &&
1545 { ac_try='test -s conftest.$ac_objext'
1546 { (eval echo "$as_me:1546: \"$ac_try\"") >&5
1547 (eval $ac_try) 2>&5
1548 ac_status=$?
1549 echo "$as_me:1549: \$? = $ac_status" >&5
1550 (exit $ac_status); }; }; then
1551 for ac_declaration in \
1553 '#include <stdlib.h>' \
1554 'extern "C" void std::exit (int) throw (); using std::exit;' \
1555 'extern "C" void std::exit (int); using std::exit;' \
1556 'extern "C" void exit (int) throw ();' \
1557 'extern "C" void exit (int);' \
1558 'void exit (int);'
1560 cat >conftest.$ac_ext <<_ACEOF
1561 #line 1561 "configure"
1562 #include "confdefs.h"
1563 #include <stdlib.h>
1564 $ac_declaration
1566 main ()
1568 exit (42);
1570 return 0;
1572 _ACEOF
1573 rm -f conftest.$ac_objext
1574 if { (eval echo "$as_me:1574: \"$ac_compile\"") >&5
1575 (eval $ac_compile) 2>&5
1576 ac_status=$?
1577 echo "$as_me:1577: \$? = $ac_status" >&5
1578 (exit $ac_status); } &&
1579 { ac_try='test -s conftest.$ac_objext'
1580 { (eval echo "$as_me:1580: \"$ac_try\"") >&5
1581 (eval $ac_try) 2>&5
1582 ac_status=$?
1583 echo "$as_me:1583: \$? = $ac_status" >&5
1584 (exit $ac_status); }; }; then
1586 else
1587 echo "$as_me: failed program was:" >&5
1588 cat conftest.$ac_ext >&5
1589 continue
1591 rm -f conftest.$ac_objext conftest.$ac_ext
1592 cat >conftest.$ac_ext <<_ACEOF
1593 #line 1593 "configure"
1594 #include "confdefs.h"
1595 $ac_declaration
1597 main ()
1599 exit (42);
1601 return 0;
1603 _ACEOF
1604 rm -f conftest.$ac_objext
1605 if { (eval echo "$as_me:1605: \"$ac_compile\"") >&5
1606 (eval $ac_compile) 2>&5
1607 ac_status=$?
1608 echo "$as_me:1608: \$? = $ac_status" >&5
1609 (exit $ac_status); } &&
1610 { ac_try='test -s conftest.$ac_objext'
1611 { (eval echo "$as_me:1611: \"$ac_try\"") >&5
1612 (eval $ac_try) 2>&5
1613 ac_status=$?
1614 echo "$as_me:1614: \$? = $ac_status" >&5
1615 (exit $ac_status); }; }; then
1616 break
1617 else
1618 echo "$as_me: failed program was:" >&5
1619 cat conftest.$ac_ext >&5
1621 rm -f conftest.$ac_objext conftest.$ac_ext
1622 done
1623 rm -f conftest*
1624 if test -n "$ac_declaration"; then
1625 echo '#ifdef __cplusplus' >>confdefs.h
1626 echo $ac_declaration >>confdefs.h
1627 echo '#endif' >>confdefs.h
1630 else
1631 echo "$as_me: failed program was:" >&5
1632 cat conftest.$ac_ext >&5
1634 rm -f conftest.$ac_objext conftest.$ac_ext
1635 ac_ext=c
1636 ac_cpp='$CPP $CPPFLAGS'
1637 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1638 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1639 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1641 ac_ext=c
1642 ac_cpp='$CPP $CPPFLAGS'
1643 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1644 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1645 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1646 echo "$as_me:1646: checking how to run the C preprocessor" >&5
1647 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
1648 # On Suns, sometimes $CPP names a directory.
1649 if test -n "$CPP" && test -d "$CPP"; then
1650 CPP=
1652 if test -z "$CPP"; then
1653 if test "${ac_cv_prog_CPP+set}" = set; then
1654 echo $ECHO_N "(cached) $ECHO_C" >&6
1655 else
1656 # Double quotes because CPP needs to be expanded
1657 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
1659 ac_preproc_ok=false
1660 for ac_c_preproc_warn_flag in '' yes
1662 # Use a header file that comes with gcc, so configuring glibc
1663 # with a fresh cross-compiler works.
1664 # On the NeXT, cc -E runs the code through the compiler's parser,
1665 # not just through cpp. "Syntax error" is here to catch this case.
1666 cat >conftest.$ac_ext <<_ACEOF
1667 #line 1667 "configure"
1668 #include "confdefs.h"
1669 #include <assert.h>
1670 Syntax error
1671 _ACEOF
1672 if { (eval echo "$as_me:1672: \"$ac_cpp conftest.$ac_ext\"") >&5
1673 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1674 ac_status=$?
1675 egrep -v '^ *\+' conftest.er1 >conftest.err
1676 rm -f conftest.er1
1677 cat conftest.err >&5
1678 echo "$as_me:1678: \$? = $ac_status" >&5
1679 (exit $ac_status); } >/dev/null; then
1680 if test -s conftest.err; then
1681 ac_cpp_err=$ac_c_preproc_warn_flag
1682 else
1683 ac_cpp_err=
1685 else
1686 ac_cpp_err=yes
1688 if test -z "$ac_cpp_err"; then
1690 else
1691 echo "$as_me: failed program was:" >&5
1692 cat conftest.$ac_ext >&5
1693 # Broken: fails on valid input.
1694 continue
1696 rm -f conftest.err conftest.$ac_ext
1698 # OK, works on sane cases. Now check whether non-existent headers
1699 # can be detected and how.
1700 cat >conftest.$ac_ext <<_ACEOF
1701 #line 1701 "configure"
1702 #include "confdefs.h"
1703 #include <ac_nonexistent.h>
1704 _ACEOF
1705 if { (eval echo "$as_me:1705: \"$ac_cpp conftest.$ac_ext\"") >&5
1706 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1707 ac_status=$?
1708 egrep -v '^ *\+' conftest.er1 >conftest.err
1709 rm -f conftest.er1
1710 cat conftest.err >&5
1711 echo "$as_me:1711: \$? = $ac_status" >&5
1712 (exit $ac_status); } >/dev/null; then
1713 if test -s conftest.err; then
1714 ac_cpp_err=$ac_c_preproc_warn_flag
1715 else
1716 ac_cpp_err=
1718 else
1719 ac_cpp_err=yes
1721 if test -z "$ac_cpp_err"; then
1722 # Broken: success on invalid input.
1723 continue
1724 else
1725 echo "$as_me: failed program was:" >&5
1726 cat conftest.$ac_ext >&5
1727 # Passes both tests.
1728 ac_preproc_ok=:
1729 break
1731 rm -f conftest.err conftest.$ac_ext
1733 done
1734 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1735 rm -f conftest.err conftest.$ac_ext
1736 if $ac_preproc_ok; then
1737 break
1740 done
1741 ac_cv_prog_CPP=$CPP
1744 CPP=$ac_cv_prog_CPP
1745 else
1746 ac_cv_prog_CPP=$CPP
1748 echo "$as_me:1748: result: $CPP" >&5
1749 echo "${ECHO_T}$CPP" >&6
1750 ac_preproc_ok=false
1751 for ac_c_preproc_warn_flag in '' yes
1753 # Use a header file that comes with gcc, so configuring glibc
1754 # with a fresh cross-compiler works.
1755 # On the NeXT, cc -E runs the code through the compiler's parser,
1756 # not just through cpp. "Syntax error" is here to catch this case.
1757 cat >conftest.$ac_ext <<_ACEOF
1758 #line 1758 "configure"
1759 #include "confdefs.h"
1760 #include <assert.h>
1761 Syntax error
1762 _ACEOF
1763 if { (eval echo "$as_me:1763: \"$ac_cpp conftest.$ac_ext\"") >&5
1764 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1765 ac_status=$?
1766 egrep -v '^ *\+' conftest.er1 >conftest.err
1767 rm -f conftest.er1
1768 cat conftest.err >&5
1769 echo "$as_me:1769: \$? = $ac_status" >&5
1770 (exit $ac_status); } >/dev/null; then
1771 if test -s conftest.err; then
1772 ac_cpp_err=$ac_c_preproc_warn_flag
1773 else
1774 ac_cpp_err=
1776 else
1777 ac_cpp_err=yes
1779 if test -z "$ac_cpp_err"; then
1781 else
1782 echo "$as_me: failed program was:" >&5
1783 cat conftest.$ac_ext >&5
1784 # Broken: fails on valid input.
1785 continue
1787 rm -f conftest.err conftest.$ac_ext
1789 # OK, works on sane cases. Now check whether non-existent headers
1790 # can be detected and how.
1791 cat >conftest.$ac_ext <<_ACEOF
1792 #line 1792 "configure"
1793 #include "confdefs.h"
1794 #include <ac_nonexistent.h>
1795 _ACEOF
1796 if { (eval echo "$as_me:1796: \"$ac_cpp conftest.$ac_ext\"") >&5
1797 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1798 ac_status=$?
1799 egrep -v '^ *\+' conftest.er1 >conftest.err
1800 rm -f conftest.er1
1801 cat conftest.err >&5
1802 echo "$as_me:1802: \$? = $ac_status" >&5
1803 (exit $ac_status); } >/dev/null; then
1804 if test -s conftest.err; then
1805 ac_cpp_err=$ac_c_preproc_warn_flag
1806 else
1807 ac_cpp_err=
1809 else
1810 ac_cpp_err=yes
1812 if test -z "$ac_cpp_err"; then
1813 # Broken: success on invalid input.
1814 continue
1815 else
1816 echo "$as_me: failed program was:" >&5
1817 cat conftest.$ac_ext >&5
1818 # Passes both tests.
1819 ac_preproc_ok=:
1820 break
1822 rm -f conftest.err conftest.$ac_ext
1824 done
1825 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1826 rm -f conftest.err conftest.$ac_ext
1827 if $ac_preproc_ok; then
1829 else
1830 { { echo "$as_me:1830: error: C preprocessor \"$CPP\" fails sanity check" >&5
1831 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
1832 { (exit 1); exit 1; }; }
1835 ac_ext=c
1836 ac_cpp='$CPP $CPPFLAGS'
1837 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1838 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1839 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1841 ac_aux_dir=
1842 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1843 if test -f $ac_dir/install-sh; then
1844 ac_aux_dir=$ac_dir
1845 ac_install_sh="$ac_aux_dir/install-sh -c"
1846 break
1847 elif test -f $ac_dir/install.sh; then
1848 ac_aux_dir=$ac_dir
1849 ac_install_sh="$ac_aux_dir/install.sh -c"
1850 break
1851 elif test -f $ac_dir/shtool; then
1852 ac_aux_dir=$ac_dir
1853 ac_install_sh="$ac_aux_dir/shtool install -c"
1854 break
1856 done
1857 if test -z "$ac_aux_dir"; then
1858 { { echo "$as_me:1858: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1859 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1860 { (exit 1); exit 1; }; }
1862 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1863 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1864 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1866 # Find a good install program. We prefer a C program (faster),
1867 # so one script is as good as another. But avoid the broken or
1868 # incompatible versions:
1869 # SysV /etc/install, /usr/sbin/install
1870 # SunOS /usr/etc/install
1871 # IRIX /sbin/install
1872 # AIX /bin/install
1873 # AmigaOS /C/install, which installs bootblocks on floppy discs
1874 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1875 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1876 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1877 # ./install, which can be erroneously created by make from ./install.sh.
1878 echo "$as_me:1878: checking for a BSD compatible install" >&5
1879 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
1880 if test -z "$INSTALL"; then
1881 if test "${ac_cv_path_install+set}" = set; then
1882 echo $ECHO_N "(cached) $ECHO_C" >&6
1883 else
1884 ac_save_IFS=$IFS; IFS=$ac_path_separator
1885 for ac_dir in $PATH; do
1886 IFS=$ac_save_IFS
1887 # Account for people who put trailing slashes in PATH elements.
1888 case $ac_dir/ in
1889 / | ./ | .// | /cC/* \
1890 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
1891 | /usr/ucb/* ) ;;
1893 # OSF1 and SCO ODT 3.0 have their own names for install.
1894 # Don't use installbsd from OSF since it installs stuff as root
1895 # by default.
1896 for ac_prog in ginstall scoinst install; do
1897 if $as_executable_p "$ac_dir/$ac_prog"; then
1898 if test $ac_prog = install &&
1899 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
1900 # AIX install. It has an incompatible calling convention.
1902 elif test $ac_prog = install &&
1903 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
1904 # program-specific install script used by HP pwplus--don't use.
1906 else
1907 ac_cv_path_install="$ac_dir/$ac_prog -c"
1908 break 2
1911 done
1913 esac
1914 done
1917 if test "${ac_cv_path_install+set}" = set; then
1918 INSTALL=$ac_cv_path_install
1919 else
1920 # As a last resort, use the slow shell script. We don't cache a
1921 # path for INSTALL within a source directory, because that will
1922 # break other packages using the cache if that directory is
1923 # removed, or if the path is relative.
1924 INSTALL=$ac_install_sh
1927 echo "$as_me:1927: result: $INSTALL" >&5
1928 echo "${ECHO_T}$INSTALL" >&6
1930 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1931 # It thinks the first close brace ends the variable substitution.
1932 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1934 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1936 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1938 test "$cross_compiling" = "yes" ||
1939 echo "$as_me:1939: checking whether byte ordering is bigendian" >&5
1940 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
1941 if test "${ac_cv_c_bigendian+set}" = set; then
1942 echo $ECHO_N "(cached) $ECHO_C" >&6
1943 else
1944 ac_cv_c_bigendian=unknown
1945 # See if sys/param.h defines the BYTE_ORDER macro.
1946 cat >conftest.$ac_ext <<_ACEOF
1947 #line 1947 "configure"
1948 #include "confdefs.h"
1949 #include <sys/types.h>
1950 #include <sys/param.h>
1953 main ()
1955 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
1956 bogus endian macros
1957 #endif
1960 return 0;
1962 _ACEOF
1963 rm -f conftest.$ac_objext
1964 if { (eval echo "$as_me:1964: \"$ac_compile\"") >&5
1965 (eval $ac_compile) 2>&5
1966 ac_status=$?
1967 echo "$as_me:1967: \$? = $ac_status" >&5
1968 (exit $ac_status); } &&
1969 { ac_try='test -s conftest.$ac_objext'
1970 { (eval echo "$as_me:1970: \"$ac_try\"") >&5
1971 (eval $ac_try) 2>&5
1972 ac_status=$?
1973 echo "$as_me:1973: \$? = $ac_status" >&5
1974 (exit $ac_status); }; }; then
1975 # It does; now see whether it defined to BIG_ENDIAN or not.
1976 cat >conftest.$ac_ext <<_ACEOF
1977 #line 1977 "configure"
1978 #include "confdefs.h"
1979 #include <sys/types.h>
1980 #include <sys/param.h>
1983 main ()
1985 #if BYTE_ORDER != BIG_ENDIAN
1986 not big endian
1987 #endif
1990 return 0;
1992 _ACEOF
1993 rm -f conftest.$ac_objext
1994 if { (eval echo "$as_me:1994: \"$ac_compile\"") >&5
1995 (eval $ac_compile) 2>&5
1996 ac_status=$?
1997 echo "$as_me:1997: \$? = $ac_status" >&5
1998 (exit $ac_status); } &&
1999 { ac_try='test -s conftest.$ac_objext'
2000 { (eval echo "$as_me:2000: \"$ac_try\"") >&5
2001 (eval $ac_try) 2>&5
2002 ac_status=$?
2003 echo "$as_me:2003: \$? = $ac_status" >&5
2004 (exit $ac_status); }; }; then
2005 ac_cv_c_bigendian=yes
2006 else
2007 echo "$as_me: failed program was:" >&5
2008 cat conftest.$ac_ext >&5
2009 ac_cv_c_bigendian=no
2011 rm -f conftest.$ac_objext conftest.$ac_ext
2012 else
2013 echo "$as_me: failed program was:" >&5
2014 cat conftest.$ac_ext >&5
2016 rm -f conftest.$ac_objext conftest.$ac_ext
2017 if test $ac_cv_c_bigendian = unknown; then
2018 if test "$cross_compiling" = yes; then
2019 { { echo "$as_me:2019: error: cannot run test program while cross compiling" >&5
2020 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
2021 { (exit 1); exit 1; }; }
2022 else
2023 cat >conftest.$ac_ext <<_ACEOF
2024 #line 2024 "configure"
2025 #include "confdefs.h"
2027 main ()
2029 /* Are we little or big endian? From Harbison&Steele. */
2030 union
2032 long l;
2033 char c[sizeof (long)];
2034 } u;
2035 u.l = 1;
2036 exit (u.c[sizeof (long) - 1] == 1);
2038 _ACEOF
2039 rm -f conftest$ac_exeext
2040 if { (eval echo "$as_me:2040: \"$ac_link\"") >&5
2041 (eval $ac_link) 2>&5
2042 ac_status=$?
2043 echo "$as_me:2043: \$? = $ac_status" >&5
2044 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2045 { (eval echo "$as_me:2045: \"$ac_try\"") >&5
2046 (eval $ac_try) 2>&5
2047 ac_status=$?
2048 echo "$as_me:2048: \$? = $ac_status" >&5
2049 (exit $ac_status); }; }; then
2050 ac_cv_c_bigendian=no
2051 else
2052 echo "$as_me: program exited with status $ac_status" >&5
2053 echo "$as_me: failed program was:" >&5
2054 cat conftest.$ac_ext >&5
2055 ac_cv_c_bigendian=yes
2057 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2061 echo "$as_me:2061: result: $ac_cv_c_bigendian" >&5
2062 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
2063 if test $ac_cv_c_bigendian = yes; then
2065 cat >>confdefs.h <<\EOF
2066 #define WORDS_BIGENDIAN 1
2071 test "$ac_cv_c_bigendian" = "no" && ENDIAN="-DIS_LITTLE_ENDIAN"
2073 for ac_func in usleep
2075 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
2076 echo "$as_me:2076: checking for $ac_func" >&5
2077 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
2078 if eval "test \"\${$as_ac_var+set}\" = set"; then
2079 echo $ECHO_N "(cached) $ECHO_C" >&6
2080 else
2081 cat >conftest.$ac_ext <<_ACEOF
2082 #line 2082 "configure"
2083 #include "confdefs.h"
2084 /* System header to define __stub macros and hopefully few prototypes,
2085 which can conflict with char $ac_func (); below. */
2086 #include <assert.h>
2087 /* Override any gcc2 internal prototype to avoid an error. */
2088 #ifdef __cplusplus
2089 extern "C"
2090 #endif
2091 /* We use char because int might match the return type of a gcc2
2092 builtin and then its argument prototype would still apply. */
2093 char $ac_func ();
2094 char (*f) ();
2097 main ()
2099 /* The GNU C library defines this for functions which it implements
2100 to always fail with ENOSYS. Some functions are actually named
2101 something starting with __ and the normal name is an alias. */
2102 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2103 choke me
2104 #else
2105 f = $ac_func;
2106 #endif
2109 return 0;
2111 _ACEOF
2112 rm -f conftest.$ac_objext conftest$ac_exeext
2113 if { (eval echo "$as_me:2113: \"$ac_link\"") >&5
2114 (eval $ac_link) 2>&5
2115 ac_status=$?
2116 echo "$as_me:2116: \$? = $ac_status" >&5
2117 (exit $ac_status); } &&
2118 { ac_try='test -s conftest$ac_exeext'
2119 { (eval echo "$as_me:2119: \"$ac_try\"") >&5
2120 (eval $ac_try) 2>&5
2121 ac_status=$?
2122 echo "$as_me:2122: \$? = $ac_status" >&5
2123 (exit $ac_status); }; }; then
2124 eval "$as_ac_var=yes"
2125 else
2126 echo "$as_me: failed program was:" >&5
2127 cat conftest.$ac_ext >&5
2128 eval "$as_ac_var=no"
2130 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2132 echo "$as_me:2132: result: `eval echo '${'$as_ac_var'}'`" >&5
2133 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
2134 if test `eval echo '${'$as_ac_var'}'` = yes; then
2135 cat >>confdefs.h <<EOF
2136 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
2139 else
2141 for ac_func in select
2143 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
2144 echo "$as_me:2144: checking for $ac_func" >&5
2145 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
2146 if eval "test \"\${$as_ac_var+set}\" = set"; then
2147 echo $ECHO_N "(cached) $ECHO_C" >&6
2148 else
2149 cat >conftest.$ac_ext <<_ACEOF
2150 #line 2150 "configure"
2151 #include "confdefs.h"
2152 /* System header to define __stub macros and hopefully few prototypes,
2153 which can conflict with char $ac_func (); below. */
2154 #include <assert.h>
2155 /* Override any gcc2 internal prototype to avoid an error. */
2156 #ifdef __cplusplus
2157 extern "C"
2158 #endif
2159 /* We use char because int might match the return type of a gcc2
2160 builtin and then its argument prototype would still apply. */
2161 char $ac_func ();
2162 char (*f) ();
2165 main ()
2167 /* The GNU C library defines this for functions which it implements
2168 to always fail with ENOSYS. Some functions are actually named
2169 something starting with __ and the normal name is an alias. */
2170 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2171 choke me
2172 #else
2173 f = $ac_func;
2174 #endif
2177 return 0;
2179 _ACEOF
2180 rm -f conftest.$ac_objext conftest$ac_exeext
2181 if { (eval echo "$as_me:2181: \"$ac_link\"") >&5
2182 (eval $ac_link) 2>&5
2183 ac_status=$?
2184 echo "$as_me:2184: \$? = $ac_status" >&5
2185 (exit $ac_status); } &&
2186 { ac_try='test -s conftest$ac_exeext'
2187 { (eval echo "$as_me:2187: \"$ac_try\"") >&5
2188 (eval $ac_try) 2>&5
2189 ac_status=$?
2190 echo "$as_me:2190: \$? = $ac_status" >&5
2191 (exit $ac_status); }; }; then
2192 eval "$as_ac_var=yes"
2193 else
2194 echo "$as_me: failed program was:" >&5
2195 cat conftest.$ac_ext >&5
2196 eval "$as_ac_var=no"
2198 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2200 echo "$as_me:2200: result: `eval echo '${'$as_ac_var'}'`" >&5
2201 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
2202 if test `eval echo '${'$as_ac_var'}'` = yes; then
2203 cat >>confdefs.h <<EOF
2204 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
2207 else
2209 { { echo "$as_me:2209: error: your system must support either usleep or select" >&5
2210 echo "$as_me: error: your system must support either usleep or select" >&2;}
2211 { (exit 1); exit 1; }; }
2214 done
2217 done
2219 LIBS="$LIBS -L/usr/local/lib -L/usr/X11R6/lib"
2221 # Check whether --with-fb or --without-fb was given.
2222 if test "${with_fb+set}" = set; then
2223 withval="$with_fb"
2225 else
2226 with_fb=yes
2229 # Check whether --with-svgalib or --without-svgalib was given.
2230 if test "${with_svgalib+set}" = set; then
2231 withval="$with_svgalib"
2233 else
2234 with_svgalib=yes
2237 # Check whether --with-sdl or --without-sdl was given.
2238 if test "${with_sdl+set}" = set; then
2239 withval="$with_sdl"
2241 else
2242 with_sdl=yes
2245 SOUND=""
2246 JOY=""
2248 case `uname -s` in
2249 Linux)
2250 SYS_DEFS=-DIS_LINUX
2252 for ac_header in sys/soundcard.h
2254 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2255 echo "$as_me:2255: checking for $ac_header" >&5
2256 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2257 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2258 echo $ECHO_N "(cached) $ECHO_C" >&6
2259 else
2260 cat >conftest.$ac_ext <<_ACEOF
2261 #line 2261 "configure"
2262 #include "confdefs.h"
2263 #include <$ac_header>
2264 _ACEOF
2265 if { (eval echo "$as_me:2265: \"$ac_cpp conftest.$ac_ext\"") >&5
2266 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2267 ac_status=$?
2268 egrep -v '^ *\+' conftest.er1 >conftest.err
2269 rm -f conftest.er1
2270 cat conftest.err >&5
2271 echo "$as_me:2271: \$? = $ac_status" >&5
2272 (exit $ac_status); } >/dev/null; then
2273 if test -s conftest.err; then
2274 ac_cpp_err=$ac_c_preproc_warn_flag
2275 else
2276 ac_cpp_err=
2278 else
2279 ac_cpp_err=yes
2281 if test -z "$ac_cpp_err"; then
2282 eval "$as_ac_Header=yes"
2283 else
2284 echo "$as_me: failed program was:" >&5
2285 cat conftest.$ac_ext >&5
2286 eval "$as_ac_Header=no"
2288 rm -f conftest.err conftest.$ac_ext
2290 echo "$as_me:2290: result: `eval echo '${'$as_ac_Header'}'`" >&5
2291 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2292 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2293 cat >>confdefs.h <<EOF
2294 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2296 SOUND=sys/oss/oss.o
2298 done
2300 for ac_header in linux/joystick.h
2302 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2303 echo "$as_me:2303: checking for $ac_header" >&5
2304 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2305 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2306 echo $ECHO_N "(cached) $ECHO_C" >&6
2307 else
2308 cat >conftest.$ac_ext <<_ACEOF
2309 #line 2309 "configure"
2310 #include "confdefs.h"
2311 #include <$ac_header>
2312 _ACEOF
2313 if { (eval echo "$as_me:2313: \"$ac_cpp conftest.$ac_ext\"") >&5
2314 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2315 ac_status=$?
2316 egrep -v '^ *\+' conftest.er1 >conftest.err
2317 rm -f conftest.er1
2318 cat conftest.err >&5
2319 echo "$as_me:2319: \$? = $ac_status" >&5
2320 (exit $ac_status); } >/dev/null; then
2321 if test -s conftest.err; then
2322 ac_cpp_err=$ac_c_preproc_warn_flag
2323 else
2324 ac_cpp_err=
2326 else
2327 ac_cpp_err=yes
2329 if test -z "$ac_cpp_err"; then
2330 eval "$as_ac_Header=yes"
2331 else
2332 echo "$as_me: failed program was:" >&5
2333 cat conftest.$ac_ext >&5
2334 eval "$as_ac_Header=no"
2336 rm -f conftest.err conftest.$ac_ext
2338 echo "$as_me:2338: result: `eval echo '${'$as_ac_Header'}'`" >&5
2339 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2340 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2341 cat >>confdefs.h <<EOF
2342 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2344 JOY=sys/linux/joy.o
2346 done
2348 test "$with_fb" = "no" ||
2349 for ac_header in linux/fb.h
2351 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2352 echo "$as_me:2352: checking for $ac_header" >&5
2353 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2354 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2355 echo $ECHO_N "(cached) $ECHO_C" >&6
2356 else
2357 cat >conftest.$ac_ext <<_ACEOF
2358 #line 2358 "configure"
2359 #include "confdefs.h"
2360 #include <$ac_header>
2361 _ACEOF
2362 if { (eval echo "$as_me:2362: \"$ac_cpp conftest.$ac_ext\"") >&5
2363 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2364 ac_status=$?
2365 egrep -v '^ *\+' conftest.er1 >conftest.err
2366 rm -f conftest.er1
2367 cat conftest.err >&5
2368 echo "$as_me:2368: \$? = $ac_status" >&5
2369 (exit $ac_status); } >/dev/null; then
2370 if test -s conftest.err; then
2371 ac_cpp_err=$ac_c_preproc_warn_flag
2372 else
2373 ac_cpp_err=
2375 else
2376 ac_cpp_err=yes
2378 if test -z "$ac_cpp_err"; then
2379 eval "$as_ac_Header=yes"
2380 else
2381 echo "$as_me: failed program was:" >&5
2382 cat conftest.$ac_ext >&5
2383 eval "$as_ac_Header=no"
2385 rm -f conftest.err conftest.$ac_ext
2387 echo "$as_me:2387: result: `eval echo '${'$as_ac_Header'}'`" >&5
2388 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2389 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2390 cat >>confdefs.h <<EOF
2391 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2393 with_fb=linux
2395 done
2398 FreeBSD)
2399 SYS_DEFS=-DIS_FBSD
2401 for ac_header in machine/soundcard.h
2403 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2404 echo "$as_me:2404: checking for $ac_header" >&5
2405 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2406 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2407 echo $ECHO_N "(cached) $ECHO_C" >&6
2408 else
2409 cat >conftest.$ac_ext <<_ACEOF
2410 #line 2410 "configure"
2411 #include "confdefs.h"
2412 #include <$ac_header>
2413 _ACEOF
2414 if { (eval echo "$as_me:2414: \"$ac_cpp conftest.$ac_ext\"") >&5
2415 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2416 ac_status=$?
2417 egrep -v '^ *\+' conftest.er1 >conftest.err
2418 rm -f conftest.er1
2419 cat conftest.err >&5
2420 echo "$as_me:2420: \$? = $ac_status" >&5
2421 (exit $ac_status); } >/dev/null; then
2422 if test -s conftest.err; then
2423 ac_cpp_err=$ac_c_preproc_warn_flag
2424 else
2425 ac_cpp_err=
2427 else
2428 ac_cpp_err=yes
2430 if test -z "$ac_cpp_err"; then
2431 eval "$as_ac_Header=yes"
2432 else
2433 echo "$as_me: failed program was:" >&5
2434 cat conftest.$ac_ext >&5
2435 eval "$as_ac_Header=no"
2437 rm -f conftest.err conftest.$ac_ext
2439 echo "$as_me:2439: result: `eval echo '${'$as_ac_Header'}'`" >&5
2440 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2441 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2442 cat >>confdefs.h <<EOF
2443 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2445 SOUND=sys/oss/oss.o
2447 done
2450 OpenBSD)
2451 SYS_DEFS=-DIS_OBSD
2453 for ac_header in soundcard.h
2455 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2456 echo "$as_me:2456: checking for $ac_header" >&5
2457 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2458 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2459 echo $ECHO_N "(cached) $ECHO_C" >&6
2460 else
2461 cat >conftest.$ac_ext <<_ACEOF
2462 #line 2462 "configure"
2463 #include "confdefs.h"
2464 #include <$ac_header>
2465 _ACEOF
2466 if { (eval echo "$as_me:2466: \"$ac_cpp conftest.$ac_ext\"") >&5
2467 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2468 ac_status=$?
2469 egrep -v '^ *\+' conftest.er1 >conftest.err
2470 rm -f conftest.er1
2471 cat conftest.err >&5
2472 echo "$as_me:2472: \$? = $ac_status" >&5
2473 (exit $ac_status); } >/dev/null; then
2474 if test -s conftest.err; then
2475 ac_cpp_err=$ac_c_preproc_warn_flag
2476 else
2477 ac_cpp_err=
2479 else
2480 ac_cpp_err=yes
2482 if test -z "$ac_cpp_err"; then
2483 eval "$as_ac_Header=yes"
2484 else
2485 echo "$as_me: failed program was:" >&5
2486 cat conftest.$ac_ext >&5
2487 eval "$as_ac_Header=no"
2489 rm -f conftest.err conftest.$ac_ext
2491 echo "$as_me:2491: result: `eval echo '${'$as_ac_Header'}'`" >&5
2492 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2493 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2494 cat >>confdefs.h <<EOF
2495 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2497 SOUND=sys/oss/oss.o
2499 done
2502 esac
2504 test "$SOUND" || SOUND=sys/dummy/nosound.o
2505 test "$JOY" || JOY=sys/dummy/nojoy.o
2507 case "$with_fb" in
2508 linux) FB_OBJS="sys/linux/fbdev.o sys/linux/kb.o sys/pc/keymap.o" ;;
2509 *) FB_OBJS="" ; with_fb=no ;;
2510 esac
2512 if test "$with_svgalib" != "no" ; then
2513 echo "$as_me:2513: checking for vga_init in -lvga" >&5
2514 echo $ECHO_N "checking for vga_init in -lvga... $ECHO_C" >&6
2515 if test "${ac_cv_lib_vga_vga_init+set}" = set; then
2516 echo $ECHO_N "(cached) $ECHO_C" >&6
2517 else
2518 ac_check_lib_save_LIBS=$LIBS
2519 LIBS="-lvga $LIBS"
2520 cat >conftest.$ac_ext <<_ACEOF
2521 #line 2521 "configure"
2522 #include "confdefs.h"
2524 /* Override any gcc2 internal prototype to avoid an error. */
2525 #ifdef __cplusplus
2526 extern "C"
2527 #endif
2528 /* We use char because int might match the return type of a gcc2
2529 builtin and then its argument prototype would still apply. */
2530 char vga_init ();
2532 main ()
2534 vga_init ();
2536 return 0;
2538 _ACEOF
2539 rm -f conftest.$ac_objext conftest$ac_exeext
2540 if { (eval echo "$as_me:2540: \"$ac_link\"") >&5
2541 (eval $ac_link) 2>&5
2542 ac_status=$?
2543 echo "$as_me:2543: \$? = $ac_status" >&5
2544 (exit $ac_status); } &&
2545 { ac_try='test -s conftest$ac_exeext'
2546 { (eval echo "$as_me:2546: \"$ac_try\"") >&5
2547 (eval $ac_try) 2>&5
2548 ac_status=$?
2549 echo "$as_me:2549: \$? = $ac_status" >&5
2550 (exit $ac_status); }; }; then
2551 ac_cv_lib_vga_vga_init=yes
2552 else
2553 echo "$as_me: failed program was:" >&5
2554 cat conftest.$ac_ext >&5
2555 ac_cv_lib_vga_vga_init=no
2557 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2558 LIBS=$ac_check_lib_save_LIBS
2560 echo "$as_me:2560: result: $ac_cv_lib_vga_vga_init" >&5
2561 echo "${ECHO_T}$ac_cv_lib_vga_vga_init" >&6
2562 if test $ac_cv_lib_vga_vga_init = yes; then
2564 for ac_header in vga.h vgakeyboard.h
2566 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2567 echo "$as_me:2567: checking for $ac_header" >&5
2568 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2569 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2570 echo $ECHO_N "(cached) $ECHO_C" >&6
2571 else
2572 cat >conftest.$ac_ext <<_ACEOF
2573 #line 2573 "configure"
2574 #include "confdefs.h"
2575 #include <$ac_header>
2576 _ACEOF
2577 if { (eval echo "$as_me:2577: \"$ac_cpp conftest.$ac_ext\"") >&5
2578 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2579 ac_status=$?
2580 egrep -v '^ *\+' conftest.er1 >conftest.err
2581 rm -f conftest.er1
2582 cat conftest.err >&5
2583 echo "$as_me:2583: \$? = $ac_status" >&5
2584 (exit $ac_status); } >/dev/null; then
2585 if test -s conftest.err; then
2586 ac_cpp_err=$ac_c_preproc_warn_flag
2587 else
2588 ac_cpp_err=
2590 else
2591 ac_cpp_err=yes
2593 if test -z "$ac_cpp_err"; then
2594 eval "$as_ac_Header=yes"
2595 else
2596 echo "$as_me: failed program was:" >&5
2597 cat conftest.$ac_ext >&5
2598 eval "$as_ac_Header=no"
2600 rm -f conftest.err conftest.$ac_ext
2602 echo "$as_me:2602: result: `eval echo '${'$as_ac_Header'}'`" >&5
2603 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2604 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2605 cat >>confdefs.h <<EOF
2606 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2609 else
2611 { echo "$as_me:2611: WARNING: svgalib found but headers are missing!!" >&5
2612 echo "$as_me: WARNING: svgalib found but headers are missing!!" >&2;}
2613 with_svgalib=no
2616 done
2618 else
2619 with_svgalib=no
2624 if test "$with_sdl" != "no" ; then
2625 # Extract the first word of "sdl-config", so it can be a program name with args.
2626 set dummy sdl-config; ac_word=$2
2627 echo "$as_me:2627: checking for $ac_word" >&5
2628 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2629 if test "${ac_cv_prog_SDL_CONFIG+set}" = set; then
2630 echo $ECHO_N "(cached) $ECHO_C" >&6
2631 else
2632 if test -n "$SDL_CONFIG"; then
2633 ac_cv_prog_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test.
2634 else
2635 ac_save_IFS=$IFS; IFS=$ac_path_separator
2636 ac_dummy="$PATH"
2637 for ac_dir in $ac_dummy; do
2638 IFS=$ac_save_IFS
2639 test -z "$ac_dir" && ac_dir=.
2640 $as_executable_p "$ac_dir/$ac_word" || continue
2641 ac_cv_prog_SDL_CONFIG="yes"
2642 echo "$as_me:2642: found $ac_dir/$ac_word" >&5
2643 break
2644 done
2648 SDL_CONFIG=$ac_cv_prog_SDL_CONFIG
2649 if test -n "$SDL_CONFIG"; then
2650 echo "$as_me:2650: result: $SDL_CONFIG" >&5
2651 echo "${ECHO_T}$SDL_CONFIG" >&6
2652 else
2653 echo "$as_me:2653: result: no" >&5
2654 echo "${ECHO_T}no" >&6
2657 if test "$SDL_CONFIG" ; then
2658 SDL_LIBS="`sdl-config --libs`"
2659 SDL_CFLAGS="`sdl-config --cflags`"
2660 old_incs="$INCS"
2661 INCS="$INCS $SDL_CFLAGS"
2662 echo "$as_me:2662: checking for SDL_Init in -lSDL" >&5
2663 echo $ECHO_N "checking for SDL_Init in -lSDL... $ECHO_C" >&6
2664 if test "${ac_cv_lib_SDL_SDL_Init+set}" = set; then
2665 echo $ECHO_N "(cached) $ECHO_C" >&6
2666 else
2667 ac_check_lib_save_LIBS=$LIBS
2668 LIBS="-lSDL $SDL_LIBS $LIBS"
2669 cat >conftest.$ac_ext <<_ACEOF
2670 #line 2670 "configure"
2671 #include "confdefs.h"
2673 /* Override any gcc2 internal prototype to avoid an error. */
2674 #ifdef __cplusplus
2675 extern "C"
2676 #endif
2677 /* We use char because int might match the return type of a gcc2
2678 builtin and then its argument prototype would still apply. */
2679 char SDL_Init ();
2681 main ()
2683 SDL_Init ();
2685 return 0;
2687 _ACEOF
2688 rm -f conftest.$ac_objext conftest$ac_exeext
2689 if { (eval echo "$as_me:2689: \"$ac_link\"") >&5
2690 (eval $ac_link) 2>&5
2691 ac_status=$?
2692 echo "$as_me:2692: \$? = $ac_status" >&5
2693 (exit $ac_status); } &&
2694 { ac_try='test -s conftest$ac_exeext'
2695 { (eval echo "$as_me:2695: \"$ac_try\"") >&5
2696 (eval $ac_try) 2>&5
2697 ac_status=$?
2698 echo "$as_me:2698: \$? = $ac_status" >&5
2699 (exit $ac_status); }; }; then
2700 ac_cv_lib_SDL_SDL_Init=yes
2701 else
2702 echo "$as_me: failed program was:" >&5
2703 cat conftest.$ac_ext >&5
2704 ac_cv_lib_SDL_SDL_Init=no
2706 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2707 LIBS=$ac_check_lib_save_LIBS
2709 echo "$as_me:2709: result: $ac_cv_lib_SDL_SDL_Init" >&5
2710 echo "${ECHO_T}$ac_cv_lib_SDL_SDL_Init" >&6
2711 if test $ac_cv_lib_SDL_SDL_Init = yes; then
2713 for ac_header in SDL/SDL.h
2715 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2716 echo "$as_me:2716: checking for $ac_header" >&5
2717 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2718 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2719 echo $ECHO_N "(cached) $ECHO_C" >&6
2720 else
2721 cat >conftest.$ac_ext <<_ACEOF
2722 #line 2722 "configure"
2723 #include "confdefs.h"
2724 #include <$ac_header>
2725 _ACEOF
2726 if { (eval echo "$as_me:2726: \"$ac_cpp conftest.$ac_ext\"") >&5
2727 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2728 ac_status=$?
2729 egrep -v '^ *\+' conftest.er1 >conftest.err
2730 rm -f conftest.er1
2731 cat conftest.err >&5
2732 echo "$as_me:2732: \$? = $ac_status" >&5
2733 (exit $ac_status); } >/dev/null; then
2734 if test -s conftest.err; then
2735 ac_cpp_err=$ac_c_preproc_warn_flag
2736 else
2737 ac_cpp_err=
2739 else
2740 ac_cpp_err=yes
2742 if test -z "$ac_cpp_err"; then
2743 eval "$as_ac_Header=yes"
2744 else
2745 echo "$as_me: failed program was:" >&5
2746 cat conftest.$ac_ext >&5
2747 eval "$as_ac_Header=no"
2749 rm -f conftest.err conftest.$ac_ext
2751 echo "$as_me:2751: result: `eval echo '${'$as_ac_Header'}'`" >&5
2752 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2753 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2754 cat >>confdefs.h <<EOF
2755 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2758 else
2760 { echo "$as_me:2760: WARNING: SDL found but headers are missing!!" >&5
2761 echo "$as_me: WARNING: SDL found but headers are missing!!" >&2;}
2762 with_sdl=no
2765 done
2767 else
2768 with_sdl=no
2771 INCS="$old_incs"
2772 else
2773 with_sdl=no
2777 echo "$as_me:2777: checking for X" >&5
2778 echo $ECHO_N "checking for X... $ECHO_C" >&6
2780 # Check whether --with-x or --without-x was given.
2781 if test "${with_x+set}" = set; then
2782 withval="$with_x"
2785 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
2786 if test "x$with_x" = xno; then
2787 # The user explicitly disabled X.
2788 have_x=disabled
2789 else
2790 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
2791 # Both variables are already set.
2792 have_x=yes
2793 else
2794 if test "${ac_cv_have_x+set}" = set; then
2795 echo $ECHO_N "(cached) $ECHO_C" >&6
2796 else
2797 # One or both of the vars are not set, and there is no cached value.
2798 ac_x_includes=no ac_x_libraries=no
2799 rm -fr conftest.dir
2800 if mkdir conftest.dir; then
2801 cd conftest.dir
2802 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
2803 cat >Imakefile <<'EOF'
2804 acfindx:
2805 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
2807 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
2808 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2809 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
2810 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
2811 for ac_extension in a so sl; do
2812 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
2813 test -f $ac_im_libdir/libX11.$ac_extension; then
2814 ac_im_usrlibdir=$ac_im_libdir; break
2816 done
2817 # Screen out bogus values from the imake configuration. They are
2818 # bogus both because they are the default anyway, and because
2819 # using them would break gcc on systems where it needs fixed includes.
2820 case $ac_im_incroot in
2821 /usr/include) ;;
2822 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
2823 esac
2824 case $ac_im_usrlibdir in
2825 /usr/lib | /lib) ;;
2826 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
2827 esac
2829 cd ..
2830 rm -fr conftest.dir
2833 # Standard set of common directories for X headers.
2834 # Check X11 before X11Rn because it is often a symlink to the current release.
2835 ac_x_header_dirs='
2836 /usr/X11/include
2837 /usr/X11R6/include
2838 /usr/X11R5/include
2839 /usr/X11R4/include
2841 /usr/include/X11
2842 /usr/include/X11R6
2843 /usr/include/X11R5
2844 /usr/include/X11R4
2846 /usr/local/X11/include
2847 /usr/local/X11R6/include
2848 /usr/local/X11R5/include
2849 /usr/local/X11R4/include
2851 /usr/local/include/X11
2852 /usr/local/include/X11R6
2853 /usr/local/include/X11R5
2854 /usr/local/include/X11R4
2856 /usr/X386/include
2857 /usr/x386/include
2858 /usr/XFree86/include/X11
2860 /usr/include
2861 /usr/local/include
2862 /usr/unsupported/include
2863 /usr/athena/include
2864 /usr/local/x11r5/include
2865 /usr/lpp/Xamples/include
2867 /usr/openwin/include
2868 /usr/openwin/share/include'
2870 if test "$ac_x_includes" = no; then
2871 # Guess where to find include files, by looking for Intrinsic.h.
2872 # First, try using that file with no special directory specified.
2873 cat >conftest.$ac_ext <<_ACEOF
2874 #line 2874 "configure"
2875 #include "confdefs.h"
2876 #include <X11/Intrinsic.h>
2877 _ACEOF
2878 if { (eval echo "$as_me:2878: \"$ac_cpp conftest.$ac_ext\"") >&5
2879 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2880 ac_status=$?
2881 egrep -v '^ *\+' conftest.er1 >conftest.err
2882 rm -f conftest.er1
2883 cat conftest.err >&5
2884 echo "$as_me:2884: \$? = $ac_status" >&5
2885 (exit $ac_status); } >/dev/null; then
2886 if test -s conftest.err; then
2887 ac_cpp_err=$ac_c_preproc_warn_flag
2888 else
2889 ac_cpp_err=
2891 else
2892 ac_cpp_err=yes
2894 if test -z "$ac_cpp_err"; then
2895 # We can compile using X headers with no special include directory.
2896 ac_x_includes=
2897 else
2898 echo "$as_me: failed program was:" >&5
2899 cat conftest.$ac_ext >&5
2900 for ac_dir in $ac_x_header_dirs; do
2901 if test -r "$ac_dir/X11/Intrinsic.h"; then
2902 ac_x_includes=$ac_dir
2903 break
2905 done
2907 rm -f conftest.err conftest.$ac_ext
2908 fi # $ac_x_includes = no
2910 if test "$ac_x_libraries" = no; then
2911 # Check for the libraries.
2912 # See if we find them without any special options.
2913 # Don't add to $LIBS permanently.
2914 ac_save_LIBS=$LIBS
2915 LIBS="-lXt $LIBS"
2916 cat >conftest.$ac_ext <<_ACEOF
2917 #line 2917 "configure"
2918 #include "confdefs.h"
2919 #include <X11/Intrinsic.h>
2921 main ()
2923 XtMalloc (0)
2925 return 0;
2927 _ACEOF
2928 rm -f conftest.$ac_objext conftest$ac_exeext
2929 if { (eval echo "$as_me:2929: \"$ac_link\"") >&5
2930 (eval $ac_link) 2>&5
2931 ac_status=$?
2932 echo "$as_me:2932: \$? = $ac_status" >&5
2933 (exit $ac_status); } &&
2934 { ac_try='test -s conftest$ac_exeext'
2935 { (eval echo "$as_me:2935: \"$ac_try\"") >&5
2936 (eval $ac_try) 2>&5
2937 ac_status=$?
2938 echo "$as_me:2938: \$? = $ac_status" >&5
2939 (exit $ac_status); }; }; then
2940 LIBS=$ac_save_LIBS
2941 # We can link X programs with no special library path.
2942 ac_x_libraries=
2943 else
2944 echo "$as_me: failed program was:" >&5
2945 cat conftest.$ac_ext >&5
2946 LIBS=$ac_save_LIBS
2947 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
2949 # Don't even attempt the hair of trying to link an X program!
2950 for ac_extension in a so sl; do
2951 if test -r $ac_dir/libXt.$ac_extension; then
2952 ac_x_libraries=$ac_dir
2953 break 2
2955 done
2956 done
2958 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2959 fi # $ac_x_libraries = no
2961 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
2962 # Didn't find X anywhere. Cache the known absence of X.
2963 ac_cv_have_x="have_x=no"
2964 else
2965 # Record where we found X for the cache.
2966 ac_cv_have_x="have_x=yes \
2967 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
2972 eval "$ac_cv_have_x"
2973 fi # $with_x != no
2975 if test "$have_x" != yes; then
2976 echo "$as_me:2976: result: $have_x" >&5
2977 echo "${ECHO_T}$have_x" >&6
2978 no_x=yes
2979 else
2980 # If each of the values was on the command line, it overrides each guess.
2981 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
2982 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
2983 # Update the cache value to reflect the command line values.
2984 ac_cv_have_x="have_x=yes \
2985 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
2986 echo "$as_me:2986: result: libraries $x_libraries, headers $x_includes" >&5
2987 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
2990 if test "$no_x" != "yes" ; then
2991 with_x=yes
2993 echo "$as_me:2993: checking for XShmCreateImage in -lXext" >&5
2994 echo $ECHO_N "checking for XShmCreateImage in -lXext... $ECHO_C" >&6
2995 if test "${ac_cv_lib_Xext_XShmCreateImage+set}" = set; then
2996 echo $ECHO_N "(cached) $ECHO_C" >&6
2997 else
2998 ac_check_lib_save_LIBS=$LIBS
2999 LIBS="-lXext $LIBS"
3000 cat >conftest.$ac_ext <<_ACEOF
3001 #line 3001 "configure"
3002 #include "confdefs.h"
3004 /* Override any gcc2 internal prototype to avoid an error. */
3005 #ifdef __cplusplus
3006 extern "C"
3007 #endif
3008 /* We use char because int might match the return type of a gcc2
3009 builtin and then its argument prototype would still apply. */
3010 char XShmCreateImage ();
3012 main ()
3014 XShmCreateImage ();
3016 return 0;
3018 _ACEOF
3019 rm -f conftest.$ac_objext conftest$ac_exeext
3020 if { (eval echo "$as_me:3020: \"$ac_link\"") >&5
3021 (eval $ac_link) 2>&5
3022 ac_status=$?
3023 echo "$as_me:3023: \$? = $ac_status" >&5
3024 (exit $ac_status); } &&
3025 { ac_try='test -s conftest$ac_exeext'
3026 { (eval echo "$as_me:3026: \"$ac_try\"") >&5
3027 (eval $ac_try) 2>&5
3028 ac_status=$?
3029 echo "$as_me:3029: \$? = $ac_status" >&5
3030 (exit $ac_status); }; }; then
3031 ac_cv_lib_Xext_XShmCreateImage=yes
3032 else
3033 echo "$as_me: failed program was:" >&5
3034 cat conftest.$ac_ext >&5
3035 ac_cv_lib_Xext_XShmCreateImage=no
3037 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3038 LIBS=$ac_check_lib_save_LIBS
3040 echo "$as_me:3040: result: $ac_cv_lib_Xext_XShmCreateImage" >&5
3041 echo "${ECHO_T}$ac_cv_lib_Xext_XShmCreateImage" >&6
3042 if test $ac_cv_lib_Xext_XShmCreateImage = yes; then
3043 cat >>confdefs.h <<EOF
3044 #define HAVE_LIBXEXT 1
3047 LIBS="-lXext $LIBS"
3051 for ac_header in sys/ipc.h sys/shm.h X11/extensions/XShm.h
3053 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3054 echo "$as_me:3054: checking for $ac_header" >&5
3055 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3056 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3057 echo $ECHO_N "(cached) $ECHO_C" >&6
3058 else
3059 cat >conftest.$ac_ext <<_ACEOF
3060 #line 3060 "configure"
3061 #include "confdefs.h"
3062 #include <$ac_header>
3063 _ACEOF
3064 if { (eval echo "$as_me:3064: \"$ac_cpp conftest.$ac_ext\"") >&5
3065 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3066 ac_status=$?
3067 egrep -v '^ *\+' conftest.er1 >conftest.err
3068 rm -f conftest.er1
3069 cat conftest.err >&5
3070 echo "$as_me:3070: \$? = $ac_status" >&5
3071 (exit $ac_status); } >/dev/null; then
3072 if test -s conftest.err; then
3073 ac_cpp_err=$ac_c_preproc_warn_flag
3074 else
3075 ac_cpp_err=
3077 else
3078 ac_cpp_err=yes
3080 if test -z "$ac_cpp_err"; then
3081 eval "$as_ac_Header=yes"
3082 else
3083 echo "$as_me: failed program was:" >&5
3084 cat conftest.$ac_ext >&5
3085 eval "$as_ac_Header=no"
3087 rm -f conftest.err conftest.$ac_ext
3089 echo "$as_me:3089: result: `eval echo '${'$as_ac_Header'}'`" >&5
3090 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3091 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3092 cat >>confdefs.h <<EOF
3093 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3097 done
3099 test "$x_includes" && XINCS="-I$x_includes"
3100 test "$x_libraries" && XLIBS="-L$x_libraries"
3101 else
3102 with_x=no
3105 test "$with_x" = "no" || TARGETS="$TARGETS xgnuboy"
3106 test "$with_fb" = "no" || TARGETS="$TARGETS fbgnuboy"
3107 test "$with_svgalib" = "no" || TARGETS="$TARGETS sgnuboy"
3108 test "$with_sdl" = "no" || TARGETS="$TARGETS sdlgnuboy"
3110 # Check whether --enable-warnings or --disable-warnings was given.
3111 if test "${enable_warnings+set}" = set; then
3112 enableval="$enable_warnings"
3114 else
3115 enable_warnings=yes
3117 # Check whether --enable-debug or --disable-debug was given.
3118 if test "${enable_debug+set}" = set; then
3119 enableval="$enable_debug"
3122 # Check whether --enable-profile or --disable-profile was given.
3123 if test "${enable_profile+set}" = set; then
3124 enableval="$enable_profile"
3127 # Check whether --enable-arch or --disable-arch was given.
3128 if test "${enable_arch+set}" = set; then
3129 enableval="$enable_arch"
3131 else
3132 enable_arch=yes
3134 # Check whether --enable-optimize or --disable-optimize was given.
3135 if test "${enable_optimize+set}" = set; then
3136 enableval="$enable_optimize"
3138 else
3139 enable_optimize=yes
3141 # Check whether --enable-asm or --disable-asm was given.
3142 if test "${enable_asm+set}" = set; then
3143 enableval="$enable_asm"
3145 else
3146 enable_asm=yes
3149 if test "$enable_warnings" = yes ; then
3150 case "$CC" in *gcc*)
3151 echo "$as_me:3151: result: enabling selected compiler warnings" >&5
3152 echo "${ECHO_T}enabling selected compiler warnings" >&6
3153 CFLAGS="$CFLAGS -ansi -pedantic -Wall" ;;
3155 echo "$as_me:3155: result: disabling warnings for non-gcc compiler" >&5
3156 echo "${ECHO_T}disabling warnings for non-gcc compiler" >&6 ;;
3157 esac
3160 if test "$enable_debug" = yes ; then
3161 echo "$as_me:3161: result: including debugging symbols" >&5
3162 echo "${ECHO_T}including debugging symbols" >&6
3163 CFLAGS="$CFLAGS -g"
3166 if test "$enable_profile" = yes ; then
3167 echo "$as_me:3167: result: enabling performance profiling" >&5
3168 echo "${ECHO_T}enabling performance profiling" >&6
3169 CFLAGS="$CFLAGS -pg"
3172 if test "$enable_arch" = yes ; then
3173 if test `uname -s` = Linux -a -f /proc/cpuinfo ; then
3174 case `grep "model name" /proc/cpuinfo` in
3175 *AMD-K6*) enable_arch=k6 ;;
3176 *Pentium*Pro*|*Pentium\ I*|*Klamath*) enable_arch=i686 ;;
3177 *Pentium*|*586*) enable_arch=i586 ;;
3178 *486*) enable_arch=i486 ;;
3179 *386*) enable_arch=i386 ;;
3180 *) enable_arch=no ;;
3181 esac
3182 else
3183 enable_arch=no
3184 #case `uname -m` in
3185 #i686) enable_arch=i686 ;;
3186 #i586) enable_arch=i586 ;;
3187 #i486) enable_arch=i486 ;;
3188 #i386) enable_arch=i386 ;;
3189 #*) enable_arch=no ;;
3190 #esac
3194 case `$CC --version` in
3196 2.9*|3.*)
3198 case "$enable_arch" in
3199 k6|i686|i586|i486|i386) CFLAGS="$CFLAGS -march=$enable_arch" ;;
3200 no) ;;
3201 *) { echo "$as_me:3201: WARNING: unknown architecture $enable_arch" >&5
3202 echo "$as_me: WARNING: unknown architecture $enable_arch" >&2;} ;;
3203 esac ;;
3207 case "$enable_arch" in
3208 k6|i686|i586) { echo "$as_me:3208: WARNING: your compiler is too old to support $enable_arch optimizations" >&5
3209 echo "$as_me: WARNING: your compiler is too old to support $enable_arch optimizations" >&2;} ;;
3210 i486) CFLAGS="$CFLAGS -m486" ;;
3211 i386) CFLAGS="$CFLAGS -m386" ;;
3212 no) ;;
3213 *) { echo "$as_me:3213: WARNING: unknown architecture $enable_arch" >&5
3214 echo "$as_me: WARNING: unknown architecture $enable_arch" >&2;} ;;
3215 esac ;;
3217 esac
3219 case "$enable_optimize" in
3220 yes|full)
3221 echo "$as_me:3221: result: producing heavily optimized code" >&5
3222 echo "${ECHO_T}producing heavily optimized code" >&6
3224 CFLAGS="$CFLAGS -O3"
3226 case `uname -m` in
3227 i?86) CFLAGS="$CFLAGS -DALLOW_UNALIGNED_IO" ;;
3228 esac
3230 #case `$CC --version` in
3231 #2.9*|3.*)
3232 CFLAGS="$CFLAGS -fstrength-reduce -fthread-jumps \
3233 -fcse-follow-jumps -fcse-skip-blocks -frerun-cse-after-loop \
3234 -fexpensive-optimizations -fforce-addr"
3237 #AC_MSG_WARN(your compiler is too old for fancy optimizations)
3239 #esac
3241 if test "$enable_debug" != yes -a "$enable_profile" != yes ; then
3242 CFLAGS="$CFLAGS -fomit-frame-pointer"
3243 LDFLAGS="$LDFLAGS -s"
3244 fi ;;
3246 low)
3248 echo "$as_me:3248: result: using minimal optimizations" >&5
3249 echo "${ECHO_T}using minimal optimizations" >&6
3250 CFLAGS="$CFLAGS -O3" ;;
3252 esac
3254 if test "$enable_asm" = yes ; then
3255 case `uname -m` in
3256 i?86)
3257 echo "$as_me:3257: result: using optimized i386 cores" >&5
3258 echo "${ECHO_T}using optimized i386 cores" >&6
3259 ASM="-DUSE_ASM -I./asm/i386" ; ASM_OBJS="asm/i386/cpu.o asm/i386/lcd.o asm/i386/refresh.s" ;;
3261 echo "$as_me:3261: result: no optimized asm core available for \`uname -m\`" >&5
3262 echo "${ECHO_T}no optimized asm core available for \`uname -m\`" >&6 ;;
3263 esac
3266 ac_config_headers="$ac_config_headers sys/nix/config.h"
3268 ac_config_files="$ac_config_files Makefile"
3269 cat >confcache <<\_ACEOF
3270 # This file is a shell script that caches the results of configure
3271 # tests run on this system so they can be shared between configure
3272 # scripts and configure runs, see configure's option --config-cache.
3273 # It is not useful on other systems. If it contains results you don't
3274 # want to keep, you may remove or edit it.
3276 # config.status only pays attention to the cache file if you give it
3277 # the --recheck option to rerun configure.
3279 # `ac_cv_env_foo' variables (set or unset) will be overriden when
3280 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3281 # following values.
3283 _ACEOF
3285 # The following way of writing the cache mishandles newlines in values,
3286 # but we know of no workaround that is simple, portable, and efficient.
3287 # So, don't put newlines in cache variables' values.
3288 # Ultrix sh set writes to stderr and can't be redirected directly,
3289 # and sets the high bit in the cache file unless we assign to the vars.
3291 (set) 2>&1 |
3292 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3293 *ac_space=\ *)
3294 # `set' does not quote correctly, so add quotes (double-quote
3295 # substitution turns \\\\ into \\, and sed turns \\ into \).
3296 sed -n \
3297 "s/'/'\\\\''/g;
3298 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3301 # `set' quotes correctly as required by POSIX, so do not add quotes.
3302 sed -n \
3303 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3305 esac;
3307 sed '
3308 t clear
3309 : clear
3310 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3311 t end
3312 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3313 : end' >>confcache
3314 if cmp -s $cache_file confcache; then :; else
3315 if test -w $cache_file; then
3316 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3317 cat confcache >$cache_file
3318 else
3319 echo "not updating unwritable cache $cache_file"
3322 rm -f confcache
3324 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3325 # Let make expand exec_prefix.
3326 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3328 # VPATH may cause trouble with some makes, so we remove $(srcdir),
3329 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
3330 # trailing colons and then remove the whole line if VPATH becomes empty
3331 # (actually we leave an empty line to preserve line numbers).
3332 if test "x$srcdir" = x.; then
3333 ac_vpsub='/^[ ]*VPATH[ ]*=/{
3334 s/:*\$(srcdir):*/:/;
3335 s/:*\${srcdir}:*/:/;
3336 s/:*@srcdir@:*/:/;
3337 s/^\([^=]*=[ ]*\):*/\1/;
3338 s/:*$//;
3339 s/^[^=]*=[ ]*$//;
3343 DEFS=-DHAVE_CONFIG_H
3345 : ${CONFIG_STATUS=./config.status}
3346 ac_clean_files_save=$ac_clean_files
3347 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3348 { echo "$as_me:3348: creating $CONFIG_STATUS" >&5
3349 echo "$as_me: creating $CONFIG_STATUS" >&6;}
3350 cat >$CONFIG_STATUS <<_ACEOF
3351 #! $SHELL
3352 # Generated automatically by configure.
3353 # Run this file to recreate the current configuration.
3354 # Compiler output produced by configure, useful for debugging
3355 # configure, is in config.log if it exists.
3357 debug=false
3358 SHELL=\${CONFIG_SHELL-$SHELL}
3359 ac_cs_invocation="\$0 \$@"
3361 _ACEOF
3363 cat >>$CONFIG_STATUS <<\_ACEOF
3364 # Be Bourne compatible
3365 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
3366 emulate sh
3367 NULLCMD=:
3368 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
3369 set -o posix
3372 # Name of the executable.
3373 as_me=`echo "$0" |sed 's,.*[\\/],,'`
3375 if expr a : '\(a\)' >/dev/null 2>&1; then
3376 as_expr=expr
3377 else
3378 as_expr=false
3381 rm -f conf$$ conf$$.exe conf$$.file
3382 echo >conf$$.file
3383 if ln -s conf$$.file conf$$ 2>/dev/null; then
3384 # We could just check for DJGPP; but this test a) works b) is more generic
3385 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
3386 if test -f conf$$.exe; then
3387 # Don't use ln at all; we don't have any links
3388 as_ln_s='cp -p'
3389 else
3390 as_ln_s='ln -s'
3392 elif ln conf$$.file conf$$ 2>/dev/null; then
3393 as_ln_s=ln
3394 else
3395 as_ln_s='cp -p'
3397 rm -f conf$$ conf$$.exe conf$$.file
3399 as_executable_p="test -f"
3401 # Support unset when possible.
3402 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
3403 as_unset=unset
3404 else
3405 as_unset=false
3408 # NLS nuisances.
3409 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
3410 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
3411 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
3412 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
3413 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
3414 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
3415 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
3416 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
3418 # IFS
3419 # We need space, tab and new line, in precisely that order.
3420 as_nl='
3422 IFS=" $as_nl"
3424 # CDPATH.
3425 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
3427 exec 6>&1
3429 _ACEOF
3431 # Files that config.status was made for.
3432 if test -n "$ac_config_files"; then
3433 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
3436 if test -n "$ac_config_headers"; then
3437 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
3440 if test -n "$ac_config_links"; then
3441 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
3444 if test -n "$ac_config_commands"; then
3445 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
3448 cat >>$CONFIG_STATUS <<\EOF
3450 ac_cs_usage="\
3451 \`$as_me' instantiates files from templates according to the
3452 current configuration.
3454 Usage: $0 [OPTIONS] [FILE]...
3456 -h, --help print this help, then exit
3457 -V, --version print version number, then exit
3458 -d, --debug don't remove temporary files
3459 --recheck update $as_me by reconfiguring in the same conditions
3460 --file=FILE[:TEMPLATE]
3461 instantiate the configuration file FILE
3462 --header=FILE[:TEMPLATE]
3463 instantiate the configuration header FILE
3465 Configuration files:
3466 $config_files
3468 Configuration headers:
3469 $config_headers
3471 Report bugs to <bug-autoconf@gnu.org>."
3474 cat >>$CONFIG_STATUS <<EOF
3475 ac_cs_version="\\
3476 config.status
3477 configured by $0, generated by GNU Autoconf 2.52,
3478 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
3480 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
3481 Free Software Foundation, Inc.
3482 This config.status script is free software; the Free Software Foundation
3483 gives unlimited permission to copy, distribute and modify it."
3484 srcdir=$srcdir
3485 INSTALL="$INSTALL"
3488 cat >>$CONFIG_STATUS <<\EOF
3489 # If no file are specified by the user, then we need to provide default
3490 # value. By we need to know if files were specified by the user.
3491 ac_need_defaults=:
3492 while test $# != 0
3494 case $1 in
3495 --*=*)
3496 ac_option=`expr "x$1" : 'x\([^=]*\)='`
3497 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
3498 shift
3499 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
3500 shift
3502 -*);;
3503 *) # This is not an option, so the user has probably given explicit
3504 # arguments.
3505 ac_need_defaults=false;;
3506 esac
3508 case $1 in
3509 # Handling of the options.
3511 cat >>$CONFIG_STATUS <<EOF
3512 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3513 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
3514 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
3516 cat >>$CONFIG_STATUS <<\EOF
3517 --version | --vers* | -V )
3518 echo "$ac_cs_version"; exit 0 ;;
3519 --he | --h)
3520 # Conflict between --help and --header
3521 { { echo "$as_me:3521: error: ambiguous option: $1
3522 Try \`$0 --help' for more information." >&5
3523 echo "$as_me: error: ambiguous option: $1
3524 Try \`$0 --help' for more information." >&2;}
3525 { (exit 1); exit 1; }; };;
3526 --help | --hel | -h )
3527 echo "$ac_cs_usage"; exit 0 ;;
3528 --debug | --d* | -d )
3529 debug=: ;;
3530 --file | --fil | --fi | --f )
3531 shift
3532 CONFIG_FILES="$CONFIG_FILES $1"
3533 ac_need_defaults=false;;
3534 --header | --heade | --head | --hea )
3535 shift
3536 CONFIG_HEADERS="$CONFIG_HEADERS $1"
3537 ac_need_defaults=false;;
3539 # This is an error.
3540 -*) { { echo "$as_me:3540: error: unrecognized option: $1
3541 Try \`$0 --help' for more information." >&5
3542 echo "$as_me: error: unrecognized option: $1
3543 Try \`$0 --help' for more information." >&2;}
3544 { (exit 1); exit 1; }; } ;;
3546 *) ac_config_targets="$ac_config_targets $1" ;;
3548 esac
3549 shift
3550 done
3552 exec 5>>config.log
3553 cat >&5 << _ACEOF
3555 ## ----------------------- ##
3556 ## Running config.status. ##
3557 ## ----------------------- ##
3559 This file was extended by $as_me 2.52, executed with
3560 CONFIG_FILES = $CONFIG_FILES
3561 CONFIG_HEADERS = $CONFIG_HEADERS
3562 CONFIG_LINKS = $CONFIG_LINKS
3563 CONFIG_COMMANDS = $CONFIG_COMMANDS
3564 > $ac_cs_invocation
3565 on `(hostname || uname -n) 2>/dev/null | sed 1q`
3567 _ACEOF
3570 cat >>$CONFIG_STATUS <<\EOF
3571 for ac_config_target in $ac_config_targets
3573 case "$ac_config_target" in
3574 # Handling of arguments.
3575 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
3576 "sys/nix/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS sys/nix/config.h" ;;
3577 *) { { echo "$as_me:3577: error: invalid argument: $ac_config_target" >&5
3578 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
3579 { (exit 1); exit 1; }; };;
3580 esac
3581 done
3583 # If the user did not use the arguments to specify the items to instantiate,
3584 # then the envvar interface is used. Set only those that are not.
3585 # We use the long form for the default assignment because of an extremely
3586 # bizarre bug on SunOS 4.1.3.
3587 if $ac_need_defaults; then
3588 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
3589 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
3592 # Create a temporary directory, and hook for its removal unless debugging.
3593 $debug ||
3595 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3596 trap '{ (exit 1); exit 1; }' 1 2 13 15
3599 # Create a (secure) tmp directory for tmp files.
3600 : ${TMPDIR=/tmp}
3602 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
3603 test -n "$tmp" && test -d "$tmp"
3604 } ||
3606 tmp=$TMPDIR/cs$$-$RANDOM
3607 (umask 077 && mkdir $tmp)
3608 } ||
3610 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
3611 { (exit 1); exit 1; }
3616 cat >>$CONFIG_STATUS <<EOF
3619 # CONFIG_FILES section.
3622 # No need to generate the scripts if there are no CONFIG_FILES.
3623 # This happens for instance when ./config.status config.h
3624 if test -n "\$CONFIG_FILES"; then
3625 # Protect against being on the right side of a sed subst in config.status.
3626 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
3627 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
3628 s,@SHELL@,$SHELL,;t t
3629 s,@exec_prefix@,$exec_prefix,;t t
3630 s,@prefix@,$prefix,;t t
3631 s,@program_transform_name@,$program_transform_name,;t t
3632 s,@bindir@,$bindir,;t t
3633 s,@sbindir@,$sbindir,;t t
3634 s,@libexecdir@,$libexecdir,;t t
3635 s,@datadir@,$datadir,;t t
3636 s,@sysconfdir@,$sysconfdir,;t t
3637 s,@sharedstatedir@,$sharedstatedir,;t t
3638 s,@localstatedir@,$localstatedir,;t t
3639 s,@libdir@,$libdir,;t t
3640 s,@includedir@,$includedir,;t t
3641 s,@oldincludedir@,$oldincludedir,;t t
3642 s,@infodir@,$infodir,;t t
3643 s,@mandir@,$mandir,;t t
3644 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
3645 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
3646 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
3647 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
3648 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
3649 s,@build_alias@,$build_alias,;t t
3650 s,@host_alias@,$host_alias,;t t
3651 s,@target_alias@,$target_alias,;t t
3652 s,@ECHO_C@,$ECHO_C,;t t
3653 s,@ECHO_N@,$ECHO_N,;t t
3654 s,@ECHO_T@,$ECHO_T,;t t
3655 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
3656 s,@DEFS@,$DEFS,;t t
3657 s,@LIBS@,$LIBS,;t t
3658 s,@CC@,$CC,;t t
3659 s,@CFLAGS@,$CFLAGS,;t t
3660 s,@LDFLAGS@,$LDFLAGS,;t t
3661 s,@CPPFLAGS@,$CPPFLAGS,;t t
3662 s,@ac_ct_CC@,$ac_ct_CC,;t t
3663 s,@EXEEXT@,$EXEEXT,;t t
3664 s,@OBJEXT@,$OBJEXT,;t t
3665 s,@CPP@,$CPP,;t t
3666 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
3667 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
3668 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
3669 s,@SDL_CONFIG@,$SDL_CONFIG,;t t
3670 s,@SYS_DEFS@,$SYS_DEFS,;t t
3671 s,@ENDIAN@,$ENDIAN,;t t
3672 s,@SOUND@,$SOUND,;t t
3673 s,@JOY@,$JOY,;t t
3674 s,@ASM@,$ASM,;t t
3675 s,@ASM_OBJS@,$ASM_OBJS,;t t
3676 s,@FB_OBJS@,$FB_OBJS,;t t
3677 s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
3678 s,@SDL_LIBS@,$SDL_LIBS,;t t
3679 s,@TARGETS@,$TARGETS,;t t
3680 s,@XINCS@,$XINCS,;t t
3681 s,@XLIBS@,$XLIBS,;t t
3682 CEOF
3686 cat >>$CONFIG_STATUS <<\EOF
3687 # Split the substitutions into bite-sized pieces for seds with
3688 # small command number limits, like on Digital OSF/1 and HP-UX.
3689 ac_max_sed_lines=48
3690 ac_sed_frag=1 # Number of current file.
3691 ac_beg=1 # First line for current file.
3692 ac_end=$ac_max_sed_lines # Line after last line for current file.
3693 ac_more_lines=:
3694 ac_sed_cmds=
3695 while $ac_more_lines; do
3696 if test $ac_beg -gt 1; then
3697 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
3698 else
3699 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
3701 if test ! -s $tmp/subs.frag; then
3702 ac_more_lines=false
3703 else
3704 # The purpose of the label and of the branching condition is to
3705 # speed up the sed processing (if there are no `@' at all, there
3706 # is no need to browse any of the substitutions).
3707 # These are the two extra sed commands mentioned above.
3708 (echo ':t
3709 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
3710 if test -z "$ac_sed_cmds"; then
3711 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
3712 else
3713 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
3715 ac_sed_frag=`expr $ac_sed_frag + 1`
3716 ac_beg=$ac_end
3717 ac_end=`expr $ac_end + $ac_max_sed_lines`
3719 done
3720 if test -z "$ac_sed_cmds"; then
3721 ac_sed_cmds=cat
3723 fi # test -n "$CONFIG_FILES"
3726 cat >>$CONFIG_STATUS <<\EOF
3727 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
3728 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3729 case $ac_file in
3730 - | *:- | *:-:* ) # input from stdin
3731 cat >$tmp/stdin
3732 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
3733 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3734 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
3735 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3736 * ) ac_file_in=$ac_file.in ;;
3737 esac
3739 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
3740 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3741 X"$ac_file" : 'X\(//\)[^/]' \| \
3742 X"$ac_file" : 'X\(//\)$' \| \
3743 X"$ac_file" : 'X\(/\)' \| \
3744 . : '\(.\)' 2>/dev/null ||
3745 echo X"$ac_file" |
3746 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
3747 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
3748 /^X\(\/\/\)$/{ s//\1/; q; }
3749 /^X\(\/\).*/{ s//\1/; q; }
3750 s/.*/./; q'`
3751 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3752 { case "$ac_dir" in
3753 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
3754 *) as_incr_dir=.;;
3755 esac
3756 as_dummy="$ac_dir"
3757 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
3758 case $as_mkdir_dir in
3759 # Skip DOS drivespec
3760 ?:) as_incr_dir=$as_mkdir_dir ;;
3762 as_incr_dir=$as_incr_dir/$as_mkdir_dir
3763 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
3765 esac
3766 done; }
3768 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
3769 # A "../" for each directory in $ac_dir_suffix.
3770 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
3771 else
3772 ac_dir_suffix= ac_dots=
3775 case $srcdir in
3776 .) ac_srcdir=.
3777 if test -z "$ac_dots"; then
3778 ac_top_srcdir=.
3779 else
3780 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
3781 fi ;;
3782 [\\/]* | ?:[\\/]* )
3783 ac_srcdir=$srcdir$ac_dir_suffix;
3784 ac_top_srcdir=$srcdir ;;
3785 *) # Relative path.
3786 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
3787 ac_top_srcdir=$ac_dots$srcdir ;;
3788 esac
3790 case $INSTALL in
3791 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
3792 *) ac_INSTALL=$ac_dots$INSTALL ;;
3793 esac
3795 if test x"$ac_file" != x-; then
3796 { echo "$as_me:3796: creating $ac_file" >&5
3797 echo "$as_me: creating $ac_file" >&6;}
3798 rm -f "$ac_file"
3800 # Let's still pretend it is `configure' which instantiates (i.e., don't
3801 # use $as_me), people would be surprised to read:
3802 # /* config.h. Generated automatically by config.status. */
3803 configure_input="Generated automatically from `echo $ac_file_in |
3804 sed 's,.*/,,'` by configure."
3806 # First look for the input files in the build tree, otherwise in the
3807 # src tree.
3808 ac_file_inputs=`IFS=:
3809 for f in $ac_file_in; do
3810 case $f in
3811 -) echo $tmp/stdin ;;
3812 [\\/$]*)
3813 # Absolute (can't be DOS-style, as IFS=:)
3814 test -f "$f" || { { echo "$as_me:3814: error: cannot find input file: $f" >&5
3815 echo "$as_me: error: cannot find input file: $f" >&2;}
3816 { (exit 1); exit 1; }; }
3817 echo $f;;
3818 *) # Relative
3819 if test -f "$f"; then
3820 # Build tree
3821 echo $f
3822 elif test -f "$srcdir/$f"; then
3823 # Source tree
3824 echo $srcdir/$f
3825 else
3826 # /dev/null tree
3827 { { echo "$as_me:3827: error: cannot find input file: $f" >&5
3828 echo "$as_me: error: cannot find input file: $f" >&2;}
3829 { (exit 1); exit 1; }; }
3830 fi;;
3831 esac
3832 done` || { (exit 1); exit 1; }
3834 cat >>$CONFIG_STATUS <<EOF
3835 sed "$ac_vpsub
3836 $extrasub
3838 cat >>$CONFIG_STATUS <<\EOF
3840 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
3841 s,@configure_input@,$configure_input,;t t
3842 s,@srcdir@,$ac_srcdir,;t t
3843 s,@top_srcdir@,$ac_top_srcdir,;t t
3844 s,@INSTALL@,$ac_INSTALL,;t t
3845 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
3846 rm -f $tmp/stdin
3847 if test x"$ac_file" != x-; then
3848 mv $tmp/out $ac_file
3849 else
3850 cat $tmp/out
3851 rm -f $tmp/out
3854 done
3856 cat >>$CONFIG_STATUS <<\EOF
3859 # CONFIG_HEADER section.
3862 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3863 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3865 # ac_d sets the value in "#define NAME VALUE" lines.
3866 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3867 ac_dB='[ ].*$,\1#\2'
3868 ac_dC=' '
3869 ac_dD=',;t'
3870 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3871 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3872 ac_uB='$,\1#\2define\3'
3873 ac_uC=' '
3874 ac_uD=',;t'
3876 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
3877 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3878 case $ac_file in
3879 - | *:- | *:-:* ) # input from stdin
3880 cat >$tmp/stdin
3881 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
3882 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3883 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
3884 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3885 * ) ac_file_in=$ac_file.in ;;
3886 esac
3888 test x"$ac_file" != x- && { echo "$as_me:3888: creating $ac_file" >&5
3889 echo "$as_me: creating $ac_file" >&6;}
3891 # First look for the input files in the build tree, otherwise in the
3892 # src tree.
3893 ac_file_inputs=`IFS=:
3894 for f in $ac_file_in; do
3895 case $f in
3896 -) echo $tmp/stdin ;;
3897 [\\/$]*)
3898 # Absolute (can't be DOS-style, as IFS=:)
3899 test -f "$f" || { { echo "$as_me:3899: error: cannot find input file: $f" >&5
3900 echo "$as_me: error: cannot find input file: $f" >&2;}
3901 { (exit 1); exit 1; }; }
3902 echo $f;;
3903 *) # Relative
3904 if test -f "$f"; then
3905 # Build tree
3906 echo $f
3907 elif test -f "$srcdir/$f"; then
3908 # Source tree
3909 echo $srcdir/$f
3910 else
3911 # /dev/null tree
3912 { { echo "$as_me:3912: error: cannot find input file: $f" >&5
3913 echo "$as_me: error: cannot find input file: $f" >&2;}
3914 { (exit 1); exit 1; }; }
3915 fi;;
3916 esac
3917 done` || { (exit 1); exit 1; }
3918 # Remove the trailing spaces.
3919 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
3923 # Transform confdefs.h into two sed scripts, `conftest.defines' and
3924 # `conftest.undefs', that substitutes the proper values into
3925 # config.h.in to produce config.h. The first handles `#define'
3926 # templates, and the second `#undef' templates.
3927 # And first: Protect against being on the right side of a sed subst in
3928 # config.status. Protect against being in an unquoted here document
3929 # in config.status.
3930 rm -f conftest.defines conftest.undefs
3931 # Using a here document instead of a string reduces the quoting nightmare.
3932 # Putting comments in sed scripts is not portable.
3934 # `end' is used to avoid that the second main sed command (meant for
3935 # 0-ary CPP macros) applies to n-ary macro definitions.
3936 # See the Autoconf documentation for `clear'.
3937 cat >confdef2sed.sed <<\EOF
3938 s/[\\&,]/\\&/g
3939 s,[\\$`],\\&,g
3940 t clear
3941 : clear
3942 s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
3943 t end
3944 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
3945 : end
3947 # If some macros were called several times there might be several times
3948 # the same #defines, which is useless. Nevertheless, we may not want to
3949 # sort them, since we want the *last* AC-DEFINE to be honored.
3950 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
3951 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
3952 rm -f confdef2sed.sed
3954 # This sed command replaces #undef with comments. This is necessary, for
3955 # example, in the case of _POSIX_SOURCE, which is predefined and required
3956 # on some systems where configure will not decide to define it.
3957 cat >>conftest.undefs <<\EOF
3958 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
3961 # Break up conftest.defines because some shells have a limit on the size
3962 # of here documents, and old seds have small limits too (100 cmds).
3963 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
3964 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
3965 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
3966 echo ' :' >>$CONFIG_STATUS
3967 rm -f conftest.tail
3968 while grep . conftest.defines >/dev/null
3970 # Write a limited-size here document to $tmp/defines.sed.
3971 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
3972 # Speed up: don't consider the non `#define' lines.
3973 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
3974 # Work around the forget-to-reset-the-flag bug.
3975 echo 't clr' >>$CONFIG_STATUS
3976 echo ': clr' >>$CONFIG_STATUS
3977 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
3978 echo 'CEOF
3979 sed -f $tmp/defines.sed $tmp/in >$tmp/out
3980 rm -f $tmp/in
3981 mv $tmp/out $tmp/in
3982 ' >>$CONFIG_STATUS
3983 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
3984 rm -f conftest.defines
3985 mv conftest.tail conftest.defines
3986 done
3987 rm -f conftest.defines
3988 echo ' fi # egrep' >>$CONFIG_STATUS
3989 echo >>$CONFIG_STATUS
3991 # Break up conftest.undefs because some shells have a limit on the size
3992 # of here documents, and old seds have small limits too (100 cmds).
3993 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
3994 rm -f conftest.tail
3995 while grep . conftest.undefs >/dev/null
3997 # Write a limited-size here document to $tmp/undefs.sed.
3998 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
3999 # Speed up: don't consider the non `#undef'
4000 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
4001 # Work around the forget-to-reset-the-flag bug.
4002 echo 't clr' >>$CONFIG_STATUS
4003 echo ': clr' >>$CONFIG_STATUS
4004 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
4005 echo 'CEOF
4006 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
4007 rm -f $tmp/in
4008 mv $tmp/out $tmp/in
4009 ' >>$CONFIG_STATUS
4010 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
4011 rm -f conftest.undefs
4012 mv conftest.tail conftest.undefs
4013 done
4014 rm -f conftest.undefs
4016 cat >>$CONFIG_STATUS <<\EOF
4017 # Let's still pretend it is `configure' which instantiates (i.e., don't
4018 # use $as_me), people would be surprised to read:
4019 # /* config.h. Generated automatically by config.status. */
4020 if test x"$ac_file" = x-; then
4021 echo "/* Generated automatically by configure. */" >$tmp/config.h
4022 else
4023 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
4025 cat $tmp/in >>$tmp/config.h
4026 rm -f $tmp/in
4027 if test x"$ac_file" != x-; then
4028 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
4029 { echo "$as_me:4029: $ac_file is unchanged" >&5
4030 echo "$as_me: $ac_file is unchanged" >&6;}
4031 else
4032 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4033 X"$ac_file" : 'X\(//\)[^/]' \| \
4034 X"$ac_file" : 'X\(//\)$' \| \
4035 X"$ac_file" : 'X\(/\)' \| \
4036 . : '\(.\)' 2>/dev/null ||
4037 echo X"$ac_file" |
4038 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4039 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4040 /^X\(\/\/\)$/{ s//\1/; q; }
4041 /^X\(\/\).*/{ s//\1/; q; }
4042 s/.*/./; q'`
4043 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4044 { case "$ac_dir" in
4045 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
4046 *) as_incr_dir=.;;
4047 esac
4048 as_dummy="$ac_dir"
4049 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
4050 case $as_mkdir_dir in
4051 # Skip DOS drivespec
4052 ?:) as_incr_dir=$as_mkdir_dir ;;
4054 as_incr_dir=$as_incr_dir/$as_mkdir_dir
4055 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
4057 esac
4058 done; }
4061 rm -f $ac_file
4062 mv $tmp/config.h $ac_file
4064 else
4065 cat $tmp/config.h
4066 rm -f $tmp/config.h
4068 done
4071 cat >>$CONFIG_STATUS <<\EOF
4073 { (exit 0); exit 0; }
4075 chmod +x $CONFIG_STATUS
4076 ac_clean_files=$ac_clean_files_save
4078 # configure is writing to config.log, and then calls config.status.
4079 # config.status does its own redirection, appending to config.log.
4080 # Unfortunately, on DOS this fails, as config.log is still kept open
4081 # by configure, so config.status won't be able to write to it; its
4082 # output is simply discarded. So we exec the FD to /dev/null,
4083 # effectively closing config.log, so it can be properly (re)opened and
4084 # appended to by config.status. When coming back to configure, we
4085 # need to make the FD available again.
4086 if test "$no_create" != yes; then
4087 ac_cs_success=:
4088 exec 5>/dev/null
4089 $SHELL $CONFIG_STATUS || ac_cs_success=false
4090 exec 5>>config.log
4091 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4092 # would make configure fail if this is the last instruction.
4093 $ac_cs_success || { (exit 1); exit 1; }