Fix up some compiler warnings, mostly dealing with comparisons between
[attac-man.git] / configure
blobe3d7f79654d5c8827d523d2c2907c82f8439f732
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.53 for Pacman Arena 0.1.
5 # Report bugs to <subtil@student.dei.uc.pt>.
7 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
8 # Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
12 if expr a : '\(a\)' >/dev/null 2>&1; then
13 as_expr=expr
14 else
15 as_expr=false
19 ## --------------------- ##
20 ## M4sh Initialization. ##
21 ## --------------------- ##
23 # Be Bourne compatible
24 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25 emulate sh
26 NULLCMD=:
27 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28 set -o posix
31 # NLS nuisances.
32 # Support unset when possible.
33 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
34 as_unset=unset
35 else
36 as_unset=false
39 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
40 { $as_unset LANG || test "${LANG+set}" != set; } ||
41 { LANG=C; export LANG; }
42 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
43 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
44 { LC_ALL=C; export LC_ALL; }
45 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
46 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
47 { LC_TIME=C; export LC_TIME; }
48 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
49 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
50 { LC_CTYPE=C; export LC_CTYPE; }
51 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
52 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
53 { LANGUAGE=C; export LANGUAGE; }
54 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
55 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
56 { LC_COLLATE=C; export LC_COLLATE; }
57 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
58 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
59 { LC_NUMERIC=C; export LC_NUMERIC; }
60 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
61 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
62 { LC_MESSAGES=C; export LC_MESSAGES; }
65 # Name of the executable.
66 as_me=`(basename "$0") 2>/dev/null ||
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'`
77 # PATH needs CR, and LINENO needs CR and PATH.
78 # Avoid depending upon Character Ranges.
79 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
80 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
81 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
82 as_cr_digits='0123456789'
83 as_cr_alnum=$as_cr_Letters$as_cr_digits
85 # The user is always right.
86 if test "${PATH_SEPARATOR+set}" != set; then
87 echo "#! /bin/sh" >conftest.sh
88 echo "exit 0" >>conftest.sh
89 chmod +x conftest.sh
90 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
91 PATH_SEPARATOR=';'
92 else
93 PATH_SEPARATOR=:
95 rm -f conftest.sh
99 as_lineno_1=$LINENO
100 as_lineno_2=$LINENO
101 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
102 test "x$as_lineno_1" != "x$as_lineno_2" &&
103 test "x$as_lineno_3" = "x$as_lineno_2" || {
104 # Find who we are. Look in the path if we contain no path at all
105 # relative or not.
106 case $0 in
107 *[\\/]* ) as_myself=$0 ;;
108 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
109 for as_dir in $PATH
111 IFS=$as_save_IFS
112 test -z "$as_dir" && as_dir=.
113 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
114 done
117 esac
118 # We did not find ourselves, most probably we were run as `sh COMMAND'
119 # in which case we are not to be found in the path.
120 if test "x$as_myself" = x; then
121 as_myself=$0
123 if test ! -f "$as_myself"; then
124 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
125 { (exit 1); exit 1; }; }
127 case $CONFIG_SHELL in
129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
130 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 IFS=$as_save_IFS
133 test -z "$as_dir" && as_dir=.
134 for as_base in sh bash ksh sh5; do
135 case $as_dir in
137 if ("$as_dir/$as_base" -c '
138 as_lineno_1=$LINENO
139 as_lineno_2=$LINENO
140 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
141 test "x$as_lineno_1" != "x$as_lineno_2" &&
142 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
143 CONFIG_SHELL=$as_dir/$as_base
144 export CONFIG_SHELL
145 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
146 fi;;
147 esac
148 done
149 done
151 esac
153 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
154 # uniformly replaced by the line number. The first 'sed' inserts a
155 # line-number line before each line; the second 'sed' does the real
156 # work. The second script uses 'N' to pair each line-number line
157 # with the numbered line, and appends trailing '-' during
158 # substitution so that $LINENO is not a special case at line end.
159 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
160 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
161 sed '=' <$as_myself |
162 sed '
164 s,$,-,
165 : loop
166 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
167 t loop
168 s,-$,,
169 s,^['$as_cr_digits']*\n,,
170 ' >$as_me.lineno &&
171 chmod +x $as_me.lineno ||
172 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
173 { (exit 1); exit 1; }; }
175 # Don't try to exec as it changes $[0], causing all sort of problems
176 # (the dirname of $[0] is not the place where we might find the
177 # original and so on. Autoconf is especially sensible to this).
178 . ./$as_me.lineno
179 # Exit status is that of the last command.
180 exit
184 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
185 *c*,-n*) ECHO_N= ECHO_C='
186 ' ECHO_T=' ' ;;
187 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
188 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
189 esac
191 if expr a : '\(a\)' >/dev/null 2>&1; then
192 as_expr=expr
193 else
194 as_expr=false
197 rm -f conf$$ conf$$.exe conf$$.file
198 echo >conf$$.file
199 if ln -s conf$$.file conf$$ 2>/dev/null; then
200 # We could just check for DJGPP; but this test a) works b) is more generic
201 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
202 if test -f conf$$.exe; then
203 # Don't use ln at all; we don't have any links
204 as_ln_s='cp -p'
205 else
206 as_ln_s='ln -s'
208 elif ln conf$$.file conf$$ 2>/dev/null; then
209 as_ln_s=ln
210 else
211 as_ln_s='cp -p'
213 rm -f conf$$ conf$$.exe conf$$.file
215 as_executable_p="test -f"
217 # Sed expression to map a string onto a valid CPP name.
218 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
220 # Sed expression to map a string onto a valid variable name.
221 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
224 # IFS
225 # We need space, tab and new line, in precisely that order.
226 as_nl='
228 IFS=" $as_nl"
230 # CDPATH.
231 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
234 # Name of the host.
235 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
236 # so uname gets run too.
237 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
239 exec 6>&1
242 # Initializations.
244 ac_default_prefix=/usr/local
245 cross_compiling=no
246 subdirs=
247 MFLAGS=
248 MAKEFLAGS=
249 SHELL=${CONFIG_SHELL-/bin/sh}
251 # Maximum number of lines to put in a shell here document.
252 # This variable seems obsolete. It should probably be removed, and
253 # only ac_max_sed_lines should be used.
254 : ${ac_max_here_lines=38}
256 # Identity of this package.
257 PACKAGE_NAME='Attac-Man'
258 PACKAGE_TARNAME='attac-man'
259 PACKAGE_VERSION='0.1'
260 PACKAGE_STRING='Attac-Man 0.1'
261 PACKAGE_BUGREPORT='phro@alum.wpi.edu'
263 ac_unique_file="main.c"
264 # Factoring default headers for most tests.
265 ac_includes_default="\
266 #include <stdio.h>
267 #if HAVE_SYS_TYPES_H
268 # include <sys/types.h>
269 #endif
270 #if HAVE_SYS_STAT_H
271 # include <sys/stat.h>
272 #endif
273 #if STDC_HEADERS
274 # include <stdlib.h>
275 # include <stddef.h>
276 #else
277 # if HAVE_STDLIB_H
278 # include <stdlib.h>
279 # endif
280 #endif
281 #if HAVE_STRING_H
282 # if !STDC_HEADERS && HAVE_MEMORY_H
283 # include <memory.h>
284 # endif
285 # include <string.h>
286 #endif
287 #if HAVE_STRINGS_H
288 # include <strings.h>
289 #endif
290 #if HAVE_INTTYPES_H
291 # include <inttypes.h>
292 #else
293 # if HAVE_STDINT_H
294 # include <stdint.h>
295 # endif
296 #endif
297 #if HAVE_UNISTD_H
298 # include <unistd.h>
299 #endif"
302 # Initialize some variables set by options.
303 ac_init_help=
304 ac_init_version=false
305 # The variables have the same names as the options, with
306 # dashes changed to underlines.
307 cache_file=/dev/null
308 exec_prefix=NONE
309 no_create=
310 no_recursion=
311 prefix=NONE
312 program_prefix=NONE
313 program_suffix=NONE
314 program_transform_name=s,x,x,
315 silent=
316 site=
317 srcdir=
318 verbose=
319 x_includes=NONE
320 x_libraries=NONE
322 # Installation directory options.
323 # These are left unexpanded so users can "make install exec_prefix=/foo"
324 # and all the variables that are supposed to be based on exec_prefix
325 # by default will actually change.
326 # Use braces instead of parens because sh, perl, etc. also accept them.
327 bindir='${exec_prefix}/bin'
328 sbindir='${exec_prefix}/sbin'
329 libexecdir='${exec_prefix}/libexec'
330 datadir='${prefix}/share'
331 sysconfdir='${prefix}/etc'
332 sharedstatedir='${prefix}/com'
333 localstatedir='${prefix}/var'
334 libdir='${exec_prefix}/lib'
335 includedir='${prefix}/include'
336 oldincludedir='/usr/include'
337 infodir='${prefix}/info'
338 mandir='${prefix}/man'
340 ac_prev=
341 for ac_option
343 # If the previous option needs an argument, assign it.
344 if test -n "$ac_prev"; then
345 eval "$ac_prev=\$ac_option"
346 ac_prev=
347 continue
350 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
352 # Accept the important Cygnus configure options, so we can diagnose typos.
354 case $ac_option in
356 -bindir | --bindir | --bindi | --bind | --bin | --bi)
357 ac_prev=bindir ;;
358 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
359 bindir=$ac_optarg ;;
361 -build | --build | --buil | --bui | --bu)
362 ac_prev=build_alias ;;
363 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
364 build_alias=$ac_optarg ;;
366 -cache-file | --cache-file | --cache-fil | --cache-fi \
367 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
368 ac_prev=cache_file ;;
369 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
370 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
371 cache_file=$ac_optarg ;;
373 --config-cache | -C)
374 cache_file=config.cache ;;
376 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
377 ac_prev=datadir ;;
378 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
379 | --da=*)
380 datadir=$ac_optarg ;;
382 -disable-* | --disable-*)
383 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
384 # Reject names that are not valid shell variable names.
385 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
386 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
387 { (exit 1); exit 1; }; }
388 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
389 eval "enable_$ac_feature=no" ;;
391 -enable-* | --enable-*)
392 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
393 # Reject names that are not valid shell variable names.
394 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
395 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
396 { (exit 1); exit 1; }; }
397 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
398 case $ac_option in
399 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
400 *) ac_optarg=yes ;;
401 esac
402 eval "enable_$ac_feature='$ac_optarg'" ;;
404 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
405 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
406 | --exec | --exe | --ex)
407 ac_prev=exec_prefix ;;
408 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
409 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
410 | --exec=* | --exe=* | --ex=*)
411 exec_prefix=$ac_optarg ;;
413 -gas | --gas | --ga | --g)
414 # Obsolete; use --with-gas.
415 with_gas=yes ;;
417 -help | --help | --hel | --he | -h)
418 ac_init_help=long ;;
419 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
420 ac_init_help=recursive ;;
421 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
422 ac_init_help=short ;;
424 -host | --host | --hos | --ho)
425 ac_prev=host_alias ;;
426 -host=* | --host=* | --hos=* | --ho=*)
427 host_alias=$ac_optarg ;;
429 -includedir | --includedir | --includedi | --included | --include \
430 | --includ | --inclu | --incl | --inc)
431 ac_prev=includedir ;;
432 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
433 | --includ=* | --inclu=* | --incl=* | --inc=*)
434 includedir=$ac_optarg ;;
436 -infodir | --infodir | --infodi | --infod | --info | --inf)
437 ac_prev=infodir ;;
438 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
439 infodir=$ac_optarg ;;
441 -libdir | --libdir | --libdi | --libd)
442 ac_prev=libdir ;;
443 -libdir=* | --libdir=* | --libdi=* | --libd=*)
444 libdir=$ac_optarg ;;
446 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
447 | --libexe | --libex | --libe)
448 ac_prev=libexecdir ;;
449 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
450 | --libexe=* | --libex=* | --libe=*)
451 libexecdir=$ac_optarg ;;
453 -localstatedir | --localstatedir | --localstatedi | --localstated \
454 | --localstate | --localstat | --localsta | --localst \
455 | --locals | --local | --loca | --loc | --lo)
456 ac_prev=localstatedir ;;
457 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
458 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
459 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
460 localstatedir=$ac_optarg ;;
462 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
463 ac_prev=mandir ;;
464 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
465 mandir=$ac_optarg ;;
467 -nfp | --nfp | --nf)
468 # Obsolete; use --without-fp.
469 with_fp=no ;;
471 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
472 | --no-cr | --no-c | -n)
473 no_create=yes ;;
475 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
476 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
477 no_recursion=yes ;;
479 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
480 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
481 | --oldin | --oldi | --old | --ol | --o)
482 ac_prev=oldincludedir ;;
483 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
484 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
485 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
486 oldincludedir=$ac_optarg ;;
488 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
489 ac_prev=prefix ;;
490 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
491 prefix=$ac_optarg ;;
493 -program-prefix | --program-prefix | --program-prefi | --program-pref \
494 | --program-pre | --program-pr | --program-p)
495 ac_prev=program_prefix ;;
496 -program-prefix=* | --program-prefix=* | --program-prefi=* \
497 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
498 program_prefix=$ac_optarg ;;
500 -program-suffix | --program-suffix | --program-suffi | --program-suff \
501 | --program-suf | --program-su | --program-s)
502 ac_prev=program_suffix ;;
503 -program-suffix=* | --program-suffix=* | --program-suffi=* \
504 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
505 program_suffix=$ac_optarg ;;
507 -program-transform-name | --program-transform-name \
508 | --program-transform-nam | --program-transform-na \
509 | --program-transform-n | --program-transform- \
510 | --program-transform | --program-transfor \
511 | --program-transfo | --program-transf \
512 | --program-trans | --program-tran \
513 | --progr-tra | --program-tr | --program-t)
514 ac_prev=program_transform_name ;;
515 -program-transform-name=* | --program-transform-name=* \
516 | --program-transform-nam=* | --program-transform-na=* \
517 | --program-transform-n=* | --program-transform-=* \
518 | --program-transform=* | --program-transfor=* \
519 | --program-transfo=* | --program-transf=* \
520 | --program-trans=* | --program-tran=* \
521 | --progr-tra=* | --program-tr=* | --program-t=*)
522 program_transform_name=$ac_optarg ;;
524 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
525 | -silent | --silent | --silen | --sile | --sil)
526 silent=yes ;;
528 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
529 ac_prev=sbindir ;;
530 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
531 | --sbi=* | --sb=*)
532 sbindir=$ac_optarg ;;
534 -sharedstatedir | --sharedstatedir | --sharedstatedi \
535 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
536 | --sharedst | --shareds | --shared | --share | --shar \
537 | --sha | --sh)
538 ac_prev=sharedstatedir ;;
539 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
540 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
541 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
542 | --sha=* | --sh=*)
543 sharedstatedir=$ac_optarg ;;
545 -site | --site | --sit)
546 ac_prev=site ;;
547 -site=* | --site=* | --sit=*)
548 site=$ac_optarg ;;
550 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
551 ac_prev=srcdir ;;
552 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
553 srcdir=$ac_optarg ;;
555 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
556 | --syscon | --sysco | --sysc | --sys | --sy)
557 ac_prev=sysconfdir ;;
558 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
559 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
560 sysconfdir=$ac_optarg ;;
562 -target | --target | --targe | --targ | --tar | --ta | --t)
563 ac_prev=target_alias ;;
564 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
565 target_alias=$ac_optarg ;;
567 -v | -verbose | --verbose | --verbos | --verbo | --verb)
568 verbose=yes ;;
570 -version | --version | --versio | --versi | --vers | -V)
571 ac_init_version=: ;;
573 -with-* | --with-*)
574 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
575 # Reject names that are not valid shell variable names.
576 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
577 { echo "$as_me: error: invalid package name: $ac_package" >&2
578 { (exit 1); exit 1; }; }
579 ac_package=`echo $ac_package| sed 's/-/_/g'`
580 case $ac_option in
581 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
582 *) ac_optarg=yes ;;
583 esac
584 eval "with_$ac_package='$ac_optarg'" ;;
586 -without-* | --without-*)
587 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package | sed 's/-/_/g'`
593 eval "with_$ac_package=no" ;;
595 --x)
596 # Obsolete; use --with-x.
597 with_x=yes ;;
599 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
600 | --x-incl | --x-inc | --x-in | --x-i)
601 ac_prev=x_includes ;;
602 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
603 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
604 x_includes=$ac_optarg ;;
606 -x-libraries | --x-libraries | --x-librarie | --x-librari \
607 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
608 ac_prev=x_libraries ;;
609 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
610 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
611 x_libraries=$ac_optarg ;;
613 -*) { echo "$as_me: error: unrecognized option: $ac_option
614 Try \`$0 --help' for more information." >&2
615 { (exit 1); exit 1; }; }
618 *=*)
619 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
620 # Reject names that are not valid shell variable names.
621 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
622 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
623 { (exit 1); exit 1; }; }
624 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
625 eval "$ac_envvar='$ac_optarg'"
626 export $ac_envvar ;;
629 # FIXME: should be removed in autoconf 3.0.
630 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
631 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
632 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
633 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
636 esac
637 done
639 if test -n "$ac_prev"; then
640 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
641 { echo "$as_me: error: missing argument to $ac_option" >&2
642 { (exit 1); exit 1; }; }
645 # Be sure to have absolute paths.
646 for ac_var in exec_prefix prefix
648 eval ac_val=$`echo $ac_var`
649 case $ac_val in
650 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
651 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
652 { (exit 1); exit 1; }; };;
653 esac
654 done
656 # Be sure to have absolute paths.
657 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
658 localstatedir libdir includedir oldincludedir infodir mandir
660 eval ac_val=$`echo $ac_var`
661 case $ac_val in
662 [\\/$]* | ?:[\\/]* ) ;;
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
668 # There might be people who depend on the old broken behavior: `$host'
669 # used to hold the argument of --host etc.
670 # FIXME: To remove some day.
671 build=$build_alias
672 host=$host_alias
673 target=$target_alias
675 # FIXME: To remove some day.
676 if test "x$host_alias" != x; then
677 if test "x$build_alias" = x; then
678 cross_compiling=maybe
679 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
680 If a cross compiler is detected then cross compile mode will be used." >&2
681 elif test "x$build_alias" != "x$host_alias"; then
682 cross_compiling=yes
686 ac_tool_prefix=
687 test -n "$host_alias" && ac_tool_prefix=$host_alias-
689 test "$silent" = yes && exec 6>/dev/null
692 # Find the source files, if location was not specified.
693 if test -z "$srcdir"; then
694 ac_srcdir_defaulted=yes
695 # Try the directory containing this script, then its parent.
696 ac_confdir=`(dirname "$0") 2>/dev/null ||
697 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
698 X"$0" : 'X\(//\)[^/]' \| \
699 X"$0" : 'X\(//\)$' \| \
700 X"$0" : 'X\(/\)' \| \
701 . : '\(.\)' 2>/dev/null ||
702 echo X"$0" |
703 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
704 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
705 /^X\(\/\/\)$/{ s//\1/; q; }
706 /^X\(\/\).*/{ s//\1/; q; }
707 s/.*/./; q'`
708 srcdir=$ac_confdir
709 if test ! -r $srcdir/$ac_unique_file; then
710 srcdir=..
712 else
713 ac_srcdir_defaulted=no
715 if test ! -r $srcdir/$ac_unique_file; then
716 if test "$ac_srcdir_defaulted" = yes; then
717 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
718 { (exit 1); exit 1; }; }
719 else
720 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
721 { (exit 1); exit 1; }; }
724 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
725 ac_env_build_alias_set=${build_alias+set}
726 ac_env_build_alias_value=$build_alias
727 ac_cv_env_build_alias_set=${build_alias+set}
728 ac_cv_env_build_alias_value=$build_alias
729 ac_env_host_alias_set=${host_alias+set}
730 ac_env_host_alias_value=$host_alias
731 ac_cv_env_host_alias_set=${host_alias+set}
732 ac_cv_env_host_alias_value=$host_alias
733 ac_env_target_alias_set=${target_alias+set}
734 ac_env_target_alias_value=$target_alias
735 ac_cv_env_target_alias_set=${target_alias+set}
736 ac_cv_env_target_alias_value=$target_alias
737 ac_env_CC_set=${CC+set}
738 ac_env_CC_value=$CC
739 ac_cv_env_CC_set=${CC+set}
740 ac_cv_env_CC_value=$CC
741 ac_env_CFLAGS_set=${CFLAGS+set}
742 ac_env_CFLAGS_value=$CFLAGS
743 ac_cv_env_CFLAGS_set=${CFLAGS+set}
744 ac_cv_env_CFLAGS_value=$CFLAGS
745 ac_env_LDFLAGS_set=${LDFLAGS+set}
746 ac_env_LDFLAGS_value=$LDFLAGS
747 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
748 ac_cv_env_LDFLAGS_value=$LDFLAGS
749 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
750 ac_env_CPPFLAGS_value=$CPPFLAGS
751 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
752 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
753 ac_env_CPP_set=${CPP+set}
754 ac_env_CPP_value=$CPP
755 ac_cv_env_CPP_set=${CPP+set}
756 ac_cv_env_CPP_value=$CPP
759 # Report the --help message.
761 if test "$ac_init_help" = "long"; then
762 # Omit some internal or obsolete options to make the list less imposing.
763 # This message is too long to be a string in the A/UX 3.1 sh.
764 cat <<_ACEOF
765 \`configure' configures Pacman Arena 0.1 to adapt to many kinds of systems.
767 Usage: $0 [OPTION]... [VAR=VALUE]...
769 To assign environment variables (e.g., CC, CFLAGS...), specify them as
770 VAR=VALUE. See below for descriptions of some of the useful variables.
772 Defaults for the options are specified in brackets.
774 Configuration:
775 -h, --help display this help and exit
776 --help=short display options specific to this package
777 --help=recursive display the short help of all the included packages
778 -V, --version display version information and exit
779 -q, --quiet, --silent do not print \`checking...' messages
780 --cache-file=FILE cache test results in FILE [disabled]
781 -C, --config-cache alias for \`--cache-file=config.cache'
782 -n, --no-create do not create output files
783 --srcdir=DIR find the sources in DIR [configure dir or \`..']
785 _ACEOF
787 cat <<_ACEOF
788 Installation directories:
789 --prefix=PREFIX install architecture-independent files in PREFIX
790 [$ac_default_prefix]
791 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
792 [PREFIX]
794 By default, \`make install' will install all the files in
795 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
796 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
797 for instance \`--prefix=\$HOME'.
799 For better control, use the options below.
801 Fine tuning of the installation directories:
802 --bindir=DIR user executables [EPREFIX/bin]
803 --sbindir=DIR system admin executables [EPREFIX/sbin]
804 --libexecdir=DIR program executables [EPREFIX/libexec]
805 --datadir=DIR read-only architecture-independent data [PREFIX/share]
806 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
807 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
808 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
809 --libdir=DIR object code libraries [EPREFIX/lib]
810 --includedir=DIR C header files [PREFIX/include]
811 --oldincludedir=DIR C header files for non-gcc [/usr/include]
812 --infodir=DIR info documentation [PREFIX/info]
813 --mandir=DIR man documentation [PREFIX/man]
814 _ACEOF
816 cat <<\_ACEOF
818 X features:
819 --x-includes=DIR X include files are in DIR
820 --x-libraries=DIR X library files are in DIR
822 System types:
823 --build=BUILD configure for building on BUILD [guessed]
824 --host=HOST cross-compile to build programs to run on HOST [BUILD]
825 --target=TARGET configure for building compilers for TARGET [HOST]
826 _ACEOF
829 if test -n "$ac_init_help"; then
830 case $ac_init_help in
831 short | recursive ) echo "Configuration of Pacman Arena 0.1:";;
832 esac
833 cat <<\_ACEOF
835 Optional Features:
836 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
837 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
838 --enable-optimizations Enable compiler optimizations (disable debugging)
839 --disable-sdltest Do not try to compile and run a test SDL program
841 Optional Packages:
842 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
843 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
844 --with-x use the X Window System
845 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
846 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
848 Some influential environment variables:
849 CC C compiler command
850 CFLAGS C compiler flags
851 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
852 nonstandard directory <lib dir>
853 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
854 headers in a nonstandard directory <include dir>
855 CPP C preprocessor
857 Use these variables to override the choices made by `configure' or to help
858 it to find libraries and programs with nonstandard names/locations.
860 Report bugs to <subtil@student.dei.uc.pt>.
861 _ACEOF
864 if test "$ac_init_help" = "recursive"; then
865 # If there are subdirs, report their specific --help.
866 ac_popdir=`pwd`
867 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
868 test -d $ac_dir || continue
869 ac_builddir=.
871 if test "$ac_dir" != .; then
872 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
873 # A "../" for each directory in $ac_dir_suffix.
874 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
875 else
876 ac_dir_suffix= ac_top_builddir=
879 case $srcdir in
880 .) # No --srcdir option. We are building in place.
881 ac_srcdir=.
882 if test -z "$ac_top_builddir"; then
883 ac_top_srcdir=.
884 else
885 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
886 fi ;;
887 [\\/]* | ?:[\\/]* ) # Absolute path.
888 ac_srcdir=$srcdir$ac_dir_suffix;
889 ac_top_srcdir=$srcdir ;;
890 *) # Relative path.
891 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
892 ac_top_srcdir=$ac_top_builddir$srcdir ;;
893 esac
894 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
895 # absolute.
896 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
897 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
898 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
899 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
901 cd $ac_dir
902 # Check for guested configure; otherwise get Cygnus style configure.
903 if test -f $ac_srcdir/configure.gnu; then
904 echo
905 $SHELL $ac_srcdir/configure.gnu --help=recursive
906 elif test -f $ac_srcdir/configure; then
907 echo
908 $SHELL $ac_srcdir/configure --help=recursive
909 elif test -f $ac_srcdir/configure.ac ||
910 test -f $ac_srcdir/configure.in; then
911 echo
912 $ac_configure --help
913 else
914 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
916 cd $ac_popdir
917 done
920 test -n "$ac_init_help" && exit 0
921 if $ac_init_version; then
922 cat <<\_ACEOF
923 Pacman Arena configure 0.1
924 generated by GNU Autoconf 2.53
926 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
927 Free Software Foundation, Inc.
928 This configure script is free software; the Free Software Foundation
929 gives unlimited permission to copy, distribute and modify it.
930 _ACEOF
931 exit 0
933 exec 5>config.log
934 cat >&5 <<_ACEOF
935 This file contains any messages produced by compilers while
936 running configure, to aid debugging if configure makes a mistake.
938 It was created by Pacman Arena $as_me 0.1, which was
939 generated by GNU Autoconf 2.53. Invocation command line was
941 $ $0 $@
943 _ACEOF
945 cat <<_ASUNAME
946 ## --------- ##
947 ## Platform. ##
948 ## --------- ##
950 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
951 uname -m = `(uname -m) 2>/dev/null || echo unknown`
952 uname -r = `(uname -r) 2>/dev/null || echo unknown`
953 uname -s = `(uname -s) 2>/dev/null || echo unknown`
954 uname -v = `(uname -v) 2>/dev/null || echo unknown`
956 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
957 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
959 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
960 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
961 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
962 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
963 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
964 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
965 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
967 _ASUNAME
969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
970 for as_dir in $PATH
972 IFS=$as_save_IFS
973 test -z "$as_dir" && as_dir=.
974 echo "PATH: $as_dir"
975 done
977 } >&5
979 cat >&5 <<_ACEOF
982 ## ----------- ##
983 ## Core tests. ##
984 ## ----------- ##
986 _ACEOF
989 # Keep a trace of the command line.
990 # Strip out --no-create and --no-recursion so they do not pile up.
991 # Also quote any args containing shell meta-characters.
992 ac_configure_args=
993 ac_sep=
994 for ac_arg
996 case $ac_arg in
997 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
998 | --no-cr | --no-c | -n ) continue ;;
999 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1000 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1001 continue ;;
1002 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1003 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1004 esac
1005 case " $ac_configure_args " in
1006 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1007 *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1008 ac_sep=" " ;;
1009 esac
1010 # Get rid of the leading space.
1011 done
1013 # When interrupted or exit'd, cleanup temporary files, and complete
1014 # config.log. We remove comments because anyway the quotes in there
1015 # would cause problems or look ugly.
1016 # WARNING: Be sure not to use single quotes in there, as some shells,
1017 # such as our DU 5.0 friend, will then `close' the trap.
1018 trap 'exit_status=$?
1019 # Save into config.log some information that might help in debugging.
1021 echo
1022 cat <<\_ASBOX
1023 ## ---------------- ##
1024 ## Cache variables. ##
1025 ## ---------------- ##
1026 _ASBOX
1027 echo
1028 # The following way of writing the cache mishandles newlines in values,
1030 (set) 2>&1 |
1031 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1032 *ac_space=\ *)
1033 sed -n \
1034 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1035 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1038 sed -n \
1039 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1041 esac;
1043 echo
1044 if test -s confdefs.h; then
1045 cat <<\_ASBOX
1046 ## ----------- ##
1047 ## confdefs.h. ##
1048 ## ----------- ##
1049 _ASBOX
1050 echo
1051 sed "/^$/d" confdefs.h
1052 echo
1054 test "$ac_signal" != 0 &&
1055 echo "$as_me: caught signal $ac_signal"
1056 echo "$as_me: exit $exit_status"
1057 } >&5
1058 rm -f core core.* *.core &&
1059 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1060 exit $exit_status
1062 for ac_signal in 1 2 13 15; do
1063 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1064 done
1065 ac_signal=0
1067 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1068 rm -rf conftest* confdefs.h
1069 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1070 echo >confdefs.h
1072 # Predefined preprocessor variables.
1074 cat >>confdefs.h <<_ACEOF
1075 #define PACKAGE_NAME "$PACKAGE_NAME"
1076 _ACEOF
1079 cat >>confdefs.h <<_ACEOF
1080 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1081 _ACEOF
1084 cat >>confdefs.h <<_ACEOF
1085 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1086 _ACEOF
1089 cat >>confdefs.h <<_ACEOF
1090 #define PACKAGE_STRING "$PACKAGE_STRING"
1091 _ACEOF
1094 cat >>confdefs.h <<_ACEOF
1095 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1096 _ACEOF
1099 # Let the site file select an alternate cache file if it wants to.
1100 # Prefer explicitly selected file to automatically selected ones.
1101 if test -z "$CONFIG_SITE"; then
1102 if test "x$prefix" != xNONE; then
1103 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1104 else
1105 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1108 for ac_site_file in $CONFIG_SITE; do
1109 if test -r "$ac_site_file"; then
1110 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1111 echo "$as_me: loading site script $ac_site_file" >&6;}
1112 sed 's/^/| /' "$ac_site_file" >&5
1113 . "$ac_site_file"
1115 done
1117 if test -r "$cache_file"; then
1118 # Some versions of bash will fail to source /dev/null (special
1119 # files actually), so we avoid doing that.
1120 if test -f "$cache_file"; then
1121 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1122 echo "$as_me: loading cache $cache_file" >&6;}
1123 case $cache_file in
1124 [\\/]* | ?:[\\/]* ) . $cache_file;;
1125 *) . ./$cache_file;;
1126 esac
1128 else
1129 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1130 echo "$as_me: creating cache $cache_file" >&6;}
1131 >$cache_file
1134 # Check that the precious variables saved in the cache have kept the same
1135 # value.
1136 ac_cache_corrupted=false
1137 for ac_var in `(set) 2>&1 |
1138 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1139 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1140 eval ac_new_set=\$ac_env_${ac_var}_set
1141 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1142 eval ac_new_val="\$ac_env_${ac_var}_value"
1143 case $ac_old_set,$ac_new_set in
1144 set,)
1145 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1146 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1147 ac_cache_corrupted=: ;;
1148 ,set)
1149 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1150 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1151 ac_cache_corrupted=: ;;
1152 ,);;
1154 if test "x$ac_old_val" != "x$ac_new_val"; then
1155 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1156 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1157 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1158 echo "$as_me: former value: $ac_old_val" >&2;}
1159 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1160 echo "$as_me: current value: $ac_new_val" >&2;}
1161 ac_cache_corrupted=:
1162 fi;;
1163 esac
1164 # Pass precious variables to config.status.
1165 if test "$ac_new_set" = set; then
1166 case $ac_new_val in
1167 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1168 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1169 *) ac_arg=$ac_var=$ac_new_val ;;
1170 esac
1171 case " $ac_configure_args " in
1172 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1173 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1174 esac
1176 done
1177 if $ac_cache_corrupted; then
1178 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1179 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1180 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1181 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1182 { (exit 1); exit 1; }; }
1185 ac_ext=c
1186 ac_cpp='$CPP $CPPFLAGS'
1187 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1188 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1189 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1217 ac_config_headers="$ac_config_headers config.h"
1220 ac_aux_dir=
1221 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1222 if test -f $ac_dir/install-sh; then
1223 ac_aux_dir=$ac_dir
1224 ac_install_sh="$ac_aux_dir/install-sh -c"
1225 break
1226 elif test -f $ac_dir/install.sh; then
1227 ac_aux_dir=$ac_dir
1228 ac_install_sh="$ac_aux_dir/install.sh -c"
1229 break
1230 elif test -f $ac_dir/shtool; then
1231 ac_aux_dir=$ac_dir
1232 ac_install_sh="$ac_aux_dir/shtool install -c"
1233 break
1235 done
1236 if test -z "$ac_aux_dir"; then
1237 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1238 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1239 { (exit 1); exit 1; }; }
1241 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1242 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1243 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1245 # Make sure we can run config.sub.
1246 $ac_config_sub sun4 >/dev/null 2>&1 ||
1247 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1248 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1249 { (exit 1); exit 1; }; }
1251 echo "$as_me:$LINENO: checking build system type" >&5
1252 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1253 if test "${ac_cv_build+set}" = set; then
1254 echo $ECHO_N "(cached) $ECHO_C" >&6
1255 else
1256 ac_cv_build_alias=$build_alias
1257 test -z "$ac_cv_build_alias" &&
1258 ac_cv_build_alias=`$ac_config_guess`
1259 test -z "$ac_cv_build_alias" &&
1260 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1261 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1262 { (exit 1); exit 1; }; }
1263 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1264 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1265 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1266 { (exit 1); exit 1; }; }
1269 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1270 echo "${ECHO_T}$ac_cv_build" >&6
1271 build=$ac_cv_build
1272 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1273 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1274 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1277 echo "$as_me:$LINENO: checking host system type" >&5
1278 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1279 if test "${ac_cv_host+set}" = set; then
1280 echo $ECHO_N "(cached) $ECHO_C" >&6
1281 else
1282 ac_cv_host_alias=$host_alias
1283 test -z "$ac_cv_host_alias" &&
1284 ac_cv_host_alias=$ac_cv_build_alias
1285 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1286 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1287 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1288 { (exit 1); exit 1; }; }
1291 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1292 echo "${ECHO_T}$ac_cv_host" >&6
1293 host=$ac_cv_host
1294 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1295 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1296 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1299 echo "$as_me:$LINENO: checking target system type" >&5
1300 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1301 if test "${ac_cv_target+set}" = set; then
1302 echo $ECHO_N "(cached) $ECHO_C" >&6
1303 else
1304 ac_cv_target_alias=$target_alias
1305 test "x$ac_cv_target_alias" = "x" &&
1306 ac_cv_target_alias=$ac_cv_host_alias
1307 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1308 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1309 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1310 { (exit 1); exit 1; }; }
1313 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1314 echo "${ECHO_T}$ac_cv_target" >&6
1315 target=$ac_cv_target
1316 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1317 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1318 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1321 # The aliases save the names the user supplied, while $host etc.
1322 # will get canonicalized.
1323 test -n "$target_alias" &&
1324 test "$program_prefix$program_suffix$program_transform_name" = \
1325 NONENONEs,x,x, &&
1326 program_prefix=${target_alias}-
1328 # sanitize CFLAGS
1329 if test "x${CFLAGS-notset}" = "xnotset"; then
1330 CFLAGS=" "
1331 export CFLAGS
1334 # Check whether --enable-optimizations or --disable-optimizations was given.
1335 if test "${enable_optimizations+set}" = set; then
1336 enableval="$enable_optimizations"
1337 CFLAGS="$CFLAGS -Wall -Wextra -Wstrict-prototypes -Wshadow -O2"
1338 else
1339 CFLAGS="$CFLAGS -Wall -Wextra -Wstrict-prototypes -Wshadow -g"
1342 # Checks for programs.
1343 ac_ext=c
1344 ac_cpp='$CPP $CPPFLAGS'
1345 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1346 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1347 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1348 if test -n "$ac_tool_prefix"; then
1349 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1350 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1351 echo "$as_me:$LINENO: checking for $ac_word" >&5
1352 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1353 if test "${ac_cv_prog_CC+set}" = set; then
1354 echo $ECHO_N "(cached) $ECHO_C" >&6
1355 else
1356 if test -n "$CC"; then
1357 ac_cv_prog_CC="$CC" # Let the user override the test.
1358 else
1359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1360 for as_dir in $PATH
1362 IFS=$as_save_IFS
1363 test -z "$as_dir" && as_dir=.
1364 for ac_exec_ext in '' $ac_executable_extensions; do
1365 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1366 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1367 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1368 break 2
1370 done
1371 done
1375 CC=$ac_cv_prog_CC
1376 if test -n "$CC"; then
1377 echo "$as_me:$LINENO: result: $CC" >&5
1378 echo "${ECHO_T}$CC" >&6
1379 else
1380 echo "$as_me:$LINENO: result: no" >&5
1381 echo "${ECHO_T}no" >&6
1385 if test -z "$ac_cv_prog_CC"; then
1386 ac_ct_CC=$CC
1387 # Extract the first word of "gcc", so it can be a program name with args.
1388 set dummy gcc; ac_word=$2
1389 echo "$as_me:$LINENO: checking for $ac_word" >&5
1390 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1391 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1392 echo $ECHO_N "(cached) $ECHO_C" >&6
1393 else
1394 if test -n "$ac_ct_CC"; then
1395 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1396 else
1397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1398 for as_dir in $PATH
1400 IFS=$as_save_IFS
1401 test -z "$as_dir" && as_dir=.
1402 for ac_exec_ext in '' $ac_executable_extensions; do
1403 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1404 ac_cv_prog_ac_ct_CC="gcc"
1405 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1406 break 2
1408 done
1409 done
1413 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1414 if test -n "$ac_ct_CC"; then
1415 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1416 echo "${ECHO_T}$ac_ct_CC" >&6
1417 else
1418 echo "$as_me:$LINENO: result: no" >&5
1419 echo "${ECHO_T}no" >&6
1422 CC=$ac_ct_CC
1423 else
1424 CC="$ac_cv_prog_CC"
1427 if test -z "$CC"; then
1428 if test -n "$ac_tool_prefix"; then
1429 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1430 set dummy ${ac_tool_prefix}cc; ac_word=$2
1431 echo "$as_me:$LINENO: checking for $ac_word" >&5
1432 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1433 if test "${ac_cv_prog_CC+set}" = set; then
1434 echo $ECHO_N "(cached) $ECHO_C" >&6
1435 else
1436 if test -n "$CC"; then
1437 ac_cv_prog_CC="$CC" # Let the user override the test.
1438 else
1439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1440 for as_dir in $PATH
1442 IFS=$as_save_IFS
1443 test -z "$as_dir" && as_dir=.
1444 for ac_exec_ext in '' $ac_executable_extensions; do
1445 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1446 ac_cv_prog_CC="${ac_tool_prefix}cc"
1447 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1448 break 2
1450 done
1451 done
1455 CC=$ac_cv_prog_CC
1456 if test -n "$CC"; then
1457 echo "$as_me:$LINENO: result: $CC" >&5
1458 echo "${ECHO_T}$CC" >&6
1459 else
1460 echo "$as_me:$LINENO: result: no" >&5
1461 echo "${ECHO_T}no" >&6
1465 if test -z "$ac_cv_prog_CC"; then
1466 ac_ct_CC=$CC
1467 # Extract the first word of "cc", so it can be a program name with args.
1468 set dummy cc; ac_word=$2
1469 echo "$as_me:$LINENO: checking for $ac_word" >&5
1470 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1471 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1472 echo $ECHO_N "(cached) $ECHO_C" >&6
1473 else
1474 if test -n "$ac_ct_CC"; then
1475 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1476 else
1477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1478 for as_dir in $PATH
1480 IFS=$as_save_IFS
1481 test -z "$as_dir" && as_dir=.
1482 for ac_exec_ext in '' $ac_executable_extensions; do
1483 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1484 ac_cv_prog_ac_ct_CC="cc"
1485 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1486 break 2
1488 done
1489 done
1493 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1494 if test -n "$ac_ct_CC"; then
1495 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1496 echo "${ECHO_T}$ac_ct_CC" >&6
1497 else
1498 echo "$as_me:$LINENO: result: no" >&5
1499 echo "${ECHO_T}no" >&6
1502 CC=$ac_ct_CC
1503 else
1504 CC="$ac_cv_prog_CC"
1508 if test -z "$CC"; then
1509 # Extract the first word of "cc", so it can be a program name with args.
1510 set dummy cc; ac_word=$2
1511 echo "$as_me:$LINENO: checking for $ac_word" >&5
1512 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1513 if test "${ac_cv_prog_CC+set}" = set; then
1514 echo $ECHO_N "(cached) $ECHO_C" >&6
1515 else
1516 if test -n "$CC"; then
1517 ac_cv_prog_CC="$CC" # Let the user override the test.
1518 else
1519 ac_prog_rejected=no
1520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1521 for as_dir in $PATH
1523 IFS=$as_save_IFS
1524 test -z "$as_dir" && as_dir=.
1525 for ac_exec_ext in '' $ac_executable_extensions; do
1526 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1527 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1528 ac_prog_rejected=yes
1529 continue
1531 ac_cv_prog_CC="cc"
1532 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1533 break 2
1535 done
1536 done
1538 if test $ac_prog_rejected = yes; then
1539 # We found a bogon in the path, so make sure we never use it.
1540 set dummy $ac_cv_prog_CC
1541 shift
1542 if test $# != 0; then
1543 # We chose a different compiler from the bogus one.
1544 # However, it has the same basename, so the bogon will be chosen
1545 # first if we set CC to just the basename; use the full file name.
1546 shift
1547 set dummy "$as_dir/$ac_word" ${1+"$@"}
1548 shift
1549 ac_cv_prog_CC="$@"
1554 CC=$ac_cv_prog_CC
1555 if test -n "$CC"; then
1556 echo "$as_me:$LINENO: result: $CC" >&5
1557 echo "${ECHO_T}$CC" >&6
1558 else
1559 echo "$as_me:$LINENO: result: no" >&5
1560 echo "${ECHO_T}no" >&6
1564 if test -z "$CC"; then
1565 if test -n "$ac_tool_prefix"; then
1566 for ac_prog in cl
1568 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1569 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1570 echo "$as_me:$LINENO: checking for $ac_word" >&5
1571 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1572 if test "${ac_cv_prog_CC+set}" = set; then
1573 echo $ECHO_N "(cached) $ECHO_C" >&6
1574 else
1575 if test -n "$CC"; then
1576 ac_cv_prog_CC="$CC" # Let the user override the test.
1577 else
1578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1579 for as_dir in $PATH
1581 IFS=$as_save_IFS
1582 test -z "$as_dir" && as_dir=.
1583 for ac_exec_ext in '' $ac_executable_extensions; do
1584 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1585 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1586 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1587 break 2
1589 done
1590 done
1594 CC=$ac_cv_prog_CC
1595 if test -n "$CC"; then
1596 echo "$as_me:$LINENO: result: $CC" >&5
1597 echo "${ECHO_T}$CC" >&6
1598 else
1599 echo "$as_me:$LINENO: result: no" >&5
1600 echo "${ECHO_T}no" >&6
1603 test -n "$CC" && break
1604 done
1606 if test -z "$CC"; then
1607 ac_ct_CC=$CC
1608 for ac_prog in cl
1610 # Extract the first word of "$ac_prog", so it can be a program name with args.
1611 set dummy $ac_prog; ac_word=$2
1612 echo "$as_me:$LINENO: checking for $ac_word" >&5
1613 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1614 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1615 echo $ECHO_N "(cached) $ECHO_C" >&6
1616 else
1617 if test -n "$ac_ct_CC"; then
1618 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1619 else
1620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1621 for as_dir in $PATH
1623 IFS=$as_save_IFS
1624 test -z "$as_dir" && as_dir=.
1625 for ac_exec_ext in '' $ac_executable_extensions; do
1626 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1627 ac_cv_prog_ac_ct_CC="$ac_prog"
1628 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1629 break 2
1631 done
1632 done
1636 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1637 if test -n "$ac_ct_CC"; then
1638 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1639 echo "${ECHO_T}$ac_ct_CC" >&6
1640 else
1641 echo "$as_me:$LINENO: result: no" >&5
1642 echo "${ECHO_T}no" >&6
1645 test -n "$ac_ct_CC" && break
1646 done
1648 CC=$ac_ct_CC
1654 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1655 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1656 { (exit 1); exit 1; }; }
1658 # Provide some information about the compiler.
1659 echo "$as_me:$LINENO:" \
1660 "checking for C compiler version" >&5
1661 ac_compiler=`set X $ac_compile; echo $2`
1662 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1663 (eval $ac_compiler --version </dev/null >&5) 2>&5
1664 ac_status=$?
1665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1666 (exit $ac_status); }
1667 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1668 (eval $ac_compiler -v </dev/null >&5) 2>&5
1669 ac_status=$?
1670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1671 (exit $ac_status); }
1672 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1673 (eval $ac_compiler -V </dev/null >&5) 2>&5
1674 ac_status=$?
1675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1676 (exit $ac_status); }
1678 cat >conftest.$ac_ext <<_ACEOF
1679 #line $LINENO "configure"
1680 #include "confdefs.h"
1682 #ifdef F77_DUMMY_MAIN
1683 # ifdef __cplusplus
1684 extern "C"
1685 # endif
1686 int F77_DUMMY_MAIN() { return 1; }
1687 #endif
1689 main ()
1693 return 0;
1695 _ACEOF
1696 ac_clean_files_save=$ac_clean_files
1697 ac_clean_files="$ac_clean_files a.out a.exe"
1698 # Try to create an executable without -o first, disregard a.out.
1699 # It will help us diagnose broken compilers, and finding out an intuition
1700 # of exeext.
1701 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1702 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1703 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1704 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1705 (eval $ac_link_default) 2>&5
1706 ac_status=$?
1707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1708 (exit $ac_status); }; then
1709 # Find the output, starting from the most likely. This scheme is
1710 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1711 # resort.
1713 # Be careful to initialize this variable, since it used to be cached.
1714 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1715 ac_cv_exeext=
1716 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
1717 ls a.out conftest 2>/dev/null;
1718 ls a.* conftest.* 2>/dev/null`; do
1719 case $ac_file in
1720 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
1721 a.out ) # We found the default executable, but exeext='' is most
1722 # certainly right.
1723 break;;
1724 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1725 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1726 export ac_cv_exeext
1727 break;;
1728 * ) break;;
1729 esac
1730 done
1731 else
1732 echo "$as_me: failed program was:" >&5
1733 cat conftest.$ac_ext >&5
1734 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
1735 echo "$as_me: error: C compiler cannot create executables" >&2;}
1736 { (exit 77); exit 77; }; }
1739 ac_exeext=$ac_cv_exeext
1740 echo "$as_me:$LINENO: result: $ac_file" >&5
1741 echo "${ECHO_T}$ac_file" >&6
1743 # Check the compiler produces executables we can run. If not, either
1744 # the compiler is broken, or we cross compile.
1745 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1746 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1747 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1748 # If not cross compiling, check that we can run a simple program.
1749 if test "$cross_compiling" != yes; then
1750 if { ac_try='./$ac_file'
1751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1752 (eval $ac_try) 2>&5
1753 ac_status=$?
1754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1755 (exit $ac_status); }; }; then
1756 cross_compiling=no
1757 else
1758 if test "$cross_compiling" = maybe; then
1759 cross_compiling=yes
1760 else
1761 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1762 If you meant to cross compile, use \`--host'." >&5
1763 echo "$as_me: error: cannot run C compiled programs.
1764 If you meant to cross compile, use \`--host'." >&2;}
1765 { (exit 1); exit 1; }; }
1769 echo "$as_me:$LINENO: result: yes" >&5
1770 echo "${ECHO_T}yes" >&6
1772 rm -f a.out a.exe conftest$ac_cv_exeext
1773 ac_clean_files=$ac_clean_files_save
1774 # Check the compiler produces executables we can run. If not, either
1775 # the compiler is broken, or we cross compile.
1776 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1777 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1778 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1779 echo "${ECHO_T}$cross_compiling" >&6
1781 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1782 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1784 (eval $ac_link) 2>&5
1785 ac_status=$?
1786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1787 (exit $ac_status); }; then
1788 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1789 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1790 # work properly (i.e., refer to `conftest.exe'), while it won't with
1791 # `rm'.
1792 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1793 case $ac_file in
1794 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1795 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1796 export ac_cv_exeext
1797 break;;
1798 * ) break;;
1799 esac
1800 done
1801 else
1802 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
1803 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
1804 { (exit 1); exit 1; }; }
1807 rm -f conftest$ac_cv_exeext
1808 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1809 echo "${ECHO_T}$ac_cv_exeext" >&6
1811 rm -f conftest.$ac_ext
1812 EXEEXT=$ac_cv_exeext
1813 ac_exeext=$EXEEXT
1814 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1815 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1816 if test "${ac_cv_objext+set}" = set; then
1817 echo $ECHO_N "(cached) $ECHO_C" >&6
1818 else
1819 cat >conftest.$ac_ext <<_ACEOF
1820 #line $LINENO "configure"
1821 #include "confdefs.h"
1823 #ifdef F77_DUMMY_MAIN
1824 # ifdef __cplusplus
1825 extern "C"
1826 # endif
1827 int F77_DUMMY_MAIN() { return 1; }
1828 #endif
1830 main ()
1834 return 0;
1836 _ACEOF
1837 rm -f conftest.o conftest.obj
1838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1839 (eval $ac_compile) 2>&5
1840 ac_status=$?
1841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1842 (exit $ac_status); }; then
1843 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1844 case $ac_file in
1845 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1846 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1847 break;;
1848 esac
1849 done
1850 else
1851 echo "$as_me: failed program was:" >&5
1852 cat conftest.$ac_ext >&5
1853 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
1854 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
1855 { (exit 1); exit 1; }; }
1858 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1860 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1861 echo "${ECHO_T}$ac_cv_objext" >&6
1862 OBJEXT=$ac_cv_objext
1863 ac_objext=$OBJEXT
1864 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1865 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1866 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1867 echo $ECHO_N "(cached) $ECHO_C" >&6
1868 else
1869 cat >conftest.$ac_ext <<_ACEOF
1870 #line $LINENO "configure"
1871 #include "confdefs.h"
1873 #ifdef F77_DUMMY_MAIN
1874 # ifdef __cplusplus
1875 extern "C"
1876 # endif
1877 int F77_DUMMY_MAIN() { return 1; }
1878 #endif
1880 main ()
1882 #ifndef __GNUC__
1883 choke me
1884 #endif
1887 return 0;
1889 _ACEOF
1890 rm -f conftest.$ac_objext
1891 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1892 (eval $ac_compile) 2>&5
1893 ac_status=$?
1894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1895 (exit $ac_status); } &&
1896 { ac_try='test -s conftest.$ac_objext'
1897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1898 (eval $ac_try) 2>&5
1899 ac_status=$?
1900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1901 (exit $ac_status); }; }; then
1902 ac_compiler_gnu=yes
1903 else
1904 echo "$as_me: failed program was:" >&5
1905 cat conftest.$ac_ext >&5
1906 ac_compiler_gnu=no
1908 rm -f conftest.$ac_objext conftest.$ac_ext
1909 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1912 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1913 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1914 GCC=`test $ac_compiler_gnu = yes && echo yes`
1915 ac_test_CFLAGS=${CFLAGS+set}
1916 ac_save_CFLAGS=$CFLAGS
1917 CFLAGS="-g"
1918 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1919 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1920 if test "${ac_cv_prog_cc_g+set}" = set; then
1921 echo $ECHO_N "(cached) $ECHO_C" >&6
1922 else
1923 cat >conftest.$ac_ext <<_ACEOF
1924 #line $LINENO "configure"
1925 #include "confdefs.h"
1927 #ifdef F77_DUMMY_MAIN
1928 # ifdef __cplusplus
1929 extern "C"
1930 # endif
1931 int F77_DUMMY_MAIN() { return 1; }
1932 #endif
1934 main ()
1938 return 0;
1940 _ACEOF
1941 rm -f conftest.$ac_objext
1942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1943 (eval $ac_compile) 2>&5
1944 ac_status=$?
1945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1946 (exit $ac_status); } &&
1947 { ac_try='test -s conftest.$ac_objext'
1948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1949 (eval $ac_try) 2>&5
1950 ac_status=$?
1951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1952 (exit $ac_status); }; }; then
1953 ac_cv_prog_cc_g=yes
1954 else
1955 echo "$as_me: failed program was:" >&5
1956 cat conftest.$ac_ext >&5
1957 ac_cv_prog_cc_g=no
1959 rm -f conftest.$ac_objext conftest.$ac_ext
1961 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1962 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1963 if test "$ac_test_CFLAGS" = set; then
1964 CFLAGS=$ac_save_CFLAGS
1965 elif test $ac_cv_prog_cc_g = yes; then
1966 if test "$GCC" = yes; then
1967 CFLAGS="-g -O2"
1968 else
1969 CFLAGS="-g"
1971 else
1972 if test "$GCC" = yes; then
1973 CFLAGS="-O2"
1974 else
1975 CFLAGS=
1978 # Some people use a C++ compiler to compile C. Since we use `exit',
1979 # in C++ we need to declare it. In case someone uses the same compiler
1980 # for both compiling C and C++ we need to have the C++ compiler decide
1981 # the declaration of exit, since it's the most demanding environment.
1982 cat >conftest.$ac_ext <<_ACEOF
1983 #ifndef __cplusplus
1984 choke me
1985 #endif
1986 _ACEOF
1987 rm -f conftest.$ac_objext
1988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1989 (eval $ac_compile) 2>&5
1990 ac_status=$?
1991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1992 (exit $ac_status); } &&
1993 { ac_try='test -s conftest.$ac_objext'
1994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1995 (eval $ac_try) 2>&5
1996 ac_status=$?
1997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1998 (exit $ac_status); }; }; then
1999 for ac_declaration in \
2001 '#include <stdlib.h>' \
2002 'extern "C" void std::exit (int) throw (); using std::exit;' \
2003 'extern "C" void std::exit (int); using std::exit;' \
2004 'extern "C" void exit (int) throw ();' \
2005 'extern "C" void exit (int);' \
2006 'void exit (int);'
2008 cat >conftest.$ac_ext <<_ACEOF
2009 #line $LINENO "configure"
2010 #include "confdefs.h"
2011 #include <stdlib.h>
2012 $ac_declaration
2013 #ifdef F77_DUMMY_MAIN
2014 # ifdef __cplusplus
2015 extern "C"
2016 # endif
2017 int F77_DUMMY_MAIN() { return 1; }
2018 #endif
2020 main ()
2022 exit (42);
2024 return 0;
2026 _ACEOF
2027 rm -f conftest.$ac_objext
2028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2029 (eval $ac_compile) 2>&5
2030 ac_status=$?
2031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2032 (exit $ac_status); } &&
2033 { ac_try='test -s conftest.$ac_objext'
2034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2035 (eval $ac_try) 2>&5
2036 ac_status=$?
2037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2038 (exit $ac_status); }; }; then
2040 else
2041 echo "$as_me: failed program was:" >&5
2042 cat conftest.$ac_ext >&5
2043 continue
2045 rm -f conftest.$ac_objext conftest.$ac_ext
2046 cat >conftest.$ac_ext <<_ACEOF
2047 #line $LINENO "configure"
2048 #include "confdefs.h"
2049 $ac_declaration
2050 #ifdef F77_DUMMY_MAIN
2051 # ifdef __cplusplus
2052 extern "C"
2053 # endif
2054 int F77_DUMMY_MAIN() { return 1; }
2055 #endif
2057 main ()
2059 exit (42);
2061 return 0;
2063 _ACEOF
2064 rm -f conftest.$ac_objext
2065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2066 (eval $ac_compile) 2>&5
2067 ac_status=$?
2068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2069 (exit $ac_status); } &&
2070 { ac_try='test -s conftest.$ac_objext'
2071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2072 (eval $ac_try) 2>&5
2073 ac_status=$?
2074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2075 (exit $ac_status); }; }; then
2076 break
2077 else
2078 echo "$as_me: failed program was:" >&5
2079 cat conftest.$ac_ext >&5
2081 rm -f conftest.$ac_objext conftest.$ac_ext
2082 done
2083 rm -f conftest*
2084 if test -n "$ac_declaration"; then
2085 echo '#ifdef __cplusplus' >>confdefs.h
2086 echo $ac_declaration >>confdefs.h
2087 echo '#endif' >>confdefs.h
2090 else
2091 echo "$as_me: failed program was:" >&5
2092 cat conftest.$ac_ext >&5
2094 rm -f conftest.$ac_objext conftest.$ac_ext
2095 ac_ext=c
2096 ac_cpp='$CPP $CPPFLAGS'
2097 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2098 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2099 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2101 ac_ext=c
2102 ac_cpp='$CPP $CPPFLAGS'
2103 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2104 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2105 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2106 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2107 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2108 # On Suns, sometimes $CPP names a directory.
2109 if test -n "$CPP" && test -d "$CPP"; then
2110 CPP=
2112 if test -z "$CPP"; then
2113 if test "${ac_cv_prog_CPP+set}" = set; then
2114 echo $ECHO_N "(cached) $ECHO_C" >&6
2115 else
2116 # Double quotes because CPP needs to be expanded
2117 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2119 ac_preproc_ok=false
2120 for ac_c_preproc_warn_flag in '' yes
2122 # Use a header file that comes with gcc, so configuring glibc
2123 # with a fresh cross-compiler works.
2124 # On the NeXT, cc -E runs the code through the compiler's parser,
2125 # not just through cpp. "Syntax error" is here to catch this case.
2126 cat >conftest.$ac_ext <<_ACEOF
2127 #line $LINENO "configure"
2128 #include "confdefs.h"
2129 #include <assert.h>
2130 Syntax error
2131 _ACEOF
2132 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2133 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2134 ac_status=$?
2135 egrep -v '^ *\+' conftest.er1 >conftest.err
2136 rm -f conftest.er1
2137 cat conftest.err >&5
2138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2139 (exit $ac_status); } >/dev/null; then
2140 if test -s conftest.err; then
2141 ac_cpp_err=$ac_c_preproc_warn_flag
2142 else
2143 ac_cpp_err=
2145 else
2146 ac_cpp_err=yes
2148 if test -z "$ac_cpp_err"; then
2150 else
2151 echo "$as_me: failed program was:" >&5
2152 cat conftest.$ac_ext >&5
2153 # Broken: fails on valid input.
2154 continue
2156 rm -f conftest.err conftest.$ac_ext
2158 # OK, works on sane cases. Now check whether non-existent headers
2159 # can be detected and how.
2160 cat >conftest.$ac_ext <<_ACEOF
2161 #line $LINENO "configure"
2162 #include "confdefs.h"
2163 #include <ac_nonexistent.h>
2164 _ACEOF
2165 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2166 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2167 ac_status=$?
2168 egrep -v '^ *\+' conftest.er1 >conftest.err
2169 rm -f conftest.er1
2170 cat conftest.err >&5
2171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2172 (exit $ac_status); } >/dev/null; then
2173 if test -s conftest.err; then
2174 ac_cpp_err=$ac_c_preproc_warn_flag
2175 else
2176 ac_cpp_err=
2178 else
2179 ac_cpp_err=yes
2181 if test -z "$ac_cpp_err"; then
2182 # Broken: success on invalid input.
2183 continue
2184 else
2185 echo "$as_me: failed program was:" >&5
2186 cat conftest.$ac_ext >&5
2187 # Passes both tests.
2188 ac_preproc_ok=:
2189 break
2191 rm -f conftest.err conftest.$ac_ext
2193 done
2194 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2195 rm -f conftest.err conftest.$ac_ext
2196 if $ac_preproc_ok; then
2197 break
2200 done
2201 ac_cv_prog_CPP=$CPP
2204 CPP=$ac_cv_prog_CPP
2205 else
2206 ac_cv_prog_CPP=$CPP
2208 echo "$as_me:$LINENO: result: $CPP" >&5
2209 echo "${ECHO_T}$CPP" >&6
2210 ac_preproc_ok=false
2211 for ac_c_preproc_warn_flag in '' yes
2213 # Use a header file that comes with gcc, so configuring glibc
2214 # with a fresh cross-compiler works.
2215 # On the NeXT, cc -E runs the code through the compiler's parser,
2216 # not just through cpp. "Syntax error" is here to catch this case.
2217 cat >conftest.$ac_ext <<_ACEOF
2218 #line $LINENO "configure"
2219 #include "confdefs.h"
2220 #include <assert.h>
2221 Syntax error
2222 _ACEOF
2223 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2224 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2225 ac_status=$?
2226 egrep -v '^ *\+' conftest.er1 >conftest.err
2227 rm -f conftest.er1
2228 cat conftest.err >&5
2229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2230 (exit $ac_status); } >/dev/null; then
2231 if test -s conftest.err; then
2232 ac_cpp_err=$ac_c_preproc_warn_flag
2233 else
2234 ac_cpp_err=
2236 else
2237 ac_cpp_err=yes
2239 if test -z "$ac_cpp_err"; then
2241 else
2242 echo "$as_me: failed program was:" >&5
2243 cat conftest.$ac_ext >&5
2244 # Broken: fails on valid input.
2245 continue
2247 rm -f conftest.err conftest.$ac_ext
2249 # OK, works on sane cases. Now check whether non-existent headers
2250 # can be detected and how.
2251 cat >conftest.$ac_ext <<_ACEOF
2252 #line $LINENO "configure"
2253 #include "confdefs.h"
2254 #include <ac_nonexistent.h>
2255 _ACEOF
2256 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2257 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2258 ac_status=$?
2259 egrep -v '^ *\+' conftest.er1 >conftest.err
2260 rm -f conftest.er1
2261 cat conftest.err >&5
2262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2263 (exit $ac_status); } >/dev/null; then
2264 if test -s conftest.err; then
2265 ac_cpp_err=$ac_c_preproc_warn_flag
2266 else
2267 ac_cpp_err=
2269 else
2270 ac_cpp_err=yes
2272 if test -z "$ac_cpp_err"; then
2273 # Broken: success on invalid input.
2274 continue
2275 else
2276 echo "$as_me: failed program was:" >&5
2277 cat conftest.$ac_ext >&5
2278 # Passes both tests.
2279 ac_preproc_ok=:
2280 break
2282 rm -f conftest.err conftest.$ac_ext
2284 done
2285 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2286 rm -f conftest.err conftest.$ac_ext
2287 if $ac_preproc_ok; then
2289 else
2290 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2291 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2292 { (exit 1); exit 1; }; }
2295 ac_ext=c
2296 ac_cpp='$CPP $CPPFLAGS'
2297 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2298 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2299 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2301 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
2302 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
2303 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
2304 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2305 echo $ECHO_N "(cached) $ECHO_C" >&6
2306 else
2307 cat >conftest.make <<\_ACEOF
2308 all:
2309 @echo 'ac_maketemp="${MAKE}"'
2310 _ACEOF
2311 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2312 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2313 if test -n "$ac_maketemp"; then
2314 eval ac_cv_prog_make_${ac_make}_set=yes
2315 else
2316 eval ac_cv_prog_make_${ac_make}_set=no
2318 rm -f conftest.make
2320 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2321 echo "$as_me:$LINENO: result: yes" >&5
2322 echo "${ECHO_T}yes" >&6
2323 SET_MAKE=
2324 else
2325 echo "$as_me:$LINENO: result: no" >&5
2326 echo "${ECHO_T}no" >&6
2327 SET_MAKE="MAKE=${MAKE-make}"
2330 if test -n "$ac_tool_prefix"; then
2331 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2332 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2333 echo "$as_me:$LINENO: checking for $ac_word" >&5
2334 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2335 if test "${ac_cv_prog_RANLIB+set}" = set; then
2336 echo $ECHO_N "(cached) $ECHO_C" >&6
2337 else
2338 if test -n "$RANLIB"; then
2339 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2340 else
2341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2342 for as_dir in $PATH
2344 IFS=$as_save_IFS
2345 test -z "$as_dir" && as_dir=.
2346 for ac_exec_ext in '' $ac_executable_extensions; do
2347 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2348 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2349 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2350 break 2
2352 done
2353 done
2357 RANLIB=$ac_cv_prog_RANLIB
2358 if test -n "$RANLIB"; then
2359 echo "$as_me:$LINENO: result: $RANLIB" >&5
2360 echo "${ECHO_T}$RANLIB" >&6
2361 else
2362 echo "$as_me:$LINENO: result: no" >&5
2363 echo "${ECHO_T}no" >&6
2367 if test -z "$ac_cv_prog_RANLIB"; then
2368 ac_ct_RANLIB=$RANLIB
2369 # Extract the first word of "ranlib", so it can be a program name with args.
2370 set dummy ranlib; ac_word=$2
2371 echo "$as_me:$LINENO: checking for $ac_word" >&5
2372 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2373 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2374 echo $ECHO_N "(cached) $ECHO_C" >&6
2375 else
2376 if test -n "$ac_ct_RANLIB"; then
2377 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2378 else
2379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2380 for as_dir in $PATH
2382 IFS=$as_save_IFS
2383 test -z "$as_dir" && as_dir=.
2384 for ac_exec_ext in '' $ac_executable_extensions; do
2385 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2386 ac_cv_prog_ac_ct_RANLIB="ranlib"
2387 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2388 break 2
2390 done
2391 done
2393 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2396 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2397 if test -n "$ac_ct_RANLIB"; then
2398 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2399 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2400 else
2401 echo "$as_me:$LINENO: result: no" >&5
2402 echo "${ECHO_T}no" >&6
2405 RANLIB=$ac_ct_RANLIB
2406 else
2407 RANLIB="$ac_cv_prog_RANLIB"
2411 # Checks for libraries.
2413 # Checks for header files.
2416 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2417 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2418 if test "${ac_cv_header_stdc+set}" = set; then
2419 echo $ECHO_N "(cached) $ECHO_C" >&6
2420 else
2421 cat >conftest.$ac_ext <<_ACEOF
2422 #line $LINENO "configure"
2423 #include "confdefs.h"
2424 #include <stdlib.h>
2425 #include <stdarg.h>
2426 #include <string.h>
2427 #include <float.h>
2429 _ACEOF
2430 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2431 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2432 ac_status=$?
2433 egrep -v '^ *\+' conftest.er1 >conftest.err
2434 rm -f conftest.er1
2435 cat conftest.err >&5
2436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2437 (exit $ac_status); } >/dev/null; then
2438 if test -s conftest.err; then
2439 ac_cpp_err=$ac_c_preproc_warn_flag
2440 else
2441 ac_cpp_err=
2443 else
2444 ac_cpp_err=yes
2446 if test -z "$ac_cpp_err"; then
2447 ac_cv_header_stdc=yes
2448 else
2449 echo "$as_me: failed program was:" >&5
2450 cat conftest.$ac_ext >&5
2451 ac_cv_header_stdc=no
2453 rm -f conftest.err conftest.$ac_ext
2455 if test $ac_cv_header_stdc = yes; then
2456 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2457 cat >conftest.$ac_ext <<_ACEOF
2458 #line $LINENO "configure"
2459 #include "confdefs.h"
2460 #include <string.h>
2462 _ACEOF
2463 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2464 egrep "memchr" >/dev/null 2>&1; then
2466 else
2467 ac_cv_header_stdc=no
2469 rm -f conftest*
2473 if test $ac_cv_header_stdc = yes; then
2474 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2475 cat >conftest.$ac_ext <<_ACEOF
2476 #line $LINENO "configure"
2477 #include "confdefs.h"
2478 #include <stdlib.h>
2480 _ACEOF
2481 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2482 egrep "free" >/dev/null 2>&1; then
2484 else
2485 ac_cv_header_stdc=no
2487 rm -f conftest*
2491 if test $ac_cv_header_stdc = yes; then
2492 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2493 if test "$cross_compiling" = yes; then
2495 else
2496 cat >conftest.$ac_ext <<_ACEOF
2497 #line $LINENO "configure"
2498 #include "confdefs.h"
2499 #include <ctype.h>
2500 #if ((' ' & 0x0FF) == 0x020)
2501 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2502 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2503 #else
2504 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
2505 || ('j' <= (c) && (c) <= 'r') \
2506 || ('s' <= (c) && (c) <= 'z'))
2507 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2508 #endif
2510 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2512 main ()
2514 int i;
2515 for (i = 0; i < 256; i++)
2516 if (XOR (islower (i), ISLOWER (i))
2517 || toupper (i) != TOUPPER (i))
2518 exit(2);
2519 exit (0);
2521 _ACEOF
2522 rm -f conftest$ac_exeext
2523 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2524 (eval $ac_link) 2>&5
2525 ac_status=$?
2526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2527 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2529 (eval $ac_try) 2>&5
2530 ac_status=$?
2531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2532 (exit $ac_status); }; }; then
2534 else
2535 echo "$as_me: program exited with status $ac_status" >&5
2536 echo "$as_me: failed program was:" >&5
2537 cat conftest.$ac_ext >&5
2538 ( exit $ac_status )
2539 ac_cv_header_stdc=no
2541 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2545 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2546 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2547 if test $ac_cv_header_stdc = yes; then
2549 cat >>confdefs.h <<\_ACEOF
2550 #define STDC_HEADERS 1
2551 _ACEOF
2555 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
2565 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2566 inttypes.h stdint.h unistd.h
2568 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2569 echo "$as_me:$LINENO: checking for $ac_header" >&5
2570 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2571 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2572 echo $ECHO_N "(cached) $ECHO_C" >&6
2573 else
2574 cat >conftest.$ac_ext <<_ACEOF
2575 #line $LINENO "configure"
2576 #include "confdefs.h"
2577 $ac_includes_default
2579 #include <$ac_header>
2580 _ACEOF
2581 rm -f conftest.$ac_objext
2582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2583 (eval $ac_compile) 2>&5
2584 ac_status=$?
2585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2586 (exit $ac_status); } &&
2587 { ac_try='test -s conftest.$ac_objext'
2588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2589 (eval $ac_try) 2>&5
2590 ac_status=$?
2591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2592 (exit $ac_status); }; }; then
2593 eval "$as_ac_Header=yes"
2594 else
2595 echo "$as_me: failed program was:" >&5
2596 cat conftest.$ac_ext >&5
2597 eval "$as_ac_Header=no"
2599 rm -f conftest.$ac_objext conftest.$ac_ext
2601 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2602 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2603 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2604 cat >>confdefs.h <<_ACEOF
2605 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2606 _ACEOF
2610 done
2622 for ac_header in fcntl.h float.h limits.h stddef.h stdlib.h string.h sys/ioctl.h sys/time.h unistd.h
2624 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2625 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2626 echo "$as_me:$LINENO: checking for $ac_header" >&5
2627 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2628 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2629 echo $ECHO_N "(cached) $ECHO_C" >&6
2631 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2632 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2633 else
2634 # Is the header compilable?
2635 echo "$as_me:$LINENO: checking $ac_header usability" >&5
2636 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
2637 cat >conftest.$ac_ext <<_ACEOF
2638 #line $LINENO "configure"
2639 #include "confdefs.h"
2640 $ac_includes_default
2641 #include <$ac_header>
2642 _ACEOF
2643 rm -f conftest.$ac_objext
2644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2645 (eval $ac_compile) 2>&5
2646 ac_status=$?
2647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2648 (exit $ac_status); } &&
2649 { ac_try='test -s conftest.$ac_objext'
2650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2651 (eval $ac_try) 2>&5
2652 ac_status=$?
2653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2654 (exit $ac_status); }; }; then
2655 ac_header_compiler=yes
2656 else
2657 echo "$as_me: failed program was:" >&5
2658 cat conftest.$ac_ext >&5
2659 ac_header_compiler=no
2661 rm -f conftest.$ac_objext conftest.$ac_ext
2662 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
2663 echo "${ECHO_T}$ac_header_compiler" >&6
2665 # Is the header present?
2666 echo "$as_me:$LINENO: checking $ac_header presence" >&5
2667 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
2668 cat >conftest.$ac_ext <<_ACEOF
2669 #line $LINENO "configure"
2670 #include "confdefs.h"
2671 #include <$ac_header>
2672 _ACEOF
2673 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2674 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2675 ac_status=$?
2676 egrep -v '^ *\+' conftest.er1 >conftest.err
2677 rm -f conftest.er1
2678 cat conftest.err >&5
2679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2680 (exit $ac_status); } >/dev/null; then
2681 if test -s conftest.err; then
2682 ac_cpp_err=$ac_c_preproc_warn_flag
2683 else
2684 ac_cpp_err=
2686 else
2687 ac_cpp_err=yes
2689 if test -z "$ac_cpp_err"; then
2690 ac_header_preproc=yes
2691 else
2692 echo "$as_me: failed program was:" >&5
2693 cat conftest.$ac_ext >&5
2694 ac_header_preproc=no
2696 rm -f conftest.err conftest.$ac_ext
2697 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
2698 echo "${ECHO_T}$ac_header_preproc" >&6
2700 # So? What about this header?
2701 case $ac_header_compiler:$ac_header_preproc in
2702 yes:no )
2703 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
2704 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
2705 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
2706 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
2707 no:yes )
2708 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
2709 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
2710 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
2711 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
2712 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
2713 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
2714 esac
2715 echo "$as_me:$LINENO: checking for $ac_header" >&5
2716 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2717 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2718 echo $ECHO_N "(cached) $ECHO_C" >&6
2719 else
2720 eval "$as_ac_Header=$ac_header_preproc"
2722 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2723 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2726 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2727 cat >>confdefs.h <<_ACEOF
2728 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2729 _ACEOF
2733 done
2736 # Checks for typedefs, structures, and compiler characteristics.
2737 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2738 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2739 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2740 echo $ECHO_N "(cached) $ECHO_C" >&6
2741 else
2742 ac_cv_prog_cc_stdc=no
2743 ac_save_CC=$CC
2744 cat >conftest.$ac_ext <<_ACEOF
2745 #line $LINENO "configure"
2746 #include "confdefs.h"
2747 #include <stdarg.h>
2748 #include <stdio.h>
2749 #include <sys/types.h>
2750 #include <sys/stat.h>
2751 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2752 struct buf { int x; };
2753 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2754 static char *e (p, i)
2755 char **p;
2756 int i;
2758 return p[i];
2760 static char *f (char * (*g) (char **, int), char **p, ...)
2762 char *s;
2763 va_list v;
2764 va_start (v,p);
2765 s = g (p, va_arg (v,int));
2766 va_end (v);
2767 return s;
2769 int test (int i, double x);
2770 struct s1 {int (*f) (int a);};
2771 struct s2 {int (*f) (double a);};
2772 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2773 int argc;
2774 char **argv;
2775 #ifdef F77_DUMMY_MAIN
2776 # ifdef __cplusplus
2777 extern "C"
2778 # endif
2779 int F77_DUMMY_MAIN() { return 1; }
2780 #endif
2782 main ()
2784 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2786 return 0;
2788 _ACEOF
2789 # Don't try gcc -ansi; that turns off useful extensions and
2790 # breaks some systems' header files.
2791 # AIX -qlanglvl=ansi
2792 # Ultrix and OSF/1 -std1
2793 # HP-UX 10.20 and later -Ae
2794 # HP-UX older versions -Aa -D_HPUX_SOURCE
2795 # SVR4 -Xc -D__EXTENSIONS__
2796 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2798 CC="$ac_save_CC $ac_arg"
2799 rm -f conftest.$ac_objext
2800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2801 (eval $ac_compile) 2>&5
2802 ac_status=$?
2803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2804 (exit $ac_status); } &&
2805 { ac_try='test -s conftest.$ac_objext'
2806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2807 (eval $ac_try) 2>&5
2808 ac_status=$?
2809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2810 (exit $ac_status); }; }; then
2811 ac_cv_prog_cc_stdc=$ac_arg
2812 break
2813 else
2814 echo "$as_me: failed program was:" >&5
2815 cat conftest.$ac_ext >&5
2817 rm -f conftest.$ac_objext
2818 done
2819 rm -f conftest.$ac_ext conftest.$ac_objext
2820 CC=$ac_save_CC
2824 case "x$ac_cv_prog_cc_stdc" in
2825 x|xno)
2826 echo "$as_me:$LINENO: result: none needed" >&5
2827 echo "${ECHO_T}none needed" >&6 ;;
2829 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2830 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2831 CC="$CC $ac_cv_prog_cc_stdc" ;;
2832 esac
2834 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
2835 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
2836 if test "${ac_cv_c_const+set}" = set; then
2837 echo $ECHO_N "(cached) $ECHO_C" >&6
2838 else
2839 cat >conftest.$ac_ext <<_ACEOF
2840 #line $LINENO "configure"
2841 #include "confdefs.h"
2843 #ifdef F77_DUMMY_MAIN
2844 # ifdef __cplusplus
2845 extern "C"
2846 # endif
2847 int F77_DUMMY_MAIN() { return 1; }
2848 #endif
2850 main ()
2852 /* FIXME: Include the comments suggested by Paul. */
2853 #ifndef __cplusplus
2854 /* Ultrix mips cc rejects this. */
2855 typedef int charset[2];
2856 const charset x;
2857 /* SunOS 4.1.1 cc rejects this. */
2858 char const *const *ccp;
2859 char **p;
2860 /* NEC SVR4.0.2 mips cc rejects this. */
2861 struct point {int x, y;};
2862 static struct point const zero = {0,0};
2863 /* AIX XL C 1.02.0.0 rejects this.
2864 It does not let you subtract one const X* pointer from another in
2865 an arm of an if-expression whose if-part is not a constant
2866 expression */
2867 const char *g = "string";
2868 ccp = &g + (g ? g-g : 0);
2869 /* HPUX 7.0 cc rejects these. */
2870 ++ccp;
2871 p = (char**) ccp;
2872 ccp = (char const *const *) p;
2873 { /* SCO 3.2v4 cc rejects this. */
2874 char *t;
2875 char const *s = 0 ? (char *) 0 : (char const *) 0;
2877 *t++ = 0;
2879 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2880 int x[] = {25, 17};
2881 const int *foo = &x[0];
2882 ++foo;
2884 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2885 typedef const int *iptr;
2886 iptr p = 0;
2887 ++p;
2889 { /* AIX XL C 1.02.0.0 rejects this saying
2890 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2891 struct s { int j; const int *ap[3]; };
2892 struct s *b; b->j = 5;
2894 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2895 const int foo = 10;
2897 #endif
2900 return 0;
2902 _ACEOF
2903 rm -f conftest.$ac_objext
2904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2905 (eval $ac_compile) 2>&5
2906 ac_status=$?
2907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2908 (exit $ac_status); } &&
2909 { ac_try='test -s conftest.$ac_objext'
2910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2911 (eval $ac_try) 2>&5
2912 ac_status=$?
2913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2914 (exit $ac_status); }; }; then
2915 ac_cv_c_const=yes
2916 else
2917 echo "$as_me: failed program was:" >&5
2918 cat conftest.$ac_ext >&5
2919 ac_cv_c_const=no
2921 rm -f conftest.$ac_objext conftest.$ac_ext
2923 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
2924 echo "${ECHO_T}$ac_cv_c_const" >&6
2925 if test $ac_cv_c_const = no; then
2927 cat >>confdefs.h <<\_ACEOF
2928 #define const
2929 _ACEOF
2933 echo "$as_me:$LINENO: checking for size_t" >&5
2934 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
2935 if test "${ac_cv_type_size_t+set}" = set; then
2936 echo $ECHO_N "(cached) $ECHO_C" >&6
2937 else
2938 cat >conftest.$ac_ext <<_ACEOF
2939 #line $LINENO "configure"
2940 #include "confdefs.h"
2941 $ac_includes_default
2942 #ifdef F77_DUMMY_MAIN
2943 # ifdef __cplusplus
2944 extern "C"
2945 # endif
2946 int F77_DUMMY_MAIN() { return 1; }
2947 #endif
2949 main ()
2951 if ((size_t *) 0)
2952 return 0;
2953 if (sizeof (size_t))
2954 return 0;
2956 return 0;
2958 _ACEOF
2959 rm -f conftest.$ac_objext
2960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2961 (eval $ac_compile) 2>&5
2962 ac_status=$?
2963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2964 (exit $ac_status); } &&
2965 { ac_try='test -s conftest.$ac_objext'
2966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2967 (eval $ac_try) 2>&5
2968 ac_status=$?
2969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2970 (exit $ac_status); }; }; then
2971 ac_cv_type_size_t=yes
2972 else
2973 echo "$as_me: failed program was:" >&5
2974 cat conftest.$ac_ext >&5
2975 ac_cv_type_size_t=no
2977 rm -f conftest.$ac_objext conftest.$ac_ext
2979 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
2980 echo "${ECHO_T}$ac_cv_type_size_t" >&6
2981 if test $ac_cv_type_size_t = yes; then
2983 else
2985 cat >>confdefs.h <<_ACEOF
2986 #define size_t unsigned
2987 _ACEOF
2991 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
2992 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
2993 if test "${ac_cv_header_time+set}" = set; then
2994 echo $ECHO_N "(cached) $ECHO_C" >&6
2995 else
2996 cat >conftest.$ac_ext <<_ACEOF
2997 #line $LINENO "configure"
2998 #include "confdefs.h"
2999 #include <sys/types.h>
3000 #include <sys/time.h>
3001 #include <time.h>
3003 #ifdef F77_DUMMY_MAIN
3004 # ifdef __cplusplus
3005 extern "C"
3006 # endif
3007 int F77_DUMMY_MAIN() { return 1; }
3008 #endif
3010 main ()
3012 if ((struct tm *) 0)
3013 return 0;
3015 return 0;
3017 _ACEOF
3018 rm -f conftest.$ac_objext
3019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3020 (eval $ac_compile) 2>&5
3021 ac_status=$?
3022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3023 (exit $ac_status); } &&
3024 { ac_try='test -s conftest.$ac_objext'
3025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3026 (eval $ac_try) 2>&5
3027 ac_status=$?
3028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3029 (exit $ac_status); }; }; then
3030 ac_cv_header_time=yes
3031 else
3032 echo "$as_me: failed program was:" >&5
3033 cat conftest.$ac_ext >&5
3034 ac_cv_header_time=no
3036 rm -f conftest.$ac_objext conftest.$ac_ext
3038 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
3039 echo "${ECHO_T}$ac_cv_header_time" >&6
3040 if test $ac_cv_header_time = yes; then
3042 cat >>confdefs.h <<\_ACEOF
3043 #define TIME_WITH_SYS_TIME 1
3044 _ACEOF
3049 # Checks for library functions.
3050 if test $ac_cv_c_compiler_gnu = yes; then
3051 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3052 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3053 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3054 echo $ECHO_N "(cached) $ECHO_C" >&6
3055 else
3056 ac_pattern="Autoconf.*'x'"
3057 cat >conftest.$ac_ext <<_ACEOF
3058 #line $LINENO "configure"
3059 #include "confdefs.h"
3060 #include <sgtty.h>
3061 Autoconf TIOCGETP
3062 _ACEOF
3063 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3064 egrep "$ac_pattern" >/dev/null 2>&1; then
3065 ac_cv_prog_gcc_traditional=yes
3066 else
3067 ac_cv_prog_gcc_traditional=no
3069 rm -f conftest*
3072 if test $ac_cv_prog_gcc_traditional = no; then
3073 cat >conftest.$ac_ext <<_ACEOF
3074 #line $LINENO "configure"
3075 #include "confdefs.h"
3076 #include <termio.h>
3077 Autoconf TCGETA
3078 _ACEOF
3079 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3080 egrep "$ac_pattern" >/dev/null 2>&1; then
3081 ac_cv_prog_gcc_traditional=yes
3083 rm -f conftest*
3087 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3088 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3089 if test $ac_cv_prog_gcc_traditional = yes; then
3090 CC="$CC -traditional"
3095 for ac_header in stdlib.h
3097 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3098 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3099 echo "$as_me:$LINENO: checking for $ac_header" >&5
3100 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3101 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3102 echo $ECHO_N "(cached) $ECHO_C" >&6
3104 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3105 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3106 else
3107 # Is the header compilable?
3108 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3109 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3110 cat >conftest.$ac_ext <<_ACEOF
3111 #line $LINENO "configure"
3112 #include "confdefs.h"
3113 $ac_includes_default
3114 #include <$ac_header>
3115 _ACEOF
3116 rm -f conftest.$ac_objext
3117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3118 (eval $ac_compile) 2>&5
3119 ac_status=$?
3120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3121 (exit $ac_status); } &&
3122 { ac_try='test -s conftest.$ac_objext'
3123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3124 (eval $ac_try) 2>&5
3125 ac_status=$?
3126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3127 (exit $ac_status); }; }; then
3128 ac_header_compiler=yes
3129 else
3130 echo "$as_me: failed program was:" >&5
3131 cat conftest.$ac_ext >&5
3132 ac_header_compiler=no
3134 rm -f conftest.$ac_objext conftest.$ac_ext
3135 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3136 echo "${ECHO_T}$ac_header_compiler" >&6
3138 # Is the header present?
3139 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3140 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3141 cat >conftest.$ac_ext <<_ACEOF
3142 #line $LINENO "configure"
3143 #include "confdefs.h"
3144 #include <$ac_header>
3145 _ACEOF
3146 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3147 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3148 ac_status=$?
3149 egrep -v '^ *\+' conftest.er1 >conftest.err
3150 rm -f conftest.er1
3151 cat conftest.err >&5
3152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3153 (exit $ac_status); } >/dev/null; then
3154 if test -s conftest.err; then
3155 ac_cpp_err=$ac_c_preproc_warn_flag
3156 else
3157 ac_cpp_err=
3159 else
3160 ac_cpp_err=yes
3162 if test -z "$ac_cpp_err"; then
3163 ac_header_preproc=yes
3164 else
3165 echo "$as_me: failed program was:" >&5
3166 cat conftest.$ac_ext >&5
3167 ac_header_preproc=no
3169 rm -f conftest.err conftest.$ac_ext
3170 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3171 echo "${ECHO_T}$ac_header_preproc" >&6
3173 # So? What about this header?
3174 case $ac_header_compiler:$ac_header_preproc in
3175 yes:no )
3176 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3177 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3178 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3179 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3180 no:yes )
3181 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3182 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3183 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3184 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3185 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3186 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3187 esac
3188 echo "$as_me:$LINENO: checking for $ac_header" >&5
3189 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3190 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3191 echo $ECHO_N "(cached) $ECHO_C" >&6
3192 else
3193 eval "$as_ac_Header=$ac_header_preproc"
3195 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3196 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3199 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3200 cat >>confdefs.h <<_ACEOF
3201 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3202 _ACEOF
3206 done
3208 echo "$as_me:$LINENO: checking for working malloc" >&5
3209 echo $ECHO_N "checking for working malloc... $ECHO_C" >&6
3210 if test "${ac_cv_func_malloc_works+set}" = set; then
3211 echo $ECHO_N "(cached) $ECHO_C" >&6
3212 else
3213 if test "$cross_compiling" = yes; then
3214 ac_cv_func_malloc_works=no
3215 else
3216 cat >conftest.$ac_ext <<_ACEOF
3217 #line $LINENO "configure"
3218 #include "confdefs.h"
3219 #if STDC_HEADERS || HAVE_STDLIB_H
3220 # include <stdlib.h>
3221 #else
3222 char *malloc ();
3223 #endif
3225 #ifdef F77_DUMMY_MAIN
3226 # ifdef __cplusplus
3227 extern "C"
3228 # endif
3229 int F77_DUMMY_MAIN() { return 1; }
3230 #endif
3232 main ()
3234 exit (malloc (0) ? 0 : 1);
3236 return 0;
3238 _ACEOF
3239 rm -f conftest$ac_exeext
3240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3241 (eval $ac_link) 2>&5
3242 ac_status=$?
3243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3244 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3246 (eval $ac_try) 2>&5
3247 ac_status=$?
3248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3249 (exit $ac_status); }; }; then
3250 ac_cv_func_malloc_works=yes
3251 else
3252 echo "$as_me: program exited with status $ac_status" >&5
3253 echo "$as_me: failed program was:" >&5
3254 cat conftest.$ac_ext >&5
3255 ( exit $ac_status )
3256 ac_cv_func_malloc_works=no
3258 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3261 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_works" >&5
3262 echo "${ECHO_T}$ac_cv_func_malloc_works" >&6
3263 if test $ac_cv_func_malloc_works = yes; then
3265 cat >>confdefs.h <<\_ACEOF
3266 #define HAVE_MALLOC 1
3267 _ACEOF
3271 echo "$as_me:$LINENO: checking for working memcmp" >&5
3272 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
3273 if test "${ac_cv_func_memcmp_working+set}" = set; then
3274 echo $ECHO_N "(cached) $ECHO_C" >&6
3275 else
3276 if test "$cross_compiling" = yes; then
3277 ac_cv_func_memcmp_working=no
3278 else
3279 cat >conftest.$ac_ext <<_ACEOF
3280 #line $LINENO "configure"
3281 #include "confdefs.h"
3283 #ifdef F77_DUMMY_MAIN
3284 # ifdef __cplusplus
3285 extern "C"
3286 # endif
3287 int F77_DUMMY_MAIN() { return 1; }
3288 #endif
3290 main ()
3293 /* Some versions of memcmp are not 8-bit clean. */
3294 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
3295 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
3296 exit (1);
3298 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
3299 or more and with at least one buffer not starting on a 4-byte boundary.
3300 William Lewis provided this test program. */
3302 char foo[21];
3303 char bar[21];
3304 int i;
3305 for (i = 0; i < 4; i++)
3307 char *a = foo + i;
3308 char *b = bar + i;
3309 strcpy (a, "--------01111111");
3310 strcpy (b, "--------10000000");
3311 if (memcmp (a, b, 16) >= 0)
3312 exit (1);
3314 exit (0);
3318 return 0;
3320 _ACEOF
3321 rm -f conftest$ac_exeext
3322 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3323 (eval $ac_link) 2>&5
3324 ac_status=$?
3325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3326 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3328 (eval $ac_try) 2>&5
3329 ac_status=$?
3330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3331 (exit $ac_status); }; }; then
3332 ac_cv_func_memcmp_working=yes
3333 else
3334 echo "$as_me: program exited with status $ac_status" >&5
3335 echo "$as_me: failed program was:" >&5
3336 cat conftest.$ac_ext >&5
3337 ( exit $ac_status )
3338 ac_cv_func_memcmp_working=no
3340 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3343 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
3344 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
3345 test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
3347 echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
3348 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
3349 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
3350 echo $ECHO_N "(cached) $ECHO_C" >&6
3351 else
3352 rm -f conftest.sym conftest.file
3353 echo >conftest.file
3354 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
3355 if test "$cross_compiling" = yes; then
3356 ac_cv_func_lstat_dereferences_slashed_symlink=no
3357 else
3358 cat >conftest.$ac_ext <<_ACEOF
3359 #line $LINENO "configure"
3360 #include "confdefs.h"
3361 $ac_includes_default
3362 #ifdef F77_DUMMY_MAIN
3363 # ifdef __cplusplus
3364 extern "C"
3365 # endif
3366 int F77_DUMMY_MAIN() { return 1; }
3367 #endif
3369 main ()
3371 struct stat sbuf;
3372 /* Linux will dereference the symlink and fail.
3373 That is better in the sense that it means we will not
3374 have to compile and use the lstat wrapper. */
3375 exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
3377 return 0;
3379 _ACEOF
3380 rm -f conftest$ac_exeext
3381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3382 (eval $ac_link) 2>&5
3383 ac_status=$?
3384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3385 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3387 (eval $ac_try) 2>&5
3388 ac_status=$?
3389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3390 (exit $ac_status); }; }; then
3391 ac_cv_func_lstat_dereferences_slashed_symlink=yes
3392 else
3393 echo "$as_me: program exited with status $ac_status" >&5
3394 echo "$as_me: failed program was:" >&5
3395 cat conftest.$ac_ext >&5
3396 ( exit $ac_status )
3397 ac_cv_func_lstat_dereferences_slashed_symlink=no
3399 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3401 else
3402 # If the `ln -s' command failed, then we probably don't even
3403 # have an lstat function.
3404 ac_cv_func_lstat_dereferences_slashed_symlink=no
3406 rm -f conftest.sym conftest.file
3409 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
3410 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
3412 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
3414 cat >>confdefs.h <<_ACEOF
3415 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
3416 _ACEOF
3419 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
3420 LIBOBJS="$LIBOBJS lstat.$ac_objext"
3423 echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
3424 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
3425 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
3426 echo $ECHO_N "(cached) $ECHO_C" >&6
3427 else
3428 if test "$cross_compiling" = yes; then
3429 ac_cv_func_stat_empty_string_bug=yes
3430 else
3431 cat >conftest.$ac_ext <<_ACEOF
3432 #line $LINENO "configure"
3433 #include "confdefs.h"
3434 $ac_includes_default
3435 #ifdef F77_DUMMY_MAIN
3436 # ifdef __cplusplus
3437 extern "C"
3438 # endif
3439 int F77_DUMMY_MAIN() { return 1; }
3440 #endif
3442 main ()
3444 struct stat sbuf;
3445 exit (stat ("", &sbuf) ? 1 : 0);
3447 return 0;
3449 _ACEOF
3450 rm -f conftest$ac_exeext
3451 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3452 (eval $ac_link) 2>&5
3453 ac_status=$?
3454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3455 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3457 (eval $ac_try) 2>&5
3458 ac_status=$?
3459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3460 (exit $ac_status); }; }; then
3461 ac_cv_func_stat_empty_string_bug=yes
3462 else
3463 echo "$as_me: program exited with status $ac_status" >&5
3464 echo "$as_me: failed program was:" >&5
3465 cat conftest.$ac_ext >&5
3466 ( exit $ac_status )
3467 ac_cv_func_stat_empty_string_bug=no
3469 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3472 echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
3473 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
3474 if test $ac_cv_func_stat_empty_string_bug = yes; then
3475 LIBOBJS="$LIBOBJS stat.$ac_objext"
3477 cat >>confdefs.h <<_ACEOF
3478 #define HAVE_STAT_EMPTY_STRING_BUG 1
3479 _ACEOF
3492 for ac_func in memmove memset pow select sqrt strdup strerror strstr strtol
3494 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3495 echo "$as_me:$LINENO: checking for $ac_func" >&5
3496 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3497 if eval "test \"\${$as_ac_var+set}\" = set"; then
3498 echo $ECHO_N "(cached) $ECHO_C" >&6
3499 else
3500 cat >conftest.$ac_ext <<_ACEOF
3501 #line $LINENO "configure"
3502 #include "confdefs.h"
3503 /* System header to define __stub macros and hopefully few prototypes,
3504 which can conflict with char $ac_func (); below. */
3505 #include <assert.h>
3506 /* Override any gcc2 internal prototype to avoid an error. */
3507 #ifdef __cplusplus
3508 extern "C"
3509 #endif
3510 /* We use char because int might match the return type of a gcc2
3511 builtin and then its argument prototype would still apply. */
3512 char $ac_func ();
3513 char (*f) ();
3515 #ifdef F77_DUMMY_MAIN
3516 # ifdef __cplusplus
3517 extern "C"
3518 # endif
3519 int F77_DUMMY_MAIN() { return 1; }
3520 #endif
3522 main ()
3524 /* The GNU C library defines this for functions which it implements
3525 to always fail with ENOSYS. Some functions are actually named
3526 something starting with __ and the normal name is an alias. */
3527 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3528 choke me
3529 #else
3530 f = $ac_func;
3531 #endif
3534 return 0;
3536 _ACEOF
3537 rm -f conftest.$ac_objext conftest$ac_exeext
3538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3539 (eval $ac_link) 2>&5
3540 ac_status=$?
3541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3542 (exit $ac_status); } &&
3543 { ac_try='test -s conftest$ac_exeext'
3544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3545 (eval $ac_try) 2>&5
3546 ac_status=$?
3547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3548 (exit $ac_status); }; }; then
3549 eval "$as_ac_var=yes"
3550 else
3551 echo "$as_me: failed program was:" >&5
3552 cat conftest.$ac_ext >&5
3553 eval "$as_ac_var=no"
3555 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3557 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3558 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3559 if test `eval echo '${'$as_ac_var'}'` = yes; then
3560 cat >>confdefs.h <<_ACEOF
3561 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3562 _ACEOF
3565 done
3568 # look for X
3569 echo "$as_me:$LINENO: checking for X" >&5
3570 echo $ECHO_N "checking for X... $ECHO_C" >&6
3573 # Check whether --with-x or --without-x was given.
3574 if test "${with_x+set}" = set; then
3575 withval="$with_x"
3578 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
3579 if test "x$with_x" = xno; then
3580 # The user explicitly disabled X.
3581 have_x=disabled
3582 else
3583 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
3584 # Both variables are already set.
3585 have_x=yes
3586 else
3587 if test "${ac_cv_have_x+set}" = set; then
3588 echo $ECHO_N "(cached) $ECHO_C" >&6
3589 else
3590 # One or both of the vars are not set, and there is no cached value.
3591 ac_x_includes=no ac_x_libraries=no
3592 rm -fr conftest.dir
3593 if mkdir conftest.dir; then
3594 cd conftest.dir
3595 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
3596 cat >Imakefile <<'_ACEOF'
3597 acfindx:
3598 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
3599 _ACEOF
3600 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
3601 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3602 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
3603 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3604 for ac_extension in a so sl; do
3605 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
3606 test -f $ac_im_libdir/libX11.$ac_extension; then
3607 ac_im_usrlibdir=$ac_im_libdir; break
3609 done
3610 # Screen out bogus values from the imake configuration. They are
3611 # bogus both because they are the default anyway, and because
3612 # using them would break gcc on systems where it needs fixed includes.
3613 case $ac_im_incroot in
3614 /usr/include) ;;
3615 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
3616 esac
3617 case $ac_im_usrlibdir in
3618 /usr/lib | /lib) ;;
3619 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
3620 esac
3622 cd ..
3623 rm -fr conftest.dir
3626 # Standard set of common directories for X headers.
3627 # Check X11 before X11Rn because it is often a symlink to the current release.
3628 ac_x_header_dirs='
3629 /usr/X11/include
3630 /usr/X11R6/include
3631 /usr/X11R5/include
3632 /usr/X11R4/include
3634 /usr/include/X11
3635 /usr/include/X11R6
3636 /usr/include/X11R5
3637 /usr/include/X11R4
3639 /usr/local/X11/include
3640 /usr/local/X11R6/include
3641 /usr/local/X11R5/include
3642 /usr/local/X11R4/include
3644 /usr/local/include/X11
3645 /usr/local/include/X11R6
3646 /usr/local/include/X11R5
3647 /usr/local/include/X11R4
3649 /usr/X386/include
3650 /usr/x386/include
3651 /usr/XFree86/include/X11
3653 /usr/include
3654 /usr/local/include
3655 /usr/unsupported/include
3656 /usr/athena/include
3657 /usr/local/x11r5/include
3658 /usr/lpp/Xamples/include
3660 /usr/openwin/include
3661 /usr/openwin/share/include'
3663 if test "$ac_x_includes" = no; then
3664 # Guess where to find include files, by looking for Intrinsic.h.
3665 # First, try using that file with no special directory specified.
3666 cat >conftest.$ac_ext <<_ACEOF
3667 #line $LINENO "configure"
3668 #include "confdefs.h"
3669 #include <X11/Intrinsic.h>
3670 _ACEOF
3671 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3672 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3673 ac_status=$?
3674 egrep -v '^ *\+' conftest.er1 >conftest.err
3675 rm -f conftest.er1
3676 cat conftest.err >&5
3677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3678 (exit $ac_status); } >/dev/null; then
3679 if test -s conftest.err; then
3680 ac_cpp_err=$ac_c_preproc_warn_flag
3681 else
3682 ac_cpp_err=
3684 else
3685 ac_cpp_err=yes
3687 if test -z "$ac_cpp_err"; then
3688 # We can compile using X headers with no special include directory.
3689 ac_x_includes=
3690 else
3691 echo "$as_me: failed program was:" >&5
3692 cat conftest.$ac_ext >&5
3693 for ac_dir in $ac_x_header_dirs; do
3694 if test -r "$ac_dir/X11/Intrinsic.h"; then
3695 ac_x_includes=$ac_dir
3696 break
3698 done
3700 rm -f conftest.err conftest.$ac_ext
3701 fi # $ac_x_includes = no
3703 if test "$ac_x_libraries" = no; then
3704 # Check for the libraries.
3705 # See if we find them without any special options.
3706 # Don't add to $LIBS permanently.
3707 ac_save_LIBS=$LIBS
3708 LIBS="-lXt $LIBS"
3709 cat >conftest.$ac_ext <<_ACEOF
3710 #line $LINENO "configure"
3711 #include "confdefs.h"
3712 #include <X11/Intrinsic.h>
3713 #ifdef F77_DUMMY_MAIN
3714 # ifdef __cplusplus
3715 extern "C"
3716 # endif
3717 int F77_DUMMY_MAIN() { return 1; }
3718 #endif
3720 main ()
3722 XtMalloc (0)
3724 return 0;
3726 _ACEOF
3727 rm -f conftest.$ac_objext conftest$ac_exeext
3728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3729 (eval $ac_link) 2>&5
3730 ac_status=$?
3731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3732 (exit $ac_status); } &&
3733 { ac_try='test -s conftest$ac_exeext'
3734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3735 (eval $ac_try) 2>&5
3736 ac_status=$?
3737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3738 (exit $ac_status); }; }; then
3739 LIBS=$ac_save_LIBS
3740 # We can link X programs with no special library path.
3741 ac_x_libraries=
3742 else
3743 echo "$as_me: failed program was:" >&5
3744 cat conftest.$ac_ext >&5
3745 LIBS=$ac_save_LIBS
3746 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
3748 # Don't even attempt the hair of trying to link an X program!
3749 for ac_extension in a so sl; do
3750 if test -r $ac_dir/libXt.$ac_extension; then
3751 ac_x_libraries=$ac_dir
3752 break 2
3754 done
3755 done
3757 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3758 fi # $ac_x_libraries = no
3760 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
3761 # Didn't find X anywhere. Cache the known absence of X.
3762 ac_cv_have_x="have_x=no"
3763 else
3764 # Record where we found X for the cache.
3765 ac_cv_have_x="have_x=yes \
3766 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
3771 eval "$ac_cv_have_x"
3772 fi # $with_x != no
3774 if test "$have_x" != yes; then
3775 echo "$as_me:$LINENO: result: $have_x" >&5
3776 echo "${ECHO_T}$have_x" >&6
3777 no_x=yes
3778 else
3779 # If each of the values was on the command line, it overrides each guess.
3780 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
3781 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
3782 # Update the cache value to reflect the command line values.
3783 ac_cv_have_x="have_x=yes \
3784 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
3785 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
3786 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
3789 if test "$no_x" = yes; then
3790 # Not all programs may use this symbol, but it does not hurt to define it.
3792 cat >>confdefs.h <<\_ACEOF
3793 #define X_DISPLAY_MISSING 1
3794 _ACEOF
3796 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
3797 else
3798 if test -n "$x_includes"; then
3799 X_CFLAGS="$X_CFLAGS -I$x_includes"
3802 # It would also be nice to do this for all -L options, not just this one.
3803 if test -n "$x_libraries"; then
3804 X_LIBS="$X_LIBS -L$x_libraries"
3805 # For Solaris; some versions of Sun CC require a space after -R and
3806 # others require no space. Words are not sufficient . . . .
3807 case `(uname -sr) 2>/dev/null` in
3808 "SunOS 5"*)
3809 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
3810 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
3811 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
3812 cat >conftest.$ac_ext <<_ACEOF
3813 #line $LINENO "configure"
3814 #include "confdefs.h"
3816 #ifdef F77_DUMMY_MAIN
3817 # ifdef __cplusplus
3818 extern "C"
3819 # endif
3820 int F77_DUMMY_MAIN() { return 1; }
3821 #endif
3823 main ()
3827 return 0;
3829 _ACEOF
3830 rm -f conftest.$ac_objext conftest$ac_exeext
3831 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3832 (eval $ac_link) 2>&5
3833 ac_status=$?
3834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3835 (exit $ac_status); } &&
3836 { ac_try='test -s conftest$ac_exeext'
3837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3838 (eval $ac_try) 2>&5
3839 ac_status=$?
3840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3841 (exit $ac_status); }; }; then
3842 ac_R_nospace=yes
3843 else
3844 echo "$as_me: failed program was:" >&5
3845 cat conftest.$ac_ext >&5
3846 ac_R_nospace=no
3848 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3849 if test $ac_R_nospace = yes; then
3850 echo "$as_me:$LINENO: result: no" >&5
3851 echo "${ECHO_T}no" >&6
3852 X_LIBS="$X_LIBS -R$x_libraries"
3853 else
3854 LIBS="$ac_xsave_LIBS -R $x_libraries"
3855 cat >conftest.$ac_ext <<_ACEOF
3856 #line $LINENO "configure"
3857 #include "confdefs.h"
3859 #ifdef F77_DUMMY_MAIN
3860 # ifdef __cplusplus
3861 extern "C"
3862 # endif
3863 int F77_DUMMY_MAIN() { return 1; }
3864 #endif
3866 main ()
3870 return 0;
3872 _ACEOF
3873 rm -f conftest.$ac_objext conftest$ac_exeext
3874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3875 (eval $ac_link) 2>&5
3876 ac_status=$?
3877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3878 (exit $ac_status); } &&
3879 { ac_try='test -s conftest$ac_exeext'
3880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3881 (eval $ac_try) 2>&5
3882 ac_status=$?
3883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3884 (exit $ac_status); }; }; then
3885 ac_R_space=yes
3886 else
3887 echo "$as_me: failed program was:" >&5
3888 cat conftest.$ac_ext >&5
3889 ac_R_space=no
3891 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3892 if test $ac_R_space = yes; then
3893 echo "$as_me:$LINENO: result: yes" >&5
3894 echo "${ECHO_T}yes" >&6
3895 X_LIBS="$X_LIBS -R $x_libraries"
3896 else
3897 echo "$as_me:$LINENO: result: neither works" >&5
3898 echo "${ECHO_T}neither works" >&6
3901 LIBS=$ac_xsave_LIBS
3902 esac
3905 # Check for system-dependent libraries X programs must link with.
3906 # Do this before checking for the system-independent R6 libraries
3907 # (-lICE), since we may need -lsocket or whatever for X linking.
3909 if test "$ISC" = yes; then
3910 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
3911 else
3912 # Martyn Johnson says this is needed for Ultrix, if the X
3913 # libraries were built with DECnet support. And Karl Berry says
3914 # the Alpha needs dnet_stub (dnet does not exist).
3915 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
3916 cat >conftest.$ac_ext <<_ACEOF
3917 #line $LINENO "configure"
3918 #include "confdefs.h"
3920 /* Override any gcc2 internal prototype to avoid an error. */
3921 #ifdef __cplusplus
3922 extern "C"
3923 #endif
3924 /* We use char because int might match the return type of a gcc2
3925 builtin and then its argument prototype would still apply. */
3926 char XOpenDisplay ();
3927 #ifdef F77_DUMMY_MAIN
3928 # ifdef __cplusplus
3929 extern "C"
3930 # endif
3931 int F77_DUMMY_MAIN() { return 1; }
3932 #endif
3934 main ()
3936 XOpenDisplay ();
3938 return 0;
3940 _ACEOF
3941 rm -f conftest.$ac_objext conftest$ac_exeext
3942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3943 (eval $ac_link) 2>&5
3944 ac_status=$?
3945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3946 (exit $ac_status); } &&
3947 { ac_try='test -s conftest$ac_exeext'
3948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3949 (eval $ac_try) 2>&5
3950 ac_status=$?
3951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3952 (exit $ac_status); }; }; then
3954 else
3955 echo "$as_me: failed program was:" >&5
3956 cat conftest.$ac_ext >&5
3957 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
3958 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
3959 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
3960 echo $ECHO_N "(cached) $ECHO_C" >&6
3961 else
3962 ac_check_lib_save_LIBS=$LIBS
3963 LIBS="-ldnet $LIBS"
3964 cat >conftest.$ac_ext <<_ACEOF
3965 #line $LINENO "configure"
3966 #include "confdefs.h"
3968 /* Override any gcc2 internal prototype to avoid an error. */
3969 #ifdef __cplusplus
3970 extern "C"
3971 #endif
3972 /* We use char because int might match the return type of a gcc2
3973 builtin and then its argument prototype would still apply. */
3974 char dnet_ntoa ();
3975 #ifdef F77_DUMMY_MAIN
3976 # ifdef __cplusplus
3977 extern "C"
3978 # endif
3979 int F77_DUMMY_MAIN() { return 1; }
3980 #endif
3982 main ()
3984 dnet_ntoa ();
3986 return 0;
3988 _ACEOF
3989 rm -f conftest.$ac_objext conftest$ac_exeext
3990 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3991 (eval $ac_link) 2>&5
3992 ac_status=$?
3993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3994 (exit $ac_status); } &&
3995 { ac_try='test -s conftest$ac_exeext'
3996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3997 (eval $ac_try) 2>&5
3998 ac_status=$?
3999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4000 (exit $ac_status); }; }; then
4001 ac_cv_lib_dnet_dnet_ntoa=yes
4002 else
4003 echo "$as_me: failed program was:" >&5
4004 cat conftest.$ac_ext >&5
4005 ac_cv_lib_dnet_dnet_ntoa=no
4007 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4008 LIBS=$ac_check_lib_save_LIBS
4010 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
4011 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
4012 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
4013 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
4016 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
4017 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
4018 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
4019 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
4020 echo $ECHO_N "(cached) $ECHO_C" >&6
4021 else
4022 ac_check_lib_save_LIBS=$LIBS
4023 LIBS="-ldnet_stub $LIBS"
4024 cat >conftest.$ac_ext <<_ACEOF
4025 #line $LINENO "configure"
4026 #include "confdefs.h"
4028 /* Override any gcc2 internal prototype to avoid an error. */
4029 #ifdef __cplusplus
4030 extern "C"
4031 #endif
4032 /* We use char because int might match the return type of a gcc2
4033 builtin and then its argument prototype would still apply. */
4034 char dnet_ntoa ();
4035 #ifdef F77_DUMMY_MAIN
4036 # ifdef __cplusplus
4037 extern "C"
4038 # endif
4039 int F77_DUMMY_MAIN() { return 1; }
4040 #endif
4042 main ()
4044 dnet_ntoa ();
4046 return 0;
4048 _ACEOF
4049 rm -f conftest.$ac_objext conftest$ac_exeext
4050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4051 (eval $ac_link) 2>&5
4052 ac_status=$?
4053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4054 (exit $ac_status); } &&
4055 { ac_try='test -s conftest$ac_exeext'
4056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4057 (eval $ac_try) 2>&5
4058 ac_status=$?
4059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4060 (exit $ac_status); }; }; then
4061 ac_cv_lib_dnet_stub_dnet_ntoa=yes
4062 else
4063 echo "$as_me: failed program was:" >&5
4064 cat conftest.$ac_ext >&5
4065 ac_cv_lib_dnet_stub_dnet_ntoa=no
4067 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4068 LIBS=$ac_check_lib_save_LIBS
4070 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
4071 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
4072 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
4073 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
4078 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4079 LIBS="$ac_xsave_LIBS"
4081 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
4082 # to get the SysV transport functions.
4083 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
4084 # needs -lnsl.
4085 # The nsl library prevents programs from opening the X display
4086 # on Irix 5.2, according to T.E. Dickey.
4087 # The functions gethostbyname, getservbyname, and inet_addr are
4088 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
4089 echo "$as_me:$LINENO: checking for gethostbyname" >&5
4090 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
4091 if test "${ac_cv_func_gethostbyname+set}" = set; then
4092 echo $ECHO_N "(cached) $ECHO_C" >&6
4093 else
4094 cat >conftest.$ac_ext <<_ACEOF
4095 #line $LINENO "configure"
4096 #include "confdefs.h"
4097 /* System header to define __stub macros and hopefully few prototypes,
4098 which can conflict with char gethostbyname (); below. */
4099 #include <assert.h>
4100 /* Override any gcc2 internal prototype to avoid an error. */
4101 #ifdef __cplusplus
4102 extern "C"
4103 #endif
4104 /* We use char because int might match the return type of a gcc2
4105 builtin and then its argument prototype would still apply. */
4106 char gethostbyname ();
4107 char (*f) ();
4109 #ifdef F77_DUMMY_MAIN
4110 # ifdef __cplusplus
4111 extern "C"
4112 # endif
4113 int F77_DUMMY_MAIN() { return 1; }
4114 #endif
4116 main ()
4118 /* The GNU C library defines this for functions which it implements
4119 to always fail with ENOSYS. Some functions are actually named
4120 something starting with __ and the normal name is an alias. */
4121 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
4122 choke me
4123 #else
4124 f = gethostbyname;
4125 #endif
4128 return 0;
4130 _ACEOF
4131 rm -f conftest.$ac_objext conftest$ac_exeext
4132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4133 (eval $ac_link) 2>&5
4134 ac_status=$?
4135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4136 (exit $ac_status); } &&
4137 { ac_try='test -s conftest$ac_exeext'
4138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4139 (eval $ac_try) 2>&5
4140 ac_status=$?
4141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4142 (exit $ac_status); }; }; then
4143 ac_cv_func_gethostbyname=yes
4144 else
4145 echo "$as_me: failed program was:" >&5
4146 cat conftest.$ac_ext >&5
4147 ac_cv_func_gethostbyname=no
4149 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4151 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
4152 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
4154 if test $ac_cv_func_gethostbyname = no; then
4155 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4156 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
4157 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4158 echo $ECHO_N "(cached) $ECHO_C" >&6
4159 else
4160 ac_check_lib_save_LIBS=$LIBS
4161 LIBS="-lnsl $LIBS"
4162 cat >conftest.$ac_ext <<_ACEOF
4163 #line $LINENO "configure"
4164 #include "confdefs.h"
4166 /* Override any gcc2 internal prototype to avoid an error. */
4167 #ifdef __cplusplus
4168 extern "C"
4169 #endif
4170 /* We use char because int might match the return type of a gcc2
4171 builtin and then its argument prototype would still apply. */
4172 char gethostbyname ();
4173 #ifdef F77_DUMMY_MAIN
4174 # ifdef __cplusplus
4175 extern "C"
4176 # endif
4177 int F77_DUMMY_MAIN() { return 1; }
4178 #endif
4180 main ()
4182 gethostbyname ();
4184 return 0;
4186 _ACEOF
4187 rm -f conftest.$ac_objext conftest$ac_exeext
4188 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4189 (eval $ac_link) 2>&5
4190 ac_status=$?
4191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4192 (exit $ac_status); } &&
4193 { ac_try='test -s conftest$ac_exeext'
4194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4195 (eval $ac_try) 2>&5
4196 ac_status=$?
4197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4198 (exit $ac_status); }; }; then
4199 ac_cv_lib_nsl_gethostbyname=yes
4200 else
4201 echo "$as_me: failed program was:" >&5
4202 cat conftest.$ac_ext >&5
4203 ac_cv_lib_nsl_gethostbyname=no
4205 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4206 LIBS=$ac_check_lib_save_LIBS
4208 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4209 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
4210 if test $ac_cv_lib_nsl_gethostbyname = yes; then
4211 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
4214 if test $ac_cv_lib_nsl_gethostbyname = no; then
4215 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
4216 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
4217 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
4218 echo $ECHO_N "(cached) $ECHO_C" >&6
4219 else
4220 ac_check_lib_save_LIBS=$LIBS
4221 LIBS="-lbsd $LIBS"
4222 cat >conftest.$ac_ext <<_ACEOF
4223 #line $LINENO "configure"
4224 #include "confdefs.h"
4226 /* Override any gcc2 internal prototype to avoid an error. */
4227 #ifdef __cplusplus
4228 extern "C"
4229 #endif
4230 /* We use char because int might match the return type of a gcc2
4231 builtin and then its argument prototype would still apply. */
4232 char gethostbyname ();
4233 #ifdef F77_DUMMY_MAIN
4234 # ifdef __cplusplus
4235 extern "C"
4236 # endif
4237 int F77_DUMMY_MAIN() { return 1; }
4238 #endif
4240 main ()
4242 gethostbyname ();
4244 return 0;
4246 _ACEOF
4247 rm -f conftest.$ac_objext conftest$ac_exeext
4248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4249 (eval $ac_link) 2>&5
4250 ac_status=$?
4251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4252 (exit $ac_status); } &&
4253 { ac_try='test -s conftest$ac_exeext'
4254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4255 (eval $ac_try) 2>&5
4256 ac_status=$?
4257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4258 (exit $ac_status); }; }; then
4259 ac_cv_lib_bsd_gethostbyname=yes
4260 else
4261 echo "$as_me: failed program was:" >&5
4262 cat conftest.$ac_ext >&5
4263 ac_cv_lib_bsd_gethostbyname=no
4265 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4266 LIBS=$ac_check_lib_save_LIBS
4268 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
4269 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
4270 if test $ac_cv_lib_bsd_gethostbyname = yes; then
4271 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
4277 # lieder@skyler.mavd.honeywell.com says without -lsocket,
4278 # socket/setsockopt and other routines are undefined under SCO ODT
4279 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
4280 # on later versions), says Simon Leinen: it contains gethostby*
4281 # variants that don't use the nameserver (or something). -lsocket
4282 # must be given before -lnsl if both are needed. We assume that
4283 # if connect needs -lnsl, so does gethostbyname.
4284 echo "$as_me:$LINENO: checking for connect" >&5
4285 echo $ECHO_N "checking for connect... $ECHO_C" >&6
4286 if test "${ac_cv_func_connect+set}" = set; then
4287 echo $ECHO_N "(cached) $ECHO_C" >&6
4288 else
4289 cat >conftest.$ac_ext <<_ACEOF
4290 #line $LINENO "configure"
4291 #include "confdefs.h"
4292 /* System header to define __stub macros and hopefully few prototypes,
4293 which can conflict with char connect (); below. */
4294 #include <assert.h>
4295 /* Override any gcc2 internal prototype to avoid an error. */
4296 #ifdef __cplusplus
4297 extern "C"
4298 #endif
4299 /* We use char because int might match the return type of a gcc2
4300 builtin and then its argument prototype would still apply. */
4301 char connect ();
4302 char (*f) ();
4304 #ifdef F77_DUMMY_MAIN
4305 # ifdef __cplusplus
4306 extern "C"
4307 # endif
4308 int F77_DUMMY_MAIN() { return 1; }
4309 #endif
4311 main ()
4313 /* The GNU C library defines this for functions which it implements
4314 to always fail with ENOSYS. Some functions are actually named
4315 something starting with __ and the normal name is an alias. */
4316 #if defined (__stub_connect) || defined (__stub___connect)
4317 choke me
4318 #else
4319 f = connect;
4320 #endif
4323 return 0;
4325 _ACEOF
4326 rm -f conftest.$ac_objext conftest$ac_exeext
4327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4328 (eval $ac_link) 2>&5
4329 ac_status=$?
4330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4331 (exit $ac_status); } &&
4332 { ac_try='test -s conftest$ac_exeext'
4333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4334 (eval $ac_try) 2>&5
4335 ac_status=$?
4336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4337 (exit $ac_status); }; }; then
4338 ac_cv_func_connect=yes
4339 else
4340 echo "$as_me: failed program was:" >&5
4341 cat conftest.$ac_ext >&5
4342 ac_cv_func_connect=no
4344 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4346 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
4347 echo "${ECHO_T}$ac_cv_func_connect" >&6
4349 if test $ac_cv_func_connect = no; then
4350 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
4351 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
4352 if test "${ac_cv_lib_socket_connect+set}" = set; then
4353 echo $ECHO_N "(cached) $ECHO_C" >&6
4354 else
4355 ac_check_lib_save_LIBS=$LIBS
4356 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
4357 cat >conftest.$ac_ext <<_ACEOF
4358 #line $LINENO "configure"
4359 #include "confdefs.h"
4361 /* Override any gcc2 internal prototype to avoid an error. */
4362 #ifdef __cplusplus
4363 extern "C"
4364 #endif
4365 /* We use char because int might match the return type of a gcc2
4366 builtin and then its argument prototype would still apply. */
4367 char connect ();
4368 #ifdef F77_DUMMY_MAIN
4369 # ifdef __cplusplus
4370 extern "C"
4371 # endif
4372 int F77_DUMMY_MAIN() { return 1; }
4373 #endif
4375 main ()
4377 connect ();
4379 return 0;
4381 _ACEOF
4382 rm -f conftest.$ac_objext conftest$ac_exeext
4383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4384 (eval $ac_link) 2>&5
4385 ac_status=$?
4386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4387 (exit $ac_status); } &&
4388 { ac_try='test -s conftest$ac_exeext'
4389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4390 (eval $ac_try) 2>&5
4391 ac_status=$?
4392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4393 (exit $ac_status); }; }; then
4394 ac_cv_lib_socket_connect=yes
4395 else
4396 echo "$as_me: failed program was:" >&5
4397 cat conftest.$ac_ext >&5
4398 ac_cv_lib_socket_connect=no
4400 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4401 LIBS=$ac_check_lib_save_LIBS
4403 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
4404 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
4405 if test $ac_cv_lib_socket_connect = yes; then
4406 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
4411 # Guillermo Gomez says -lposix is necessary on A/UX.
4412 echo "$as_me:$LINENO: checking for remove" >&5
4413 echo $ECHO_N "checking for remove... $ECHO_C" >&6
4414 if test "${ac_cv_func_remove+set}" = set; then
4415 echo $ECHO_N "(cached) $ECHO_C" >&6
4416 else
4417 cat >conftest.$ac_ext <<_ACEOF
4418 #line $LINENO "configure"
4419 #include "confdefs.h"
4420 /* System header to define __stub macros and hopefully few prototypes,
4421 which can conflict with char remove (); below. */
4422 #include <assert.h>
4423 /* Override any gcc2 internal prototype to avoid an error. */
4424 #ifdef __cplusplus
4425 extern "C"
4426 #endif
4427 /* We use char because int might match the return type of a gcc2
4428 builtin and then its argument prototype would still apply. */
4429 char remove ();
4430 char (*f) ();
4432 #ifdef F77_DUMMY_MAIN
4433 # ifdef __cplusplus
4434 extern "C"
4435 # endif
4436 int F77_DUMMY_MAIN() { return 1; }
4437 #endif
4439 main ()
4441 /* The GNU C library defines this for functions which it implements
4442 to always fail with ENOSYS. Some functions are actually named
4443 something starting with __ and the normal name is an alias. */
4444 #if defined (__stub_remove) || defined (__stub___remove)
4445 choke me
4446 #else
4447 f = remove;
4448 #endif
4451 return 0;
4453 _ACEOF
4454 rm -f conftest.$ac_objext conftest$ac_exeext
4455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4456 (eval $ac_link) 2>&5
4457 ac_status=$?
4458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4459 (exit $ac_status); } &&
4460 { ac_try='test -s conftest$ac_exeext'
4461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4462 (eval $ac_try) 2>&5
4463 ac_status=$?
4464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4465 (exit $ac_status); }; }; then
4466 ac_cv_func_remove=yes
4467 else
4468 echo "$as_me: failed program was:" >&5
4469 cat conftest.$ac_ext >&5
4470 ac_cv_func_remove=no
4472 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4474 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
4475 echo "${ECHO_T}$ac_cv_func_remove" >&6
4477 if test $ac_cv_func_remove = no; then
4478 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
4479 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
4480 if test "${ac_cv_lib_posix_remove+set}" = set; then
4481 echo $ECHO_N "(cached) $ECHO_C" >&6
4482 else
4483 ac_check_lib_save_LIBS=$LIBS
4484 LIBS="-lposix $LIBS"
4485 cat >conftest.$ac_ext <<_ACEOF
4486 #line $LINENO "configure"
4487 #include "confdefs.h"
4489 /* Override any gcc2 internal prototype to avoid an error. */
4490 #ifdef __cplusplus
4491 extern "C"
4492 #endif
4493 /* We use char because int might match the return type of a gcc2
4494 builtin and then its argument prototype would still apply. */
4495 char remove ();
4496 #ifdef F77_DUMMY_MAIN
4497 # ifdef __cplusplus
4498 extern "C"
4499 # endif
4500 int F77_DUMMY_MAIN() { return 1; }
4501 #endif
4503 main ()
4505 remove ();
4507 return 0;
4509 _ACEOF
4510 rm -f conftest.$ac_objext conftest$ac_exeext
4511 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4512 (eval $ac_link) 2>&5
4513 ac_status=$?
4514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4515 (exit $ac_status); } &&
4516 { ac_try='test -s conftest$ac_exeext'
4517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4518 (eval $ac_try) 2>&5
4519 ac_status=$?
4520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4521 (exit $ac_status); }; }; then
4522 ac_cv_lib_posix_remove=yes
4523 else
4524 echo "$as_me: failed program was:" >&5
4525 cat conftest.$ac_ext >&5
4526 ac_cv_lib_posix_remove=no
4528 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4529 LIBS=$ac_check_lib_save_LIBS
4531 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
4532 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
4533 if test $ac_cv_lib_posix_remove = yes; then
4534 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
4539 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
4540 echo "$as_me:$LINENO: checking for shmat" >&5
4541 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
4542 if test "${ac_cv_func_shmat+set}" = set; then
4543 echo $ECHO_N "(cached) $ECHO_C" >&6
4544 else
4545 cat >conftest.$ac_ext <<_ACEOF
4546 #line $LINENO "configure"
4547 #include "confdefs.h"
4548 /* System header to define __stub macros and hopefully few prototypes,
4549 which can conflict with char shmat (); below. */
4550 #include <assert.h>
4551 /* Override any gcc2 internal prototype to avoid an error. */
4552 #ifdef __cplusplus
4553 extern "C"
4554 #endif
4555 /* We use char because int might match the return type of a gcc2
4556 builtin and then its argument prototype would still apply. */
4557 char shmat ();
4558 char (*f) ();
4560 #ifdef F77_DUMMY_MAIN
4561 # ifdef __cplusplus
4562 extern "C"
4563 # endif
4564 int F77_DUMMY_MAIN() { return 1; }
4565 #endif
4567 main ()
4569 /* The GNU C library defines this for functions which it implements
4570 to always fail with ENOSYS. Some functions are actually named
4571 something starting with __ and the normal name is an alias. */
4572 #if defined (__stub_shmat) || defined (__stub___shmat)
4573 choke me
4574 #else
4575 f = shmat;
4576 #endif
4579 return 0;
4581 _ACEOF
4582 rm -f conftest.$ac_objext conftest$ac_exeext
4583 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4584 (eval $ac_link) 2>&5
4585 ac_status=$?
4586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4587 (exit $ac_status); } &&
4588 { ac_try='test -s conftest$ac_exeext'
4589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4590 (eval $ac_try) 2>&5
4591 ac_status=$?
4592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4593 (exit $ac_status); }; }; then
4594 ac_cv_func_shmat=yes
4595 else
4596 echo "$as_me: failed program was:" >&5
4597 cat conftest.$ac_ext >&5
4598 ac_cv_func_shmat=no
4600 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4602 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
4603 echo "${ECHO_T}$ac_cv_func_shmat" >&6
4605 if test $ac_cv_func_shmat = no; then
4606 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
4607 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
4608 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
4609 echo $ECHO_N "(cached) $ECHO_C" >&6
4610 else
4611 ac_check_lib_save_LIBS=$LIBS
4612 LIBS="-lipc $LIBS"
4613 cat >conftest.$ac_ext <<_ACEOF
4614 #line $LINENO "configure"
4615 #include "confdefs.h"
4617 /* Override any gcc2 internal prototype to avoid an error. */
4618 #ifdef __cplusplus
4619 extern "C"
4620 #endif
4621 /* We use char because int might match the return type of a gcc2
4622 builtin and then its argument prototype would still apply. */
4623 char shmat ();
4624 #ifdef F77_DUMMY_MAIN
4625 # ifdef __cplusplus
4626 extern "C"
4627 # endif
4628 int F77_DUMMY_MAIN() { return 1; }
4629 #endif
4631 main ()
4633 shmat ();
4635 return 0;
4637 _ACEOF
4638 rm -f conftest.$ac_objext conftest$ac_exeext
4639 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4640 (eval $ac_link) 2>&5
4641 ac_status=$?
4642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4643 (exit $ac_status); } &&
4644 { ac_try='test -s conftest$ac_exeext'
4645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4646 (eval $ac_try) 2>&5
4647 ac_status=$?
4648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4649 (exit $ac_status); }; }; then
4650 ac_cv_lib_ipc_shmat=yes
4651 else
4652 echo "$as_me: failed program was:" >&5
4653 cat conftest.$ac_ext >&5
4654 ac_cv_lib_ipc_shmat=no
4656 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4657 LIBS=$ac_check_lib_save_LIBS
4659 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
4660 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
4661 if test $ac_cv_lib_ipc_shmat = yes; then
4662 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
4668 # Check for libraries that X11R6 Xt/Xaw programs need.
4669 ac_save_LDFLAGS=$LDFLAGS
4670 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
4671 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
4672 # check for ICE first), but we must link in the order -lSM -lICE or
4673 # we get undefined symbols. So assume we have SM if we have ICE.
4674 # These have to be linked with before -lX11, unlike the other
4675 # libraries we check for below, so use a different variable.
4676 # John Interrante, Karl Berry
4677 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
4678 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
4679 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
4680 echo $ECHO_N "(cached) $ECHO_C" >&6
4681 else
4682 ac_check_lib_save_LIBS=$LIBS
4683 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
4684 cat >conftest.$ac_ext <<_ACEOF
4685 #line $LINENO "configure"
4686 #include "confdefs.h"
4688 /* Override any gcc2 internal prototype to avoid an error. */
4689 #ifdef __cplusplus
4690 extern "C"
4691 #endif
4692 /* We use char because int might match the return type of a gcc2
4693 builtin and then its argument prototype would still apply. */
4694 char IceConnectionNumber ();
4695 #ifdef F77_DUMMY_MAIN
4696 # ifdef __cplusplus
4697 extern "C"
4698 # endif
4699 int F77_DUMMY_MAIN() { return 1; }
4700 #endif
4702 main ()
4704 IceConnectionNumber ();
4706 return 0;
4708 _ACEOF
4709 rm -f conftest.$ac_objext conftest$ac_exeext
4710 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4711 (eval $ac_link) 2>&5
4712 ac_status=$?
4713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4714 (exit $ac_status); } &&
4715 { ac_try='test -s conftest$ac_exeext'
4716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4717 (eval $ac_try) 2>&5
4718 ac_status=$?
4719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4720 (exit $ac_status); }; }; then
4721 ac_cv_lib_ICE_IceConnectionNumber=yes
4722 else
4723 echo "$as_me: failed program was:" >&5
4724 cat conftest.$ac_ext >&5
4725 ac_cv_lib_ICE_IceConnectionNumber=no
4727 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4728 LIBS=$ac_check_lib_save_LIBS
4730 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
4731 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
4732 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
4733 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
4736 LDFLAGS=$ac_save_LDFLAGS
4740 CFLAGS="$CFLAGS $X_CFLAGS"
4741 LDFLAGS="$LDFLAGS $X_LIBS"
4743 # check pthread style (-pthread / -lpthread)
4744 echo "$as_me:$LINENO: checking if compiler recognizes -pthread" >&5
4745 echo $ECHO_N "checking if compiler recognizes -pthread... $ECHO_C" >&6
4746 if test "${myapp_cv_gcc_pthread+set}" = set; then
4747 echo $ECHO_N "(cached) $ECHO_C" >&6
4748 else
4749 ac_save_CFLAGS=$CFLAGS
4750 CFLAGS="$CFLAGS -pthread"
4753 ac_ext=c
4754 ac_cpp='$CPP $CPPFLAGS'
4755 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4756 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4757 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4759 cat >conftest.$ac_ext <<_ACEOF
4760 #line $LINENO "configure"
4761 #include "confdefs.h"
4762 #include <pthread.h>
4763 #ifdef F77_DUMMY_MAIN
4764 # ifdef __cplusplus
4765 extern "C"
4766 # endif
4767 int F77_DUMMY_MAIN() { return 1; }
4768 #endif
4770 main ()
4772 void *p = pthread_create;
4774 return 0;
4776 _ACEOF
4777 rm -f conftest.$ac_objext conftest$ac_exeext
4778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4779 (eval $ac_link) 2>&5
4780 ac_status=$?
4781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4782 (exit $ac_status); } &&
4783 { ac_try='test -s conftest$ac_exeext'
4784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4785 (eval $ac_try) 2>&5
4786 ac_status=$?
4787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4788 (exit $ac_status); }; }; then
4789 CFLAGS="$CFLAGS -pthread"
4790 myapp_cv_gcc_pthread=yes
4791 else
4792 echo "$as_me: failed program was:" >&5
4793 cat conftest.$ac_ext >&5
4794 myapp_cv_gcc_pthread=no
4797 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4798 ac_ext=c
4799 ac_cpp='$CPP $CPPFLAGS'
4800 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4801 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4802 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4804 CFLAGS=$ac_save_CFLAGS
4807 echo "$as_me:$LINENO: result: $myapp_cv_gcc_pthread" >&5
4808 echo "${ECHO_T}$myapp_cv_gcc_pthread" >&6
4809 if test $myapp_cv_gcc_pthread = yes
4810 then
4811 myapp_threads=""
4812 CFLAGS="$CFLAGS -pthread"
4813 else
4814 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
4815 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
4816 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
4817 echo $ECHO_N "(cached) $ECHO_C" >&6
4818 else
4819 ac_check_lib_save_LIBS=$LIBS
4820 LIBS="-lpthread $LIBS"
4821 cat >conftest.$ac_ext <<_ACEOF
4822 #line $LINENO "configure"
4823 #include "confdefs.h"
4825 /* Override any gcc2 internal prototype to avoid an error. */
4826 #ifdef __cplusplus
4827 extern "C"
4828 #endif
4829 /* We use char because int might match the return type of a gcc2
4830 builtin and then its argument prototype would still apply. */
4831 char pthread_create ();
4832 #ifdef F77_DUMMY_MAIN
4833 # ifdef __cplusplus
4834 extern "C"
4835 # endif
4836 int F77_DUMMY_MAIN() { return 1; }
4837 #endif
4839 main ()
4841 pthread_create ();
4843 return 0;
4845 _ACEOF
4846 rm -f conftest.$ac_objext conftest$ac_exeext
4847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4848 (eval $ac_link) 2>&5
4849 ac_status=$?
4850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4851 (exit $ac_status); } &&
4852 { ac_try='test -s conftest$ac_exeext'
4853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4854 (eval $ac_try) 2>&5
4855 ac_status=$?
4856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4857 (exit $ac_status); }; }; then
4858 ac_cv_lib_pthread_pthread_create=yes
4859 else
4860 echo "$as_me: failed program was:" >&5
4861 cat conftest.$ac_ext >&5
4862 ac_cv_lib_pthread_pthread_create=no
4864 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4865 LIBS=$ac_check_lib_save_LIBS
4867 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
4868 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
4869 if test $ac_cv_lib_pthread_pthread_create = yes; then
4870 myapp_threads=-lpthread
4871 else
4872 echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
4873 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
4874 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
4875 echo $ECHO_N "(cached) $ECHO_C" >&6
4876 else
4877 ac_check_lib_save_LIBS=$LIBS
4878 LIBS="-lc_r $LIBS"
4879 cat >conftest.$ac_ext <<_ACEOF
4880 #line $LINENO "configure"
4881 #include "confdefs.h"
4883 /* Override any gcc2 internal prototype to avoid an error. */
4884 #ifdef __cplusplus
4885 extern "C"
4886 #endif
4887 /* We use char because int might match the return type of a gcc2
4888 builtin and then its argument prototype would still apply. */
4889 char pthread_create ();
4890 #ifdef F77_DUMMY_MAIN
4891 # ifdef __cplusplus
4892 extern "C"
4893 # endif
4894 int F77_DUMMY_MAIN() { return 1; }
4895 #endif
4897 main ()
4899 pthread_create ();
4901 return 0;
4903 _ACEOF
4904 rm -f conftest.$ac_objext conftest$ac_exeext
4905 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4906 (eval $ac_link) 2>&5
4907 ac_status=$?
4908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4909 (exit $ac_status); } &&
4910 { ac_try='test -s conftest$ac_exeext'
4911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4912 (eval $ac_try) 2>&5
4913 ac_status=$?
4914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4915 (exit $ac_status); }; }; then
4916 ac_cv_lib_c_r_pthread_create=yes
4917 else
4918 echo "$as_me: failed program was:" >&5
4919 cat conftest.$ac_ext >&5
4920 ac_cv_lib_c_r_pthread_create=no
4922 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4923 LIBS=$ac_check_lib_save_LIBS
4925 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
4926 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
4927 if test $ac_cv_lib_c_r_pthread_create = yes; then
4928 myapp_threads=-lc_r
4935 # Check for SDL
4937 # Check whether --with-sdl-prefix or --without-sdl-prefix was given.
4938 if test "${with_sdl_prefix+set}" = set; then
4939 withval="$with_sdl_prefix"
4940 sdl_prefix="$withval"
4941 else
4942 sdl_prefix=""
4945 # Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
4946 if test "${with_sdl_exec_prefix+set}" = set; then
4947 withval="$with_sdl_exec_prefix"
4948 sdl_exec_prefix="$withval"
4949 else
4950 sdl_exec_prefix=""
4952 # Check whether --enable-sdltest or --disable-sdltest was given.
4953 if test "${enable_sdltest+set}" = set; then
4954 enableval="$enable_sdltest"
4956 else
4957 enable_sdltest=yes
4960 if test x$sdl_exec_prefix != x ; then
4961 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
4962 if test x${SDL_CONFIG+set} != xset ; then
4963 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
4966 if test x$sdl_prefix != x ; then
4967 sdl_args="$sdl_args --prefix=$sdl_prefix"
4968 if test x${SDL_CONFIG+set} != xset ; then
4969 SDL_CONFIG=$sdl_prefix/bin/sdl-config
4974 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
4975 # Extract the first word of "sdl-config", so it can be a program name with args.
4976 set dummy sdl-config; ac_word=$2
4977 echo "$as_me:$LINENO: checking for $ac_word" >&5
4978 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4979 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
4980 echo $ECHO_N "(cached) $ECHO_C" >&6
4981 else
4982 case $SDL_CONFIG in
4983 [\\/]* | ?:[\\/]*)
4984 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
4987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4988 for as_dir in $PATH
4990 IFS=$as_save_IFS
4991 test -z "$as_dir" && as_dir=.
4992 for ac_exec_ext in '' $ac_executable_extensions; do
4993 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4994 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4995 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4996 break 2
4998 done
4999 done
5001 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
5003 esac
5005 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
5007 if test -n "$SDL_CONFIG"; then
5008 echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
5009 echo "${ECHO_T}$SDL_CONFIG" >&6
5010 else
5011 echo "$as_me:$LINENO: result: no" >&5
5012 echo "${ECHO_T}no" >&6
5015 min_sdl_version=1.2.0
5016 echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
5017 echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
5018 no_sdl=""
5019 if test "$SDL_CONFIG" = "no" ; then
5020 no_sdl=yes
5021 else
5022 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
5023 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
5025 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
5026 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
5027 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
5028 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
5029 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
5030 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
5031 if test "x$enable_sdltest" = "xyes" ; then
5032 ac_save_CFLAGS="$CFLAGS"
5033 ac_save_LIBS="$LIBS"
5034 CFLAGS="$CFLAGS $SDL_CFLAGS"
5035 LIBS="$LIBS $SDL_LIBS"
5036 rm -f conf.sdltest
5037 if test "$cross_compiling" = yes; then
5038 echo $ac_n "cross compiling; assumed OK... $ac_c"
5039 else
5040 cat >conftest.$ac_ext <<_ACEOF
5041 #line $LINENO "configure"
5042 #include "confdefs.h"
5044 #include <stdio.h>
5045 #include <stdlib.h>
5046 #include <string.h>
5047 #include "SDL.h"
5049 char*
5050 my_strdup (char *str)
5052 char *new_str;
5054 if (str)
5056 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
5057 strcpy (new_str, str);
5059 else
5060 new_str = NULL;
5062 return new_str;
5065 int main (int argc, char *argv[])
5067 int major, minor, micro;
5068 char *tmp_version;
5070 /* This hangs on some systems (?)
5071 system ("touch conf.sdltest");
5073 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
5075 /* HP/UX 9 (%@#!) writes to sscanf strings */
5076 tmp_version = my_strdup("$min_sdl_version");
5077 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
5078 printf("%s, bad version string\n", "$min_sdl_version");
5079 exit(1);
5082 if (($sdl_major_version > major) ||
5083 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
5084 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
5086 return 0;
5088 else
5090 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
5091 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
5092 printf("*** best to upgrade to the required version.\n");
5093 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
5094 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
5095 printf("*** config.cache before re-running configure\n");
5096 return 1;
5101 _ACEOF
5102 rm -f conftest$ac_exeext
5103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5104 (eval $ac_link) 2>&5
5105 ac_status=$?
5106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5107 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5109 (eval $ac_try) 2>&5
5110 ac_status=$?
5111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5112 (exit $ac_status); }; }; then
5114 else
5115 echo "$as_me: program exited with status $ac_status" >&5
5116 echo "$as_me: failed program was:" >&5
5117 cat conftest.$ac_ext >&5
5118 ( exit $ac_status )
5119 no_sdl=yes
5121 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5123 CFLAGS="$ac_save_CFLAGS"
5124 LIBS="$ac_save_LIBS"
5127 if test "x$no_sdl" = x ; then
5128 echo "$as_me:$LINENO: result: yes" >&5
5129 echo "${ECHO_T}yes" >&6
5131 CFLAGS="$CFLAGS $SDL_CFLAGS"
5132 LDFLAGS="$LDFLAGS $SDL_LIBS"
5134 else
5135 echo "$as_me:$LINENO: result: no" >&5
5136 echo "${ECHO_T}no" >&6
5137 if test "$SDL_CONFIG" = "no" ; then
5138 echo "*** The sdl-config script installed by SDL could not be found"
5139 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
5140 echo "*** your path, or set the SDL_CONFIG environment variable to the"
5141 echo "*** full path to sdl-config."
5142 else
5143 if test -f conf.sdltest ; then
5145 else
5146 echo "*** Could not run SDL test program, checking why..."
5147 CFLAGS="$CFLAGS $SDL_CFLAGS"
5148 LIBS="$LIBS $SDL_LIBS"
5149 cat >conftest.$ac_ext <<_ACEOF
5150 #line $LINENO "configure"
5151 #include "confdefs.h"
5153 #include <stdio.h>
5154 #include "SDL.h"
5156 int main(int argc, char *argv[])
5157 { return 0; }
5158 #undef main
5159 #define main K_and_R_C_main
5161 #ifdef F77_DUMMY_MAIN
5162 # ifdef __cplusplus
5163 extern "C"
5164 # endif
5165 int F77_DUMMY_MAIN() { return 1; }
5166 #endif
5168 main ()
5170 return 0;
5172 return 0;
5174 _ACEOF
5175 rm -f conftest.$ac_objext conftest$ac_exeext
5176 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5177 (eval $ac_link) 2>&5
5178 ac_status=$?
5179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5180 (exit $ac_status); } &&
5181 { ac_try='test -s conftest$ac_exeext'
5182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5183 (eval $ac_try) 2>&5
5184 ac_status=$?
5185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5186 (exit $ac_status); }; }; then
5187 echo "*** The test program compiled, but did not run. This usually means"
5188 echo "*** that the run-time linker is not finding SDL or finding the wrong"
5189 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
5190 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
5191 echo "*** to the installed location Also, make sure you have run ldconfig if that"
5192 echo "*** is required on your system"
5193 echo "***"
5194 echo "*** If you have an old version installed, it is best to remove it, although"
5195 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
5196 else
5197 echo "$as_me: failed program was:" >&5
5198 cat conftest.$ac_ext >&5
5199 echo "*** The test program failed to compile or link. See the file config.log for the"
5200 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
5201 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
5202 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
5204 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5205 CFLAGS="$ac_save_CFLAGS"
5206 LIBS="$ac_save_LIBS"
5209 SDL_CFLAGS=""
5210 SDL_LIBS=""
5212 { { echo "$as_me:$LINENO: error: Pacman Arena requires SDL 1.2" >&5
5213 echo "$as_me: error: Pacman Arena requires SDL 1.2" >&2;}
5214 { (exit 1); exit 1; }; }
5219 rm -f conf.sdltest
5222 # Check for SDL_mixer
5223 echo "$as_me:$LINENO: checking for Mix_OpenAudio in -lSDL_mixer" >&5
5224 echo $ECHO_N "checking for Mix_OpenAudio in -lSDL_mixer... $ECHO_C" >&6
5225 if test "${ac_cv_lib_SDL_mixer_Mix_OpenAudio+set}" = set; then
5226 echo $ECHO_N "(cached) $ECHO_C" >&6
5227 else
5228 ac_check_lib_save_LIBS=$LIBS
5229 LIBS="-lSDL_mixer $LIBS"
5230 cat >conftest.$ac_ext <<_ACEOF
5231 #line $LINENO "configure"
5232 #include "confdefs.h"
5234 /* Override any gcc2 internal prototype to avoid an error. */
5235 #ifdef __cplusplus
5236 extern "C"
5237 #endif
5238 /* We use char because int might match the return type of a gcc2
5239 builtin and then its argument prototype would still apply. */
5240 char Mix_OpenAudio ();
5241 #ifdef F77_DUMMY_MAIN
5242 # ifdef __cplusplus
5243 extern "C"
5244 # endif
5245 int F77_DUMMY_MAIN() { return 1; }
5246 #endif
5248 main ()
5250 Mix_OpenAudio ();
5252 return 0;
5254 _ACEOF
5255 rm -f conftest.$ac_objext conftest$ac_exeext
5256 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5257 (eval $ac_link) 2>&5
5258 ac_status=$?
5259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5260 (exit $ac_status); } &&
5261 { ac_try='test -s conftest$ac_exeext'
5262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5263 (eval $ac_try) 2>&5
5264 ac_status=$?
5265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5266 (exit $ac_status); }; }; then
5267 ac_cv_lib_SDL_mixer_Mix_OpenAudio=yes
5268 else
5269 echo "$as_me: failed program was:" >&5
5270 cat conftest.$ac_ext >&5
5271 ac_cv_lib_SDL_mixer_Mix_OpenAudio=no
5273 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5274 LIBS=$ac_check_lib_save_LIBS
5276 echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_mixer_Mix_OpenAudio" >&5
5277 echo "${ECHO_T}$ac_cv_lib_SDL_mixer_Mix_OpenAudio" >&6
5278 if test $ac_cv_lib_SDL_mixer_Mix_OpenAudio = yes; then
5279 LDFLAGS="$LDFLAGS -lSDL_mixer"
5280 else
5281 { { echo "$as_me:$LINENO: error:
5282 *** SDL_mixer not found
5283 Pacman Arena requires SDL_mixer
5284 " >&5
5285 echo "$as_me: error:
5286 *** SDL_mixer not found
5287 Pacman Arena requires SDL_mixer
5288 " >&2;}
5289 { (exit 1); exit 1; }; }
5293 # Check for SDL_net
5294 echo "$as_me:$LINENO: checking for SDLNet_Init in -lSDL_net" >&5
5295 echo $ECHO_N "checking for SDLNet_Init in -lSDL_net... $ECHO_C" >&6
5296 if test "${ac_cv_lib_SDL_net_SDLNet_Init+set}" = set; then
5297 echo $ECHO_N "(cached) $ECHO_C" >&6
5298 else
5299 ac_check_lib_save_LIBS=$LIBS
5300 LIBS="-lSDL_net $LIBS"
5301 cat >conftest.$ac_ext <<_ACEOF
5302 #line $LINENO "configure"
5303 #include "confdefs.h"
5305 /* Override any gcc2 internal prototype to avoid an error. */
5306 #ifdef __cplusplus
5307 extern "C"
5308 #endif
5309 /* We use char because int might match the return type of a gcc2
5310 builtin and then its argument prototype would still apply. */
5311 char SDLNet_Init ();
5312 #ifdef F77_DUMMY_MAIN
5313 # ifdef __cplusplus
5314 extern "C"
5315 # endif
5316 int F77_DUMMY_MAIN() { return 1; }
5317 #endif
5319 main ()
5321 SDLNet_Init ();
5323 return 0;
5325 _ACEOF
5326 rm -f conftest.$ac_objext conftest$ac_exeext
5327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5328 (eval $ac_link) 2>&5
5329 ac_status=$?
5330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5331 (exit $ac_status); } &&
5332 { ac_try='test -s conftest$ac_exeext'
5333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5334 (eval $ac_try) 2>&5
5335 ac_status=$?
5336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5337 (exit $ac_status); }; }; then
5338 ac_cv_lib_SDL_net_SDLNet_Init=yes
5339 else
5340 echo "$as_me: failed program was:" >&5
5341 cat conftest.$ac_ext >&5
5342 ac_cv_lib_SDL_net_SDLNet_Init=no
5344 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5345 LIBS=$ac_check_lib_save_LIBS
5347 echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_net_SDLNet_Init" >&5
5348 echo "${ECHO_T}$ac_cv_lib_SDL_net_SDLNet_Init" >&6
5349 if test $ac_cv_lib_SDL_net_SDLNet_Init = yes; then
5350 LDFLAGS="$LDFLAGS -lSDL_net"
5351 else
5352 { { echo "$as_me:$LINENO: error:
5353 *** SDL_net not found
5354 Pacman Arena requires SDL_net
5355 " >&5
5356 echo "$as_me: error:
5357 *** SDL_net not found
5358 Pacman Arena requires SDL_net
5359 " >&2;}
5360 { (exit 1); exit 1; }; }
5364 echo "$as_me:$LINENO: checking for glEnable in -lGL" >&5
5365 echo $ECHO_N "checking for glEnable in -lGL... $ECHO_C" >&6
5366 if test "${ac_cv_lib_GL_glEnable+set}" = set; then
5367 echo $ECHO_N "(cached) $ECHO_C" >&6
5368 else
5369 ac_check_lib_save_LIBS=$LIBS
5370 LIBS="-lGL $LIBS"
5371 cat >conftest.$ac_ext <<_ACEOF
5372 #line $LINENO "configure"
5373 #include "confdefs.h"
5375 /* Override any gcc2 internal prototype to avoid an error. */
5376 #ifdef __cplusplus
5377 extern "C"
5378 #endif
5379 /* We use char because int might match the return type of a gcc2
5380 builtin and then its argument prototype would still apply. */
5381 char glEnable ();
5382 #ifdef F77_DUMMY_MAIN
5383 # ifdef __cplusplus
5384 extern "C"
5385 # endif
5386 int F77_DUMMY_MAIN() { return 1; }
5387 #endif
5389 main ()
5391 glEnable ();
5393 return 0;
5395 _ACEOF
5396 rm -f conftest.$ac_objext conftest$ac_exeext
5397 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5398 (eval $ac_link) 2>&5
5399 ac_status=$?
5400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5401 (exit $ac_status); } &&
5402 { ac_try='test -s conftest$ac_exeext'
5403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5404 (eval $ac_try) 2>&5
5405 ac_status=$?
5406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5407 (exit $ac_status); }; }; then
5408 ac_cv_lib_GL_glEnable=yes
5409 else
5410 echo "$as_me: failed program was:" >&5
5411 cat conftest.$ac_ext >&5
5412 ac_cv_lib_GL_glEnable=no
5414 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5415 LIBS=$ac_check_lib_save_LIBS
5417 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glEnable" >&5
5418 echo "${ECHO_T}$ac_cv_lib_GL_glEnable" >&6
5419 if test $ac_cv_lib_GL_glEnable = yes; then
5420 LDFLAGS="$LDFLAGS -lGL"
5421 else
5422 { { echo "$as_me:$LINENO: error: OpenGL libraries not found" >&5
5423 echo "$as_me: error: OpenGL libraries not found" >&2;}
5424 { (exit 1); exit 1; }; }
5428 echo "$as_me:$LINENO: checking for gluNewQuadric in -lGLU" >&5
5429 echo $ECHO_N "checking for gluNewQuadric in -lGLU... $ECHO_C" >&6
5430 if test "${ac_cv_lib_GLU_gluNewQuadric+set}" = set; then
5431 echo $ECHO_N "(cached) $ECHO_C" >&6
5432 else
5433 ac_check_lib_save_LIBS=$LIBS
5434 LIBS="-lGLU $LIBS"
5435 cat >conftest.$ac_ext <<_ACEOF
5436 #line $LINENO "configure"
5437 #include "confdefs.h"
5439 /* Override any gcc2 internal prototype to avoid an error. */
5440 #ifdef __cplusplus
5441 extern "C"
5442 #endif
5443 /* We use char because int might match the return type of a gcc2
5444 builtin and then its argument prototype would still apply. */
5445 char gluNewQuadric ();
5446 #ifdef F77_DUMMY_MAIN
5447 # ifdef __cplusplus
5448 extern "C"
5449 # endif
5450 int F77_DUMMY_MAIN() { return 1; }
5451 #endif
5453 main ()
5455 gluNewQuadric ();
5457 return 0;
5459 _ACEOF
5460 rm -f conftest.$ac_objext conftest$ac_exeext
5461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5462 (eval $ac_link) 2>&5
5463 ac_status=$?
5464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5465 (exit $ac_status); } &&
5466 { ac_try='test -s conftest$ac_exeext'
5467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5468 (eval $ac_try) 2>&5
5469 ac_status=$?
5470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5471 (exit $ac_status); }; }; then
5472 ac_cv_lib_GLU_gluNewQuadric=yes
5473 else
5474 echo "$as_me: failed program was:" >&5
5475 cat conftest.$ac_ext >&5
5476 ac_cv_lib_GLU_gluNewQuadric=no
5478 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5479 LIBS=$ac_check_lib_save_LIBS
5481 echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluNewQuadric" >&5
5482 echo "${ECHO_T}$ac_cv_lib_GLU_gluNewQuadric" >&6
5483 if test $ac_cv_lib_GLU_gluNewQuadric = yes; then
5484 LDFLAGS="$LDFLAGS -lGLU"
5485 else
5486 { { echo "$as_me:$LINENO: error: OpenGL libraries not found" >&5
5487 echo "$as_me: error: OpenGL libraries not found" >&2;}
5488 { (exit 1); exit 1; }; }
5493 ac_config_files="$ac_config_files Makefile"
5495 cat >confcache <<\_ACEOF
5496 # This file is a shell script that caches the results of configure
5497 # tests run on this system so they can be shared between configure
5498 # scripts and configure runs, see configure's option --config-cache.
5499 # It is not useful on other systems. If it contains results you don't
5500 # want to keep, you may remove or edit it.
5502 # config.status only pays attention to the cache file if you give it
5503 # the --recheck option to rerun configure.
5505 # `ac_cv_env_foo' variables (set or unset) will be overriden when
5506 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5507 # following values.
5509 _ACEOF
5511 # The following way of writing the cache mishandles newlines in values,
5512 # but we know of no workaround that is simple, portable, and efficient.
5513 # So, don't put newlines in cache variables' values.
5514 # Ultrix sh set writes to stderr and can't be redirected directly,
5515 # and sets the high bit in the cache file unless we assign to the vars.
5517 (set) 2>&1 |
5518 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5519 *ac_space=\ *)
5520 # `set' does not quote correctly, so add quotes (double-quote
5521 # substitution turns \\\\ into \\, and sed turns \\ into \).
5522 sed -n \
5523 "s/'/'\\\\''/g;
5524 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5527 # `set' quotes correctly as required by POSIX, so do not add quotes.
5528 sed -n \
5529 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5531 esac;
5533 sed '
5534 t clear
5535 : clear
5536 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5537 t end
5538 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5539 : end' >>confcache
5540 if cmp -s $cache_file confcache; then :; else
5541 if test -w $cache_file; then
5542 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5543 cat confcache >$cache_file
5544 else
5545 echo "not updating unwritable cache $cache_file"
5548 rm -f confcache
5550 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5551 # Let make expand exec_prefix.
5552 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5554 # VPATH may cause trouble with some makes, so we remove $(srcdir),
5555 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5556 # trailing colons and then remove the whole line if VPATH becomes empty
5557 # (actually we leave an empty line to preserve line numbers).
5558 if test "x$srcdir" = x.; then
5559 ac_vpsub='/^[ ]*VPATH[ ]*=/{
5560 s/:*\$(srcdir):*/:/;
5561 s/:*\${srcdir}:*/:/;
5562 s/:*@srcdir@:*/:/;
5563 s/^\([^=]*=[ ]*\):*/\1/;
5564 s/:*$//;
5565 s/^[^=]*=[ ]*$//;
5569 DEFS=-DHAVE_CONFIG_H
5572 : ${CONFIG_STATUS=./config.status}
5573 ac_clean_files_save=$ac_clean_files
5574 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5575 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5576 echo "$as_me: creating $CONFIG_STATUS" >&6;}
5577 cat >$CONFIG_STATUS <<_ACEOF
5578 #! $SHELL
5579 # Generated by $as_me.
5580 # Run this file to recreate the current configuration.
5581 # Compiler output produced by configure, useful for debugging
5582 # configure, is in config.log if it exists.
5584 debug=false
5585 SHELL=\${CONFIG_SHELL-$SHELL}
5586 _ACEOF
5588 cat >>$CONFIG_STATUS <<\_ACEOF
5590 ## --------------------- ##
5591 ## M4sh Initialization. ##
5592 ## --------------------- ##
5594 # Be Bourne compatible
5595 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5596 emulate sh
5597 NULLCMD=:
5598 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
5599 set -o posix
5602 # NLS nuisances.
5603 # Support unset when possible.
5604 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
5605 as_unset=unset
5606 else
5607 as_unset=false
5610 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
5611 { $as_unset LANG || test "${LANG+set}" != set; } ||
5612 { LANG=C; export LANG; }
5613 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
5614 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
5615 { LC_ALL=C; export LC_ALL; }
5616 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
5617 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
5618 { LC_TIME=C; export LC_TIME; }
5619 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
5620 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
5621 { LC_CTYPE=C; export LC_CTYPE; }
5622 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
5623 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
5624 { LANGUAGE=C; export LANGUAGE; }
5625 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
5626 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
5627 { LC_COLLATE=C; export LC_COLLATE; }
5628 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
5629 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
5630 { LC_NUMERIC=C; export LC_NUMERIC; }
5631 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
5632 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
5633 { LC_MESSAGES=C; export LC_MESSAGES; }
5636 # Name of the executable.
5637 as_me=`(basename "$0") 2>/dev/null ||
5638 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5639 X"$0" : 'X\(//\)$' \| \
5640 X"$0" : 'X\(/\)$' \| \
5641 . : '\(.\)' 2>/dev/null ||
5642 echo X/"$0" |
5643 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
5644 /^X\/\(\/\/\)$/{ s//\1/; q; }
5645 /^X\/\(\/\).*/{ s//\1/; q; }
5646 s/.*/./; q'`
5648 # PATH needs CR, and LINENO needs CR and PATH.
5649 # Avoid depending upon Character Ranges.
5650 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5651 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5652 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5653 as_cr_digits='0123456789'
5654 as_cr_alnum=$as_cr_Letters$as_cr_digits
5656 # The user is always right.
5657 if test "${PATH_SEPARATOR+set}" != set; then
5658 echo "#! /bin/sh" >conftest.sh
5659 echo "exit 0" >>conftest.sh
5660 chmod +x conftest.sh
5661 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
5662 PATH_SEPARATOR=';'
5663 else
5664 PATH_SEPARATOR=:
5666 rm -f conftest.sh
5670 as_lineno_1=$LINENO
5671 as_lineno_2=$LINENO
5672 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5673 test "x$as_lineno_1" != "x$as_lineno_2" &&
5674 test "x$as_lineno_3" = "x$as_lineno_2" || {
5675 # Find who we are. Look in the path if we contain no path at all
5676 # relative or not.
5677 case $0 in
5678 *[\\/]* ) as_myself=$0 ;;
5679 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5680 for as_dir in $PATH
5682 IFS=$as_save_IFS
5683 test -z "$as_dir" && as_dir=.
5684 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5685 done
5688 esac
5689 # We did not find ourselves, most probably we were run as `sh COMMAND'
5690 # in which case we are not to be found in the path.
5691 if test "x$as_myself" = x; then
5692 as_myself=$0
5694 if test ! -f "$as_myself"; then
5695 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
5696 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
5697 { (exit 1); exit 1; }; }
5699 case $CONFIG_SHELL in
5701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5702 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
5704 IFS=$as_save_IFS
5705 test -z "$as_dir" && as_dir=.
5706 for as_base in sh bash ksh sh5; do
5707 case $as_dir in
5709 if ("$as_dir/$as_base" -c '
5710 as_lineno_1=$LINENO
5711 as_lineno_2=$LINENO
5712 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5713 test "x$as_lineno_1" != "x$as_lineno_2" &&
5714 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
5715 CONFIG_SHELL=$as_dir/$as_base
5716 export CONFIG_SHELL
5717 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
5718 fi;;
5719 esac
5720 done
5721 done
5723 esac
5725 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5726 # uniformly replaced by the line number. The first 'sed' inserts a
5727 # line-number line before each line; the second 'sed' does the real
5728 # work. The second script uses 'N' to pair each line-number line
5729 # with the numbered line, and appends trailing '-' during
5730 # substitution so that $LINENO is not a special case at line end.
5731 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5732 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
5733 sed '=' <$as_myself |
5734 sed '
5736 s,$,-,
5737 : loop
5738 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
5739 t loop
5740 s,-$,,
5741 s,^['$as_cr_digits']*\n,,
5742 ' >$as_me.lineno &&
5743 chmod +x $as_me.lineno ||
5744 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
5745 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
5746 { (exit 1); exit 1; }; }
5748 # Don't try to exec as it changes $[0], causing all sort of problems
5749 # (the dirname of $[0] is not the place where we might find the
5750 # original and so on. Autoconf is especially sensible to this).
5751 . ./$as_me.lineno
5752 # Exit status is that of the last command.
5753 exit
5757 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
5758 *c*,-n*) ECHO_N= ECHO_C='
5759 ' ECHO_T=' ' ;;
5760 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
5761 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
5762 esac
5764 if expr a : '\(a\)' >/dev/null 2>&1; then
5765 as_expr=expr
5766 else
5767 as_expr=false
5770 rm -f conf$$ conf$$.exe conf$$.file
5771 echo >conf$$.file
5772 if ln -s conf$$.file conf$$ 2>/dev/null; then
5773 # We could just check for DJGPP; but this test a) works b) is more generic
5774 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
5775 if test -f conf$$.exe; then
5776 # Don't use ln at all; we don't have any links
5777 as_ln_s='cp -p'
5778 else
5779 as_ln_s='ln -s'
5781 elif ln conf$$.file conf$$ 2>/dev/null; then
5782 as_ln_s=ln
5783 else
5784 as_ln_s='cp -p'
5786 rm -f conf$$ conf$$.exe conf$$.file
5788 as_executable_p="test -f"
5790 # Sed expression to map a string onto a valid CPP name.
5791 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
5793 # Sed expression to map a string onto a valid variable name.
5794 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
5797 # IFS
5798 # We need space, tab and new line, in precisely that order.
5799 as_nl='
5801 IFS=" $as_nl"
5803 # CDPATH.
5804 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
5806 exec 6>&1
5808 # Open the log real soon, to keep \$[0] and so on meaningful, and to
5809 # report actual input values of CONFIG_FILES etc. instead of their
5810 # values after options handling. Logging --version etc. is OK.
5811 exec 5>>config.log
5813 echo
5814 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5815 ## Running $as_me. ##
5816 _ASBOX
5817 } >&5
5818 cat >&5 <<_CSEOF
5820 This file was extended by Pacman Arena $as_me 0.1, which was
5821 generated by GNU Autoconf 2.53. Invocation command line was
5823 CONFIG_FILES = $CONFIG_FILES
5824 CONFIG_HEADERS = $CONFIG_HEADERS
5825 CONFIG_LINKS = $CONFIG_LINKS
5826 CONFIG_COMMANDS = $CONFIG_COMMANDS
5827 $ $0 $@
5829 _CSEOF
5830 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
5831 echo >&5
5832 _ACEOF
5834 # Files that config.status was made for.
5835 if test -n "$ac_config_files"; then
5836 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
5839 if test -n "$ac_config_headers"; then
5840 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
5843 if test -n "$ac_config_links"; then
5844 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
5847 if test -n "$ac_config_commands"; then
5848 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
5851 cat >>$CONFIG_STATUS <<\_ACEOF
5853 ac_cs_usage="\
5854 \`$as_me' instantiates files from templates according to the
5855 current configuration.
5857 Usage: $0 [OPTIONS] [FILE]...
5859 -h, --help print this help, then exit
5860 -V, --version print version number, then exit
5861 -d, --debug don't remove temporary files
5862 --recheck update $as_me by reconfiguring in the same conditions
5863 --file=FILE[:TEMPLATE]
5864 instantiate the configuration file FILE
5865 --header=FILE[:TEMPLATE]
5866 instantiate the configuration header FILE
5868 Configuration files:
5869 $config_files
5871 Configuration headers:
5872 $config_headers
5874 Report bugs to <bug-autoconf@gnu.org>."
5875 _ACEOF
5877 cat >>$CONFIG_STATUS <<_ACEOF
5878 ac_cs_version="\\
5879 Pacman Arena config.status 0.1
5880 configured by $0, generated by GNU Autoconf 2.53,
5881 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
5883 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
5884 Free Software Foundation, Inc.
5885 This config.status script is free software; the Free Software Foundation
5886 gives unlimited permission to copy, distribute and modify it."
5887 srcdir=$srcdir
5888 _ACEOF
5890 cat >>$CONFIG_STATUS <<\_ACEOF
5891 # If no file are specified by the user, then we need to provide default
5892 # value. By we need to know if files were specified by the user.
5893 ac_need_defaults=:
5894 while test $# != 0
5896 case $1 in
5897 --*=*)
5898 ac_option=`expr "x$1" : 'x\([^=]*\)='`
5899 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
5900 shift
5901 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
5902 shift
5904 -*);;
5905 *) # This is not an option, so the user has probably given explicit
5906 # arguments.
5907 ac_need_defaults=false;;
5908 esac
5910 case $1 in
5911 # Handling of the options.
5912 _ACEOF
5913 cat >>$CONFIG_STATUS <<_ACEOF
5914 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5915 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
5916 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
5917 _ACEOF
5918 cat >>$CONFIG_STATUS <<\_ACEOF
5919 --version | --vers* | -V )
5920 echo "$ac_cs_version"; exit 0 ;;
5921 --he | --h)
5922 # Conflict between --help and --header
5923 { { echo "$as_me:$LINENO: error: ambiguous option: $1
5924 Try \`$0 --help' for more information." >&5
5925 echo "$as_me: error: ambiguous option: $1
5926 Try \`$0 --help' for more information." >&2;}
5927 { (exit 1); exit 1; }; };;
5928 --help | --hel | -h )
5929 echo "$ac_cs_usage"; exit 0 ;;
5930 --debug | --d* | -d )
5931 debug=: ;;
5932 --file | --fil | --fi | --f )
5933 shift
5934 CONFIG_FILES="$CONFIG_FILES $1"
5935 ac_need_defaults=false;;
5936 --header | --heade | --head | --hea )
5937 shift
5938 CONFIG_HEADERS="$CONFIG_HEADERS $1"
5939 ac_need_defaults=false;;
5941 # This is an error.
5942 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
5943 Try \`$0 --help' for more information." >&5
5944 echo "$as_me: error: unrecognized option: $1
5945 Try \`$0 --help' for more information." >&2;}
5946 { (exit 1); exit 1; }; } ;;
5948 *) ac_config_targets="$ac_config_targets $1" ;;
5950 esac
5951 shift
5952 done
5954 _ACEOF
5960 cat >>$CONFIG_STATUS <<\_ACEOF
5961 for ac_config_target in $ac_config_targets
5963 case "$ac_config_target" in
5964 # Handling of arguments.
5965 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5966 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
5967 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5968 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5969 { (exit 1); exit 1; }; };;
5970 esac
5971 done
5973 # If the user did not use the arguments to specify the items to instantiate,
5974 # then the envvar interface is used. Set only those that are not.
5975 # We use the long form for the default assignment because of an extremely
5976 # bizarre bug on SunOS 4.1.3.
5977 if $ac_need_defaults; then
5978 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5979 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5982 # Create a temporary directory, and hook for its removal unless debugging.
5983 $debug ||
5985 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
5986 trap '{ (exit 1); exit 1; }' 1 2 13 15
5989 # Create a (secure) tmp directory for tmp files.
5990 : ${TMPDIR=/tmp}
5992 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
5993 test -n "$tmp" && test -d "$tmp"
5994 } ||
5996 tmp=$TMPDIR/cs$$-$RANDOM
5997 (umask 077 && mkdir $tmp)
5998 } ||
6000 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
6001 { (exit 1); exit 1; }
6004 _ACEOF
6006 cat >>$CONFIG_STATUS <<_ACEOF
6009 # CONFIG_FILES section.
6012 # No need to generate the scripts if there are no CONFIG_FILES.
6013 # This happens for instance when ./config.status config.h
6014 if test -n "\$CONFIG_FILES"; then
6015 # Protect against being on the right side of a sed subst in config.status.
6016 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
6017 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
6018 s,@SHELL@,$SHELL,;t t
6019 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
6020 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
6021 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
6022 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
6023 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
6024 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
6025 s,@exec_prefix@,$exec_prefix,;t t
6026 s,@prefix@,$prefix,;t t
6027 s,@program_transform_name@,$program_transform_name,;t t
6028 s,@bindir@,$bindir,;t t
6029 s,@sbindir@,$sbindir,;t t
6030 s,@libexecdir@,$libexecdir,;t t
6031 s,@datadir@,$datadir,;t t
6032 s,@sysconfdir@,$sysconfdir,;t t
6033 s,@sharedstatedir@,$sharedstatedir,;t t
6034 s,@localstatedir@,$localstatedir,;t t
6035 s,@libdir@,$libdir,;t t
6036 s,@includedir@,$includedir,;t t
6037 s,@oldincludedir@,$oldincludedir,;t t
6038 s,@infodir@,$infodir,;t t
6039 s,@mandir@,$mandir,;t t
6040 s,@build_alias@,$build_alias,;t t
6041 s,@host_alias@,$host_alias,;t t
6042 s,@target_alias@,$target_alias,;t t
6043 s,@DEFS@,$DEFS,;t t
6044 s,@ECHO_C@,$ECHO_C,;t t
6045 s,@ECHO_N@,$ECHO_N,;t t
6046 s,@ECHO_T@,$ECHO_T,;t t
6047 s,@LIBS@,$LIBS,;t t
6048 s,@build@,$build,;t t
6049 s,@build_cpu@,$build_cpu,;t t
6050 s,@build_vendor@,$build_vendor,;t t
6051 s,@build_os@,$build_os,;t t
6052 s,@host@,$host,;t t
6053 s,@host_cpu@,$host_cpu,;t t
6054 s,@host_vendor@,$host_vendor,;t t
6055 s,@host_os@,$host_os,;t t
6056 s,@target@,$target,;t t
6057 s,@target_cpu@,$target_cpu,;t t
6058 s,@target_vendor@,$target_vendor,;t t
6059 s,@target_os@,$target_os,;t t
6060 s,@CC@,$CC,;t t
6061 s,@CFLAGS@,$CFLAGS,;t t
6062 s,@LDFLAGS@,$LDFLAGS,;t t
6063 s,@CPPFLAGS@,$CPPFLAGS,;t t
6064 s,@ac_ct_CC@,$ac_ct_CC,;t t
6065 s,@EXEEXT@,$EXEEXT,;t t
6066 s,@OBJEXT@,$OBJEXT,;t t
6067 s,@CPP@,$CPP,;t t
6068 s,@SET_MAKE@,$SET_MAKE,;t t
6069 s,@RANLIB@,$RANLIB,;t t
6070 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
6071 s,@LIBOBJS@,$LIBOBJS,;t t
6072 s,@X_CFLAGS@,$X_CFLAGS,;t t
6073 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
6074 s,@X_LIBS@,$X_LIBS,;t t
6075 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
6076 s,@SDL_CONFIG@,$SDL_CONFIG,;t t
6077 s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
6078 s,@SDL_LIBS@,$SDL_LIBS,;t t
6079 CEOF
6081 _ACEOF
6083 cat >>$CONFIG_STATUS <<\_ACEOF
6084 # Split the substitutions into bite-sized pieces for seds with
6085 # small command number limits, like on Digital OSF/1 and HP-UX.
6086 ac_max_sed_lines=48
6087 ac_sed_frag=1 # Number of current file.
6088 ac_beg=1 # First line for current file.
6089 ac_end=$ac_max_sed_lines # Line after last line for current file.
6090 ac_more_lines=:
6091 ac_sed_cmds=
6092 while $ac_more_lines; do
6093 if test $ac_beg -gt 1; then
6094 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6095 else
6096 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6098 if test ! -s $tmp/subs.frag; then
6099 ac_more_lines=false
6100 else
6101 # The purpose of the label and of the branching condition is to
6102 # speed up the sed processing (if there are no `@' at all, there
6103 # is no need to browse any of the substitutions).
6104 # These are the two extra sed commands mentioned above.
6105 (echo ':t
6106 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
6107 if test -z "$ac_sed_cmds"; then
6108 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
6109 else
6110 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
6112 ac_sed_frag=`expr $ac_sed_frag + 1`
6113 ac_beg=$ac_end
6114 ac_end=`expr $ac_end + $ac_max_sed_lines`
6116 done
6117 if test -z "$ac_sed_cmds"; then
6118 ac_sed_cmds=cat
6120 fi # test -n "$CONFIG_FILES"
6122 _ACEOF
6123 cat >>$CONFIG_STATUS <<\_ACEOF
6124 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
6125 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6126 case $ac_file in
6127 - | *:- | *:-:* ) # input from stdin
6128 cat >$tmp/stdin
6129 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6130 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6131 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6132 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6133 * ) ac_file_in=$ac_file.in ;;
6134 esac
6136 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
6137 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6138 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6139 X"$ac_file" : 'X\(//\)[^/]' \| \
6140 X"$ac_file" : 'X\(//\)$' \| \
6141 X"$ac_file" : 'X\(/\)' \| \
6142 . : '\(.\)' 2>/dev/null ||
6143 echo X"$ac_file" |
6144 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6145 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6146 /^X\(\/\/\)$/{ s//\1/; q; }
6147 /^X\(\/\).*/{ s//\1/; q; }
6148 s/.*/./; q'`
6149 { case "$ac_dir" in
6150 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
6151 *) as_incr_dir=.;;
6152 esac
6153 as_dummy="$ac_dir"
6154 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
6155 case $as_mkdir_dir in
6156 # Skip DOS drivespec
6157 ?:) as_incr_dir=$as_mkdir_dir ;;
6159 as_incr_dir=$as_incr_dir/$as_mkdir_dir
6160 test -d "$as_incr_dir" ||
6161 mkdir "$as_incr_dir" ||
6162 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
6163 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
6164 { (exit 1); exit 1; }; }
6166 esac
6167 done; }
6169 ac_builddir=.
6171 if test "$ac_dir" != .; then
6172 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6173 # A "../" for each directory in $ac_dir_suffix.
6174 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6175 else
6176 ac_dir_suffix= ac_top_builddir=
6179 case $srcdir in
6180 .) # No --srcdir option. We are building in place.
6181 ac_srcdir=.
6182 if test -z "$ac_top_builddir"; then
6183 ac_top_srcdir=.
6184 else
6185 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6186 fi ;;
6187 [\\/]* | ?:[\\/]* ) # Absolute path.
6188 ac_srcdir=$srcdir$ac_dir_suffix;
6189 ac_top_srcdir=$srcdir ;;
6190 *) # Relative path.
6191 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6192 ac_top_srcdir=$ac_top_builddir$srcdir ;;
6193 esac
6194 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
6195 # absolute.
6196 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
6197 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
6198 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
6199 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
6203 if test x"$ac_file" != x-; then
6204 { echo "$as_me:$LINENO: creating $ac_file" >&5
6205 echo "$as_me: creating $ac_file" >&6;}
6206 rm -f "$ac_file"
6208 # Let's still pretend it is `configure' which instantiates (i.e., don't
6209 # use $as_me), people would be surprised to read:
6210 # /* config.h. Generated by config.status. */
6211 if test x"$ac_file" = x-; then
6212 configure_input=
6213 else
6214 configure_input="$ac_file. "
6216 configure_input=$configure_input"Generated from `echo $ac_file_in |
6217 sed 's,.*/,,'` by configure."
6219 # First look for the input files in the build tree, otherwise in the
6220 # src tree.
6221 ac_file_inputs=`IFS=:
6222 for f in $ac_file_in; do
6223 case $f in
6224 -) echo $tmp/stdin ;;
6225 [\\/$]*)
6226 # Absolute (can't be DOS-style, as IFS=:)
6227 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6228 echo "$as_me: error: cannot find input file: $f" >&2;}
6229 { (exit 1); exit 1; }; }
6230 echo $f;;
6231 *) # Relative
6232 if test -f "$f"; then
6233 # Build tree
6234 echo $f
6235 elif test -f "$srcdir/$f"; then
6236 # Source tree
6237 echo $srcdir/$f
6238 else
6239 # /dev/null tree
6240 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6241 echo "$as_me: error: cannot find input file: $f" >&2;}
6242 { (exit 1); exit 1; }; }
6243 fi;;
6244 esac
6245 done` || { (exit 1); exit 1; }
6246 _ACEOF
6247 cat >>$CONFIG_STATUS <<_ACEOF
6248 sed "$ac_vpsub
6249 $extrasub
6250 _ACEOF
6251 cat >>$CONFIG_STATUS <<\_ACEOF
6253 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6254 s,@configure_input@,$configure_input,;t t
6255 s,@srcdir@,$ac_srcdir,;t t
6256 s,@abs_srcdir@,$ac_abs_srcdir,;t t
6257 s,@top_srcdir@,$ac_top_srcdir,;t t
6258 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
6259 s,@builddir@,$ac_builddir,;t t
6260 s,@abs_builddir@,$ac_abs_builddir,;t t
6261 s,@top_builddir@,$ac_top_builddir,;t t
6262 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
6263 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
6264 rm -f $tmp/stdin
6265 if test x"$ac_file" != x-; then
6266 mv $tmp/out $ac_file
6267 else
6268 cat $tmp/out
6269 rm -f $tmp/out
6272 done
6273 _ACEOF
6274 cat >>$CONFIG_STATUS <<\_ACEOF
6277 # CONFIG_HEADER section.
6280 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6281 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6283 # ac_d sets the value in "#define NAME VALUE" lines.
6284 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6285 ac_dB='[ ].*$,\1#\2'
6286 ac_dC=' '
6287 ac_dD=',;t'
6288 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6289 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6290 ac_uB='$,\1#\2define\3'
6291 ac_uC=' '
6292 ac_uD=',;t'
6294 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
6295 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6296 case $ac_file in
6297 - | *:- | *:-:* ) # input from stdin
6298 cat >$tmp/stdin
6299 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6300 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6301 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6302 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6303 * ) ac_file_in=$ac_file.in ;;
6304 esac
6306 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
6307 echo "$as_me: creating $ac_file" >&6;}
6309 # First look for the input files in the build tree, otherwise in the
6310 # src tree.
6311 ac_file_inputs=`IFS=:
6312 for f in $ac_file_in; do
6313 case $f in
6314 -) echo $tmp/stdin ;;
6315 [\\/$]*)
6316 # Absolute (can't be DOS-style, as IFS=:)
6317 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6318 echo "$as_me: error: cannot find input file: $f" >&2;}
6319 { (exit 1); exit 1; }; }
6320 echo $f;;
6321 *) # Relative
6322 if test -f "$f"; then
6323 # Build tree
6324 echo $f
6325 elif test -f "$srcdir/$f"; then
6326 # Source tree
6327 echo $srcdir/$f
6328 else
6329 # /dev/null tree
6330 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6331 echo "$as_me: error: cannot find input file: $f" >&2;}
6332 { (exit 1); exit 1; }; }
6333 fi;;
6334 esac
6335 done` || { (exit 1); exit 1; }
6336 # Remove the trailing spaces.
6337 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
6339 _ACEOF
6341 # Transform confdefs.h into two sed scripts, `conftest.defines' and
6342 # `conftest.undefs', that substitutes the proper values into
6343 # config.h.in to produce config.h. The first handles `#define'
6344 # templates, and the second `#undef' templates.
6345 # And first: Protect against being on the right side of a sed subst in
6346 # config.status. Protect against being in an unquoted here document
6347 # in config.status.
6348 rm -f conftest.defines conftest.undefs
6349 # Using a here document instead of a string reduces the quoting nightmare.
6350 # Putting comments in sed scripts is not portable.
6352 # `end' is used to avoid that the second main sed command (meant for
6353 # 0-ary CPP macros) applies to n-ary macro definitions.
6354 # See the Autoconf documentation for `clear'.
6355 cat >confdef2sed.sed <<\_ACEOF
6356 s/[\\&,]/\\&/g
6357 s,[\\$`],\\&,g
6358 t clear
6359 : clear
6360 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
6361 t end
6362 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
6363 : end
6364 _ACEOF
6365 # If some macros were called several times there might be several times
6366 # the same #defines, which is useless. Nevertheless, we may not want to
6367 # sort them, since we want the *last* AC-DEFINE to be honored.
6368 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
6369 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
6370 rm -f confdef2sed.sed
6372 # This sed command replaces #undef with comments. This is necessary, for
6373 # example, in the case of _POSIX_SOURCE, which is predefined and required
6374 # on some systems where configure will not decide to define it.
6375 cat >>conftest.undefs <<\_ACEOF
6376 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
6377 _ACEOF
6379 # Break up conftest.defines because some shells have a limit on the size
6380 # of here documents, and old seds have small limits too (100 cmds).
6381 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
6382 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
6383 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
6384 echo ' :' >>$CONFIG_STATUS
6385 rm -f conftest.tail
6386 while grep . conftest.defines >/dev/null
6388 # Write a limited-size here document to $tmp/defines.sed.
6389 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
6390 # Speed up: don't consider the non `#define' lines.
6391 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
6392 # Work around the forget-to-reset-the-flag bug.
6393 echo 't clr' >>$CONFIG_STATUS
6394 echo ': clr' >>$CONFIG_STATUS
6395 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
6396 echo 'CEOF
6397 sed -f $tmp/defines.sed $tmp/in >$tmp/out
6398 rm -f $tmp/in
6399 mv $tmp/out $tmp/in
6400 ' >>$CONFIG_STATUS
6401 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
6402 rm -f conftest.defines
6403 mv conftest.tail conftest.defines
6404 done
6405 rm -f conftest.defines
6406 echo ' fi # egrep' >>$CONFIG_STATUS
6407 echo >>$CONFIG_STATUS
6409 # Break up conftest.undefs because some shells have a limit on the size
6410 # of here documents, and old seds have small limits too (100 cmds).
6411 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
6412 rm -f conftest.tail
6413 while grep . conftest.undefs >/dev/null
6415 # Write a limited-size here document to $tmp/undefs.sed.
6416 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
6417 # Speed up: don't consider the non `#undef'
6418 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
6419 # Work around the forget-to-reset-the-flag bug.
6420 echo 't clr' >>$CONFIG_STATUS
6421 echo ': clr' >>$CONFIG_STATUS
6422 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
6423 echo 'CEOF
6424 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
6425 rm -f $tmp/in
6426 mv $tmp/out $tmp/in
6427 ' >>$CONFIG_STATUS
6428 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
6429 rm -f conftest.undefs
6430 mv conftest.tail conftest.undefs
6431 done
6432 rm -f conftest.undefs
6434 cat >>$CONFIG_STATUS <<\_ACEOF
6435 # Let's still pretend it is `configure' which instantiates (i.e., don't
6436 # use $as_me), people would be surprised to read:
6437 # /* config.h. Generated by config.status. */
6438 if test x"$ac_file" = x-; then
6439 echo "/* Generated by configure. */" >$tmp/config.h
6440 else
6441 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
6443 cat $tmp/in >>$tmp/config.h
6444 rm -f $tmp/in
6445 if test x"$ac_file" != x-; then
6446 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
6447 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
6448 echo "$as_me: $ac_file is unchanged" >&6;}
6449 else
6450 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6451 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6452 X"$ac_file" : 'X\(//\)[^/]' \| \
6453 X"$ac_file" : 'X\(//\)$' \| \
6454 X"$ac_file" : 'X\(/\)' \| \
6455 . : '\(.\)' 2>/dev/null ||
6456 echo X"$ac_file" |
6457 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6458 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6459 /^X\(\/\/\)$/{ s//\1/; q; }
6460 /^X\(\/\).*/{ s//\1/; q; }
6461 s/.*/./; q'`
6462 { case "$ac_dir" in
6463 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
6464 *) as_incr_dir=.;;
6465 esac
6466 as_dummy="$ac_dir"
6467 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
6468 case $as_mkdir_dir in
6469 # Skip DOS drivespec
6470 ?:) as_incr_dir=$as_mkdir_dir ;;
6472 as_incr_dir=$as_incr_dir/$as_mkdir_dir
6473 test -d "$as_incr_dir" ||
6474 mkdir "$as_incr_dir" ||
6475 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
6476 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
6477 { (exit 1); exit 1; }; }
6479 esac
6480 done; }
6482 rm -f $ac_file
6483 mv $tmp/config.h $ac_file
6485 else
6486 cat $tmp/config.h
6487 rm -f $tmp/config.h
6489 done
6490 _ACEOF
6492 cat >>$CONFIG_STATUS <<\_ACEOF
6494 { (exit 0); exit 0; }
6495 _ACEOF
6496 chmod +x $CONFIG_STATUS
6497 ac_clean_files=$ac_clean_files_save
6500 # configure is writing to config.log, and then calls config.status.
6501 # config.status does its own redirection, appending to config.log.
6502 # Unfortunately, on DOS this fails, as config.log is still kept open
6503 # by configure, so config.status won't be able to write to it; its
6504 # output is simply discarded. So we exec the FD to /dev/null,
6505 # effectively closing config.log, so it can be properly (re)opened and
6506 # appended to by config.status. When coming back to configure, we
6507 # need to make the FD available again.
6508 if test "$no_create" != yes; then
6509 ac_cs_success=:
6510 exec 5>/dev/null
6511 $SHELL $CONFIG_STATUS || ac_cs_success=false
6512 exec 5>>config.log
6513 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6514 # would make configure fail if this is the last instruction.
6515 $ac_cs_success || { (exit 1); exit 1; }