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
19 ## --------------------- ##
20 ## M4sh Initialization. ##
21 ## --------------------- ##
23 # Be Bourne compatible
24 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
27 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
32 # Support unset when possible.
33 if (FOO
=FOO
; unset FOO
) >/dev
/null
2>&1; then
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 ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; 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
90 if (PATH
=".;."; conftest.sh
) >/dev
/null
2>&1; then
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
107 *[\\/]* ) as_myself
=$0 ;;
108 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
112 test -z "$as_dir" && as_dir
=.
113 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
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
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
133 test -z "$as_dir" && as_dir
=.
134 for as_base
in sh bash ksh sh5
; do
137 if ("$as_dir/$as_base" -c '
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
145 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
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 |
166 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
169 s,^['$as_cr_digits']*\n,,
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).
179 # Exit status is that of the last command.
184 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
185 *c
*,-n*) ECHO_N
= ECHO_C
='
187 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
188 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
191 if expr a
: '\(a\)' >/dev
/null
2>&1; then
197 rm -f conf$$ conf$$.exe 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
208 elif ln conf$$.
file conf$$
2>/dev
/null
; then
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"
225 # We need space, tab and new line, in precisely that order.
231 $as_unset CDPATH ||
test "${CDPATH+set}" != set ||
{ CDPATH
=$PATH_SEPARATOR; export CDPATH
; }
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`
244 ac_default_prefix
=/usr
/local
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
="\
268 # include <sys/types.h>
271 # include <sys/stat.h>
282 # if !STDC_HEADERS && HAVE_MEMORY_H
288 # include <strings.h>
291 # include <inttypes.h>
302 # Initialize some variables set by options.
304 ac_init_version
=false
305 # The variables have the same names as the options, with
306 # dashes changed to underlines.
314 program_transform_name
=s
,x
,x
,
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'
343 # If the previous option needs an argument, assign it.
344 if test -n "$ac_prev"; then
345 eval "$ac_prev=\$ac_option"
350 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
352 # Accept the important Cygnus configure options, so we can diagnose typos.
356 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
358 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
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 ;;
374 cache_file
=config.cache
;;
376 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
378 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
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'`
399 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
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.
417 -help |
--help |
--hel |
--he |
-h)
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)
438 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
439 infodir
=$ac_optarg ;;
441 -libdir |
--libdir |
--libdi |
--libd)
443 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
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)
464 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
468 # Obsolete; use --without-fp.
471 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
472 |
--no-cr |
--no-c |
-n)
475 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
476 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
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)
490 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
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)
528 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
530 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
532 sbindir
=$ac_optarg ;;
534 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
535 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
536 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
538 ac_prev
=sharedstatedir
;;
539 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
540 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
541 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
543 sharedstatedir
=$ac_optarg ;;
545 -site |
--site |
--sit)
547 -site=* |
--site=* |
--sit=*)
550 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
552 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
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)
570 -version |
--version |
--versio |
--versi |
--vers |
-V)
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'`
581 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
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" ;;
596 # Obsolete; use --with-x.
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; }; }
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'"
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}
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`
650 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
651 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
652 { (exit 1); exit 1; }; };;
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`
662 [\\/$
]* | ?
:[\\/]* ) ;;
663 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664 { (exit 1); exit 1; }; };;
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.
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
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 ||
703 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
704 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
705 /^X\(\/\/\)$/{ s//\1/; q; }
706 /^X\(\/\).*/{ s//\1/; q; }
709 if test ! -r $srcdir/$ac_unique_file; then
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; }; }
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}
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.
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.
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 \`..']
788 Installation directories:
789 --prefix=PREFIX install architecture-independent files in PREFIX
791 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
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]
819 --x-includes=DIR X include files are
in DIR
820 --x-libraries=DIR X library files are
in DIR
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
]
829 if test -n "$ac_init_help"; then
830 case $ac_init_help in
831 short | recursive
) echo "Configuration of Pacman Arena 0.1:";;
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
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
>
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>.
864 if test "$ac_init_help" = "recursive"; then
865 # If there are subdirs, report their specific --help.
867 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
868 test -d $ac_dir || continue
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'`
876 ac_dir_suffix= ac_top_builddir=
880 .) # No --srcdir option. We are building in place.
882 if test -z "$ac_top_builddir"; then
885 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
887 [\\/]* | ?:[\\/]* ) # Absolute path.
888 ac_srcdir=$srcdir$ac_dir_suffix;
889 ac_top_srcdir=$srcdir ;;
891 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
892 ac_top_srcdir=$ac_top_builddir$srcdir ;;
894 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
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`
902 # Check for guested configure; otherwise get Cygnus style configure.
903 if test -f $ac_srcdir/configure.gnu; then
905 $SHELL $ac_srcdir/configure.gnu --help=recursive
906 elif test -f $ac_srcdir/configure; then
908 $SHELL $ac_srcdir/configure --help=recursive
909 elif test -f $ac_srcdir/configure.ac ||
910 test -f $ac_srcdir/configure.in; then
914 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
920 test -n "$ac_init_help" && exit 0
921 if $ac_init_version; then
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.
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
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
`
969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
973 test -z "$as_dir" && as_dir=.
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.
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)
1002 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1003 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
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'"
1010 # Get rid of the leading space.
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.
1023 ## ---------------- ##
1024 ## Cache variables. ##
1025 ## ---------------- ##
1028 # The following way of writing the cache mishandles newlines in values,
1031 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1034 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1035 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1039 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1044 if test -s confdefs.h
; then
1051 sed "/^$/d" confdefs.h
1054 test "$ac_signal" != 0 &&
1055 echo "$as_me: caught signal $ac_signal"
1056 echo "$as_me: exit $exit_status"
1058 rm -f core core.
* *.core
&&
1059 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1062 for ac_signal in 1 2 13 15; do
1063 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
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.
1072 # Predefined preprocessor variables.
1074 cat >>confdefs.h <<_ACEOF
1075 #define PACKAGE_NAME "$PACKAGE_NAME"
1079 cat >>confdefs.h <<_ACEOF
1080 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1084 cat >>confdefs.h <<_ACEOF
1085 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1089 cat >>confdefs.h <<_ACEOF
1090 #define PACKAGE_STRING "$PACKAGE_STRING"
1094 cat >>confdefs.h <<_ACEOF
1095 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
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"
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
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;}
1124 [\\/]* | ?:[\\/]* ) . $cache_file;;
1125 *) . ./$cache_file;;
1129 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1130 echo "$as_me: creating cache $cache_file" >&6;}
1134 # Check that the precious variables saved in the cache have kept the same
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
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=: ;;
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=: ;;
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=:
1164 # Pass precious variables to config.status.
1165 if test "$ac_new_set" = set; then
1167 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1168 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1169 *) ac_arg=$ac_var=$ac_new_val ;;
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'" ;;
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; }; }
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"
1221 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1222 if test -f $ac_dir/install-sh; then
1224 ac_install_sh="$ac_aux_dir/install-sh -c"
1226 elif test -f $ac_dir/install.sh; then
1228 ac_install_sh="$ac_aux_dir/install.sh -c"
1230 elif test -f $ac_dir/shtool; then
1232 ac_install_sh="$ac_aux_dir/shtool install -c"
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
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
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
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
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
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" = \
1326 program_prefix=${target_alias}-
1329 if test "x${CFLAGS-notset}" = "xnotset"; then
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"
1339 CFLAGS="$CFLAGS -Wall -Wextra -Wstrict-prototypes -Wshadow -g"
1342 # Checks for programs.
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
1356 if test -n "$CC"; then
1357 ac_cv_prog_CC="$CC" # Let the user override the test.
1359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
1376 if test -n "$CC"; then
1377 echo "$as_me:$LINENO: result: $CC" >&5
1378 echo "${ECHO_T}$CC" >&6
1380 echo "$as_me:$LINENO: result: no" >&5
1381 echo "${ECHO_T}no" >&6
1385 if test -z "$ac_cv_prog_CC"; then
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
1394 if test -n "$ac_ct_CC"; then
1395 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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
1418 echo "$as_me:$LINENO: result: no" >&5
1419 echo "${ECHO_T}no" >&6
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
1436 if test -n "$CC"; then
1437 ac_cv_prog_CC="$CC" # Let the user override the test.
1439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
1456 if test -n "$CC"; then
1457 echo "$as_me:$LINENO: result: $CC" >&5
1458 echo "${ECHO_T}$CC" >&6
1460 echo "$as_me:$LINENO: result: no" >&5
1461 echo "${ECHO_T}no" >&6
1465 if test -z "$ac_cv_prog_CC"; then
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
1474 if test -n "$ac_ct_CC"; then
1475 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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
1498 echo "$as_me:$LINENO: result: no" >&5
1499 echo "${ECHO_T}no" >&6
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
1516 if test -n "$CC"; then
1517 ac_cv_prog_CC="$CC" # Let the user override the test.
1520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
1532 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
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
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.
1547 set dummy "$as_dir/$ac_word" ${1+"$@"}
1555 if test -n "$CC"; then
1556 echo "$as_me:$LINENO: result: $CC" >&5
1557 echo "${ECHO_T}$CC" >&6
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
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
1575 if test -n "$CC"; then
1576 ac_cv_prog_CC="$CC" # Let the user override the test.
1578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
1595 if test -n "$CC"; then
1596 echo "$as_me:$LINENO: result: $CC" >&5
1597 echo "${ECHO_T}$CC" >&6
1599 echo "$as_me:$LINENO: result: no" >&5
1600 echo "${ECHO_T}no" >&6
1603 test -n "$CC" && break
1606 if test -z "$CC"; then
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
1617 if test -n "$ac_ct_CC"; then
1618 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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
1641 echo "$as_me:$LINENO: result: no" >&5
1642 echo "${ECHO_T}no" >&6
1645 test -n "$ac_ct_CC" && break
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
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
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
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
1686 int F77_DUMMY_MAIN() { return 1; }
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
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
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
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.
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
1720 *.
$ac_ext |
*.o |
*.obj |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM
) ;;
1721 a.out
) # We found the default executable, but exeext='' is most
1724 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
1725 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
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
1754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1755 (exit $ac_status); }; }; then
1758 if test "$cross_compiling" = maybe
; then
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
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
1792 for ac_file
in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1794 *.
$ac_ext |
*.o |
*.obj |
*.xcoff |
*.tds |
*.d |
*.pdb
) ;;
1795 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
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
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
1819 cat >conftest.
$ac_ext <<_ACEOF
1820 #line $LINENO "configure"
1821 #include "confdefs.h"
1823 #ifdef F77_DUMMY_MAIN
1827 int F77_DUMMY_MAIN() { return 1; }
1837 rm -f conftest.o conftest.obj
1838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1839 (eval $ac_compile) 2>&5
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
1845 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb
) ;;
1846 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
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
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
1869 cat >conftest.
$ac_ext <<_ACEOF
1870 #line $LINENO "configure"
1871 #include "confdefs.h"
1873 #ifdef F77_DUMMY_MAIN
1877 int F77_DUMMY_MAIN() { return 1; }
1890 rm -f conftest.
$ac_objext
1891 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1892 (eval $ac_compile) 2>&5
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
1900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1901 (exit $ac_status); }; }; then
1904 echo "$as_me: failed program was:" >&5
1905 cat conftest.
$ac_ext >&5
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
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
1923 cat >conftest.
$ac_ext <<_ACEOF
1924 #line $LINENO "configure"
1925 #include "confdefs.h"
1927 #ifdef F77_DUMMY_MAIN
1931 int F77_DUMMY_MAIN() { return 1; }
1941 rm -f conftest.
$ac_objext
1942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1943 (eval $ac_compile) 2>&5
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
1951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1952 (exit $ac_status); }; }; then
1955 echo "$as_me: failed program was:" >&5
1956 cat conftest.
$ac_ext >&5
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
1972 if test "$GCC" = yes; then
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
1987 rm -f conftest.
$ac_objext
1988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1989 (eval $ac_compile) 2>&5
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
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);' \
2008 cat >conftest.
$ac_ext <<_ACEOF
2009 #line $LINENO "configure"
2010 #include "confdefs.h"
2013 #ifdef F77_DUMMY_MAIN
2017 int F77_DUMMY_MAIN() { return 1; }
2027 rm -f conftest.
$ac_objext
2028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2029 (eval $ac_compile) 2>&5
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
2037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2038 (exit $ac_status); }; }; then
2041 echo "$as_me: failed program was:" >&5
2042 cat conftest.
$ac_ext >&5
2045 rm -f conftest.
$ac_objext conftest.
$ac_ext
2046 cat >conftest.
$ac_ext <<_ACEOF
2047 #line $LINENO "configure"
2048 #include "confdefs.h"
2050 #ifdef F77_DUMMY_MAIN
2054 int F77_DUMMY_MAIN() { return 1; }
2064 rm -f conftest.
$ac_objext
2065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2066 (eval $ac_compile) 2>&5
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
2074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2075 (exit $ac_status); }; }; then
2078 echo "$as_me: failed program was:" >&5
2079 cat conftest.
$ac_ext >&5
2081 rm -f conftest.
$ac_objext conftest.
$ac_ext
2084 if test -n "$ac_declaration"; then
2085 echo '#ifdef __cplusplus' >>confdefs.h
2086 echo $ac_declaration >>confdefs.h
2087 echo '#endif' >>confdefs.h
2091 echo "$as_me: failed program was:" >&5
2092 cat conftest.
$ac_ext >&5
2094 rm -f conftest.
$ac_objext conftest.
$ac_ext
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
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
2112 if test -z "$CPP"; then
2113 if test "${ac_cv_prog_CPP+set}" = set; then
2114 echo $ECHO_N "(cached) $ECHO_C" >&6
2116 # Double quotes because CPP needs to be expanded
2117 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
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"
2132 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2133 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2135 egrep -v '^ *\+' conftest.er1
>conftest.err
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
2148 if test -z "$ac_cpp_err"; then
2151 echo "$as_me: failed program was:" >&5
2152 cat conftest.
$ac_ext >&5
2153 # Broken: fails on valid input.
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>
2165 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2166 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2168 egrep -v '^ *\+' conftest.er1
>conftest.err
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
2181 if test -z "$ac_cpp_err"; then
2182 # Broken: success on invalid input.
2185 echo "$as_me: failed program was:" >&5
2186 cat conftest.
$ac_ext >&5
2187 # Passes both tests.
2191 rm -f conftest.err conftest.
$ac_ext
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
2208 echo "$as_me:$LINENO: result: $CPP" >&5
2209 echo "${ECHO_T}$CPP" >&6
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"
2223 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2224 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2226 egrep -v '^ *\+' conftest.er1
>conftest.err
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
2239 if test -z "$ac_cpp_err"; then
2242 echo "$as_me: failed program was:" >&5
2243 cat conftest.
$ac_ext >&5
2244 # Broken: fails on valid input.
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>
2256 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2257 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2259 egrep -v '^ *\+' conftest.er1
>conftest.err
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
2272 if test -z "$ac_cpp_err"; then
2273 # Broken: success on invalid input.
2276 echo "$as_me: failed program was:" >&5
2277 cat conftest.
$ac_ext >&5
2278 # Passes both tests.
2282 rm -f conftest.err conftest.
$ac_ext
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
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; }; }
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
2307 cat >conftest.
make <<\_ACEOF
2309 @
echo 'ac_maketemp="${MAKE}"'
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
2316 eval ac_cv_prog_make_
${ac_make}_set
=no
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
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
2338 if test -n "$RANLIB"; then
2339 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
2341 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
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
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
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
2376 if test -n "$ac_ct_RANLIB"; then
2377 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
2379 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
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
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
2401 echo "$as_me:$LINENO: result: no" >&5
2402 echo "${ECHO_T}no" >&6
2405 RANLIB
=$ac_ct_RANLIB
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
2421 cat >conftest.
$ac_ext <<_ACEOF
2422 #line $LINENO "configure"
2423 #include "confdefs.h"
2430 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2431 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2433 egrep -v '^ *\+' conftest.er1
>conftest.err
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
2446 if test -z "$ac_cpp_err"; then
2447 ac_cv_header_stdc
=yes
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"
2463 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2464 egrep "memchr" >/dev
/null
2>&1; then
2467 ac_cv_header_stdc
=no
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"
2481 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2482 egrep "free" >/dev
/null
2>&1; then
2485 ac_cv_header_stdc
=no
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
2496 cat >conftest.
$ac_ext <<_ACEOF
2497 #line $LINENO "configure"
2498 #include "confdefs.h"
2500 #if ((' ' & 0x0FF) == 0x020)
2501 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2502 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
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))
2510 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2515 for (i = 0; i < 256; i++)
2516 if (XOR (islower (i), ISLOWER (i))
2517 || toupper (i) != TOUPPER (i))
2522 rm -f conftest
$ac_exeext
2523 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2524 (eval $ac_link) 2>&5
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
2531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2532 (exit $ac_status); }; }; then
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
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
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
2574 cat >conftest.
$ac_ext <<_ACEOF
2575 #line $LINENO "configure"
2576 #include "confdefs.h"
2577 $ac_includes_default
2579 #include <$ac_header>
2581 rm -f conftest.
$ac_objext
2582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2583 (eval $ac_compile) 2>&5
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
2591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2592 (exit $ac_status); }; }; then
2593 eval "$as_ac_Header=yes"
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
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
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>
2643 rm -f conftest.
$ac_objext
2644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2645 (eval $ac_compile) 2>&5
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
2653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2654 (exit $ac_status); }; }; then
2655 ac_header_compiler
=yes
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>
2673 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2674 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2676 egrep -v '^ *\+' conftest.er1
>conftest.err
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
2689 if test -z "$ac_cpp_err"; then
2690 ac_header_preproc
=yes
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
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;};;
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;};;
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
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
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
2742 ac_cv_prog_cc_stdc
=no
2744 cat >conftest.
$ac_ext <<_ACEOF
2745 #line $LINENO "configure"
2746 #include "confdefs.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)
2760 static char *f (char * (*g) (char **, int), char **p, ...)
2765 s = g (p, va_arg (v,int));
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);
2775 #ifdef F77_DUMMY_MAIN
2779 int F77_DUMMY_MAIN() { return 1; }
2784 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
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
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
2809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2810 (exit $ac_status); }; }; then
2811 ac_cv_prog_cc_stdc
=$ac_arg
2814 echo "$as_me: failed program was:" >&5
2815 cat conftest.
$ac_ext >&5
2817 rm -f conftest.
$ac_objext
2819 rm -f conftest.
$ac_ext conftest.
$ac_objext
2824 case "x$ac_cv_prog_cc_stdc" in
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" ;;
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
2839 cat >conftest.
$ac_ext <<_ACEOF
2840 #line $LINENO "configure"
2841 #include "confdefs.h"
2843 #ifdef F77_DUMMY_MAIN
2847 int F77_DUMMY_MAIN() { return 1; }
2852 /* FIXME: Include the comments suggested by Paul. */
2854 /* Ultrix mips cc rejects this. */
2855 typedef int charset[2];
2857 /* SunOS 4.1.1 cc rejects this. */
2858 char const *const *ccp;
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
2867 const char *g = "string";
2868 ccp = &g + (g ? g-g : 0);
2869 /* HPUX 7.0 cc rejects these. */
2872 ccp = (char const *const *) p;
2873 { /* SCO 3.2v4 cc rejects this. */
2875 char const *s = 0 ? (char *) 0 : (char const *) 0;
2879 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2881 const int *foo = &x[0];
2884 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2885 typedef const int *iptr;
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 */
2903 rm -f conftest.
$ac_objext
2904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2905 (eval $ac_compile) 2>&5
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
2913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2914 (exit $ac_status); }; }; then
2917 echo "$as_me: failed program was:" >&5
2918 cat conftest.
$ac_ext >&5
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
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
2938 cat >conftest.
$ac_ext <<_ACEOF
2939 #line $LINENO "configure"
2940 #include "confdefs.h"
2941 $ac_includes_default
2942 #ifdef F77_DUMMY_MAIN
2946 int F77_DUMMY_MAIN() { return 1; }
2953 if (sizeof (size_t))
2959 rm -f conftest.
$ac_objext
2960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2961 (eval $ac_compile) 2>&5
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
2969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2970 (exit $ac_status); }; }; then
2971 ac_cv_type_size_t
=yes
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
2985 cat >>confdefs.h
<<_ACEOF
2986 #define size_t unsigned
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
2996 cat >conftest.
$ac_ext <<_ACEOF
2997 #line $LINENO "configure"
2998 #include "confdefs.h"
2999 #include <sys/types.h>
3000 #include <sys/time.h>
3003 #ifdef F77_DUMMY_MAIN
3007 int F77_DUMMY_MAIN() { return 1; }
3012 if ((struct tm *) 0)
3018 rm -f conftest.
$ac_objext
3019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3020 (eval $ac_compile) 2>&5
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
3028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3029 (exit $ac_status); }; }; then
3030 ac_cv_header_time
=yes
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
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
3056 ac_pattern
="Autoconf.*'x'"
3057 cat >conftest.
$ac_ext <<_ACEOF
3058 #line $LINENO "configure"
3059 #include "confdefs.h"
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
3067 ac_cv_prog_gcc_traditional
=no
3072 if test $ac_cv_prog_gcc_traditional = no
; then
3073 cat >conftest.
$ac_ext <<_ACEOF
3074 #line $LINENO "configure"
3075 #include "confdefs.h"
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
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
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>
3116 rm -f conftest.
$ac_objext
3117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3118 (eval $ac_compile) 2>&5
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
3126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3127 (exit $ac_status); }; }; then
3128 ac_header_compiler
=yes
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>
3146 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3147 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3149 egrep -v '^ *\+' conftest.er1
>conftest.err
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
3162 if test -z "$ac_cpp_err"; then
3163 ac_header_preproc
=yes
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
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;};;
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;};;
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
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
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
3213 if test "$cross_compiling" = yes; then
3214 ac_cv_func_malloc_works
=no
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>
3225 #ifdef F77_DUMMY_MAIN
3229 int F77_DUMMY_MAIN() { return 1; }
3234 exit (malloc (0) ? 0 : 1);
3239 rm -f conftest
$ac_exeext
3240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3241 (eval $ac_link) 2>&5
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
3248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3249 (exit $ac_status); }; }; then
3250 ac_cv_func_malloc_works
=yes
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
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
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
3276 if test "$cross_compiling" = yes; then
3277 ac_cv_func_memcmp_working
=no
3279 cat >conftest.
$ac_ext <<_ACEOF
3280 #line $LINENO "configure"
3281 #include "confdefs.h"
3283 #ifdef F77_DUMMY_MAIN
3287 int F77_DUMMY_MAIN() { return 1; }
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)
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. */
3305 for (i = 0; i < 4; i++)
3309 strcpy (a, "--------01111111");
3310 strcpy (b, "--------10000000");
3311 if (memcmp (a, b, 16) >= 0)
3321 rm -f conftest
$ac_exeext
3322 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3323 (eval $ac_link) 2>&5
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
3330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3331 (exit $ac_status); }; }; then
3332 ac_cv_func_memcmp_working
=yes
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
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
3352 rm -f conftest.sym 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
3358 cat >conftest.
$ac_ext <<_ACEOF
3359 #line $LINENO "configure"
3360 #include "confdefs.h"
3361 $ac_includes_default
3362 #ifdef F77_DUMMY_MAIN
3366 int F77_DUMMY_MAIN() { return 1; }
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);
3380 rm -f conftest
$ac_exeext
3381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3382 (eval $ac_link) 2>&5
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
3389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3390 (exit $ac_status); }; }; then
3391 ac_cv_func_lstat_dereferences_slashed_symlink
=yes
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
3397 ac_cv_func_lstat_dereferences_slashed_symlink
=no
3399 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
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
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
3428 if test "$cross_compiling" = yes; then
3429 ac_cv_func_stat_empty_string_bug
=yes
3431 cat >conftest.
$ac_ext <<_ACEOF
3432 #line $LINENO "configure"
3433 #include "confdefs.h"
3434 $ac_includes_default
3435 #ifdef F77_DUMMY_MAIN
3439 int F77_DUMMY_MAIN() { return 1; }
3445 exit (stat ("", &sbuf) ? 1 : 0);
3450 rm -f conftest
$ac_exeext
3451 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3452 (eval $ac_link) 2>&5
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
3459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3460 (exit $ac_status); }; }; then
3461 ac_cv_func_stat_empty_string_bug
=yes
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
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
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
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. */
3506 /* Override any gcc2 internal prototype to avoid an error. */
3510 /* We use char because int might match the return type of a gcc2
3511 builtin and then its argument prototype would still apply. */
3515 #ifdef F77_DUMMY_MAIN
3519 int F77_DUMMY_MAIN() { return 1; }
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)
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
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
3547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3548 (exit $ac_status); }; }; then
3549 eval "$as_ac_var=yes"
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
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
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.
3583 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
3584 # Both variables are already set.
3587 if test "${ac_cv_have_x+set}" = set; then
3588 echo $ECHO_N "(cached) $ECHO_C" >&6
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
3593 if mkdir conftest.dir
; then
3595 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
3596 cat >Imakefile
<<'_ACEOF'
3598 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
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
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
3615 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
3617 case $ac_im_usrlibdir in
3619 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
3626 # Standard set of common directories for X headers.
3627 # Check X11 before X11Rn because it is often a symlink to the current release.
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
3651 /usr/XFree86/include/X11
3655 /usr/unsupported/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>
3671 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3672 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3674 egrep -v '^ *\+' conftest.er1
>conftest.err
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
3687 if test -z "$ac_cpp_err"; then
3688 # We can compile using X headers with no special include directory.
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
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.
3709 cat >conftest.
$ac_ext <<_ACEOF
3710 #line $LINENO "configure"
3711 #include "confdefs.h"
3712 #include <X11/Intrinsic.h>
3713 #ifdef F77_DUMMY_MAIN
3717 int F77_DUMMY_MAIN() { return 1; }
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
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
3737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3738 (exit $ac_status); }; }; then
3740 # We can link X programs with no special library path.
3743 echo "$as_me: failed program was:" >&5
3744 cat conftest.
$ac_ext >&5
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
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"
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"
3774 if test "$have_x" != yes; then
3775 echo "$as_me:$LINENO: result: $have_x" >&5
3776 echo "${ECHO_T}$have_x" >&6
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
3796 X_CFLAGS
= X_PRE_LIBS
= X_LIBS
= X_EXTRA_LIBS
=
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
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
3820 int F77_DUMMY_MAIN() { return 1; }
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
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
3840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3841 (exit $ac_status); }; }; then
3844 echo "$as_me: failed program was:" >&5
3845 cat conftest.
$ac_ext >&5
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"
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
3863 int F77_DUMMY_MAIN() { return 1; }
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
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
3883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3884 (exit $ac_status); }; }; then
3887 echo "$as_me: failed program was:" >&5
3888 cat conftest.
$ac_ext >&5
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"
3897 echo "$as_me:$LINENO: result: neither works" >&5
3898 echo "${ECHO_T}neither works" >&6
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"
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. */
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
3931 int F77_DUMMY_MAIN() { return 1; }
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
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
3951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3952 (exit $ac_status); }; }; then
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
3962 ac_check_lib_save_LIBS
=$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. */
3972 /* We use char because int might match the return type of a gcc2
3973 builtin and then its argument prototype would still apply. */
3975 #ifdef F77_DUMMY_MAIN
3979 int F77_DUMMY_MAIN() { return 1; }
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
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
3999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4000 (exit $ac_status); }; }; then
4001 ac_cv_lib_dnet_dnet_ntoa
=yes
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
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. */
4032 /* We use char because int might match the return type of a gcc2
4033 builtin and then its argument prototype would still apply. */
4035 #ifdef F77_DUMMY_MAIN
4039 int F77_DUMMY_MAIN() { return 1; }
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
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
4059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4060 (exit $ac_status); }; }; then
4061 ac_cv_lib_dnet_stub_dnet_ntoa
=yes
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)
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
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. */
4100 /* Override any gcc2 internal prototype to avoid an error. */
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 ();
4109 #ifdef F77_DUMMY_MAIN
4113 int F77_DUMMY_MAIN() { return 1; }
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)
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
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
4141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4142 (exit $ac_status); }; }; then
4143 ac_cv_func_gethostbyname
=yes
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
4160 ac_check_lib_save_LIBS
=$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. */
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
4177 int F77_DUMMY_MAIN() { return 1; }
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
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
4197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4198 (exit $ac_status); }; }; then
4199 ac_cv_lib_nsl_gethostbyname
=yes
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
4220 ac_check_lib_save_LIBS
=$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. */
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
4237 int F77_DUMMY_MAIN() { return 1; }
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
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
4257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4258 (exit $ac_status); }; }; then
4259 ac_cv_lib_bsd_gethostbyname
=yes
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
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. */
4295 /* Override any gcc2 internal prototype to avoid an error. */
4299 /* We use char because int might match the return type of a gcc2
4300 builtin and then its argument prototype would still apply. */
4304 #ifdef F77_DUMMY_MAIN
4308 int F77_DUMMY_MAIN() { return 1; }
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)
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
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
4336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4337 (exit $ac_status); }; }; then
4338 ac_cv_func_connect
=yes
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
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. */
4365 /* We use char because int might match the return type of a gcc2
4366 builtin and then its argument prototype would still apply. */
4368 #ifdef F77_DUMMY_MAIN
4372 int F77_DUMMY_MAIN() { return 1; }
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
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
4392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4393 (exit $ac_status); }; }; then
4394 ac_cv_lib_socket_connect
=yes
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
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. */
4423 /* Override any gcc2 internal prototype to avoid an error. */
4427 /* We use char because int might match the return type of a gcc2
4428 builtin and then its argument prototype would still apply. */
4432 #ifdef F77_DUMMY_MAIN
4436 int F77_DUMMY_MAIN() { return 1; }
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)
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
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
4464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4465 (exit $ac_status); }; }; then
4466 ac_cv_func_remove
=yes
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
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. */
4493 /* We use char because int might match the return type of a gcc2
4494 builtin and then its argument prototype would still apply. */
4496 #ifdef F77_DUMMY_MAIN
4500 int F77_DUMMY_MAIN() { return 1; }
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
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
4520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4521 (exit $ac_status); }; }; then
4522 ac_cv_lib_posix_remove
=yes
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
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. */
4551 /* Override any gcc2 internal prototype to avoid an error. */
4555 /* We use char because int might match the return type of a gcc2
4556 builtin and then its argument prototype would still apply. */
4560 #ifdef F77_DUMMY_MAIN
4564 int F77_DUMMY_MAIN() { return 1; }
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)
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
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
4592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4593 (exit $ac_status); }; }; then
4594 ac_cv_func_shmat
=yes
4596 echo "$as_me: failed program was:" >&5
4597 cat conftest.
$ac_ext >&5
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
4611 ac_check_lib_save_LIBS
=$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. */
4621 /* We use char because int might match the return type of a gcc2
4622 builtin and then its argument prototype would still apply. */
4624 #ifdef F77_DUMMY_MAIN
4628 int F77_DUMMY_MAIN() { return 1; }
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
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
4648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4649 (exit $ac_status); }; }; then
4650 ac_cv_lib_ipc_shmat
=yes
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
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. */
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
4699 int F77_DUMMY_MAIN() { return 1; }
4704 IceConnectionNumber ();
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
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
4719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4720 (exit $ac_status); }; }; then
4721 ac_cv_lib_ICE_IceConnectionNumber
=yes
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
4749 ac_save_CFLAGS
=$CFLAGS
4750 CFLAGS
="$CFLAGS -pthread"
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
4767 int F77_DUMMY_MAIN() { return 1; }
4772 void *p = pthread_create;
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
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
4787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4788 (exit $ac_status); }; }; then
4789 CFLAGS
="$CFLAGS -pthread"
4790 myapp_cv_gcc_pthread
=yes
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
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
4812 CFLAGS
="$CFLAGS -pthread"
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
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. */
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
4836 int F77_DUMMY_MAIN() { return 1; }
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
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
4856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4857 (exit $ac_status); }; }; then
4858 ac_cv_lib_pthread_pthread_create
=yes
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
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
4877 ac_check_lib_save_LIBS
=$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. */
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
4894 int F77_DUMMY_MAIN() { return 1; }
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
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
4914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4915 (exit $ac_status); }; }; then
4916 ac_cv_lib_c_r_pthread_create
=yes
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
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"
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"
4952 # Check whether --enable-sdltest or --disable-sdltest was given.
4953 if test "${enable_sdltest+set}" = set; then
4954 enableval
="$enable_sdltest"
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
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
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
5001 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG
="no"
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
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
5019 if test "$SDL_CONFIG" = "no" ; then
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"
5037 if test "$cross_compiling" = yes; then
5038 echo $ac_n "cross compiling; assumed OK... $ac_c"
5040 cat >conftest.
$ac_ext <<_ACEOF
5041 #line $LINENO "configure"
5042 #include "confdefs.h"
5050 my_strdup (char *str)
5056 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
5057 strcpy (new_str, str);
5065 int main (int argc, char *argv[])
5067 int major, minor, micro;
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, µ) != 3) {
5078 printf("%s, bad version string\n", "$min_sdl_version");
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)))
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");
5102 rm -f conftest
$ac_exeext
5103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5104 (eval $ac_link) 2>&5
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
5111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5112 (exit $ac_status); }; }; then
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
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"
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."
5143 if test -f conf.sdltest
; then
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"
5156 int main(int argc, char *argv[])
5159 #define main K_and_R_C_main
5161 #ifdef F77_DUMMY_MAIN
5165 int F77_DUMMY_MAIN() { return 1; }
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
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
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"
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"
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"
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; }; }
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
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. */
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
5245 int F77_DUMMY_MAIN() { return 1; }
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
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
5265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5266 (exit $ac_status); }; }; then
5267 ac_cv_lib_SDL_mixer_Mix_OpenAudio
=yes
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"
5281 { { echo "$as_me:$LINENO: error:
5282 *** SDL_mixer not found
5283 Pacman Arena requires SDL_mixer
5285 echo "$as_me: error:
5286 *** SDL_mixer not found
5287 Pacman Arena requires SDL_mixer
5289 { (exit 1); exit 1; }; }
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
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. */
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
5316 int F77_DUMMY_MAIN() { return 1; }
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
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
5336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5337 (exit $ac_status); }; }; then
5338 ac_cv_lib_SDL_net_SDLNet_Init
=yes
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"
5352 { { echo "$as_me:$LINENO: error:
5353 *** SDL_net not found
5354 Pacman Arena requires SDL_net
5356 echo "$as_me: error:
5357 *** SDL_net not found
5358 Pacman Arena requires SDL_net
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
5369 ac_check_lib_save_LIBS
=$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. */
5379 /* We use char because int might match the return type of a gcc2
5380 builtin and then its argument prototype would still apply. */
5382 #ifdef F77_DUMMY_MAIN
5386 int F77_DUMMY_MAIN() { return 1; }
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
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
5406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5407 (exit $ac_status); }; }; then
5408 ac_cv_lib_GL_glEnable
=yes
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"
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
5433 ac_check_lib_save_LIBS
=$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. */
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
5450 int F77_DUMMY_MAIN() { return 1; }
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
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
5470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5471 (exit $ac_status); }; }; then
5472 ac_cv_lib_GLU_gluNewQuadric
=yes
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"
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
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.
5518 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5520 # `set' does not quote correctly, so add quotes (double-quote
5521 # substitution turns \\\\ into \\, and sed turns \\ into \).
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.
5529 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5536 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5538 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
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
5545 echo "not updating unwritable cache $cache_file"
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}:*/:/;
5563 s/^\([^=]*=[ ]*\):*/\1/;
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
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.
5585 SHELL=\${CONFIG_SHELL-$SHELL}
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
5598 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
5603 # Support unset when possible.
5604 if (FOO
=FOO
; unset FOO
) >/dev
/null
2>&1; then
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 ||
5643 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
5644 /^X\/\(\/\/\)$/{ s//\1/; q; }
5645 /^X\/\(\/\).*/{ s//\1/; 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
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
5678 *[\\/]* ) as_myself
=$0 ;;
5679 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5683 test -z "$as_dir" && as_dir
=.
5684 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
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
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
5705 test -z "$as_dir" && as_dir
=.
5706 for as_base
in sh bash ksh sh5
; do
5709 if ("$as_dir/$as_base" -c '
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
5717 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
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 |
5738 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
5741 s,^['$as_cr_digits']*\n,,
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).
5752 # Exit status is that of the last command.
5757 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
5758 *c
*,-n*) ECHO_N
= ECHO_C
='
5760 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
5761 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
5764 if expr a
: '\(a\)' >/dev
/null
2>&1; then
5770 rm -f conf$$ conf$$.exe 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
5781 elif ln conf$$.
file conf$$
2>/dev
/null
; then
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"
5798 # We need space, tab and new line, in precisely that order.
5804 $as_unset CDPATH ||
test "${CDPATH+set}" != set ||
{ CDPATH
=$PATH_SEPARATOR; export CDPATH
; }
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.
5814 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5815 ## Running $as_me. ##
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
5830 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
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
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:
5871 Configuration headers:
5874 Report bugs to <bug-autoconf@gnu.org>."
5877 cat >>$CONFIG_STATUS <<_ACEOF
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."
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.
5898 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
5899 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
5901 set dummy
"$ac_option" "$ac_optarg" ${1+"$@"}
5905 *) # This is not an option, so the user has probably given explicit
5907 ac_need_defaults
=false
;;
5911 # Handling of the options.
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 ;;
5918 cat >>$CONFIG_STATUS <<\_ACEOF
5919 --version |
--vers* |
-V )
5920 echo "$ac_cs_version"; exit 0 ;;
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 )
5932 --file |
--fil |
--fi |
--f )
5934 CONFIG_FILES
="$CONFIG_FILES $1"
5935 ac_need_defaults
=false
;;
5936 --header |
--heade |
--head |
--hea )
5938 CONFIG_HEADERS
="$CONFIG_HEADERS $1"
5939 ac_need_defaults
=false
;;
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" ;;
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; }; };;
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.
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.
5992 tmp
=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
5993 test -n "$tmp" && test -d "$tmp"
5996 tmp
=$TMPDIR/cs$$
-$RANDOM
5997 (umask 077 && mkdir
$tmp)
6000 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
6001 { (exit 1); exit 1; }
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
6044 s,@ECHO_C@,$ECHO_C,;t t
6045 s,@ECHO_N@,$ECHO_N,;t t
6046 s,@ECHO_T@,$ECHO_T,;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
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
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
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
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.
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.
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
6096 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
6098 if test ! -s $tmp/subs.frag
; then
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.
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"
6110 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
6112 ac_sed_frag
=`expr $ac_sed_frag + 1`
6114 ac_end
=`expr $ac_end + $ac_max_sed_lines`
6117 if test -z "$ac_sed_cmds"; then
6120 fi # test -n "$CONFIG_FILES"
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".
6127 - |
*:- |
*:-:* ) # input from 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 ;;
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 ||
6144 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6145 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6146 /^X\(\/\/\)$/{ s//\1/; q; }
6147 /^X\(\/\).*/{ s//\1/; q; }
6150 [\\/]* | ?
:[\\/]* ) as_incr_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; }; }
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'`
6176 ac_dir_suffix
= ac_top_builddir
=
6180 .
) # No --srcdir option. We are building in place.
6182 if test -z "$ac_top_builddir"; then
6185 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
6187 [\\/]* | ?
:[\\/]* ) # Absolute path.
6188 ac_srcdir
=$srcdir$ac_dir_suffix;
6189 ac_top_srcdir
=$srcdir ;;
6191 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
6192 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
6194 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
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;}
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
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
6221 ac_file_inputs
=`IFS=:
6222 for f in $ac_file_in; do
6224 -) echo $tmp/stdin ;;
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; }; }
6232 if test -f "$f"; then
6235 elif test -f "$srcdir/$f"; then
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; }; }
6245 done` ||
{ (exit 1); exit 1; }
6247 cat >>$CONFIG_STATUS <<_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
6265 if test x"$ac_file" != x-; then
6266 mv $tmp/out $ac_file
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'
6288 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6289 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6290 ac_uB
='$,\1#\2define\3'
6294 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
6295 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6297 - |
*:- |
*:-:* ) # input from 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 ;;
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
6311 ac_file_inputs
=`IFS=:
6312 for f in $ac_file_in; do
6314 -) echo $tmp/stdin ;;
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; }; }
6322 if test -f "$f"; then
6325 elif test -f "$srcdir/$f"; then
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; }; }
6335 done` ||
{ (exit 1); exit 1; }
6336 # Remove the trailing spaces.
6337 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
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
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
6360 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
6362 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
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]*,/* & */,
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
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
6397 sed -f $tmp/defines.sed $tmp/in >$tmp/out
6401 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
6402 rm -f conftest.defines
6403 mv conftest.
tail conftest.defines
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
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
6424 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
6428 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
6429 rm -f conftest.undefs
6430 mv conftest.tail conftest.undefs
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
6441 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
6443 cat $tmp/in >>$tmp/config.h
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;}
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 ||
6457 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6458 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6459 /^X\(\/\/\)$/{ s//\1/; q; }
6460 /^X\(\/\).*/{ s//\1/; q; }
6463 [\\/]* | ?
:[\\/]* ) as_incr_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; }; }
6483 mv $tmp/config.h
$ac_file
6492 cat >>$CONFIG_STATUS <<\_ACEOF
6494 { (exit 0); exit 0; }
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
6511 $SHELL $CONFIG_STATUS || ac_cs_success
=false
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; }