2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE
=1; export DUALCASE
# for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
23 case `(set -o) 2>/dev/null` in
24 *posix
*) set -o posix
;;
33 # Avoid depending upon Character Ranges.
34 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits
='0123456789'
38 as_cr_alnum
=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
53 # Support unset when possible.
54 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself
=$0 ;;
73 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir
=.
78 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x
; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var
in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C
; export $as_var
111 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
123 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me
=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x
; then
155 if (eval ":") 2>/dev
/null
; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev
/null
; then
221 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
222 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir
=.
228 for as_base
in sh bash ksh sh5
; do
229 as_candidate_shells
="$as_candidate_shells $as_dir/$as_base"
236 for as_shell
in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev
/null
<<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
248 case `(set -o) 2>/dev/null` in
249 *posix
*) set -o posix
;;
258 CONFIG_SHELL
=$as_shell
260 if { "$as_shell" 2> /dev
/null
<<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in
270 *posix
*) set -o posix
;;
286 as_func_ret_success
() {
289 as_func_ret_failure
() {
294 if as_func_success
; then
298 echo as_func_success failed.
301 if as_func_failure
; then
303 echo as_func_failure succeeded.
306 if as_func_ret_success
; then
310 echo as_func_ret_success failed.
313 if as_func_ret_failure
; then
315 echo as_func_ret_failure succeeded.
318 if ( set x
; as_func_ret_success y
&& test x
= "$1" ); then
322 echo positional parameters were not saved.
325 test $exitcode = 0) ||
{ (exit 1); exit 1; }
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") ||
{ (exit 1); exit 1; }
342 if test "x$CONFIG_SHELL" != x
; then
343 for as_var
in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no
; then
352 echo This
script requires a shell
more modern than all the
353 echo shells that I found on your system. Please
install a
354 echo modern shell
, or manually run the
script under such a
355 echo shell
if you
do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
375 as_func_ret_success () {
378 as_func_ret_failure () {
383 if as_func_success; then
387 echo as_func_success failed.
390 if as_func_failure; then
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411 echo positional parameters were not saved.
414 test \$exitcode = 0") ||
{
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system
,
417 echo including any error possibly output before this
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453 chmod +x
"$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
461 # Exit status is that of the last command.
466 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
472 ECHO_C
= ECHO_N
= ECHO_T
=
476 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
483 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
490 rm -f conf$$ conf$$.exe conf$$.
file
491 if test -d conf$$.dir
; then
492 rm -f conf$$.dir
/conf$$.
file
498 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
506 elif ln conf$$.
file conf$$
2>/dev
/null
; then
511 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
512 rmdir conf$$.dir
2>/dev
/null
514 if mkdir
-p .
2>/dev
/null
; then
517 test -d .
/-p && rmdir .
/-p
521 if test -x / >/dev
/null
2>&1; then
524 if ls -dL / >/dev
/null
2>&1; then
531 if test -d "$1"; then
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
542 as_executable_p
=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552 exec 7<&0 </dev
/null
6>&1
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
562 ac_default_prefix
=/usr
/local
564 ac_config_libobj_dir
=.
570 SHELL
=${CONFIG_SHELL-/bin/sh}
572 # Identity of this package.
579 ac_unique_file
="README"
589 program_transform_name
644 ac_precious_vars
='build_alias
656 # Initialize some variables set by options.
658 ac_init_version
=false
659 # The variables have the same names as the options, with
660 # dashes changed to underlines.
668 program_transform_name
=s
,x
,x
,
676 # Installation directory options.
677 # These are left unexpanded so users can "make install exec_prefix=/foo"
678 # and all the variables that are supposed to be based on exec_prefix
679 # by default will actually change.
680 # Use braces instead of parens because sh, perl, etc. also accept them.
681 # (The list follows the same order as the GNU Coding Standards.)
682 bindir
='${exec_prefix}/bin'
683 sbindir
='${exec_prefix}/sbin'
684 libexecdir
='${exec_prefix}/libexec'
685 datarootdir
='${prefix}/share'
686 datadir
='${datarootdir}'
687 sysconfdir
='${prefix}/etc'
688 sharedstatedir
='${prefix}/com'
689 localstatedir
='${prefix}/var'
690 includedir
='${prefix}/include'
691 oldincludedir
='/usr/include'
692 docdir
='${datarootdir}/doc/${PACKAGE}'
693 infodir
='${datarootdir}/info'
698 libdir
='${exec_prefix}/lib'
699 localedir
='${datarootdir}/locale'
700 mandir
='${datarootdir}/man'
706 # If the previous option needs an argument, assign it.
707 if test -n "$ac_prev"; then
708 eval $ac_prev=\
$ac_option
714 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
718 # Accept the important Cygnus configure options, so we can diagnose typos.
720 case $ac_dashdash$ac_option in
724 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
726 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
729 -build |
--build |
--buil |
--bui |
--bu)
730 ac_prev
=build_alias
;;
731 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
732 build_alias
=$ac_optarg ;;
734 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
735 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
736 ac_prev
=cache_file
;;
737 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
738 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
739 cache_file
=$ac_optarg ;;
742 cache_file
=config.cache
;;
744 -datadir |
--datadir |
--datadi |
--datad)
746 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
747 datadir
=$ac_optarg ;;
749 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
750 |
--dataroo |
--dataro |
--datar)
751 ac_prev
=datarootdir
;;
752 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
753 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
754 datarootdir
=$ac_optarg ;;
756 -disable-* |
--disable-*)
757 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
758 # Reject names that are not valid shell variable names.
759 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
760 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
761 { (exit 1); exit 1; }; }
762 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
763 eval enable_
$ac_feature=no
;;
765 -docdir |
--docdir |
--docdi |
--doc |
--do)
767 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
770 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
772 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
775 -enable-* |
--enable-*)
776 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
777 # Reject names that are not valid shell variable names.
778 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
779 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
780 { (exit 1); exit 1; }; }
781 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
782 eval enable_
$ac_feature=\
$ac_optarg ;;
784 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
785 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
786 |
--exec |
--exe |
--ex)
787 ac_prev
=exec_prefix
;;
788 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
789 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
790 |
--exec=* |
--exe=* |
--ex=*)
791 exec_prefix
=$ac_optarg ;;
793 -gas |
--gas |
--ga |
--g)
794 # Obsolete; use --with-gas.
797 -help |
--help |
--hel |
--he |
-h)
799 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
800 ac_init_help
=recursive
;;
801 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
802 ac_init_help
=short
;;
804 -host |
--host |
--hos |
--ho)
805 ac_prev
=host_alias
;;
806 -host=* |
--host=* |
--hos=* |
--ho=*)
807 host_alias
=$ac_optarg ;;
809 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
811 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
813 htmldir
=$ac_optarg ;;
815 -includedir |
--includedir |
--includedi |
--included |
--include \
816 |
--includ |
--inclu |
--incl |
--inc)
817 ac_prev
=includedir
;;
818 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
819 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
820 includedir
=$ac_optarg ;;
822 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
824 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
825 infodir
=$ac_optarg ;;
827 -libdir |
--libdir |
--libdi |
--libd)
829 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
832 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
833 |
--libexe |
--libex |
--libe)
834 ac_prev
=libexecdir
;;
835 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
836 |
--libexe=* |
--libex=* |
--libe=*)
837 libexecdir
=$ac_optarg ;;
839 -localedir |
--localedir |
--localedi |
--localed |
--locale)
841 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
842 localedir
=$ac_optarg ;;
844 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
845 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
846 ac_prev
=localstatedir
;;
847 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
848 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
849 localstatedir
=$ac_optarg ;;
851 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
853 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
857 # Obsolete; use --without-fp.
860 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
861 |
--no-cr |
--no-c |
-n)
864 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
865 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
868 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
869 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
870 |
--oldin |
--oldi |
--old |
--ol |
--o)
871 ac_prev
=oldincludedir
;;
872 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
873 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
874 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
875 oldincludedir
=$ac_optarg ;;
877 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
879 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
882 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
883 |
--program-pre |
--program-pr |
--program-p)
884 ac_prev
=program_prefix
;;
885 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
886 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
887 program_prefix
=$ac_optarg ;;
889 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
890 |
--program-suf |
--program-su |
--program-s)
891 ac_prev
=program_suffix
;;
892 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
893 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
894 program_suffix
=$ac_optarg ;;
896 -program-transform-name |
--program-transform-name \
897 |
--program-transform-nam |
--program-transform-na \
898 |
--program-transform-n |
--program-transform- \
899 |
--program-transform |
--program-transfor \
900 |
--program-transfo |
--program-transf \
901 |
--program-trans |
--program-tran \
902 |
--progr-tra |
--program-tr |
--program-t)
903 ac_prev
=program_transform_name
;;
904 -program-transform-name=* |
--program-transform-name=* \
905 |
--program-transform-nam=* |
--program-transform-na=* \
906 |
--program-transform-n=* |
--program-transform-=* \
907 |
--program-transform=* |
--program-transfor=* \
908 |
--program-transfo=* |
--program-transf=* \
909 |
--program-trans=* |
--program-tran=* \
910 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
911 program_transform_name
=$ac_optarg ;;
913 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
915 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
918 -psdir |
--psdir |
--psdi |
--psd |
--ps)
920 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
923 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
924 |
-silent |
--silent |
--silen |
--sile |
--sil)
927 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
929 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
931 sbindir
=$ac_optarg ;;
933 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
934 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
935 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
937 ac_prev
=sharedstatedir
;;
938 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
939 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
940 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
942 sharedstatedir
=$ac_optarg ;;
944 -site |
--site |
--sit)
946 -site=* |
--site=* |
--sit=*)
949 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
951 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
954 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
955 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
956 ac_prev
=sysconfdir
;;
957 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
958 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
959 sysconfdir
=$ac_optarg ;;
961 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
962 ac_prev
=target_alias
;;
963 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
964 target_alias
=$ac_optarg ;;
966 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
969 -version |
--version |
--versio |
--versi |
--vers |
-V)
973 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
974 # Reject names that are not valid shell variable names.
975 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
976 { echo "$as_me: error: invalid package name: $ac_package" >&2
977 { (exit 1); exit 1; }; }
978 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
979 eval with_
$ac_package=\
$ac_optarg ;;
981 -without-* |
--without-*)
982 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
983 # Reject names that are not valid shell variable names.
984 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
985 { echo "$as_me: error: invalid package name: $ac_package" >&2
986 { (exit 1); exit 1; }; }
987 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
988 eval with_
$ac_package=no
;;
991 # Obsolete; use --with-x.
994 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
995 |
--x-incl |
--x-inc |
--x-in |
--x-i)
996 ac_prev
=x_includes
;;
997 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
998 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
999 x_includes
=$ac_optarg ;;
1001 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1002 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1003 ac_prev
=x_libraries
;;
1004 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1005 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1006 x_libraries
=$ac_optarg ;;
1008 -*) { echo "$as_me: error: unrecognized option: $ac_option
1009 Try \`$0 --help' for more information." >&2
1010 { (exit 1); exit 1; }; }
1014 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1015 # Reject names that are not valid shell variable names.
1016 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1017 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1018 { (exit 1); exit 1; }; }
1019 eval $ac_envvar=\
$ac_optarg
1020 export $ac_envvar ;;
1023 # FIXME: should be removed in autoconf 3.0.
1024 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1025 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1026 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1027 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1033 if test -n "$ac_prev"; then
1034 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1035 { echo "$as_me: error: missing argument to $ac_option" >&2
1036 { (exit 1); exit 1; }; }
1039 # Be sure to have absolute directory names.
1040 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1041 datadir sysconfdir sharedstatedir localstatedir includedir \
1042 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1043 libdir localedir mandir
1045 eval ac_val
=\$
$ac_var
1047 [\\/$
]* | ?
:[\\/]* ) continue;;
1048 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1050 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1051 { (exit 1); exit 1; }; }
1054 # There might be people who depend on the old broken behavior: `$host'
1055 # used to hold the argument of --host etc.
1056 # FIXME: To remove some day.
1059 target
=$target_alias
1061 # FIXME: To remove some day.
1062 if test "x$host_alias" != x
; then
1063 if test "x$build_alias" = x
; then
1064 cross_compiling
=maybe
1065 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1066 If a cross compiler is detected then cross compile mode will be used." >&2
1067 elif test "x$build_alias" != "x$host_alias"; then
1073 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1075 test "$silent" = yes && exec 6>/dev
/null
1078 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1079 ac_ls_di
=`ls -di .` &&
1080 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1081 { echo "$as_me: error: Working directory cannot be determined" >&2
1082 { (exit 1); exit 1; }; }
1083 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1084 { echo "$as_me: error: pwd does not report name of working directory" >&2
1085 { (exit 1); exit 1; }; }
1088 # Find the source files, if location was not specified.
1089 if test -z "$srcdir"; then
1090 ac_srcdir_defaulted
=yes
1091 # Try the directory containing this script, then the parent directory.
1092 ac_confdir
=`$as_dirname -- "$0" ||
1093 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1094 X"$0" : 'X\(//\)[^/]' \| \
1095 X"$0" : 'X\(//\)$' \| \
1096 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1098 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1116 if test ! -r "$srcdir/$ac_unique_file"; then
1120 ac_srcdir_defaulted
=no
1122 if test ! -r "$srcdir/$ac_unique_file"; then
1123 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1124 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1125 { (exit 1); exit 1; }; }
1127 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1129 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1130 { (exit 1); exit 1; }; }
1132 # When building in place, set srcdir=.
1133 if test "$ac_abs_confdir" = "$ac_pwd"; then
1136 # Remove unnecessary trailing slashes from srcdir.
1137 # Double slashes in file names in object file debugging info
1138 # mess up M-x gdb in Emacs.
1140 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1142 for ac_var
in $ac_precious_vars; do
1143 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1144 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1145 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1146 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1150 # Report the --help message.
1152 if test "$ac_init_help" = "long"; then
1153 # Omit some internal or obsolete options to make the list less imposing.
1154 # This message is too long to be a string in the A/UX 3.1 sh.
1156 \`configure' configures this package to adapt to many kinds of systems.
1158 Usage: $0 [OPTION]... [VAR=VALUE]...
1160 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1161 VAR=VALUE. See below for descriptions of some of the useful variables.
1163 Defaults for the options are specified in brackets.
1166 -h, --help display this help and exit
1167 --help=short display options specific to this package
1168 --help=recursive display the short help of all the included packages
1169 -V, --version display version information and exit
1170 -q, --quiet, --silent do not print \`checking...' messages
1171 --cache-file=FILE cache test results in FILE [disabled]
1172 -C, --config-cache alias for \`--cache-file=config.cache'
1173 -n, --no-create do not create output files
1174 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1176 Installation directories:
1177 --prefix=PREFIX install architecture-independent files in PREFIX
1178 [$ac_default_prefix]
1179 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1182 By default, \`make install' will install all the files in
1183 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1184 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1185 for instance \`--prefix=\$HOME'.
1187 For better control, use the options below.
1189 Fine tuning of the installation directories:
1190 --bindir=DIR user executables [EPREFIX/bin]
1191 --sbindir=DIR system admin executables [EPREFIX/sbin]
1192 --libexecdir=DIR program executables [EPREFIX/libexec]
1193 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1194 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1195 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1196 --libdir=DIR object code libraries [EPREFIX/lib]
1197 --includedir=DIR C header files [PREFIX/include]
1198 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1199 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1200 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1201 --infodir=DIR info documentation [DATAROOTDIR/info]
1202 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1203 --mandir=DIR man documentation [DATAROOTDIR/man]
1204 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1205 --htmldir=DIR html documentation [DOCDIR]
1206 --dvidir=DIR dvi documentation [DOCDIR]
1207 --pdfdir=DIR pdf documentation [DOCDIR]
1208 --psdir=DIR ps documentation [DOCDIR]
1214 --x-includes=DIR X include files are
in DIR
1215 --x-libraries=DIR X library files are
in DIR
1218 --build=BUILD configure
for building on BUILD
[guessed
]
1219 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1223 if test -n "$ac_init_help"; then
1228 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1229 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1230 --disable-sdltest Do not try to compile and run a
test SDL program
1233 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1234 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1235 --with-sdl-prefix=PFX Prefix where SDL is installed
(optional
)
1236 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed
(optional
)
1237 --with-x use the X Window System
1239 Some influential environment variables
:
1240 CC C compiler
command
1241 CFLAGS C compiler flags
1242 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1243 nonstandard directory
<lib dir
>
1244 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1245 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1246 you have headers
in a nonstandard directory
<include dir
>
1247 XMKMF Path to xmkmf
, Makefile generator
for X Window System
1250 Use these variables to override the choices made by
`configure' or to help
1251 it to find libraries and programs with nonstandard names/locations.
1257 if test "$ac_init_help" = "recursive"; then
1258 # If there are subdirs, report their specific --help.
1259 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1260 test -d "$ac_dir" || continue
1264 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1266 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1267 # A ".." for each directory in $ac_dir_suffix.
1268 ac_top_builddir_sub=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,/..,g;s,/,,'`
1269 case $ac_top_builddir_sub in
1270 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1271 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1274 ac_abs_top_builddir=$ac_pwd
1275 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1276 # for backward compatibility:
1277 ac_top_builddir=$ac_top_build_prefix
1280 .) # We are building in place.
1282 ac_top_srcdir=$ac_top_builddir_sub
1283 ac_abs_top_srcdir=$ac_pwd ;;
1284 [\\/]* | ?:[\\/]* ) # Absolute name.
1285 ac_srcdir=$srcdir$ac_dir_suffix;
1286 ac_top_srcdir=$srcdir
1287 ac_abs_top_srcdir=$srcdir ;;
1289 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1290 ac_top_srcdir=$ac_top_build_prefix$srcdir
1291 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1293 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1295 cd "$ac_dir" || { ac_status=$?; continue; }
1296 # Check for guested configure.
1297 if test -f "$ac_srcdir/configure.gnu"; then
1299 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1300 elif test -f "$ac_srcdir/configure"; then
1302 $SHELL "$ac_srcdir/configure" --help=recursive
1304 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1306 cd "$ac_pwd" || { ac_status=$?; break; }
1310 test -n "$ac_init_help" && exit $ac_status
1311 if $ac_init_version; then
1314 generated by GNU Autoconf 2.61
1316 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1317 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1318 This configure script is free software; the Free Software Foundation
1319 gives unlimited permission to copy, distribute and modify it.
1323 cat >config.log <<_ACEOF
1324 This file contains any messages produced by compilers while
1325 running configure, to aid debugging if configure makes a mistake.
1327 It was created by $as_me, which was
1328 generated by GNU Autoconf 2.61. Invocation command line was
1340 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1341 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1342 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1343 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1344 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1346 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1347 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1349 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1350 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1351 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1352 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1353 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1354 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1355 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1363 test -z "$as_dir" && as_dir=.
1364 echo "PATH: $as_dir"
1380 # Keep a trace of the command line.
1381 # Strip out --no-create and --no-recursion so they do not pile up.
1382 # Strip out --silent because we don't want to record it for future runs.
1383 # Also quote any args containing shell meta-characters.
1384 # Make two passes to allow for proper duplicate-argument suppression.
1388 ac_must_keep_next=false
1394 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1395 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1396 | -silent | --silent | --silen | --sile | --sil)
1399 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1402 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1404 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1405 if test $ac_must_keep_next = true; then
1406 ac_must_keep_next=false # Got value, back to normal.
1409 *=* | --config-cache | -C | -disable-* | --disable-* \
1410 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1411 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1412 | -with-* | --with-* | -without-* | --without-* | --x)
1413 case "$ac_configure_args0 " in
1414 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1417 -* ) ac_must_keep_next=true ;;
1420 ac_configure_args="$ac_configure_args '$ac_arg'"
1425 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1426 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1428 # When interrupted or exit'd, cleanup temporary files, and complete
1429 # config.log. We remove comments because anyway the quotes in there
1430 # would cause problems or look ugly.
1431 # WARNING: Use '\'' to represent an apostrophe within the trap.
1432 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1433 trap 'exit_status=$?
1434 # Save into config.log some information that might help in debugging.
1439 ## ---------------- ##
1440 ## Cache variables. ##
1441 ## ---------------- ##
1444 # The following way of writing the cache mishandles newlines in values,
1446 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1447 eval ac_val=\$$ac_var
1451 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1452 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1455 _ | IFS | as_nl) ;; #(
1456 *) $as_unset $ac_var ;;
1461 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1462 *${as_nl}ac_space=\ *)
1464 "s/'\''/'\''\\\\'\'''\''/g;
1465 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1468 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1476 ## ----------------- ##
1477 ## Output variables. ##
1478 ## ----------------- ##
1481 for ac_var in $ac_subst_vars
1483 eval ac_val=\$$ac_var
1485 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1487 echo "$ac_var='\''$ac_val'\''"
1491 if test -n "$ac_subst_files"; then
1493 ## ------------------- ##
1494 ## File substitutions. ##
1495 ## ------------------- ##
1498 for ac_var in $ac_subst_files
1500 eval ac_val=\$$ac_var
1502 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1504 echo "$ac_var='\''$ac_val'\''"
1509 if test -s confdefs.h; then
1519 test "$ac_signal" != 0 &&
1520 echo "$as_me: caught signal $ac_signal"
1521 echo "$as_me: exit $exit_status"
1523 rm -f core *.core core.conftest.* &&
1524 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1527 for ac_signal in 1 2 13 15; do
1528 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1532 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1533 rm -f -r conftest* confdefs.h
1535 # Predefined preprocessor variables.
1537 cat >>confdefs.h <<_ACEOF
1538 #define PACKAGE_NAME "$PACKAGE_NAME"
1542 cat >>confdefs.h <<_ACEOF
1543 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1547 cat >>confdefs.h <<_ACEOF
1548 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1552 cat >>confdefs.h <<_ACEOF
1553 #define PACKAGE_STRING "$PACKAGE_STRING"
1557 cat >>confdefs.h <<_ACEOF
1558 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1562 # Let the site file select an alternate cache file if it wants to.
1563 # Prefer explicitly selected file to automatically selected ones.
1564 if test -n "$CONFIG_SITE"; then
1565 set x "$CONFIG_SITE"
1566 elif test "x$prefix" != xNONE; then
1567 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1569 set x "$ac_default_prefix/share/config.site" \
1570 "$ac_default_prefix/etc/config.site"
1575 if test -r "$ac_site_file"; then
1576 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1577 echo "$as_me: loading site script $ac_site_file" >&6;}
1578 sed 's/^/| /' "$ac_site_file" >&5
1583 if test -r "$cache_file"; then
1584 # Some versions of bash will fail to source /dev/null (special
1585 # files actually), so we avoid doing that.
1586 if test -f "$cache_file"; then
1587 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1588 echo "$as_me: loading cache $cache_file" >&6;}
1590 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1591 *) . "./$cache_file";;
1595 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1596 echo "$as_me: creating cache $cache_file" >&6;}
1600 # Check that the precious variables saved in the cache have kept the same
1602 ac_cache_corrupted=false
1603 for ac_var in $ac_precious_vars; do
1604 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1605 eval ac_new_set=\$ac_env_${ac_var}_set
1606 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1607 eval ac_new_val=\$ac_env_${ac_var}_value
1608 case $ac_old_set,$ac_new_set in
1610 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1611 echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1612 ac_cache_corrupted=: ;;
1614 { echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1615 echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1616 ac_cache_corrupted=: ;;
1619 if test "x$ac_old_val" != "x$ac_new_val"; then
1620 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1621 echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1622 { echo "$as_me:$LINENO: former value
: $ac_old_val" >&5
1623 echo "$as_me: former value
: $ac_old_val" >&2;}
1624 { echo "$as_me:$LINENO: current value
: $ac_new_val" >&5
1625 echo "$as_me: current value
: $ac_new_val" >&2;}
1626 ac_cache_corrupted=:
1629 # Pass precious variables to config.status.
1630 if test "$ac_new_set" = set; then
1632 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1633 *) ac_arg=$ac_var=$ac_new_val ;;
1635 case " $ac_configure_args " in
1636 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1637 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1641 if $ac_cache_corrupted; then
1642 { echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
1643 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
1644 { { echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
1645 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
1646 { (exit 1); exit 1; }; }
1666 ac_cpp='$CPP $CPPFLAGS'
1667 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1668 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1669 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1674 for ac_dir in $srcdir/../build-scripts; do
1675 if test -f "$ac_dir/install-sh"; then
1677 ac_install_sh="$ac_aux_dir/install-sh -c"
1679 elif test -f "$ac_dir/install.sh"; then
1681 ac_install_sh="$ac_aux_dir/install.sh -c"
1683 elif test -f "$ac_dir/shtool"; then
1685 ac_install_sh="$ac_aux_dir/shtool install -c"
1689 if test -z "$ac_aux_dir"; then
1690 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir/../build-scripts" >&5
1691 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir/../build-scripts" >&2;}
1692 { (exit 1); exit 1; }; }
1695 # These three variables are undocumented and unsupported,
1696 # and are intended to be withdrawn in a future Autoconf release.
1697 # They can cause serious problems if a builder's source tree is in a directory
1698 # whose full name contains unusual characters.
1699 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1700 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1701 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1704 # Make sure we can run config.sub.
1705 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1706 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1707 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1708 { (exit 1); exit 1; }; }
1710 { echo "$as_me:$LINENO: checking build system type" >&5
1711 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1712 if test "${ac_cv_build+set}" = set; then
1713 echo $ECHO_N "(cached) $ECHO_C" >&6
1715 ac_build_alias=$build_alias
1716 test "x$ac_build_alias" = x &&
1717 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1718 test "x$ac_build_alias" = x &&
1719 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1720 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1721 { (exit 1); exit 1; }; }
1722 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1723 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1724 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1725 { (exit 1); exit 1; }; }
1728 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1729 echo "${ECHO_T}$ac_cv_build" >&6; }
1730 case $ac_cv_build in
1732 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1733 echo "$as_me: error: invalid value of canonical build" >&2;}
1734 { (exit 1); exit 1; }; };;
1737 ac_save_IFS=$IFS; IFS='-'
1743 # Remember, the first character of IFS is used to create $*,
1744 # except with old shells:
1747 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
1750 { echo "$as_me:$LINENO: checking host system type" >&5
1751 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1752 if test "${ac_cv_host+set}" = set; then
1753 echo $ECHO_N "(cached) $ECHO_C" >&6
1755 if test "x$host_alias" = x; then
1756 ac_cv_host=$ac_cv_build
1758 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1759 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1760 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1761 { (exit 1); exit 1; }; }
1765 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1766 echo "${ECHO_T}$ac_cv_host" >&6; }
1769 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1770 echo "$as_me: error: invalid value of canonical host" >&2;}
1771 { (exit 1); exit 1; }; };;
1774 ac_save_IFS=$IFS; IFS='-'
1780 # Remember, the first character of IFS is used to create $*,
1781 # except with old shells:
1784 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
1790 ac_cpp='$CPP $CPPFLAGS'
1791 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1792 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1793 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1794 if test -n "$ac_tool_prefix"; then
1795 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1796 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1797 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1798 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1799 if test "${ac_cv_prog_CC+set}" = set; then
1800 echo $ECHO_N "(cached) $ECHO_C" >&6
1802 if test -n "$CC"; then
1803 ac_cv_prog_CC="$CC" # Let the user override the test.
1805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1809 test -z "$as_dir" && as_dir=.
1810 for ac_exec_ext in '' $ac_executable_extensions; do
1811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1812 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1813 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1823 if test -n "$CC"; then
1824 { echo "$as_me:$LINENO: result: $CC" >&5
1825 echo "${ECHO_T}$CC" >&6; }
1827 { echo "$as_me:$LINENO: result: no" >&5
1828 echo "${ECHO_T}no" >&6; }
1833 if test -z "$ac_cv_prog_CC"; then
1835 # Extract the first word of "gcc", so it can be a program name with args.
1836 set dummy gcc; ac_word=$2
1837 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1838 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1839 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1840 echo $ECHO_N "(cached) $ECHO_C" >&6
1842 if test -n "$ac_ct_CC"; then
1843 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1849 test -z "$as_dir" && as_dir=.
1850 for ac_exec_ext in '' $ac_executable_extensions; do
1851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1852 ac_cv_prog_ac_ct_CC="gcc"
1853 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1862 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1863 if test -n "$ac_ct_CC"; then
1864 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1865 echo "${ECHO_T}$ac_ct_CC" >&6; }
1867 { echo "$as_me:$LINENO: result: no" >&5
1868 echo "${ECHO_T}no" >&6; }
1871 if test "x$ac_ct_CC" = x; then
1874 case $cross_compiling:$ac_tool_warned in
1876 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1877 whose name does not start with the host triplet. If you think this
1878 configuration is useful to you, please write to autoconf@gnu.org." >&5
1879 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1880 whose name does not start with the host triplet. If you think this
1881 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1882 ac_tool_warned=yes ;;
1890 if test -z "$CC"; then
1891 if test -n "$ac_tool_prefix"; then
1892 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1893 set dummy ${ac_tool_prefix}cc; ac_word=$2
1894 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1895 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1896 if test "${ac_cv_prog_CC+set}" = set; then
1897 echo $ECHO_N "(cached) $ECHO_C" >&6
1899 if test -n "$CC"; then
1900 ac_cv_prog_CC="$CC" # Let the user override the test.
1902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1906 test -z "$as_dir" && as_dir=.
1907 for ac_exec_ext in '' $ac_executable_extensions; do
1908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1909 ac_cv_prog_CC="${ac_tool_prefix}cc"
1910 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1920 if test -n "$CC"; then
1921 { echo "$as_me:$LINENO: result: $CC" >&5
1922 echo "${ECHO_T}$CC" >&6; }
1924 { echo "$as_me:$LINENO: result: no" >&5
1925 echo "${ECHO_T}no" >&6; }
1931 if test -z "$CC"; then
1932 # Extract the first word of "cc", so it can be a program name with args.
1933 set dummy cc; ac_word=$2
1934 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1935 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1936 if test "${ac_cv_prog_CC+set}" = set; then
1937 echo $ECHO_N "(cached) $ECHO_C" >&6
1939 if test -n "$CC"; then
1940 ac_cv_prog_CC="$CC" # Let the user override the test.
1943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1947 test -z "$as_dir" && as_dir=.
1948 for ac_exec_ext in '' $ac_executable_extensions; do
1949 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1950 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1951 ac_prog_rejected=yes
1955 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1962 if test $ac_prog_rejected = yes; then
1963 # We found a bogon in the path, so make sure we never use it.
1964 set dummy $ac_cv_prog_CC
1966 if test $# != 0; then
1967 # We chose a different compiler from the bogus one.
1968 # However, it has the same basename, so the bogon will be chosen
1969 # first if we set CC to just the basename; use the full file name.
1971 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1977 if test -n "$CC"; then
1978 { echo "$as_me:$LINENO: result: $CC" >&5
1979 echo "${ECHO_T}$CC" >&6; }
1981 { echo "$as_me:$LINENO: result: no" >&5
1982 echo "${ECHO_T}no" >&6; }
1987 if test -z "$CC"; then
1988 if test -n "$ac_tool_prefix"; then
1989 for ac_prog in cl.exe
1991 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1992 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1993 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1994 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1995 if test "${ac_cv_prog_CC+set}" = set; then
1996 echo $ECHO_N "(cached) $ECHO_C" >&6
1998 if test -n "$CC"; then
1999 ac_cv_prog_CC="$CC" # Let the user override the test.
2001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2005 test -z "$as_dir" && as_dir=.
2006 for ac_exec_ext in '' $ac_executable_extensions; do
2007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2008 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2009 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2019 if test -n "$CC"; then
2020 { echo "$as_me:$LINENO: result: $CC" >&5
2021 echo "${ECHO_T}$CC" >&6; }
2023 { echo "$as_me:$LINENO: result: no" >&5
2024 echo "${ECHO_T}no" >&6; }
2028 test -n "$CC" && break
2031 if test -z "$CC"; then
2033 for ac_prog in cl.exe
2035 # Extract the first word of "$ac_prog", so it can be a program name with args.
2036 set dummy $ac_prog; ac_word=$2
2037 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2038 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2039 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2040 echo $ECHO_N "(cached) $ECHO_C" >&6
2042 if test -n "$ac_ct_CC"; then
2043 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2049 test -z "$as_dir" && as_dir=.
2050 for ac_exec_ext in '' $ac_executable_extensions; do
2051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2052 ac_cv_prog_ac_ct_CC="$ac_prog"
2053 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2062 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2063 if test -n "$ac_ct_CC"; then
2064 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2065 echo "${ECHO_T}$ac_ct_CC" >&6; }
2067 { echo "$as_me:$LINENO: result: no" >&5
2068 echo "${ECHO_T}no" >&6; }
2072 test -n "$ac_ct_CC" && break
2075 if test "x$ac_ct_CC" = x; then
2078 case $cross_compiling:$ac_tool_warned in
2080 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2081 whose name does not start with the host triplet. If you think this
2082 configuration is useful to you, please write to autoconf@gnu.org." >&5
2083 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2084 whose name does not start with the host triplet. If you think this
2085 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2086 ac_tool_warned=yes ;;
2095 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2096 See \`config.log
' for more details." >&5
2097 echo "$as_me: error: no acceptable C compiler found in \$PATH
2098 See \`config.log' for more details.
" >&2;}
2099 { (exit 1); exit 1; }; }
2101 # Provide some information about the compiler.
2102 echo "$as_me:$LINENO: checking
for C compiler version
" >&5
2103 ac_compiler=`set X $ac_compile; echo $2`
2104 { (ac_try="$ac_compiler --version >&5"
2106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2107 *) ac_try_echo=$ac_try;;
2109 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2110 (eval "$ac_compiler --version >&5") 2>&5
2112 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2113 (exit $ac_status); }
2114 { (ac_try="$ac_compiler -v >&5"
2116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2117 *) ac_try_echo=$ac_try;;
2119 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2120 (eval "$ac_compiler -v >&5") 2>&5
2122 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2123 (exit $ac_status); }
2124 { (ac_try="$ac_compiler -V >&5"
2126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2127 *) ac_try_echo=$ac_try;;
2129 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2130 (eval "$ac_compiler -V >&5") 2>&5
2132 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2133 (exit $ac_status); }
2135 cat >conftest.$ac_ext <<_ACEOF
2138 cat confdefs.h >>conftest.$ac_ext
2139 cat >>conftest.$ac_ext <<_ACEOF
2140 /* end confdefs.h. */
2150 ac_clean_files_save=$ac_clean_files
2151 ac_clean_files="$ac_clean_files a.out a.exe b.out
"
2152 # Try to create an executable without -o first, disregard a.out.
2153 # It will help us diagnose broken compilers, and finding out an intuition
2155 { echo "$as_me:$LINENO: checking
for C compiler default output
file name
" >&5
2156 echo $ECHO_N "checking
for C compiler default output
file name...
$ECHO_C" >&6; }
2157 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2159 # List of possible output files, starting from the most likely.
2160 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2161 # only as a last resort. b.out is created by i960 compilers.
2162 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2164 # The IRIX 6 linker writes into existing files which may not be
2165 # executable, retaining their permissions. Remove them first so a
2166 # subsequent execution test works.
2168 for ac_file in $ac_files
2171 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2172 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2177 if { (ac_try="$ac_link_default"
2179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2180 *) ac_try_echo=$ac_try;;
2182 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2183 (eval "$ac_link_default") 2>&5
2185 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2186 (exit $ac_status); }; then
2187 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2188 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2189 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2190 # so that the user can short-circuit this test for compilers unknown to
2192 for ac_file in $ac_files ''
2194 test -f "$ac_file" || continue
2196 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2199 # We found the default executable, but exeext='' is most
2203 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2205 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2207 # We set ac_cv_exeext here because the later test for it is not
2208 # safe: cross compilers may not add the suffix if given an `-o'
2209 # argument, so we may need to know it at that point already.
2210 # Even if this section looks crufty: it has the advantage of
2217 test "$ac_cv_exeext" = no && ac_cv_exeext=
2223 { echo "$as_me:$LINENO: result
: $ac_file" >&5
2224 echo "${ECHO_T}$ac_file" >&6; }
2225 if test -z "$ac_file"; then
2226 echo "$as_me: failed program was
:" >&5
2227 sed 's/^/| /' conftest.$ac_ext >&5
2229 { { echo "$as_me:$LINENO: error
: C compiler cannot create executables
2230 See \
`config.log' for more details." >&5
2231 echo "$as_me: error: C compiler cannot create executables
2232 See \`config.log
' for more details." >&2;}
2233 { (exit 77); exit 77; }; }
2236 ac_exeext=$ac_cv_exeext
2238 # Check that the compiler produces executables we can run. If not, either
2239 # the compiler is broken, or we cross compile.
2240 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2241 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2242 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2243 # If not cross compiling, check that we can run a simple program.
2244 if test "$cross_compiling" != yes; then
2245 if { ac_try='.
/$ac_file'
2246 { (case "(($ac_try" in
2247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2248 *) ac_try_echo=$ac_try;;
2250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2251 (eval "$ac_try") 2>&5
2253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2254 (exit $ac_status); }; }; then
2257 if test "$cross_compiling" = maybe; then
2260 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2261 If you meant to cross compile, use \`--host'.
2262 See \
`config.log' for more details." >&5
2263 echo "$as_me: error: cannot run C compiled programs.
2264 If you meant to cross compile, use \`--host'.
2265 See \`config.log' for more details.
" >&2;}
2266 { (exit 1); exit 1; }; }
2270 { echo "$as_me:$LINENO: result
: yes" >&5
2271 echo "${ECHO_T}yes" >&6; }
2273 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2274 ac_clean_files=$ac_clean_files_save
2275 # Check that the compiler produces executables we can run. If not, either
2276 # the compiler is broken, or we cross compile.
2277 { echo "$as_me:$LINENO: checking whether we are cross compiling
" >&5
2278 echo $ECHO_N "checking whether we are cross compiling...
$ECHO_C" >&6; }
2279 { echo "$as_me:$LINENO: result
: $cross_compiling" >&5
2280 echo "${ECHO_T}$cross_compiling" >&6; }
2282 { echo "$as_me:$LINENO: checking
for suffix of executables
" >&5
2283 echo $ECHO_N "checking
for suffix of executables...
$ECHO_C" >&6; }
2284 if { (ac_try="$ac_link"
2286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2287 *) ac_try_echo=$ac_try;;
2289 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2290 (eval "$ac_link") 2>&5
2292 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2293 (exit $ac_status); }; then
2294 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2295 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2296 # work properly (i.e., refer to `conftest.exe'), while it won't with
2298 for ac_file in conftest.exe conftest conftest.*; do
2299 test -f "$ac_file" || continue
2301 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2302 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2308 { { echo "$as_me:$LINENO: error
: cannot compute suffix of executables
: cannot compile and link
2309 See \
`config.log' for more details." >&5
2310 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2311 See \`config.log
' for more details." >&2;}
2312 { (exit 1); exit 1; }; }
2315 rm -f conftest$ac_cv_exeext
2316 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2317 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2319 rm -f conftest.$ac_ext
2320 EXEEXT=$ac_cv_exeext
2322 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2323 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2324 if test "${ac_cv_objext+set}" = set; then
2325 echo $ECHO_N "(cached) $ECHO_C" >&6
2327 cat >conftest.$ac_ext <<_ACEOF
2330 cat confdefs.h >>conftest.$ac_ext
2331 cat >>conftest.$ac_ext <<_ACEOF
2332 /* end confdefs.h. */
2342 rm -f conftest.o conftest.obj
2343 if { (ac_try="$ac_compile"
2345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2346 *) ac_try_echo=$ac_try;;
2348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2349 (eval "$ac_compile") 2>&5
2351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2352 (exit $ac_status); }; then
2353 for ac_file in conftest.o conftest.obj conftest.*; do
2354 test -f "$ac_file" || continue;
2356 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2357 *) ac_cv_objext=`expr "$ac_file" : '.
*\.\
(.
*\
)'`
2362 echo "$as_me: failed program was:" >&5
2363 sed 's
/^
/|
/' conftest.$ac_ext >&5
2365 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2366 See \`config.log' for more details.
" >&5
2367 echo "$as_me: error
: cannot compute suffix of object files
: cannot compile
2368 See \
`config.log' for more details." >&2;}
2369 { (exit 1); exit 1; }; }
2372 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2374 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2375 echo "${ECHO_T}$ac_cv_objext" >&6; }
2376 OBJEXT=$ac_cv_objext
2378 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2379 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2380 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2381 echo $ECHO_N "(cached) $ECHO_C" >&6
2383 cat >conftest.$ac_ext <<_ACEOF
2386 cat confdefs.h >>conftest.$ac_ext
2387 cat >>conftest.$ac_ext <<_ACEOF
2388 /* end confdefs.h. */
2401 rm -f conftest.$ac_objext
2402 if { (ac_try="$ac_compile"
2404 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2405 *) ac_try_echo
=$ac_try;;
2407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2408 (eval "$ac_compile") 2>conftest.er1
2410 grep -v '^ *+' conftest.er1
>conftest.err
2412 cat conftest.err
>&5
2413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2414 (exit $ac_status); } && {
2415 test -z "$ac_c_werror_flag" ||
2416 test ! -s conftest.err
2417 } && test -s conftest.
$ac_objext; then
2420 echo "$as_me: failed program was:" >&5
2421 sed 's/^/| /' conftest.
$ac_ext >&5
2426 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2427 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2430 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2431 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2432 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2433 ac_test_CFLAGS
=${CFLAGS+set}
2434 ac_save_CFLAGS
=$CFLAGS
2435 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2436 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2437 if test "${ac_cv_prog_cc_g+set}" = set; then
2438 echo $ECHO_N "(cached) $ECHO_C" >&6
2440 ac_save_c_werror_flag
=$ac_c_werror_flag
2441 ac_c_werror_flag
=yes
2444 cat >conftest.
$ac_ext <<_ACEOF
2447 cat confdefs.h
>>conftest.
$ac_ext
2448 cat >>conftest.
$ac_ext <<_ACEOF
2449 /* end confdefs.h. */
2459 rm -f conftest.
$ac_objext
2460 if { (ac_try
="$ac_compile"
2462 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2463 *) ac_try_echo=$ac_try;;
2465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2466 (eval "$ac_compile") 2>conftest.er1
2468 grep -v '^ *+' conftest.er1 >conftest.err
2470 cat conftest.err >&5
2471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2472 (exit $ac_status); } && {
2473 test -z "$ac_c_werror_flag" ||
2474 test ! -s conftest.err
2475 } && test -s conftest.$ac_objext; then
2478 echo "$as_me: failed program was:" >&5
2479 sed 's/^/| /' conftest.$ac_ext >&5
2482 cat >conftest.$ac_ext <<_ACEOF
2485 cat confdefs.h >>conftest.$ac_ext
2486 cat >>conftest.$ac_ext <<_ACEOF
2487 /* end confdefs.h. */
2497 rm -f conftest.$ac_objext
2498 if { (ac_try="$ac_compile"
2500 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2501 *) ac_try_echo
=$ac_try;;
2503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2504 (eval "$ac_compile") 2>conftest.er1
2506 grep -v '^ *+' conftest.er1
>conftest.err
2508 cat conftest.err
>&5
2509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2510 (exit $ac_status); } && {
2511 test -z "$ac_c_werror_flag" ||
2512 test ! -s conftest.err
2513 } && test -s conftest.
$ac_objext; then
2516 echo "$as_me: failed program was:" >&5
2517 sed 's/^/| /' conftest.
$ac_ext >&5
2519 ac_c_werror_flag
=$ac_save_c_werror_flag
2521 cat >conftest.
$ac_ext <<_ACEOF
2524 cat confdefs.h
>>conftest.
$ac_ext
2525 cat >>conftest.
$ac_ext <<_ACEOF
2526 /* end confdefs.h. */
2536 rm -f conftest.
$ac_objext
2537 if { (ac_try
="$ac_compile"
2539 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2540 *) ac_try_echo=$ac_try;;
2542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2543 (eval "$ac_compile") 2>conftest.er1
2545 grep -v '^ *+' conftest.er1 >conftest.err
2547 cat conftest.err >&5
2548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2549 (exit $ac_status); } && {
2550 test -z "$ac_c_werror_flag" ||
2551 test ! -s conftest.err
2552 } && test -s conftest.$ac_objext; then
2555 echo "$as_me: failed program was:" >&5
2556 sed 's/^/| /' conftest.$ac_ext >&5
2561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2568 ac_c_werror_flag=$ac_save_c_werror_flag
2570 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2571 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2572 if test "$ac_test_CFLAGS" = set; then
2573 CFLAGS=$ac_save_CFLAGS
2574 elif test $ac_cv_prog_cc_g = yes; then
2575 if test "$GCC" = yes; then
2581 if test "$GCC" = yes; then
2587 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2588 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2589 if test "${ac_cv_prog_cc_c89+set}" = set; then
2590 echo $ECHO_N "(cached) $ECHO_C" >&6
2592 ac_cv_prog_cc_c89=no
2594 cat >conftest.$ac_ext <<_ACEOF
2597 cat confdefs.h >>conftest.$ac_ext
2598 cat >>conftest.$ac_ext <<_ACEOF
2599 /* end confdefs.h. */
2602 #include <sys/types.h>
2603 #include <sys/stat.h>
2604 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2605 struct buf { int x; };
2606 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2607 static char *e (p, i)
2613 static char *f (char * (*g) (char **, int), char **p, ...)
2618 s = g (p, va_arg (v,int));
2623 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2624 function prototypes and stuff, but not '\xHH' hex character constants.
2625 These don't provoke an error unfortunately, instead are silently treated
2626 as 'x'. The following induces an error, until -std is added to get
2627 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2628 array size at least. It's necessary to write '\x00'==0 to get something
2629 that's true only with -std. */
2630 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2632 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2633 inside strings and character constants. */
2635 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2637 int test (int i, double x);
2638 struct s1 {int (*f) (int a);};
2639 struct s2 {int (*f) (double a);};
2640 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2646 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2651 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2652 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2654 CC="$ac_save_CC $ac_arg"
2655 rm -f conftest.$ac_objext
2656 if { (ac_try="$ac_compile"
2658 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2659 *) ac_try_echo
=$ac_try;;
2661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2662 (eval "$ac_compile") 2>conftest.er1
2664 grep -v '^ *+' conftest.er1
>conftest.err
2666 cat conftest.err
>&5
2667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2668 (exit $ac_status); } && {
2669 test -z "$ac_c_werror_flag" ||
2670 test ! -s conftest.err
2671 } && test -s conftest.
$ac_objext; then
2672 ac_cv_prog_cc_c89
=$ac_arg
2674 echo "$as_me: failed program was:" >&5
2675 sed 's/^/| /' conftest.
$ac_ext >&5
2680 rm -f core conftest.err conftest.
$ac_objext
2681 test "x$ac_cv_prog_cc_c89" != "xno" && break
2683 rm -f conftest.
$ac_ext
2688 case "x$ac_cv_prog_cc_c89" in
2690 { echo "$as_me:$LINENO: result: none needed" >&5
2691 echo "${ECHO_T}none needed" >&6; } ;;
2693 { echo "$as_me:$LINENO: result: unsupported" >&5
2694 echo "${ECHO_T}unsupported" >&6; } ;;
2696 CC
="$CC $ac_cv_prog_cc_c89"
2697 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2698 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2703 ac_cpp
='$CPP $CPPFLAGS'
2704 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2705 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2706 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2711 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
2712 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
2713 if test "${ac_cv_c_const+set}" = set; then
2714 echo $ECHO_N "(cached) $ECHO_C" >&6
2716 cat >conftest.
$ac_ext <<_ACEOF
2719 cat confdefs.h
>>conftest.
$ac_ext
2720 cat >>conftest.
$ac_ext <<_ACEOF
2721 /* end confdefs.h. */
2726 /* FIXME: Include the comments suggested by Paul. */
2728 /* Ultrix mips cc rejects this. */
2729 typedef int charset[2];
2731 /* SunOS 4.1.1 cc rejects this. */
2732 char const *const *pcpcc;
2734 /* NEC SVR4.0.2 mips cc rejects this. */
2735 struct point {int x, y;};
2736 static struct point const zero = {0,0};
2737 /* AIX XL C 1.02.0.0 rejects this.
2738 It does not let you subtract one const X* pointer from another in
2739 an arm of an if-expression whose if-part is not a constant
2741 const char *g = "string";
2742 pcpcc = &g + (g ? g-g : 0);
2743 /* HPUX 7.0 cc rejects these. */
2745 ppc = (char**) pcpcc;
2746 pcpcc = (char const *const *) ppc;
2747 { /* SCO 3.2v4 cc rejects this. */
2749 char const *s = 0 ? (char *) 0 : (char const *) 0;
2754 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2756 const int *foo = &x[0];
2759 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2760 typedef const int *iptr;
2764 { /* AIX XL C 1.02.0.0 rejects this saying
2765 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2766 struct s { int j; const int *ap[3]; };
2767 struct s *b; b->j = 5;
2769 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2773 return !cs[0] && !zero.x;
2780 rm -f conftest.
$ac_objext
2781 if { (ac_try
="$ac_compile"
2783 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2784 *) ac_try_echo=$ac_try;;
2786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2787 (eval "$ac_compile") 2>conftest.er1
2789 grep -v '^ *+' conftest.er1 >conftest.err
2791 cat conftest.err >&5
2792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2793 (exit $ac_status); } && {
2794 test -z "$ac_c_werror_flag" ||
2795 test ! -s conftest.err
2796 } && test -s conftest.$ac_objext; then
2799 echo "$as_me: failed program was:" >&5
2800 sed 's/^/| /' conftest.$ac_ext >&5
2805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2807 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
2808 echo "${ECHO_T}$ac_cv_c_const" >&6; }
2809 if test $ac_cv_c_const = no; then
2811 cat >>confdefs.h <<\_ACEOF
2819 *-*-cygwin* | *-*-mingw32*)
2822 SYS_GL_LIBS="-lopengl32"
2832 SYS_GL_LIBS="-Wl,-framework,OpenGL"
2836 if test x$ac_cv_c_compiler_gnu = xyes; then
2844 # Extract the first word of "osmesa-config", so it can be a program name with args.
2845 set dummy osmesa-config; ac_word=$2
2846 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2847 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2848 if test "${ac_cv_path_OSMESA_CONFIG+set}" = set; then
2849 echo $ECHO_N "(cached) $ECHO_C" >&6
2851 case $OSMESA_CONFIG in
2853 ac_cv_path_OSMESA_CONFIG="$OSMESA_CONFIG" # Let the user override the test with a path.
2856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2860 test -z "$as_dir" && as_dir=.
2861 for ac_exec_ext in '' $ac_executable_extensions; do
2862 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2863 ac_cv_path_OSMESA_CONFIG="$as_dir/$ac_word$ac_exec_ext"
2864 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2871 test -z "$ac_cv_path_OSMESA_CONFIG" && ac_cv_path_OSMESA_CONFIG="no"
2875 OSMESA_CONFIG=$ac_cv_path_OSMESA_CONFIG
2876 if test -n "$OSMESA_CONFIG"; then
2877 { echo "$as_me:$LINENO: result: $OSMESA_CONFIG" >&5
2878 echo "${ECHO_T}$OSMESA_CONFIG" >&6; }
2880 { echo "$as_me:$LINENO: result: no" >&5
2881 echo "${ECHO_T}no" >&6; }
2885 if test "x$OSMESA_CONFIG" = "xyes"; then
2886 OSMESA_CFLAGS=`$OSMESA_CONFIG --cflags`
2887 OSMESA_LIBS=`$OSMESA_CONFIG --libs`
2888 CFLAGS="$CFLAGS $OSMESA_CFLAGS"
2889 SYS_GL_LIBS="$OSMESA_LIBS"
2891 SYS_GL_LIBS="-lOSMesa"
2905 # Check whether --with-sdl-prefix was given.
2906 if test "${with_sdl_prefix+set}" = set; then
2907 withval=$with_sdl_prefix; sdl_prefix="$withval"
2913 # Check whether --with-sdl-exec-prefix was given.
2914 if test "${with_sdl_exec_prefix+set}" = set; then
2915 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
2920 # Check whether --enable-sdltest was given.
2921 if test "${enable_sdltest+set}" = set; then
2922 enableval=$enable_sdltest;
2928 if test x$sdl_exec_prefix != x ; then
2929 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
2930 if test x${SDL_CONFIG+set} != xset ; then
2931 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
2934 if test x$sdl_prefix != x ; then
2935 sdl_args="$sdl_args --prefix=$sdl_prefix"
2936 if test x${SDL_CONFIG+set} != xset ; then
2937 SDL_CONFIG=$sdl_prefix/bin/sdl-config
2941 if test "x$prefix" != xNONE; then
2942 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
2944 # Extract the first word of "sdl-config", so it can be a program name with args.
2945 set dummy sdl-config; ac_word=$2
2946 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2947 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2948 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
2949 echo $ECHO_N "(cached) $ECHO_C" >&6
2953 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
2956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2960 test -z "$as_dir" && as_dir=.
2961 for ac_exec_ext in '' $ac_executable_extensions; do
2962 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2963 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
2964 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2971 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
2975 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
2976 if test -n "$SDL_CONFIG"; then
2977 { echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
2978 echo "${ECHO_T}$SDL_CONFIG" >&6; }
2980 { echo "$as_me:$LINENO: result: no" >&5
2981 echo "${ECHO_T}no" >&6; }
2985 min_sdl_version=$SDL_VERSION
2986 { echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
2987 echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6; }
2989 if test "$SDL_CONFIG" = "no" ; then
2992 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
2993 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
2995 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
2996 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
2997 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
2998 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
2999 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
3000 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
3001 if test "x$enable_sdltest" = "xyes" ; then
3002 ac_save_CFLAGS="$CFLAGS"
3003 ac_save_CXXFLAGS="$CXXFLAGS"
3004 ac_save_LIBS="$LIBS"
3005 CFLAGS="$CFLAGS $SDL_CFLAGS"
3006 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
3007 LIBS="$LIBS $SDL_LIBS"
3009 if test "$cross_compiling" = yes; then
3010 echo $ac_n "cross compiling; assumed OK... $ac_c"
3012 cat >conftest.$ac_ext <<_ACEOF
3015 cat confdefs.h >>conftest.$ac_ext
3016 cat >>conftest.$ac_ext <<_ACEOF
3017 /* end confdefs.h. */
3025 my_strdup (char *str)
3031 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
3032 strcpy (new_str, str);
3040 int main (int argc, char *argv[])
3042 int major, minor, micro;
3045 /* This hangs on some systems (?)
3046 system ("touch conf.sdltest");
3048 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
3050 /* HP/UX 9 (%@#!) writes to sscanf strings */
3051 tmp_version = my_strdup("$min_sdl_version");
3052 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
3053 printf("%s, bad version string\n", "$min_sdl_version");
3057 if (($sdl_major_version > major) ||
3058 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
3059 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
3065 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
3066 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
3067 printf("*** best to upgrade to the required version.\n");
3068 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
3069 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
3070 printf("*** config.cache before re-running configure\n");
3077 rm -f conftest$ac_exeext
3078 if { (ac_try="$ac_link"
3080 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3081 *) ac_try_echo
=$ac_try;;
3083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3084 (eval "$ac_link") 2>&5
3086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3087 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3088 { (case "(($ac_try" in
3089 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3090 *) ac_try_echo=$ac_try;;
3092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3093 (eval "$ac_try") 2>&5
3095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3096 (exit $ac_status); }; }; then
3099 echo "$as_me: program exited with status $ac_status" >&5
3100 echo "$as_me: failed program was:" >&5
3101 sed 's/^/| /' conftest.$ac_ext >&5
3106 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3110 CFLAGS="$ac_save_CFLAGS"
3111 CXXFLAGS="$ac_save_CXXFLAGS"
3112 LIBS="$ac_save_LIBS"
3115 if test "x$no_sdl" = x ; then
3116 { echo "$as_me:$LINENO: result: yes" >&5
3117 echo "${ECHO_T}yes" >&6; }
3120 { echo "$as_me:$LINENO: result: no" >&5
3121 echo "${ECHO_T}no" >&6; }
3122 if test "$SDL_CONFIG" = "no" ; then
3123 echo "*** The sdl-config script installed by SDL could not be found"
3124 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
3125 echo "*** your path, or set the SDL_CONFIG environment variable to the"
3126 echo "*** full path to sdl-config."
3128 if test -f conf.sdltest ; then
3131 echo "*** Could not run SDL test program, checking why..."
3132 CFLAGS="$CFLAGS $SDL_CFLAGS"
3133 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
3134 LIBS="$LIBS $SDL_LIBS"
3135 cat >conftest.$ac_ext <<_ACEOF
3138 cat confdefs.h >>conftest.$ac_ext
3139 cat >>conftest.$ac_ext <<_ACEOF
3140 /* end confdefs.h. */
3145 int main(int argc, char *argv[])
3148 #define main K_and_R_C_main
3158 rm -f conftest.$ac_objext conftest$ac_exeext
3159 if { (ac_try="$ac_link"
3161 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3162 *) ac_try_echo
=$ac_try;;
3164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3165 (eval "$ac_link") 2>conftest.er1
3167 grep -v '^ *+' conftest.er1
>conftest.err
3169 cat conftest.err
>&5
3170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3171 (exit $ac_status); } && {
3172 test -z "$ac_c_werror_flag" ||
3173 test ! -s conftest.err
3174 } && test -s conftest
$ac_exeext &&
3175 $as_test_x conftest
$ac_exeext; then
3176 echo "*** The test program compiled, but did not run. This usually means"
3177 echo "*** that the run-time linker is not finding SDL or finding the wrong"
3178 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
3179 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
3180 echo "*** to the installed location Also, make sure you have run ldconfig if that"
3181 echo "*** is required on your system"
3183 echo "*** If you have an old version installed, it is best to remove it, although"
3184 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
3186 echo "$as_me: failed program was:" >&5
3187 sed 's/^/| /' conftest.
$ac_ext >&5
3189 echo "*** The test program failed to compile or link. See the file config.log for the"
3190 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
3191 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
3192 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
3195 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
3196 conftest
$ac_exeext conftest.
$ac_ext
3197 CFLAGS
="$ac_save_CFLAGS"
3198 CXXFLAGS
="$ac_save_CXXFLAGS"
3199 LIBS
="$ac_save_LIBS"
3204 { { echo "$as_me:$LINENO: error: *** SDL version $SDL_VERSION not found!" >&5
3205 echo "$as_me: error: *** SDL version $SDL_VERSION not found!" >&2;}
3206 { (exit 1); exit 1; }; }
3213 CFLAGS
="$CFLAGS $SDL_CFLAGS"
3214 LIBS
="$LIBS $SDL_LIBS"
3217 ac_cpp
='$CPP $CPPFLAGS'
3218 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3219 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3220 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3221 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3222 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3223 # On Suns, sometimes $CPP names a directory.
3224 if test -n "$CPP" && test -d "$CPP"; then
3227 if test -z "$CPP"; then
3228 if test "${ac_cv_prog_CPP+set}" = set; then
3229 echo $ECHO_N "(cached) $ECHO_C" >&6
3231 # Double quotes because CPP needs to be expanded
3232 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3235 for ac_c_preproc_warn_flag
in '' yes
3237 # Use a header file that comes with gcc, so configuring glibc
3238 # with a fresh cross-compiler works.
3239 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3240 # <limits.h> exists even on freestanding compilers.
3241 # On the NeXT, cc -E runs the code through the compiler's parser,
3242 # not just through cpp. "Syntax error" is here to catch this case.
3243 cat >conftest.
$ac_ext <<_ACEOF
3246 cat confdefs.h
>>conftest.
$ac_ext
3247 cat >>conftest.
$ac_ext <<_ACEOF
3248 /* end confdefs.h. */
3250 # include <limits.h>
3252 # include <assert.h>
3256 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3258 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3259 *) ac_try_echo=$ac_try;;
3261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3262 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3264 grep -v '^ *+' conftest.er1 >conftest.err
3266 cat conftest.err >&5
3267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3268 (exit $ac_status); } >/dev/null && {
3269 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3270 test ! -s conftest.err
3274 echo "$as_me: failed program was:" >&5
3275 sed 's/^/| /' conftest.$ac_ext >&5
3277 # Broken: fails on valid input.
3281 rm -f conftest.err conftest.$ac_ext
3283 # OK, works on sane cases. Now check whether nonexistent headers
3284 # can be detected and how.
3285 cat >conftest.$ac_ext <<_ACEOF
3288 cat confdefs.h >>conftest.$ac_ext
3289 cat >>conftest.$ac_ext <<_ACEOF
3290 /* end confdefs.h. */
3291 #include <ac_nonexistent.h>
3293 if { (ac_try="$ac_cpp conftest.$ac_ext"
3295 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3296 *) ac_try_echo
=$ac_try;;
3298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3299 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3301 grep -v '^ *+' conftest.er1
>conftest.err
3303 cat conftest.err
>&5
3304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3305 (exit $ac_status); } >/dev
/null
&& {
3306 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3307 test ! -s conftest.err
3309 # Broken: success on invalid input.
3312 echo "$as_me: failed program was:" >&5
3313 sed 's/^/| /' conftest.
$ac_ext >&5
3315 # Passes both tests.
3320 rm -f conftest.err conftest.
$ac_ext
3323 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3324 rm -f conftest.err conftest.
$ac_ext
3325 if $ac_preproc_ok; then
3337 { echo "$as_me:$LINENO: result: $CPP" >&5
3338 echo "${ECHO_T}$CPP" >&6; }
3340 for ac_c_preproc_warn_flag
in '' yes
3342 # Use a header file that comes with gcc, so configuring glibc
3343 # with a fresh cross-compiler works.
3344 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3345 # <limits.h> exists even on freestanding compilers.
3346 # On the NeXT, cc -E runs the code through the compiler's parser,
3347 # not just through cpp. "Syntax error" is here to catch this case.
3348 cat >conftest.
$ac_ext <<_ACEOF
3351 cat confdefs.h
>>conftest.
$ac_ext
3352 cat >>conftest.
$ac_ext <<_ACEOF
3353 /* end confdefs.h. */
3355 # include <limits.h>
3357 # include <assert.h>
3361 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3363 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3364 *) ac_try_echo=$ac_try;;
3366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3367 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3369 grep -v '^ *+' conftest.er1 >conftest.err
3371 cat conftest.err >&5
3372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3373 (exit $ac_status); } >/dev/null && {
3374 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3375 test ! -s conftest.err
3379 echo "$as_me: failed program was:" >&5
3380 sed 's/^/| /' conftest.$ac_ext >&5
3382 # Broken: fails on valid input.
3386 rm -f conftest.err conftest.$ac_ext
3388 # OK, works on sane cases. Now check whether nonexistent headers
3389 # can be detected and how.
3390 cat >conftest.$ac_ext <<_ACEOF
3393 cat confdefs.h >>conftest.$ac_ext
3394 cat >>conftest.$ac_ext <<_ACEOF
3395 /* end confdefs.h. */
3396 #include <ac_nonexistent.h>
3398 if { (ac_try="$ac_cpp conftest.$ac_ext"
3400 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3401 *) ac_try_echo
=$ac_try;;
3403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3404 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3406 grep -v '^ *+' conftest.er1
>conftest.err
3408 cat conftest.err
>&5
3409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3410 (exit $ac_status); } >/dev
/null
&& {
3411 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3412 test ! -s conftest.err
3414 # Broken: success on invalid input.
3417 echo "$as_me: failed program was:" >&5
3418 sed 's/^/| /' conftest.
$ac_ext >&5
3420 # Passes both tests.
3425 rm -f conftest.err conftest.
$ac_ext
3428 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3429 rm -f conftest.err conftest.
$ac_ext
3430 if $ac_preproc_ok; then
3433 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3434 See \`config.log' for more details." >&5
3435 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3436 See \`config.log' for more details." >&2;}
3437 { (exit 1); exit 1; }; }
3441 ac_cpp
='$CPP $CPPFLAGS'
3442 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3443 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3444 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3447 { echo "$as_me:$LINENO: checking for X" >&5
3448 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
3451 # Check whether --with-x was given.
3452 if test "${with_x+set}" = set; then
3456 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
3457 if test "x$with_x" = xno
; then
3458 # The user explicitly disabled X.
3461 case $x_includes,$x_libraries in #(
3462 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
3463 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
3464 { (exit 1); exit 1; }; };; #(
3465 *,NONE | NONE
,*) if test "${ac_cv_have_x+set}" = set; then
3466 echo $ECHO_N "(cached) $ECHO_C" >&6
3468 # One or both of the vars are not set, and there is no cached value.
3469 ac_x_includes
=no ac_x_libraries
=no
3470 rm -f -r conftest.dir
3471 if mkdir conftest.dir
; then
3473 cat >Imakefile
<<'_ACEOF'
3475 @echo incroot='${INCROOT}'
3477 @echo usrlibdir='${USRLIBDIR}'
3479 @echo libdir='${LIBDIR}'
3481 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
3482 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3483 for ac_var
in incroot usrlibdir libdir
; do
3484 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
3486 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3487 for ac_extension
in a so sl
; do
3488 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
3489 test -f "$ac_im_libdir/libX11.$ac_extension"; then
3490 ac_im_usrlibdir
=$ac_im_libdir; break
3493 # Screen out bogus values from the imake configuration. They are
3494 # bogus both because they are the default anyway, and because
3495 # using them would break gcc on systems where it needs fixed includes.
3496 case $ac_im_incroot in
3497 /usr
/include
) ac_x_includes
= ;;
3498 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
3500 case $ac_im_usrlibdir in
3502 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
3506 rm -f -r conftest.dir
3509 # Standard set of common directories for X headers.
3510 # Check X11 before X11Rn because it is often a symlink to the current release.
3522 /usr/local/X11/include
3523 /usr/local/X11R6/include
3524 /usr/local/X11R5/include
3525 /usr/local/X11R4/include
3527 /usr/local/include/X11
3528 /usr/local/include/X11R6
3529 /usr/local/include/X11R5
3530 /usr/local/include/X11R4
3534 /usr/XFree86/include/X11
3538 /usr/unsupported/include
3540 /usr/local/x11r5/include
3541 /usr/lpp/Xamples/include
3543 /usr/openwin/include
3544 /usr/openwin/share/include'
3546 if test "$ac_x_includes" = no
; then
3547 # Guess where to find include files, by looking for Xlib.h.
3548 # First, try using that file with no special directory specified.
3549 cat >conftest.
$ac_ext <<_ACEOF
3552 cat confdefs.h
>>conftest.
$ac_ext
3553 cat >>conftest.
$ac_ext <<_ACEOF
3554 /* end confdefs.h. */
3555 #include <X11/Xlib.h>
3557 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3559 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3560 *) ac_try_echo=$ac_try;;
3562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3563 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3565 grep -v '^ *+' conftest.er1 >conftest.err
3567 cat conftest.err >&5
3568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3569 (exit $ac_status); } >/dev/null && {
3570 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3571 test ! -s conftest.err
3573 # We can compile using X headers with no special include directory.
3576 echo "$as_me: failed program was:" >&5
3577 sed 's/^/| /' conftest.$ac_ext >&5
3579 for ac_dir in $ac_x_header_dirs; do
3580 if test -r "$ac_dir/X11/Xlib.h"; then
3581 ac_x_includes=$ac_dir
3587 rm -f conftest.err conftest.$ac_ext
3588 fi # $ac_x_includes = no
3590 if test "$ac_x_libraries" = no; then
3591 # Check for the libraries.
3592 # See if we find them without any special options.
3593 # Don't add to $LIBS permanently.
3596 cat >conftest.$ac_ext <<_ACEOF
3599 cat confdefs.h >>conftest.$ac_ext
3600 cat >>conftest.$ac_ext <<_ACEOF
3601 /* end confdefs.h. */
3602 #include <X11/Xlib.h>
3611 rm -f conftest.$ac_objext conftest$ac_exeext
3612 if { (ac_try="$ac_link"
3614 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3615 *) ac_try_echo
=$ac_try;;
3617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3618 (eval "$ac_link") 2>conftest.er1
3620 grep -v '^ *+' conftest.er1
>conftest.err
3622 cat conftest.err
>&5
3623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3624 (exit $ac_status); } && {
3625 test -z "$ac_c_werror_flag" ||
3626 test ! -s conftest.err
3627 } && test -s conftest
$ac_exeext &&
3628 $as_test_x conftest
$ac_exeext; then
3630 # We can link X programs with no special library path.
3633 echo "$as_me: failed program was:" >&5
3634 sed 's/^/| /' conftest.
$ac_ext >&5
3637 for ac_dir
in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
3639 # Don't even attempt the hair of trying to link an X program!
3640 for ac_extension
in a so sl
; do
3641 if test -r "$ac_dir/libX11.$ac_extension"; then
3642 ac_x_libraries
=$ac_dir
3649 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
3650 conftest
$ac_exeext conftest.
$ac_ext
3651 fi # $ac_x_libraries = no
3653 case $ac_x_includes,$ac_x_libraries in #(
3655 # Didn't find X, or a directory has "'" in its name.
3656 ac_cv_have_x
="have_x=no";; #(
3658 # Record where we found X for the cache.
3659 ac_cv_have_x
="have_x=yes\
3660 ac_x_includes='$ac_x_includes'\
3661 ac_x_libraries='$ac_x_libraries'"
3667 eval "$ac_cv_have_x"
3670 if test "$have_x" != yes; then
3671 { echo "$as_me:$LINENO: result: $have_x" >&5
3672 echo "${ECHO_T}$have_x" >&6; }
3675 # If each of the values was on the command line, it overrides each guess.
3676 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
3677 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
3678 # Update the cache value to reflect the command line values.
3679 ac_cv_have_x
="have_x=yes\
3680 ac_x_includes='$x_includes'\
3681 ac_x_libraries='$x_libraries'"
3682 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
3683 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
3686 if test x
$have_x = xyes
; then
3687 if test x
$ac_x_includes = xno ||
test x
$ac_x_includes = x
; then
3690 CFLAGS
="$CFLAGS -I$ac_x_includes"
3692 if test x
$ac_x_libraries = xno ||
test x
$ac_x_libraries = x
; then
3695 XPATH
="-L$ac_x_libraries"
3699 { echo "$as_me:$LINENO: checking for OpenGL support" >&5
3700 echo $ECHO_N "checking for OpenGL support... $ECHO_C" >&6; }
3702 cat >conftest.
$ac_ext <<_ACEOF
3705 cat confdefs.h
>>conftest.
$ac_ext
3706 cat >>conftest.
$ac_ext <<_ACEOF
3707 /* end confdefs.h. */
3709 #include "SDL_opengl.h"
3720 rm -f conftest.
$ac_objext
3721 if { (ac_try
="$ac_compile"
3723 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3724 *) ac_try_echo=$ac_try;;
3726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3727 (eval "$ac_compile") 2>conftest.er1
3729 grep -v '^ *+' conftest.er1 >conftest.err
3731 cat conftest.err >&5
3732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3733 (exit $ac_status); } && {
3734 test -z "$ac_c_werror_flag" ||
3735 test ! -s conftest.err
3736 } && test -s conftest.$ac_objext; then
3741 echo "$as_me: failed program was:" >&5
3742 sed 's/^/| /' conftest.$ac_ext >&5
3747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3748 { echo "$as_me:$LINENO: result: $have_opengl" >&5
3749 echo "${ECHO_T}$have_opengl" >&6; }
3750 if test x$have_opengl = xyes; then
3751 CFLAGS="$CFLAGS -DHAVE_OPENGL"
3752 GLLIB="$XPATH $SYS_GL_LIBS"
3758 ac_config_files="$ac_config_files Makefile"
3760 cat >confcache <<\_ACEOF
3761 # This file is a shell script that caches the results of configure
3762 # tests run on this system so they can be shared between configure
3763 # scripts and configure runs, see configure's option --config-cache.
3764 # It is not useful on other systems. If it contains results you don't
3765 # want to keep, you may remove or edit it.
3767 # config.status only pays attention to the cache file if you give it
3768 # the --recheck option to rerun configure.
3770 # `ac_cv_env_foo
' variables (set or unset) will be overridden when
3771 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3776 # The following way of writing the cache mishandles newlines in values,
3777 # but we know of no workaround that is simple, portable, and efficient.
3778 # So, we kill variables containing newlines.
3779 # Ultrix sh set writes to stderr and can't be redirected directly,
3780 # and sets the high bit in the cache file unless we assign to the vars.
3782 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
3783 eval ac_val
=\$
$ac_var
3787 *_cv_
*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
3788 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
3791 _ | IFS | as_nl
) ;; #(
3792 *) $as_unset $ac_var ;;
3798 case $as_nl`(ac_space=' '; set) 2>&1` in #(
3799 *${as_nl}ac_space
=\
*)
3800 # `set' does not quote correctly, so add quotes (double-quote
3801 # substitution turns \\\\ into \\, and sed turns \\ into \).
3804 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3807 # `set' quotes correctly as required by POSIX, so do not add quotes.
3808 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3817 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3819 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3821 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
3822 if test -w "$cache_file"; then
3823 test "x$cache_file" != "x/dev/null" &&
3824 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
3825 echo "$as_me: updating cache $cache_file" >&6;}
3826 cat confcache
>$cache_file
3828 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
3829 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
3834 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
3835 # Let make expand exec_prefix.
3836 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
3838 # Transform confdefs.h into DEFS.
3839 # Protect against shell expansion while executing Makefile rules.
3840 # Protect against Makefile macro expansion.
3842 # If the first sed substitution is executed (which looks for macros that
3843 # take arguments), then branch to the quote section. Otherwise,
3844 # look for a macro that doesn't take arguments.
3848 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
3850 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
3854 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
3867 DEFS
=`sed -n "$ac_script" confdefs.h`
3872 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
3873 # 1. Remove the extension, and $U if already installed.
3874 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
3875 ac_i
=`echo "$ac_i" | sed "$ac_script"`
3876 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
3877 # will be set to the directory where LIBOBJS objects are built.
3878 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
3879 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
3883 LTLIBOBJS
=$ac_ltlibobjs
3887 : ${CONFIG_STATUS=./config.status}
3888 ac_clean_files_save
=$ac_clean_files
3889 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
3890 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
3891 echo "$as_me: creating $CONFIG_STATUS" >&6;}
3892 cat >$CONFIG_STATUS <<_ACEOF
3894 # Generated by $as_me.
3895 # Run this file to recreate the current configuration.
3896 # Compiler output produced by configure, useful for debugging
3897 # configure, is in config.log if it exists.
3902 SHELL=\${CONFIG_SHELL-$SHELL}
3905 cat >>$CONFIG_STATUS <<\_ACEOF
3906 ## --------------------- ##
3907 ## M4sh Initialization. ##
3908 ## --------------------- ##
3910 # Be more Bourne compatible
3911 DUALCASE
=1; export DUALCASE
# for MKS sh
3912 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
3915 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
3916 # is contrary to our usage. Disable this feature.
3917 alias -g '${1+"$@"}'='"$@"'
3918 setopt NO_GLOB_SUBST
3920 case `(set -o) 2>/dev/null` in
3921 *posix
*) set -o posix
;;
3930 # Avoid depending upon Character Ranges.
3931 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
3932 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3933 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
3934 as_cr_digits
='0123456789'
3935 as_cr_alnum
=$as_cr_Letters$as_cr_digits
3937 # The user is always right.
3938 if test "${PATH_SEPARATOR+set}" != set; then
3939 echo "#! /bin/sh" >conf$$.sh
3940 echo "exit 0" >>conf$$.sh
3942 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
3950 # Support unset when possible.
3951 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
3959 # We need space, tab and new line, in precisely that order. Quoting is
3960 # there to prevent editors from complaining about space-tab.
3961 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
3962 # splitting by setting IFS to empty value.)
3967 # Find who we are. Look in the path if we contain no directory separator.
3969 *[\\/]* ) as_myself
=$0 ;;
3970 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3974 test -z "$as_dir" && as_dir
=.
3975 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
3981 # We did not find ourselves, most probably we were run as `sh COMMAND'
3982 # in which case we are not to be found in the path.
3983 if test "x$as_myself" = x
; then
3986 if test ! -f "$as_myself"; then
3987 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
3988 { (exit 1); exit 1; }
3991 # Work around bugs in pre-3.0 UWIN ksh.
3992 for as_var
in ENV MAIL MAILPATH
3993 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
4001 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
4002 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
4003 LC_TELEPHONE LC_TIME
4005 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
4006 eval $as_var=C
; export $as_var
4008 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
4012 # Required to use basename.
4013 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
4014 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
4020 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
4021 as_basename
=basename
4027 # Name of the executable.
4028 as_me
=`$as_basename -- "$0" ||
4029 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4030 X"$0" : 'X\(//\)$' \| \
4031 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
4033 sed '/^.*\/\([^/][^/]*\)\/*$/{
4054 test "x$as_lineno_1" != "x$as_lineno_2" &&
4055 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
4057 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
4058 # uniformly replaced by the line number. The first 'sed' inserts a
4059 # line-number line after each line using $LINENO; the second 'sed'
4060 # does the real work. The second script uses 'N' to pair each
4061 # line-number line with the line containing $LINENO, and appends
4062 # trailing '-' during substitution so that $LINENO is not a special
4064 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
4065 # scripts with optimization help from Paolo Bonzini. Blame Lee
4066 # E. McMahon (1931-1989) for sed's syntax. :-)
4078 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
4082 chmod +x
"$as_me.lineno" ||
4083 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
4084 { (exit 1); exit 1; }; }
4086 # Don't try to exec as it changes $[0], causing all sort of problems
4087 # (the dirname of $[0] is not the place where we might find the
4088 # original and so on. Autoconf is especially sensitive to this).
4090 # Exit status is that of the last command.
4095 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
4101 ECHO_C
= ECHO_N
= ECHO_T
=
4104 case `echo 'x\c'` in
4105 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
4112 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
4113 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
4119 rm -f conf$$ conf$$.exe conf$$.
file
4120 if test -d conf$$.dir
; then
4121 rm -f conf$$.dir
/conf$$.
file
4127 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
4129 # ... but there are two gotchas:
4130 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
4131 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
4132 # In both cases, we have to default to `cp -p'.
4133 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
4135 elif ln conf$$.
file conf$$
2>/dev
/null
; then
4140 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
4141 rmdir conf$$.dir
2>/dev
/null
4143 if mkdir
-p .
2>/dev
/null
; then
4146 test -d .
/-p && rmdir .
/-p
4150 if test -x / >/dev
/null
2>&1; then
4153 if ls -dL / >/dev
/null
2>&1; then
4160 if test -d "$1"; then
4166 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
4167 ???[sx]*):;;*)false;;esac;fi
4171 as_executable_p
=$as_test_x
4173 # Sed expression to map a string onto a valid CPP name.
4174 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4176 # Sed expression to map a string onto a valid variable name.
4177 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4182 # Save the log message, to keep $[0] and so on meaningful, and to
4183 # report actual input values of CONFIG_FILES etc. instead of their
4184 # values after options handling.
4186 This file was extended by $as_me, which was
4187 generated by GNU Autoconf 2.61. Invocation command line was
4189 CONFIG_FILES = $CONFIG_FILES
4190 CONFIG_HEADERS = $CONFIG_HEADERS
4191 CONFIG_LINKS = $CONFIG_LINKS
4192 CONFIG_COMMANDS = $CONFIG_COMMANDS
4195 on `(hostname || uname -n) 2>/dev/null | sed 1q`
4200 cat >>$CONFIG_STATUS <<_ACEOF
4201 # Files that config.status was made for.
4202 config_files="$ac_config_files"
4206 cat >>$CONFIG_STATUS <<\_ACEOF
4208 \`$as_me' instantiates files from templates according to the
4209 current configuration.
4211 Usage: $0 [OPTIONS] [FILE]...
4213 -h, --help print this help, then exit
4214 -V, --version print version number and configuration settings, then exit
4215 -q, --quiet do not print progress messages
4216 -d, --debug don't remove temporary files
4217 --recheck update $as_me by reconfiguring in the same conditions
4218 --file=FILE[:TEMPLATE]
4219 instantiate the configuration file FILE
4221 Configuration files:
4224 Report bugs to <bug-autoconf@gnu.org>."
4227 cat >>$CONFIG_STATUS <<_ACEOF
4230 configured by $0, generated by GNU Autoconf 2.61,
4231 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
4233 Copyright (C) 2006 Free Software Foundation, Inc.
4234 This config.status script is free software; the Free Software Foundation
4235 gives unlimited permission to copy, distribute and modify it."
4241 cat >>$CONFIG_STATUS <<\_ACEOF
4242 # If no file are specified by the user, then we need to provide default
4243 # value. By we need to know if files were specified by the user.
4249 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
4250 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
4261 # Handling of the options.
4262 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
4264 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
4265 echo "$ac_cs_version"; exit ;;
4266 --debug |
--debu |
--deb |
--de |
--d |
-d )
4268 --file |
--fil |
--fi |
--f )
4270 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
4271 ac_need_defaults
=false
;;
4272 --he |
--h |
--help |
--hel |
-h )
4273 echo "$ac_cs_usage"; exit ;;
4274 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
4275 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
4279 -*) { echo "$as_me: error: unrecognized option: $1
4280 Try \`$0 --help' for more information." >&2
4281 { (exit 1); exit 1; }; } ;;
4283 *) ac_config_targets
="$ac_config_targets $1"
4284 ac_need_defaults
=false
;;
4290 ac_configure_extra_args
=
4292 if $ac_cs_silent; then
4294 ac_configure_extra_args
="$ac_configure_extra_args --silent"
4298 cat >>$CONFIG_STATUS <<_ACEOF
4299 if \$ac_cs_recheck; then
4300 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
4303 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4307 cat >>$CONFIG_STATUS <<\_ACEOF
4311 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4312 ## Running $as_me. ##
4318 cat >>$CONFIG_STATUS <<_ACEOF
4321 cat >>$CONFIG_STATUS <<\_ACEOF
4323 # Handling of arguments.
4324 for ac_config_target
in $ac_config_targets
4326 case $ac_config_target in
4327 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
4329 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
4330 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
4331 { (exit 1); exit 1; }; };;
4336 # If the user did not use the arguments to specify the items to instantiate,
4337 # then the envvar interface is used. Set only those that are not.
4338 # We use the long form for the default assignment because of an extremely
4339 # bizarre bug on SunOS 4.1.3.
4340 if $ac_need_defaults; then
4341 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
4344 # Have a temporary directory for convenience. Make it in the build tree
4345 # simply because there is no reason against having it here, and in addition,
4346 # creating and moving files from /tmp can sometimes cause problems.
4347 # Hook for its removal unless debugging.
4348 # Note that there is a small window in which the directory will not be cleaned:
4349 # after its creation but before its name has been assigned to `$tmp'.
4353 trap 'exit_status=$?
4354 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
4356 trap '{ (exit 1); exit 1; }' 1 2 13 15
4358 # Create a (secure) tmp directory for tmp files.
4361 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
4362 test -n "$tmp" && test -d "$tmp"
4365 tmp
=.
/conf$$
-$RANDOM
4366 (umask 077 && mkdir
"$tmp")
4369 echo "$me: cannot create a temporary directory in ." >&2
4370 { (exit 1); exit 1; }
4374 # Set up the sed scripts for CONFIG_FILES section.
4377 # No need to generate the scripts if there are no CONFIG_FILES.
4378 # This happens for instance when ./config.status config.h
4379 if test -n "$CONFIG_FILES"; then
4386 for ac_last_try
in false false false false false
:; do
4387 cat >conf$
$subs.
sed <<_ACEOF
4388 SHELL!$SHELL$ac_delim
4389 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
4390 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
4391 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
4392 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
4393 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
4394 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
4395 exec_prefix!$exec_prefix$ac_delim
4396 prefix!$prefix$ac_delim
4397 program_transform_name!$program_transform_name$ac_delim
4398 bindir!$bindir$ac_delim
4399 sbindir!$sbindir$ac_delim
4400 libexecdir!$libexecdir$ac_delim
4401 datarootdir!$datarootdir$ac_delim
4402 datadir!$datadir$ac_delim
4403 sysconfdir!$sysconfdir$ac_delim
4404 sharedstatedir!$sharedstatedir$ac_delim
4405 localstatedir!$localstatedir$ac_delim
4406 includedir!$includedir$ac_delim
4407 oldincludedir!$oldincludedir$ac_delim
4408 docdir!$docdir$ac_delim
4409 infodir!$infodir$ac_delim
4410 htmldir!$htmldir$ac_delim
4411 dvidir!$dvidir$ac_delim
4412 pdfdir!$pdfdir$ac_delim
4413 psdir!$psdir$ac_delim
4414 libdir!$libdir$ac_delim
4415 localedir!$localedir$ac_delim
4416 mandir!$mandir$ac_delim
4418 ECHO_C!$ECHO_C$ac_delim
4419 ECHO_N!$ECHO_N$ac_delim
4420 ECHO_T!$ECHO_T$ac_delim
4422 build_alias!$build_alias$ac_delim
4423 host_alias!$host_alias$ac_delim
4424 target_alias!$target_alias$ac_delim
4425 build!$build$ac_delim
4426 build_cpu!$build_cpu$ac_delim
4427 build_vendor!$build_vendor$ac_delim
4428 build_os!$build_os$ac_delim
4430 host_cpu!$host_cpu$ac_delim
4431 host_vendor!$host_vendor$ac_delim
4432 host_os!$host_os$ac_delim
4434 CFLAGS!$CFLAGS$ac_delim
4435 LDFLAGS!$LDFLAGS$ac_delim
4436 CPPFLAGS!$CPPFLAGS$ac_delim
4437 ac_ct_CC!$ac_ct_CC$ac_delim
4438 EXEEXT!$EXEEXT$ac_delim
4439 OBJEXT!$OBJEXT$ac_delim
4440 OSMESA_CONFIG!$OSMESA_CONFIG$ac_delim
4442 MATHLIB!$MATHLIB$ac_delim
4443 SDL_CONFIG!$SDL_CONFIG$ac_delim
4444 SDL_CFLAGS!$SDL_CFLAGS$ac_delim
4445 SDL_LIBS!$SDL_LIBS$ac_delim
4446 XMKMF!$XMKMF$ac_delim
4448 GLLIB!$GLLIB$ac_delim
4449 LIBOBJS!$LIBOBJS$ac_delim
4450 LTLIBOBJS!$LTLIBOBJS$ac_delim
4453 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 63; then
4455 elif $ac_last_try; then
4456 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
4457 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
4458 { (exit 1); exit 1; }; }
4460 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
4464 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
4465 if test -n "$ac_eof"; then
4466 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
4467 ac_eof
=`expr $ac_eof + 1`
4470 cat >>$CONFIG_STATUS <<_ACEOF
4471 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
4472 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
4475 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
4476 s/^/s,@/; s/!/@,|#_!!_#|/
4479 s/'"$ac_delim"'$/,g/; t
4481 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
4482 ' >>$CONFIG_STATUS <conf$
$subs.
sed
4483 rm -f conf$
$subs.
sed
4484 cat >>$CONFIG_STATUS <<_ACEOF
4491 # VPATH may cause trouble with some makes, so we remove $(srcdir),
4492 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4493 # trailing colons and then remove the whole line if VPATH becomes empty
4494 # (actually we leave an empty line to preserve line numbers).
4495 if test "x$srcdir" = x.
; then
4496 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
4500 s/^\([^=]*=[ ]*\):*/\1/
4506 cat >>$CONFIG_STATUS <<\_ACEOF
4507 fi # test -n "$CONFIG_FILES"
4510 for ac_tag
in :F
$CONFIG_FILES
4513 :[FHLC
]) ac_mode
=$ac_tag; continue;;
4515 case $ac_mode$ac_tag in
4517 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
4518 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
4519 { (exit 1); exit 1; }; };;
4520 :[FH
]-) ac_tag
=-:-;;
4521 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
4538 -) ac_f
="$tmp/stdin";;
4539 *) # Look for the file first in the build tree, then in the source tree
4540 # (if the path is not absolute). The absolute path cannot be DOS-style,
4541 # because $ac_f cannot contain `:'.
4545 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
4547 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
4548 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
4549 { (exit 1); exit 1; }; };;
4551 ac_file_inputs
="$ac_file_inputs $ac_f"
4554 # Let's still pretend it is `configure' which instantiates (i.e., don't
4555 # use $as_me), people would be surprised to read:
4556 # /* config.h. Generated by config.status. */
4557 configure_input
="Generated from "`IFS=:
4558 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
4559 if test x
"$ac_file" != x-
; then
4560 configure_input
="$ac_file. $configure_input"
4561 { echo "$as_me:$LINENO: creating $ac_file" >&5
4562 echo "$as_me: creating $ac_file" >&6;}
4566 *:-:* |
*:-) cat >"$tmp/stdin";;
4571 ac_dir
=`$as_dirname -- "$ac_file" ||
4572 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4573 X"$ac_file" : 'X\(//\)[^/]' \| \
4574 X"$ac_file" : 'X\(//\)$' \| \
4575 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
4577 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4596 -*) as_dir
=.
/$as_dir;;
4598 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
4602 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
4603 *) as_qdir
=$as_dir;;
4605 as_dirs
="'$as_qdir' $as_dirs"
4606 as_dir
=`$as_dirname -- "$as_dir" ||
4607 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4608 X"$as_dir" : 'X\(//\)[^/]' \| \
4609 X"$as_dir" : 'X\(//\)$' \| \
4610 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
4612 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4629 test -d "$as_dir" && break
4631 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
4632 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
4633 echo "$as_me: error: cannot create directory $as_dir" >&2;}
4634 { (exit 1); exit 1; }; }; }
4638 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
4640 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
4641 # A ".." for each directory in $ac_dir_suffix.
4642 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
4643 case $ac_top_builddir_sub in
4644 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
4645 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
4648 ac_abs_top_builddir
=$ac_pwd
4649 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
4650 # for backward compatibility:
4651 ac_top_builddir
=$ac_top_build_prefix
4654 .
) # We are building in place.
4656 ac_top_srcdir
=$ac_top_builddir_sub
4657 ac_abs_top_srcdir
=$ac_pwd ;;
4658 [\\/]* | ?
:[\\/]* ) # Absolute name.
4659 ac_srcdir
=$srcdir$ac_dir_suffix;
4660 ac_top_srcdir
=$srcdir
4661 ac_abs_top_srcdir
=$srcdir ;;
4663 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
4664 ac_top_srcdir
=$ac_top_build_prefix$srcdir
4665 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
4667 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
4678 cat >>$CONFIG_STATUS <<\_ACEOF
4679 # If the template does not know about datarootdir, expand it.
4680 # FIXME: This hack should be removed a few years after 2.60.
4681 ac_datarootdir_hack
=; ac_datarootdir_seen
=
4683 case `sed -n '/datarootdir/ {
4692 ' $ac_file_inputs` in
4693 *datarootdir
*) ac_datarootdir_seen
=yes;;
4694 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
4695 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
4696 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
4698 cat >>$CONFIG_STATUS <<_ACEOF
4699 ac_datarootdir_hack='
4700 s&@datadir@&$datadir&g
4701 s&@docdir@&$docdir&g
4702 s&@infodir@&$infodir&g
4703 s&@localedir@&$localedir&g
4704 s&@mandir@&$mandir&g
4705 s&\\\${datarootdir}&$datarootdir&g' ;;
4709 # Neutralize VPATH when `$srcdir' = `.'.
4710 # Shell code in configure.ac might set extrasub.
4711 # FIXME: do we really want to maintain this feature?
4712 cat >>$CONFIG_STATUS <<_ACEOF
4716 cat >>$CONFIG_STATUS <<\_ACEOF
4718 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
4719 s
&@configure_input@
&$configure_input&;t t
4720 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
4721 s
&@srcdir@
&$ac_srcdir&;t t
4722 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
4723 s
&@top_srcdir@
&$ac_top_srcdir&;t t
4724 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
4725 s
&@builddir@
&$ac_builddir&;t t
4726 s
&@abs_builddir@
&$ac_abs_builddir&;t t
4727 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
4728 $ac_datarootdir_hack
4729 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" >$tmp/out
4731 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
4732 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
4733 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
4734 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
4735 which seems to be undefined. Please make sure it is defined." >&5
4736 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
4737 which seems to be undefined. Please make sure it is defined." >&2;}
4741 -) cat "$tmp/out"; rm -f "$tmp/out";;
4742 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
4753 { (exit 0); exit 0; }
4755 chmod +x $CONFIG_STATUS
4756 ac_clean_files=$ac_clean_files_save
4759 # configure is writing to config.log, and then calls config.status.
4760 # config.status does its own redirection, appending to config.log.
4761 # Unfortunately, on DOS this fails, as config.log is still kept open
4762 # by configure, so config.status won't be able to
write to it
; its
4763 # output is simply discarded. So we exec the FD to /dev/null,
4764 # effectively closing config.log, so it can be properly (re)opened and
4765 # appended to by config.status. When coming back to configure, we
4766 # need to make the FD available again.
4767 if test "$no_create" != yes; then
4769 ac_config_status_args
=
4770 test "$silent" = yes &&
4771 ac_config_status_args
="$ac_config_status_args --quiet"
4773 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
4775 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4776 # would make configure fail if this is the last instruction.
4777 $ac_cs_success ||
{ (exit 1); exit 1; }