Debian Codegraph @

configure

raw symbols ◀ ▶
Source reconstructed at patch state 0 of 1 — not the installed (fully patched) source.
1 Debian patch touch this file
1 #! /bin/sh
2
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6 #
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_default_prefix=/usr/local
15 ac_help="$ac_help
16 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)"
17 ac_help="$ac_help
18 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)"
19 ac_help="$ac_help
20 --disable-sdltest Do not try to compile and run a test SDL program"
21
22 # Initialize some variables set by options.
23 # The variables have the same names as the options, with
24 # dashes changed to underlines.
25 build=NONE
26 cache_file=./config.cache
27 exec_prefix=NONE
28 host=NONE
29 no_create=
30 nonopt=NONE
31 no_recursion=
32 prefix=NONE
33 program_prefix=NONE
34 program_suffix=NONE
35 program_transform_name=s,x,x,
36 silent=
37 site=
38 srcdir=
39 target=NONE
40 verbose=
41 x_includes=NONE
42 x_libraries=NONE
43 bindir='${exec_prefix}/bin'
44 sbindir='${exec_prefix}/sbin'
45 libexecdir='${exec_prefix}/libexec'
46 datadir='${prefix}/share'
47 sysconfdir='${prefix}/etc'
48 sharedstatedir='${prefix}/com'
49 localstatedir='${prefix}/var'
50 libdir='${exec_prefix}/lib'
51 includedir='${prefix}/include'
52 oldincludedir='/usr/include'
53 infodir='${prefix}/info'
54 mandir='${prefix}/man'
55
56 # Initialize some other variables.
57 subdirs=
58 MFLAGS= MAKEFLAGS=
59 SHELL=${CONFIG_SHELL-/bin/sh}
60 # Maximum number of lines to put in a shell here document.
61 ac_max_here_lines=12
62
63 ac_prev=
64 for ac_option
65 do
66
67 # If the previous option needs an argument, assign it.
68 if test -n "$ac_prev"; then
69 eval "$ac_prev=\$ac_option"
70 ac_prev=
71 continue
72 fi
73
74 case "$ac_option" in
75 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
76 *) ac_optarg= ;;
77 esac
78
79 # Accept the important Cygnus configure options, so we can diagnose typos.
80
81 case "$ac_option" in
82
83 -bindir | --bindir | --bindi | --bind | --bin | --bi)
84 ac_prev=bindir ;;
85 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
86 bindir="$ac_optarg" ;;
87
88 -build | --build | --buil | --bui | --bu)
89 ac_prev=build ;;
90 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
91 build="$ac_optarg" ;;
92
93 -cache-file | --cache-file | --cache-fil | --cache-fi \
94 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
95 ac_prev=cache_file ;;
96 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
97 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
98 cache_file="$ac_optarg" ;;
99
100 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
101 ac_prev=datadir ;;
102 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
103 | --da=*)
104 datadir="$ac_optarg" ;;
105
106 -disable-* | --disable-*)
107 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
108 # Reject names that are not valid shell variable names.
109 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
110 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
111 fi
112 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
113 eval "enable_${ac_feature}=no" ;;
114
115 -enable-* | --enable-*)
116 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
117 # Reject names that are not valid shell variable names.
118 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
119 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
120 fi
121 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
122 case "$ac_option" in
123 *=*) ;;
124 *) ac_optarg=yes ;;
125 esac
126 eval "enable_${ac_feature}='$ac_optarg'" ;;
127
128 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
129 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
130 | --exec | --exe | --ex)
131 ac_prev=exec_prefix ;;
132 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
133 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
134 | --exec=* | --exe=* | --ex=*)
135 exec_prefix="$ac_optarg" ;;
136
137 -gas | --gas | --ga | --g)
138 # Obsolete; use --with-gas.
139 with_gas=yes ;;
140
141 -help | --help | --hel | --he)
142 # Omit some internal or obsolete options to make the list less imposing.
143 # This message is too long to be a string in the A/UX 3.1 sh.
144 cat << EOF
145 Usage: configure [options] [host]
146 Options: [defaults in brackets after descriptions]
147 Configuration:
148 --cache-file=FILE cache test results in FILE
149 --help print this message
150 --no-create do not create output files
151 --quiet, --silent do not print \`checking...' messages
152 --version print the version of autoconf that created configure
153 Directory and file names:
154 --prefix=PREFIX install architecture-independent files in PREFIX
155 [$ac_default_prefix]
156 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
157 [same as prefix]
158 --bindir=DIR user executables in DIR [EPREFIX/bin]
159 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
160 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
161 --datadir=DIR read-only architecture-independent data in DIR
162 [PREFIX/share]
163 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
164 --sharedstatedir=DIR modifiable architecture-independent data in DIR
165 [PREFIX/com]
166 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
167 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
168 --includedir=DIR C header files in DIR [PREFIX/include]
169 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
170 --infodir=DIR info documentation in DIR [PREFIX/info]
171 --mandir=DIR man documentation in DIR [PREFIX/man]
172 --srcdir=DIR find the sources in DIR [configure dir or ..]
173 --program-prefix=PREFIX prepend PREFIX to installed program names
174 --program-suffix=SUFFIX append SUFFIX to installed program names
175 --program-transform-name=PROGRAM
176 run sed PROGRAM on installed program names
177 EOF
178 cat << EOF
179 Host type:
180 --build=BUILD configure for building on BUILD [BUILD=HOST]
181 --host=HOST configure for HOST [guessed]
182 --target=TARGET configure for TARGET [TARGET=HOST]
183 Features and packages:
184 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
185 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
186 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
187 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
188 --x-includes=DIR X include files are in DIR
189 --x-libraries=DIR X library files are in DIR
190 EOF
191 if test -n "$ac_help"; then
192 echo "--enable and --with options recognized:$ac_help"
193 fi
194 exit 0 ;;
195
196 -host | --host | --hos | --ho)
197 ac_prev=host ;;
198 -host=* | --host=* | --hos=* | --ho=*)
199 host="$ac_optarg" ;;
200
201 -includedir | --includedir | --includedi | --included | --include \
202 | --includ | --inclu | --incl | --inc)
203 ac_prev=includedir ;;
204 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
205 | --includ=* | --inclu=* | --incl=* | --inc=*)
206 includedir="$ac_optarg" ;;
207
208 -infodir | --infodir | --infodi | --infod | --info | --inf)
209 ac_prev=infodir ;;
210 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
211 infodir="$ac_optarg" ;;
212
213 -libdir | --libdir | --libdi | --libd)
214 ac_prev=libdir ;;
215 -libdir=* | --libdir=* | --libdi=* | --libd=*)
216 libdir="$ac_optarg" ;;
217
218 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
219 | --libexe | --libex | --libe)
220 ac_prev=libexecdir ;;
221 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
222 | --libexe=* | --libex=* | --libe=*)
223 libexecdir="$ac_optarg" ;;
224
225 -localstatedir | --localstatedir | --localstatedi | --localstated \
226 | --localstate | --localstat | --localsta | --localst \
227 | --locals | --local | --loca | --loc | --lo)
228 ac_prev=localstatedir ;;
229 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
230 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
231 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
232 localstatedir="$ac_optarg" ;;
233
234 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
235 ac_prev=mandir ;;
236 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
237 mandir="$ac_optarg" ;;
238
239 -nfp | --nfp | --nf)
240 # Obsolete; use --without-fp.
241 with_fp=no ;;
242
243 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
244 | --no-cr | --no-c)
245 no_create=yes ;;
246
247 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
248 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
249 no_recursion=yes ;;
250
251 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
252 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
253 | --oldin | --oldi | --old | --ol | --o)
254 ac_prev=oldincludedir ;;
255 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
256 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
257 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
258 oldincludedir="$ac_optarg" ;;
259
260 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
261 ac_prev=prefix ;;
262 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
263 prefix="$ac_optarg" ;;
264
265 -program-prefix | --program-prefix | --program-prefi | --program-pref \
266 | --program-pre | --program-pr | --program-p)
267 ac_prev=program_prefix ;;
268 -program-prefix=* | --program-prefix=* | --program-prefi=* \
269 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
270 program_prefix="$ac_optarg" ;;
271
272 -program-suffix | --program-suffix | --program-suffi | --program-suff \
273 | --program-suf | --program-su | --program-s)
274 ac_prev=program_suffix ;;
275 -program-suffix=* | --program-suffix=* | --program-suffi=* \
276 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
277 program_suffix="$ac_optarg" ;;
278
279 -program-transform-name | --program-transform-name \
280 | --program-transform-nam | --program-transform-na \
281 | --program-transform-n | --program-transform- \
282 | --program-transform | --program-transfor \
283 | --program-transfo | --program-transf \
284 | --program-trans | --program-tran \
285 | --progr-tra | --program-tr | --program-t)
286 ac_prev=program_transform_name ;;
287 -program-transform-name=* | --program-transform-name=* \
288 | --program-transform-nam=* | --program-transform-na=* \
289 | --program-transform-n=* | --program-transform-=* \
290 | --program-transform=* | --program-transfor=* \
291 | --program-transfo=* | --program-transf=* \
292 | --program-trans=* | --program-tran=* \
293 | --progr-tra=* | --program-tr=* | --program-t=*)
294 program_transform_name="$ac_optarg" ;;
295
296 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
297 | -silent | --silent | --silen | --sile | --sil)
298 silent=yes ;;
299
300 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
301 ac_prev=sbindir ;;
302 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
303 | --sbi=* | --sb=*)
304 sbindir="$ac_optarg" ;;
305
306 -sharedstatedir | --sharedstatedir | --sharedstatedi \
307 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
308 | --sharedst | --shareds | --shared | --share | --shar \
309 | --sha | --sh)
310 ac_prev=sharedstatedir ;;
311 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
312 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
313 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
314 | --sha=* | --sh=*)
315 sharedstatedir="$ac_optarg" ;;
316
317 -site | --site | --sit)
318 ac_prev=site ;;
319 -site=* | --site=* | --sit=*)
320 site="$ac_optarg" ;;
321
322 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
323 ac_prev=srcdir ;;
324 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
325 srcdir="$ac_optarg" ;;
326
327 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
328 | --syscon | --sysco | --sysc | --sys | --sy)
329 ac_prev=sysconfdir ;;
330 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
331 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
332 sysconfdir="$ac_optarg" ;;
333
334 -target | --target | --targe | --targ | --tar | --ta | --t)
335 ac_prev=target ;;
336 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
337 target="$ac_optarg" ;;
338
339 -v | -verbose | --verbose | --verbos | --verbo | --verb)
340 verbose=yes ;;
341
342 -version | --version | --versio | --versi | --vers)
343 echo "configure generated by autoconf version 2.13"
344 exit 0 ;;
345
346 -with-* | --with-*)
347 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
348 # Reject names that are not valid shell variable names.
349 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
350 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
351 fi
352 ac_package=`echo $ac_package| sed 's/-/_/g'`
353 case "$ac_option" in
354 *=*) ;;
355 *) ac_optarg=yes ;;
356 esac
357 eval "with_${ac_package}='$ac_optarg'" ;;
358
359 -without-* | --without-*)
360 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
361 # Reject names that are not valid shell variable names.
362 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
363 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
364 fi
365 ac_package=`echo $ac_package| sed 's/-/_/g'`
366 eval "with_${ac_package}=no" ;;
367
368 --x)
369 # Obsolete; use --with-x.
370 with_x=yes ;;
371
372 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
373 | --x-incl | --x-inc | --x-in | --x-i)
374 ac_prev=x_includes ;;
375 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
376 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
377 x_includes="$ac_optarg" ;;
378
379 -x-libraries | --x-libraries | --x-librarie | --x-librari \
380 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
381 ac_prev=x_libraries ;;
382 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
383 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
384 x_libraries="$ac_optarg" ;;
385
386 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
387 ;;
388
389 *)
390 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
391 echo "configure: warning: $ac_option: invalid host type" 1>&2
392 fi
393 if test "x$nonopt" != xNONE; then
394 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
395 fi
396 nonopt="$ac_option"
397 ;;
398
399 esac
400 done
401
402 if test -n "$ac_prev"; then
403 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
404 fi
405
406 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
407
408 # File descriptor usage:
409 # 0 standard input
410 # 1 file creation
411 # 2 errors and warnings
412 # 3 some systems may open it to /dev/tty
413 # 4 used on the Kubota Titan
414 # 6 checking for... messages and results
415 # 5 compiler messages saved in config.log
416 if test "$silent" = yes; then
417 exec 6>/dev/null
418 else
419 exec 6>&1
420 fi
421 exec 5>./config.log
422
423 echo "\
424 This file contains any messages produced by compilers while
425 running configure, to aid debugging if configure makes a mistake.
426 " 1>&5
427
428 # Strip out --no-create and --no-recursion so they do not pile up.
429 # Also quote any args containing shell metacharacters.
430 ac_configure_args=
431 for ac_arg
432 do
433 case "$ac_arg" in
434 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
435 | --no-cr | --no-c) ;;
436 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
437 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
438 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
439 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
440 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
441 esac
442 done
443
444 # NLS nuisances.
445 # Only set these to C if already set. These must not be set unconditionally
446 # because not all systems understand e.g. LANG=C (notably SCO).
447 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
448 # Non-C LC_CTYPE values break the ctype check.
449 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
450 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
451 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
452 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
453
454 # confdefs.h avoids OS command line length limits that DEFS can exceed.
455 rm -rf conftest* confdefs.h
456 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
457 echo > confdefs.h
458
459 # A filename unique to this package, relative to the directory that
460 # configure is in, which we can look for to find out if srcdir is correct.
461 ac_unique_file=README
462
463 # Find the source files, if location was not specified.
464 if test -z "$srcdir"; then
465 ac_srcdir_defaulted=yes
466 # Try the directory containing this script, then its parent.
467 ac_prog=$0
468 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
469 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
470 srcdir=$ac_confdir
471 if test ! -r $srcdir/$ac_unique_file; then
472 srcdir=..
473 fi
474 else
475 ac_srcdir_defaulted=no
476 fi
477 if test ! -r $srcdir/$ac_unique_file; then
478 if test "$ac_srcdir_defaulted" = yes; then
479 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
480 else
481 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
482 fi
483 fi
484 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
485
486 # Prefer explicitly selected file to automatically selected ones.
487 if test -z "$CONFIG_SITE"; then
488 if test "x$prefix" != xNONE; then
489 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
490 else
491 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
492 fi
493 fi
494 for ac_site_file in $CONFIG_SITE; do
495 if test -r "$ac_site_file"; then
496 echo "loading site script $ac_site_file"
497 . "$ac_site_file"
498 fi
499 done
500
501 if test -r "$cache_file"; then
502 echo "loading cache $cache_file"
503 . $cache_file
504 else
505 echo "creating cache $cache_file"
506 > $cache_file
507 fi
508
509 ac_ext=c
510 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
511 ac_cpp='$CPP $CPPFLAGS'
512 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
513 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
514 cross_compiling=$ac_cv_prog_cc_cross
515
516 ac_exeext=
517 ac_objext=o
518 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
519 # Stardent Vistra SVR4 grep lacks -e, says [email protected].
520 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
521 ac_n= ac_c='
522 ' ac_t=' '
523 else
524 ac_n=-n ac_c= ac_t=
525 fi
526 else
527 ac_n= ac_c='\c' ac_t=
528 fi
529
530
531 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
532 echo "configure:533: checking how to run the C preprocessor" >&5
533 # On Suns, sometimes $CPP names a directory.
534 if test -n "$CPP" && test -d "$CPP"; then
535 CPP=
536 fi
537 if test -z "$CPP"; then
538 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
539 echo $ac_n "(cached) $ac_c" 1>&6
540 else
541 # This must be in double quotes, not single quotes, because CPP may get
542 # substituted into the Makefile and "${CC-cc}" will confuse make.
543 CPP="${CC-cc} -E"
544 # On the NeXT, cc -E runs the code through the compiler's parser,
545 # not just through cpp.
546 cat > conftest.$ac_ext <<EOF
547 #line 548 "configure"
548 #include "confdefs.h"
549 #include <assert.h>
550 Syntax Error
551 EOF
552 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
553 { (eval echo configure:554: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
554 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
555 if test -z "$ac_err"; then
556 :
557 else
558 echo "$ac_err" >&5
559 echo "configure: failed program was:" >&5
560 cat conftest.$ac_ext >&5
561 rm -rf conftest*
562 CPP="${CC-cc} -E -traditional-cpp"
563 cat > conftest.$ac_ext <<EOF
564 #line 565 "configure"
565 #include "confdefs.h"
566 #include <assert.h>
567 Syntax Error
568 EOF
569 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
570 { (eval echo configure:571: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
571 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
572 if test -z "$ac_err"; then
573 :
574 else
575 echo "$ac_err" >&5
576 echo "configure: failed program was:" >&5
577 cat conftest.$ac_ext >&5
578 rm -rf conftest*
579 CPP="${CC-cc} -nologo -E"
580 cat > conftest.$ac_ext <<EOF
581 #line 582 "configure"
582 #include "confdefs.h"
583 #include <assert.h>
584 Syntax Error
585 EOF
586 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
587 { (eval echo configure:588: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
588 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
589 if test -z "$ac_err"; then
590 :
591 else
592 echo "$ac_err" >&5
593 echo "configure: failed program was:" >&5
594 cat conftest.$ac_ext >&5
595 rm -rf conftest*
596 CPP=/lib/cpp
597 fi
598 rm -f conftest*
599 fi
600 rm -f conftest*
601 fi
602 rm -f conftest*
603 ac_cv_prog_CPP="$CPP"
604 fi
605 CPP="$ac_cv_prog_CPP"
606 else
607 ac_cv_prog_CPP="$CPP"
608 fi
609 echo "$ac_t""$CPP" 1>&6
610
611 missing_dir=`cd $ac_aux_dir && pwd`
612 for ac_prog in flex lex
613 do
614 # Extract the first word of "$ac_prog", so it can be a program name with args.
615 set dummy $ac_prog; ac_word=$2
616 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
617 echo "configure:618: checking for $ac_word" >&5
618 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
619 echo $ac_n "(cached) $ac_c" 1>&6
620 else
621 if test -n "$LEX"; then
622 ac_cv_prog_LEX="$LEX" # Let the user override the test.
623 else
624 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
625 ac_dummy="$PATH"
626 for ac_dir in $ac_dummy; do
627 test -z "$ac_dir" && ac_dir=.
628 if test -f $ac_dir/$ac_word; then
629 ac_cv_prog_LEX="$ac_prog"
630 break
631 fi
632 done
633 IFS="$ac_save_ifs"
634 fi
635 fi
636 LEX="$ac_cv_prog_LEX"
637 if test -n "$LEX"; then
638 echo "$ac_t""$LEX" 1>&6
639 else
640 echo "$ac_t""no" 1>&6
641 fi
642
643 test -n "$LEX" && break
644 done
645 test -n "$LEX" || LEX=""$missing_dir/missing flex""
646
647 # Extract the first word of "flex", so it can be a program name with args.
648 set dummy flex; ac_word=$2
649 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
650 echo "configure:651: checking for $ac_word" >&5
651 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
652 echo $ac_n "(cached) $ac_c" 1>&6
653 else
654 if test -n "$LEX"; then
655 ac_cv_prog_LEX="$LEX" # Let the user override the test.
656 else
657 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
658 ac_dummy="$PATH"
659 for ac_dir in $ac_dummy; do
660 test -z "$ac_dir" && ac_dir=.
661 if test -f $ac_dir/$ac_word; then
662 ac_cv_prog_LEX="flex"
663 break
664 fi
665 done
666 IFS="$ac_save_ifs"
667 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
668 fi
669 fi
670 LEX="$ac_cv_prog_LEX"
671 if test -n "$LEX"; then
672 echo "$ac_t""$LEX" 1>&6
673 else
674 echo "$ac_t""no" 1>&6
675 fi
676
677 if test -z "$LEXLIB"
678 then
679 case "$LEX" in
680 flex*) ac_lib=fl ;;
681 *) ac_lib=l ;;
682 esac
683 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
684 echo "configure:685: checking for yywrap in -l$ac_lib" >&5
685 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
686 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
687 echo $ac_n "(cached) $ac_c" 1>&6
688 else
689 ac_save_LIBS="$LIBS"
690 LIBS="-l$ac_lib $LIBS"
691 cat > conftest.$ac_ext <<EOF
692 #line 693 "configure"
693 #include "confdefs.h"
694 /* Override any gcc2 internal prototype to avoid an error. */
695 /* We use char because int might match the return type of a gcc2
696 builtin and then its argument prototype would still apply. */
697 char yywrap();
698
699 int main() {
700 yywrap()
701 ; return 0; }
702 EOF
703 if { (eval echo configure:704: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
704 rm -rf conftest*
705 eval "ac_cv_lib_$ac_lib_var=yes"
706 else
707 echo "configure: failed program was:" >&5
708 cat conftest.$ac_ext >&5
709 rm -rf conftest*
710 eval "ac_cv_lib_$ac_lib_var=no"
711 fi
712 rm -f conftest*
713 LIBS="$ac_save_LIBS"
714
715 fi
716 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
717 echo "$ac_t""yes" 1>&6
718 LEXLIB="-l$ac_lib"
719 else
720 echo "$ac_t""no" 1>&6
721 fi
722
723 fi
724
725 echo $ac_n "checking lex output file root""... $ac_c" 1>&6
726 echo "configure:727: checking lex output file root" >&5
727 if eval "test \"`echo '$''{'ac_cv_prog_lex_root'+set}'`\" = set"; then
728 echo $ac_n "(cached) $ac_c" 1>&6
729 else
730 # The minimal lex program is just a single line: %%. But some broken lexes
731 # (Solaris, I think it was) want two %% lines, so accommodate them.
732 echo '%%
733 %%' | $LEX
734 if test -f lex.yy.c; then
735 ac_cv_prog_lex_root=lex.yy
736 elif test -f lexyy.c; then
737 ac_cv_prog_lex_root=lexyy
738 else
739 { echo "configure: error: cannot find output from $LEX; giving up" 1>&2; exit 1; }
740 fi
741 fi
742
743 echo "$ac_t""$ac_cv_prog_lex_root" 1>&6
744 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
745
746 echo $ac_n "checking whether yytext is a pointer""... $ac_c" 1>&6
747 echo "configure:748: checking whether yytext is a pointer" >&5
748 if eval "test \"`echo '$''{'ac_cv_prog_lex_yytext_pointer'+set}'`\" = set"; then
749 echo $ac_n "(cached) $ac_c" 1>&6
750 else
751 # POSIX says lex can declare yytext either as a pointer or an array; the
752 # default is implementation-dependent. Figure out which it is, since
753 # not all implementations provide the %pointer and %array declarations.
754 ac_cv_prog_lex_yytext_pointer=no
755 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
756 ac_save_LIBS="$LIBS"
757 LIBS="$LIBS $LEXLIB"
758 cat > conftest.$ac_ext <<EOF
759 #line 760 "configure"
760 #include "confdefs.h"
761 `cat $LEX_OUTPUT_ROOT.c`
762 int main() {
763
764 ; return 0; }
765 EOF
766 if { (eval echo configure:767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
767 rm -rf conftest*
768 ac_cv_prog_lex_yytext_pointer=yes
769 else
770 echo "configure: failed program was:" >&5
771 cat conftest.$ac_ext >&5
772 fi
773 rm -f conftest*
774 LIBS="$ac_save_LIBS"
775 rm -f "${LEX_OUTPUT_ROOT}.c"
776
777 fi
778
779 echo "$ac_t""$ac_cv_prog_lex_yytext_pointer" 1>&6
780 if test $ac_cv_prog_lex_yytext_pointer = yes; then
781 cat >> confdefs.h <<\EOF
782 #define YYTEXT_POINTER 1
783 EOF
784
785 fi
786
787
788 # The AM_INIT_AUTOMAKE macro tells automake the name and version number
789 # of the software package so it can generate rules for building a source
790 # archive.
791
792 ac_aux_dir=
793 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
794 if test -f $ac_dir/install-sh; then
795 ac_aux_dir=$ac_dir
796 ac_install_sh="$ac_aux_dir/install-sh -c"
797 break
798 elif test -f $ac_dir/install.sh; then
799 ac_aux_dir=$ac_dir
800 ac_install_sh="$ac_aux_dir/install.sh -c"
801 break
802 fi
803 done
804 if test -z "$ac_aux_dir"; then
805 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
806 fi
807 ac_config_guess=$ac_aux_dir/config.guess
808 ac_config_sub=$ac_aux_dir/config.sub
809 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
810
811 # Find a good install program. We prefer a C program (faster),
812 # so one script is as good as another. But avoid the broken or
813 # incompatible versions:
814 # SysV /etc/install, /usr/sbin/install
815 # SunOS /usr/etc/install
816 # IRIX /sbin/install
817 # AIX /bin/install
818 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
819 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
820 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
821 # ./install, which can be erroneously created by make from ./install.sh.
822 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
823 echo "configure:824: checking for a BSD compatible install" >&5
824 if test -z "$INSTALL"; then
825 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
826 echo $ac_n "(cached) $ac_c" 1>&6
827 else
828 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
829 for ac_dir in $PATH; do
830 # Account for people who put trailing slashes in PATH elements.
831 case "$ac_dir/" in
832 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
833 *)
834 # OSF1 and SCO ODT 3.0 have their own names for install.
835 # Don't use installbsd from OSF since it installs stuff as root
836 # by default.
837 for ac_prog in ginstall scoinst install; do
838 if test -f $ac_dir/$ac_prog; then
839 if test $ac_prog = install &&
840 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
841 # AIX install. It has an incompatible calling convention.
842 :
843 else
844 ac_cv_path_install="$ac_dir/$ac_prog -c"
845 break 2
846 fi
847 fi
848 done
849 ;;
850 esac
851 done
852 IFS="$ac_save_IFS"
853
854 fi
855 if test "${ac_cv_path_install+set}" = set; then
856 INSTALL="$ac_cv_path_install"
857 else
858 # As a last resort, use the slow shell script. We don't cache a
859 # path for INSTALL within a source directory, because that will
860 # break other packages using the cache if that directory is
861 # removed, or if the path is relative.
862 INSTALL="$ac_install_sh"
863 fi
864 fi
865 echo "$ac_t""$INSTALL" 1>&6
866
867 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
868 # It thinks the first close brace ends the variable substitution.
869 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
870
871 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
872
873 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
874
875 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
876 echo "configure:877: checking whether build environment is sane" >&5
877 # Just in case
878 sleep 1
879 echo timestamp > conftestfile
880 # Do `set' in a subshell so we don't clobber the current shell's
881 # arguments. Must try -L first in case configure is actually a
882 # symlink; some systems play weird games with the mod time of symlinks
883 # (eg FreeBSD returns the mod time of the symlink's containing
884 # directory).
885 if (
886 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
887 if test "$*" = "X"; then
888 # -L didn't work.
889 set X `ls -t $srcdir/configure conftestfile`
890 fi
891 if test "$*" != "X $srcdir/configure conftestfile" \
892 && test "$*" != "X conftestfile $srcdir/configure"; then
893
894 # If neither matched, then we have a broken ls. This can happen
895 # if, for instance, CONFIG_SHELL is bash and it inherits a
896 # broken ls alias from the environment. This has actually
897 # happened. Such a system could not be considered "sane".
898 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
899 alias in your environment" 1>&2; exit 1; }
900 fi
901
902 test "$2" = conftestfile
903 )
904 then
905 # Ok.
906 :
907 else
908 { echo "configure: error: newly created file is older than distributed files!
909 Check your system clock" 1>&2; exit 1; }
910 fi
911 rm -f conftest*
912 echo "$ac_t""yes" 1>&6
913 if test "$program_transform_name" = s,x,x,; then
914 program_transform_name=
915 else
916 # Double any \ or $. echo might interpret backslashes.
917 cat <<\EOF_SED > conftestsed
918 s,\\,\\\\,g; s,\$,$$,g
919 EOF_SED
920 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
921 rm -f conftestsed
922 fi
923 test "$program_prefix" != NONE &&
924 program_transform_name="s,^,${program_prefix},; $program_transform_name"
925 # Use a double $ so make ignores it.
926 test "$program_suffix" != NONE &&
927 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
928
929 # sed with no file args requires a program.
930 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
931
932 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
933 echo "configure:934: checking whether ${MAKE-make} sets \${MAKE}" >&5
934 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
935 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
936 echo $ac_n "(cached) $ac_c" 1>&6
937 else
938 cat > conftestmake <<\EOF
939 all:
940 @echo 'ac_maketemp="${MAKE}"'
941 EOF
942 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
943 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
944 if test -n "$ac_maketemp"; then
945 eval ac_cv_prog_make_${ac_make}_set=yes
946 else
947 eval ac_cv_prog_make_${ac_make}_set=no
948 fi
949 rm -f conftestmake
950 fi
951 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
952 echo "$ac_t""yes" 1>&6
953 SET_MAKE=
954 else
955 echo "$ac_t""no" 1>&6
956 SET_MAKE="MAKE=${MAKE-make}"
957 fi
958
959
960 PACKAGE=pipenightdreams
961
962 VERSION=0.10.0
963
964 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
965 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
966 fi
967 cat >> confdefs.h <<EOF
968 #define PACKAGE "$PACKAGE"
969 EOF
970
971 cat >> confdefs.h <<EOF
972 #define VERSION "$VERSION"
973 EOF
974
975
976
977 missing_dir=`cd $ac_aux_dir && pwd`
978 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
979 echo "configure:980: checking for working aclocal" >&5
980 # Run test in a subshell; some versions of sh will print an error if
981 # an executable is not found, even if stderr is redirected.
982 # Redirect stdin to placate older versions of autoconf. Sigh.
983 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
984 ACLOCAL=aclocal
985 echo "$ac_t""found" 1>&6
986 else
987 ACLOCAL="$missing_dir/missing aclocal"
988 echo "$ac_t""missing" 1>&6
989 fi
990
991 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
992 echo "configure:993: checking for working autoconf" >&5
993 # Run test in a subshell; some versions of sh will print an error if
994 # an executable is not found, even if stderr is redirected.
995 # Redirect stdin to placate older versions of autoconf. Sigh.
996 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
997 AUTOCONF=autoconf
998 echo "$ac_t""found" 1>&6
999 else
1000 AUTOCONF="$missing_dir/missing autoconf"
1001 echo "$ac_t""missing" 1>&6
1002 fi
1003
1004 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1005 echo "configure:1006: checking for working automake" >&5
1006 # Run test in a subshell; some versions of sh will print an error if
1007 # an executable is not found, even if stderr is redirected.
1008 # Redirect stdin to placate older versions of autoconf. Sigh.
1009 if (automake --version) < /dev/null > /dev/null 2>&1; then
1010 AUTOMAKE=automake
1011 echo "$ac_t""found" 1>&6
1012 else
1013 AUTOMAKE="$missing_dir/missing automake"
1014 echo "$ac_t""missing" 1>&6
1015 fi
1016
1017 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1018 echo "configure:1019: checking for working autoheader" >&5
1019 # Run test in a subshell; some versions of sh will print an error if
1020 # an executable is not found, even if stderr is redirected.
1021 # Redirect stdin to placate older versions of autoconf. Sigh.
1022 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1023 AUTOHEADER=autoheader
1024 echo "$ac_t""found" 1>&6
1025 else
1026 AUTOHEADER="$missing_dir/missing autoheader"
1027 echo "$ac_t""missing" 1>&6
1028 fi
1029
1030 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1031 echo "configure:1032: checking for working makeinfo" >&5
1032 # Run test in a subshell; some versions of sh will print an error if
1033 # an executable is not found, even if stderr is redirected.
1034 # Redirect stdin to placate older versions of autoconf. Sigh.
1035 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1036 MAKEINFO=makeinfo
1037 echo "$ac_t""found" 1>&6
1038 else
1039 MAKEINFO="$missing_dir/missing makeinfo"
1040 echo "$ac_t""missing" 1>&6
1041 fi
1042
1043
1044
1045
1046
1047
1048 CXXFLAGS="-O2"
1049
1050 # We now have a list of macros which tell autoconf what tools we need to
1051 # build our software, in this case "make", a C++ compiler, and "install".
1052 # If we were creating a C program, we would use AC_PROC_CC instead of CXX.
1053
1054 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1055 echo "configure:1056: checking whether ${MAKE-make} sets \${MAKE}" >&5
1056 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1057 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1058 echo $ac_n "(cached) $ac_c" 1>&6
1059 else
1060 cat > conftestmake <<\EOF
1061 all:
1062 @echo 'ac_maketemp="${MAKE}"'
1063 EOF
1064 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1065 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1066 if test -n "$ac_maketemp"; then
1067 eval ac_cv_prog_make_${ac_make}_set=yes
1068 else
1069 eval ac_cv_prog_make_${ac_make}_set=no
1070 fi
1071 rm -f conftestmake
1072 fi
1073 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1074 echo "$ac_t""yes" 1>&6
1075 SET_MAKE=
1076 else
1077 echo "$ac_t""no" 1>&6
1078 SET_MAKE="MAKE=${MAKE-make}"
1079 fi
1080
1081 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
1082 do
1083 # Extract the first word of "$ac_prog", so it can be a program name with args.
1084 set dummy $ac_prog; ac_word=$2
1085 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1086 echo "configure:1087: checking for $ac_word" >&5
1087 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1088 echo $ac_n "(cached) $ac_c" 1>&6
1089 else
1090 if test -n "$CXX"; then
1091 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1092 else
1093 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1094 ac_dummy="$PATH"
1095 for ac_dir in $ac_dummy; do
1096 test -z "$ac_dir" && ac_dir=.
1097 if test -f $ac_dir/$ac_word; then
1098 ac_cv_prog_CXX="$ac_prog"
1099 break
1100 fi
1101 done
1102 IFS="$ac_save_ifs"
1103 fi
1104 fi
1105 CXX="$ac_cv_prog_CXX"
1106 if test -n "$CXX"; then
1107 echo "$ac_t""$CXX" 1>&6
1108 else
1109 echo "$ac_t""no" 1>&6
1110 fi
1111
1112 test -n "$CXX" && break
1113 done
1114 test -n "$CXX" || CXX="gcc"
1115
1116
1117 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1118 echo "configure:1119: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
1119
1120 ac_ext=C
1121 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1122 ac_cpp='$CXXCPP $CPPFLAGS'
1123 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1124 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1125 cross_compiling=$ac_cv_prog_cxx_cross
1126
1127 cat > conftest.$ac_ext << EOF
1128
1129 #line 1130 "configure"
1130 #include "confdefs.h"
1131
1132 int main(){return(0);}
1133 EOF
1134 if { (eval echo configure:1135: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1135 ac_cv_prog_cxx_works=yes
1136 # If we can't run a trivial program, we are probably using a cross compiler.
1137 if (./conftest; exit) 2>/dev/null; then
1138 ac_cv_prog_cxx_cross=no
1139 else
1140 ac_cv_prog_cxx_cross=yes
1141 fi
1142 else
1143 echo "configure: failed program was:" >&5
1144 cat conftest.$ac_ext >&5
1145 ac_cv_prog_cxx_works=no
1146 fi
1147 rm -fr conftest*
1148 ac_ext=c
1149 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1150 ac_cpp='$CPP $CPPFLAGS'
1151 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1152 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1153 cross_compiling=$ac_cv_prog_cc_cross
1154
1155 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
1156 if test $ac_cv_prog_cxx_works = no; then
1157 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
1158 fi
1159 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1160 echo "configure:1161: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1161 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
1162 cross_compiling=$ac_cv_prog_cxx_cross
1163
1164 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1165 echo "configure:1166: checking whether we are using GNU C++" >&5
1166 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1167 echo $ac_n "(cached) $ac_c" 1>&6
1168 else
1169 cat > conftest.C <<EOF
1170 #ifdef __GNUC__
1171 yes;
1172 #endif
1173 EOF
1174 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1175: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1175 ac_cv_prog_gxx=yes
1176 else
1177 ac_cv_prog_gxx=no
1178 fi
1179 fi
1180
1181 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1182
1183 if test $ac_cv_prog_gxx = yes; then
1184 GXX=yes
1185 else
1186 GXX=
1187 fi
1188
1189 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1190 ac_save_CXXFLAGS="$CXXFLAGS"
1191 CXXFLAGS=
1192 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1193 echo "configure:1194: checking whether ${CXX-g++} accepts -g" >&5
1194 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1195 echo $ac_n "(cached) $ac_c" 1>&6
1196 else
1197 echo 'void f(){}' > conftest.cc
1198 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1199 ac_cv_prog_cxx_g=yes
1200 else
1201 ac_cv_prog_cxx_g=no
1202 fi
1203 rm -f conftest*
1204
1205 fi
1206
1207 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1208 if test "$ac_test_CXXFLAGS" = set; then
1209 CXXFLAGS="$ac_save_CXXFLAGS"
1210 elif test $ac_cv_prog_cxx_g = yes; then
1211 if test "$GXX" = yes; then
1212 CXXFLAGS="-g -O2"
1213 else
1214 CXXFLAGS="-g"
1215 fi
1216 else
1217 if test "$GXX" = yes; then
1218 CXXFLAGS="-O2"
1219 else
1220 CXXFLAGS=
1221 fi
1222 fi
1223
1224 # Find a good install program. We prefer a C program (faster),
1225 # so one script is as good as another. But avoid the broken or
1226 # incompatible versions:
1227 # SysV /etc/install, /usr/sbin/install
1228 # SunOS /usr/etc/install
1229 # IRIX /sbin/install
1230 # AIX /bin/install
1231 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1232 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1233 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1234 # ./install, which can be erroneously created by make from ./install.sh.
1235 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1236 echo "configure:1237: checking for a BSD compatible install" >&5
1237 if test -z "$INSTALL"; then
1238 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1239 echo $ac_n "(cached) $ac_c" 1>&6
1240 else
1241 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1242 for ac_dir in $PATH; do
1243 # Account for people who put trailing slashes in PATH elements.
1244 case "$ac_dir/" in
1245 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1246 *)
1247 # OSF1 and SCO ODT 3.0 have their own names for install.
1248 # Don't use installbsd from OSF since it installs stuff as root
1249 # by default.
1250 for ac_prog in ginstall scoinst install; do
1251 if test -f $ac_dir/$ac_prog; then
1252 if test $ac_prog = install &&
1253 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1254 # AIX install. It has an incompatible calling convention.
1255 :
1256 else
1257 ac_cv_path_install="$ac_dir/$ac_prog -c"
1258 break 2
1259 fi
1260 fi
1261 done
1262 ;;
1263 esac
1264 done
1265 IFS="$ac_save_IFS"
1266
1267 fi
1268 if test "${ac_cv_path_install+set}" = set; then
1269 INSTALL="$ac_cv_path_install"
1270 else
1271 # As a last resort, use the slow shell script. We don't cache a
1272 # path for INSTALL within a source directory, because that will
1273 # break other packages using the cache if that directory is
1274 # removed, or if the path is relative.
1275 INSTALL="$ac_install_sh"
1276 fi
1277 fi
1278 echo "$ac_t""$INSTALL" 1>&6
1279
1280 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1281 # It thinks the first close brace ends the variable substitution.
1282 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1283
1284 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1285
1286 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1287
1288
1289 # This is a trick I learned at Loki - the current compiler for the alpha
1290 # architecture doesn't produce code that works on all versions of the
1291 # alpha processor. This bit detects the current compile architecture
1292 # and sets the compiler flags to produce portable binary code.
1293
1294 #AC_CANONICAL_HOST
1295 echo $ac_n "checking target system type""... $ac_c" 1>&6
1296 echo "configure:1297: checking target system type" >&5
1297
1298 target_alias=$target
1299 case "$target_alias" in
1300 NONE)
1301 case $nonopt in
1302 NONE) target_alias=$host_alias ;;
1303 *) target_alias=$nonopt ;;
1304 esac ;;
1305 esac
1306
1307 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1308 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1309 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1310 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1311 echo "$ac_t""$target" 1>&6
1312
1313 case "$target" in
1314 alpha*-*-linux*)
1315 CXXFLAGS="$CXXFLAGS -mcpu=ev4 -Wa,-mall"
1316 ;;
1317 esac
1318
1319 # Use the macro SDL provides to check the installed version of the SDL
1320 # development environment. Abort the configuration process if the
1321 # minimum version we require isn't available.
1322 SDL_VERSION=1.1.5
1323 # Check whether --with-sdl-prefix or --without-sdl-prefix was given.
1324 if test "${with_sdl_prefix+set}" = set; then
1325 withval="$with_sdl_prefix"
1326 sdl_prefix="$withval"
1327 else
1328 sdl_prefix=""
1329 fi
1330
1331 # Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
1332 if test "${with_sdl_exec_prefix+set}" = set; then
1333 withval="$with_sdl_exec_prefix"
1334 sdl_exec_prefix="$withval"
1335 else
1336 sdl_exec_prefix=""
1337 fi
1338
1339 # Check whether --enable-sdltest or --disable-sdltest was given.
1340 if test "${enable_sdltest+set}" = set; then
1341 enableval="$enable_sdltest"
1342 :
1343 else
1344 enable_sdltest=yes
1345 fi
1346
1347
1348 if test x$sdl_exec_prefix != x ; then
1349 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
1350 if test x${SDL_CONFIG+set} != xset ; then
1351 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
1352 fi
1353 fi
1354 if test x$sdl_prefix != x ; then
1355 sdl_args="$sdl_args --prefix=$sdl_prefix"
1356 if test x${SDL_CONFIG+set} != xset ; then
1357 SDL_CONFIG=$sdl_prefix/bin/sdl-config
1358 fi
1359 fi
1360
1361 # Extract the first word of "sdl-config", so it can be a program name with args.
1362 set dummy sdl-config; ac_word=$2
1363 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1364 echo "configure:1365: checking for $ac_word" >&5
1365 if eval "test \"`echo '$''{'ac_cv_path_SDL_CONFIG'+set}'`\" = set"; then
1366 echo $ac_n "(cached) $ac_c" 1>&6
1367 else
1368 case "$SDL_CONFIG" in
1369 /*)
1370 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
1371 ;;
1372 ?:/*)
1373 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a dos path.
1374 ;;
1375 *)
1376 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1377 ac_dummy="$PATH"
1378 for ac_dir in $ac_dummy; do
1379 test -z "$ac_dir" && ac_dir=.
1380 if test -f $ac_dir/$ac_word; then
1381 ac_cv_path_SDL_CONFIG="$ac_dir/$ac_word"
1382 break
1383 fi
1384 done
1385 IFS="$ac_save_ifs"
1386 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
1387 ;;
1388 esac
1389 fi
1390 SDL_CONFIG="$ac_cv_path_SDL_CONFIG"
1391 if test -n "$SDL_CONFIG"; then
1392 echo "$ac_t""$SDL_CONFIG" 1>&6
1393 else
1394 echo "$ac_t""no" 1>&6
1395 fi
1396
1397 min_sdl_version=$SDL_VERSION
1398 echo $ac_n "checking for SDL - version >= $min_sdl_version""... $ac_c" 1>&6
1399 echo "configure:1400: checking for SDL - version >= $min_sdl_version" >&5
1400 no_sdl=""
1401 if test "$SDL_CONFIG" = "no" ; then
1402 no_sdl=yes
1403 else
1404 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
1405 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
1406
1407 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
1408 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
1409 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
1410 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
1411 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
1412 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
1413 if test "x$enable_sdltest" = "xyes" ; then
1414 ac_save_CFLAGS="$CFLAGS"
1415 ac_save_LIBS="$LIBS"
1416 CFLAGS="$CFLAGS $SDL_CFLAGS"
1417 LIBS="$LIBS $SDL_LIBS"
1418 rm -f conf.sdltest
1419 if test "$cross_compiling" = yes; then
1420 echo $ac_n "cross compiling; assumed OK... $ac_c"
1421 else
1422 cat > conftest.$ac_ext <<EOF
1423 #line 1424 "configure"
1424 #include "confdefs.h"
1425
1426 #include <stdio.h>
1427 #include <stdlib.h>
1428 #include <string.h>
1429 #include <SDL/SDL.h>
1430
1431 char*
1432 my_strdup (char *str)
1433 {
1434 char *new_str;
1435
1436 if (str)
1437 {
1438 new_str = malloc ((strlen (str) + 1) * sizeof(char));
1439 strcpy (new_str, str);
1440 }
1441 else
1442 new_str = NULL;
1443
1444 return new_str;
1445 }
1446
1447 int main ()
1448 {
1449 int major, minor, micro;
1450 char *tmp_version;
1451
1452 system ("touch conf.sdltest");
1453
1454 /* HP/UX 9 (%@#!) writes to sscanf strings */
1455 tmp_version = my_strdup("$min_sdl_version");
1456 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
1457 printf("%s, bad version string\n", "$min_sdl_version");
1458 exit(1);
1459 }
1460
1461 if (($sdl_major_version > major) ||
1462 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
1463 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
1464 {
1465 return 0;
1466 }
1467 else
1468 {
1469 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
1470 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
1471 printf("*** best to upgrade to the required version.\n");
1472 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
1473 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
1474 printf("*** config.cache before re-running configure\n");
1475 return 1;
1476 }
1477 }
1478
1479
1480 EOF
1481 if { (eval echo configure:1482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1482 then
1483 :
1484 else
1485 echo "configure: failed program was:" >&5
1486 cat conftest.$ac_ext >&5
1487 rm -fr conftest*
1488 no_sdl=yes
1489 fi
1490 rm -fr conftest*
1491 fi
1492
1493 CFLAGS="$ac_save_CFLAGS"
1494 LIBS="$ac_save_LIBS"
1495 fi
1496 fi
1497 if test "x$no_sdl" = x ; then
1498 echo "$ac_t""yes" 1>&6
1499 :
1500 else
1501 echo "$ac_t""no" 1>&6
1502 if test "$SDL_CONFIG" = "no" ; then
1503 echo "*** The sdl-config script installed by SDL could not be found"
1504 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
1505 echo "*** your path, or set the SDL_CONFIG environment variable to the"
1506 echo "*** full path to sdl-config."
1507 else
1508 if test -f conf.sdltest ; then
1509 :
1510 else
1511 echo "*** Could not run SDL test program, checking why..."
1512 CFLAGS="$CFLAGS $SDL_CFLAGS"
1513 LIBS="$LIBS $SDL_LIBS"
1514 cat > conftest.$ac_ext <<EOF
1515 #line 1516 "configure"
1516 #include "confdefs.h"
1517
1518 #include <stdio.h>
1519 #include <SDL/SDL.h>
1520
1521 int main() {
1522 return 0;
1523 ; return 0; }
1524 EOF
1525 if { (eval echo configure:1526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1526 rm -rf conftest*
1527 echo "*** The test program compiled, but did not run. This usually means"
1528 echo "*** that the run-time linker is not finding SDL or finding the wrong"
1529 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
1530 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
1531 echo "*** to the installed location Also, make sure you have run ldconfig if that"
1532 echo "*** is required on your system"
1533 echo "***"
1534 echo "*** If you have an old version installed, it is best to remove it, although"
1535 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
1536 else
1537 echo "configure: failed program was:" >&5
1538 cat conftest.$ac_ext >&5
1539 rm -rf conftest*
1540 echo "*** The test program failed to compile or link. See the file config.log for the"
1541 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
1542 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
1543 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
1544 fi
1545 rm -f conftest*
1546 CFLAGS="$ac_save_CFLAGS"
1547 LIBS="$ac_save_LIBS"
1548 fi
1549 fi
1550 SDL_CFLAGS=""
1551 SDL_LIBS=""
1552 { echo "configure: error: *** SDL version $SDL_VERSION not found!" 1>&2; exit 1; }
1553
1554 fi
1555
1556
1557 rm -f conf.sdltest
1558
1559 # Add the SDL preprocessor flags and libraries to the build process
1560 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
1561 LIBS="$LIBS $SDL_LIBS"
1562
1563 echo $ac_n "checking for IMG_Load in -lSDL_image""... $ac_c" 1>&6
1564 echo "configure:1565: checking for IMG_Load in -lSDL_image" >&5
1565 ac_lib_var=`echo SDL_image'_'IMG_Load | sed 'y%./+-%__p_%'`
1566 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1567 echo $ac_n "(cached) $ac_c" 1>&6
1568 else
1569 ac_save_LIBS="$LIBS"
1570 LIBS="-lSDL_image $LIBS"
1571 cat > conftest.$ac_ext <<EOF
1572 #line 1573 "configure"
1573 #include "confdefs.h"
1574 /* Override any gcc2 internal prototype to avoid an error. */
1575 /* We use char because int might match the return type of a gcc2
1576 builtin and then its argument prototype would still apply. */
1577 char IMG_Load();
1578
1579 int main() {
1580 IMG_Load()
1581 ; return 0; }
1582 EOF
1583 if { (eval echo configure:1584: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1584 rm -rf conftest*
1585 eval "ac_cv_lib_$ac_lib_var=yes"
1586 else
1587 echo "configure: failed program was:" >&5
1588 cat conftest.$ac_ext >&5
1589 rm -rf conftest*
1590 eval "ac_cv_lib_$ac_lib_var=no"
1591 fi
1592 rm -f conftest*
1593 LIBS="$ac_save_LIBS"
1594
1595 fi
1596 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1597 echo "$ac_t""yes" 1>&6
1598 ac_tr_lib=HAVE_LIB`echo SDL_image | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1599 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1600 cat >> confdefs.h <<EOF
1601 #define $ac_tr_lib 1
1602 EOF
1603
1604 LIBS="-lSDL_image $LIBS"
1605
1606 else
1607 echo "$ac_t""no" 1>&6
1608 fi
1609
1610
1611 LIBTOOL=../libtool
1612
1613
1614 #Thanks to Ingo Ruhnke <[email protected]>
1615
1616 game_datadir="$datadir/games/$PACKAGE"
1617 game_datadir=`(
1618 test "x$prefix" = xNONE && prefix=${ac_default_prefix}
1619 test "x$exec_prefix" = xNONE && exec_prefix=${prefix}
1620 eval echo \""$game_datadir"\"
1621 )`
1622
1623 cat >> confdefs.h <<EOF
1624 #define GAME_DATADIR "$game_datadir"
1625 EOF
1626
1627
1628 # Finally create all the generated files
1629 # The configure script takes "file.in" and substitutes variables to produce
1630 # "file". In this case we are just generating the Makefiles, but this could
1631 # be used to generate any number of automatically generated files.
1632 trap '' 1 2 15
1633 cat > confcache <<\EOF
1634 # This file is a shell script that caches the results of configure
1635 # tests run on this system so they can be shared between configure
1636 # scripts and configure runs. It is not useful on other systems.
1637 # If it contains results you don't want to keep, you may remove or edit it.
1638 #
1639 # By default, configure uses ./config.cache as the cache file,
1640 # creating it if it does not exist already. You can give configure
1641 # the --cache-file=FILE option to use a different cache file; that is
1642 # what configure does when it calls configure scripts in
1643 # subdirectories, so they share the cache.
1644 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1645 # config.status only pays attention to the cache file if you give it the
1646 # --recheck option to rerun configure.
1647 #
1648 EOF
1649 # The following way of writing the cache mishandles newlines in values,
1650 # but we know of no workaround that is simple, portable, and efficient.
1651 # So, don't put newlines in cache variables' values.
1652 # Ultrix sh set writes to stderr and can't be redirected directly,
1653 # and sets the high bit in the cache file unless we assign to the vars.
1654 (set) 2>&1 |
1655 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1656 *ac_space=\ *)
1657 # `set' does not quote correctly, so add quotes (double-quote substitution
1658 # turns \\\\ into \\, and sed turns \\ into \).
1659 sed -n \
1660 -e "s/'/'\\\\''/g" \
1661 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1662 ;;
1663 *)
1664 # `set' quotes correctly as required by POSIX, so do not add quotes.
1665 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1666 ;;
1667 esac >> confcache
1668 if cmp -s $cache_file confcache; then
1669 :
1670 else
1671 if test -w $cache_file; then
1672 echo "updating cache $cache_file"
1673 cat confcache > $cache_file
1674 else
1675 echo "not updating unwritable cache $cache_file"
1676 fi
1677 fi
1678 rm -f confcache
1679
1680 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1681
1682 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1683 # Let make expand exec_prefix.
1684 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1685
1686 # Any assignment to VPATH causes Sun make to only execute
1687 # the first set of double-colon rules, so remove it if not needed.
1688 # If there is a colon in the path, we need to keep it.
1689 if test "x$srcdir" = x.; then
1690 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
1691 fi
1692
1693 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1694
1695 DEFS=-DHAVE_CONFIG_H
1696
1697 # Without the "./", some shells look in PATH for config.status.
1698 : ${CONFIG_STATUS=./config.status}
1699
1700 echo creating $CONFIG_STATUS
1701 rm -f $CONFIG_STATUS
1702 cat > $CONFIG_STATUS <<EOF
1703 #! /bin/sh
1704 # Generated automatically by configure.
1705 # Run this file to recreate the current configuration.
1706 # This directory was configured as follows,
1707 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1708 #
1709 # $0 $ac_configure_args
1710 #
1711 # Compiler output produced by configure, useful for debugging
1712 # configure, is in ./config.log if it exists.
1713
1714 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1715 for ac_option
1716 do
1717 case "\$ac_option" in
1718 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1719 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1720 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1721 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1722 echo "$CONFIG_STATUS generated by autoconf version 2.13"
1723 exit 0 ;;
1724 -help | --help | --hel | --he | --h)
1725 echo "\$ac_cs_usage"; exit 0 ;;
1726 *) echo "\$ac_cs_usage"; exit 1 ;;
1727 esac
1728 done
1729
1730 ac_given_srcdir=$srcdir
1731 ac_given_INSTALL="$INSTALL"
1732
1733 trap 'rm -fr `echo "
1734 Makefile
1735 src/Makefile
1736 levels/Makefile
1737 images/Makefile
1738 images/arrows_yellow/Makefile
1739 images/flow_green/Makefile
1740 images/pipes_toys/Makefile
1741 images/default/Makefile
1742 images/flow_light/Makefile
1743 images/pipes_cables/Makefile
1744 images/pipes_wire/Makefile
1745 images/pipes_metal/Makefile
1746 images/arrows_grey/Makefile
1747 images/flow_blue/Makefile
1748 images/pipes_space/Makefile
1749 images/pipes_space/back01/Makefile
1750 images/pipes_space/back02/Makefile
1751 images/pipes_space/back03/Makefile
1752 images/pipes_space/back04/Makefile
1753 images/pipes_space/back05/Makefile
1754 man/Makefile
1755 src/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1756 EOF
1757 cat >> $CONFIG_STATUS <<EOF
1758
1759 # Protect against being on the right side of a sed subst in config.status.
1760 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1761 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1762 $ac_vpsub
1763 $extrasub
1764 s%@SHELL@%$SHELL%g
1765 s%@CFLAGS@%$CFLAGS%g
1766 s%@CPPFLAGS@%$CPPFLAGS%g
1767 s%@CXXFLAGS@%$CXXFLAGS%g
1768 s%@FFLAGS@%$FFLAGS%g
1769 s%@DEFS@%$DEFS%g
1770 s%@LDFLAGS@%$LDFLAGS%g
1771 s%@LIBS@%$LIBS%g
1772 s%@exec_prefix@%$exec_prefix%g
1773 s%@prefix@%$prefix%g
1774 s%@program_transform_name@%$program_transform_name%g
1775 s%@bindir@%$bindir%g
1776 s%@sbindir@%$sbindir%g
1777 s%@libexecdir@%$libexecdir%g
1778 s%@datadir@%$datadir%g
1779 s%@sysconfdir@%$sysconfdir%g
1780 s%@sharedstatedir@%$sharedstatedir%g
1781 s%@localstatedir@%$localstatedir%g
1782 s%@libdir@%$libdir%g
1783 s%@includedir@%$includedir%g
1784 s%@oldincludedir@%$oldincludedir%g
1785 s%@infodir@%$infodir%g
1786 s%@mandir@%$mandir%g
1787 s%@LEX@%$LEX%g
1788 s%@LEXLIB@%$LEXLIB%g
1789 s%@CPP@%$CPP%g
1790 s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%g
1791 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1792 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
1793 s%@INSTALL_DATA@%$INSTALL_DATA%g
1794 s%@PACKAGE@%$PACKAGE%g
1795 s%@VERSION@%$VERSION%g
1796 s%@ACLOCAL@%$ACLOCAL%g
1797 s%@AUTOCONF@%$AUTOCONF%g
1798 s%@AUTOMAKE@%$AUTOMAKE%g
1799 s%@AUTOHEADER@%$AUTOHEADER%g
1800 s%@MAKEINFO@%$MAKEINFO%g
1801 s%@SET_MAKE@%$SET_MAKE%g
1802 s%@CXX@%$CXX%g
1803 s%@target@%$target%g
1804 s%@target_alias@%$target_alias%g
1805 s%@target_cpu@%$target_cpu%g
1806 s%@target_vendor@%$target_vendor%g
1807 s%@target_os@%$target_os%g
1808 s%@SDL_CONFIG@%$SDL_CONFIG%g
1809 s%@SDL_CFLAGS@%$SDL_CFLAGS%g
1810 s%@SDL_LIBS@%$SDL_LIBS%g
1811 s%@LIBTOOL@%$LIBTOOL%g
1812
1813 CEOF
1814 EOF
1815
1816 cat >> $CONFIG_STATUS <<\EOF
1817
1818 # Split the substitutions into bite-sized pieces for seds with
1819 # small command number limits, like on Digital OSF/1 and HP-UX.
1820 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1821 ac_file=1 # Number of current file.
1822 ac_beg=1 # First line for current file.
1823 ac_end=$ac_max_sed_cmds # Line after last line for current file.
1824 ac_more_lines=:
1825 ac_sed_cmds=""
1826 while $ac_more_lines; do
1827 if test $ac_beg -gt 1; then
1828 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1829 else
1830 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1831 fi
1832 if test ! -s conftest.s$ac_file; then
1833 ac_more_lines=false
1834 rm -f conftest.s$ac_file
1835 else
1836 if test -z "$ac_sed_cmds"; then
1837 ac_sed_cmds="sed -f conftest.s$ac_file"
1838 else
1839 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1840 fi
1841 ac_file=`expr $ac_file + 1`
1842 ac_beg=$ac_end
1843 ac_end=`expr $ac_end + $ac_max_sed_cmds`
1844 fi
1845 done
1846 if test -z "$ac_sed_cmds"; then
1847 ac_sed_cmds=cat
1848 fi
1849 EOF
1850
1851 cat >> $CONFIG_STATUS <<EOF
1852
1853 CONFIG_FILES=\${CONFIG_FILES-"Makefile
1854 src/Makefile
1855 levels/Makefile
1856 images/Makefile
1857 images/arrows_yellow/Makefile
1858 images/flow_green/Makefile
1859 images/pipes_toys/Makefile
1860 images/default/Makefile
1861 images/flow_light/Makefile
1862 images/pipes_cables/Makefile
1863 images/pipes_wire/Makefile
1864 images/pipes_metal/Makefile
1865 images/arrows_grey/Makefile
1866 images/flow_blue/Makefile
1867 images/pipes_space/Makefile
1868 images/pipes_space/back01/Makefile
1869 images/pipes_space/back02/Makefile
1870 images/pipes_space/back03/Makefile
1871 images/pipes_space/back04/Makefile
1872 images/pipes_space/back05/Makefile
1873 man/Makefile
1874 "}
1875 EOF
1876 cat >> $CONFIG_STATUS <<\EOF
1877 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1878 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1879 case "$ac_file" in
1880 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1881 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1882 *) ac_file_in="${ac_file}.in" ;;
1883 esac
1884
1885 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1886
1887 # Remove last slash and all that follows it. Not all systems have dirname.
1888 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1889 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1890 # The file is in a subdirectory.
1891 test ! -d "$ac_dir" && mkdir "$ac_dir"
1892 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1893 # A "../" for each directory in $ac_dir_suffix.
1894 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1895 else
1896 ac_dir_suffix= ac_dots=
1897 fi
1898
1899 case "$ac_given_srcdir" in
1900 .) srcdir=.
1901 if test -z "$ac_dots"; then top_srcdir=.
1902 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1903 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1904 *) # Relative path.
1905 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1906 top_srcdir="$ac_dots$ac_given_srcdir" ;;
1907 esac
1908
1909 case "$ac_given_INSTALL" in
1910 [/$]*) INSTALL="$ac_given_INSTALL" ;;
1911 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1912 esac
1913
1914 echo creating "$ac_file"
1915 rm -f "$ac_file"
1916 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1917 case "$ac_file" in
1918 *Makefile*) ac_comsub="1i\\
1919 # $configure_input" ;;
1920 *) ac_comsub= ;;
1921 esac
1922
1923 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1924 sed -e "$ac_comsub
1925 s%@configure_input@%$configure_input%g
1926 s%@srcdir@%$srcdir%g
1927 s%@top_srcdir@%$top_srcdir%g
1928 s%@INSTALL@%$INSTALL%g
1929 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1930 fi; done
1931 rm -f conftest.s*
1932
1933 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
1934 # NAME is the cpp macro being defined and VALUE is the value it is being given.
1935 #
1936 # ac_d sets the value in "#define NAME VALUE" lines.
1937 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
1938 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
1939 ac_dC='\3'
1940 ac_dD='%g'
1941 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
1942 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1943 ac_uB='\([ ]\)%\1#\2define\3'
1944 ac_uC=' '
1945 ac_uD='\4%g'
1946 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
1947 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1948 ac_eB='$%\1#\2define\3'
1949 ac_eC=' '
1950 ac_eD='%g'
1951
1952 if test "${CONFIG_HEADERS+set}" != set; then
1953 EOF
1954 cat >> $CONFIG_STATUS <<EOF
1955 CONFIG_HEADERS="src/config.h"
1956 EOF
1957 cat >> $CONFIG_STATUS <<\EOF
1958 fi
1959 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
1960 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1961 case "$ac_file" in
1962 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1963 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1964 *) ac_file_in="${ac_file}.in" ;;
1965 esac
1966
1967 echo creating $ac_file
1968
1969 rm -f conftest.frag conftest.in conftest.out
1970 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1971 cat $ac_file_inputs > conftest.in
1972
1973 EOF
1974
1975 # Transform confdefs.h into a sed script conftest.vals that substitutes
1976 # the proper values into config.h.in to produce config.h. And first:
1977 # Protect against being on the right side of a sed subst in config.status.
1978 # Protect against being in an unquoted here document in config.status.
1979 rm -f conftest.vals
1980 cat > conftest.hdr <<\EOF
1981 s/[\\&%]/\\&/g
1982 s%[\\$`]%\\&%g
1983 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
1984 s%ac_d%ac_u%gp
1985 s%ac_u%ac_e%gp
1986 EOF
1987 sed -n -f conftest.hdr confdefs.h > conftest.vals
1988 rm -f conftest.hdr
1989
1990 # This sed command replaces #undef with comments. This is necessary, for
1991 # example, in the case of _POSIX_SOURCE, which is predefined and required
1992 # on some systems where configure will not decide to define it.
1993 cat >> conftest.vals <<\EOF
1994 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
1995 EOF
1996
1997 # Break up conftest.vals because some shells have a limit on
1998 # the size of here documents, and old seds have small limits too.
1999
2000 rm -f conftest.tail
2001 while :
2002 do
2003 ac_lines=`grep -c . conftest.vals`
2004 # grep -c gives empty output for an empty file on some AIX systems.
2005 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2006 # Write a limited-size here document to conftest.frag.
2007 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2008 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2009 echo 'CEOF
2010 sed -f conftest.frag conftest.in > conftest.out
2011 rm -f conftest.in
2012 mv conftest.out conftest.in
2013 ' >> $CONFIG_STATUS
2014 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2015 rm -f conftest.vals
2016 mv conftest.tail conftest.vals
2017 done
2018 rm -f conftest.vals
2019
2020 cat >> $CONFIG_STATUS <<\EOF
2021 rm -f conftest.frag conftest.h
2022 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
2023 cat conftest.in >> conftest.h
2024 rm -f conftest.in
2025 if cmp -s $ac_file conftest.h 2>/dev/null; then
2026 echo "$ac_file is unchanged"
2027 rm -f conftest.h
2028 else
2029 # Remove last slash and all that follows it. Not all systems have dirname.
2030 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2031 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2032 # The file is in a subdirectory.
2033 test ! -d "$ac_dir" && mkdir "$ac_dir"
2034 fi
2035 rm -f $ac_file
2036 mv conftest.h $ac_file
2037 fi
2038 fi; done
2039
2040 EOF
2041 cat >> $CONFIG_STATUS <<EOF
2042
2043
2044 EOF
2045 cat >> $CONFIG_STATUS <<\EOF
2046 test -z "$CONFIG_HEADERS" || echo timestamp > src/stamp-h
2047
2048 exit 0
2049 EOF
2050 chmod +x $CONFIG_STATUS
2051 rm -fr confdefs* $ac_clean_files
2052 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2053