Same fix as r45172 for classes/iconimage:
[AROS-Contrib.git] / Games / lbreakout2 / configure
blob35ca1492185a77d7e960dc36c7bf4d98d22e3e9d
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
49 done
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
96 rm -f conf$$.sh
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
154 esac
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
238 IFS=" $as_nl"
240 # CDPATH.
241 $as_unset CDPATH
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
249 exec 6>&1
252 # Initializations.
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
274 ac_unique_file="Makefile.am"
275 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE RANLIB ac_ct_RANLIB SDL_CONFIG SDL_CFLAGS SDL_LIBS warp_flag audio_flag mixer_flag build build_cpu build_vendor build_os host host_cpu host_vendor host_os doc_dir network_flag inst_flag hi_inst_flag inst_dir hi_dir win32_deps arch_flag ISCC win32_inst_script appname LIBOBJS LTLIBOBJS'
276 ac_subst_files=''
278 # Initialize some variables set by options.
279 ac_init_help=
280 ac_init_version=false
281 # The variables have the same names as the options, with
282 # dashes changed to underlines.
283 cache_file=/dev/null
284 exec_prefix=NONE
285 no_create=
286 no_recursion=
287 prefix=NONE
288 program_prefix=NONE
289 program_suffix=NONE
290 program_transform_name=s,x,x,
291 silent=
292 site=
293 srcdir=
294 verbose=
295 x_includes=NONE
296 x_libraries=NONE
298 # Installation directory options.
299 # These are left unexpanded so users can "make install exec_prefix=/foo"
300 # and all the variables that are supposed to be based on exec_prefix
301 # by default will actually change.
302 # Use braces instead of parens because sh, perl, etc. also accept them.
303 bindir='${exec_prefix}/bin'
304 sbindir='${exec_prefix}/sbin'
305 libexecdir='${exec_prefix}/libexec'
306 datadir='${prefix}/share'
307 sysconfdir='${prefix}/etc'
308 sharedstatedir='${prefix}/com'
309 localstatedir='${prefix}/var'
310 libdir='${exec_prefix}/lib'
311 includedir='${prefix}/include'
312 oldincludedir='/usr/include'
313 infodir='${prefix}/info'
314 mandir='${prefix}/man'
316 ac_prev=
317 for ac_option
319 # If the previous option needs an argument, assign it.
320 if test -n "$ac_prev"; then
321 eval "$ac_prev=\$ac_option"
322 ac_prev=
323 continue
326 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
328 # Accept the important Cygnus configure options, so we can diagnose typos.
330 case $ac_option in
332 -bindir | --bindir | --bindi | --bind | --bin | --bi)
333 ac_prev=bindir ;;
334 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
335 bindir=$ac_optarg ;;
337 -build | --build | --buil | --bui | --bu)
338 ac_prev=build_alias ;;
339 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
340 build_alias=$ac_optarg ;;
342 -cache-file | --cache-file | --cache-fil | --cache-fi \
343 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
344 ac_prev=cache_file ;;
345 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
346 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
347 cache_file=$ac_optarg ;;
349 --config-cache | -C)
350 cache_file=config.cache ;;
352 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
353 ac_prev=datadir ;;
354 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
355 | --da=*)
356 datadir=$ac_optarg ;;
358 -disable-* | --disable-*)
359 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
360 # Reject names that are not valid shell variable names.
361 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
362 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
363 { (exit 1); exit 1; }; }
364 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
365 eval "enable_$ac_feature=no" ;;
367 -enable-* | --enable-*)
368 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
369 # Reject names that are not valid shell variable names.
370 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
371 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
372 { (exit 1); exit 1; }; }
373 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
374 case $ac_option in
375 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
376 *) ac_optarg=yes ;;
377 esac
378 eval "enable_$ac_feature='$ac_optarg'" ;;
380 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
381 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
382 | --exec | --exe | --ex)
383 ac_prev=exec_prefix ;;
384 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
385 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
386 | --exec=* | --exe=* | --ex=*)
387 exec_prefix=$ac_optarg ;;
389 -gas | --gas | --ga | --g)
390 # Obsolete; use --with-gas.
391 with_gas=yes ;;
393 -help | --help | --hel | --he | -h)
394 ac_init_help=long ;;
395 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
396 ac_init_help=recursive ;;
397 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
398 ac_init_help=short ;;
400 -host | --host | --hos | --ho)
401 ac_prev=host_alias ;;
402 -host=* | --host=* | --hos=* | --ho=*)
403 host_alias=$ac_optarg ;;
405 -includedir | --includedir | --includedi | --included | --include \
406 | --includ | --inclu | --incl | --inc)
407 ac_prev=includedir ;;
408 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
409 | --includ=* | --inclu=* | --incl=* | --inc=*)
410 includedir=$ac_optarg ;;
412 -infodir | --infodir | --infodi | --infod | --info | --inf)
413 ac_prev=infodir ;;
414 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
415 infodir=$ac_optarg ;;
417 -libdir | --libdir | --libdi | --libd)
418 ac_prev=libdir ;;
419 -libdir=* | --libdir=* | --libdi=* | --libd=*)
420 libdir=$ac_optarg ;;
422 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
423 | --libexe | --libex | --libe)
424 ac_prev=libexecdir ;;
425 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
426 | --libexe=* | --libex=* | --libe=*)
427 libexecdir=$ac_optarg ;;
429 -localstatedir | --localstatedir | --localstatedi | --localstated \
430 | --localstate | --localstat | --localsta | --localst \
431 | --locals | --local | --loca | --loc | --lo)
432 ac_prev=localstatedir ;;
433 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
434 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
435 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
436 localstatedir=$ac_optarg ;;
438 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
439 ac_prev=mandir ;;
440 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
441 mandir=$ac_optarg ;;
443 -nfp | --nfp | --nf)
444 # Obsolete; use --without-fp.
445 with_fp=no ;;
447 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
448 | --no-cr | --no-c | -n)
449 no_create=yes ;;
451 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
452 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
453 no_recursion=yes ;;
455 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
456 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
457 | --oldin | --oldi | --old | --ol | --o)
458 ac_prev=oldincludedir ;;
459 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
460 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
461 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
462 oldincludedir=$ac_optarg ;;
464 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
465 ac_prev=prefix ;;
466 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
467 prefix=$ac_optarg ;;
469 -program-prefix | --program-prefix | --program-prefi | --program-pref \
470 | --program-pre | --program-pr | --program-p)
471 ac_prev=program_prefix ;;
472 -program-prefix=* | --program-prefix=* | --program-prefi=* \
473 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
474 program_prefix=$ac_optarg ;;
476 -program-suffix | --program-suffix | --program-suffi | --program-suff \
477 | --program-suf | --program-su | --program-s)
478 ac_prev=program_suffix ;;
479 -program-suffix=* | --program-suffix=* | --program-suffi=* \
480 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
481 program_suffix=$ac_optarg ;;
483 -program-transform-name | --program-transform-name \
484 | --program-transform-nam | --program-transform-na \
485 | --program-transform-n | --program-transform- \
486 | --program-transform | --program-transfor \
487 | --program-transfo | --program-transf \
488 | --program-trans | --program-tran \
489 | --progr-tra | --program-tr | --program-t)
490 ac_prev=program_transform_name ;;
491 -program-transform-name=* | --program-transform-name=* \
492 | --program-transform-nam=* | --program-transform-na=* \
493 | --program-transform-n=* | --program-transform-=* \
494 | --program-transform=* | --program-transfor=* \
495 | --program-transfo=* | --program-transf=* \
496 | --program-trans=* | --program-tran=* \
497 | --progr-tra=* | --program-tr=* | --program-t=*)
498 program_transform_name=$ac_optarg ;;
500 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
501 | -silent | --silent | --silen | --sile | --sil)
502 silent=yes ;;
504 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
505 ac_prev=sbindir ;;
506 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
507 | --sbi=* | --sb=*)
508 sbindir=$ac_optarg ;;
510 -sharedstatedir | --sharedstatedir | --sharedstatedi \
511 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
512 | --sharedst | --shareds | --shared | --share | --shar \
513 | --sha | --sh)
514 ac_prev=sharedstatedir ;;
515 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
516 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
517 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
518 | --sha=* | --sh=*)
519 sharedstatedir=$ac_optarg ;;
521 -site | --site | --sit)
522 ac_prev=site ;;
523 -site=* | --site=* | --sit=*)
524 site=$ac_optarg ;;
526 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
527 ac_prev=srcdir ;;
528 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
529 srcdir=$ac_optarg ;;
531 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
532 | --syscon | --sysco | --sysc | --sys | --sy)
533 ac_prev=sysconfdir ;;
534 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
535 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
536 sysconfdir=$ac_optarg ;;
538 -target | --target | --targe | --targ | --tar | --ta | --t)
539 ac_prev=target_alias ;;
540 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
541 target_alias=$ac_optarg ;;
543 -v | -verbose | --verbose | --verbos | --verbo | --verb)
544 verbose=yes ;;
546 -version | --version | --versio | --versi | --vers | -V)
547 ac_init_version=: ;;
549 -with-* | --with-*)
550 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
551 # Reject names that are not valid shell variable names.
552 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
553 { echo "$as_me: error: invalid package name: $ac_package" >&2
554 { (exit 1); exit 1; }; }
555 ac_package=`echo $ac_package| sed 's/-/_/g'`
556 case $ac_option in
557 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
558 *) ac_optarg=yes ;;
559 esac
560 eval "with_$ac_package='$ac_optarg'" ;;
562 -without-* | --without-*)
563 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
564 # Reject names that are not valid shell variable names.
565 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
566 { echo "$as_me: error: invalid package name: $ac_package" >&2
567 { (exit 1); exit 1; }; }
568 ac_package=`echo $ac_package | sed 's/-/_/g'`
569 eval "with_$ac_package=no" ;;
571 --x)
572 # Obsolete; use --with-x.
573 with_x=yes ;;
575 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
576 | --x-incl | --x-inc | --x-in | --x-i)
577 ac_prev=x_includes ;;
578 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
579 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
580 x_includes=$ac_optarg ;;
582 -x-libraries | --x-libraries | --x-librarie | --x-librari \
583 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
584 ac_prev=x_libraries ;;
585 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
586 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
587 x_libraries=$ac_optarg ;;
589 -*) { echo "$as_me: error: unrecognized option: $ac_option
590 Try \`$0 --help' for more information." >&2
591 { (exit 1); exit 1; }; }
594 *=*)
595 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
596 # Reject names that are not valid shell variable names.
597 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
598 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
599 { (exit 1); exit 1; }; }
600 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
601 eval "$ac_envvar='$ac_optarg'"
602 export $ac_envvar ;;
605 # FIXME: should be removed in autoconf 3.0.
606 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
607 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
608 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
609 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
612 esac
613 done
615 if test -n "$ac_prev"; then
616 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
617 { echo "$as_me: error: missing argument to $ac_option" >&2
618 { (exit 1); exit 1; }; }
621 # Be sure to have absolute paths.
622 for ac_var in exec_prefix prefix
624 eval ac_val=$`echo $ac_var`
625 case $ac_val in
626 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
627 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
628 { (exit 1); exit 1; }; };;
629 esac
630 done
632 # Be sure to have absolute paths.
633 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
634 localstatedir libdir includedir oldincludedir infodir mandir
636 eval ac_val=$`echo $ac_var`
637 case $ac_val in
638 [\\/$]* | ?:[\\/]* ) ;;
639 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
640 { (exit 1); exit 1; }; };;
641 esac
642 done
644 # There might be people who depend on the old broken behavior: `$host'
645 # used to hold the argument of --host etc.
646 # FIXME: To remove some day.
647 build=$build_alias
648 host=$host_alias
649 target=$target_alias
651 # FIXME: To remove some day.
652 if test "x$host_alias" != x; then
653 if test "x$build_alias" = x; then
654 cross_compiling=maybe
655 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
656 If a cross compiler is detected then cross compile mode will be used." >&2
657 elif test "x$build_alias" != "x$host_alias"; then
658 cross_compiling=yes
662 ac_tool_prefix=
663 test -n "$host_alias" && ac_tool_prefix=$host_alias-
665 test "$silent" = yes && exec 6>/dev/null
668 # Find the source files, if location was not specified.
669 if test -z "$srcdir"; then
670 ac_srcdir_defaulted=yes
671 # Try the directory containing this script, then its parent.
672 ac_confdir=`(dirname "$0") 2>/dev/null ||
673 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
674 X"$0" : 'X\(//\)[^/]' \| \
675 X"$0" : 'X\(//\)$' \| \
676 X"$0" : 'X\(/\)' \| \
677 . : '\(.\)' 2>/dev/null ||
678 echo X"$0" |
679 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
680 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
681 /^X\(\/\/\)$/{ s//\1/; q; }
682 /^X\(\/\).*/{ s//\1/; q; }
683 s/.*/./; q'`
684 srcdir=$ac_confdir
685 if test ! -r $srcdir/$ac_unique_file; then
686 srcdir=..
688 else
689 ac_srcdir_defaulted=no
691 if test ! -r $srcdir/$ac_unique_file; then
692 if test "$ac_srcdir_defaulted" = yes; then
693 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
694 { (exit 1); exit 1; }; }
695 else
696 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
697 { (exit 1); exit 1; }; }
700 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
701 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
702 { (exit 1); exit 1; }; }
703 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
704 ac_env_build_alias_set=${build_alias+set}
705 ac_env_build_alias_value=$build_alias
706 ac_cv_env_build_alias_set=${build_alias+set}
707 ac_cv_env_build_alias_value=$build_alias
708 ac_env_host_alias_set=${host_alias+set}
709 ac_env_host_alias_value=$host_alias
710 ac_cv_env_host_alias_set=${host_alias+set}
711 ac_cv_env_host_alias_value=$host_alias
712 ac_env_target_alias_set=${target_alias+set}
713 ac_env_target_alias_value=$target_alias
714 ac_cv_env_target_alias_set=${target_alias+set}
715 ac_cv_env_target_alias_value=$target_alias
716 ac_env_CC_set=${CC+set}
717 ac_env_CC_value=$CC
718 ac_cv_env_CC_set=${CC+set}
719 ac_cv_env_CC_value=$CC
720 ac_env_CFLAGS_set=${CFLAGS+set}
721 ac_env_CFLAGS_value=$CFLAGS
722 ac_cv_env_CFLAGS_set=${CFLAGS+set}
723 ac_cv_env_CFLAGS_value=$CFLAGS
724 ac_env_LDFLAGS_set=${LDFLAGS+set}
725 ac_env_LDFLAGS_value=$LDFLAGS
726 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
727 ac_cv_env_LDFLAGS_value=$LDFLAGS
728 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
729 ac_env_CPPFLAGS_value=$CPPFLAGS
730 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
731 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
734 # Report the --help message.
736 if test "$ac_init_help" = "long"; then
737 # Omit some internal or obsolete options to make the list less imposing.
738 # This message is too long to be a string in the A/UX 3.1 sh.
739 cat <<_ACEOF
740 \`configure' configures this package to adapt to many kinds of systems.
742 Usage: $0 [OPTION]... [VAR=VALUE]...
744 To assign environment variables (e.g., CC, CFLAGS...), specify them as
745 VAR=VALUE. See below for descriptions of some of the useful variables.
747 Defaults for the options are specified in brackets.
749 Configuration:
750 -h, --help display this help and exit
751 --help=short display options specific to this package
752 --help=recursive display the short help of all the included packages
753 -V, --version display version information and exit
754 -q, --quiet, --silent do not print \`checking...' messages
755 --cache-file=FILE cache test results in FILE [disabled]
756 -C, --config-cache alias for \`--cache-file=config.cache'
757 -n, --no-create do not create output files
758 --srcdir=DIR find the sources in DIR [configure dir or \`..']
760 _ACEOF
762 cat <<_ACEOF
763 Installation directories:
764 --prefix=PREFIX install architecture-independent files in PREFIX
765 [$ac_default_prefix]
766 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
767 [PREFIX]
769 By default, \`make install' will install all the files in
770 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
771 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
772 for instance \`--prefix=\$HOME'.
774 For better control, use the options below.
776 Fine tuning of the installation directories:
777 --bindir=DIR user executables [EPREFIX/bin]
778 --sbindir=DIR system admin executables [EPREFIX/sbin]
779 --libexecdir=DIR program executables [EPREFIX/libexec]
780 --datadir=DIR read-only architecture-independent data [PREFIX/share]
781 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
782 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
783 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
784 --libdir=DIR object code libraries [EPREFIX/lib]
785 --includedir=DIR C header files [PREFIX/include]
786 --oldincludedir=DIR C header files for non-gcc [/usr/include]
787 --infodir=DIR info documentation [PREFIX/info]
788 --mandir=DIR man documentation [PREFIX/man]
789 _ACEOF
791 cat <<\_ACEOF
793 Program names:
794 --program-prefix=PREFIX prepend PREFIX to installed program names
795 --program-suffix=SUFFIX append SUFFIX to installed program names
796 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
798 System types:
799 --build=BUILD configure for building on BUILD [guessed]
800 --host=HOST cross-compile to build programs to run on HOST [BUILD]
801 _ACEOF
804 if test -n "$ac_init_help"; then
806 cat <<\_ACEOF
808 Optional Features:
809 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
810 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
811 --disable-dependency-tracking Speeds up one-time builds
812 --enable-dependency-tracking Do not reject slow dependency extractors
813 --disable-sdltest Do not try to compile and run a test SDL program
814 --enable-warp Enable mouse warp (for BeOS and Mac)
815 --disable-audio Disables Audio
816 --disable-network No network support.
817 --disable-install No installation. Played from the source directory.
819 Optional Packages:
820 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
821 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
822 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
823 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
824 --with-doc-path=DPATH Directory where documentation is saved.
825 --with-highscore-path=HPATH Directory where global highscore chart is saved.
826 --with-inst-path=IPATH Directory where the game's data is places.
828 Some influential environment variables:
829 CC C compiler command
830 CFLAGS C compiler flags
831 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
832 nonstandard directory <lib dir>
833 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
834 headers in a nonstandard directory <include dir>
836 Use these variables to override the choices made by `configure' or to help
837 it to find libraries and programs with nonstandard names/locations.
839 _ACEOF
842 if test "$ac_init_help" = "recursive"; then
843 # If there are subdirs, report their specific --help.
844 ac_popdir=`pwd`
845 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
846 test -d $ac_dir || continue
847 ac_builddir=.
849 if test "$ac_dir" != .; then
850 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
851 # A "../" for each directory in $ac_dir_suffix.
852 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
853 else
854 ac_dir_suffix= ac_top_builddir=
857 case $srcdir in
858 .) # No --srcdir option. We are building in place.
859 ac_srcdir=.
860 if test -z "$ac_top_builddir"; then
861 ac_top_srcdir=.
862 else
863 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
864 fi ;;
865 [\\/]* | ?:[\\/]* ) # Absolute path.
866 ac_srcdir=$srcdir$ac_dir_suffix;
867 ac_top_srcdir=$srcdir ;;
868 *) # Relative path.
869 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
870 ac_top_srcdir=$ac_top_builddir$srcdir ;;
871 esac
873 # Do not use `cd foo && pwd` to compute absolute paths, because
874 # the directories may not exist.
875 case `pwd` in
876 .) ac_abs_builddir="$ac_dir";;
878 case "$ac_dir" in
879 .) ac_abs_builddir=`pwd`;;
880 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
881 *) ac_abs_builddir=`pwd`/"$ac_dir";;
882 esac;;
883 esac
884 case $ac_abs_builddir in
885 .) ac_abs_top_builddir=${ac_top_builddir}.;;
887 case ${ac_top_builddir}. in
888 .) ac_abs_top_builddir=$ac_abs_builddir;;
889 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
890 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
891 esac;;
892 esac
893 case $ac_abs_builddir in
894 .) ac_abs_srcdir=$ac_srcdir;;
896 case $ac_srcdir in
897 .) ac_abs_srcdir=$ac_abs_builddir;;
898 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
899 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
900 esac;;
901 esac
902 case $ac_abs_builddir in
903 .) ac_abs_top_srcdir=$ac_top_srcdir;;
905 case $ac_top_srcdir in
906 .) ac_abs_top_srcdir=$ac_abs_builddir;;
907 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
908 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
909 esac;;
910 esac
912 cd $ac_dir
913 # Check for guested configure; otherwise get Cygnus style configure.
914 if test -f $ac_srcdir/configure.gnu; then
915 echo
916 $SHELL $ac_srcdir/configure.gnu --help=recursive
917 elif test -f $ac_srcdir/configure; then
918 echo
919 $SHELL $ac_srcdir/configure --help=recursive
920 elif test -f $ac_srcdir/configure.ac ||
921 test -f $ac_srcdir/configure.in; then
922 echo
923 $ac_configure --help
924 else
925 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
927 cd $ac_popdir
928 done
931 test -n "$ac_init_help" && exit 0
932 if $ac_init_version; then
933 cat <<\_ACEOF
935 Copyright (C) 2003 Free Software Foundation, Inc.
936 This configure script is free software; the Free Software Foundation
937 gives unlimited permission to copy, distribute and modify it.
938 _ACEOF
939 exit 0
941 exec 5>config.log
942 cat >&5 <<_ACEOF
943 This file contains any messages produced by compilers while
944 running configure, to aid debugging if configure makes a mistake.
946 It was created by $as_me, which was
947 generated by GNU Autoconf 2.59. Invocation command line was
949 $ $0 $@
951 _ACEOF
953 cat <<_ASUNAME
954 ## --------- ##
955 ## Platform. ##
956 ## --------- ##
958 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
959 uname -m = `(uname -m) 2>/dev/null || echo unknown`
960 uname -r = `(uname -r) 2>/dev/null || echo unknown`
961 uname -s = `(uname -s) 2>/dev/null || echo unknown`
962 uname -v = `(uname -v) 2>/dev/null || echo unknown`
964 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
965 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
967 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
968 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
969 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
970 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
971 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
972 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
973 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
975 _ASUNAME
977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
978 for as_dir in $PATH
980 IFS=$as_save_IFS
981 test -z "$as_dir" && as_dir=.
982 echo "PATH: $as_dir"
983 done
985 } >&5
987 cat >&5 <<_ACEOF
990 ## ----------- ##
991 ## Core tests. ##
992 ## ----------- ##
994 _ACEOF
997 # Keep a trace of the command line.
998 # Strip out --no-create and --no-recursion so they do not pile up.
999 # Strip out --silent because we don't want to record it for future runs.
1000 # Also quote any args containing shell meta-characters.
1001 # Make two passes to allow for proper duplicate-argument suppression.
1002 ac_configure_args=
1003 ac_configure_args0=
1004 ac_configure_args1=
1005 ac_sep=
1006 ac_must_keep_next=false
1007 for ac_pass in 1 2
1009 for ac_arg
1011 case $ac_arg in
1012 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1013 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1014 | -silent | --silent | --silen | --sile | --sil)
1015 continue ;;
1016 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1017 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1018 esac
1019 case $ac_pass in
1020 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1022 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1023 if test $ac_must_keep_next = true; then
1024 ac_must_keep_next=false # Got value, back to normal.
1025 else
1026 case $ac_arg in
1027 *=* | --config-cache | -C | -disable-* | --disable-* \
1028 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1029 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1030 | -with-* | --with-* | -without-* | --without-* | --x)
1031 case "$ac_configure_args0 " in
1032 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1033 esac
1035 -* ) ac_must_keep_next=true ;;
1036 esac
1038 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1039 # Get rid of the leading space.
1040 ac_sep=" "
1042 esac
1043 done
1044 done
1045 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1046 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1048 # When interrupted or exit'd, cleanup temporary files, and complete
1049 # config.log. We remove comments because anyway the quotes in there
1050 # would cause problems or look ugly.
1051 # WARNING: Be sure not to use single quotes in there, as some shells,
1052 # such as our DU 5.0 friend, will then `close' the trap.
1053 trap 'exit_status=$?
1054 # Save into config.log some information that might help in debugging.
1056 echo
1058 cat <<\_ASBOX
1059 ## ---------------- ##
1060 ## Cache variables. ##
1061 ## ---------------- ##
1062 _ASBOX
1063 echo
1064 # The following way of writing the cache mishandles newlines in values,
1066 (set) 2>&1 |
1067 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1068 *ac_space=\ *)
1069 sed -n \
1070 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1071 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1074 sed -n \
1075 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1077 esac;
1079 echo
1081 cat <<\_ASBOX
1082 ## ----------------- ##
1083 ## Output variables. ##
1084 ## ----------------- ##
1085 _ASBOX
1086 echo
1087 for ac_var in $ac_subst_vars
1089 eval ac_val=$`echo $ac_var`
1090 echo "$ac_var='"'"'$ac_val'"'"'"
1091 done | sort
1092 echo
1094 if test -n "$ac_subst_files"; then
1095 cat <<\_ASBOX
1096 ## ------------- ##
1097 ## Output files. ##
1098 ## ------------- ##
1099 _ASBOX
1100 echo
1101 for ac_var in $ac_subst_files
1103 eval ac_val=$`echo $ac_var`
1104 echo "$ac_var='"'"'$ac_val'"'"'"
1105 done | sort
1106 echo
1109 if test -s confdefs.h; then
1110 cat <<\_ASBOX
1111 ## ----------- ##
1112 ## confdefs.h. ##
1113 ## ----------- ##
1114 _ASBOX
1115 echo
1116 sed "/^$/d" confdefs.h | sort
1117 echo
1119 test "$ac_signal" != 0 &&
1120 echo "$as_me: caught signal $ac_signal"
1121 echo "$as_me: exit $exit_status"
1122 } >&5
1123 rm -f core *.core &&
1124 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1125 exit $exit_status
1127 for ac_signal in 1 2 13 15; do
1128 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1129 done
1130 ac_signal=0
1132 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1133 rm -rf conftest* confdefs.h
1134 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1135 echo >confdefs.h
1137 # Predefined preprocessor variables.
1139 cat >>confdefs.h <<_ACEOF
1140 #define PACKAGE_NAME "$PACKAGE_NAME"
1141 _ACEOF
1144 cat >>confdefs.h <<_ACEOF
1145 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1146 _ACEOF
1149 cat >>confdefs.h <<_ACEOF
1150 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1151 _ACEOF
1154 cat >>confdefs.h <<_ACEOF
1155 #define PACKAGE_STRING "$PACKAGE_STRING"
1156 _ACEOF
1159 cat >>confdefs.h <<_ACEOF
1160 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1161 _ACEOF
1164 # Let the site file select an alternate cache file if it wants to.
1165 # Prefer explicitly selected file to automatically selected ones.
1166 if test -z "$CONFIG_SITE"; then
1167 if test "x$prefix" != xNONE; then
1168 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1169 else
1170 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1173 for ac_site_file in $CONFIG_SITE; do
1174 if test -r "$ac_site_file"; then
1175 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1176 echo "$as_me: loading site script $ac_site_file" >&6;}
1177 sed 's/^/| /' "$ac_site_file" >&5
1178 . "$ac_site_file"
1180 done
1182 if test -r "$cache_file"; then
1183 # Some versions of bash will fail to source /dev/null (special
1184 # files actually), so we avoid doing that.
1185 if test -f "$cache_file"; then
1186 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1187 echo "$as_me: loading cache $cache_file" >&6;}
1188 case $cache_file in
1189 [\\/]* | ?:[\\/]* ) . $cache_file;;
1190 *) . ./$cache_file;;
1191 esac
1193 else
1194 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1195 echo "$as_me: creating cache $cache_file" >&6;}
1196 >$cache_file
1199 # Check that the precious variables saved in the cache have kept the same
1200 # value.
1201 ac_cache_corrupted=false
1202 for ac_var in `(set) 2>&1 |
1203 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1204 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1205 eval ac_new_set=\$ac_env_${ac_var}_set
1206 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1207 eval ac_new_val="\$ac_env_${ac_var}_value"
1208 case $ac_old_set,$ac_new_set in
1209 set,)
1210 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1211 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1212 ac_cache_corrupted=: ;;
1213 ,set)
1214 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1215 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1216 ac_cache_corrupted=: ;;
1217 ,);;
1219 if test "x$ac_old_val" != "x$ac_new_val"; then
1220 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1221 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1222 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1223 echo "$as_me: former value: $ac_old_val" >&2;}
1224 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1225 echo "$as_me: current value: $ac_new_val" >&2;}
1226 ac_cache_corrupted=:
1227 fi;;
1228 esac
1229 # Pass precious variables to config.status.
1230 if test "$ac_new_set" = set; then
1231 case $ac_new_val in
1232 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1233 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1234 *) ac_arg=$ac_var=$ac_new_val ;;
1235 esac
1236 case " $ac_configure_args " in
1237 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1238 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1239 esac
1241 done
1242 if $ac_cache_corrupted; then
1243 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1244 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1245 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1246 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1247 { (exit 1); exit 1; }; }
1250 ac_ext=c
1251 ac_cpp='$CPP $CPPFLAGS'
1252 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1253 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1254 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1275 ac_config_headers="$ac_config_headers config.h"
1278 am__api_version="1.7"
1279 ac_aux_dir=
1280 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1281 if test -f $ac_dir/install-sh; then
1282 ac_aux_dir=$ac_dir
1283 ac_install_sh="$ac_aux_dir/install-sh -c"
1284 break
1285 elif test -f $ac_dir/install.sh; then
1286 ac_aux_dir=$ac_dir
1287 ac_install_sh="$ac_aux_dir/install.sh -c"
1288 break
1289 elif test -f $ac_dir/shtool; then
1290 ac_aux_dir=$ac_dir
1291 ac_install_sh="$ac_aux_dir/shtool install -c"
1292 break
1294 done
1295 if test -z "$ac_aux_dir"; then
1296 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1297 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1298 { (exit 1); exit 1; }; }
1300 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1301 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1302 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1304 # Find a good install program. We prefer a C program (faster),
1305 # so one script is as good as another. But avoid the broken or
1306 # incompatible versions:
1307 # SysV /etc/install, /usr/sbin/install
1308 # SunOS /usr/etc/install
1309 # IRIX /sbin/install
1310 # AIX /bin/install
1311 # AmigaOS /C/install, which installs bootblocks on floppy discs
1312 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1313 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1314 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1315 # OS/2's system install, which has a completely different semantic
1316 # ./install, which can be erroneously created by make from ./install.sh.
1317 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1318 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1319 if test -z "$INSTALL"; then
1320 if test "${ac_cv_path_install+set}" = set; then
1321 echo $ECHO_N "(cached) $ECHO_C" >&6
1322 else
1323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1324 for as_dir in $PATH
1326 IFS=$as_save_IFS
1327 test -z "$as_dir" && as_dir=.
1328 # Account for people who put trailing slashes in PATH elements.
1329 case $as_dir/ in
1330 ./ | .// | /cC/* | \
1331 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1332 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1333 /usr/ucb/* ) ;;
1335 # OSF1 and SCO ODT 3.0 have their own names for install.
1336 # Don't use installbsd from OSF since it installs stuff as root
1337 # by default.
1338 for ac_prog in ginstall scoinst install; do
1339 for ac_exec_ext in '' $ac_executable_extensions; do
1340 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1341 if test $ac_prog = install &&
1342 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1343 # AIX install. It has an incompatible calling convention.
1345 elif test $ac_prog = install &&
1346 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1347 # program-specific install script used by HP pwplus--don't use.
1349 else
1350 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1351 break 3
1354 done
1355 done
1357 esac
1358 done
1362 if test "${ac_cv_path_install+set}" = set; then
1363 INSTALL=$ac_cv_path_install
1364 else
1365 # As a last resort, use the slow shell script. We don't cache a
1366 # path for INSTALL within a source directory, because that will
1367 # break other packages using the cache if that directory is
1368 # removed, or if the path is relative.
1369 INSTALL=$ac_install_sh
1372 echo "$as_me:$LINENO: result: $INSTALL" >&5
1373 echo "${ECHO_T}$INSTALL" >&6
1375 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1376 # It thinks the first close brace ends the variable substitution.
1377 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1379 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1381 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1383 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1384 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1385 # Just in case
1386 sleep 1
1387 echo timestamp > conftest.file
1388 # Do `set' in a subshell so we don't clobber the current shell's
1389 # arguments. Must try -L first in case configure is actually a
1390 # symlink; some systems play weird games with the mod time of symlinks
1391 # (eg FreeBSD returns the mod time of the symlink's containing
1392 # directory).
1393 if (
1394 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1395 if test "$*" = "X"; then
1396 # -L didn't work.
1397 set X `ls -t $srcdir/configure conftest.file`
1399 rm -f conftest.file
1400 if test "$*" != "X $srcdir/configure conftest.file" \
1401 && test "$*" != "X conftest.file $srcdir/configure"; then
1403 # If neither matched, then we have a broken ls. This can happen
1404 # if, for instance, CONFIG_SHELL is bash and it inherits a
1405 # broken ls alias from the environment. This has actually
1406 # happened. Such a system could not be considered "sane".
1407 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1408 alias in your environment" >&5
1409 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1410 alias in your environment" >&2;}
1411 { (exit 1); exit 1; }; }
1414 test "$2" = conftest.file
1416 then
1417 # Ok.
1419 else
1420 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1421 Check your system clock" >&5
1422 echo "$as_me: error: newly created file is older than distributed files!
1423 Check your system clock" >&2;}
1424 { (exit 1); exit 1; }; }
1426 echo "$as_me:$LINENO: result: yes" >&5
1427 echo "${ECHO_T}yes" >&6
1428 test "$program_prefix" != NONE &&
1429 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1430 # Use a double $ so make ignores it.
1431 test "$program_suffix" != NONE &&
1432 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1433 # Double any \ or $. echo might interpret backslashes.
1434 # By default was `s,x,x', remove it if useless.
1435 cat <<\_ACEOF >conftest.sed
1436 s/[\\$]/&&/g;s/;s,x,x,$//
1437 _ACEOF
1438 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1439 rm conftest.sed
1442 # expand $ac_aux_dir to an absolute path
1443 am_aux_dir=`cd $ac_aux_dir && pwd`
1445 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1446 # Use eval to expand $SHELL
1447 if eval "$MISSING --run true"; then
1448 am_missing_run="$MISSING --run "
1449 else
1450 am_missing_run=
1451 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1452 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1455 for ac_prog in gawk mawk nawk awk
1457 # Extract the first word of "$ac_prog", so it can be a program name with args.
1458 set dummy $ac_prog; ac_word=$2
1459 echo "$as_me:$LINENO: checking for $ac_word" >&5
1460 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1461 if test "${ac_cv_prog_AWK+set}" = set; then
1462 echo $ECHO_N "(cached) $ECHO_C" >&6
1463 else
1464 if test -n "$AWK"; then
1465 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1466 else
1467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1468 for as_dir in $PATH
1470 IFS=$as_save_IFS
1471 test -z "$as_dir" && as_dir=.
1472 for ac_exec_ext in '' $ac_executable_extensions; do
1473 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1474 ac_cv_prog_AWK="$ac_prog"
1475 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1476 break 2
1478 done
1479 done
1483 AWK=$ac_cv_prog_AWK
1484 if test -n "$AWK"; then
1485 echo "$as_me:$LINENO: result: $AWK" >&5
1486 echo "${ECHO_T}$AWK" >&6
1487 else
1488 echo "$as_me:$LINENO: result: no" >&5
1489 echo "${ECHO_T}no" >&6
1492 test -n "$AWK" && break
1493 done
1495 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1496 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1497 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1498 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1499 echo $ECHO_N "(cached) $ECHO_C" >&6
1500 else
1501 cat >conftest.make <<\_ACEOF
1502 all:
1503 @echo 'ac_maketemp="$(MAKE)"'
1504 _ACEOF
1505 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1506 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1507 if test -n "$ac_maketemp"; then
1508 eval ac_cv_prog_make_${ac_make}_set=yes
1509 else
1510 eval ac_cv_prog_make_${ac_make}_set=no
1512 rm -f conftest.make
1514 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1515 echo "$as_me:$LINENO: result: yes" >&5
1516 echo "${ECHO_T}yes" >&6
1517 SET_MAKE=
1518 else
1519 echo "$as_me:$LINENO: result: no" >&5
1520 echo "${ECHO_T}no" >&6
1521 SET_MAKE="MAKE=${MAKE-make}"
1524 rm -rf .tst 2>/dev/null
1525 mkdir .tst 2>/dev/null
1526 if test -d .tst; then
1527 am__leading_dot=.
1528 else
1529 am__leading_dot=_
1531 rmdir .tst 2>/dev/null
1533 # test to see if srcdir already configured
1534 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1535 test -f $srcdir/config.status; then
1536 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1537 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1538 { (exit 1); exit 1; }; }
1541 # test whether we have cygpath
1542 if test -z "$CYGPATH_W"; then
1543 if (cygpath --version) >/dev/null 2>/dev/null; then
1544 CYGPATH_W='cygpath -w'
1545 else
1546 CYGPATH_W=echo
1551 # Define the identity of the package.
1552 PACKAGE=lbreakout2
1553 VERSION=2.4.1
1556 cat >>confdefs.h <<_ACEOF
1557 #define PACKAGE "$PACKAGE"
1558 _ACEOF
1561 cat >>confdefs.h <<_ACEOF
1562 #define VERSION "$VERSION"
1563 _ACEOF
1565 # Some tools Automake needs.
1567 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1570 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1573 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1576 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1579 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1582 AMTAR=${AMTAR-"${am_missing_run}tar"}
1584 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1586 # Installed binaries are usually stripped using `strip' when the user
1587 # run `make install-strip'. However `strip' might not be the right
1588 # tool to use in cross-compilation environments, therefore Automake
1589 # will honor the `STRIP' environment variable to overrule this program.
1590 if test "$cross_compiling" != no; then
1591 if test -n "$ac_tool_prefix"; then
1592 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1593 set dummy ${ac_tool_prefix}strip; ac_word=$2
1594 echo "$as_me:$LINENO: checking for $ac_word" >&5
1595 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1596 if test "${ac_cv_prog_STRIP+set}" = set; then
1597 echo $ECHO_N "(cached) $ECHO_C" >&6
1598 else
1599 if test -n "$STRIP"; then
1600 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1601 else
1602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1603 for as_dir in $PATH
1605 IFS=$as_save_IFS
1606 test -z "$as_dir" && as_dir=.
1607 for ac_exec_ext in '' $ac_executable_extensions; do
1608 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1609 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1610 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1611 break 2
1613 done
1614 done
1618 STRIP=$ac_cv_prog_STRIP
1619 if test -n "$STRIP"; then
1620 echo "$as_me:$LINENO: result: $STRIP" >&5
1621 echo "${ECHO_T}$STRIP" >&6
1622 else
1623 echo "$as_me:$LINENO: result: no" >&5
1624 echo "${ECHO_T}no" >&6
1628 if test -z "$ac_cv_prog_STRIP"; then
1629 ac_ct_STRIP=$STRIP
1630 # Extract the first word of "strip", so it can be a program name with args.
1631 set dummy strip; ac_word=$2
1632 echo "$as_me:$LINENO: checking for $ac_word" >&5
1633 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1634 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1635 echo $ECHO_N "(cached) $ECHO_C" >&6
1636 else
1637 if test -n "$ac_ct_STRIP"; then
1638 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1639 else
1640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1641 for as_dir in $PATH
1643 IFS=$as_save_IFS
1644 test -z "$as_dir" && as_dir=.
1645 for ac_exec_ext in '' $ac_executable_extensions; do
1646 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1647 ac_cv_prog_ac_ct_STRIP="strip"
1648 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1649 break 2
1651 done
1652 done
1654 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1657 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1658 if test -n "$ac_ct_STRIP"; then
1659 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1660 echo "${ECHO_T}$ac_ct_STRIP" >&6
1661 else
1662 echo "$as_me:$LINENO: result: no" >&5
1663 echo "${ECHO_T}no" >&6
1666 STRIP=$ac_ct_STRIP
1667 else
1668 STRIP="$ac_cv_prog_STRIP"
1672 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1674 # We need awk for the "check" target. The system "awk" is bad on
1675 # some platforms.
1680 ac_ext=c
1681 ac_cpp='$CPP $CPPFLAGS'
1682 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1683 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1684 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1685 if test -n "$ac_tool_prefix"; then
1686 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1687 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1688 echo "$as_me:$LINENO: checking for $ac_word" >&5
1689 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1690 if test "${ac_cv_prog_CC+set}" = set; then
1691 echo $ECHO_N "(cached) $ECHO_C" >&6
1692 else
1693 if test -n "$CC"; then
1694 ac_cv_prog_CC="$CC" # Let the user override the test.
1695 else
1696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1697 for as_dir in $PATH
1699 IFS=$as_save_IFS
1700 test -z "$as_dir" && as_dir=.
1701 for ac_exec_ext in '' $ac_executable_extensions; do
1702 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1703 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1704 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1705 break 2
1707 done
1708 done
1712 CC=$ac_cv_prog_CC
1713 if test -n "$CC"; then
1714 echo "$as_me:$LINENO: result: $CC" >&5
1715 echo "${ECHO_T}$CC" >&6
1716 else
1717 echo "$as_me:$LINENO: result: no" >&5
1718 echo "${ECHO_T}no" >&6
1722 if test -z "$ac_cv_prog_CC"; then
1723 ac_ct_CC=$CC
1724 # Extract the first word of "gcc", so it can be a program name with args.
1725 set dummy gcc; ac_word=$2
1726 echo "$as_me:$LINENO: checking for $ac_word" >&5
1727 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1728 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1729 echo $ECHO_N "(cached) $ECHO_C" >&6
1730 else
1731 if test -n "$ac_ct_CC"; then
1732 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1733 else
1734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1735 for as_dir in $PATH
1737 IFS=$as_save_IFS
1738 test -z "$as_dir" && as_dir=.
1739 for ac_exec_ext in '' $ac_executable_extensions; do
1740 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1741 ac_cv_prog_ac_ct_CC="gcc"
1742 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1743 break 2
1745 done
1746 done
1750 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1751 if test -n "$ac_ct_CC"; then
1752 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1753 echo "${ECHO_T}$ac_ct_CC" >&6
1754 else
1755 echo "$as_me:$LINENO: result: no" >&5
1756 echo "${ECHO_T}no" >&6
1759 CC=$ac_ct_CC
1760 else
1761 CC="$ac_cv_prog_CC"
1764 if test -z "$CC"; then
1765 if test -n "$ac_tool_prefix"; then
1766 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1767 set dummy ${ac_tool_prefix}cc; ac_word=$2
1768 echo "$as_me:$LINENO: checking for $ac_word" >&5
1769 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1770 if test "${ac_cv_prog_CC+set}" = set; then
1771 echo $ECHO_N "(cached) $ECHO_C" >&6
1772 else
1773 if test -n "$CC"; then
1774 ac_cv_prog_CC="$CC" # Let the user override the test.
1775 else
1776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1777 for as_dir in $PATH
1779 IFS=$as_save_IFS
1780 test -z "$as_dir" && as_dir=.
1781 for ac_exec_ext in '' $ac_executable_extensions; do
1782 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1783 ac_cv_prog_CC="${ac_tool_prefix}cc"
1784 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1785 break 2
1787 done
1788 done
1792 CC=$ac_cv_prog_CC
1793 if test -n "$CC"; then
1794 echo "$as_me:$LINENO: result: $CC" >&5
1795 echo "${ECHO_T}$CC" >&6
1796 else
1797 echo "$as_me:$LINENO: result: no" >&5
1798 echo "${ECHO_T}no" >&6
1802 if test -z "$ac_cv_prog_CC"; then
1803 ac_ct_CC=$CC
1804 # Extract the first word of "cc", so it can be a program name with args.
1805 set dummy cc; ac_word=$2
1806 echo "$as_me:$LINENO: checking for $ac_word" >&5
1807 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1808 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1809 echo $ECHO_N "(cached) $ECHO_C" >&6
1810 else
1811 if test -n "$ac_ct_CC"; then
1812 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1813 else
1814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1815 for as_dir in $PATH
1817 IFS=$as_save_IFS
1818 test -z "$as_dir" && as_dir=.
1819 for ac_exec_ext in '' $ac_executable_extensions; do
1820 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1821 ac_cv_prog_ac_ct_CC="cc"
1822 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1823 break 2
1825 done
1826 done
1830 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1831 if test -n "$ac_ct_CC"; then
1832 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1833 echo "${ECHO_T}$ac_ct_CC" >&6
1834 else
1835 echo "$as_me:$LINENO: result: no" >&5
1836 echo "${ECHO_T}no" >&6
1839 CC=$ac_ct_CC
1840 else
1841 CC="$ac_cv_prog_CC"
1845 if test -z "$CC"; then
1846 # Extract the first word of "cc", so it can be a program name with args.
1847 set dummy cc; ac_word=$2
1848 echo "$as_me:$LINENO: checking for $ac_word" >&5
1849 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1850 if test "${ac_cv_prog_CC+set}" = set; then
1851 echo $ECHO_N "(cached) $ECHO_C" >&6
1852 else
1853 if test -n "$CC"; then
1854 ac_cv_prog_CC="$CC" # Let the user override the test.
1855 else
1856 ac_prog_rejected=no
1857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1858 for as_dir in $PATH
1860 IFS=$as_save_IFS
1861 test -z "$as_dir" && as_dir=.
1862 for ac_exec_ext in '' $ac_executable_extensions; do
1863 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1864 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1865 ac_prog_rejected=yes
1866 continue
1868 ac_cv_prog_CC="cc"
1869 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1870 break 2
1872 done
1873 done
1875 if test $ac_prog_rejected = yes; then
1876 # We found a bogon in the path, so make sure we never use it.
1877 set dummy $ac_cv_prog_CC
1878 shift
1879 if test $# != 0; then
1880 # We chose a different compiler from the bogus one.
1881 # However, it has the same basename, so the bogon will be chosen
1882 # first if we set CC to just the basename; use the full file name.
1883 shift
1884 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1889 CC=$ac_cv_prog_CC
1890 if test -n "$CC"; then
1891 echo "$as_me:$LINENO: result: $CC" >&5
1892 echo "${ECHO_T}$CC" >&6
1893 else
1894 echo "$as_me:$LINENO: result: no" >&5
1895 echo "${ECHO_T}no" >&6
1899 if test -z "$CC"; then
1900 if test -n "$ac_tool_prefix"; then
1901 for ac_prog in cl
1903 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1904 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1905 echo "$as_me:$LINENO: checking for $ac_word" >&5
1906 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1907 if test "${ac_cv_prog_CC+set}" = set; then
1908 echo $ECHO_N "(cached) $ECHO_C" >&6
1909 else
1910 if test -n "$CC"; then
1911 ac_cv_prog_CC="$CC" # Let the user override the test.
1912 else
1913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1914 for as_dir in $PATH
1916 IFS=$as_save_IFS
1917 test -z "$as_dir" && as_dir=.
1918 for ac_exec_ext in '' $ac_executable_extensions; do
1919 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1920 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1921 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1922 break 2
1924 done
1925 done
1929 CC=$ac_cv_prog_CC
1930 if test -n "$CC"; then
1931 echo "$as_me:$LINENO: result: $CC" >&5
1932 echo "${ECHO_T}$CC" >&6
1933 else
1934 echo "$as_me:$LINENO: result: no" >&5
1935 echo "${ECHO_T}no" >&6
1938 test -n "$CC" && break
1939 done
1941 if test -z "$CC"; then
1942 ac_ct_CC=$CC
1943 for ac_prog in cl
1945 # Extract the first word of "$ac_prog", so it can be a program name with args.
1946 set dummy $ac_prog; ac_word=$2
1947 echo "$as_me:$LINENO: checking for $ac_word" >&5
1948 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1949 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1950 echo $ECHO_N "(cached) $ECHO_C" >&6
1951 else
1952 if test -n "$ac_ct_CC"; then
1953 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1954 else
1955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1956 for as_dir in $PATH
1958 IFS=$as_save_IFS
1959 test -z "$as_dir" && as_dir=.
1960 for ac_exec_ext in '' $ac_executable_extensions; do
1961 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1962 ac_cv_prog_ac_ct_CC="$ac_prog"
1963 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1964 break 2
1966 done
1967 done
1971 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1972 if test -n "$ac_ct_CC"; then
1973 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1974 echo "${ECHO_T}$ac_ct_CC" >&6
1975 else
1976 echo "$as_me:$LINENO: result: no" >&5
1977 echo "${ECHO_T}no" >&6
1980 test -n "$ac_ct_CC" && break
1981 done
1983 CC=$ac_ct_CC
1989 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1990 See \`config.log' for more details." >&5
1991 echo "$as_me: error: no acceptable C compiler found in \$PATH
1992 See \`config.log' for more details." >&2;}
1993 { (exit 1); exit 1; }; }
1995 # Provide some information about the compiler.
1996 echo "$as_me:$LINENO:" \
1997 "checking for C compiler version" >&5
1998 ac_compiler=`set X $ac_compile; echo $2`
1999 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2000 (eval $ac_compiler --version </dev/null >&5) 2>&5
2001 ac_status=$?
2002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2003 (exit $ac_status); }
2004 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2005 (eval $ac_compiler -v </dev/null >&5) 2>&5
2006 ac_status=$?
2007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2008 (exit $ac_status); }
2009 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2010 (eval $ac_compiler -V </dev/null >&5) 2>&5
2011 ac_status=$?
2012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2013 (exit $ac_status); }
2015 cat >conftest.$ac_ext <<_ACEOF
2016 /* confdefs.h. */
2017 _ACEOF
2018 cat confdefs.h >>conftest.$ac_ext
2019 cat >>conftest.$ac_ext <<_ACEOF
2020 /* end confdefs.h. */
2023 main ()
2027 return 0;
2029 _ACEOF
2030 ac_clean_files_save=$ac_clean_files
2031 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2032 # Try to create an executable without -o first, disregard a.out.
2033 # It will help us diagnose broken compilers, and finding out an intuition
2034 # of exeext.
2035 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2036 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2037 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2038 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2039 (eval $ac_link_default) 2>&5
2040 ac_status=$?
2041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2042 (exit $ac_status); }; then
2043 # Find the output, starting from the most likely. This scheme is
2044 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2045 # resort.
2047 # Be careful to initialize this variable, since it used to be cached.
2048 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2049 ac_cv_exeext=
2050 # b.out is created by i960 compilers.
2051 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2053 test -f "$ac_file" || continue
2054 case $ac_file in
2055 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2057 conftest.$ac_ext )
2058 # This is the source file.
2060 [ab].out )
2061 # We found the default executable, but exeext='' is most
2062 # certainly right.
2063 break;;
2064 *.* )
2065 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2066 # FIXME: I believe we export ac_cv_exeext for Libtool,
2067 # but it would be cool to find out if it's true. Does anybody
2068 # maintain Libtool? --akim.
2069 export ac_cv_exeext
2070 break;;
2072 break;;
2073 esac
2074 done
2075 else
2076 echo "$as_me: failed program was:" >&5
2077 sed 's/^/| /' conftest.$ac_ext >&5
2079 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2080 See \`config.log' for more details." >&5
2081 echo "$as_me: error: C compiler cannot create executables
2082 See \`config.log' for more details." >&2;}
2083 { (exit 77); exit 77; }; }
2086 ac_exeext=$ac_cv_exeext
2087 echo "$as_me:$LINENO: result: $ac_file" >&5
2088 echo "${ECHO_T}$ac_file" >&6
2090 # Check the compiler produces executables we can run. If not, either
2091 # the compiler is broken, or we cross compile.
2092 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2093 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2094 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2095 # If not cross compiling, check that we can run a simple program.
2096 if test "$cross_compiling" != yes; then
2097 if { ac_try='./$ac_file'
2098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2099 (eval $ac_try) 2>&5
2100 ac_status=$?
2101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2102 (exit $ac_status); }; }; then
2103 cross_compiling=no
2104 else
2105 if test "$cross_compiling" = maybe; then
2106 cross_compiling=yes
2107 else
2108 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2109 If you meant to cross compile, use \`--host'.
2110 See \`config.log' for more details." >&5
2111 echo "$as_me: error: cannot run C compiled programs.
2112 If you meant to cross compile, use \`--host'.
2113 See \`config.log' for more details." >&2;}
2114 { (exit 1); exit 1; }; }
2118 echo "$as_me:$LINENO: result: yes" >&5
2119 echo "${ECHO_T}yes" >&6
2121 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2122 ac_clean_files=$ac_clean_files_save
2123 # Check the compiler produces executables we can run. If not, either
2124 # the compiler is broken, or we cross compile.
2125 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2126 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2127 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2128 echo "${ECHO_T}$cross_compiling" >&6
2130 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2131 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2133 (eval $ac_link) 2>&5
2134 ac_status=$?
2135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2136 (exit $ac_status); }; then
2137 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2138 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2139 # work properly (i.e., refer to `conftest.exe'), while it won't with
2140 # `rm'.
2141 for ac_file in conftest.exe conftest conftest.*; do
2142 test -f "$ac_file" || continue
2143 case $ac_file in
2144 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2145 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2146 export ac_cv_exeext
2147 break;;
2148 * ) break;;
2149 esac
2150 done
2151 else
2152 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2153 See \`config.log' for more details." >&5
2154 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2155 See \`config.log' for more details." >&2;}
2156 { (exit 1); exit 1; }; }
2159 rm -f conftest$ac_cv_exeext
2160 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2161 echo "${ECHO_T}$ac_cv_exeext" >&6
2163 rm -f conftest.$ac_ext
2164 EXEEXT=$ac_cv_exeext
2165 ac_exeext=$EXEEXT
2166 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2167 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2168 if test "${ac_cv_objext+set}" = set; then
2169 echo $ECHO_N "(cached) $ECHO_C" >&6
2170 else
2171 cat >conftest.$ac_ext <<_ACEOF
2172 /* confdefs.h. */
2173 _ACEOF
2174 cat confdefs.h >>conftest.$ac_ext
2175 cat >>conftest.$ac_ext <<_ACEOF
2176 /* end confdefs.h. */
2179 main ()
2183 return 0;
2185 _ACEOF
2186 rm -f conftest.o conftest.obj
2187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2188 (eval $ac_compile) 2>&5
2189 ac_status=$?
2190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2191 (exit $ac_status); }; then
2192 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2193 case $ac_file in
2194 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2195 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2196 break;;
2197 esac
2198 done
2199 else
2200 echo "$as_me: failed program was:" >&5
2201 sed 's/^/| /' conftest.$ac_ext >&5
2203 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2204 See \`config.log' for more details." >&5
2205 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2206 See \`config.log' for more details." >&2;}
2207 { (exit 1); exit 1; }; }
2210 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2212 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2213 echo "${ECHO_T}$ac_cv_objext" >&6
2214 OBJEXT=$ac_cv_objext
2215 ac_objext=$OBJEXT
2216 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2217 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2218 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2219 echo $ECHO_N "(cached) $ECHO_C" >&6
2220 else
2221 cat >conftest.$ac_ext <<_ACEOF
2222 /* confdefs.h. */
2223 _ACEOF
2224 cat confdefs.h >>conftest.$ac_ext
2225 cat >>conftest.$ac_ext <<_ACEOF
2226 /* end confdefs.h. */
2229 main ()
2231 #ifndef __GNUC__
2232 choke me
2233 #endif
2236 return 0;
2238 _ACEOF
2239 rm -f conftest.$ac_objext
2240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2241 (eval $ac_compile) 2>conftest.er1
2242 ac_status=$?
2243 grep -v '^ *+' conftest.er1 >conftest.err
2244 rm -f conftest.er1
2245 cat conftest.err >&5
2246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2247 (exit $ac_status); } &&
2248 { ac_try='test -z "$ac_c_werror_flag"
2249 || test ! -s conftest.err'
2250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2251 (eval $ac_try) 2>&5
2252 ac_status=$?
2253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2254 (exit $ac_status); }; } &&
2255 { ac_try='test -s conftest.$ac_objext'
2256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2257 (eval $ac_try) 2>&5
2258 ac_status=$?
2259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2260 (exit $ac_status); }; }; then
2261 ac_compiler_gnu=yes
2262 else
2263 echo "$as_me: failed program was:" >&5
2264 sed 's/^/| /' conftest.$ac_ext >&5
2266 ac_compiler_gnu=no
2268 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2269 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2272 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2273 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2274 GCC=`test $ac_compiler_gnu = yes && echo yes`
2275 ac_test_CFLAGS=${CFLAGS+set}
2276 ac_save_CFLAGS=$CFLAGS
2277 CFLAGS="-g"
2278 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2279 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2280 if test "${ac_cv_prog_cc_g+set}" = set; then
2281 echo $ECHO_N "(cached) $ECHO_C" >&6
2282 else
2283 cat >conftest.$ac_ext <<_ACEOF
2284 /* confdefs.h. */
2285 _ACEOF
2286 cat confdefs.h >>conftest.$ac_ext
2287 cat >>conftest.$ac_ext <<_ACEOF
2288 /* end confdefs.h. */
2291 main ()
2295 return 0;
2297 _ACEOF
2298 rm -f conftest.$ac_objext
2299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2300 (eval $ac_compile) 2>conftest.er1
2301 ac_status=$?
2302 grep -v '^ *+' conftest.er1 >conftest.err
2303 rm -f conftest.er1
2304 cat conftest.err >&5
2305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2306 (exit $ac_status); } &&
2307 { ac_try='test -z "$ac_c_werror_flag"
2308 || test ! -s conftest.err'
2309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2310 (eval $ac_try) 2>&5
2311 ac_status=$?
2312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2313 (exit $ac_status); }; } &&
2314 { ac_try='test -s conftest.$ac_objext'
2315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2316 (eval $ac_try) 2>&5
2317 ac_status=$?
2318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2319 (exit $ac_status); }; }; then
2320 ac_cv_prog_cc_g=yes
2321 else
2322 echo "$as_me: failed program was:" >&5
2323 sed 's/^/| /' conftest.$ac_ext >&5
2325 ac_cv_prog_cc_g=no
2327 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2329 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2330 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2331 if test "$ac_test_CFLAGS" = set; then
2332 CFLAGS=$ac_save_CFLAGS
2333 elif test $ac_cv_prog_cc_g = yes; then
2334 if test "$GCC" = yes; then
2335 CFLAGS="-g -O2"
2336 else
2337 CFLAGS="-g"
2339 else
2340 if test "$GCC" = yes; then
2341 CFLAGS="-O2"
2342 else
2343 CFLAGS=
2346 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2347 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2348 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2349 echo $ECHO_N "(cached) $ECHO_C" >&6
2350 else
2351 ac_cv_prog_cc_stdc=no
2352 ac_save_CC=$CC
2353 cat >conftest.$ac_ext <<_ACEOF
2354 /* confdefs.h. */
2355 _ACEOF
2356 cat confdefs.h >>conftest.$ac_ext
2357 cat >>conftest.$ac_ext <<_ACEOF
2358 /* end confdefs.h. */
2359 #include <stdarg.h>
2360 #include <stdio.h>
2361 #include <sys/types.h>
2362 #include <sys/stat.h>
2363 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2364 struct buf { int x; };
2365 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2366 static char *e (p, i)
2367 char **p;
2368 int i;
2370 return p[i];
2372 static char *f (char * (*g) (char **, int), char **p, ...)
2374 char *s;
2375 va_list v;
2376 va_start (v,p);
2377 s = g (p, va_arg (v,int));
2378 va_end (v);
2379 return s;
2382 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2383 function prototypes and stuff, but not '\xHH' hex character constants.
2384 These don't provoke an error unfortunately, instead are silently treated
2385 as 'x'. The following induces an error, until -std1 is added to get
2386 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2387 array size at least. It's necessary to write '\x00'==0 to get something
2388 that's true only with -std1. */
2389 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2391 int test (int i, double x);
2392 struct s1 {int (*f) (int a);};
2393 struct s2 {int (*f) (double a);};
2394 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2395 int argc;
2396 char **argv;
2398 main ()
2400 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2402 return 0;
2404 _ACEOF
2405 # Don't try gcc -ansi; that turns off useful extensions and
2406 # breaks some systems' header files.
2407 # AIX -qlanglvl=ansi
2408 # Ultrix and OSF/1 -std1
2409 # HP-UX 10.20 and later -Ae
2410 # HP-UX older versions -Aa -D_HPUX_SOURCE
2411 # SVR4 -Xc -D__EXTENSIONS__
2412 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2414 CC="$ac_save_CC $ac_arg"
2415 rm -f conftest.$ac_objext
2416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2417 (eval $ac_compile) 2>conftest.er1
2418 ac_status=$?
2419 grep -v '^ *+' conftest.er1 >conftest.err
2420 rm -f conftest.er1
2421 cat conftest.err >&5
2422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2423 (exit $ac_status); } &&
2424 { ac_try='test -z "$ac_c_werror_flag"
2425 || test ! -s conftest.err'
2426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2427 (eval $ac_try) 2>&5
2428 ac_status=$?
2429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2430 (exit $ac_status); }; } &&
2431 { ac_try='test -s conftest.$ac_objext'
2432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2433 (eval $ac_try) 2>&5
2434 ac_status=$?
2435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2436 (exit $ac_status); }; }; then
2437 ac_cv_prog_cc_stdc=$ac_arg
2438 break
2439 else
2440 echo "$as_me: failed program was:" >&5
2441 sed 's/^/| /' conftest.$ac_ext >&5
2444 rm -f conftest.err conftest.$ac_objext
2445 done
2446 rm -f conftest.$ac_ext conftest.$ac_objext
2447 CC=$ac_save_CC
2451 case "x$ac_cv_prog_cc_stdc" in
2452 x|xno)
2453 echo "$as_me:$LINENO: result: none needed" >&5
2454 echo "${ECHO_T}none needed" >&6 ;;
2456 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2457 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2458 CC="$CC $ac_cv_prog_cc_stdc" ;;
2459 esac
2461 # Some people use a C++ compiler to compile C. Since we use `exit',
2462 # in C++ we need to declare it. In case someone uses the same compiler
2463 # for both compiling C and C++ we need to have the C++ compiler decide
2464 # the declaration of exit, since it's the most demanding environment.
2465 cat >conftest.$ac_ext <<_ACEOF
2466 #ifndef __cplusplus
2467 choke me
2468 #endif
2469 _ACEOF
2470 rm -f conftest.$ac_objext
2471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2472 (eval $ac_compile) 2>conftest.er1
2473 ac_status=$?
2474 grep -v '^ *+' conftest.er1 >conftest.err
2475 rm -f conftest.er1
2476 cat conftest.err >&5
2477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2478 (exit $ac_status); } &&
2479 { ac_try='test -z "$ac_c_werror_flag"
2480 || test ! -s conftest.err'
2481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2482 (eval $ac_try) 2>&5
2483 ac_status=$?
2484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2485 (exit $ac_status); }; } &&
2486 { ac_try='test -s conftest.$ac_objext'
2487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2488 (eval $ac_try) 2>&5
2489 ac_status=$?
2490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2491 (exit $ac_status); }; }; then
2492 for ac_declaration in \
2493 '' \
2494 'extern "C" void std::exit (int) throw (); using std::exit;' \
2495 'extern "C" void std::exit (int); using std::exit;' \
2496 'extern "C" void exit (int) throw ();' \
2497 'extern "C" void exit (int);' \
2498 'void exit (int);'
2500 cat >conftest.$ac_ext <<_ACEOF
2501 /* confdefs.h. */
2502 _ACEOF
2503 cat confdefs.h >>conftest.$ac_ext
2504 cat >>conftest.$ac_ext <<_ACEOF
2505 /* end confdefs.h. */
2506 $ac_declaration
2507 #include <stdlib.h>
2509 main ()
2511 exit (42);
2513 return 0;
2515 _ACEOF
2516 rm -f conftest.$ac_objext
2517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2518 (eval $ac_compile) 2>conftest.er1
2519 ac_status=$?
2520 grep -v '^ *+' conftest.er1 >conftest.err
2521 rm -f conftest.er1
2522 cat conftest.err >&5
2523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2524 (exit $ac_status); } &&
2525 { ac_try='test -z "$ac_c_werror_flag"
2526 || test ! -s conftest.err'
2527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2528 (eval $ac_try) 2>&5
2529 ac_status=$?
2530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2531 (exit $ac_status); }; } &&
2532 { ac_try='test -s conftest.$ac_objext'
2533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2534 (eval $ac_try) 2>&5
2535 ac_status=$?
2536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2537 (exit $ac_status); }; }; then
2539 else
2540 echo "$as_me: failed program was:" >&5
2541 sed 's/^/| /' conftest.$ac_ext >&5
2543 continue
2545 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2546 cat >conftest.$ac_ext <<_ACEOF
2547 /* confdefs.h. */
2548 _ACEOF
2549 cat confdefs.h >>conftest.$ac_ext
2550 cat >>conftest.$ac_ext <<_ACEOF
2551 /* end confdefs.h. */
2552 $ac_declaration
2554 main ()
2556 exit (42);
2558 return 0;
2560 _ACEOF
2561 rm -f conftest.$ac_objext
2562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2563 (eval $ac_compile) 2>conftest.er1
2564 ac_status=$?
2565 grep -v '^ *+' conftest.er1 >conftest.err
2566 rm -f conftest.er1
2567 cat conftest.err >&5
2568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2569 (exit $ac_status); } &&
2570 { ac_try='test -z "$ac_c_werror_flag"
2571 || test ! -s conftest.err'
2572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2573 (eval $ac_try) 2>&5
2574 ac_status=$?
2575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2576 (exit $ac_status); }; } &&
2577 { ac_try='test -s conftest.$ac_objext'
2578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2579 (eval $ac_try) 2>&5
2580 ac_status=$?
2581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2582 (exit $ac_status); }; }; then
2583 break
2584 else
2585 echo "$as_me: failed program was:" >&5
2586 sed 's/^/| /' conftest.$ac_ext >&5
2589 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2590 done
2591 rm -f conftest*
2592 if test -n "$ac_declaration"; then
2593 echo '#ifdef __cplusplus' >>confdefs.h
2594 echo $ac_declaration >>confdefs.h
2595 echo '#endif' >>confdefs.h
2598 else
2599 echo "$as_me: failed program was:" >&5
2600 sed 's/^/| /' conftest.$ac_ext >&5
2603 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2604 ac_ext=c
2605 ac_cpp='$CPP $CPPFLAGS'
2606 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2607 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2608 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2609 DEPDIR="${am__leading_dot}deps"
2611 ac_config_commands="$ac_config_commands depfiles"
2614 am_make=${MAKE-make}
2615 cat > confinc << 'END'
2616 am__doit:
2617 @echo done
2618 .PHONY: am__doit
2620 # If we don't find an include directive, just comment out the code.
2621 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2622 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2623 am__include="#"
2624 am__quote=
2625 _am_result=none
2626 # First try GNU make style include.
2627 echo "include confinc" > confmf
2628 # We grep out `Entering directory' and `Leaving directory'
2629 # messages which can occur if `w' ends up in MAKEFLAGS.
2630 # In particular we don't look at `^make:' because GNU make might
2631 # be invoked under some other name (usually "gmake"), in which
2632 # case it prints its new name instead of `make'.
2633 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2634 am__include=include
2635 am__quote=
2636 _am_result=GNU
2638 # Now try BSD make style include.
2639 if test "$am__include" = "#"; then
2640 echo '.include "confinc"' > confmf
2641 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2642 am__include=.include
2643 am__quote="\""
2644 _am_result=BSD
2649 echo "$as_me:$LINENO: result: $_am_result" >&5
2650 echo "${ECHO_T}$_am_result" >&6
2651 rm -f confinc confmf
2653 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2654 if test "${enable_dependency_tracking+set}" = set; then
2655 enableval="$enable_dependency_tracking"
2658 if test "x$enable_dependency_tracking" != xno; then
2659 am_depcomp="$ac_aux_dir/depcomp"
2660 AMDEPBACKSLASH='\'
2664 if test "x$enable_dependency_tracking" != xno; then
2665 AMDEP_TRUE=
2666 AMDEP_FALSE='#'
2667 else
2668 AMDEP_TRUE='#'
2669 AMDEP_FALSE=
2675 depcc="$CC" am_compiler_list=
2677 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2678 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2679 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2680 echo $ECHO_N "(cached) $ECHO_C" >&6
2681 else
2682 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2683 # We make a subdir and do the tests there. Otherwise we can end up
2684 # making bogus files that we don't know about and never remove. For
2685 # instance it was reported that on HP-UX the gcc test will end up
2686 # making a dummy file named `D' -- because `-MD' means `put the output
2687 # in D'.
2688 mkdir conftest.dir
2689 # Copy depcomp to subdir because otherwise we won't find it if we're
2690 # using a relative directory.
2691 cp "$am_depcomp" conftest.dir
2692 cd conftest.dir
2693 # We will build objects and dependencies in a subdirectory because
2694 # it helps to detect inapplicable dependency modes. For instance
2695 # both Tru64's cc and ICC support -MD to output dependencies as a
2696 # side effect of compilation, but ICC will put the dependencies in
2697 # the current directory while Tru64 will put them in the object
2698 # directory.
2699 mkdir sub
2701 am_cv_CC_dependencies_compiler_type=none
2702 if test "$am_compiler_list" = ""; then
2703 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2705 for depmode in $am_compiler_list; do
2706 # Setup a source with many dependencies, because some compilers
2707 # like to wrap large dependency lists on column 80 (with \), and
2708 # we should not choose a depcomp mode which is confused by this.
2710 # We need to recreate these files for each test, as the compiler may
2711 # overwrite some of them when testing with obscure command lines.
2712 # This happens at least with the AIX C compiler.
2713 : > sub/conftest.c
2714 for i in 1 2 3 4 5 6; do
2715 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2716 : > sub/conftst$i.h
2717 done
2718 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2720 case $depmode in
2721 nosideeffect)
2722 # after this tag, mechanisms are not by side-effect, so they'll
2723 # only be used when explicitly requested
2724 if test "x$enable_dependency_tracking" = xyes; then
2725 continue
2726 else
2727 break
2730 none) break ;;
2731 esac
2732 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2733 # mode. It turns out that the SunPro C++ compiler does not properly
2734 # handle `-M -o', and we need to detect this.
2735 if depmode=$depmode \
2736 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2737 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2738 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2739 >/dev/null 2>conftest.err &&
2740 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2741 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2742 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2743 # icc doesn't choke on unknown options, it will just issue warnings
2744 # (even with -Werror). So we grep stderr for any message
2745 # that says an option was ignored.
2746 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
2747 am_cv_CC_dependencies_compiler_type=$depmode
2748 break
2751 done
2753 cd ..
2754 rm -rf conftest.dir
2755 else
2756 am_cv_CC_dependencies_compiler_type=none
2760 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2761 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2762 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2767 test "x$enable_dependency_tracking" != xno \
2768 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2769 am__fastdepCC_TRUE=
2770 am__fastdepCC_FALSE='#'
2771 else
2772 am__fastdepCC_TRUE='#'
2773 am__fastdepCC_FALSE=
2777 if test -n "$ac_tool_prefix"; then
2778 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2779 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2780 echo "$as_me:$LINENO: checking for $ac_word" >&5
2781 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2782 if test "${ac_cv_prog_RANLIB+set}" = set; then
2783 echo $ECHO_N "(cached) $ECHO_C" >&6
2784 else
2785 if test -n "$RANLIB"; then
2786 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2787 else
2788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2789 for as_dir in $PATH
2791 IFS=$as_save_IFS
2792 test -z "$as_dir" && as_dir=.
2793 for ac_exec_ext in '' $ac_executable_extensions; do
2794 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2795 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2796 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2797 break 2
2799 done
2800 done
2804 RANLIB=$ac_cv_prog_RANLIB
2805 if test -n "$RANLIB"; then
2806 echo "$as_me:$LINENO: result: $RANLIB" >&5
2807 echo "${ECHO_T}$RANLIB" >&6
2808 else
2809 echo "$as_me:$LINENO: result: no" >&5
2810 echo "${ECHO_T}no" >&6
2814 if test -z "$ac_cv_prog_RANLIB"; then
2815 ac_ct_RANLIB=$RANLIB
2816 # Extract the first word of "ranlib", so it can be a program name with args.
2817 set dummy ranlib; ac_word=$2
2818 echo "$as_me:$LINENO: checking for $ac_word" >&5
2819 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2820 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2821 echo $ECHO_N "(cached) $ECHO_C" >&6
2822 else
2823 if test -n "$ac_ct_RANLIB"; then
2824 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2825 else
2826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2827 for as_dir in $PATH
2829 IFS=$as_save_IFS
2830 test -z "$as_dir" && as_dir=.
2831 for ac_exec_ext in '' $ac_executable_extensions; do
2832 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2833 ac_cv_prog_ac_ct_RANLIB="ranlib"
2834 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2835 break 2
2837 done
2838 done
2840 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2843 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2844 if test -n "$ac_ct_RANLIB"; then
2845 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2846 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2847 else
2848 echo "$as_me:$LINENO: result: no" >&5
2849 echo "${ECHO_T}no" >&6
2852 RANLIB=$ac_ct_RANLIB
2853 else
2854 RANLIB="$ac_cv_prog_RANLIB"
2861 echo "$as_me:$LINENO: checking for main in -lm" >&5
2862 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
2863 if test "${ac_cv_lib_m_main+set}" = set; then
2864 echo $ECHO_N "(cached) $ECHO_C" >&6
2865 else
2866 ac_check_lib_save_LIBS=$LIBS
2867 LIBS="-lm $LIBS"
2868 cat >conftest.$ac_ext <<_ACEOF
2869 /* confdefs.h. */
2870 _ACEOF
2871 cat confdefs.h >>conftest.$ac_ext
2872 cat >>conftest.$ac_ext <<_ACEOF
2873 /* end confdefs.h. */
2877 main ()
2879 main ();
2881 return 0;
2883 _ACEOF
2884 rm -f conftest.$ac_objext conftest$ac_exeext
2885 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2886 (eval $ac_link) 2>conftest.er1
2887 ac_status=$?
2888 grep -v '^ *+' conftest.er1 >conftest.err
2889 rm -f conftest.er1
2890 cat conftest.err >&5
2891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892 (exit $ac_status); } &&
2893 { ac_try='test -z "$ac_c_werror_flag"
2894 || test ! -s conftest.err'
2895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2896 (eval $ac_try) 2>&5
2897 ac_status=$?
2898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2899 (exit $ac_status); }; } &&
2900 { ac_try='test -s conftest$ac_exeext'
2901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2902 (eval $ac_try) 2>&5
2903 ac_status=$?
2904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2905 (exit $ac_status); }; }; then
2906 ac_cv_lib_m_main=yes
2907 else
2908 echo "$as_me: failed program was:" >&5
2909 sed 's/^/| /' conftest.$ac_ext >&5
2911 ac_cv_lib_m_main=no
2913 rm -f conftest.err conftest.$ac_objext \
2914 conftest$ac_exeext conftest.$ac_ext
2915 LIBS=$ac_check_lib_save_LIBS
2917 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
2918 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
2919 if test $ac_cv_lib_m_main = yes; then
2920 cat >>confdefs.h <<_ACEOF
2921 #define HAVE_LIBM 1
2922 _ACEOF
2924 LIBS="-lm $LIBS"
2926 else
2927 { { echo "$as_me:$LINENO: error: lib math is needed" >&5
2928 echo "$as_me: error: lib math is needed" >&2;}
2929 { (exit 1); exit 1; }; }
2933 echo "$as_me:$LINENO: checking for main in -lz" >&5
2934 echo $ECHO_N "checking for main in -lz... $ECHO_C" >&6
2935 if test "${ac_cv_lib_z_main+set}" = set; then
2936 echo $ECHO_N "(cached) $ECHO_C" >&6
2937 else
2938 ac_check_lib_save_LIBS=$LIBS
2939 LIBS="-lz $LIBS"
2940 cat >conftest.$ac_ext <<_ACEOF
2941 /* confdefs.h. */
2942 _ACEOF
2943 cat confdefs.h >>conftest.$ac_ext
2944 cat >>conftest.$ac_ext <<_ACEOF
2945 /* end confdefs.h. */
2949 main ()
2951 main ();
2953 return 0;
2955 _ACEOF
2956 rm -f conftest.$ac_objext conftest$ac_exeext
2957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2958 (eval $ac_link) 2>conftest.er1
2959 ac_status=$?
2960 grep -v '^ *+' conftest.er1 >conftest.err
2961 rm -f conftest.er1
2962 cat conftest.err >&5
2963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2964 (exit $ac_status); } &&
2965 { ac_try='test -z "$ac_c_werror_flag"
2966 || test ! -s conftest.err'
2967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2968 (eval $ac_try) 2>&5
2969 ac_status=$?
2970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2971 (exit $ac_status); }; } &&
2972 { ac_try='test -s conftest$ac_exeext'
2973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2974 (eval $ac_try) 2>&5
2975 ac_status=$?
2976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2977 (exit $ac_status); }; }; then
2978 ac_cv_lib_z_main=yes
2979 else
2980 echo "$as_me: failed program was:" >&5
2981 sed 's/^/| /' conftest.$ac_ext >&5
2983 ac_cv_lib_z_main=no
2985 rm -f conftest.err conftest.$ac_objext \
2986 conftest$ac_exeext conftest.$ac_ext
2987 LIBS=$ac_check_lib_save_LIBS
2989 echo "$as_me:$LINENO: result: $ac_cv_lib_z_main" >&5
2990 echo "${ECHO_T}$ac_cv_lib_z_main" >&6
2991 if test $ac_cv_lib_z_main = yes; then
2992 cat >>confdefs.h <<_ACEOF
2993 #define HAVE_LIBZ 1
2994 _ACEOF
2996 LIBS="-lz $LIBS"
2998 else
2999 { { echo "$as_me:$LINENO: error: libz is needed" >&5
3000 echo "$as_me: error: libz is needed" >&2;}
3001 { (exit 1); exit 1; }; }
3005 echo "$as_me:$LINENO: checking for main in -lpng" >&5
3006 echo $ECHO_N "checking for main in -lpng... $ECHO_C" >&6
3007 if test "${ac_cv_lib_png_main+set}" = set; then
3008 echo $ECHO_N "(cached) $ECHO_C" >&6
3009 else
3010 ac_check_lib_save_LIBS=$LIBS
3011 LIBS="-lpng $LIBS"
3012 cat >conftest.$ac_ext <<_ACEOF
3013 /* confdefs.h. */
3014 _ACEOF
3015 cat confdefs.h >>conftest.$ac_ext
3016 cat >>conftest.$ac_ext <<_ACEOF
3017 /* end confdefs.h. */
3021 main ()
3023 main ();
3025 return 0;
3027 _ACEOF
3028 rm -f conftest.$ac_objext conftest$ac_exeext
3029 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3030 (eval $ac_link) 2>conftest.er1
3031 ac_status=$?
3032 grep -v '^ *+' conftest.er1 >conftest.err
3033 rm -f conftest.er1
3034 cat conftest.err >&5
3035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3036 (exit $ac_status); } &&
3037 { ac_try='test -z "$ac_c_werror_flag"
3038 || test ! -s conftest.err'
3039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3040 (eval $ac_try) 2>&5
3041 ac_status=$?
3042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3043 (exit $ac_status); }; } &&
3044 { ac_try='test -s conftest$ac_exeext'
3045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3046 (eval $ac_try) 2>&5
3047 ac_status=$?
3048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3049 (exit $ac_status); }; }; then
3050 ac_cv_lib_png_main=yes
3051 else
3052 echo "$as_me: failed program was:" >&5
3053 sed 's/^/| /' conftest.$ac_ext >&5
3055 ac_cv_lib_png_main=no
3057 rm -f conftest.err conftest.$ac_objext \
3058 conftest$ac_exeext conftest.$ac_ext
3059 LIBS=$ac_check_lib_save_LIBS
3061 echo "$as_me:$LINENO: result: $ac_cv_lib_png_main" >&5
3062 echo "${ECHO_T}$ac_cv_lib_png_main" >&6
3063 if test $ac_cv_lib_png_main = yes; then
3064 cat >>confdefs.h <<_ACEOF
3065 #define HAVE_LIBPNG 1
3066 _ACEOF
3068 LIBS="-lpng $LIBS"
3070 else
3071 { { echo "$as_me:$LINENO: error: libpng is needed" >&5
3072 echo "$as_me: error: libpng is needed" >&2;}
3073 { (exit 1); exit 1; }; }
3077 CFLAGS="$CFLAGS -Wall"
3080 # Check whether --with-sdl-prefix or --without-sdl-prefix was given.
3081 if test "${with_sdl_prefix+set}" = set; then
3082 withval="$with_sdl_prefix"
3083 sdl_prefix="$withval"
3084 else
3085 sdl_prefix=""
3088 # Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
3089 if test "${with_sdl_exec_prefix+set}" = set; then
3090 withval="$with_sdl_exec_prefix"
3091 sdl_exec_prefix="$withval"
3092 else
3093 sdl_exec_prefix=""
3095 # Check whether --enable-sdltest or --disable-sdltest was given.
3096 if test "${enable_sdltest+set}" = set; then
3097 enableval="$enable_sdltest"
3099 else
3100 enable_sdltest=yes
3103 if test x$sdl_exec_prefix != x ; then
3104 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
3105 if test x${SDL_CONFIG+set} != xset ; then
3106 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
3109 if test x$sdl_prefix != x ; then
3110 sdl_args="$sdl_args --prefix=$sdl_prefix"
3111 if test x${SDL_CONFIG+set} != xset ; then
3112 SDL_CONFIG=$sdl_prefix/bin/sdl-config
3116 # Extract the first word of "sdl-config", so it can be a program name with args.
3117 set dummy sdl-config; ac_word=$2
3118 echo "$as_me:$LINENO: checking for $ac_word" >&5
3119 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3120 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
3121 echo $ECHO_N "(cached) $ECHO_C" >&6
3122 else
3123 case $SDL_CONFIG in
3124 [\\/]* | ?:[\\/]*)
3125 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
3128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3129 for as_dir in $PATH
3131 IFS=$as_save_IFS
3132 test -z "$as_dir" && as_dir=.
3133 for ac_exec_ext in '' $ac_executable_extensions; do
3134 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3135 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3136 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3137 break 2
3139 done
3140 done
3142 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
3144 esac
3146 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
3148 if test -n "$SDL_CONFIG"; then
3149 echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
3150 echo "${ECHO_T}$SDL_CONFIG" >&6
3151 else
3152 echo "$as_me:$LINENO: result: no" >&5
3153 echo "${ECHO_T}no" >&6
3156 min_sdl_version=1.2.0
3157 echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
3158 echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
3159 no_sdl=""
3160 if test "$SDL_CONFIG" = "no" ; then
3161 no_sdl=yes
3162 else
3163 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
3164 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
3166 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
3167 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
3168 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
3169 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
3170 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
3171 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
3172 if test "x$enable_sdltest" = "xyes" ; then
3173 ac_save_CFLAGS="$CFLAGS"
3174 ac_save_LIBS="$LIBS"
3175 CFLAGS="$CFLAGS $SDL_CFLAGS"
3176 LIBS="$LIBS $SDL_LIBS"
3177 rm -f conf.sdltest
3178 if test "$cross_compiling" = yes; then
3179 echo $ac_n "cross compiling; assumed OK... $ac_c"
3180 else
3181 cat >conftest.$ac_ext <<_ACEOF
3182 /* confdefs.h. */
3183 _ACEOF
3184 cat confdefs.h >>conftest.$ac_ext
3185 cat >>conftest.$ac_ext <<_ACEOF
3186 /* end confdefs.h. */
3188 #include <stdio.h>
3189 #include <stdlib.h>
3190 #include <string.h>
3191 #include "SDL.h"
3193 char*
3194 my_strdup (char *str)
3196 char *new_str;
3198 if (str)
3200 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
3201 strcpy (new_str, str);
3203 else
3204 new_str = NULL;
3206 return new_str;
3209 int main (int argc, char *argv[])
3211 int major, minor, micro;
3212 char *tmp_version;
3214 /* This hangs on some systems (?)
3215 system ("touch conf.sdltest");
3217 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
3219 /* HP/UX 9 (%@#!) writes to sscanf strings */
3220 tmp_version = my_strdup("$min_sdl_version");
3221 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
3222 printf("%s, bad version string\n", "$min_sdl_version");
3223 exit(1);
3226 if (($sdl_major_version > major) ||
3227 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
3228 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
3230 return 0;
3232 else
3234 return 1;
3239 _ACEOF
3240 rm -f conftest$ac_exeext
3241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3242 (eval $ac_link) 2>&5
3243 ac_status=$?
3244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3245 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3247 (eval $ac_try) 2>&5
3248 ac_status=$?
3249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3250 (exit $ac_status); }; }; then
3252 else
3253 echo "$as_me: program exited with status $ac_status" >&5
3254 echo "$as_me: failed program was:" >&5
3255 sed 's/^/| /' conftest.$ac_ext >&5
3257 ( exit $ac_status )
3258 no_sdl=yes
3260 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3262 CFLAGS="$ac_save_CFLAGS"
3263 LIBS="$ac_save_LIBS"
3266 if test "x$no_sdl" = x ; then
3267 echo "$as_me:$LINENO: result: yes" >&5
3268 echo "${ECHO_T}yes" >&6
3270 else
3271 echo "$as_me:$LINENO: result: no" >&5
3272 echo "${ECHO_T}no" >&6
3273 if test "$SDL_CONFIG" = "no" ; then
3274 echo "*** The sdl-config script installed by SDL could not be found"
3275 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
3276 echo "*** your path, or set the SDL_CONFIG environment variable to the"
3277 echo "*** full path to sdl-config."
3278 else
3279 if test -f conf.sdltest ; then
3281 else
3282 echo "*** Could not run SDL test program, checking why..."
3283 CFLAGS="$CFLAGS $SDL_CFLAGS"
3284 LIBS="$LIBS $SDL_LIBS"
3285 cat >conftest.$ac_ext <<_ACEOF
3286 /* confdefs.h. */
3287 _ACEOF
3288 cat confdefs.h >>conftest.$ac_ext
3289 cat >>conftest.$ac_ext <<_ACEOF
3290 /* end confdefs.h. */
3292 #include <stdio.h>
3293 #include "SDL.h"
3296 main ()
3298 return 0;
3300 return 0;
3302 _ACEOF
3303 rm -f conftest.$ac_objext conftest$ac_exeext
3304 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3305 (eval $ac_link) 2>conftest.er1
3306 ac_status=$?
3307 grep -v '^ *+' conftest.er1 >conftest.err
3308 rm -f conftest.er1
3309 cat conftest.err >&5
3310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3311 (exit $ac_status); } &&
3312 { ac_try='test -z "$ac_c_werror_flag"
3313 || test ! -s conftest.err'
3314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3315 (eval $ac_try) 2>&5
3316 ac_status=$?
3317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3318 (exit $ac_status); }; } &&
3319 { ac_try='test -s conftest$ac_exeext'
3320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3321 (eval $ac_try) 2>&5
3322 ac_status=$?
3323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3324 (exit $ac_status); }; }; then
3325 echo "*** The test program compiled, but did not run. This usually means"
3326 echo "*** that the run-time linker is not finding SDL or finding the wrong"
3327 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
3328 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
3329 echo "*** to the installed location Also, make sure you have run ldconfig if that"
3330 echo "*** is required on your system"
3331 echo "***"
3332 echo "*** If you have an old version installed, it is best to remove it, although"
3333 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
3334 else
3335 echo "$as_me: failed program was:" >&5
3336 sed 's/^/| /' conftest.$ac_ext >&5
3338 echo "*** The test program failed to compile or link. See the file config.log for the"
3339 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
3340 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
3341 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
3343 rm -f conftest.err conftest.$ac_objext \
3344 conftest$ac_exeext conftest.$ac_ext
3345 CFLAGS="$ac_save_CFLAGS"
3346 LIBS="$ac_save_LIBS"
3349 SDL_CFLAGS=""
3350 SDL_LIBS=""
3351 { { echo "$as_me:$LINENO: error: lib SDL is needed" >&5
3352 echo "$as_me: error: lib SDL is needed" >&2;}
3353 { (exit 1); exit 1; }; }
3357 rm -f conf.sdltest
3359 CFLAGS="$CFLAGS $SDL_CFLAGS"
3360 LIBS="$LIBS $SDL_LIBS"
3362 warp_flag=""
3363 # Check whether --enable-warp or --disable-warp was given.
3364 if test "${enable_warp+set}" = set; then
3365 enableval="$enable_warp"
3366 warp_flag="-DMOUSE_WARP"
3370 audio_flag="-DAUDIO_ENABLED"
3371 mixer_flag="-lSDL_mixer"
3372 # Check whether --enable-audio or --disable-audio was given.
3373 if test "${enable_audio+set}" = set; then
3374 enableval="$enable_audio"
3375 audio_flag=""; mixer_flag=""
3378 echo "$as_me:$LINENO: checking for main in -lSDL_mixer" >&5
3379 echo $ECHO_N "checking for main in -lSDL_mixer... $ECHO_C" >&6
3380 if test "${ac_cv_lib_SDL_mixer_main+set}" = set; then
3381 echo $ECHO_N "(cached) $ECHO_C" >&6
3382 else
3383 ac_check_lib_save_LIBS=$LIBS
3384 LIBS="-lSDL_mixer $LIBS"
3385 cat >conftest.$ac_ext <<_ACEOF
3386 /* confdefs.h. */
3387 _ACEOF
3388 cat confdefs.h >>conftest.$ac_ext
3389 cat >>conftest.$ac_ext <<_ACEOF
3390 /* end confdefs.h. */
3394 main ()
3396 main ();
3398 return 0;
3400 _ACEOF
3401 rm -f conftest.$ac_objext conftest$ac_exeext
3402 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3403 (eval $ac_link) 2>conftest.er1
3404 ac_status=$?
3405 grep -v '^ *+' conftest.er1 >conftest.err
3406 rm -f conftest.er1
3407 cat conftest.err >&5
3408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3409 (exit $ac_status); } &&
3410 { ac_try='test -z "$ac_c_werror_flag"
3411 || test ! -s conftest.err'
3412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3413 (eval $ac_try) 2>&5
3414 ac_status=$?
3415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3416 (exit $ac_status); }; } &&
3417 { ac_try='test -s conftest$ac_exeext'
3418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3419 (eval $ac_try) 2>&5
3420 ac_status=$?
3421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3422 (exit $ac_status); }; }; then
3423 ac_cv_lib_SDL_mixer_main=yes
3424 else
3425 echo "$as_me: failed program was:" >&5
3426 sed 's/^/| /' conftest.$ac_ext >&5
3428 ac_cv_lib_SDL_mixer_main=no
3430 rm -f conftest.err conftest.$ac_objext \
3431 conftest$ac_exeext conftest.$ac_ext
3432 LIBS=$ac_check_lib_save_LIBS
3434 echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_mixer_main" >&5
3435 echo "${ECHO_T}$ac_cv_lib_SDL_mixer_main" >&6
3436 if test $ac_cv_lib_SDL_mixer_main = yes; then
3437 echo "$as_me:$LINENO: result: \"SDL_Mixer found\"" >&5
3438 echo "${ECHO_T}\"SDL_Mixer found\"" >&6
3439 else
3440 echo "$as_me:$LINENO: result: \"SDL_Mixer NOT found: Audio disabled\"" >&5
3441 echo "${ECHO_T}\"SDL_Mixer NOT found: Audio disabled\"" >&6; audio_flag=""; mixer_flag=""
3448 # Make sure we can run config.sub.
3449 $ac_config_sub sun4 >/dev/null 2>&1 ||
3450 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3451 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3452 { (exit 1); exit 1; }; }
3454 echo "$as_me:$LINENO: checking build system type" >&5
3455 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3456 if test "${ac_cv_build+set}" = set; then
3457 echo $ECHO_N "(cached) $ECHO_C" >&6
3458 else
3459 ac_cv_build_alias=$build_alias
3460 test -z "$ac_cv_build_alias" &&
3461 ac_cv_build_alias=`$ac_config_guess`
3462 test -z "$ac_cv_build_alias" &&
3463 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3464 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3465 { (exit 1); exit 1; }; }
3466 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3467 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3468 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3469 { (exit 1); exit 1; }; }
3472 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3473 echo "${ECHO_T}$ac_cv_build" >&6
3474 build=$ac_cv_build
3475 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3476 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3477 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3480 echo "$as_me:$LINENO: checking host system type" >&5
3481 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3482 if test "${ac_cv_host+set}" = set; then
3483 echo $ECHO_N "(cached) $ECHO_C" >&6
3484 else
3485 ac_cv_host_alias=$host_alias
3486 test -z "$ac_cv_host_alias" &&
3487 ac_cv_host_alias=$ac_cv_build_alias
3488 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3489 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3490 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3491 { (exit 1); exit 1; }; }
3494 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3495 echo "${ECHO_T}$ac_cv_host" >&6
3496 host=$ac_cv_host
3497 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3498 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3499 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3503 doc_dir="/usr/doc"
3505 # Check whether --with-doc-path or --without-doc-path was given.
3506 if test "${with_doc_path+set}" = set; then
3507 withval="$with_doc_path"
3508 doc_dir="$withval"
3512 network_flag="-DNETWORK_ENABLED"
3513 # Check whether --enable-network or --disable-network was given.
3514 if test "${enable_network+set}" = set; then
3515 enableval="$enable_network"
3516 network_flag=""
3520 inst_dir="$datadir/games/lbreakout2"
3521 hi_dir="/var/lib/games"
3523 # Check whether --enable-install or --disable-install was given.
3524 if test "${enable_install+set}" = set; then
3525 enableval="$enable_install"
3526 inst_dir="." hi_dir="."
3530 # Check whether --with-highscore-path or --without-highscore-path was given.
3531 if test "${with_highscore_path+set}" = set; then
3532 withval="$with_highscore_path"
3533 hi_dir="$withval"
3537 # Check whether --with-inst-path or --without-inst-path was given.
3538 if test "${with_inst_path+set}" = set; then
3539 withval="$with_inst_path"
3540 inst_dir="$withval"
3543 inst_flag="-DSRC_DIR=\\\"$inst_dir\\\""
3544 hi_inst_flag="-DHI_DIR=\\\"$hi_dir\\\""
3551 case "$host" in
3552 *-mingw32)
3553 win32="yes"
3554 win32_inst_script="`pwd -W`/installer.iss"
3555 arch_flag="-march=i586"
3556 win32_deps="lbreakout2res.o" ;;
3558 win32="no"
3559 win32_inst_script=""
3560 arch_flag=""
3561 win32_deps="" ;;
3562 esac
3567 if test "x$win32" = xyes; then
3568 for ac_prog in gawk mawk nawk awk
3570 # Extract the first word of "$ac_prog", so it can be a program name with args.
3571 set dummy $ac_prog; ac_word=$2
3572 echo "$as_me:$LINENO: checking for $ac_word" >&5
3573 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3574 if test "${ac_cv_prog_AWK+set}" = set; then
3575 echo $ECHO_N "(cached) $ECHO_C" >&6
3576 else
3577 if test -n "$AWK"; then
3578 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3579 else
3580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3581 for as_dir in $PATH
3583 IFS=$as_save_IFS
3584 test -z "$as_dir" && as_dir=.
3585 for ac_exec_ext in '' $ac_executable_extensions; do
3586 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3587 ac_cv_prog_AWK="$ac_prog"
3588 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3589 break 2
3591 done
3592 done
3596 AWK=$ac_cv_prog_AWK
3597 if test -n "$AWK"; then
3598 echo "$as_me:$LINENO: result: $AWK" >&5
3599 echo "${ECHO_T}$AWK" >&6
3600 else
3601 echo "$as_me:$LINENO: result: no" >&5
3602 echo "${ECHO_T}no" >&6
3605 test -n "$AWK" && break
3606 done
3609 # Extract the first word of "strip", so it can be a program name with args.
3610 set dummy strip; ac_word=$2
3611 echo "$as_me:$LINENO: checking for $ac_word" >&5
3612 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3613 if test "${ac_cv_prog_STRIP+set}" = set; then
3614 echo $ECHO_N "(cached) $ECHO_C" >&6
3615 else
3616 if test -n "$STRIP"; then
3617 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3618 else
3619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3620 for as_dir in $PATH
3622 IFS=$as_save_IFS
3623 test -z "$as_dir" && as_dir=.
3624 for ac_exec_ext in '' $ac_executable_extensions; do
3625 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3626 ac_cv_prog_STRIP="strip"
3627 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3628 break 2
3630 done
3631 done
3635 STRIP=$ac_cv_prog_STRIP
3636 if test -n "$STRIP"; then
3637 echo "$as_me:$LINENO: result: $STRIP" >&5
3638 echo "${ECHO_T}$STRIP" >&6
3639 else
3640 echo "$as_me:$LINENO: result: no" >&5
3641 echo "${ECHO_T}no" >&6
3644 test -z "${STRIP}" && { { echo "$as_me:$LINENO: error: strip was not found on this system" >&5
3645 echo "$as_me: error: strip was not found on this system" >&2;}
3646 { (exit 1); exit 1; }; }
3649 # Extract the first word of "iscc", so it can be a program name with args.
3650 set dummy iscc; ac_word=$2
3651 echo "$as_me:$LINENO: checking for $ac_word" >&5
3652 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3653 if test "${ac_cv_prog_ISCC+set}" = set; then
3654 echo $ECHO_N "(cached) $ECHO_C" >&6
3655 else
3656 if test -n "$ISCC"; then
3657 ac_cv_prog_ISCC="$ISCC" # Let the user override the test.
3658 else
3659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3660 for as_dir in $PATH
3662 IFS=$as_save_IFS
3663 test -z "$as_dir" && as_dir=.
3664 for ac_exec_ext in '' $ac_executable_extensions; do
3665 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3666 ac_cv_prog_ISCC="iscc"
3667 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3668 break 2
3670 done
3671 done
3675 ISCC=$ac_cv_prog_ISCC
3676 if test -n "$ISCC"; then
3677 echo "$as_me:$LINENO: result: $ISCC" >&5
3678 echo "${ECHO_T}$ISCC" >&6
3679 else
3680 echo "$as_me:$LINENO: result: no" >&5
3681 echo "${ECHO_T}no" >&6
3684 test -z "${ISCC}" && { { echo "$as_me:$LINENO: error: Inno Setup 2 iscc was not found on this system" >&5
3685 echo "$as_me: error: Inno Setup 2 iscc was not found on this system" >&2;}
3686 { (exit 1); exit 1; }; }
3691 appname="LBreakout2"
3694 ac_config_files="$ac_config_files Makefile docs/Makefile common/Makefile gui/Makefile client/Makefile client/gui_theme/Makefile client/gfx/Makefile client/gfx/AbsoluteB/Makefile client/gfx/Oz/Makefile client/gfx/Moiree/Makefile client/gfx/Classic/Makefile client/sounds/Makefile client/levels/Makefile server/Makefile"
3695 cat >confcache <<\_ACEOF
3696 # This file is a shell script that caches the results of configure
3697 # tests run on this system so they can be shared between configure
3698 # scripts and configure runs, see configure's option --config-cache.
3699 # It is not useful on other systems. If it contains results you don't
3700 # want to keep, you may remove or edit it.
3702 # config.status only pays attention to the cache file if you give it
3703 # the --recheck option to rerun configure.
3705 # `ac_cv_env_foo' variables (set or unset) will be overridden when
3706 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3707 # following values.
3709 _ACEOF
3711 # The following way of writing the cache mishandles newlines in values,
3712 # but we know of no workaround that is simple, portable, and efficient.
3713 # So, don't put newlines in cache variables' values.
3714 # Ultrix sh set writes to stderr and can't be redirected directly,
3715 # and sets the high bit in the cache file unless we assign to the vars.
3717 (set) 2>&1 |
3718 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3719 *ac_space=\ *)
3720 # `set' does not quote correctly, so add quotes (double-quote
3721 # substitution turns \\\\ into \\, and sed turns \\ into \).
3722 sed -n \
3723 "s/'/'\\\\''/g;
3724 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3727 # `set' quotes correctly as required by POSIX, so do not add quotes.
3728 sed -n \
3729 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3731 esac;
3733 sed '
3734 t clear
3735 : clear
3736 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3737 t end
3738 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3739 : end' >>confcache
3740 if diff $cache_file confcache >/dev/null 2>&1; then :; else
3741 if test -w $cache_file; then
3742 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3743 cat confcache >$cache_file
3744 else
3745 echo "not updating unwritable cache $cache_file"
3748 rm -f confcache
3750 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3751 # Let make expand exec_prefix.
3752 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3754 # VPATH may cause trouble with some makes, so we remove $(srcdir),
3755 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
3756 # trailing colons and then remove the whole line if VPATH becomes empty
3757 # (actually we leave an empty line to preserve line numbers).
3758 if test "x$srcdir" = x.; then
3759 ac_vpsub='/^[ ]*VPATH[ ]*=/{
3760 s/:*\$(srcdir):*/:/;
3761 s/:*\${srcdir}:*/:/;
3762 s/:*@srcdir@:*/:/;
3763 s/^\([^=]*=[ ]*\):*/\1/;
3764 s/:*$//;
3765 s/^[^=]*=[ ]*$//;
3769 DEFS=-DHAVE_CONFIG_H
3771 ac_libobjs=
3772 ac_ltlibobjs=
3773 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
3774 # 1. Remove the extension, and $U if already installed.
3775 ac_i=`echo "$ac_i" |
3776 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
3777 # 2. Add them.
3778 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
3779 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
3780 done
3781 LIBOBJS=$ac_libobjs
3783 LTLIBOBJS=$ac_ltlibobjs
3786 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
3787 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
3788 Usually this means the macro was only invoked conditionally." >&5
3789 echo "$as_me: error: conditional \"AMDEP\" was never defined.
3790 Usually this means the macro was only invoked conditionally." >&2;}
3791 { (exit 1); exit 1; }; }
3793 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
3794 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
3795 Usually this means the macro was only invoked conditionally." >&5
3796 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
3797 Usually this means the macro was only invoked conditionally." >&2;}
3798 { (exit 1); exit 1; }; }
3801 : ${CONFIG_STATUS=./config.status}
3802 ac_clean_files_save=$ac_clean_files
3803 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3804 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
3805 echo "$as_me: creating $CONFIG_STATUS" >&6;}
3806 cat >$CONFIG_STATUS <<_ACEOF
3807 #! $SHELL
3808 # Generated by $as_me.
3809 # Run this file to recreate the current configuration.
3810 # Compiler output produced by configure, useful for debugging
3811 # configure, is in config.log if it exists.
3813 debug=false
3814 ac_cs_recheck=false
3815 ac_cs_silent=false
3816 SHELL=\${CONFIG_SHELL-$SHELL}
3817 _ACEOF
3819 cat >>$CONFIG_STATUS <<\_ACEOF
3820 ## --------------------- ##
3821 ## M4sh Initialization. ##
3822 ## --------------------- ##
3824 # Be Bourne compatible
3825 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
3826 emulate sh
3827 NULLCMD=:
3828 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
3829 # is contrary to our usage. Disable this feature.
3830 alias -g '${1+"$@"}'='"$@"'
3831 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
3832 set -o posix
3834 DUALCASE=1; export DUALCASE # for MKS sh
3836 # Support unset when possible.
3837 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
3838 as_unset=unset
3839 else
3840 as_unset=false
3844 # Work around bugs in pre-3.0 UWIN ksh.
3845 $as_unset ENV MAIL MAILPATH
3846 PS1='$ '
3847 PS2='> '
3848 PS4='+ '
3850 # NLS nuisances.
3851 for as_var in \
3852 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
3853 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
3854 LC_TELEPHONE LC_TIME
3856 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
3857 eval $as_var=C; export $as_var
3858 else
3859 $as_unset $as_var
3861 done
3863 # Required to use basename.
3864 if expr a : '\(a\)' >/dev/null 2>&1; then
3865 as_expr=expr
3866 else
3867 as_expr=false
3870 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
3871 as_basename=basename
3872 else
3873 as_basename=false
3877 # Name of the executable.
3878 as_me=`$as_basename "$0" ||
3879 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3880 X"$0" : 'X\(//\)$' \| \
3881 X"$0" : 'X\(/\)$' \| \
3882 . : '\(.\)' 2>/dev/null ||
3883 echo X/"$0" |
3884 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
3885 /^X\/\(\/\/\)$/{ s//\1/; q; }
3886 /^X\/\(\/\).*/{ s//\1/; q; }
3887 s/.*/./; q'`
3890 # PATH needs CR, and LINENO needs CR and PATH.
3891 # Avoid depending upon Character Ranges.
3892 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
3893 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3894 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
3895 as_cr_digits='0123456789'
3896 as_cr_alnum=$as_cr_Letters$as_cr_digits
3898 # The user is always right.
3899 if test "${PATH_SEPARATOR+set}" != set; then
3900 echo "#! /bin/sh" >conf$$.sh
3901 echo "exit 0" >>conf$$.sh
3902 chmod +x conf$$.sh
3903 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3904 PATH_SEPARATOR=';'
3905 else
3906 PATH_SEPARATOR=:
3908 rm -f conf$$.sh
3912 as_lineno_1=$LINENO
3913 as_lineno_2=$LINENO
3914 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3915 test "x$as_lineno_1" != "x$as_lineno_2" &&
3916 test "x$as_lineno_3" = "x$as_lineno_2" || {
3917 # Find who we are. Look in the path if we contain no path at all
3918 # relative or not.
3919 case $0 in
3920 *[\\/]* ) as_myself=$0 ;;
3921 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3922 for as_dir in $PATH
3924 IFS=$as_save_IFS
3925 test -z "$as_dir" && as_dir=.
3926 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
3927 done
3930 esac
3931 # We did not find ourselves, most probably we were run as `sh COMMAND'
3932 # in which case we are not to be found in the path.
3933 if test "x$as_myself" = x; then
3934 as_myself=$0
3936 if test ! -f "$as_myself"; then
3937 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
3938 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
3939 { (exit 1); exit 1; }; }
3941 case $CONFIG_SHELL in
3943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3944 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
3946 IFS=$as_save_IFS
3947 test -z "$as_dir" && as_dir=.
3948 for as_base in sh bash ksh sh5; do
3949 case $as_dir in
3951 if ("$as_dir/$as_base" -c '
3952 as_lineno_1=$LINENO
3953 as_lineno_2=$LINENO
3954 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3955 test "x$as_lineno_1" != "x$as_lineno_2" &&
3956 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
3957 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
3958 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
3959 CONFIG_SHELL=$as_dir/$as_base
3960 export CONFIG_SHELL
3961 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
3962 fi;;
3963 esac
3964 done
3965 done
3967 esac
3969 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
3970 # uniformly replaced by the line number. The first 'sed' inserts a
3971 # line-number line before each line; the second 'sed' does the real
3972 # work. The second script uses 'N' to pair each line-number line
3973 # with the numbered line, and appends trailing '-' during
3974 # substitution so that $LINENO is not a special case at line end.
3975 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
3976 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
3977 sed '=' <$as_myself |
3978 sed '
3980 s,$,-,
3981 : loop
3982 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
3983 t loop
3984 s,-$,,
3985 s,^['$as_cr_digits']*\n,,
3986 ' >$as_me.lineno &&
3987 chmod +x $as_me.lineno ||
3988 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
3989 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
3990 { (exit 1); exit 1; }; }
3992 # Don't try to exec as it changes $[0], causing all sort of problems
3993 # (the dirname of $[0] is not the place where we might find the
3994 # original and so on. Autoconf is especially sensible to this).
3995 . ./$as_me.lineno
3996 # Exit status is that of the last command.
3997 exit
4001 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
4002 *c*,-n*) ECHO_N= ECHO_C='
4003 ' ECHO_T=' ' ;;
4004 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
4005 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
4006 esac
4008 if expr a : '\(a\)' >/dev/null 2>&1; then
4009 as_expr=expr
4010 else
4011 as_expr=false
4014 rm -f conf$$ conf$$.exe conf$$.file
4015 echo >conf$$.file
4016 if ln -s conf$$.file conf$$ 2>/dev/null; then
4017 # We could just check for DJGPP; but this test a) works b) is more generic
4018 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
4019 if test -f conf$$.exe; then
4020 # Don't use ln at all; we don't have any links
4021 as_ln_s='cp -p'
4022 else
4023 as_ln_s='ln -s'
4025 elif ln conf$$.file conf$$ 2>/dev/null; then
4026 as_ln_s=ln
4027 else
4028 as_ln_s='cp -p'
4030 rm -f conf$$ conf$$.exe conf$$.file
4032 if mkdir -p . 2>/dev/null; then
4033 as_mkdir_p=:
4034 else
4035 test -d ./-p && rmdir ./-p
4036 as_mkdir_p=false
4039 as_executable_p="test -f"
4041 # Sed expression to map a string onto a valid CPP name.
4042 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4044 # Sed expression to map a string onto a valid variable name.
4045 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4048 # IFS
4049 # We need space, tab and new line, in precisely that order.
4050 as_nl='
4052 IFS=" $as_nl"
4054 # CDPATH.
4055 $as_unset CDPATH
4057 exec 6>&1
4059 # Open the log real soon, to keep \$[0] and so on meaningful, and to
4060 # report actual input values of CONFIG_FILES etc. instead of their
4061 # values after options handling. Logging --version etc. is OK.
4062 exec 5>>config.log
4064 echo
4065 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4066 ## Running $as_me. ##
4067 _ASBOX
4068 } >&5
4069 cat >&5 <<_CSEOF
4071 This file was extended by $as_me, which was
4072 generated by GNU Autoconf 2.59. Invocation command line was
4074 CONFIG_FILES = $CONFIG_FILES
4075 CONFIG_HEADERS = $CONFIG_HEADERS
4076 CONFIG_LINKS = $CONFIG_LINKS
4077 CONFIG_COMMANDS = $CONFIG_COMMANDS
4078 $ $0 $@
4080 _CSEOF
4081 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
4082 echo >&5
4083 _ACEOF
4085 # Files that config.status was made for.
4086 if test -n "$ac_config_files"; then
4087 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
4090 if test -n "$ac_config_headers"; then
4091 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
4094 if test -n "$ac_config_links"; then
4095 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
4098 if test -n "$ac_config_commands"; then
4099 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
4102 cat >>$CONFIG_STATUS <<\_ACEOF
4104 ac_cs_usage="\
4105 \`$as_me' instantiates files from templates according to the
4106 current configuration.
4108 Usage: $0 [OPTIONS] [FILE]...
4110 -h, --help print this help, then exit
4111 -V, --version print version number, then exit
4112 -q, --quiet do not print progress messages
4113 -d, --debug don't remove temporary files
4114 --recheck update $as_me by reconfiguring in the same conditions
4115 --file=FILE[:TEMPLATE]
4116 instantiate the configuration file FILE
4117 --header=FILE[:TEMPLATE]
4118 instantiate the configuration header FILE
4120 Configuration files:
4121 $config_files
4123 Configuration headers:
4124 $config_headers
4126 Configuration commands:
4127 $config_commands
4129 Report bugs to <bug-autoconf@gnu.org>."
4130 _ACEOF
4132 cat >>$CONFIG_STATUS <<_ACEOF
4133 ac_cs_version="\\
4134 config.status
4135 configured by $0, generated by GNU Autoconf 2.59,
4136 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
4138 Copyright (C) 2003 Free Software Foundation, Inc.
4139 This config.status script is free software; the Free Software Foundation
4140 gives unlimited permission to copy, distribute and modify it."
4141 srcdir=$srcdir
4142 INSTALL="$INSTALL"
4143 _ACEOF
4145 cat >>$CONFIG_STATUS <<\_ACEOF
4146 # If no file are specified by the user, then we need to provide default
4147 # value. By we need to know if files were specified by the user.
4148 ac_need_defaults=:
4149 while test $# != 0
4151 case $1 in
4152 --*=*)
4153 ac_option=`expr "x$1" : 'x\([^=]*\)='`
4154 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
4155 ac_shift=:
4158 ac_option=$1
4159 ac_optarg=$2
4160 ac_shift=shift
4162 *) # This is not an option, so the user has probably given explicit
4163 # arguments.
4164 ac_option=$1
4165 ac_need_defaults=false;;
4166 esac
4168 case $ac_option in
4169 # Handling of the options.
4170 _ACEOF
4171 cat >>$CONFIG_STATUS <<\_ACEOF
4172 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4173 ac_cs_recheck=: ;;
4174 --version | --vers* | -V )
4175 echo "$ac_cs_version"; exit 0 ;;
4176 --he | --h)
4177 # Conflict between --help and --header
4178 { { echo "$as_me:$LINENO: error: ambiguous option: $1
4179 Try \`$0 --help' for more information." >&5
4180 echo "$as_me: error: ambiguous option: $1
4181 Try \`$0 --help' for more information." >&2;}
4182 { (exit 1); exit 1; }; };;
4183 --help | --hel | -h )
4184 echo "$ac_cs_usage"; exit 0 ;;
4185 --debug | --d* | -d )
4186 debug=: ;;
4187 --file | --fil | --fi | --f )
4188 $ac_shift
4189 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
4190 ac_need_defaults=false;;
4191 --header | --heade | --head | --hea )
4192 $ac_shift
4193 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
4194 ac_need_defaults=false;;
4195 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4196 | -silent | --silent | --silen | --sile | --sil | --si | --s)
4197 ac_cs_silent=: ;;
4199 # This is an error.
4200 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
4201 Try \`$0 --help' for more information." >&5
4202 echo "$as_me: error: unrecognized option: $1
4203 Try \`$0 --help' for more information." >&2;}
4204 { (exit 1); exit 1; }; } ;;
4206 *) ac_config_targets="$ac_config_targets $1" ;;
4208 esac
4209 shift
4210 done
4212 ac_configure_extra_args=
4214 if $ac_cs_silent; then
4215 exec 6>/dev/null
4216 ac_configure_extra_args="$ac_configure_extra_args --silent"
4219 _ACEOF
4220 cat >>$CONFIG_STATUS <<_ACEOF
4221 if \$ac_cs_recheck; then
4222 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
4223 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4226 _ACEOF
4228 cat >>$CONFIG_STATUS <<_ACEOF
4230 # INIT-COMMANDS section.
4233 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
4235 _ACEOF
4239 cat >>$CONFIG_STATUS <<\_ACEOF
4240 for ac_config_target in $ac_config_targets
4242 case "$ac_config_target" in
4243 # Handling of arguments.
4244 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4245 "docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
4246 "common/Makefile" ) CONFIG_FILES="$CONFIG_FILES common/Makefile" ;;
4247 "gui/Makefile" ) CONFIG_FILES="$CONFIG_FILES gui/Makefile" ;;
4248 "client/Makefile" ) CONFIG_FILES="$CONFIG_FILES client/Makefile" ;;
4249 "client/gui_theme/Makefile" ) CONFIG_FILES="$CONFIG_FILES client/gui_theme/Makefile" ;;
4250 "client/gfx/Makefile" ) CONFIG_FILES="$CONFIG_FILES client/gfx/Makefile" ;;
4251 "client/gfx/AbsoluteB/Makefile" ) CONFIG_FILES="$CONFIG_FILES client/gfx/AbsoluteB/Makefile" ;;
4252 "client/gfx/Oz/Makefile" ) CONFIG_FILES="$CONFIG_FILES client/gfx/Oz/Makefile" ;;
4253 "client/gfx/Moiree/Makefile" ) CONFIG_FILES="$CONFIG_FILES client/gfx/Moiree/Makefile" ;;
4254 "client/gfx/Classic/Makefile" ) CONFIG_FILES="$CONFIG_FILES client/gfx/Classic/Makefile" ;;
4255 "client/sounds/Makefile" ) CONFIG_FILES="$CONFIG_FILES client/sounds/Makefile" ;;
4256 "client/levels/Makefile" ) CONFIG_FILES="$CONFIG_FILES client/levels/Makefile" ;;
4257 "server/Makefile" ) CONFIG_FILES="$CONFIG_FILES server/Makefile" ;;
4258 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
4259 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
4260 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
4261 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
4262 { (exit 1); exit 1; }; };;
4263 esac
4264 done
4266 # If the user did not use the arguments to specify the items to instantiate,
4267 # then the envvar interface is used. Set only those that are not.
4268 # We use the long form for the default assignment because of an extremely
4269 # bizarre bug on SunOS 4.1.3.
4270 if $ac_need_defaults; then
4271 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4272 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
4273 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
4276 # Have a temporary directory for convenience. Make it in the build tree
4277 # simply because there is no reason to put it here, and in addition,
4278 # creating and moving files from /tmp can sometimes cause problems.
4279 # Create a temporary directory, and hook for its removal unless debugging.
4280 $debug ||
4282 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
4283 trap '{ (exit 1); exit 1; }' 1 2 13 15
4286 # Create a (secure) tmp directory for tmp files.
4289 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
4290 test -n "$tmp" && test -d "$tmp"
4291 } ||
4293 tmp=./confstat$$-$RANDOM
4294 (umask 077 && mkdir $tmp)
4295 } ||
4297 echo "$me: cannot create a temporary directory in ." >&2
4298 { (exit 1); exit 1; }
4301 _ACEOF
4303 cat >>$CONFIG_STATUS <<_ACEOF
4306 # CONFIG_FILES section.
4309 # No need to generate the scripts if there are no CONFIG_FILES.
4310 # This happens for instance when ./config.status config.h
4311 if test -n "\$CONFIG_FILES"; then
4312 # Protect against being on the right side of a sed subst in config.status.
4313 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
4314 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
4315 s,@SHELL@,$SHELL,;t t
4316 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
4317 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
4318 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
4319 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
4320 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
4321 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
4322 s,@exec_prefix@,$exec_prefix,;t t
4323 s,@prefix@,$prefix,;t t
4324 s,@program_transform_name@,$program_transform_name,;t t
4325 s,@bindir@,$bindir,;t t
4326 s,@sbindir@,$sbindir,;t t
4327 s,@libexecdir@,$libexecdir,;t t
4328 s,@datadir@,$datadir,;t t
4329 s,@sysconfdir@,$sysconfdir,;t t
4330 s,@sharedstatedir@,$sharedstatedir,;t t
4331 s,@localstatedir@,$localstatedir,;t t
4332 s,@libdir@,$libdir,;t t
4333 s,@includedir@,$includedir,;t t
4334 s,@oldincludedir@,$oldincludedir,;t t
4335 s,@infodir@,$infodir,;t t
4336 s,@mandir@,$mandir,;t t
4337 s,@build_alias@,$build_alias,;t t
4338 s,@host_alias@,$host_alias,;t t
4339 s,@target_alias@,$target_alias,;t t
4340 s,@DEFS@,$DEFS,;t t
4341 s,@ECHO_C@,$ECHO_C,;t t
4342 s,@ECHO_N@,$ECHO_N,;t t
4343 s,@ECHO_T@,$ECHO_T,;t t
4344 s,@LIBS@,$LIBS,;t t
4345 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
4346 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
4347 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
4348 s,@CYGPATH_W@,$CYGPATH_W,;t t
4349 s,@PACKAGE@,$PACKAGE,;t t
4350 s,@VERSION@,$VERSION,;t t
4351 s,@ACLOCAL@,$ACLOCAL,;t t
4352 s,@AUTOCONF@,$AUTOCONF,;t t
4353 s,@AUTOMAKE@,$AUTOMAKE,;t t
4354 s,@AUTOHEADER@,$AUTOHEADER,;t t
4355 s,@MAKEINFO@,$MAKEINFO,;t t
4356 s,@AMTAR@,$AMTAR,;t t
4357 s,@install_sh@,$install_sh,;t t
4358 s,@STRIP@,$STRIP,;t t
4359 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
4360 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
4361 s,@AWK@,$AWK,;t t
4362 s,@SET_MAKE@,$SET_MAKE,;t t
4363 s,@am__leading_dot@,$am__leading_dot,;t t
4364 s,@CC@,$CC,;t t
4365 s,@CFLAGS@,$CFLAGS,;t t
4366 s,@LDFLAGS@,$LDFLAGS,;t t
4367 s,@CPPFLAGS@,$CPPFLAGS,;t t
4368 s,@ac_ct_CC@,$ac_ct_CC,;t t
4369 s,@EXEEXT@,$EXEEXT,;t t
4370 s,@OBJEXT@,$OBJEXT,;t t
4371 s,@DEPDIR@,$DEPDIR,;t t
4372 s,@am__include@,$am__include,;t t
4373 s,@am__quote@,$am__quote,;t t
4374 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
4375 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
4376 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
4377 s,@CCDEPMODE@,$CCDEPMODE,;t t
4378 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
4379 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
4380 s,@RANLIB@,$RANLIB,;t t
4381 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
4382 s,@SDL_CONFIG@,$SDL_CONFIG,;t t
4383 s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
4384 s,@SDL_LIBS@,$SDL_LIBS,;t t
4385 s,@warp_flag@,$warp_flag,;t t
4386 s,@audio_flag@,$audio_flag,;t t
4387 s,@mixer_flag@,$mixer_flag,;t t
4388 s,@build@,$build,;t t
4389 s,@build_cpu@,$build_cpu,;t t
4390 s,@build_vendor@,$build_vendor,;t t
4391 s,@build_os@,$build_os,;t t
4392 s,@host@,$host,;t t
4393 s,@host_cpu@,$host_cpu,;t t
4394 s,@host_vendor@,$host_vendor,;t t
4395 s,@host_os@,$host_os,;t t
4396 s,@doc_dir@,$doc_dir,;t t
4397 s,@network_flag@,$network_flag,;t t
4398 s,@inst_flag@,$inst_flag,;t t
4399 s,@hi_inst_flag@,$hi_inst_flag,;t t
4400 s,@inst_dir@,$inst_dir,;t t
4401 s,@hi_dir@,$hi_dir,;t t
4402 s,@win32_deps@,$win32_deps,;t t
4403 s,@arch_flag@,$arch_flag,;t t
4404 s,@ISCC@,$ISCC,;t t
4405 s,@win32_inst_script@,$win32_inst_script,;t t
4406 s,@appname@,$appname,;t t
4407 s,@LIBOBJS@,$LIBOBJS,;t t
4408 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
4409 CEOF
4411 _ACEOF
4413 cat >>$CONFIG_STATUS <<\_ACEOF
4414 # Split the substitutions into bite-sized pieces for seds with
4415 # small command number limits, like on Digital OSF/1 and HP-UX.
4416 ac_max_sed_lines=48
4417 ac_sed_frag=1 # Number of current file.
4418 ac_beg=1 # First line for current file.
4419 ac_end=$ac_max_sed_lines # Line after last line for current file.
4420 ac_more_lines=:
4421 ac_sed_cmds=
4422 while $ac_more_lines; do
4423 if test $ac_beg -gt 1; then
4424 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4425 else
4426 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4428 if test ! -s $tmp/subs.frag; then
4429 ac_more_lines=false
4430 else
4431 # The purpose of the label and of the branching condition is to
4432 # speed up the sed processing (if there are no `@' at all, there
4433 # is no need to browse any of the substitutions).
4434 # These are the two extra sed commands mentioned above.
4435 (echo ':t
4436 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
4437 if test -z "$ac_sed_cmds"; then
4438 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
4439 else
4440 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
4442 ac_sed_frag=`expr $ac_sed_frag + 1`
4443 ac_beg=$ac_end
4444 ac_end=`expr $ac_end + $ac_max_sed_lines`
4446 done
4447 if test -z "$ac_sed_cmds"; then
4448 ac_sed_cmds=cat
4450 fi # test -n "$CONFIG_FILES"
4452 _ACEOF
4453 cat >>$CONFIG_STATUS <<\_ACEOF
4454 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
4455 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4456 case $ac_file in
4457 - | *:- | *:-:* ) # input from stdin
4458 cat >$tmp/stdin
4459 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4460 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4461 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4462 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4463 * ) ac_file_in=$ac_file.in ;;
4464 esac
4466 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
4467 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
4468 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4469 X"$ac_file" : 'X\(//\)[^/]' \| \
4470 X"$ac_file" : 'X\(//\)$' \| \
4471 X"$ac_file" : 'X\(/\)' \| \
4472 . : '\(.\)' 2>/dev/null ||
4473 echo X"$ac_file" |
4474 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4475 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4476 /^X\(\/\/\)$/{ s//\1/; q; }
4477 /^X\(\/\).*/{ s//\1/; q; }
4478 s/.*/./; q'`
4479 { if $as_mkdir_p; then
4480 mkdir -p "$ac_dir"
4481 else
4482 as_dir="$ac_dir"
4483 as_dirs=
4484 while test ! -d "$as_dir"; do
4485 as_dirs="$as_dir $as_dirs"
4486 as_dir=`(dirname "$as_dir") 2>/dev/null ||
4487 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4488 X"$as_dir" : 'X\(//\)[^/]' \| \
4489 X"$as_dir" : 'X\(//\)$' \| \
4490 X"$as_dir" : 'X\(/\)' \| \
4491 . : '\(.\)' 2>/dev/null ||
4492 echo X"$as_dir" |
4493 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4494 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4495 /^X\(\/\/\)$/{ s//\1/; q; }
4496 /^X\(\/\).*/{ s//\1/; q; }
4497 s/.*/./; q'`
4498 done
4499 test ! -n "$as_dirs" || mkdir $as_dirs
4500 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
4501 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
4502 { (exit 1); exit 1; }; }; }
4504 ac_builddir=.
4506 if test "$ac_dir" != .; then
4507 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
4508 # A "../" for each directory in $ac_dir_suffix.
4509 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
4510 else
4511 ac_dir_suffix= ac_top_builddir=
4514 case $srcdir in
4515 .) # No --srcdir option. We are building in place.
4516 ac_srcdir=.
4517 if test -z "$ac_top_builddir"; then
4518 ac_top_srcdir=.
4519 else
4520 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
4521 fi ;;
4522 [\\/]* | ?:[\\/]* ) # Absolute path.
4523 ac_srcdir=$srcdir$ac_dir_suffix;
4524 ac_top_srcdir=$srcdir ;;
4525 *) # Relative path.
4526 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
4527 ac_top_srcdir=$ac_top_builddir$srcdir ;;
4528 esac
4530 # Do not use `cd foo && pwd` to compute absolute paths, because
4531 # the directories may not exist.
4532 case `pwd` in
4533 .) ac_abs_builddir="$ac_dir";;
4535 case "$ac_dir" in
4536 .) ac_abs_builddir=`pwd`;;
4537 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
4538 *) ac_abs_builddir=`pwd`/"$ac_dir";;
4539 esac;;
4540 esac
4541 case $ac_abs_builddir in
4542 .) ac_abs_top_builddir=${ac_top_builddir}.;;
4544 case ${ac_top_builddir}. in
4545 .) ac_abs_top_builddir=$ac_abs_builddir;;
4546 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
4547 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
4548 esac;;
4549 esac
4550 case $ac_abs_builddir in
4551 .) ac_abs_srcdir=$ac_srcdir;;
4553 case $ac_srcdir in
4554 .) ac_abs_srcdir=$ac_abs_builddir;;
4555 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
4556 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
4557 esac;;
4558 esac
4559 case $ac_abs_builddir in
4560 .) ac_abs_top_srcdir=$ac_top_srcdir;;
4562 case $ac_top_srcdir in
4563 .) ac_abs_top_srcdir=$ac_abs_builddir;;
4564 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
4565 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
4566 esac;;
4567 esac
4570 case $INSTALL in
4571 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
4572 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
4573 esac
4575 if test x"$ac_file" != x-; then
4576 { echo "$as_me:$LINENO: creating $ac_file" >&5
4577 echo "$as_me: creating $ac_file" >&6;}
4578 rm -f "$ac_file"
4580 # Let's still pretend it is `configure' which instantiates (i.e., don't
4581 # use $as_me), people would be surprised to read:
4582 # /* config.h. Generated by config.status. */
4583 if test x"$ac_file" = x-; then
4584 configure_input=
4585 else
4586 configure_input="$ac_file. "
4588 configure_input=$configure_input"Generated from `echo $ac_file_in |
4589 sed 's,.*/,,'` by configure."
4591 # First look for the input files in the build tree, otherwise in the
4592 # src tree.
4593 ac_file_inputs=`IFS=:
4594 for f in $ac_file_in; do
4595 case $f in
4596 -) echo $tmp/stdin ;;
4597 [\\/$]*)
4598 # Absolute (can't be DOS-style, as IFS=:)
4599 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4600 echo "$as_me: error: cannot find input file: $f" >&2;}
4601 { (exit 1); exit 1; }; }
4602 echo "$f";;
4603 *) # Relative
4604 if test -f "$f"; then
4605 # Build tree
4606 echo "$f"
4607 elif test -f "$srcdir/$f"; then
4608 # Source tree
4609 echo "$srcdir/$f"
4610 else
4611 # /dev/null tree
4612 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4613 echo "$as_me: error: cannot find input file: $f" >&2;}
4614 { (exit 1); exit 1; }; }
4615 fi;;
4616 esac
4617 done` || { (exit 1); exit 1; }
4618 _ACEOF
4619 cat >>$CONFIG_STATUS <<_ACEOF
4620 sed "$ac_vpsub
4621 $extrasub
4622 _ACEOF
4623 cat >>$CONFIG_STATUS <<\_ACEOF
4625 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4626 s,@configure_input@,$configure_input,;t t
4627 s,@srcdir@,$ac_srcdir,;t t
4628 s,@abs_srcdir@,$ac_abs_srcdir,;t t
4629 s,@top_srcdir@,$ac_top_srcdir,;t t
4630 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
4631 s,@builddir@,$ac_builddir,;t t
4632 s,@abs_builddir@,$ac_abs_builddir,;t t
4633 s,@top_builddir@,$ac_top_builddir,;t t
4634 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
4635 s,@INSTALL@,$ac_INSTALL,;t t
4636 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
4637 rm -f $tmp/stdin
4638 if test x"$ac_file" != x-; then
4639 mv $tmp/out $ac_file
4640 else
4641 cat $tmp/out
4642 rm -f $tmp/out
4645 done
4646 _ACEOF
4647 cat >>$CONFIG_STATUS <<\_ACEOF
4650 # CONFIG_HEADER section.
4653 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4654 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4656 # ac_d sets the value in "#define NAME VALUE" lines.
4657 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4658 ac_dB='[ ].*$,\1#\2'
4659 ac_dC=' '
4660 ac_dD=',;t'
4661 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4662 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4663 ac_uB='$,\1#\2define\3'
4664 ac_uC=' '
4665 ac_uD=',;t'
4667 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
4668 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4669 case $ac_file in
4670 - | *:- | *:-:* ) # input from stdin
4671 cat >$tmp/stdin
4672 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4673 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4674 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4675 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4676 * ) ac_file_in=$ac_file.in ;;
4677 esac
4679 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
4680 echo "$as_me: creating $ac_file" >&6;}
4682 # First look for the input files in the build tree, otherwise in the
4683 # src tree.
4684 ac_file_inputs=`IFS=:
4685 for f in $ac_file_in; do
4686 case $f in
4687 -) echo $tmp/stdin ;;
4688 [\\/$]*)
4689 # Absolute (can't be DOS-style, as IFS=:)
4690 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4691 echo "$as_me: error: cannot find input file: $f" >&2;}
4692 { (exit 1); exit 1; }; }
4693 # Do quote $f, to prevent DOS paths from being IFS'd.
4694 echo "$f";;
4695 *) # Relative
4696 if test -f "$f"; then
4697 # Build tree
4698 echo "$f"
4699 elif test -f "$srcdir/$f"; then
4700 # Source tree
4701 echo "$srcdir/$f"
4702 else
4703 # /dev/null tree
4704 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4705 echo "$as_me: error: cannot find input file: $f" >&2;}
4706 { (exit 1); exit 1; }; }
4707 fi;;
4708 esac
4709 done` || { (exit 1); exit 1; }
4710 # Remove the trailing spaces.
4711 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
4713 _ACEOF
4715 # Transform confdefs.h into two sed scripts, `conftest.defines' and
4716 # `conftest.undefs', that substitutes the proper values into
4717 # config.h.in to produce config.h. The first handles `#define'
4718 # templates, and the second `#undef' templates.
4719 # And first: Protect against being on the right side of a sed subst in
4720 # config.status. Protect against being in an unquoted here document
4721 # in config.status.
4722 rm -f conftest.defines conftest.undefs
4723 # Using a here document instead of a string reduces the quoting nightmare.
4724 # Putting comments in sed scripts is not portable.
4726 # `end' is used to avoid that the second main sed command (meant for
4727 # 0-ary CPP macros) applies to n-ary macro definitions.
4728 # See the Autoconf documentation for `clear'.
4729 cat >confdef2sed.sed <<\_ACEOF
4730 s/[\\&,]/\\&/g
4731 s,[\\$`],\\&,g
4732 t clear
4733 : clear
4734 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
4735 t end
4736 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
4737 : end
4738 _ACEOF
4739 # If some macros were called several times there might be several times
4740 # the same #defines, which is useless. Nevertheless, we may not want to
4741 # sort them, since we want the *last* AC-DEFINE to be honored.
4742 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
4743 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
4744 rm -f confdef2sed.sed
4746 # This sed command replaces #undef with comments. This is necessary, for
4747 # example, in the case of _POSIX_SOURCE, which is predefined and required
4748 # on some systems where configure will not decide to define it.
4749 cat >>conftest.undefs <<\_ACEOF
4750 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
4751 _ACEOF
4753 # Break up conftest.defines because some shells have a limit on the size
4754 # of here documents, and old seds have small limits too (100 cmds).
4755 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
4756 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
4757 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
4758 echo ' :' >>$CONFIG_STATUS
4759 rm -f conftest.tail
4760 while grep . conftest.defines >/dev/null
4762 # Write a limited-size here document to $tmp/defines.sed.
4763 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
4764 # Speed up: don't consider the non `#define' lines.
4765 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
4766 # Work around the forget-to-reset-the-flag bug.
4767 echo 't clr' >>$CONFIG_STATUS
4768 echo ': clr' >>$CONFIG_STATUS
4769 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
4770 echo 'CEOF
4771 sed -f $tmp/defines.sed $tmp/in >$tmp/out
4772 rm -f $tmp/in
4773 mv $tmp/out $tmp/in
4774 ' >>$CONFIG_STATUS
4775 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
4776 rm -f conftest.defines
4777 mv conftest.tail conftest.defines
4778 done
4779 rm -f conftest.defines
4780 echo ' fi # grep' >>$CONFIG_STATUS
4781 echo >>$CONFIG_STATUS
4783 # Break up conftest.undefs because some shells have a limit on the size
4784 # of here documents, and old seds have small limits too (100 cmds).
4785 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
4786 rm -f conftest.tail
4787 while grep . conftest.undefs >/dev/null
4789 # Write a limited-size here document to $tmp/undefs.sed.
4790 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
4791 # Speed up: don't consider the non `#undef'
4792 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
4793 # Work around the forget-to-reset-the-flag bug.
4794 echo 't clr' >>$CONFIG_STATUS
4795 echo ': clr' >>$CONFIG_STATUS
4796 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
4797 echo 'CEOF
4798 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
4799 rm -f $tmp/in
4800 mv $tmp/out $tmp/in
4801 ' >>$CONFIG_STATUS
4802 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
4803 rm -f conftest.undefs
4804 mv conftest.tail conftest.undefs
4805 done
4806 rm -f conftest.undefs
4808 cat >>$CONFIG_STATUS <<\_ACEOF
4809 # Let's still pretend it is `configure' which instantiates (i.e., don't
4810 # use $as_me), people would be surprised to read:
4811 # /* config.h. Generated by config.status. */
4812 if test x"$ac_file" = x-; then
4813 echo "/* Generated by configure. */" >$tmp/config.h
4814 else
4815 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
4817 cat $tmp/in >>$tmp/config.h
4818 rm -f $tmp/in
4819 if test x"$ac_file" != x-; then
4820 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
4821 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
4822 echo "$as_me: $ac_file is unchanged" >&6;}
4823 else
4824 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
4825 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4826 X"$ac_file" : 'X\(//\)[^/]' \| \
4827 X"$ac_file" : 'X\(//\)$' \| \
4828 X"$ac_file" : 'X\(/\)' \| \
4829 . : '\(.\)' 2>/dev/null ||
4830 echo X"$ac_file" |
4831 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4832 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4833 /^X\(\/\/\)$/{ s//\1/; q; }
4834 /^X\(\/\).*/{ s//\1/; q; }
4835 s/.*/./; q'`
4836 { if $as_mkdir_p; then
4837 mkdir -p "$ac_dir"
4838 else
4839 as_dir="$ac_dir"
4840 as_dirs=
4841 while test ! -d "$as_dir"; do
4842 as_dirs="$as_dir $as_dirs"
4843 as_dir=`(dirname "$as_dir") 2>/dev/null ||
4844 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4845 X"$as_dir" : 'X\(//\)[^/]' \| \
4846 X"$as_dir" : 'X\(//\)$' \| \
4847 X"$as_dir" : 'X\(/\)' \| \
4848 . : '\(.\)' 2>/dev/null ||
4849 echo X"$as_dir" |
4850 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4851 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4852 /^X\(\/\/\)$/{ s//\1/; q; }
4853 /^X\(\/\).*/{ s//\1/; q; }
4854 s/.*/./; q'`
4855 done
4856 test ! -n "$as_dirs" || mkdir $as_dirs
4857 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
4858 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
4859 { (exit 1); exit 1; }; }; }
4861 rm -f $ac_file
4862 mv $tmp/config.h $ac_file
4864 else
4865 cat $tmp/config.h
4866 rm -f $tmp/config.h
4868 # Compute $ac_file's index in $config_headers.
4869 _am_stamp_count=1
4870 for _am_header in $config_headers :; do
4871 case $_am_header in
4872 $ac_file | $ac_file:* )
4873 break ;;
4875 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
4876 esac
4877 done
4878 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
4879 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4880 X$ac_file : 'X\(//\)[^/]' \| \
4881 X$ac_file : 'X\(//\)$' \| \
4882 X$ac_file : 'X\(/\)' \| \
4883 . : '\(.\)' 2>/dev/null ||
4884 echo X$ac_file |
4885 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4886 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4887 /^X\(\/\/\)$/{ s//\1/; q; }
4888 /^X\(\/\).*/{ s//\1/; q; }
4889 s/.*/./; q'`/stamp-h$_am_stamp_count
4890 done
4891 _ACEOF
4892 cat >>$CONFIG_STATUS <<\_ACEOF
4895 # CONFIG_COMMANDS section.
4897 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
4898 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
4899 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
4900 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
4901 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4902 X"$ac_dest" : 'X\(//\)[^/]' \| \
4903 X"$ac_dest" : 'X\(//\)$' \| \
4904 X"$ac_dest" : 'X\(/\)' \| \
4905 . : '\(.\)' 2>/dev/null ||
4906 echo X"$ac_dest" |
4907 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4908 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4909 /^X\(\/\/\)$/{ s//\1/; q; }
4910 /^X\(\/\).*/{ s//\1/; q; }
4911 s/.*/./; q'`
4912 { if $as_mkdir_p; then
4913 mkdir -p "$ac_dir"
4914 else
4915 as_dir="$ac_dir"
4916 as_dirs=
4917 while test ! -d "$as_dir"; do
4918 as_dirs="$as_dir $as_dirs"
4919 as_dir=`(dirname "$as_dir") 2>/dev/null ||
4920 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4921 X"$as_dir" : 'X\(//\)[^/]' \| \
4922 X"$as_dir" : 'X\(//\)$' \| \
4923 X"$as_dir" : 'X\(/\)' \| \
4924 . : '\(.\)' 2>/dev/null ||
4925 echo X"$as_dir" |
4926 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4927 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4928 /^X\(\/\/\)$/{ s//\1/; q; }
4929 /^X\(\/\).*/{ s//\1/; q; }
4930 s/.*/./; q'`
4931 done
4932 test ! -n "$as_dirs" || mkdir $as_dirs
4933 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
4934 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
4935 { (exit 1); exit 1; }; }; }
4937 ac_builddir=.
4939 if test "$ac_dir" != .; then
4940 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
4941 # A "../" for each directory in $ac_dir_suffix.
4942 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
4943 else
4944 ac_dir_suffix= ac_top_builddir=
4947 case $srcdir in
4948 .) # No --srcdir option. We are building in place.
4949 ac_srcdir=.
4950 if test -z "$ac_top_builddir"; then
4951 ac_top_srcdir=.
4952 else
4953 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
4954 fi ;;
4955 [\\/]* | ?:[\\/]* ) # Absolute path.
4956 ac_srcdir=$srcdir$ac_dir_suffix;
4957 ac_top_srcdir=$srcdir ;;
4958 *) # Relative path.
4959 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
4960 ac_top_srcdir=$ac_top_builddir$srcdir ;;
4961 esac
4963 # Do not use `cd foo && pwd` to compute absolute paths, because
4964 # the directories may not exist.
4965 case `pwd` in
4966 .) ac_abs_builddir="$ac_dir";;
4968 case "$ac_dir" in
4969 .) ac_abs_builddir=`pwd`;;
4970 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
4971 *) ac_abs_builddir=`pwd`/"$ac_dir";;
4972 esac;;
4973 esac
4974 case $ac_abs_builddir in
4975 .) ac_abs_top_builddir=${ac_top_builddir}.;;
4977 case ${ac_top_builddir}. in
4978 .) ac_abs_top_builddir=$ac_abs_builddir;;
4979 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
4980 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
4981 esac;;
4982 esac
4983 case $ac_abs_builddir in
4984 .) ac_abs_srcdir=$ac_srcdir;;
4986 case $ac_srcdir in
4987 .) ac_abs_srcdir=$ac_abs_builddir;;
4988 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
4989 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
4990 esac;;
4991 esac
4992 case $ac_abs_builddir in
4993 .) ac_abs_top_srcdir=$ac_top_srcdir;;
4995 case $ac_top_srcdir in
4996 .) ac_abs_top_srcdir=$ac_abs_builddir;;
4997 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
4998 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
4999 esac;;
5000 esac
5003 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
5004 echo "$as_me: executing $ac_dest commands" >&6;}
5005 case $ac_dest in
5006 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
5007 # Strip MF so we end up with the name of the file.
5008 mf=`echo "$mf" | sed -e 's/:.*$//'`
5009 # Check whether this is an Automake generated Makefile or not.
5010 # We used to match only the files named `Makefile.in', but
5011 # some people rename them; so instead we look at the file content.
5012 # Grep'ing the first line is not enough: some people post-process
5013 # each Makefile.in and add a new line on top of each file to say so.
5014 # So let's grep whole file.
5015 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
5016 dirpart=`(dirname "$mf") 2>/dev/null ||
5017 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5018 X"$mf" : 'X\(//\)[^/]' \| \
5019 X"$mf" : 'X\(//\)$' \| \
5020 X"$mf" : 'X\(/\)' \| \
5021 . : '\(.\)' 2>/dev/null ||
5022 echo X"$mf" |
5023 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5024 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5025 /^X\(\/\/\)$/{ s//\1/; q; }
5026 /^X\(\/\).*/{ s//\1/; q; }
5027 s/.*/./; q'`
5028 else
5029 continue
5031 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
5032 # Extract the definition of DEP_FILES from the Makefile without
5033 # running `make'.
5034 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
5035 test -z "$DEPDIR" && continue
5036 # When using ansi2knr, U may be empty or an underscore; expand it
5037 U=`sed -n -e '/^U = / s///p' < "$mf"`
5038 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
5039 # We invoke sed twice because it is the simplest approach to
5040 # changing $(DEPDIR) to its actual value in the expansion.
5041 for file in `sed -n -e '
5042 /^DEP_FILES = .*\\\\$/ {
5043 s/^DEP_FILES = //
5044 :loop
5045 s/\\\\$//
5048 /\\\\$/ b loop
5051 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
5052 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
5053 # Make sure the directory exists.
5054 test -f "$dirpart/$file" && continue
5055 fdir=`(dirname "$file") 2>/dev/null ||
5056 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5057 X"$file" : 'X\(//\)[^/]' \| \
5058 X"$file" : 'X\(//\)$' \| \
5059 X"$file" : 'X\(/\)' \| \
5060 . : '\(.\)' 2>/dev/null ||
5061 echo X"$file" |
5062 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5063 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5064 /^X\(\/\/\)$/{ s//\1/; q; }
5065 /^X\(\/\).*/{ s//\1/; q; }
5066 s/.*/./; q'`
5067 { if $as_mkdir_p; then
5068 mkdir -p $dirpart/$fdir
5069 else
5070 as_dir=$dirpart/$fdir
5071 as_dirs=
5072 while test ! -d "$as_dir"; do
5073 as_dirs="$as_dir $as_dirs"
5074 as_dir=`(dirname "$as_dir") 2>/dev/null ||
5075 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5076 X"$as_dir" : 'X\(//\)[^/]' \| \
5077 X"$as_dir" : 'X\(//\)$' \| \
5078 X"$as_dir" : 'X\(/\)' \| \
5079 . : '\(.\)' 2>/dev/null ||
5080 echo X"$as_dir" |
5081 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5082 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5083 /^X\(\/\/\)$/{ s//\1/; q; }
5084 /^X\(\/\).*/{ s//\1/; q; }
5085 s/.*/./; q'`
5086 done
5087 test ! -n "$as_dirs" || mkdir $as_dirs
5088 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
5089 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
5090 { (exit 1); exit 1; }; }; }
5092 # echo "creating $dirpart/$file"
5093 echo '# dummy' > "$dirpart/$file"
5094 done
5095 done
5097 esac
5098 done
5099 _ACEOF
5101 cat >>$CONFIG_STATUS <<\_ACEOF
5103 { (exit 0); exit 0; }
5104 _ACEOF
5105 chmod +x $CONFIG_STATUS
5106 ac_clean_files=$ac_clean_files_save
5109 # configure is writing to config.log, and then calls config.status.
5110 # config.status does its own redirection, appending to config.log.
5111 # Unfortunately, on DOS this fails, as config.log is still kept open
5112 # by configure, so config.status won't be able to write to it; its
5113 # output is simply discarded. So we exec the FD to /dev/null,
5114 # effectively closing config.log, so it can be properly (re)opened and
5115 # appended to by config.status. When coming back to configure, we
5116 # need to make the FD available again.
5117 if test "$no_create" != yes; then
5118 ac_cs_success=:
5119 ac_config_status_args=
5120 test "$silent" = yes &&
5121 ac_config_status_args="$ac_config_status_args --quiet"
5122 exec 5>/dev/null
5123 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5124 exec 5>>config.log
5125 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5126 # would make configure fail if this is the last instruction.
5127 $ac_cs_success || { (exit 1); exit 1; }