Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57.
4 #
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
12
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15 emulate sh
16 NULLCMD=:
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21 set -o posix
22 fi
23
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
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
43 do
44 if (set +x; test -n "`(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
48 fi
49 done
50
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
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
62 fi
63
64
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'`
76
77
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
85
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=:
95 fi
96 rm -f conf$$.sh
97 fi
98
99
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
111 do
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
116
117 ;;
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
123 fi
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; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
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
137 /*)
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
153 ;;
154 esac
155
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 '
166 N
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; }; }
177
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
184 }
185
186
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
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
198 fi
199
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'
210 fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 as_mkdir_p=false
222 fi
223
224 as_executable_p="test -f"
225
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
228
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
231
232
233 # IFS
234 # We need space, tab and new line, in precisely that order.
235 as_nl='
236 '
237 IFS=" $as_nl"
238
239 # CDPATH.
240 $as_unset CDPATH
241
242
243 # Name of the host.
244 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245 # so uname gets run too.
246 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
247
248 exec 6>&1
249
250 #
251 # Initializations.
252 #
253 ac_default_prefix=/usr/local
254 ac_config_libobj_dir=.
255 cross_compiling=no
256 subdirs=
257 MFLAGS=
258 MAKEFLAGS=
259 SHELL=${CONFIG_SHELL-/bin/sh}
260
261 # Maximum number of lines to put in a shell here document.
262 # This variable seems obsolete. It should probably be removed, and
263 # only ac_max_sed_lines should be used.
264 : ${ac_max_here_lines=38}
265
266 # Identity of this package.
267 PACKAGE_NAME=
268 PACKAGE_TARNAME=
269 PACKAGE_VERSION=
270 PACKAGE_STRING=
271 PACKAGE_BUGREPORT=
272
273 ac_unique_file="src/main.c"
274 # Factoring default headers for most tests.
275 ac_includes_default="\
276 #include <stdio.h>
277 #if HAVE_SYS_TYPES_H
278 # include <sys/types.h>
279 #endif
280 #if HAVE_SYS_STAT_H
281 # include <sys/stat.h>
282 #endif
283 #if STDC_HEADERS
284 # include <stdlib.h>
285 # include <stddef.h>
286 #else
287 # if HAVE_STDLIB_H
288 # include <stdlib.h>
289 # endif
290 #endif
291 #if HAVE_STRING_H
292 # if !STDC_HEADERS && HAVE_MEMORY_H
293 # include <memory.h>
294 # endif
295 # include <string.h>
296 #endif
297 #if HAVE_STRINGS_H
298 # include <strings.h>
299 #endif
300 #if HAVE_INTTYPES_H
301 # include <inttypes.h>
302 #else
303 # if HAVE_STDINT_H
304 # include <stdint.h>
305 # endif
306 #endif
307 #if HAVE_UNISTD_H
308 # include <unistd.h>
309 #endif"
310
311 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 PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os SDL_CONFIG SDL_CFLAGS SDL_LIBS PKG_CONFIG JACK_CFLAGS JACK_LIBS CPP EGREP LIBOBJS LTLIBOBJS'
312 ac_subst_files=''
313
314 # Initialize some variables set by options.
315 ac_init_help=
316 ac_init_version=false
317 # The variables have the same names as the options, with
318 # dashes changed to underlines.
319 cache_file=/dev/null
320 exec_prefix=NONE
321 no_create=
322 no_recursion=
323 prefix=NONE
324 program_prefix=NONE
325 program_suffix=NONE
326 program_transform_name=s,x,x,
327 silent=
328 site=
329 srcdir=
330 verbose=
331 x_includes=NONE
332 x_libraries=NONE
333
334 # Installation directory options.
335 # These are left unexpanded so users can "make install exec_prefix=/foo"
336 # and all the variables that are supposed to be based on exec_prefix
337 # by default will actually change.
338 # Use braces instead of parens because sh, perl, etc. also accept them.
339 bindir='${exec_prefix}/bin'
340 sbindir='${exec_prefix}/sbin'
341 libexecdir='${exec_prefix}/libexec'
342 datadir='${prefix}/share'
343 sysconfdir='${prefix}/etc'
344 sharedstatedir='${prefix}/com'
345 localstatedir='${prefix}/var'
346 libdir='${exec_prefix}/lib'
347 includedir='${prefix}/include'
348 oldincludedir='/usr/include'
349 infodir='${prefix}/info'
350 mandir='${prefix}/man'
351
352 ac_prev=
353 for ac_option
354 do
355 # If the previous option needs an argument, assign it.
356 if test -n "$ac_prev"; then
357 eval "$ac_prev=\$ac_option"
358 ac_prev=
359 continue
360 fi
361
362 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
363
364 # Accept the important Cygnus configure options, so we can diagnose typos.
365
366 case $ac_option in
367
368 -bindir | --bindir | --bindi | --bind | --bin | --bi)
369 ac_prev=bindir ;;
370 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
371 bindir=$ac_optarg ;;
372
373 -build | --build | --buil | --bui | --bu)
374 ac_prev=build_alias ;;
375 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
376 build_alias=$ac_optarg ;;
377
378 -cache-file | --cache-file | --cache-fil | --cache-fi \
379 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
380 ac_prev=cache_file ;;
381 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
382 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
383 cache_file=$ac_optarg ;;
384
385 --config-cache | -C)
386 cache_file=config.cache ;;
387
388 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
389 ac_prev=datadir ;;
390 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
391 | --da=*)
392 datadir=$ac_optarg ;;
393
394 -disable-* | --disable-*)
395 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
396 # Reject names that are not valid shell variable names.
397 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399 { (exit 1); exit 1; }; }
400 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401 eval "enable_$ac_feature=no" ;;
402
403 -enable-* | --enable-*)
404 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
405 # Reject names that are not valid shell variable names.
406 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
407 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408 { (exit 1); exit 1; }; }
409 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
410 case $ac_option in
411 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
412 *) ac_optarg=yes ;;
413 esac
414 eval "enable_$ac_feature='$ac_optarg'" ;;
415
416 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
417 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
418 | --exec | --exe | --ex)
419 ac_prev=exec_prefix ;;
420 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
421 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
422 | --exec=* | --exe=* | --ex=*)
423 exec_prefix=$ac_optarg ;;
424
425 -gas | --gas | --ga | --g)
426 # Obsolete; use --with-gas.
427 with_gas=yes ;;
428
429 -help | --help | --hel | --he | -h)
430 ac_init_help=long ;;
431 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
432 ac_init_help=recursive ;;
433 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
434 ac_init_help=short ;;
435
436 -host | --host | --hos | --ho)
437 ac_prev=host_alias ;;
438 -host=* | --host=* | --hos=* | --ho=*)
439 host_alias=$ac_optarg ;;
440
441 -includedir | --includedir | --includedi | --included | --include \
442 | --includ | --inclu | --incl | --inc)
443 ac_prev=includedir ;;
444 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
445 | --includ=* | --inclu=* | --incl=* | --inc=*)
446 includedir=$ac_optarg ;;
447
448 -infodir | --infodir | --infodi | --infod | --info | --inf)
449 ac_prev=infodir ;;
450 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451 infodir=$ac_optarg ;;
452
453 -libdir | --libdir | --libdi | --libd)
454 ac_prev=libdir ;;
455 -libdir=* | --libdir=* | --libdi=* | --libd=*)
456 libdir=$ac_optarg ;;
457
458 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
459 | --libexe | --libex | --libe)
460 ac_prev=libexecdir ;;
461 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
462 | --libexe=* | --libex=* | --libe=*)
463 libexecdir=$ac_optarg ;;
464
465 -localstatedir | --localstatedir | --localstatedi | --localstated \
466 | --localstate | --localstat | --localsta | --localst \
467 | --locals | --local | --loca | --loc | --lo)
468 ac_prev=localstatedir ;;
469 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
470 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
471 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
472 localstatedir=$ac_optarg ;;
473
474 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
475 ac_prev=mandir ;;
476 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
477 mandir=$ac_optarg ;;
478
479 -nfp | --nfp | --nf)
480 # Obsolete; use --without-fp.
481 with_fp=no ;;
482
483 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484 | --no-cr | --no-c | -n)
485 no_create=yes ;;
486
487 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
489 no_recursion=yes ;;
490
491 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
492 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
493 | --oldin | --oldi | --old | --ol | --o)
494 ac_prev=oldincludedir ;;
495 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
496 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
497 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
498 oldincludedir=$ac_optarg ;;
499
500 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
501 ac_prev=prefix ;;
502 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
503 prefix=$ac_optarg ;;
504
505 -program-prefix | --program-prefix | --program-prefi | --program-pref \
506 | --program-pre | --program-pr | --program-p)
507 ac_prev=program_prefix ;;
508 -program-prefix=* | --program-prefix=* | --program-prefi=* \
509 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
510 program_prefix=$ac_optarg ;;
511
512 -program-suffix | --program-suffix | --program-suffi | --program-suff \
513 | --program-suf | --program-su | --program-s)
514 ac_prev=program_suffix ;;
515 -program-suffix=* | --program-suffix=* | --program-suffi=* \
516 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
517 program_suffix=$ac_optarg ;;
518
519 -program-transform-name | --program-transform-name \
520 | --program-transform-nam | --program-transform-na \
521 | --program-transform-n | --program-transform- \
522 | --program-transform | --program-transfor \
523 | --program-transfo | --program-transf \
524 | --program-trans | --program-tran \
525 | --progr-tra | --program-tr | --program-t)
526 ac_prev=program_transform_name ;;
527 -program-transform-name=* | --program-transform-name=* \
528 | --program-transform-nam=* | --program-transform-na=* \
529 | --program-transform-n=* | --program-transform-=* \
530 | --program-transform=* | --program-transfor=* \
531 | --program-transfo=* | --program-transf=* \
532 | --program-trans=* | --program-tran=* \
533 | --progr-tra=* | --program-tr=* | --program-t=*)
534 program_transform_name=$ac_optarg ;;
535
536 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537 | -silent | --silent | --silen | --sile | --sil)
538 silent=yes ;;
539
540 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
541 ac_prev=sbindir ;;
542 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
543 | --sbi=* | --sb=*)
544 sbindir=$ac_optarg ;;
545
546 -sharedstatedir | --sharedstatedir | --sharedstatedi \
547 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
548 | --sharedst | --shareds | --shared | --share | --shar \
549 | --sha | --sh)
550 ac_prev=sharedstatedir ;;
551 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
552 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
553 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
554 | --sha=* | --sh=*)
555 sharedstatedir=$ac_optarg ;;
556
557 -site | --site | --sit)
558 ac_prev=site ;;
559 -site=* | --site=* | --sit=*)
560 site=$ac_optarg ;;
561
562 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
563 ac_prev=srcdir ;;
564 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
565 srcdir=$ac_optarg ;;
566
567 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
568 | --syscon | --sysco | --sysc | --sys | --sy)
569 ac_prev=sysconfdir ;;
570 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
571 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
572 sysconfdir=$ac_optarg ;;
573
574 -target | --target | --targe | --targ | --tar | --ta | --t)
575 ac_prev=target_alias ;;
576 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
577 target_alias=$ac_optarg ;;
578
579 -v | -verbose | --verbose | --verbos | --verbo | --verb)
580 verbose=yes ;;
581
582 -version | --version | --versio | --versi | --vers | -V)
583 ac_init_version=: ;;
584
585 -with-* | --with-*)
586 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
587 # Reject names that are not valid shell variable names.
588 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589 { echo "$as_me: error: invalid package name: $ac_package" >&2
590 { (exit 1); exit 1; }; }
591 ac_package=`echo $ac_package| sed 's/-/_/g'`
592 case $ac_option in
593 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
594 *) ac_optarg=yes ;;
595 esac
596 eval "with_$ac_package='$ac_optarg'" ;;
597
598 -without-* | --without-*)
599 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
600 # Reject names that are not valid shell variable names.
601 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
602 { echo "$as_me: error: invalid package name: $ac_package" >&2
603 { (exit 1); exit 1; }; }
604 ac_package=`echo $ac_package | sed 's/-/_/g'`
605 eval "with_$ac_package=no" ;;
606
607 --x)
608 # Obsolete; use --with-x.
609 with_x=yes ;;
610
611 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
612 | --x-incl | --x-inc | --x-in | --x-i)
613 ac_prev=x_includes ;;
614 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
615 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
616 x_includes=$ac_optarg ;;
617
618 -x-libraries | --x-libraries | --x-librarie | --x-librari \
619 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
620 ac_prev=x_libraries ;;
621 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
622 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
623 x_libraries=$ac_optarg ;;
624
625 -*) { echo "$as_me: error: unrecognized option: $ac_option
626 Try \`$0 --help' for more information." >&2
627 { (exit 1); exit 1; }; }
628 ;;
629
630 *=*)
631 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
632 # Reject names that are not valid shell variable names.
633 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
634 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635 { (exit 1); exit 1; }; }
636 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637 eval "$ac_envvar='$ac_optarg'"
638 export $ac_envvar ;;
639
640 *)
641 # FIXME: should be removed in autoconf 3.0.
642 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
644 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
646 ;;
647
648 esac
649 done
650
651 if test -n "$ac_prev"; then
652 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
653 { echo "$as_me: error: missing argument to $ac_option" >&2
654 { (exit 1); exit 1; }; }
655 fi
656
657 # Be sure to have absolute paths.
658 for ac_var in exec_prefix prefix
659 do
660 eval ac_val=$`echo $ac_var`
661 case $ac_val in
662 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
663 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664 { (exit 1); exit 1; }; };;
665 esac
666 done
667
668 # Be sure to have absolute paths.
669 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670 localstatedir libdir includedir oldincludedir infodir mandir
671 do
672 eval ac_val=$`echo $ac_var`
673 case $ac_val in
674 [\\/$]* | ?:[\\/]* ) ;;
675 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676 { (exit 1); exit 1; }; };;
677 esac
678 done
679
680 # There might be people who depend on the old broken behavior: `$host'
681 # used to hold the argument of --host etc.
682 # FIXME: To remove some day.
683 build=$build_alias
684 host=$host_alias
685 target=$target_alias
686
687 # FIXME: To remove some day.
688 if test "x$host_alias" != x; then
689 if test "x$build_alias" = x; then
690 cross_compiling=maybe
691 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692 If a cross compiler is detected then cross compile mode will be used." >&2
693 elif test "x$build_alias" != "x$host_alias"; then
694 cross_compiling=yes
695 fi
696 fi
697
698 ac_tool_prefix=
699 test -n "$host_alias" && ac_tool_prefix=$host_alias-
700
701 test "$silent" = yes && exec 6>/dev/null
702
703
704 # Find the source files, if location was not specified.
705 if test -z "$srcdir"; then
706 ac_srcdir_defaulted=yes
707 # Try the directory containing this script, then its parent.
708 ac_confdir=`(dirname "$0") 2>/dev/null ||
709 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710 X"$0" : 'X\(//\)[^/]' \| \
711 X"$0" : 'X\(//\)$' \| \
712 X"$0" : 'X\(/\)' \| \
713 . : '\(.\)' 2>/dev/null ||
714 echo X"$0" |
715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717 /^X\(\/\/\)$/{ s//\1/; q; }
718 /^X\(\/\).*/{ s//\1/; q; }
719 s/.*/./; q'`
720 srcdir=$ac_confdir
721 if test ! -r $srcdir/$ac_unique_file; then
722 srcdir=..
723 fi
724 else
725 ac_srcdir_defaulted=no
726 fi
727 if test ! -r $srcdir/$ac_unique_file; then
728 if test "$ac_srcdir_defaulted" = yes; then
729 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
730 { (exit 1); exit 1; }; }
731 else
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733 { (exit 1); exit 1; }; }
734 fi
735 fi
736 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
737 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738 { (exit 1); exit 1; }; }
739 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740 ac_env_build_alias_set=${build_alias+set}
741 ac_env_build_alias_value=$build_alias
742 ac_cv_env_build_alias_set=${build_alias+set}
743 ac_cv_env_build_alias_value=$build_alias
744 ac_env_host_alias_set=${host_alias+set}
745 ac_env_host_alias_value=$host_alias
746 ac_cv_env_host_alias_set=${host_alias+set}
747 ac_cv_env_host_alias_value=$host_alias
748 ac_env_target_alias_set=${target_alias+set}
749 ac_env_target_alias_value=$target_alias
750 ac_cv_env_target_alias_set=${target_alias+set}
751 ac_cv_env_target_alias_value=$target_alias
752 ac_env_CC_set=${CC+set}
753 ac_env_CC_value=$CC
754 ac_cv_env_CC_set=${CC+set}
755 ac_cv_env_CC_value=$CC
756 ac_env_CFLAGS_set=${CFLAGS+set}
757 ac_env_CFLAGS_value=$CFLAGS
758 ac_cv_env_CFLAGS_set=${CFLAGS+set}
759 ac_cv_env_CFLAGS_value=$CFLAGS
760 ac_env_LDFLAGS_set=${LDFLAGS+set}
761 ac_env_LDFLAGS_value=$LDFLAGS
762 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_cv_env_LDFLAGS_value=$LDFLAGS
764 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
765 ac_env_CPPFLAGS_value=$CPPFLAGS
766 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
768 ac_env_CPP_set=${CPP+set}
769 ac_env_CPP_value=$CPP
770 ac_cv_env_CPP_set=${CPP+set}
771 ac_cv_env_CPP_value=$CPP
772
773 #
774 # Report the --help message.
775 #
776 if test "$ac_init_help" = "long"; then
777 # Omit some internal or obsolete options to make the list less imposing.
778 # This message is too long to be a string in the A/UX 3.1 sh.
779 cat <<_ACEOF
780 \`configure' configures this package to adapt to many kinds of systems.
781
782 Usage: $0 [OPTION]... [VAR=VALUE]...
783
784 To assign environment variables (e.g., CC, CFLAGS...), specify them as
785 VAR=VALUE. See below for descriptions of some of the useful variables.
786
787 Defaults for the options are specified in brackets.
788
789 Configuration:
790 -h, --help display this help and exit
791 --help=short display options specific to this package
792 --help=recursive display the short help of all the included packages
793 -V, --version display version information and exit
794 -q, --quiet, --silent do not print \`checking...' messages
795 --cache-file=FILE cache test results in FILE [disabled]
796 -C, --config-cache alias for \`--cache-file=config.cache'
797 -n, --no-create do not create output files
798 --srcdir=DIR find the sources in DIR [configure dir or \`..']
799
800 _ACEOF
801
802 cat <<_ACEOF
803 Installation directories:
804 --prefix=PREFIX install architecture-independent files in PREFIX
805 [$ac_default_prefix]
806 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
807 [PREFIX]
808
809 By default, \`make install' will install all the files in
810 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
811 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
812 for instance \`--prefix=\$HOME'.
813
814 For better control, use the options below.
815
816 Fine tuning of the installation directories:
817 --bindir=DIR user executables [EPREFIX/bin]
818 --sbindir=DIR system admin executables [EPREFIX/sbin]
819 --libexecdir=DIR program executables [EPREFIX/libexec]
820 --datadir=DIR read-only architecture-independent data [PREFIX/share]
821 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
822 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
823 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
824 --libdir=DIR object code libraries [EPREFIX/lib]
825 --includedir=DIR C header files [PREFIX/include]
826 --oldincludedir=DIR C header files for non-gcc [/usr/include]
827 --infodir=DIR info documentation [PREFIX/info]
828 --mandir=DIR man documentation [PREFIX/man]
829 _ACEOF
830
831 cat <<\_ACEOF
832
833 Program names:
834 --program-prefix=PREFIX prepend PREFIX to installed program names
835 --program-suffix=SUFFIX append SUFFIX to installed program names
836 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
837
838 System types:
839 --build=BUILD configure for building on BUILD [guessed]
840 --host=HOST cross-compile to build programs to run on HOST [BUILD]
841 --target=TARGET configure for building compilers for TARGET [HOST]
842 _ACEOF
843 fi
844
845 if test -n "$ac_init_help"; then
846
847 cat <<\_ACEOF
848
849 Optional Features:
850 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
851 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
852 --disable-dependency-tracking Speeds up one-time builds
853 --enable-dependency-tracking Do not reject slow dependency extractors
854 --disable-sdltest Do not try to compile and run a test SDL program
855
856 Optional Packages:
857 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
858 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
859 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
860 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
861
862 Some influential environment variables:
863 CC C compiler command
864 CFLAGS C compiler flags
865 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
866 nonstandard directory <lib dir>
867 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
868 headers in a nonstandard directory <include dir>
869 CPP C preprocessor
870
871 Use these variables to override the choices made by `configure' or to help
872 it to find libraries and programs with nonstandard names/locations.
873
874 _ACEOF
875 fi
876
877 if test "$ac_init_help" = "recursive"; then
878 # If there are subdirs, report their specific --help.
879 ac_popdir=`pwd`
880 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
881 test -d $ac_dir || continue
882 ac_builddir=.
883
884 if test "$ac_dir" != .; then
885 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
886 # A "../" for each directory in $ac_dir_suffix.
887 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
888 else
889 ac_dir_suffix= ac_top_builddir=
890 fi
891
892 case $srcdir in
893 .) # No --srcdir option. We are building in place.
894 ac_srcdir=.
895 if test -z "$ac_top_builddir"; then
896 ac_top_srcdir=.
897 else
898 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
899 fi ;;
900 [\\/]* | ?:[\\/]* ) # Absolute path.
901 ac_srcdir=$srcdir$ac_dir_suffix;
902 ac_top_srcdir=$srcdir ;;
903 *) # Relative path.
904 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
905 ac_top_srcdir=$ac_top_builddir$srcdir ;;
906 esac
907 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
908 # absolute.
909 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
910 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
911 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
912 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
913
914 cd $ac_dir
915 # Check for guested configure; otherwise get Cygnus style configure.
916 if test -f $ac_srcdir/configure.gnu; then
917 echo
918 $SHELL $ac_srcdir/configure.gnu --help=recursive
919 elif test -f $ac_srcdir/configure; then
920 echo
921 $SHELL $ac_srcdir/configure --help=recursive
922 elif test -f $ac_srcdir/configure.ac ||
923 test -f $ac_srcdir/configure.in; then
924 echo
925 $ac_configure --help
926 else
927 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
928 fi
929 cd $ac_popdir
930 done
931 fi
932
933 test -n "$ac_init_help" && exit 0
934 if $ac_init_version; then
935 cat <<\_ACEOF
936
937 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
938 Free Software Foundation, Inc.
939 This configure script is free software; the Free Software Foundation
940 gives unlimited permission to copy, distribute and modify it.
941 _ACEOF
942 exit 0
943 fi
944 exec 5>config.log
945 cat >&5 <<_ACEOF
946 This file contains any messages produced by compilers while
947 running configure, to aid debugging if configure makes a mistake.
948
949 It was created by $as_me, which was
950 generated by GNU Autoconf 2.57. Invocation command line was
951
952 $ $0 $@
953
954 _ACEOF
955 {
956 cat <<_ASUNAME
957 ## --------- ##
958 ## Platform. ##
959 ## --------- ##
960
961 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
962 uname -m = `(uname -m) 2>/dev/null || echo unknown`
963 uname -r = `(uname -r) 2>/dev/null || echo unknown`
964 uname -s = `(uname -s) 2>/dev/null || echo unknown`
965 uname -v = `(uname -v) 2>/dev/null || echo unknown`
966
967 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
968 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
969
970 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
971 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
972 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
973 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
974 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
975 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
976 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
977
978 _ASUNAME
979
980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
981 for as_dir in $PATH
982 do
983 IFS=$as_save_IFS
984 test -z "$as_dir" && as_dir=.
985 echo "PATH: $as_dir"
986 done
987
988 } >&5
989
990 cat >&5 <<_ACEOF
991
992
993 ## ----------- ##
994 ## Core tests. ##
995 ## ----------- ##
996
997 _ACEOF
998
999
1000 # Keep a trace of the command line.
1001 # Strip out --no-create and --no-recursion so they do not pile up.
1002 # Strip out --silent because we don't want to record it for future runs.
1003 # Also quote any args containing shell meta-characters.
1004 # Make two passes to allow for proper duplicate-argument suppression.
1005 ac_configure_args=
1006 ac_configure_args0=
1007 ac_configure_args1=
1008 ac_sep=
1009 ac_must_keep_next=false
1010 for ac_pass in 1 2
1011 do
1012 for ac_arg
1013 do
1014 case $ac_arg in
1015 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1016 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1017 | -silent | --silent | --silen | --sile | --sil)
1018 continue ;;
1019 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1020 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1021 esac
1022 case $ac_pass in
1023 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1024 2)
1025 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1026 if test $ac_must_keep_next = true; then
1027 ac_must_keep_next=false # Got value, back to normal.
1028 else
1029 case $ac_arg in
1030 *=* | --config-cache | -C | -disable-* | --disable-* \
1031 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1032 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1033 | -with-* | --with-* | -without-* | --without-* | --x)
1034 case "$ac_configure_args0 " in
1035 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1036 esac
1037 ;;
1038 -* ) ac_must_keep_next=true ;;
1039 esac
1040 fi
1041 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1042 # Get rid of the leading space.
1043 ac_sep=" "
1044 ;;
1045 esac
1046 done
1047 done
1048 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1049 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1050
1051 # When interrupted or exit'd, cleanup temporary files, and complete
1052 # config.log. We remove comments because anyway the quotes in there
1053 # would cause problems or look ugly.
1054 # WARNING: Be sure not to use single quotes in there, as some shells,
1055 # such as our DU 5.0 friend, will then `close' the trap.
1056 trap 'exit_status=$?
1057 # Save into config.log some information that might help in debugging.
1058 {
1059 echo
1060
1061 cat <<\_ASBOX
1062 ## ---------------- ##
1063 ## Cache variables. ##
1064 ## ---------------- ##
1065 _ASBOX
1066 echo
1067 # The following way of writing the cache mishandles newlines in values,
1068 {
1069 (set) 2>&1 |
1070 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1071 *ac_space=\ *)
1072 sed -n \
1073 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1074 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1075 ;;
1076 *)
1077 sed -n \
1078 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1079 ;;
1080 esac;
1081 }
1082 echo
1083
1084 cat <<\_ASBOX
1085 ## ----------------- ##
1086 ## Output variables. ##
1087 ## ----------------- ##
1088 _ASBOX
1089 echo
1090 for ac_var in $ac_subst_vars
1091 do
1092 eval ac_val=$`echo $ac_var`
1093 echo "$ac_var='"'"'$ac_val'"'"'"
1094 done | sort
1095 echo
1096
1097 if test -n "$ac_subst_files"; then
1098 cat <<\_ASBOX
1099 ## ------------- ##
1100 ## Output files. ##
1101 ## ------------- ##
1102 _ASBOX
1103 echo
1104 for ac_var in $ac_subst_files
1105 do
1106 eval ac_val=$`echo $ac_var`
1107 echo "$ac_var='"'"'$ac_val'"'"'"
1108 done | sort
1109 echo
1110 fi
1111
1112 if test -s confdefs.h; then
1113 cat <<\_ASBOX
1114 ## ----------- ##
1115 ## confdefs.h. ##
1116 ## ----------- ##
1117 _ASBOX
1118 echo
1119 sed "/^$/d" confdefs.h | sort
1120 echo
1121 fi
1122 test "$ac_signal" != 0 &&
1123 echo "$as_me: caught signal $ac_signal"
1124 echo "$as_me: exit $exit_status"
1125 } >&5
1126 rm -f core core.* *.core &&
1127 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1128 exit $exit_status
1129 ' 0
1130 for ac_signal in 1 2 13 15; do
1131 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1132 done
1133 ac_signal=0
1134
1135 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1136 rm -rf conftest* confdefs.h
1137 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1138 echo >confdefs.h
1139
1140 # Predefined preprocessor variables.
1141
1142 cat >>confdefs.h <<_ACEOF
1143 #define PACKAGE_NAME "$PACKAGE_NAME"
1144 _ACEOF
1145
1146
1147 cat >>confdefs.h <<_ACEOF
1148 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1149 _ACEOF
1150
1151
1152 cat >>confdefs.h <<_ACEOF
1153 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1154 _ACEOF
1155
1156
1157 cat >>confdefs.h <<_ACEOF
1158 #define PACKAGE_STRING "$PACKAGE_STRING"
1159 _ACEOF
1160
1161
1162 cat >>confdefs.h <<_ACEOF
1163 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1164 _ACEOF
1165
1166
1167 # Let the site file select an alternate cache file if it wants to.
1168 # Prefer explicitly selected file to automatically selected ones.
1169 if test -z "$CONFIG_SITE"; then
1170 if test "x$prefix" != xNONE; then
1171 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1172 else
1173 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1174 fi
1175 fi
1176 for ac_site_file in $CONFIG_SITE; do
1177 if test -r "$ac_site_file"; then
1178 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1179 echo "$as_me: loading site script $ac_site_file" >&6;}
1180 sed 's/^/| /' "$ac_site_file" >&5
1181 . "$ac_site_file"
1182 fi
1183 done
1184
1185 if test -r "$cache_file"; then
1186 # Some versions of bash will fail to source /dev/null (special
1187 # files actually), so we avoid doing that.
1188 if test -f "$cache_file"; then
1189 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1190 echo "$as_me: loading cache $cache_file" >&6;}
1191 case $cache_file in
1192 [\\/]* | ?:[\\/]* ) . $cache_file;;
1193 *) . ./$cache_file;;
1194 esac
1195 fi
1196 else
1197 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1198 echo "$as_me: creating cache $cache_file" >&6;}
1199 >$cache_file
1200 fi
1201
1202 # Check that the precious variables saved in the cache have kept the same
1203 # value.
1204 ac_cache_corrupted=false
1205 for ac_var in `(set) 2>&1 |
1206 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1207 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1208 eval ac_new_set=\$ac_env_${ac_var}_set
1209 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1210 eval ac_new_val="\$ac_env_${ac_var}_value"
1211 case $ac_old_set,$ac_new_set in
1212 set,)
1213 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1214 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1215 ac_cache_corrupted=: ;;
1216 ,set)
1217 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1218 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1219 ac_cache_corrupted=: ;;
1220 ,);;
1221 *)
1222 if test "x$ac_old_val" != "x$ac_new_val"; then
1223 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1224 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1225 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1226 echo "$as_me: former value: $ac_old_val" >&2;}
1227 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1228 echo "$as_me: current value: $ac_new_val" >&2;}
1229 ac_cache_corrupted=:
1230 fi;;
1231 esac
1232 # Pass precious variables to config.status.
1233 if test "$ac_new_set" = set; then
1234 case $ac_new_val in
1235 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1236 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1237 *) ac_arg=$ac_var=$ac_new_val ;;
1238 esac
1239 case " $ac_configure_args " in
1240 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1241 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1242 esac
1243 fi
1244 done
1245 if $ac_cache_corrupted; then
1246 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1247 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1248 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1249 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1250 { (exit 1); exit 1; }; }
1251 fi
1252
1253 ac_ext=c
1254 ac_cpp='$CPP $CPPFLAGS'
1255 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1256 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1257 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277 # Add the stamp file to the list of files AC keeps track of,
1278 # along with our hook.
1279 ac_config_headers="$ac_config_headers src/config.h"
1280
1281
1282
1283 am__api_version="1.6"
1284 ac_aux_dir=
1285 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1286 if test -f $ac_dir/install-sh; then
1287 ac_aux_dir=$ac_dir
1288 ac_install_sh="$ac_aux_dir/install-sh -c"
1289 break
1290 elif test -f $ac_dir/install.sh; then
1291 ac_aux_dir=$ac_dir
1292 ac_install_sh="$ac_aux_dir/install.sh -c"
1293 break
1294 elif test -f $ac_dir/shtool; then
1295 ac_aux_dir=$ac_dir
1296 ac_install_sh="$ac_aux_dir/shtool install -c"
1297 break
1298 fi
1299 done
1300 if test -z "$ac_aux_dir"; then
1301 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1302 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1303 { (exit 1); exit 1; }; }
1304 fi
1305 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1306 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1307 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1308
1309 # Find a good install program. We prefer a C program (faster),
1310 # so one script is as good as another. But avoid the broken or
1311 # incompatible versions:
1312 # SysV /etc/install, /usr/sbin/install
1313 # SunOS /usr/etc/install
1314 # IRIX /sbin/install
1315 # AIX /bin/install
1316 # AmigaOS /C/install, which installs bootblocks on floppy discs
1317 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1318 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1319 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1320 # ./install, which can be erroneously created by make from ./install.sh.
1321 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1322 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1323 if test -z "$INSTALL"; then
1324 if test "${ac_cv_path_install+set}" = set; then
1325 echo $ECHO_N "(cached) $ECHO_C" >&6
1326 else
1327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1328 for as_dir in $PATH
1329 do
1330 IFS=$as_save_IFS
1331 test -z "$as_dir" && as_dir=.
1332 # Account for people who put trailing slashes in PATH elements.
1333 case $as_dir/ in
1334 ./ | .// | /cC/* | \
1335 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1336 /usr/ucb/* ) ;;
1337 *)
1338 # OSF1 and SCO ODT 3.0 have their own names for install.
1339 # Don't use installbsd from OSF since it installs stuff as root
1340 # by default.
1341 for ac_prog in ginstall scoinst install; do
1342 for ac_exec_ext in '' $ac_executable_extensions; do
1343 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1344 if test $ac_prog = install &&
1345 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1346 # AIX install. It has an incompatible calling convention.
1347 :
1348 elif test $ac_prog = install &&
1349 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1350 # program-specific install script used by HP pwplus--don't use.
1351 :
1352 else
1353 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1354 break 3
1355 fi
1356 fi
1357 done
1358 done
1359 ;;
1360 esac
1361 done
1362
1363
1364 fi
1365 if test "${ac_cv_path_install+set}" = set; then
1366 INSTALL=$ac_cv_path_install
1367 else
1368 # As a last resort, use the slow shell script. We don't cache a
1369 # path for INSTALL within a source directory, because that will
1370 # break other packages using the cache if that directory is
1371 # removed, or if the path is relative.
1372 INSTALL=$ac_install_sh
1373 fi
1374 fi
1375 echo "$as_me:$LINENO: result: $INSTALL" >&5
1376 echo "${ECHO_T}$INSTALL" >&6
1377
1378 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1379 # It thinks the first close brace ends the variable substitution.
1380 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1381
1382 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1383
1384 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1385
1386 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1387 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1388 # Just in case
1389 sleep 1
1390 echo timestamp > conftest.file
1391 # Do `set' in a subshell so we don't clobber the current shell's
1392 # arguments. Must try -L first in case configure is actually a
1393 # symlink; some systems play weird games with the mod time of symlinks
1394 # (eg FreeBSD returns the mod time of the symlink's containing
1395 # directory).
1396 if (
1397 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1398 if test "$*" = "X"; then
1399 # -L didn't work.
1400 set X `ls -t $srcdir/configure conftest.file`
1401 fi
1402 rm -f conftest.file
1403 if test "$*" != "X $srcdir/configure conftest.file" \
1404 && test "$*" != "X conftest.file $srcdir/configure"; then
1405
1406 # If neither matched, then we have a broken ls. This can happen
1407 # if, for instance, CONFIG_SHELL is bash and it inherits a
1408 # broken ls alias from the environment. This has actually
1409 # happened. Such a system could not be considered "sane".
1410 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1411 alias in your environment" >&5
1412 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1413 alias in your environment" >&2;}
1414 { (exit 1); exit 1; }; }
1415 fi
1416
1417 test "$2" = conftest.file
1418 )
1419 then
1420 # Ok.
1421 :
1422 else
1423 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1424 Check your system clock" >&5
1425 echo "$as_me: error: newly created file is older than distributed files!
1426 Check your system clock" >&2;}
1427 { (exit 1); exit 1; }; }
1428 fi
1429 echo "$as_me:$LINENO: result: yes" >&5
1430 echo "${ECHO_T}yes" >&6
1431 test "$program_prefix" != NONE &&
1432 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1433 # Use a double $ so make ignores it.
1434 test "$program_suffix" != NONE &&
1435 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1436 # Double any \ or $. echo might interpret backslashes.
1437 # By default was `s,x,x', remove it if useless.
1438 cat <<\_ACEOF >conftest.sed
1439 s/[\\$]/&&/g;s/;s,x,x,$//
1440 _ACEOF
1441 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1442 rm conftest.sed
1443
1444
1445 # expand $ac_aux_dir to an absolute path
1446 am_aux_dir=`cd $ac_aux_dir && pwd`
1447
1448 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1449 # Use eval to expand $SHELL
1450 if eval "$MISSING --run true"; then
1451 am_missing_run="$MISSING --run "
1452 else
1453 am_missing_run=
1454 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1455 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1456 fi
1457
1458 for ac_prog in gawk mawk nawk awk
1459 do
1460 # Extract the first word of "$ac_prog", so it can be a program name with args.
1461 set dummy $ac_prog; ac_word=$2
1462 echo "$as_me:$LINENO: checking for $ac_word" >&5
1463 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1464 if test "${ac_cv_prog_AWK+set}" = set; then
1465 echo $ECHO_N "(cached) $ECHO_C" >&6
1466 else
1467 if test -n "$AWK"; then
1468 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1469 else
1470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1471 for as_dir in $PATH
1472 do
1473 IFS=$as_save_IFS
1474 test -z "$as_dir" && as_dir=.
1475 for ac_exec_ext in '' $ac_executable_extensions; do
1476 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1477 ac_cv_prog_AWK="$ac_prog"
1478 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1479 break 2
1480 fi
1481 done
1482 done
1483
1484 fi
1485 fi
1486 AWK=$ac_cv_prog_AWK
1487 if test -n "$AWK"; then
1488 echo "$as_me:$LINENO: result: $AWK" >&5
1489 echo "${ECHO_T}$AWK" >&6
1490 else
1491 echo "$as_me:$LINENO: result: no" >&5
1492 echo "${ECHO_T}no" >&6
1493 fi
1494
1495 test -n "$AWK" && break
1496 done
1497
1498 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1499 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1500 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1501 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1502 echo $ECHO_N "(cached) $ECHO_C" >&6
1503 else
1504 cat >conftest.make <<\_ACEOF
1505 all:
1506 @echo 'ac_maketemp="$(MAKE)"'
1507 _ACEOF
1508 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1509 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1510 if test -n "$ac_maketemp"; then
1511 eval ac_cv_prog_make_${ac_make}_set=yes
1512 else
1513 eval ac_cv_prog_make_${ac_make}_set=no
1514 fi
1515 rm -f conftest.make
1516 fi
1517 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1518 echo "$as_me:$LINENO: result: yes" >&5
1519 echo "${ECHO_T}yes" >&6
1520 SET_MAKE=
1521 else
1522 echo "$as_me:$LINENO: result: no" >&5
1523 echo "${ECHO_T}no" >&6
1524 SET_MAKE="MAKE=${MAKE-make}"
1525 fi
1526
1527 # test to see if srcdir already configured
1528 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1529 test -f $srcdir/config.status; then
1530 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1531 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1532 { (exit 1); exit 1; }; }
1533 fi
1534
1535 # Define the identity of the package.
1536 PACKAGE=meterbridge
1537 VERSION=0.9.2
1538
1539
1540 cat >>confdefs.h <<_ACEOF
1541 #define PACKAGE "$PACKAGE"
1542 _ACEOF
1543
1544
1545 cat >>confdefs.h <<_ACEOF
1546 #define VERSION "$VERSION"
1547 _ACEOF
1548
1549 # Some tools Automake needs.
1550
1551 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1552
1553
1554 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1555
1556
1557 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1558
1559
1560 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1561
1562
1563 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1564
1565
1566 AMTAR=${AMTAR-"${am_missing_run}tar"}
1567
1568 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1569
1570 # Installed binaries are usually stripped using `strip' when the user
1571 # run `make install-strip'. However `strip' might not be the right
1572 # tool to use in cross-compilation environments, therefore Automake
1573 # will honor the `STRIP' environment variable to overrule this program.
1574 if test "$cross_compiling" != no; then
1575 if test -n "$ac_tool_prefix"; then
1576 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1577 set dummy ${ac_tool_prefix}strip; ac_word=$2
1578 echo "$as_me:$LINENO: checking for $ac_word" >&5
1579 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1580 if test "${ac_cv_prog_STRIP+set}" = set; then
1581 echo $ECHO_N "(cached) $ECHO_C" >&6
1582 else
1583 if test -n "$STRIP"; then
1584 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1585 else
1586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1587 for as_dir in $PATH
1588 do
1589 IFS=$as_save_IFS
1590 test -z "$as_dir" && as_dir=.
1591 for ac_exec_ext in '' $ac_executable_extensions; do
1592 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1593 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1594 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1595 break 2
1596 fi
1597 done
1598 done
1599
1600 fi
1601 fi
1602 STRIP=$ac_cv_prog_STRIP
1603 if test -n "$STRIP"; then
1604 echo "$as_me:$LINENO: result: $STRIP" >&5
1605 echo "${ECHO_T}$STRIP" >&6
1606 else
1607 echo "$as_me:$LINENO: result: no" >&5
1608 echo "${ECHO_T}no" >&6
1609 fi
1610
1611 fi
1612 if test -z "$ac_cv_prog_STRIP"; then
1613 ac_ct_STRIP=$STRIP
1614 # Extract the first word of "strip", so it can be a program name with args.
1615 set dummy strip; ac_word=$2
1616 echo "$as_me:$LINENO: checking for $ac_word" >&5
1617 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1618 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1619 echo $ECHO_N "(cached) $ECHO_C" >&6
1620 else
1621 if test -n "$ac_ct_STRIP"; then
1622 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1623 else
1624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1625 for as_dir in $PATH
1626 do
1627 IFS=$as_save_IFS
1628 test -z "$as_dir" && as_dir=.
1629 for ac_exec_ext in '' $ac_executable_extensions; do
1630 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1631 ac_cv_prog_ac_ct_STRIP="strip"
1632 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1633 break 2
1634 fi
1635 done
1636 done
1637
1638 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1639 fi
1640 fi
1641 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1642 if test -n "$ac_ct_STRIP"; then
1643 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1644 echo "${ECHO_T}$ac_ct_STRIP" >&6
1645 else
1646 echo "$as_me:$LINENO: result: no" >&5
1647 echo "${ECHO_T}no" >&6
1648 fi
1649
1650 STRIP=$ac_ct_STRIP
1651 else
1652 STRIP="$ac_cv_prog_STRIP"
1653 fi
1654
1655 fi
1656 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1657
1658 # We need awk for the "check" target. The system "awk" is bad on
1659 # some platforms.
1660
1661
1662
1663
1664 # Checks for programs.
1665 ac_ext=c
1666 ac_cpp='$CPP $CPPFLAGS'
1667 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1668 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1669 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1670 if test -n "$ac_tool_prefix"; then
1671 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1672 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1673 echo "$as_me:$LINENO: checking for $ac_word" >&5
1674 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1675 if test "${ac_cv_prog_CC+set}" = set; then
1676 echo $ECHO_N "(cached) $ECHO_C" >&6
1677 else
1678 if test -n "$CC"; then
1679 ac_cv_prog_CC="$CC" # Let the user override the test.
1680 else
1681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1682 for as_dir in $PATH
1683 do
1684 IFS=$as_save_IFS
1685 test -z "$as_dir" && as_dir=.
1686 for ac_exec_ext in '' $ac_executable_extensions; do
1687 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1688 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1689 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1690 break 2
1691 fi
1692 done
1693 done
1694
1695 fi
1696 fi
1697 CC=$ac_cv_prog_CC
1698 if test -n "$CC"; then
1699 echo "$as_me:$LINENO: result: $CC" >&5
1700 echo "${ECHO_T}$CC" >&6
1701 else
1702 echo "$as_me:$LINENO: result: no" >&5
1703 echo "${ECHO_T}no" >&6
1704 fi
1705
1706 fi
1707 if test -z "$ac_cv_prog_CC"; then
1708 ac_ct_CC=$CC
1709 # Extract the first word of "gcc", so it can be a program name with args.
1710 set dummy gcc; ac_word=$2
1711 echo "$as_me:$LINENO: checking for $ac_word" >&5
1712 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1713 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1714 echo $ECHO_N "(cached) $ECHO_C" >&6
1715 else
1716 if test -n "$ac_ct_CC"; then
1717 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1718 else
1719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1720 for as_dir in $PATH
1721 do
1722 IFS=$as_save_IFS
1723 test -z "$as_dir" && as_dir=.
1724 for ac_exec_ext in '' $ac_executable_extensions; do
1725 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1726 ac_cv_prog_ac_ct_CC="gcc"
1727 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1728 break 2
1729 fi
1730 done
1731 done
1732
1733 fi
1734 fi
1735 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1736 if test -n "$ac_ct_CC"; then
1737 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1738 echo "${ECHO_T}$ac_ct_CC" >&6
1739 else
1740 echo "$as_me:$LINENO: result: no" >&5
1741 echo "${ECHO_T}no" >&6
1742 fi
1743
1744 CC=$ac_ct_CC
1745 else
1746 CC="$ac_cv_prog_CC"
1747 fi
1748
1749 if test -z "$CC"; then
1750 if test -n "$ac_tool_prefix"; then
1751 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1752 set dummy ${ac_tool_prefix}cc; ac_word=$2
1753 echo "$as_me:$LINENO: checking for $ac_word" >&5
1754 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1755 if test "${ac_cv_prog_CC+set}" = set; then
1756 echo $ECHO_N "(cached) $ECHO_C" >&6
1757 else
1758 if test -n "$CC"; then
1759 ac_cv_prog_CC="$CC" # Let the user override the test.
1760 else
1761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1762 for as_dir in $PATH
1763 do
1764 IFS=$as_save_IFS
1765 test -z "$as_dir" && as_dir=.
1766 for ac_exec_ext in '' $ac_executable_extensions; do
1767 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1768 ac_cv_prog_CC="${ac_tool_prefix}cc"
1769 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1770 break 2
1771 fi
1772 done
1773 done
1774
1775 fi
1776 fi
1777 CC=$ac_cv_prog_CC
1778 if test -n "$CC"; then
1779 echo "$as_me:$LINENO: result: $CC" >&5
1780 echo "${ECHO_T}$CC" >&6
1781 else
1782 echo "$as_me:$LINENO: result: no" >&5
1783 echo "${ECHO_T}no" >&6
1784 fi
1785
1786 fi
1787 if test -z "$ac_cv_prog_CC"; then
1788 ac_ct_CC=$CC
1789 # Extract the first word of "cc", so it can be a program name with args.
1790 set dummy cc; ac_word=$2
1791 echo "$as_me:$LINENO: checking for $ac_word" >&5
1792 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1793 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1794 echo $ECHO_N "(cached) $ECHO_C" >&6
1795 else
1796 if test -n "$ac_ct_CC"; then
1797 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1798 else
1799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1800 for as_dir in $PATH
1801 do
1802 IFS=$as_save_IFS
1803 test -z "$as_dir" && as_dir=.
1804 for ac_exec_ext in '' $ac_executable_extensions; do
1805 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1806 ac_cv_prog_ac_ct_CC="cc"
1807 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1808 break 2
1809 fi
1810 done
1811 done
1812
1813 fi
1814 fi
1815 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1816 if test -n "$ac_ct_CC"; then
1817 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1818 echo "${ECHO_T}$ac_ct_CC" >&6
1819 else
1820 echo "$as_me:$LINENO: result: no" >&5
1821 echo "${ECHO_T}no" >&6
1822 fi
1823
1824 CC=$ac_ct_CC
1825 else
1826 CC="$ac_cv_prog_CC"
1827 fi
1828
1829 fi
1830 if test -z "$CC"; then
1831 # Extract the first word of "cc", so it can be a program name with args.
1832 set dummy cc; ac_word=$2
1833 echo "$as_me:$LINENO: checking for $ac_word" >&5
1834 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1835 if test "${ac_cv_prog_CC+set}" = set; then
1836 echo $ECHO_N "(cached) $ECHO_C" >&6
1837 else
1838 if test -n "$CC"; then
1839 ac_cv_prog_CC="$CC" # Let the user override the test.
1840 else
1841 ac_prog_rejected=no
1842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1843 for as_dir in $PATH
1844 do
1845 IFS=$as_save_IFS
1846 test -z "$as_dir" && as_dir=.
1847 for ac_exec_ext in '' $ac_executable_extensions; do
1848 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1849 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1850 ac_prog_rejected=yes
1851 continue
1852 fi
1853 ac_cv_prog_CC="cc"
1854 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1855 break 2
1856 fi
1857 done
1858 done
1859
1860 if test $ac_prog_rejected = yes; then
1861 # We found a bogon in the path, so make sure we never use it.
1862 set dummy $ac_cv_prog_CC
1863 shift
1864 if test $# != 0; then
1865 # We chose a different compiler from the bogus one.
1866 # However, it has the same basename, so the bogon will be chosen
1867 # first if we set CC to just the basename; use the full file name.
1868 shift
1869 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1870 fi
1871 fi
1872 fi
1873 fi
1874 CC=$ac_cv_prog_CC
1875 if test -n "$CC"; then
1876 echo "$as_me:$LINENO: result: $CC" >&5
1877 echo "${ECHO_T}$CC" >&6
1878 else
1879 echo "$as_me:$LINENO: result: no" >&5
1880 echo "${ECHO_T}no" >&6
1881 fi
1882
1883 fi
1884 if test -z "$CC"; then
1885 if test -n "$ac_tool_prefix"; then
1886 for ac_prog in cl
1887 do
1888 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1889 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1890 echo "$as_me:$LINENO: checking for $ac_word" >&5
1891 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1892 if test "${ac_cv_prog_CC+set}" = set; then
1893 echo $ECHO_N "(cached) $ECHO_C" >&6
1894 else
1895 if test -n "$CC"; then
1896 ac_cv_prog_CC="$CC" # Let the user override the test.
1897 else
1898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1899 for as_dir in $PATH
1900 do
1901 IFS=$as_save_IFS
1902 test -z "$as_dir" && as_dir=.
1903 for ac_exec_ext in '' $ac_executable_extensions; do
1904 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1905 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1906 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1907 break 2
1908 fi
1909 done
1910 done
1911
1912 fi
1913 fi
1914 CC=$ac_cv_prog_CC
1915 if test -n "$CC"; then
1916 echo "$as_me:$LINENO: result: $CC" >&5
1917 echo "${ECHO_T}$CC" >&6
1918 else
1919 echo "$as_me:$LINENO: result: no" >&5
1920 echo "${ECHO_T}no" >&6
1921 fi
1922
1923 test -n "$CC" && break
1924 done
1925 fi
1926 if test -z "$CC"; then
1927 ac_ct_CC=$CC
1928 for ac_prog in cl
1929 do
1930 # Extract the first word of "$ac_prog", so it can be a program name with args.
1931 set dummy $ac_prog; ac_word=$2
1932 echo "$as_me:$LINENO: checking for $ac_word" >&5
1933 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1934 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1935 echo $ECHO_N "(cached) $ECHO_C" >&6
1936 else
1937 if test -n "$ac_ct_CC"; then
1938 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1939 else
1940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1941 for as_dir in $PATH
1942 do
1943 IFS=$as_save_IFS
1944 test -z "$as_dir" && as_dir=.
1945 for ac_exec_ext in '' $ac_executable_extensions; do
1946 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1947 ac_cv_prog_ac_ct_CC="$ac_prog"
1948 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1949 break 2
1950 fi
1951 done
1952 done
1953
1954 fi
1955 fi
1956 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1957 if test -n "$ac_ct_CC"; then
1958 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1959 echo "${ECHO_T}$ac_ct_CC" >&6
1960 else
1961 echo "$as_me:$LINENO: result: no" >&5
1962 echo "${ECHO_T}no" >&6
1963 fi
1964
1965 test -n "$ac_ct_CC" && break
1966 done
1967
1968 CC=$ac_ct_CC
1969 fi
1970
1971 fi
1972
1973
1974 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1975 See \`config.log' for more details." >&5
1976 echo "$as_me: error: no acceptable C compiler found in \$PATH
1977 See \`config.log' for more details." >&2;}
1978 { (exit 1); exit 1; }; }
1979
1980 # Provide some information about the compiler.
1981 echo "$as_me:$LINENO:" \
1982 "checking for C compiler version" >&5
1983 ac_compiler=`set X $ac_compile; echo $2`
1984 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1985 (eval $ac_compiler --version </dev/null >&5) 2>&5
1986 ac_status=$?
1987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1988 (exit $ac_status); }
1989 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1990 (eval $ac_compiler -v </dev/null >&5) 2>&5
1991 ac_status=$?
1992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1993 (exit $ac_status); }
1994 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1995 (eval $ac_compiler -V </dev/null >&5) 2>&5
1996 ac_status=$?
1997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1998 (exit $ac_status); }
1999
2000 cat >conftest.$ac_ext <<_ACEOF
2001 #line $LINENO "configure"
2002 /* confdefs.h. */
2003 _ACEOF
2004 cat confdefs.h >>conftest.$ac_ext
2005 cat >>conftest.$ac_ext <<_ACEOF
2006 /* end confdefs.h. */
2007
2008 int
2009 main ()
2010 {
2011
2012 ;
2013 return 0;
2014 }
2015 _ACEOF
2016 ac_clean_files_save=$ac_clean_files
2017 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2018 # Try to create an executable without -o first, disregard a.out.
2019 # It will help us diagnose broken compilers, and finding out an intuition
2020 # of exeext.
2021 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2022 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2023 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2024 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2025 (eval $ac_link_default) 2>&5
2026 ac_status=$?
2027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2028 (exit $ac_status); }; then
2029 # Find the output, starting from the most likely. This scheme is
2030 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2031 # resort.
2032
2033 # Be careful to initialize this variable, since it used to be cached.
2034 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2035 ac_cv_exeext=
2036 # b.out is created by i960 compilers.
2037 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2038 do
2039 test -f "$ac_file" || continue
2040 case $ac_file in
2041 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2042 ;;
2043 conftest.$ac_ext )
2044 # This is the source file.
2045 ;;
2046 [ab].out )
2047 # We found the default executable, but exeext='' is most
2048 # certainly right.
2049 break;;
2050 *.* )
2051 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2052 # FIXME: I believe we export ac_cv_exeext for Libtool,
2053 # but it would be cool to find out if it's true. Does anybody
2054 # maintain Libtool? --akim.
2055 export ac_cv_exeext
2056 break;;
2057 * )
2058 break;;
2059 esac
2060 done
2061 else
2062 echo "$as_me: failed program was:" >&5
2063 sed 's/^/| /' conftest.$ac_ext >&5
2064
2065 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2066 See \`config.log' for more details." >&5
2067 echo "$as_me: error: C compiler cannot create executables
2068 See \`config.log' for more details." >&2;}
2069 { (exit 77); exit 77; }; }
2070 fi
2071
2072 ac_exeext=$ac_cv_exeext
2073 echo "$as_me:$LINENO: result: $ac_file" >&5
2074 echo "${ECHO_T}$ac_file" >&6
2075
2076 # Check the compiler produces executables we can run. If not, either
2077 # the compiler is broken, or we cross compile.
2078 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2079 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2080 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2081 # If not cross compiling, check that we can run a simple program.
2082 if test "$cross_compiling" != yes; then
2083 if { ac_try='./$ac_file'
2084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2085 (eval $ac_try) 2>&5
2086 ac_status=$?
2087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2088 (exit $ac_status); }; }; then
2089 cross_compiling=no
2090 else
2091 if test "$cross_compiling" = maybe; then
2092 cross_compiling=yes
2093 else
2094 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2095 If you meant to cross compile, use \`--host'.
2096 See \`config.log' for more details." >&5
2097 echo "$as_me: error: cannot run C compiled programs.
2098 If you meant to cross compile, use \`--host'.
2099 See \`config.log' for more details." >&2;}
2100 { (exit 1); exit 1; }; }
2101 fi
2102 fi
2103 fi
2104 echo "$as_me:$LINENO: result: yes" >&5
2105 echo "${ECHO_T}yes" >&6
2106
2107 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2108 ac_clean_files=$ac_clean_files_save
2109 # Check the compiler produces executables we can run. If not, either
2110 # the compiler is broken, or we cross compile.
2111 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2112 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2113 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2114 echo "${ECHO_T}$cross_compiling" >&6
2115
2116 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2117 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2118 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2119 (eval $ac_link) 2>&5
2120 ac_status=$?
2121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2122 (exit $ac_status); }; then
2123 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2124 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2125 # work properly (i.e., refer to `conftest.exe'), while it won't with
2126 # `rm'.
2127 for ac_file in conftest.exe conftest conftest.*; do
2128 test -f "$ac_file" || continue
2129 case $ac_file in
2130 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2131 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2132 export ac_cv_exeext
2133 break;;
2134 * ) break;;
2135 esac
2136 done
2137 else
2138 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2139 See \`config.log' for more details." >&5
2140 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2141 See \`config.log' for more details." >&2;}
2142 { (exit 1); exit 1; }; }
2143 fi
2144
2145 rm -f conftest$ac_cv_exeext
2146 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2147 echo "${ECHO_T}$ac_cv_exeext" >&6
2148
2149 rm -f conftest.$ac_ext
2150 EXEEXT=$ac_cv_exeext
2151 ac_exeext=$EXEEXT
2152 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2153 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2154 if test "${ac_cv_objext+set}" = set; then
2155 echo $ECHO_N "(cached) $ECHO_C" >&6
2156 else
2157 cat >conftest.$ac_ext <<_ACEOF
2158 #line $LINENO "configure"
2159 /* confdefs.h. */
2160 _ACEOF
2161 cat confdefs.h >>conftest.$ac_ext
2162 cat >>conftest.$ac_ext <<_ACEOF
2163 /* end confdefs.h. */
2164
2165 int
2166 main ()
2167 {
2168
2169 ;
2170 return 0;
2171 }
2172 _ACEOF
2173 rm -f conftest.o conftest.obj
2174 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2175 (eval $ac_compile) 2>&5
2176 ac_status=$?
2177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2178 (exit $ac_status); }; then
2179 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2180 case $ac_file in
2181 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2182 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2183 break;;
2184 esac
2185 done
2186 else
2187 echo "$as_me: failed program was:" >&5
2188 sed 's/^/| /' conftest.$ac_ext >&5
2189
2190 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2191 See \`config.log' for more details." >&5
2192 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2193 See \`config.log' for more details." >&2;}
2194 { (exit 1); exit 1; }; }
2195 fi
2196
2197 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2198 fi
2199 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2200 echo "${ECHO_T}$ac_cv_objext" >&6
2201 OBJEXT=$ac_cv_objext
2202 ac_objext=$OBJEXT
2203 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2204 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2205 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2206 echo $ECHO_N "(cached) $ECHO_C" >&6
2207 else
2208 cat >conftest.$ac_ext <<_ACEOF
2209 #line $LINENO "configure"
2210 /* confdefs.h. */
2211 _ACEOF
2212 cat confdefs.h >>conftest.$ac_ext
2213 cat >>conftest.$ac_ext <<_ACEOF
2214 /* end confdefs.h. */
2215
2216 int
2217 main ()
2218 {
2219 #ifndef __GNUC__
2220 choke me
2221 #endif
2222
2223 ;
2224 return 0;
2225 }
2226 _ACEOF
2227 rm -f conftest.$ac_objext
2228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2229 (eval $ac_compile) 2>&5
2230 ac_status=$?
2231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2232 (exit $ac_status); } &&
2233 { ac_try='test -s conftest.$ac_objext'
2234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2235 (eval $ac_try) 2>&5
2236 ac_status=$?
2237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2238 (exit $ac_status); }; }; then
2239 ac_compiler_gnu=yes
2240 else
2241 echo "$as_me: failed program was:" >&5
2242 sed 's/^/| /' conftest.$ac_ext >&5
2243
2244 ac_compiler_gnu=no
2245 fi
2246 rm -f conftest.$ac_objext conftest.$ac_ext
2247 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2248
2249 fi
2250 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2251 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2252 GCC=`test $ac_compiler_gnu = yes && echo yes`
2253 ac_test_CFLAGS=${CFLAGS+set}
2254 ac_save_CFLAGS=$CFLAGS
2255 CFLAGS="-g"
2256 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2257 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2258 if test "${ac_cv_prog_cc_g+set}" = set; then
2259 echo $ECHO_N "(cached) $ECHO_C" >&6
2260 else
2261 cat >conftest.$ac_ext <<_ACEOF
2262 #line $LINENO "configure"
2263 /* confdefs.h. */
2264 _ACEOF
2265 cat confdefs.h >>conftest.$ac_ext
2266 cat >>conftest.$ac_ext <<_ACEOF
2267 /* end confdefs.h. */
2268
2269 int
2270 main ()
2271 {
2272
2273 ;
2274 return 0;
2275 }
2276 _ACEOF
2277 rm -f conftest.$ac_objext
2278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2279 (eval $ac_compile) 2>&5
2280 ac_status=$?
2281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2282 (exit $ac_status); } &&
2283 { ac_try='test -s conftest.$ac_objext'
2284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2285 (eval $ac_try) 2>&5
2286 ac_status=$?
2287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2288 (exit $ac_status); }; }; then
2289 ac_cv_prog_cc_g=yes
2290 else
2291 echo "$as_me: failed program was:" >&5
2292 sed 's/^/| /' conftest.$ac_ext >&5
2293
2294 ac_cv_prog_cc_g=no
2295 fi
2296 rm -f conftest.$ac_objext conftest.$ac_ext
2297 fi
2298 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2299 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2300 if test "$ac_test_CFLAGS" = set; then
2301 CFLAGS=$ac_save_CFLAGS
2302 elif test $ac_cv_prog_cc_g = yes; then
2303 if test "$GCC" = yes; then
2304 CFLAGS="-g -O2"
2305 else
2306 CFLAGS="-g"
2307 fi
2308 else
2309 if test "$GCC" = yes; then
2310 CFLAGS="-O2"
2311 else
2312 CFLAGS=
2313 fi
2314 fi
2315 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2316 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2317 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2318 echo $ECHO_N "(cached) $ECHO_C" >&6
2319 else
2320 ac_cv_prog_cc_stdc=no
2321 ac_save_CC=$CC
2322 cat >conftest.$ac_ext <<_ACEOF
2323 #line $LINENO "configure"
2324 /* confdefs.h. */
2325 _ACEOF
2326 cat confdefs.h >>conftest.$ac_ext
2327 cat >>conftest.$ac_ext <<_ACEOF
2328 /* end confdefs.h. */
2329 #include <stdarg.h>
2330 #include <stdio.h>
2331 #include <sys/types.h>
2332 #include <sys/stat.h>
2333 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2334 struct buf { int x; };
2335 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2336 static char *e (p, i)
2337 char **p;
2338 int i;
2339 {
2340 return p[i];
2341 }
2342 static char *f (char * (*g) (char **, int), char **p, ...)
2343 {
2344 char *s;
2345 va_list v;
2346 va_start (v,p);
2347 s = g (p, va_arg (v,int));
2348 va_end (v);
2349 return s;
2350 }
2351 int test (int i, double x);
2352 struct s1 {int (*f) (int a);};
2353 struct s2 {int (*f) (double a);};
2354 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2355 int argc;
2356 char **argv;
2357 int
2358 main ()
2359 {
2360 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2361 ;
2362 return 0;
2363 }
2364 _ACEOF
2365 # Don't try gcc -ansi; that turns off useful extensions and
2366 # breaks some systems' header files.
2367 # AIX -qlanglvl=ansi
2368 # Ultrix and OSF/1 -std1
2369 # HP-UX 10.20 and later -Ae
2370 # HP-UX older versions -Aa -D_HPUX_SOURCE
2371 # SVR4 -Xc -D__EXTENSIONS__
2372 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2373 do
2374 CC="$ac_save_CC $ac_arg"
2375 rm -f conftest.$ac_objext
2376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2377 (eval $ac_compile) 2>&5
2378 ac_status=$?
2379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2380 (exit $ac_status); } &&
2381 { ac_try='test -s conftest.$ac_objext'
2382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2383 (eval $ac_try) 2>&5
2384 ac_status=$?
2385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2386 (exit $ac_status); }; }; then
2387 ac_cv_prog_cc_stdc=$ac_arg
2388 break
2389 else
2390 echo "$as_me: failed program was:" >&5
2391 sed 's/^/| /' conftest.$ac_ext >&5
2392
2393 fi
2394 rm -f conftest.$ac_objext
2395 done
2396 rm -f conftest.$ac_ext conftest.$ac_objext
2397 CC=$ac_save_CC
2398
2399 fi
2400
2401 case "x$ac_cv_prog_cc_stdc" in
2402 x|xno)
2403 echo "$as_me:$LINENO: result: none needed" >&5
2404 echo "${ECHO_T}none needed" >&6 ;;
2405 *)
2406 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2407 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2408 CC="$CC $ac_cv_prog_cc_stdc" ;;
2409 esac
2410
2411 # Some people use a C++ compiler to compile C. Since we use `exit',
2412 # in C++ we need to declare it. In case someone uses the same compiler
2413 # for both compiling C and C++ we need to have the C++ compiler decide
2414 # the declaration of exit, since it's the most demanding environment.
2415 cat >conftest.$ac_ext <<_ACEOF
2416 #ifndef __cplusplus
2417 choke me
2418 #endif
2419 _ACEOF
2420 rm -f conftest.$ac_objext
2421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2422 (eval $ac_compile) 2>&5
2423 ac_status=$?
2424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2425 (exit $ac_status); } &&
2426 { ac_try='test -s conftest.$ac_objext'
2427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2428 (eval $ac_try) 2>&5
2429 ac_status=$?
2430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2431 (exit $ac_status); }; }; then
2432 for ac_declaration in \
2433 ''\
2434 '#include <stdlib.h>' \
2435 'extern "C" void std::exit (int) throw (); using std::exit;' \
2436 'extern "C" void std::exit (int); using std::exit;' \
2437 'extern "C" void exit (int) throw ();' \
2438 'extern "C" void exit (int);' \
2439 'void exit (int);'
2440 do
2441 cat >conftest.$ac_ext <<_ACEOF
2442 #line $LINENO "configure"
2443 /* confdefs.h. */
2444 _ACEOF
2445 cat confdefs.h >>conftest.$ac_ext
2446 cat >>conftest.$ac_ext <<_ACEOF
2447 /* end confdefs.h. */
2448 #include <stdlib.h>
2449 $ac_declaration
2450 int
2451 main ()
2452 {
2453 exit (42);
2454 ;
2455 return 0;
2456 }
2457 _ACEOF
2458 rm -f conftest.$ac_objext
2459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2460 (eval $ac_compile) 2>&5
2461 ac_status=$?
2462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2463 (exit $ac_status); } &&
2464 { ac_try='test -s conftest.$ac_objext'
2465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2466 (eval $ac_try) 2>&5
2467 ac_status=$?
2468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2469 (exit $ac_status); }; }; then
2470 :
2471 else
2472 echo "$as_me: failed program was:" >&5
2473 sed 's/^/| /' conftest.$ac_ext >&5
2474
2475 continue
2476 fi
2477 rm -f conftest.$ac_objext conftest.$ac_ext
2478 cat >conftest.$ac_ext <<_ACEOF
2479 #line $LINENO "configure"
2480 /* confdefs.h. */
2481 _ACEOF
2482 cat confdefs.h >>conftest.$ac_ext
2483 cat >>conftest.$ac_ext <<_ACEOF
2484 /* end confdefs.h. */
2485 $ac_declaration
2486 int
2487 main ()
2488 {
2489 exit (42);
2490 ;
2491 return 0;
2492 }
2493 _ACEOF
2494 rm -f conftest.$ac_objext
2495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2496 (eval $ac_compile) 2>&5
2497 ac_status=$?
2498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2499 (exit $ac_status); } &&
2500 { ac_try='test -s conftest.$ac_objext'
2501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2502 (eval $ac_try) 2>&5
2503 ac_status=$?
2504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2505 (exit $ac_status); }; }; then
2506 break
2507 else
2508 echo "$as_me: failed program was:" >&5
2509 sed 's/^/| /' conftest.$ac_ext >&5
2510
2511 fi
2512 rm -f conftest.$ac_objext conftest.$ac_ext
2513 done
2514 rm -f conftest*
2515 if test -n "$ac_declaration"; then
2516 echo '#ifdef __cplusplus' >>confdefs.h
2517 echo $ac_declaration >>confdefs.h
2518 echo '#endif' >>confdefs.h
2519 fi
2520
2521 else
2522 echo "$as_me: failed program was:" >&5
2523 sed 's/^/| /' conftest.$ac_ext >&5
2524
2525 fi
2526 rm -f conftest.$ac_objext conftest.$ac_ext
2527 ac_ext=c
2528 ac_cpp='$CPP $CPPFLAGS'
2529 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2530 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2531 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2532 rm -f .deps 2>/dev/null
2533 mkdir .deps 2>/dev/null
2534 if test -d .deps; then
2535 DEPDIR=.deps
2536 else
2537 # MS-DOS does not allow filenames that begin with a dot.
2538 DEPDIR=_deps
2539 fi
2540 rmdir .deps 2>/dev/null
2541
2542
2543 ac_config_commands="$ac_config_commands depfiles"
2544
2545
2546 am_make=${MAKE-make}
2547 cat > confinc << 'END'
2548 doit:
2549 @echo done
2550 END
2551 # If we don't find an include directive, just comment out the code.
2552 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2553 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2554 am__include="#"
2555 am__quote=
2556 _am_result=none
2557 # First try GNU make style include.
2558 echo "include confinc" > confmf
2559 # We grep out `Entering directory' and `Leaving directory'
2560 # messages which can occur if `w' ends up in MAKEFLAGS.
2561 # In particular we don't look at `^make:' because GNU make might
2562 # be invoked under some other name (usually "gmake"), in which
2563 # case it prints its new name instead of `make'.
2564 if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
2565 am__include=include
2566 am__quote=
2567 _am_result=GNU
2568 fi
2569 # Now try BSD make style include.
2570 if test "$am__include" = "#"; then
2571 echo '.include "confinc"' > confmf
2572 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2573 am__include=.include
2574 am__quote="\""
2575 _am_result=BSD
2576 fi
2577 fi
2578
2579
2580 echo "$as_me:$LINENO: result: $_am_result" >&5
2581 echo "${ECHO_T}$_am_result" >&6
2582 rm -f confinc confmf
2583
2584 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2585 if test "${enable_dependency_tracking+set}" = set; then
2586 enableval="$enable_dependency_tracking"
2587
2588 fi;
2589 if test "x$enable_dependency_tracking" != xno; then
2590 am_depcomp="$ac_aux_dir/depcomp"
2591 AMDEPBACKSLASH='\'
2592 fi
2593
2594
2595 if test "x$enable_dependency_tracking" != xno; then
2596 AMDEP_TRUE=
2597 AMDEP_FALSE='#'
2598 else
2599 AMDEP_TRUE='#'
2600 AMDEP_FALSE=
2601 fi
2602
2603
2604
2605
2606 depcc="$CC" am_compiler_list=
2607
2608 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2609 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2610 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2611 echo $ECHO_N "(cached) $ECHO_C" >&6
2612 else
2613 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2614 # We make a subdir and do the tests there. Otherwise we can end up
2615 # making bogus files that we don't know about and never remove. For
2616 # instance it was reported that on HP-UX the gcc test will end up
2617 # making a dummy file named `D' -- because `-MD' means `put the output
2618 # in D'.
2619 mkdir conftest.dir
2620 # Copy depcomp to subdir because otherwise we won't find it if we're
2621 # using a relative directory.
2622 cp "$am_depcomp" conftest.dir
2623 cd conftest.dir
2624
2625 am_cv_CC_dependencies_compiler_type=none
2626 if test "$am_compiler_list" = ""; then
2627 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2628 fi
2629 for depmode in $am_compiler_list; do
2630 # We need to recreate these files for each test, as the compiler may
2631 # overwrite some of them when testing with obscure command lines.
2632 # This happens at least with the AIX C compiler.
2633 echo '#include "conftest.h"' > conftest.c
2634 echo 'int i;' > conftest.h
2635 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2636
2637 case $depmode in
2638 nosideeffect)
2639 # after this tag, mechanisms are not by side-effect, so they'll
2640 # only be used when explicitly requested
2641 if test "x$enable_dependency_tracking" = xyes; then
2642 continue
2643 else
2644 break
2645 fi
2646 ;;
2647 none) break ;;
2648 esac
2649 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2650 # mode. It turns out that the SunPro C++ compiler does not properly
2651 # handle `-M -o', and we need to detect this.
2652 if depmode=$depmode \
2653 source=conftest.c object=conftest.o \
2654 depfile=conftest.Po tmpdepfile=conftest.TPo \
2655 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
2656 grep conftest.h conftest.Po > /dev/null 2>&1 &&
2657 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2658 am_cv_CC_dependencies_compiler_type=$depmode
2659 break
2660 fi
2661 done
2662
2663 cd ..
2664 rm -rf conftest.dir
2665 else
2666 am_cv_CC_dependencies_compiler_type=none
2667 fi
2668
2669 fi
2670 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2671 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2672 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2673
2674
2675
2676 # Checks for libraries.
2677
2678
2679 echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
2680 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6
2681 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
2682 echo $ECHO_N "(cached) $ECHO_C" >&6
2683 else
2684 ac_check_lib_save_LIBS=$LIBS
2685 LIBS="-lpthread $LIBS"
2686 cat >conftest.$ac_ext <<_ACEOF
2687 #line $LINENO "configure"
2688 /* confdefs.h. */
2689 _ACEOF
2690 cat confdefs.h >>conftest.$ac_ext
2691 cat >>conftest.$ac_ext <<_ACEOF
2692 /* end confdefs.h. */
2693
2694 /* Override any gcc2 internal prototype to avoid an error. */
2695 #ifdef __cplusplus
2696 extern "C"
2697 #endif
2698 /* We use char because int might match the return type of a gcc2
2699 builtin and then its argument prototype would still apply. */
2700 char pthread_self ();
2701 int
2702 main ()
2703 {
2704 pthread_self ();
2705 ;
2706 return 0;
2707 }
2708 _ACEOF
2709 rm -f conftest.$ac_objext conftest$ac_exeext
2710 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2711 (eval $ac_link) 2>&5
2712 ac_status=$?
2713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2714 (exit $ac_status); } &&
2715 { ac_try='test -s conftest$ac_exeext'
2716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2717 (eval $ac_try) 2>&5
2718 ac_status=$?
2719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2720 (exit $ac_status); }; }; then
2721 ac_cv_lib_pthread_pthread_self=yes
2722 else
2723 echo "$as_me: failed program was:" >&5
2724 sed 's/^/| /' conftest.$ac_ext >&5
2725
2726 ac_cv_lib_pthread_pthread_self=no
2727 fi
2728 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2729 LIBS=$ac_check_lib_save_LIBS
2730 fi
2731 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
2732 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6
2733 if test $ac_cv_lib_pthread_pthread_self = yes; then
2734 cat >>confdefs.h <<_ACEOF
2735 #define HAVE_LIBPTHREAD 1
2736 _ACEOF
2737
2738 LIBS="-lpthread $LIBS"
2739
2740 else
2741 { { echo "$as_me:$LINENO: error: You need libpthread installed" >&5
2742 echo "$as_me: error: You need libpthread installed" >&2;}
2743 { (exit 1); exit 1; }; }
2744 fi
2745
2746
2747 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
2748 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
2749 if test "${ac_cv_lib_m_sqrt+set}" = set; then
2750 echo $ECHO_N "(cached) $ECHO_C" >&6
2751 else
2752 ac_check_lib_save_LIBS=$LIBS
2753 LIBS="-lm $LIBS"
2754 cat >conftest.$ac_ext <<_ACEOF
2755 #line $LINENO "configure"
2756 /* confdefs.h. */
2757 _ACEOF
2758 cat confdefs.h >>conftest.$ac_ext
2759 cat >>conftest.$ac_ext <<_ACEOF
2760 /* end confdefs.h. */
2761
2762 /* Override any gcc2 internal prototype to avoid an error. */
2763 #ifdef __cplusplus
2764 extern "C"
2765 #endif
2766 /* We use char because int might match the return type of a gcc2
2767 builtin and then its argument prototype would still apply. */
2768 char sqrt ();
2769 int
2770 main ()
2771 {
2772 sqrt ();
2773 ;
2774 return 0;
2775 }
2776 _ACEOF
2777 rm -f conftest.$ac_objext conftest$ac_exeext
2778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2779 (eval $ac_link) 2>&5
2780 ac_status=$?
2781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2782 (exit $ac_status); } &&
2783 { ac_try='test -s conftest$ac_exeext'
2784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2785 (eval $ac_try) 2>&5
2786 ac_status=$?
2787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2788 (exit $ac_status); }; }; then
2789 ac_cv_lib_m_sqrt=yes
2790 else
2791 echo "$as_me: failed program was:" >&5
2792 sed 's/^/| /' conftest.$ac_ext >&5
2793
2794 ac_cv_lib_m_sqrt=no
2795 fi
2796 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2797 LIBS=$ac_check_lib_save_LIBS
2798 fi
2799 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
2800 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
2801 if test $ac_cv_lib_m_sqrt = yes; then
2802 cat >>confdefs.h <<_ACEOF
2803 #define HAVE_LIBM 1
2804 _ACEOF
2805
2806 LIBS="-lm $LIBS"
2807
2808 else
2809 { { echo "$as_me:$LINENO: error: Can't find libm" >&5
2810 echo "$as_me: error: Can't find libm" >&2;}
2811 { (exit 1); exit 1; }; }
2812 fi
2813
2814
2815 # Checks for packages.
2816 # Make sure we can run config.sub.
2817 $ac_config_sub sun4 >/dev/null 2>&1 ||
2818 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2819 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2820 { (exit 1); exit 1; }; }
2821
2822 echo "$as_me:$LINENO: checking build system type" >&5
2823 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2824 if test "${ac_cv_build+set}" = set; then
2825 echo $ECHO_N "(cached) $ECHO_C" >&6
2826 else
2827 ac_cv_build_alias=$build_alias
2828 test -z "$ac_cv_build_alias" &&
2829 ac_cv_build_alias=`$ac_config_guess`
2830 test -z "$ac_cv_build_alias" &&
2831 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2832 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2833 { (exit 1); exit 1; }; }
2834 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2835 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2836 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2837 { (exit 1); exit 1; }; }
2838
2839 fi
2840 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2841 echo "${ECHO_T}$ac_cv_build" >&6
2842 build=$ac_cv_build
2843 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2844 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2845 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2846
2847
2848 echo "$as_me:$LINENO: checking host system type" >&5
2849 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2850 if test "${ac_cv_host+set}" = set; then
2851 echo $ECHO_N "(cached) $ECHO_C" >&6
2852 else
2853 ac_cv_host_alias=$host_alias
2854 test -z "$ac_cv_host_alias" &&
2855 ac_cv_host_alias=$ac_cv_build_alias
2856 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2857 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2858 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2859 { (exit 1); exit 1; }; }
2860
2861 fi
2862 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2863 echo "${ECHO_T}$ac_cv_host" >&6
2864 host=$ac_cv_host
2865 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2866 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2867 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2868
2869
2870 echo "$as_me:$LINENO: checking target system type" >&5
2871 echo $ECHO_N "checking target system type... $ECHO_C" >&6
2872 if test "${ac_cv_target+set}" = set; then
2873 echo $ECHO_N "(cached) $ECHO_C" >&6
2874 else
2875 ac_cv_target_alias=$target_alias
2876 test "x$ac_cv_target_alias" = "x" &&
2877 ac_cv_target_alias=$ac_cv_host_alias
2878 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
2879 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
2880 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
2881 { (exit 1); exit 1; }; }
2882
2883 fi
2884 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2885 echo "${ECHO_T}$ac_cv_target" >&6
2886 target=$ac_cv_target
2887 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2888 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2889 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2890
2891
2892 # The aliases save the names the user supplied, while $host etc.
2893 # will get canonicalized.
2894 test -n "$target_alias" &&
2895 test "$program_prefix$program_suffix$program_transform_name" = \
2896 NONENONEs,x,x, &&
2897 program_prefix=${target_alias}-
2898
2899 # Check whether --with-sdl-prefix or --without-sdl-prefix was given.
2900 if test "${with_sdl_prefix+set}" = set; then
2901 withval="$with_sdl_prefix"
2902 sdl_prefix="$withval"
2903 else
2904 sdl_prefix=""
2905 fi;
2906
2907 # Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
2908 if test "${with_sdl_exec_prefix+set}" = set; then
2909 withval="$with_sdl_exec_prefix"
2910 sdl_exec_prefix="$withval"
2911 else
2912 sdl_exec_prefix=""
2913 fi;
2914 # Check whether --enable-sdltest or --disable-sdltest was given.
2915 if test "${enable_sdltest+set}" = set; then
2916 enableval="$enable_sdltest"
2917
2918 else
2919 enable_sdltest=yes
2920 fi;
2921
2922 if test x$sdl_exec_prefix != x ; then
2923 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
2924 if test x${SDL_CONFIG+set} != xset ; then
2925 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
2926 fi
2927 fi
2928 if test x$sdl_prefix != x ; then
2929 sdl_args="$sdl_args --prefix=$sdl_prefix"
2930 if test x${SDL_CONFIG+set} != xset ; then
2931 SDL_CONFIG=$sdl_prefix/bin/sdl-config
2932 fi
2933 fi
2934
2935
2936 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
2937 # Extract the first word of "sdl-config", so it can be a program name with args.
2938 set dummy sdl-config; ac_word=$2
2939 echo "$as_me:$LINENO: checking for $ac_word" >&5
2940 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2941 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
2942 echo $ECHO_N "(cached) $ECHO_C" >&6
2943 else
2944 case $SDL_CONFIG in
2945 [\\/]* | ?:[\\/]*)
2946 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
2947 ;;
2948 *)
2949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2950 for as_dir in $PATH
2951 do
2952 IFS=$as_save_IFS
2953 test -z "$as_dir" && as_dir=.
2954 for ac_exec_ext in '' $ac_executable_extensions; do
2955 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2956 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
2957 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2958 break 2
2959 fi
2960 done
2961 done
2962
2963 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
2964 ;;
2965 esac
2966 fi
2967 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
2968
2969 if test -n "$SDL_CONFIG"; then
2970 echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
2971 echo "${ECHO_T}$SDL_CONFIG" >&6
2972 else
2973 echo "$as_me:$LINENO: result: no" >&5
2974 echo "${ECHO_T}no" >&6
2975 fi
2976
2977 min_sdl_version=1.2.0
2978 echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
2979 echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
2980 no_sdl=""
2981 if test "$SDL_CONFIG" = "no" ; then
2982 no_sdl=yes
2983 else
2984 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
2985 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
2986
2987 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
2988 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
2989 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
2990 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
2991 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
2992 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
2993 if test "x$enable_sdltest" = "xyes" ; then
2994 ac_save_CFLAGS="$CFLAGS"
2995 ac_save_CXXFLAGS="$CXXFLAGS"
2996 ac_save_LIBS="$LIBS"
2997 CFLAGS="$CFLAGS $SDL_CFLAGS"
2998 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
2999 LIBS="$LIBS $SDL_LIBS"
3000 rm -f conf.sdltest
3001 if test "$cross_compiling" = yes; then
3002 echo $ac_n "cross compiling; assumed OK... $ac_c"
3003 else
3004 cat >conftest.$ac_ext <<_ACEOF
3005 #line $LINENO "configure"
3006 /* confdefs.h. */
3007 _ACEOF
3008 cat confdefs.h >>conftest.$ac_ext
3009 cat >>conftest.$ac_ext <<_ACEOF
3010 /* end confdefs.h. */
3011
3012 #include <stdio.h>
3013 #include <stdlib.h>
3014 #include <string.h>
3015 #include "SDL.h"
3016
3017 char*
3018 my_strdup (char *str)
3019 {
3020 char *new_str;
3021
3022 if (str)
3023 {
3024 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
3025 strcpy (new_str, str);
3026 }
3027 else
3028 new_str = NULL;
3029
3030 return new_str;
3031 }
3032
3033 int main (int argc, char *argv[])
3034 {
3035 int major, minor, micro;
3036 char *tmp_version;
3037
3038 /* This hangs on some systems (?)
3039 system ("touch conf.sdltest");
3040 */
3041 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
3042
3043 /* HP/UX 9 (%@#!) writes to sscanf strings */
3044 tmp_version = my_strdup("$min_sdl_version");
3045 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
3046 printf("%s, bad version string\n", "$min_sdl_version");
3047 exit(1);
3048 }
3049
3050 if (($sdl_major_version > major) ||
3051 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
3052 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
3053 {
3054 return 0;
3055 }
3056 else
3057 {
3058 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
3059 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
3060 printf("*** best to upgrade to the required version.\n");
3061 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
3062 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
3063 printf("*** config.cache before re-running configure\n");
3064 return 1;
3065 }
3066 }
3067
3068
3069 _ACEOF
3070 rm -f conftest$ac_exeext
3071 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3072 (eval $ac_link) 2>&5
3073 ac_status=$?
3074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3075 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3077 (eval $ac_try) 2>&5
3078 ac_status=$?
3079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3080 (exit $ac_status); }; }; then
3081 :
3082 else
3083 echo "$as_me: program exited with status $ac_status" >&5
3084 echo "$as_me: failed program was:" >&5
3085 sed 's/^/| /' conftest.$ac_ext >&5
3086
3087 ( exit $ac_status )
3088 no_sdl=yes
3089 fi
3090 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3091 fi
3092 CFLAGS="$ac_save_CFLAGS"
3093 CXXFLAGS="$ac_save_CXXFLAGS"
3094 LIBS="$ac_save_LIBS"
3095 fi
3096 fi
3097 if test "x$no_sdl" = x ; then
3098 echo "$as_me:$LINENO: result: yes" >&5
3099 echo "${ECHO_T}yes" >&6
3100 :
3101 else
3102 echo "$as_me:$LINENO: result: no" >&5
3103 echo "${ECHO_T}no" >&6
3104 if test "$SDL_CONFIG" = "no" ; then
3105 echo "*** The sdl-config script installed by SDL could not be found"
3106 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
3107 echo "*** your path, or set the SDL_CONFIG environment variable to the"
3108 echo "*** full path to sdl-config."
3109 else
3110 if test -f conf.sdltest ; then
3111 :
3112 else
3113 echo "*** Could not run SDL test program, checking why..."
3114 CFLAGS="$CFLAGS $SDL_CFLAGS"
3115 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
3116 LIBS="$LIBS $SDL_LIBS"
3117 cat >conftest.$ac_ext <<_ACEOF
3118 #line $LINENO "configure"
3119 /* confdefs.h. */
3120 _ACEOF
3121 cat confdefs.h >>conftest.$ac_ext
3122 cat >>conftest.$ac_ext <<_ACEOF
3123 /* end confdefs.h. */
3124
3125 #include <stdio.h>
3126 #include "SDL.h"
3127
3128 int main(int argc, char *argv[])
3129 { return 0; }
3130 #undef main
3131 #define main K_and_R_C_main
3132
3133 int
3134 main ()
3135 {
3136 return 0;
3137 ;
3138 return 0;
3139 }
3140 _ACEOF
3141 rm -f conftest.$ac_objext conftest$ac_exeext
3142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3143 (eval $ac_link) 2>&5
3144 ac_status=$?
3145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3146 (exit $ac_status); } &&
3147 { ac_try='test -s conftest$ac_exeext'
3148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3149 (eval $ac_try) 2>&5
3150 ac_status=$?
3151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3152 (exit $ac_status); }; }; then
3153 echo "*** The test program compiled, but did not run. This usually means"
3154 echo "*** that the run-time linker is not finding SDL or finding the wrong"
3155 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
3156 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
3157 echo "*** to the installed location Also, make sure you have run ldconfig if that"
3158 echo "*** is required on your system"
3159 echo "***"
3160 echo "*** If you have an old version installed, it is best to remove it, although"
3161 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
3162 else
3163 echo "$as_me: failed program was:" >&5
3164 sed 's/^/| /' conftest.$ac_ext >&5
3165
3166 echo "*** The test program failed to compile or link. See the file config.log for the"
3167 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
3168 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
3169 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
3170 fi
3171 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3172 CFLAGS="$ac_save_CFLAGS"
3173 CXXFLAGS="$ac_save_CXXFLAGS"
3174 LIBS="$ac_save_LIBS"
3175 fi
3176 fi
3177 SDL_CFLAGS=""
3178 SDL_LIBS=""
3179 { { echo "$as_me:$LINENO: error: Requires SDL 1.2 or later" >&5
3180 echo "$as_me: error: Requires SDL 1.2 or later" >&2;}
3181 { (exit 1); exit 1; }; }
3182 fi
3183
3184
3185 rm -f conf.sdltest
3186
3187
3188 succeeded=no
3189
3190 if test -z "$PKG_CONFIG"; then
3191 # Extract the first word of "pkg-config", so it can be a program name with args.
3192 set dummy pkg-config; ac_word=$2
3193 echo "$as_me:$LINENO: checking for $ac_word" >&5
3194 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3195 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
3196 echo $ECHO_N "(cached) $ECHO_C" >&6
3197 else
3198 case $PKG_CONFIG in
3199 [\\/]* | ?:[\\/]*)
3200 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3201 ;;
3202 *)
3203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3204 for as_dir in $PATH
3205 do
3206 IFS=$as_save_IFS
3207 test -z "$as_dir" && as_dir=.
3208 for ac_exec_ext in '' $ac_executable_extensions; do
3209 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3210 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3211 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3212 break 2
3213 fi
3214 done
3215 done
3216
3217 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
3218 ;;
3219 esac
3220 fi
3221 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3222
3223 if test -n "$PKG_CONFIG"; then
3224 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
3225 echo "${ECHO_T}$PKG_CONFIG" >&6
3226 else
3227 echo "$as_me:$LINENO: result: no" >&5
3228 echo "${ECHO_T}no" >&6
3229 fi
3230
3231 fi
3232
3233 if test "$PKG_CONFIG" = "no" ; then
3234 echo "*** The pkg-config script could not be found. Make sure it is"
3235 echo "*** in your path, or set the PKG_CONFIG environment variable"
3236 echo "*** to the full path to pkg-config."
3237 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
3238 else
3239 PKG_CONFIG_MIN_VERSION=0.9.0
3240 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
3241 echo "$as_me:$LINENO: checking for jack" >&5
3242 echo $ECHO_N "checking for jack... $ECHO_C" >&6
3243
3244 if $PKG_CONFIG --exists "jack" ; then
3245 echo "$as_me:$LINENO: result: yes" >&5
3246 echo "${ECHO_T}yes" >&6
3247 succeeded=yes
3248
3249 echo "$as_me:$LINENO: checking JACK_CFLAGS" >&5
3250 echo $ECHO_N "checking JACK_CFLAGS... $ECHO_C" >&6
3251 JACK_CFLAGS=`$PKG_CONFIG --cflags "jack"`
3252 echo "$as_me:$LINENO: result: $JACK_CFLAGS" >&5
3253 echo "${ECHO_T}$JACK_CFLAGS" >&6
3254
3255 echo "$as_me:$LINENO: checking JACK_LIBS" >&5
3256 echo $ECHO_N "checking JACK_LIBS... $ECHO_C" >&6
3257 JACK_LIBS=`$PKG_CONFIG --libs "jack"`
3258 echo "$as_me:$LINENO: result: $JACK_LIBS" >&5
3259 echo "${ECHO_T}$JACK_LIBS" >&6
3260 else
3261 JACK_CFLAGS=""
3262 JACK_LIBS=""
3263 ## If we have a custom action on failure, don't print errors, but
3264 ## do set a variable so people can do so.
3265 JACK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "jack"`
3266 echo $JACK_PKG_ERRORS
3267 fi
3268
3269
3270
3271 else
3272 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
3273 echo "*** See http://www.freedesktop.org/software/pkgconfig"
3274 fi
3275 fi
3276
3277 if test $succeeded = yes; then
3278 :
3279 else
3280 { { echo "$as_me:$LINENO: error: Library requirements (jack) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
3281 echo "$as_me: error: Library requirements (jack) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
3282 { (exit 1); exit 1; }; }
3283 fi
3284
3285
3286
3287
3288 # Checks for header files.
3289 ac_ext=c
3290 ac_cpp='$CPP $CPPFLAGS'
3291 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3292 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3293 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3294 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3295 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3296 # On Suns, sometimes $CPP names a directory.
3297 if test -n "$CPP" && test -d "$CPP"; then
3298 CPP=
3299 fi
3300 if test -z "$CPP"; then
3301 if test "${ac_cv_prog_CPP+set}" = set; then
3302 echo $ECHO_N "(cached) $ECHO_C" >&6
3303 else
3304 # Double quotes because CPP needs to be expanded
3305 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3306 do
3307 ac_preproc_ok=false
3308 for ac_c_preproc_warn_flag in '' yes
3309 do
3310 # Use a header file that comes with gcc, so configuring glibc
3311 # with a fresh cross-compiler works.
3312 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3313 # <limits.h> exists even on freestanding compilers.
3314 # On the NeXT, cc -E runs the code through the compiler's parser,
3315 # not just through cpp. "Syntax error" is here to catch this case.
3316 cat >conftest.$ac_ext <<_ACEOF
3317 #line $LINENO "configure"
3318 /* confdefs.h. */
3319 _ACEOF
3320 cat confdefs.h >>conftest.$ac_ext
3321 cat >>conftest.$ac_ext <<_ACEOF
3322 /* end confdefs.h. */
3323 #ifdef __STDC__
3324 # include <limits.h>
3325 #else
3326 # include <assert.h>
3327 #endif
3328 Syntax error
3329 _ACEOF
3330 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3331 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3332 ac_status=$?
3333 grep -v '^ *+' conftest.er1 >conftest.err
3334 rm -f conftest.er1
3335 cat conftest.err >&5
3336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3337 (exit $ac_status); } >/dev/null; then
3338 if test -s conftest.err; then
3339 ac_cpp_err=$ac_c_preproc_warn_flag
3340 else
3341 ac_cpp_err=
3342 fi
3343 else
3344 ac_cpp_err=yes
3345 fi
3346 if test -z "$ac_cpp_err"; then
3347 :
3348 else
3349 echo "$as_me: failed program was:" >&5
3350 sed 's/^/| /' conftest.$ac_ext >&5
3351
3352 # Broken: fails on valid input.
3353 continue
3354 fi
3355 rm -f conftest.err conftest.$ac_ext
3356
3357 # OK, works on sane cases. Now check whether non-existent headers
3358 # can be detected and how.
3359 cat >conftest.$ac_ext <<_ACEOF
3360 #line $LINENO "configure"
3361 /* confdefs.h. */
3362 _ACEOF
3363 cat confdefs.h >>conftest.$ac_ext
3364 cat >>conftest.$ac_ext <<_ACEOF
3365 /* end confdefs.h. */
3366 #include <ac_nonexistent.h>
3367 _ACEOF
3368 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3369 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3370 ac_status=$?
3371 grep -v '^ *+' conftest.er1 >conftest.err
3372 rm -f conftest.er1
3373 cat conftest.err >&5
3374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3375 (exit $ac_status); } >/dev/null; then
3376 if test -s conftest.err; then
3377 ac_cpp_err=$ac_c_preproc_warn_flag
3378 else
3379 ac_cpp_err=
3380 fi
3381 else
3382 ac_cpp_err=yes
3383 fi
3384 if test -z "$ac_cpp_err"; then
3385 # Broken: success on invalid input.
3386 continue
3387 else
3388 echo "$as_me: failed program was:" >&5
3389 sed 's/^/| /' conftest.$ac_ext >&5
3390
3391 # Passes both tests.
3392 ac_preproc_ok=:
3393 break
3394 fi
3395 rm -f conftest.err conftest.$ac_ext
3396
3397 done
3398 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3399 rm -f conftest.err conftest.$ac_ext
3400 if $ac_preproc_ok; then
3401 break
3402 fi
3403
3404 done
3405 ac_cv_prog_CPP=$CPP
3406
3407 fi
3408 CPP=$ac_cv_prog_CPP
3409 else
3410 ac_cv_prog_CPP=$CPP
3411 fi
3412 echo "$as_me:$LINENO: result: $CPP" >&5
3413 echo "${ECHO_T}$CPP" >&6
3414 ac_preproc_ok=false
3415 for ac_c_preproc_warn_flag in '' yes
3416 do
3417 # Use a header file that comes with gcc, so configuring glibc
3418 # with a fresh cross-compiler works.
3419 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3420 # <limits.h> exists even on freestanding compilers.
3421 # On the NeXT, cc -E runs the code through the compiler's parser,
3422 # not just through cpp. "Syntax error" is here to catch this case.
3423 cat >conftest.$ac_ext <<_ACEOF
3424 #line $LINENO "configure"
3425 /* confdefs.h. */
3426 _ACEOF
3427 cat confdefs.h >>conftest.$ac_ext
3428 cat >>conftest.$ac_ext <<_ACEOF
3429 /* end confdefs.h. */
3430 #ifdef __STDC__
3431 # include <limits.h>
3432 #else
3433 # include <assert.h>
3434 #endif
3435 Syntax error
3436 _ACEOF
3437 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3438 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3439 ac_status=$?
3440 grep -v '^ *+' conftest.er1 >conftest.err
3441 rm -f conftest.er1
3442 cat conftest.err >&5
3443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3444 (exit $ac_status); } >/dev/null; then
3445 if test -s conftest.err; then
3446 ac_cpp_err=$ac_c_preproc_warn_flag
3447 else
3448 ac_cpp_err=
3449 fi
3450 else
3451 ac_cpp_err=yes
3452 fi
3453 if test -z "$ac_cpp_err"; then
3454 :
3455 else
3456 echo "$as_me: failed program was:" >&5
3457 sed 's/^/| /' conftest.$ac_ext >&5
3458
3459 # Broken: fails on valid input.
3460 continue
3461 fi
3462 rm -f conftest.err conftest.$ac_ext
3463
3464 # OK, works on sane cases. Now check whether non-existent headers
3465 # can be detected and how.
3466 cat >conftest.$ac_ext <<_ACEOF
3467 #line $LINENO "configure"
3468 /* confdefs.h. */
3469 _ACEOF
3470 cat confdefs.h >>conftest.$ac_ext
3471 cat >>conftest.$ac_ext <<_ACEOF
3472 /* end confdefs.h. */
3473 #include <ac_nonexistent.h>
3474 _ACEOF
3475 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3476 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3477 ac_status=$?
3478 grep -v '^ *+' conftest.er1 >conftest.err
3479 rm -f conftest.er1
3480 cat conftest.err >&5
3481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3482 (exit $ac_status); } >/dev/null; then
3483 if test -s conftest.err; then
3484 ac_cpp_err=$ac_c_preproc_warn_flag
3485 else
3486 ac_cpp_err=
3487 fi
3488 else
3489 ac_cpp_err=yes
3490 fi
3491 if test -z "$ac_cpp_err"; then
3492 # Broken: success on invalid input.
3493 continue
3494 else
3495 echo "$as_me: failed program was:" >&5
3496 sed 's/^/| /' conftest.$ac_ext >&5
3497
3498 # Passes both tests.
3499 ac_preproc_ok=:
3500 break
3501 fi
3502 rm -f conftest.err conftest.$ac_ext
3503
3504 done
3505 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3506 rm -f conftest.err conftest.$ac_ext
3507 if $ac_preproc_ok; then
3508 :
3509 else
3510 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3511 See \`config.log' for more details." >&5
3512 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3513 See \`config.log' for more details." >&2;}
3514 { (exit 1); exit 1; }; }
3515 fi
3516
3517 ac_ext=c
3518 ac_cpp='$CPP $CPPFLAGS'
3519 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3520 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3521 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3522
3523
3524 echo "$as_me:$LINENO: checking for egrep" >&5
3525 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3526 if test "${ac_cv_prog_egrep+set}" = set; then
3527 echo $ECHO_N "(cached) $ECHO_C" >&6
3528 else
3529 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3530 then ac_cv_prog_egrep='grep -E'
3531 else ac_cv_prog_egrep='egrep'
3532 fi
3533 fi
3534 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3535 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3536 EGREP=$ac_cv_prog_egrep
3537
3538
3539 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3540 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3541 if test "${ac_cv_header_stdc+set}" = set; then
3542 echo $ECHO_N "(cached) $ECHO_C" >&6
3543 else
3544 cat >conftest.$ac_ext <<_ACEOF
3545 #line $LINENO "configure"
3546 /* confdefs.h. */
3547 _ACEOF
3548 cat confdefs.h >>conftest.$ac_ext
3549 cat >>conftest.$ac_ext <<_ACEOF
3550 /* end confdefs.h. */
3551 #include <stdlib.h>
3552 #include <stdarg.h>
3553 #include <string.h>
3554 #include <float.h>
3555
3556 int
3557 main ()
3558 {
3559
3560 ;
3561 return 0;
3562 }
3563 _ACEOF
3564 rm -f conftest.$ac_objext
3565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3566 (eval $ac_compile) 2>&5
3567 ac_status=$?
3568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3569 (exit $ac_status); } &&
3570 { ac_try='test -s conftest.$ac_objext'
3571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3572 (eval $ac_try) 2>&5
3573 ac_status=$?
3574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3575 (exit $ac_status); }; }; then
3576 ac_cv_header_stdc=yes
3577 else
3578 echo "$as_me: failed program was:" >&5
3579 sed 's/^/| /' conftest.$ac_ext >&5
3580
3581 ac_cv_header_stdc=no
3582 fi
3583 rm -f conftest.$ac_objext conftest.$ac_ext
3584
3585 if test $ac_cv_header_stdc = yes; then
3586 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3587 cat >conftest.$ac_ext <<_ACEOF
3588 #line $LINENO "configure"
3589 /* confdefs.h. */
3590 _ACEOF
3591 cat confdefs.h >>conftest.$ac_ext
3592 cat >>conftest.$ac_ext <<_ACEOF
3593 /* end confdefs.h. */
3594 #include <string.h>
3595
3596 _ACEOF
3597 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3598 $EGREP "memchr" >/dev/null 2>&1; then
3599 :
3600 else
3601 ac_cv_header_stdc=no
3602 fi
3603 rm -f conftest*
3604
3605 fi
3606
3607 if test $ac_cv_header_stdc = yes; then
3608 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3609 cat >conftest.$ac_ext <<_ACEOF
3610 #line $LINENO "configure"
3611 /* confdefs.h. */
3612 _ACEOF
3613 cat confdefs.h >>conftest.$ac_ext
3614 cat >>conftest.$ac_ext <<_ACEOF
3615 /* end confdefs.h. */
3616 #include <stdlib.h>
3617
3618 _ACEOF
3619 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3620 $EGREP "free" >/dev/null 2>&1; then
3621 :
3622 else
3623 ac_cv_header_stdc=no
3624 fi
3625 rm -f conftest*
3626
3627 fi
3628
3629 if test $ac_cv_header_stdc = yes; then
3630 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3631 if test "$cross_compiling" = yes; then
3632 :
3633 else
3634 cat >conftest.$ac_ext <<_ACEOF
3635 #line $LINENO "configure"
3636 /* confdefs.h. */
3637 _ACEOF
3638 cat confdefs.h >>conftest.$ac_ext
3639 cat >>conftest.$ac_ext <<_ACEOF
3640 /* end confdefs.h. */
3641 #include <ctype.h>
3642 #if ((' ' & 0x0FF) == 0x020)
3643 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3644 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3645 #else
3646 # define ISLOWER(c) \
3647 (('a' <= (c) && (c) <= 'i') \
3648 || ('j' <= (c) && (c) <= 'r') \
3649 || ('s' <= (c) && (c) <= 'z'))
3650 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3651 #endif
3652
3653 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3654 int
3655 main ()
3656 {
3657 int i;
3658 for (i = 0; i < 256; i++)
3659 if (XOR (islower (i), ISLOWER (i))
3660 || toupper (i) != TOUPPER (i))
3661 exit(2);
3662 exit (0);
3663 }
3664 _ACEOF
3665 rm -f conftest$ac_exeext
3666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3667 (eval $ac_link) 2>&5
3668 ac_status=$?
3669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3670 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3672 (eval $ac_try) 2>&5
3673 ac_status=$?
3674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3675 (exit $ac_status); }; }; then
3676 :
3677 else
3678 echo "$as_me: program exited with status $ac_status" >&5
3679 echo "$as_me: failed program was:" >&5
3680 sed 's/^/| /' conftest.$ac_ext >&5
3681
3682 ( exit $ac_status )
3683 ac_cv_header_stdc=no
3684 fi
3685 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3686 fi
3687 fi
3688 fi
3689 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3690 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3691 if test $ac_cv_header_stdc = yes; then
3692
3693 cat >>confdefs.h <<\_ACEOF
3694 #define STDC_HEADERS 1
3695 _ACEOF
3696
3697 fi
3698
3699 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3710 inttypes.h stdint.h unistd.h
3711 do
3712 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3713 echo "$as_me:$LINENO: checking for $ac_header" >&5
3714 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3715 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3716 echo $ECHO_N "(cached) $ECHO_C" >&6
3717 else
3718 cat >conftest.$ac_ext <<_ACEOF
3719 #line $LINENO "configure"
3720 /* confdefs.h. */
3721 _ACEOF
3722 cat confdefs.h >>conftest.$ac_ext
3723 cat >>conftest.$ac_ext <<_ACEOF
3724 /* end confdefs.h. */
3725 $ac_includes_default
3726
3727 #include <$ac_header>
3728 _ACEOF
3729 rm -f conftest.$ac_objext
3730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3731 (eval $ac_compile) 2>&5
3732 ac_status=$?
3733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3734 (exit $ac_status); } &&
3735 { ac_try='test -s conftest.$ac_objext'
3736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3737 (eval $ac_try) 2>&5
3738 ac_status=$?
3739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3740 (exit $ac_status); }; }; then
3741 eval "$as_ac_Header=yes"
3742 else
3743 echo "$as_me: failed program was:" >&5
3744 sed 's/^/| /' conftest.$ac_ext >&5
3745
3746 eval "$as_ac_Header=no"
3747 fi
3748 rm -f conftest.$ac_objext conftest.$ac_ext
3749 fi
3750 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3751 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3752 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3753 cat >>confdefs.h <<_ACEOF
3754 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3755 _ACEOF
3756
3757 fi
3758
3759 done
3760
3761
3762
3763
3764
3765 for ac_header in stdlib.h string.h unistd.h
3766 do
3767 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3768 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3769 echo "$as_me:$LINENO: checking for $ac_header" >&5
3770 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3771 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3772 echo $ECHO_N "(cached) $ECHO_C" >&6
3773 fi
3774 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3775 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3776 else
3777 # Is the header compilable?
3778 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3779 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3780 cat >conftest.$ac_ext <<_ACEOF
3781 #line $LINENO "configure"
3782 /* confdefs.h. */
3783 _ACEOF
3784 cat confdefs.h >>conftest.$ac_ext
3785 cat >>conftest.$ac_ext <<_ACEOF
3786 /* end confdefs.h. */
3787 $ac_includes_default
3788 #include <$ac_header>
3789 _ACEOF
3790 rm -f conftest.$ac_objext
3791 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3792 (eval $ac_compile) 2>&5
3793 ac_status=$?
3794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3795 (exit $ac_status); } &&
3796 { ac_try='test -s conftest.$ac_objext'
3797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3798 (eval $ac_try) 2>&5
3799 ac_status=$?
3800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3801 (exit $ac_status); }; }; then
3802 ac_header_compiler=yes
3803 else
3804 echo "$as_me: failed program was:" >&5
3805 sed 's/^/| /' conftest.$ac_ext >&5
3806
3807 ac_header_compiler=no
3808 fi
3809 rm -f conftest.$ac_objext conftest.$ac_ext
3810 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3811 echo "${ECHO_T}$ac_header_compiler" >&6
3812
3813 # Is the header present?
3814 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3815 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3816 cat >conftest.$ac_ext <<_ACEOF
3817 #line $LINENO "configure"
3818 /* confdefs.h. */
3819 _ACEOF
3820 cat confdefs.h >>conftest.$ac_ext
3821 cat >>conftest.$ac_ext <<_ACEOF
3822 /* end confdefs.h. */
3823 #include <$ac_header>
3824 _ACEOF
3825 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3826 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3827 ac_status=$?
3828 grep -v '^ *+' conftest.er1 >conftest.err
3829 rm -f conftest.er1
3830 cat conftest.err >&5
3831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3832 (exit $ac_status); } >/dev/null; then
3833 if test -s conftest.err; then
3834 ac_cpp_err=$ac_c_preproc_warn_flag
3835 else
3836 ac_cpp_err=
3837 fi
3838 else
3839 ac_cpp_err=yes
3840 fi
3841 if test -z "$ac_cpp_err"; then
3842 ac_header_preproc=yes
3843 else
3844 echo "$as_me: failed program was:" >&5
3845 sed 's/^/| /' conftest.$ac_ext >&5
3846
3847 ac_header_preproc=no
3848 fi
3849 rm -f conftest.err conftest.$ac_ext
3850 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3851 echo "${ECHO_T}$ac_header_preproc" >&6
3852
3853 # So? What about this header?
3854 case $ac_header_compiler:$ac_header_preproc in
3855 yes:no )
3856 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3857 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3858 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3859 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3860 (
3861 cat <<\_ASBOX
3862 ## ------------------------------------ ##
3863 ## Report this to [email protected]. ##
3864 ## ------------------------------------ ##
3865 _ASBOX
3866 ) |
3867 sed "s/^/$as_me: WARNING: /" >&2
3868 ;;
3869 no:yes )
3870 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3871 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3872 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3873 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3874 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3875 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3876 (
3877 cat <<\_ASBOX
3878 ## ------------------------------------ ##
3879 ## Report this to [email protected]. ##
3880 ## ------------------------------------ ##
3881 _ASBOX
3882 ) |
3883 sed "s/^/$as_me: WARNING: /" >&2
3884 ;;
3885 esac
3886 echo "$as_me:$LINENO: checking for $ac_header" >&5
3887 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3888 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3889 echo $ECHO_N "(cached) $ECHO_C" >&6
3890 else
3891 eval "$as_ac_Header=$ac_header_preproc"
3892 fi
3893 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3894 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3895
3896 fi
3897 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3898 cat >>confdefs.h <<_ACEOF
3899 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3900 _ACEOF
3901
3902 fi
3903
3904 done
3905
3906
3907 # Checks for typedefs, structures, and compiler characteristics.
3908 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3909 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3910 if test "${ac_cv_c_const+set}" = set; then
3911 echo $ECHO_N "(cached) $ECHO_C" >&6
3912 else
3913 cat >conftest.$ac_ext <<_ACEOF
3914 #line $LINENO "configure"
3915 /* confdefs.h. */
3916 _ACEOF
3917 cat confdefs.h >>conftest.$ac_ext
3918 cat >>conftest.$ac_ext <<_ACEOF
3919 /* end confdefs.h. */
3920
3921 int
3922 main ()
3923 {
3924 /* FIXME: Include the comments suggested by Paul. */
3925 #ifndef __cplusplus
3926 /* Ultrix mips cc rejects this. */
3927 typedef int charset[2];
3928 const charset x;
3929 /* SunOS 4.1.1 cc rejects this. */
3930 char const *const *ccp;
3931 char **p;
3932 /* NEC SVR4.0.2 mips cc rejects this. */
3933 struct point {int x, y;};
3934 static struct point const zero = {0,0};
3935 /* AIX XL C 1.02.0.0 rejects this.
3936 It does not let you subtract one const X* pointer from another in
3937 an arm of an if-expression whose if-part is not a constant
3938 expression */
3939 const char *g = "string";
3940 ccp = &g + (g ? g-g : 0);
3941 /* HPUX 7.0 cc rejects these. */
3942 ++ccp;
3943 p = (char**) ccp;
3944 ccp = (char const *const *) p;
3945 { /* SCO 3.2v4 cc rejects this. */
3946 char *t;
3947 char const *s = 0 ? (char *) 0 : (char const *) 0;
3948
3949 *t++ = 0;
3950 }
3951 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3952 int x[] = {25, 17};
3953 const int *foo = &x[0];
3954 ++foo;
3955 }
3956 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3957 typedef const int *iptr;
3958 iptr p = 0;
3959 ++p;
3960 }
3961 { /* AIX XL C 1.02.0.0 rejects this saying
3962 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3963 struct s { int j; const int *ap[3]; };
3964 struct s *b; b->j = 5;
3965 }
3966 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3967 const int foo = 10;
3968 }
3969 #endif
3970
3971 ;
3972 return 0;
3973 }
3974 _ACEOF
3975 rm -f conftest.$ac_objext
3976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3977 (eval $ac_compile) 2>&5
3978 ac_status=$?
3979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3980 (exit $ac_status); } &&
3981 { ac_try='test -s conftest.$ac_objext'
3982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3983 (eval $ac_try) 2>&5
3984 ac_status=$?
3985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3986 (exit $ac_status); }; }; then
3987 ac_cv_c_const=yes
3988 else
3989 echo "$as_me: failed program was:" >&5
3990 sed 's/^/| /' conftest.$ac_ext >&5
3991
3992 ac_cv_c_const=no
3993 fi
3994 rm -f conftest.$ac_objext conftest.$ac_ext
3995 fi
3996 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3997 echo "${ECHO_T}$ac_cv_c_const" >&6
3998 if test $ac_cv_c_const = no; then
3999
4000 cat >>confdefs.h <<\_ACEOF
4001 #define const
4002 _ACEOF
4003
4004 fi
4005
4006 echo "$as_me:$LINENO: checking for inline" >&5
4007 echo $ECHO_N "checking for inline... $ECHO_C" >&6
4008 if test "${ac_cv_c_inline+set}" = set; then
4009 echo $ECHO_N "(cached) $ECHO_C" >&6
4010 else
4011 ac_cv_c_inline=no
4012 for ac_kw in inline __inline__ __inline; do
4013 cat >conftest.$ac_ext <<_ACEOF
4014 #line $LINENO "configure"
4015 /* confdefs.h. */
4016 _ACEOF
4017 cat confdefs.h >>conftest.$ac_ext
4018 cat >>conftest.$ac_ext <<_ACEOF
4019 /* end confdefs.h. */
4020 #ifndef __cplusplus
4021 typedef int foo_t;
4022 static $ac_kw foo_t static_foo () {return 0; }
4023 $ac_kw foo_t foo () {return 0; }
4024 #endif
4025
4026 _ACEOF
4027 rm -f conftest.$ac_objext
4028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4029 (eval $ac_compile) 2>&5
4030 ac_status=$?
4031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4032 (exit $ac_status); } &&
4033 { ac_try='test -s conftest.$ac_objext'
4034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4035 (eval $ac_try) 2>&5
4036 ac_status=$?
4037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4038 (exit $ac_status); }; }; then
4039 ac_cv_c_inline=$ac_kw; break
4040 else
4041 echo "$as_me: failed program was:" >&5
4042 sed 's/^/| /' conftest.$ac_ext >&5
4043
4044 fi
4045 rm -f conftest.$ac_objext conftest.$ac_ext
4046 done
4047
4048 fi
4049 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4050 echo "${ECHO_T}$ac_cv_c_inline" >&6
4051 case $ac_cv_c_inline in
4052 inline | yes) ;;
4053 no)
4054 cat >>confdefs.h <<\_ACEOF
4055 #define inline
4056 _ACEOF
4057 ;;
4058 *) cat >>confdefs.h <<_ACEOF
4059 #define inline $ac_cv_c_inline
4060 _ACEOF
4061 ;;
4062 esac
4063
4064
4065 # Checks for library functions.
4066
4067 for ac_func in atexit
4068 do
4069 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4070 echo "$as_me:$LINENO: checking for $ac_func" >&5
4071 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4072 if eval "test \"\${$as_ac_var+set}\" = set"; then
4073 echo $ECHO_N "(cached) $ECHO_C" >&6
4074 else
4075 cat >conftest.$ac_ext <<_ACEOF
4076 #line $LINENO "configure"
4077 /* confdefs.h. */
4078 _ACEOF
4079 cat confdefs.h >>conftest.$ac_ext
4080 cat >>conftest.$ac_ext <<_ACEOF
4081 /* end confdefs.h. */
4082 /* System header to define __stub macros and hopefully few prototypes,
4083 which can conflict with char $ac_func (); below.
4084 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4085 <limits.h> exists even on freestanding compilers. */
4086 #ifdef __STDC__
4087 # include <limits.h>
4088 #else
4089 # include <assert.h>
4090 #endif
4091 /* Override any gcc2 internal prototype to avoid an error. */
4092 #ifdef __cplusplus
4093 extern "C"
4094 {
4095 #endif
4096 /* We use char because int might match the return type of a gcc2
4097 builtin and then its argument prototype would still apply. */
4098 char $ac_func ();
4099 /* The GNU C library defines this for functions which it implements
4100 to always fail with ENOSYS. Some functions are actually named
4101 something starting with __ and the normal name is an alias. */
4102 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4103 choke me
4104 #else
4105 char (*f) () = $ac_func;
4106 #endif
4107 #ifdef __cplusplus
4108 }
4109 #endif
4110
4111 int
4112 main ()
4113 {
4114 return f != $ac_func;
4115 ;
4116 return 0;
4117 }
4118 _ACEOF
4119 rm -f conftest.$ac_objext conftest$ac_exeext
4120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4121 (eval $ac_link) 2>&5
4122 ac_status=$?
4123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4124 (exit $ac_status); } &&
4125 { ac_try='test -s conftest$ac_exeext'
4126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4127 (eval $ac_try) 2>&5
4128 ac_status=$?
4129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4130 (exit $ac_status); }; }; then
4131 eval "$as_ac_var=yes"
4132 else
4133 echo "$as_me: failed program was:" >&5
4134 sed 's/^/| /' conftest.$ac_ext >&5
4135
4136 eval "$as_ac_var=no"
4137 fi
4138 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4139 fi
4140 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4141 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4142 if test `eval echo '${'$as_ac_var'}'` = yes; then
4143 cat >>confdefs.h <<_ACEOF
4144 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4145 _ACEOF
4146
4147 fi
4148 done
4149
4150
4151 ac_config_files="$ac_config_files Makefile graphics/Makefile src/Makefile"
4152 cat >confcache <<\_ACEOF
4153 # This file is a shell script that caches the results of configure
4154 # tests run on this system so they can be shared between configure
4155 # scripts and configure runs, see configure's option --config-cache.
4156 # It is not useful on other systems. If it contains results you don't
4157 # want to keep, you may remove or edit it.
4158 #
4159 # config.status only pays attention to the cache file if you give it
4160 # the --recheck option to rerun configure.
4161 #
4162 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4163 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4164 # following values.
4165
4166 _ACEOF
4167
4168 # The following way of writing the cache mishandles newlines in values,
4169 # but we know of no workaround that is simple, portable, and efficient.
4170 # So, don't put newlines in cache variables' values.
4171 # Ultrix sh set writes to stderr and can't be redirected directly,
4172 # and sets the high bit in the cache file unless we assign to the vars.
4173 {
4174 (set) 2>&1 |
4175 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4176 *ac_space=\ *)
4177 # `set' does not quote correctly, so add quotes (double-quote
4178 # substitution turns \\\\ into \\, and sed turns \\ into \).
4179 sed -n \
4180 "s/'/'\\\\''/g;
4181 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4182 ;;
4183 *)
4184 # `set' quotes correctly as required by POSIX, so do not add quotes.
4185 sed -n \
4186 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4187 ;;
4188 esac;
4189 } |
4190 sed '
4191 t clear
4192 : clear
4193 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4194 t end
4195 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4196 : end' >>confcache
4197 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4198 if test -w $cache_file; then
4199 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4200 cat confcache >$cache_file
4201 else
4202 echo "not updating unwritable cache $cache_file"
4203 fi
4204 fi
4205 rm -f confcache
4206
4207 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4208 # Let make expand exec_prefix.
4209 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4210
4211 # VPATH may cause trouble with some makes, so we remove $(srcdir),
4212 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4213 # trailing colons and then remove the whole line if VPATH becomes empty
4214 # (actually we leave an empty line to preserve line numbers).
4215 if test "x$srcdir" = x.; then
4216 ac_vpsub='/^[ ]*VPATH[ ]*=/{
4217 s/:*\$(srcdir):*/:/;
4218 s/:*\${srcdir}:*/:/;
4219 s/:*@srcdir@:*/:/;
4220 s/^\([^=]*=[ ]*\):*/\1/;
4221 s/:*$//;
4222 s/^[^=]*=[ ]*$//;
4223 }'
4224 fi
4225
4226 DEFS=-DHAVE_CONFIG_H
4227
4228 ac_libobjs=
4229 ac_ltlibobjs=
4230 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4231 # 1. Remove the extension, and $U if already installed.
4232 ac_i=`echo "$ac_i" |
4233 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
4234 # 2. Add them.
4235 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
4236 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
4237 done
4238 LIBOBJS=$ac_libobjs
4239
4240 LTLIBOBJS=$ac_ltlibobjs
4241
4242
4243 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
4244 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
4245 Usually this means the macro was only invoked conditionally." >&5
4246 echo "$as_me: error: conditional \"AMDEP\" was never defined.
4247 Usually this means the macro was only invoked conditionally." >&2;}
4248 { (exit 1); exit 1; }; }
4249 fi
4250
4251 : ${CONFIG_STATUS=./config.status}
4252 ac_clean_files_save=$ac_clean_files
4253 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4254 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
4255 echo "$as_me: creating $CONFIG_STATUS" >&6;}
4256 cat >$CONFIG_STATUS <<_ACEOF
4257 #! $SHELL
4258 # Generated by $as_me.
4259 # Run this file to recreate the current configuration.
4260 # Compiler output produced by configure, useful for debugging
4261 # configure, is in config.log if it exists.
4262
4263 debug=false
4264 ac_cs_recheck=false
4265 ac_cs_silent=false
4266 SHELL=\${CONFIG_SHELL-$SHELL}
4267 _ACEOF
4268
4269 cat >>$CONFIG_STATUS <<\_ACEOF
4270 ## --------------------- ##
4271 ## M4sh Initialization. ##
4272 ## --------------------- ##
4273
4274 # Be Bourne compatible
4275 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
4276 emulate sh
4277 NULLCMD=:
4278 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
4279 # is contrary to our usage. Disable this feature.
4280 alias -g '${1+"$@"}'='"$@"'
4281 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
4282 set -o posix
4283 fi
4284
4285 # Support unset when possible.
4286 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
4287 as_unset=unset
4288 else
4289 as_unset=false
4290 fi
4291
4292
4293 # Work around bugs in pre-3.0 UWIN ksh.
4294 $as_unset ENV MAIL MAILPATH
4295 PS1='$ '
4296 PS2='> '
4297 PS4='+ '
4298
4299 # NLS nuisances.
4300 for as_var in \
4301 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
4302 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
4303 LC_TELEPHONE LC_TIME
4304 do
4305 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
4306 eval $as_var=C; export $as_var
4307 else
4308 $as_unset $as_var
4309 fi
4310 done
4311
4312 # Required to use basename.
4313 if expr a : '\(a\)' >/dev/null 2>&1; then
4314 as_expr=expr
4315 else
4316 as_expr=false
4317 fi
4318
4319 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
4320 as_basename=basename
4321 else
4322 as_basename=false
4323 fi
4324
4325
4326 # Name of the executable.
4327 as_me=`$as_basename "$0" ||
4328 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4329 X"$0" : 'X\(//\)$' \| \
4330 X"$0" : 'X\(/\)$' \| \
4331 . : '\(.\)' 2>/dev/null ||
4332 echo X/"$0" |
4333 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
4334 /^X\/\(\/\/\)$/{ s//\1/; q; }
4335 /^X\/\(\/\).*/{ s//\1/; q; }
4336 s/.*/./; q'`
4337
4338
4339 # PATH needs CR, and LINENO needs CR and PATH.
4340 # Avoid depending upon Character Ranges.
4341 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4342 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4343 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4344 as_cr_digits='0123456789'
4345 as_cr_alnum=$as_cr_Letters$as_cr_digits
4346
4347 # The user is always right.
4348 if test "${PATH_SEPARATOR+set}" != set; then
4349 echo "#! /bin/sh" >conf$$.sh
4350 echo "exit 0" >>conf$$.sh
4351 chmod +x conf$$.sh
4352 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4353 PATH_SEPARATOR=';'
4354 else
4355 PATH_SEPARATOR=:
4356 fi
4357 rm -f conf$$.sh
4358 fi
4359
4360
4361 as_lineno_1=$LINENO
4362 as_lineno_2=$LINENO
4363 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4364 test "x$as_lineno_1" != "x$as_lineno_2" &&
4365 test "x$as_lineno_3" = "x$as_lineno_2" || {
4366 # Find who we are. Look in the path if we contain no path at all
4367 # relative or not.
4368 case $0 in
4369 *[\\/]* ) as_myself=$0 ;;
4370 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4371 for as_dir in $PATH
4372 do
4373 IFS=$as_save_IFS
4374 test -z "$as_dir" && as_dir=.
4375 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4376 done
4377
4378 ;;
4379 esac
4380 # We did not find ourselves, most probably we were run as `sh COMMAND'
4381 # in which case we are not to be found in the path.
4382 if test "x$as_myself" = x; then
4383 as_myself=$0
4384 fi
4385 if test ! -f "$as_myself"; then
4386 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
4387 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
4388 { (exit 1); exit 1; }; }
4389 fi
4390 case $CONFIG_SHELL in
4391 '')
4392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4393 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
4394 do
4395 IFS=$as_save_IFS
4396 test -z "$as_dir" && as_dir=.
4397 for as_base in sh bash ksh sh5; do
4398 case $as_dir in
4399 /*)
4400 if ("$as_dir/$as_base" -c '
4401 as_lineno_1=$LINENO
4402 as_lineno_2=$LINENO
4403 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4404 test "x$as_lineno_1" != "x$as_lineno_2" &&
4405 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
4406 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
4407 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
4408 CONFIG_SHELL=$as_dir/$as_base
4409 export CONFIG_SHELL
4410 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
4411 fi;;
4412 esac
4413 done
4414 done
4415 ;;
4416 esac
4417
4418 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
4419 # uniformly replaced by the line number. The first 'sed' inserts a
4420 # line-number line before each line; the second 'sed' does the real
4421 # work. The second script uses 'N' to pair each line-number line
4422 # with the numbered line, and appends trailing '-' during
4423 # substitution so that $LINENO is not a special case at line end.
4424 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
4425 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
4426 sed '=' <$as_myself |
4427 sed '
4428 N
4429 s,$,-,
4430 : loop
4431 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
4432 t loop
4433 s,-$,,
4434 s,^['$as_cr_digits']*\n,,
4435 ' >$as_me.lineno &&
4436 chmod +x $as_me.lineno ||
4437 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
4438 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
4439 { (exit 1); exit 1; }; }
4440
4441 # Don't try to exec as it changes $[0], causing all sort of problems
4442 # (the dirname of $[0] is not the place where we might find the
4443 # original and so on. Autoconf is especially sensible to this).
4444 . ./$as_me.lineno
4445 # Exit status is that of the last command.
4446 exit
4447 }
4448
4449
4450 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
4451 *c*,-n*) ECHO_N= ECHO_C='
4452 ' ECHO_T=' ' ;;
4453 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
4454 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
4455 esac
4456
4457 if expr a : '\(a\)' >/dev/null 2>&1; then
4458 as_expr=expr
4459 else
4460 as_expr=false
4461 fi
4462
4463 rm -f conf$$ conf$$.exe conf$$.file
4464 echo >conf$$.file
4465 if ln -s conf$$.file conf$$ 2>/dev/null; then
4466 # We could just check for DJGPP; but this test a) works b) is more generic
4467 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
4468 if test -f conf$$.exe; then
4469 # Don't use ln at all; we don't have any links
4470 as_ln_s='cp -p'
4471 else
4472 as_ln_s='ln -s'
4473 fi
4474 elif ln conf$$.file conf$$ 2>/dev/null; then
4475 as_ln_s=ln
4476 else
4477 as_ln_s='cp -p'
4478 fi
4479 rm -f conf$$ conf$$.exe conf$$.file
4480
4481 if mkdir -p . 2>/dev/null; then
4482 as_mkdir_p=:
4483 else
4484 as_mkdir_p=false
4485 fi
4486
4487 as_executable_p="test -f"
4488
4489 # Sed expression to map a string onto a valid CPP name.
4490 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
4491
4492 # Sed expression to map a string onto a valid variable name.
4493 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
4494
4495
4496 # IFS
4497 # We need space, tab and new line, in precisely that order.
4498 as_nl='
4499 '
4500 IFS=" $as_nl"
4501
4502 # CDPATH.
4503 $as_unset CDPATH
4504
4505 exec 6>&1
4506
4507 # Open the log real soon, to keep \$[0] and so on meaningful, and to
4508 # report actual input values of CONFIG_FILES etc. instead of their
4509 # values after options handling. Logging --version etc. is OK.
4510 exec 5>>config.log
4511 {
4512 echo
4513 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4514 ## Running $as_me. ##
4515 _ASBOX
4516 } >&5
4517 cat >&5 <<_CSEOF
4518
4519 This file was extended by $as_me, which was
4520 generated by GNU Autoconf 2.57. Invocation command line was
4521
4522 CONFIG_FILES = $CONFIG_FILES
4523 CONFIG_HEADERS = $CONFIG_HEADERS
4524 CONFIG_LINKS = $CONFIG_LINKS
4525 CONFIG_COMMANDS = $CONFIG_COMMANDS
4526 $ $0 $@
4527
4528 _CSEOF
4529 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
4530 echo >&5
4531 _ACEOF
4532
4533 # Files that config.status was made for.
4534 if test -n "$ac_config_files"; then
4535 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
4536 fi
4537
4538 if test -n "$ac_config_headers"; then
4539 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
4540 fi
4541
4542 if test -n "$ac_config_links"; then
4543 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
4544 fi
4545
4546 if test -n "$ac_config_commands"; then
4547 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
4548 fi
4549
4550 cat >>$CONFIG_STATUS <<\_ACEOF
4551
4552 ac_cs_usage="\
4553 \`$as_me' instantiates files from templates according to the
4554 current configuration.
4555
4556 Usage: $0 [OPTIONS] [FILE]...
4557
4558 -h, --help print this help, then exit
4559 -V, --version print version number, then exit
4560 -q, --quiet do not print progress messages
4561 -d, --debug don't remove temporary files
4562 --recheck update $as_me by reconfiguring in the same conditions
4563 --file=FILE[:TEMPLATE]
4564 instantiate the configuration file FILE
4565 --header=FILE[:TEMPLATE]
4566 instantiate the configuration header FILE
4567
4568 Configuration files:
4569 $config_files
4570
4571 Configuration headers:
4572 $config_headers
4573
4574 Configuration commands:
4575 $config_commands
4576
4577 Report bugs to <[email protected]>."
4578 _ACEOF
4579
4580 cat >>$CONFIG_STATUS <<_ACEOF
4581 ac_cs_version="\\
4582 config.status
4583 configured by $0, generated by GNU Autoconf 2.57,
4584 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
4585
4586 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
4587 Free Software Foundation, Inc.
4588 This config.status script is free software; the Free Software Foundation
4589 gives unlimited permission to copy, distribute and modify it."
4590 srcdir=$srcdir
4591 INSTALL="$INSTALL"
4592 _ACEOF
4593
4594 cat >>$CONFIG_STATUS <<\_ACEOF
4595 # If no file are specified by the user, then we need to provide default
4596 # value. By we need to know if files were specified by the user.
4597 ac_need_defaults=:
4598 while test $# != 0
4599 do
4600 case $1 in
4601 --*=*)
4602 ac_option=`expr "x$1" : 'x\([^=]*\)='`
4603 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
4604 ac_shift=:
4605 ;;
4606 -*)
4607 ac_option=$1
4608 ac_optarg=$2
4609 ac_shift=shift
4610 ;;
4611 *) # This is not an option, so the user has probably given explicit
4612 # arguments.
4613 ac_option=$1
4614 ac_need_defaults=false;;
4615 esac
4616
4617 case $ac_option in
4618 # Handling of the options.
4619 _ACEOF
4620 cat >>$CONFIG_STATUS <<\_ACEOF
4621 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4622 ac_cs_recheck=: ;;
4623 --version | --vers* | -V )
4624 echo "$ac_cs_version"; exit 0 ;;
4625 --he | --h)
4626 # Conflict between --help and --header
4627 { { echo "$as_me:$LINENO: error: ambiguous option: $1
4628 Try \`$0 --help' for more information." >&5
4629 echo "$as_me: error: ambiguous option: $1
4630 Try \`$0 --help' for more information." >&2;}
4631 { (exit 1); exit 1; }; };;
4632 --help | --hel | -h )
4633 echo "$ac_cs_usage"; exit 0 ;;
4634 --debug | --d* | -d )
4635 debug=: ;;
4636 --file | --fil | --fi | --f )
4637 $ac_shift
4638 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
4639 ac_need_defaults=false;;
4640 --header | --heade | --head | --hea )
4641 $ac_shift
4642 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
4643 ac_need_defaults=false;;
4644 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4645 | -silent | --silent | --silen | --sile | --sil | --si | --s)
4646 ac_cs_silent=: ;;
4647
4648 # This is an error.
4649 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
4650 Try \`$0 --help' for more information." >&5
4651 echo "$as_me: error: unrecognized option: $1
4652 Try \`$0 --help' for more information." >&2;}
4653 { (exit 1); exit 1; }; } ;;
4654
4655 *) ac_config_targets="$ac_config_targets $1" ;;
4656
4657 esac
4658 shift
4659 done
4660
4661 ac_configure_extra_args=
4662
4663 if $ac_cs_silent; then
4664 exec 6>/dev/null
4665 ac_configure_extra_args="$ac_configure_extra_args --silent"
4666 fi
4667
4668 _ACEOF
4669 cat >>$CONFIG_STATUS <<_ACEOF
4670 if \$ac_cs_recheck; then
4671 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
4672 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4673 fi
4674
4675 _ACEOF
4676
4677 cat >>$CONFIG_STATUS <<_ACEOF
4678 #
4679 # INIT-COMMANDS section.
4680 #
4681
4682 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
4683
4684 _ACEOF
4685
4686
4687
4688 cat >>$CONFIG_STATUS <<\_ACEOF
4689 for ac_config_target in $ac_config_targets
4690 do
4691 case "$ac_config_target" in
4692 # Handling of arguments.
4693 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4694 "graphics/Makefile" ) CONFIG_FILES="$CONFIG_FILES graphics/Makefile" ;;
4695 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
4696 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
4697 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
4698 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
4699 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
4700 { (exit 1); exit 1; }; };;
4701 esac
4702 done
4703
4704 # If the user did not use the arguments to specify the items to instantiate,
4705 # then the envvar interface is used. Set only those that are not.
4706 # We use the long form for the default assignment because of an extremely
4707 # bizarre bug on SunOS 4.1.3.
4708 if $ac_need_defaults; then
4709 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4710 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
4711 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
4712 fi
4713
4714 # Have a temporary directory for convenience. Make it in the build tree
4715 # simply because there is no reason to put it here, and in addition,
4716 # creating and moving files from /tmp can sometimes cause problems.
4717 # Create a temporary directory, and hook for its removal unless debugging.
4718 $debug ||
4719 {
4720 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
4721 trap '{ (exit 1); exit 1; }' 1 2 13 15
4722 }
4723
4724 # Create a (secure) tmp directory for tmp files.
4725
4726 {
4727 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
4728 test -n "$tmp" && test -d "$tmp"
4729 } ||
4730 {
4731 tmp=./confstat$$-$RANDOM
4732 (umask 077 && mkdir $tmp)
4733 } ||
4734 {
4735 echo "$me: cannot create a temporary directory in ." >&2
4736 { (exit 1); exit 1; }
4737 }
4738
4739 _ACEOF
4740
4741 cat >>$CONFIG_STATUS <<_ACEOF
4742
4743 #
4744 # CONFIG_FILES section.
4745 #
4746
4747 # No need to generate the scripts if there are no CONFIG_FILES.
4748 # This happens for instance when ./config.status config.h
4749 if test -n "\$CONFIG_FILES"; then
4750 # Protect against being on the right side of a sed subst in config.status.
4751 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
4752 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
4753 s,@SHELL@,$SHELL,;t t
4754 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
4755 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
4756 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
4757 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
4758 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
4759 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
4760 s,@exec_prefix@,$exec_prefix,;t t
4761 s,@prefix@,$prefix,;t t
4762 s,@program_transform_name@,$program_transform_name,;t t
4763 s,@bindir@,$bindir,;t t
4764 s,@sbindir@,$sbindir,;t t
4765 s,@libexecdir@,$libexecdir,;t t
4766 s,@datadir@,$datadir,;t t
4767 s,@sysconfdir@,$sysconfdir,;t t
4768 s,@sharedstatedir@,$sharedstatedir,;t t
4769 s,@localstatedir@,$localstatedir,;t t
4770 s,@libdir@,$libdir,;t t
4771 s,@includedir@,$includedir,;t t
4772 s,@oldincludedir@,$oldincludedir,;t t
4773 s,@infodir@,$infodir,;t t
4774 s,@mandir@,$mandir,;t t
4775 s,@build_alias@,$build_alias,;t t
4776 s,@host_alias@,$host_alias,;t t
4777 s,@target_alias@,$target_alias,;t t
4778 s,@DEFS@,$DEFS,;t t
4779 s,@ECHO_C@,$ECHO_C,;t t
4780 s,@ECHO_N@,$ECHO_N,;t t
4781 s,@ECHO_T@,$ECHO_T,;t t
4782 s,@LIBS@,$LIBS,;t t
4783 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
4784 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
4785 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
4786 s,@PACKAGE@,$PACKAGE,;t t
4787 s,@VERSION@,$VERSION,;t t
4788 s,@ACLOCAL@,$ACLOCAL,;t t
4789 s,@AUTOCONF@,$AUTOCONF,;t t
4790 s,@AUTOMAKE@,$AUTOMAKE,;t t
4791 s,@AUTOHEADER@,$AUTOHEADER,;t t
4792 s,@MAKEINFO@,$MAKEINFO,;t t
4793 s,@AMTAR@,$AMTAR,;t t
4794 s,@install_sh@,$install_sh,;t t
4795 s,@STRIP@,$STRIP,;t t
4796 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
4797 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
4798 s,@AWK@,$AWK,;t t
4799 s,@SET_MAKE@,$SET_MAKE,;t t
4800 s,@CC@,$CC,;t t
4801 s,@CFLAGS@,$CFLAGS,;t t
4802 s,@LDFLAGS@,$LDFLAGS,;t t
4803 s,@CPPFLAGS@,$CPPFLAGS,;t t
4804 s,@ac_ct_CC@,$ac_ct_CC,;t t
4805 s,@EXEEXT@,$EXEEXT,;t t
4806 s,@OBJEXT@,$OBJEXT,;t t
4807 s,@DEPDIR@,$DEPDIR,;t t
4808 s,@am__include@,$am__include,;t t
4809 s,@am__quote@,$am__quote,;t t
4810 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
4811 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
4812 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
4813 s,@CCDEPMODE@,$CCDEPMODE,;t t
4814 s,@build@,$build,;t t
4815 s,@build_cpu@,$build_cpu,;t t
4816 s,@build_vendor@,$build_vendor,;t t
4817 s,@build_os@,$build_os,;t t
4818 s,@host@,$host,;t t
4819 s,@host_cpu@,$host_cpu,;t t
4820 s,@host_vendor@,$host_vendor,;t t
4821 s,@host_os@,$host_os,;t t
4822 s,@target@,$target,;t t
4823 s,@target_cpu@,$target_cpu,;t t
4824 s,@target_vendor@,$target_vendor,;t t
4825 s,@target_os@,$target_os,;t t
4826 s,@SDL_CONFIG@,$SDL_CONFIG,;t t
4827 s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
4828 s,@SDL_LIBS@,$SDL_LIBS,;t t
4829 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
4830 s,@JACK_CFLAGS@,$JACK_CFLAGS,;t t
4831 s,@JACK_LIBS@,$JACK_LIBS,;t t
4832 s,@CPP@,$CPP,;t t
4833 s,@EGREP@,$EGREP,;t t
4834 s,@LIBOBJS@,$LIBOBJS,;t t
4835 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
4836 CEOF
4837
4838 _ACEOF
4839
4840 cat >>$CONFIG_STATUS <<\_ACEOF
4841 # Split the substitutions into bite-sized pieces for seds with
4842 # small command number limits, like on Digital OSF/1 and HP-UX.
4843 ac_max_sed_lines=48
4844 ac_sed_frag=1 # Number of current file.
4845 ac_beg=1 # First line for current file.
4846 ac_end=$ac_max_sed_lines # Line after last line for current file.
4847 ac_more_lines=:
4848 ac_sed_cmds=
4849 while $ac_more_lines; do
4850 if test $ac_beg -gt 1; then
4851 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4852 else
4853 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4854 fi
4855 if test ! -s $tmp/subs.frag; then
4856 ac_more_lines=false
4857 else
4858 # The purpose of the label and of the branching condition is to
4859 # speed up the sed processing (if there are no `@' at all, there
4860 # is no need to browse any of the substitutions).
4861 # These are the two extra sed commands mentioned above.
4862 (echo ':t
4863 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
4864 if test -z "$ac_sed_cmds"; then
4865 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
4866 else
4867 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
4868 fi
4869 ac_sed_frag=`expr $ac_sed_frag + 1`
4870 ac_beg=$ac_end
4871 ac_end=`expr $ac_end + $ac_max_sed_lines`
4872 fi
4873 done
4874 if test -z "$ac_sed_cmds"; then
4875 ac_sed_cmds=cat
4876 fi
4877 fi # test -n "$CONFIG_FILES"
4878
4879 _ACEOF
4880 cat >>$CONFIG_STATUS <<\_ACEOF
4881 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
4882 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4883 case $ac_file in
4884 - | *:- | *:-:* ) # input from stdin
4885 cat >$tmp/stdin
4886 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4887 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4888 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4889 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4890 * ) ac_file_in=$ac_file.in ;;
4891 esac
4892
4893 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
4894 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
4895 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4896 X"$ac_file" : 'X\(//\)[^/]' \| \
4897 X"$ac_file" : 'X\(//\)$' \| \
4898 X"$ac_file" : 'X\(/\)' \| \
4899 . : '\(.\)' 2>/dev/null ||
4900 echo X"$ac_file" |
4901 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4902 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4903 /^X\(\/\/\)$/{ s//\1/; q; }
4904 /^X\(\/\).*/{ s//\1/; q; }
4905 s/.*/./; q'`
4906 { if $as_mkdir_p; then
4907 mkdir -p "$ac_dir"
4908 else
4909 as_dir="$ac_dir"
4910 as_dirs=
4911 while test ! -d "$as_dir"; do
4912 as_dirs="$as_dir $as_dirs"
4913 as_dir=`(dirname "$as_dir") 2>/dev/null ||
4914 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4915 X"$as_dir" : 'X\(//\)[^/]' \| \
4916 X"$as_dir" : 'X\(//\)$' \| \
4917 X"$as_dir" : 'X\(/\)' \| \
4918 . : '\(.\)' 2>/dev/null ||
4919 echo X"$as_dir" |
4920 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4921 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4922 /^X\(\/\/\)$/{ s//\1/; q; }
4923 /^X\(\/\).*/{ s//\1/; q; }
4924 s/.*/./; q'`
4925 done
4926 test ! -n "$as_dirs" || mkdir $as_dirs
4927 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
4928 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
4929 { (exit 1); exit 1; }; }; }
4930
4931 ac_builddir=.
4932
4933 if test "$ac_dir" != .; then
4934 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
4935 # A "../" for each directory in $ac_dir_suffix.
4936 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
4937 else
4938 ac_dir_suffix= ac_top_builddir=
4939 fi
4940
4941 case $srcdir in
4942 .) # No --srcdir option. We are building in place.
4943 ac_srcdir=.
4944 if test -z "$ac_top_builddir"; then
4945 ac_top_srcdir=.
4946 else
4947 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
4948 fi ;;
4949 [\\/]* | ?:[\\/]* ) # Absolute path.
4950 ac_srcdir=$srcdir$ac_dir_suffix;
4951 ac_top_srcdir=$srcdir ;;
4952 *) # Relative path.
4953 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
4954 ac_top_srcdir=$ac_top_builddir$srcdir ;;
4955 esac
4956 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
4957 # absolute.
4958 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
4959 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
4960 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
4961 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
4962
4963
4964 case $INSTALL in
4965 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
4966 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
4967 esac
4968
4969 if test x"$ac_file" != x-; then
4970 { echo "$as_me:$LINENO: creating $ac_file" >&5
4971 echo "$as_me: creating $ac_file" >&6;}
4972 rm -f "$ac_file"
4973 fi
4974 # Let's still pretend it is `configure' which instantiates (i.e., don't
4975 # use $as_me), people would be surprised to read:
4976 # /* config.h. Generated by config.status. */
4977 if test x"$ac_file" = x-; then
4978 configure_input=
4979 else
4980 configure_input="$ac_file. "
4981 fi
4982 configure_input=$configure_input"Generated from `echo $ac_file_in |
4983 sed 's,.*/,,'` by configure."
4984
4985 # First look for the input files in the build tree, otherwise in the
4986 # src tree.
4987 ac_file_inputs=`IFS=:
4988 for f in $ac_file_in; do
4989 case $f in
4990 -) echo $tmp/stdin ;;
4991 [\\/$]*)
4992 # Absolute (can't be DOS-style, as IFS=:)
4993 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4994 echo "$as_me: error: cannot find input file: $f" >&2;}
4995 { (exit 1); exit 1; }; }
4996 echo $f;;
4997 *) # Relative
4998 if test -f "$f"; then
4999 # Build tree
5000 echo $f
5001 elif test -f "$srcdir/$f"; then
5002 # Source tree
5003 echo $srcdir/$f
5004 else
5005 # /dev/null tree
5006 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5007 echo "$as_me: error: cannot find input file: $f" >&2;}
5008 { (exit 1); exit 1; }; }
5009 fi;;
5010 esac
5011 done` || { (exit 1); exit 1; }
5012 _ACEOF
5013 cat >>$CONFIG_STATUS <<_ACEOF
5014 sed "$ac_vpsub
5015 $extrasub
5016 _ACEOF
5017 cat >>$CONFIG_STATUS <<\_ACEOF
5018 :t
5019 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5020 s,@configure_input@,$configure_input,;t t
5021 s,@srcdir@,$ac_srcdir,;t t
5022 s,@abs_srcdir@,$ac_abs_srcdir,;t t
5023 s,@top_srcdir@,$ac_top_srcdir,;t t
5024 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
5025 s,@builddir@,$ac_builddir,;t t
5026 s,@abs_builddir@,$ac_abs_builddir,;t t
5027 s,@top_builddir@,$ac_top_builddir,;t t
5028 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
5029 s,@INSTALL@,$ac_INSTALL,;t t
5030 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
5031 rm -f $tmp/stdin
5032 if test x"$ac_file" != x-; then
5033 mv $tmp/out $ac_file
5034 else
5035 cat $tmp/out
5036 rm -f $tmp/out
5037 fi
5038
5039 done
5040 _ACEOF
5041 cat >>$CONFIG_STATUS <<\_ACEOF
5042
5043 #
5044 # CONFIG_HEADER section.
5045 #
5046
5047 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5048 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5049 #
5050 # ac_d sets the value in "#define NAME VALUE" lines.
5051 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5052 ac_dB='[ ].*$,\1#\2'
5053 ac_dC=' '
5054 ac_dD=',;t'
5055 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5056 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5057 ac_uB='$,\1#\2define\3'
5058 ac_uC=' '
5059 ac_uD=',;t'
5060
5061 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
5062 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5063 case $ac_file in
5064 - | *:- | *:-:* ) # input from stdin
5065 cat >$tmp/stdin
5066 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5067 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5068 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5069 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5070 * ) ac_file_in=$ac_file.in ;;
5071 esac
5072
5073 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
5074 echo "$as_me: creating $ac_file" >&6;}
5075
5076 # First look for the input files in the build tree, otherwise in the
5077 # src tree.
5078 ac_file_inputs=`IFS=:
5079 for f in $ac_file_in; do
5080 case $f in
5081 -) echo $tmp/stdin ;;
5082 [\\/$]*)
5083 # Absolute (can't be DOS-style, as IFS=:)
5084 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5085 echo "$as_me: error: cannot find input file: $f" >&2;}
5086 { (exit 1); exit 1; }; }
5087 echo $f;;
5088 *) # Relative
5089 if test -f "$f"; then
5090 # Build tree
5091 echo $f
5092 elif test -f "$srcdir/$f"; then
5093 # Source tree
5094 echo $srcdir/$f
5095 else
5096 # /dev/null tree
5097 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5098 echo "$as_me: error: cannot find input file: $f" >&2;}
5099 { (exit 1); exit 1; }; }
5100 fi;;
5101 esac
5102 done` || { (exit 1); exit 1; }
5103 # Remove the trailing spaces.
5104 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
5105
5106 _ACEOF
5107
5108 # Transform confdefs.h into two sed scripts, `conftest.defines' and
5109 # `conftest.undefs', that substitutes the proper values into
5110 # config.h.in to produce config.h. The first handles `#define'
5111 # templates, and the second `#undef' templates.
5112 # And first: Protect against being on the right side of a sed subst in
5113 # config.status. Protect against being in an unquoted here document
5114 # in config.status.
5115 rm -f conftest.defines conftest.undefs
5116 # Using a here document instead of a string reduces the quoting nightmare.
5117 # Putting comments in sed scripts is not portable.
5118 #
5119 # `end' is used to avoid that the second main sed command (meant for
5120 # 0-ary CPP macros) applies to n-ary macro definitions.
5121 # See the Autoconf documentation for `clear'.
5122 cat >confdef2sed.sed <<\_ACEOF
5123 s/[\\&,]/\\&/g
5124 s,[\\$`],\\&,g
5125 t clear
5126 : clear
5127 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
5128 t end
5129 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
5130 : end
5131 _ACEOF
5132 # If some macros were called several times there might be several times
5133 # the same #defines, which is useless. Nevertheless, we may not want to
5134 # sort them, since we want the *last* AC-DEFINE to be honored.
5135 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
5136 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
5137 rm -f confdef2sed.sed
5138
5139 # This sed command replaces #undef with comments. This is necessary, for
5140 # example, in the case of _POSIX_SOURCE, which is predefined and required
5141 # on some systems where configure will not decide to define it.
5142 cat >>conftest.undefs <<\_ACEOF
5143 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
5144 _ACEOF
5145
5146 # Break up conftest.defines because some shells have a limit on the size
5147 # of here documents, and old seds have small limits too (100 cmds).
5148 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
5149 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
5150 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
5151 echo ' :' >>$CONFIG_STATUS
5152 rm -f conftest.tail
5153 while grep . conftest.defines >/dev/null
5154 do
5155 # Write a limited-size here document to $tmp/defines.sed.
5156 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
5157 # Speed up: don't consider the non `#define' lines.
5158 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
5159 # Work around the forget-to-reset-the-flag bug.
5160 echo 't clr' >>$CONFIG_STATUS
5161 echo ': clr' >>$CONFIG_STATUS
5162 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
5163 echo 'CEOF
5164 sed -f $tmp/defines.sed $tmp/in >$tmp/out
5165 rm -f $tmp/in
5166 mv $tmp/out $tmp/in
5167 ' >>$CONFIG_STATUS
5168 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
5169 rm -f conftest.defines
5170 mv conftest.tail conftest.defines
5171 done
5172 rm -f conftest.defines
5173 echo ' fi # grep' >>$CONFIG_STATUS
5174 echo >>$CONFIG_STATUS
5175
5176 # Break up conftest.undefs because some shells have a limit on the size
5177 # of here documents, and old seds have small limits too (100 cmds).
5178 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
5179 rm -f conftest.tail
5180 while grep . conftest.undefs >/dev/null
5181 do
5182 # Write a limited-size here document to $tmp/undefs.sed.
5183 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
5184 # Speed up: don't consider the non `#undef'
5185 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
5186 # Work around the forget-to-reset-the-flag bug.
5187 echo 't clr' >>$CONFIG_STATUS
5188 echo ': clr' >>$CONFIG_STATUS
5189 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
5190 echo 'CEOF
5191 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
5192 rm -f $tmp/in
5193 mv $tmp/out $tmp/in
5194 ' >>$CONFIG_STATUS
5195 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
5196 rm -f conftest.undefs
5197 mv conftest.tail conftest.undefs
5198 done
5199 rm -f conftest.undefs
5200
5201 cat >>$CONFIG_STATUS <<\_ACEOF
5202 # Let's still pretend it is `configure' which instantiates (i.e., don't
5203 # use $as_me), people would be surprised to read:
5204 # /* config.h. Generated by config.status. */
5205 if test x"$ac_file" = x-; then
5206 echo "/* Generated by configure. */" >$tmp/config.h
5207 else
5208 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
5209 fi
5210 cat $tmp/in >>$tmp/config.h
5211 rm -f $tmp/in
5212 if test x"$ac_file" != x-; then
5213 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
5214 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
5215 echo "$as_me: $ac_file is unchanged" >&6;}
5216 else
5217 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5218 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5219 X"$ac_file" : 'X\(//\)[^/]' \| \
5220 X"$ac_file" : 'X\(//\)$' \| \
5221 X"$ac_file" : 'X\(/\)' \| \
5222 . : '\(.\)' 2>/dev/null ||
5223 echo X"$ac_file" |
5224 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5225 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5226 /^X\(\/\/\)$/{ s//\1/; q; }
5227 /^X\(\/\).*/{ s//\1/; q; }
5228 s/.*/./; q'`
5229 { if $as_mkdir_p; then
5230 mkdir -p "$ac_dir"
5231 else
5232 as_dir="$ac_dir"
5233 as_dirs=
5234 while test ! -d "$as_dir"; do
5235 as_dirs="$as_dir $as_dirs"
5236 as_dir=`(dirname "$as_dir") 2>/dev/null ||
5237 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5238 X"$as_dir" : 'X\(//\)[^/]' \| \
5239 X"$as_dir" : 'X\(//\)$' \| \
5240 X"$as_dir" : 'X\(/\)' \| \
5241 . : '\(.\)' 2>/dev/null ||
5242 echo X"$as_dir" |
5243 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5244 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5245 /^X\(\/\/\)$/{ s//\1/; q; }
5246 /^X\(\/\).*/{ s//\1/; q; }
5247 s/.*/./; q'`
5248 done
5249 test ! -n "$as_dirs" || mkdir $as_dirs
5250 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5251 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5252 { (exit 1); exit 1; }; }; }
5253
5254 rm -f $ac_file
5255 mv $tmp/config.h $ac_file
5256 fi
5257 else
5258 cat $tmp/config.h
5259 rm -f $tmp/config.h
5260 fi
5261 # Run the commands associated with the file.
5262 case $ac_file in
5263 src/config.h ) # update the timestamp
5264 echo 'timestamp for src/config.h' >"src/stamp-h1"
5265 ;;
5266 esac
5267 done
5268 _ACEOF
5269 cat >>$CONFIG_STATUS <<\_ACEOF
5270
5271 #
5272 # CONFIG_COMMANDS section.
5273 #
5274 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
5275 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
5276 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
5277 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
5278 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5279 X"$ac_dest" : 'X\(//\)[^/]' \| \
5280 X"$ac_dest" : 'X\(//\)$' \| \
5281 X"$ac_dest" : 'X\(/\)' \| \
5282 . : '\(.\)' 2>/dev/null ||
5283 echo X"$ac_dest" |
5284 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5285 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5286 /^X\(\/\/\)$/{ s//\1/; q; }
5287 /^X\(\/\).*/{ s//\1/; q; }
5288 s/.*/./; q'`
5289 ac_builddir=.
5290
5291 if test "$ac_dir" != .; then
5292 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5293 # A "../" for each directory in $ac_dir_suffix.
5294 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5295 else
5296 ac_dir_suffix= ac_top_builddir=
5297 fi
5298
5299 case $srcdir in
5300 .) # No --srcdir option. We are building in place.
5301 ac_srcdir=.
5302 if test -z "$ac_top_builddir"; then
5303 ac_top_srcdir=.
5304 else
5305 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5306 fi ;;
5307 [\\/]* | ?:[\\/]* ) # Absolute path.
5308 ac_srcdir=$srcdir$ac_dir_suffix;
5309 ac_top_srcdir=$srcdir ;;
5310 *) # Relative path.
5311 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5312 ac_top_srcdir=$ac_top_builddir$srcdir ;;
5313 esac
5314 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
5315 # absolute.
5316 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
5317 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
5318 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
5319 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
5320
5321
5322 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
5323 echo "$as_me: executing $ac_dest commands" >&6;}
5324 case $ac_dest in
5325 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
5326 # Strip MF so we end up with the name of the file.
5327 mf=`echo "$mf" | sed -e 's/:.*$//'`
5328 # Check whether this is an Automake generated Makefile or not.
5329 # We used to match only the files named `Makefile.in', but
5330 # some people rename them; so instead we look at the file content.
5331 # Grep'ing the first line is not enough: some people post-process
5332 # each Makefile.in and add a new line on top of each file to say so.
5333 # So let's grep whole file.
5334 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
5335 dirpart=`(dirname "$mf") 2>/dev/null ||
5336 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5337 X"$mf" : 'X\(//\)[^/]' \| \
5338 X"$mf" : 'X\(//\)$' \| \
5339 X"$mf" : 'X\(/\)' \| \
5340 . : '\(.\)' 2>/dev/null ||
5341 echo X"$mf" |
5342 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5343 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5344 /^X\(\/\/\)$/{ s//\1/; q; }
5345 /^X\(\/\).*/{ s//\1/; q; }
5346 s/.*/./; q'`
5347 else
5348 continue
5349 fi
5350 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
5351 # Extract the definition of DEP_FILES from the Makefile without
5352 # running `make'.
5353 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
5354 test -z "$DEPDIR" && continue
5355 # When using ansi2knr, U may be empty or an underscore; expand it
5356 U=`sed -n -e '/^U = / s///p' < "$mf"`
5357 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
5358 # We invoke sed twice because it is the simplest approach to
5359 # changing $(DEPDIR) to its actual value in the expansion.
5360 for file in `sed -n -e '
5361 /^DEP_FILES = .*\\\\$/ {
5362 s/^DEP_FILES = //
5363 :loop
5364 s/\\\\$//
5365 p
5366 n
5367 /\\\\$/ b loop
5368 p
5369 }
5370 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
5371 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
5372 # Make sure the directory exists.
5373 test -f "$dirpart/$file" && continue
5374 fdir=`(dirname "$file") 2>/dev/null ||
5375 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5376 X"$file" : 'X\(//\)[^/]' \| \
5377 X"$file" : 'X\(//\)$' \| \
5378 X"$file" : 'X\(/\)' \| \
5379 . : '\(.\)' 2>/dev/null ||
5380 echo X"$file" |
5381 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5382 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5383 /^X\(\/\/\)$/{ s//\1/; q; }
5384 /^X\(\/\).*/{ s//\1/; q; }
5385 s/.*/./; q'`
5386 { if $as_mkdir_p; then
5387 mkdir -p $dirpart/$fdir
5388 else
5389 as_dir=$dirpart/$fdir
5390 as_dirs=
5391 while test ! -d "$as_dir"; do
5392 as_dirs="$as_dir $as_dirs"
5393 as_dir=`(dirname "$as_dir") 2>/dev/null ||
5394 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5395 X"$as_dir" : 'X\(//\)[^/]' \| \
5396 X"$as_dir" : 'X\(//\)$' \| \
5397 X"$as_dir" : 'X\(/\)' \| \
5398 . : '\(.\)' 2>/dev/null ||
5399 echo X"$as_dir" |
5400 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5401 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5402 /^X\(\/\/\)$/{ s//\1/; q; }
5403 /^X\(\/\).*/{ s//\1/; q; }
5404 s/.*/./; q'`
5405 done
5406 test ! -n "$as_dirs" || mkdir $as_dirs
5407 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
5408 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
5409 { (exit 1); exit 1; }; }; }
5410
5411 # echo "creating $dirpart/$file"
5412 echo '# dummy' > "$dirpart/$file"
5413 done
5414 done
5415 ;;
5416 esac
5417 done
5418 _ACEOF
5419
5420 cat >>$CONFIG_STATUS <<\_ACEOF
5421
5422 { (exit 0); exit 0; }
5423 _ACEOF
5424 chmod +x $CONFIG_STATUS
5425 ac_clean_files=$ac_clean_files_save
5426
5427
5428 # configure is writing to config.log, and then calls config.status.
5429 # config.status does its own redirection, appending to config.log.
5430 # Unfortunately, on DOS this fails, as config.log is still kept open
5431 # by configure, so config.status won't be able to write to it; its
5432 # output is simply discarded. So we exec the FD to /dev/null,
5433 # effectively closing config.log, so it can be properly (re)opened and
5434 # appended to by config.status. When coming back to configure, we
5435 # need to make the FD available again.
5436 if test "$no_create" != yes; then
5437 ac_cs_success=:
5438 ac_config_status_args=
5439 test "$silent" = yes &&
5440 ac_config_status_args="$ac_config_status_args --quiet"
5441 exec 5>/dev/null
5442 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5443 exec 5>>config.log
5444 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5445 # would make configure fail if this is the last instruction.
5446 $ac_cs_success || { (exit 1); exit 1; }
5447 fi
5448