4896
pkg_modules="gtk+-2.0 >= 2.0.0"
4899
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4900
if test -n "$ac_tool_prefix"; then
4901
# Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4902
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4903
echo "$as_me:$LINENO: checking for $ac_word" >&5
4904
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4905
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4906
echo $ECHO_N "(cached) $ECHO_C" >&6
4910
ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4913
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4917
test -z "$as_dir" && as_dir=.
4918
for ac_exec_ext in '' $ac_executable_extensions; do
4919
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4920
ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4921
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4930
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4932
if test -n "$PKG_CONFIG"; then
4933
echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
4934
echo "${ECHO_T}$PKG_CONFIG" >&6
4936
echo "$as_me:$LINENO: result: no" >&5
4937
echo "${ECHO_T}no" >&6
4941
if test -z "$ac_cv_path_PKG_CONFIG"; then
4942
ac_pt_PKG_CONFIG=$PKG_CONFIG
4943
# Extract the first word of "pkg-config", so it can be a program name with args.
4944
set dummy pkg-config; ac_word=$2
4945
echo "$as_me:$LINENO: checking for $ac_word" >&5
4946
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4947
if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
4948
echo $ECHO_N "(cached) $ECHO_C" >&6
4950
case $ac_pt_PKG_CONFIG in
4952
ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4955
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4959
test -z "$as_dir" && as_dir=.
4960
for ac_exec_ext in '' $ac_executable_extensions; do
4961
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4962
ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4963
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4972
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4974
if test -n "$ac_pt_PKG_CONFIG"; then
4975
echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
4976
echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
4978
echo "$as_me:$LINENO: result: no" >&5
4979
echo "${ECHO_T}no" >&6
4982
PKG_CONFIG=$ac_pt_PKG_CONFIG
4984
PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4988
if test -n "$PKG_CONFIG"; then
4989
_pkg_min_version=0.9.0
4990
echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
4991
echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
4992
if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4993
echo "$as_me:$LINENO: result: yes" >&5
4994
echo "${ECHO_T}yes" >&6
4996
echo "$as_me:$LINENO: result: no" >&5
4997
echo "${ECHO_T}no" >&6
5004
echo "$as_me:$LINENO: checking for PACKAGE" >&5
5005
echo $ECHO_N "checking for PACKAGE... $ECHO_C" >&6
5007
if test -n "$PKG_CONFIG"; then
5008
if test -n "$PACKAGE_CFLAGS"; then
5009
pkg_cv_PACKAGE_CFLAGS="$PACKAGE_CFLAGS"
5011
if test -n "$PKG_CONFIG" && \
5012
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$pkg_modules\"") >&5
5013
($PKG_CONFIG --exists --print-errors "$pkg_modules") 2>&5
5015
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5016
(exit $ac_status); }; then
5017
pkg_cv_PACKAGE_CFLAGS=`$PKG_CONFIG --cflags "$pkg_modules" 2>/dev/null`
5025
if test -n "$PKG_CONFIG"; then
5026
if test -n "$PACKAGE_LIBS"; then
5027
pkg_cv_PACKAGE_LIBS="$PACKAGE_LIBS"
5029
if test -n "$PKG_CONFIG" && \
5030
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$pkg_modules\"") >&5
5031
($PKG_CONFIG --exists --print-errors "$pkg_modules") 2>&5
5033
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5034
(exit $ac_status); }; then
5035
pkg_cv_PACKAGE_LIBS=`$PKG_CONFIG --libs "$pkg_modules" 2>/dev/null`
5046
if test $pkg_failed = yes; then
5048
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5049
_pkg_short_errors_supported=yes
5051
_pkg_short_errors_supported=no
5053
if test $_pkg_short_errors_supported = yes; then
5054
PACKAGE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$pkg_modules"`
5056
PACKAGE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$pkg_modules"`
5058
# Put the nasty error message in config.log where it belongs
5059
echo "$PACKAGE_PKG_ERRORS" >&5
5061
{ echo "$as_me:$LINENO: WARNING: GTK v2 libraries not found - will not build gtkv2 client" >&5
5062
echo "$as_me: WARNING: GTK v2 libraries not found - will not build gtkv2 client" >&2;}
5063
elif test $pkg_failed = untried; then
5064
{ echo "$as_me:$LINENO: WARNING: GTK v2 libraries not found - will not build gtkv2 client" >&5
5065
echo "$as_me: WARNING: GTK v2 libraries not found - will not build gtkv2 client" >&2;}
5067
PACKAGE_CFLAGS=$pkg_cv_PACKAGE_CFLAGS
5068
PACKAGE_LIBS=$pkg_cv_PACKAGE_LIBS
5069
echo "$as_me:$LINENO: result: yes" >&5
5070
echo "${ECHO_T}yes" >&6
5071
CF_SUBDIRS="$CF_SUBDIRS gtk-v2"
5074
echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
5075
echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
5076
# Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
5077
if test "${enable_maintainer_mode+set}" = set; then
5078
enableval="$enable_maintainer_mode"
5079
USE_MAINTAINER_MODE=$enableval
5081
USE_MAINTAINER_MODE=no
5083
echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
5084
echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
5087
if test $USE_MAINTAINER_MODE = yes; then
5088
MAINTAINER_MODE_TRUE=
5089
MAINTAINER_MODE_FALSE='#'
5091
MAINTAINER_MODE_TRUE='#'
5092
MAINTAINER_MODE_FALSE=
5095
MAINT=$MAINTAINER_MODE_TRUE
5101
echo "$as_me:$LINENO: checking for main in -lglut" >&5
5102
echo $ECHO_N "checking for main in -lglut... $ECHO_C" >&6
5103
if test "${ac_cv_lib_glut_main+set}" = set; then
5104
echo $ECHO_N "(cached) $ECHO_C" >&6
5106
ac_check_lib_save_LIBS=$LIBS
5108
cat >conftest.$ac_ext <<_ACEOF
5111
cat confdefs.h >>conftest.$ac_ext
5112
cat >>conftest.$ac_ext <<_ACEOF
5113
/* end confdefs.h. */
5124
rm -f conftest.$ac_objext conftest$ac_exeext
5125
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5126
(eval $ac_link) 2>conftest.er1
5128
grep -v '^ *+' conftest.er1 >conftest.err
5130
cat conftest.err >&5
5131
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5132
(exit $ac_status); } &&
5133
{ ac_try='test -z "$ac_c_werror_flag"
5134
|| test ! -s conftest.err'
5135
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5138
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5139
(exit $ac_status); }; } &&
5140
{ ac_try='test -s conftest$ac_exeext'
5141
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5144
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5145
(exit $ac_status); }; }; then
5146
ac_cv_lib_glut_main=yes
5148
echo "$as_me: failed program was:" >&5
5149
sed 's/^/| /' conftest.$ac_ext >&5
5151
ac_cv_lib_glut_main=no
5153
rm -f conftest.err conftest.$ac_objext \
5154
conftest$ac_exeext conftest.$ac_ext
5155
LIBS=$ac_check_lib_save_LIBS
5157
echo "$as_me:$LINENO: result: $ac_cv_lib_glut_main" >&5
5158
echo "${ECHO_T}$ac_cv_lib_glut_main" >&6
5159
if test $ac_cv_lib_glut_main = yes; then
5160
OPENGL_LIBS="-lglut"
5164
if eval "test x$OPENGL_LIBS != x"; then
5165
cat >>confdefs.h <<\_ACEOF
5166
#define HAVE_OPENGL 1
5173
4976
SOUNDDIR="${datadir}/crossfire-client/sounds"
5175
4978
# Check whether --enable-debug or --disable-debug was given.
6354
6183
need_r_flag="yes"
6361
# Find a good install program. We prefer a C program (faster),
6362
# so one script is as good as another. But avoid the broken or
6363
# incompatible versions:
6364
# SysV /etc/install, /usr/sbin/install
6365
# SunOS /usr/etc/install
6366
# IRIX /sbin/install
6368
# AmigaOS /C/install, which installs bootblocks on floppy discs
6369
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6370
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
6371
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6372
# OS/2's system install, which has a completely different semantic
6373
# ./install, which can be erroneously created by make from ./install.sh.
6374
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6375
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
6376
if test -z "$INSTALL"; then
6377
if test "${ac_cv_path_install+set}" = set; then
6378
echo $ECHO_N "(cached) $ECHO_C" >&6
6380
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6384
test -z "$as_dir" && as_dir=.
6385
# Account for people who put trailing slashes in PATH elements.
6387
./ | .// | /cC/* | \
6388
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6389
?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6392
# OSF1 and SCO ODT 3.0 have their own names for install.
6393
# Don't use installbsd from OSF since it installs stuff as root
6395
for ac_prog in ginstall scoinst install; do
6396
for ac_exec_ext in '' $ac_executable_extensions; do
6397
if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
6398
if test $ac_prog = install &&
6399
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6400
# AIX install. It has an incompatible calling convention.
6402
elif test $ac_prog = install &&
6403
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6404
# program-specific install script used by HP pwplus--don't use.
6407
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6187
# -mms-bitfields is needed for GTK+ in windows. It is set automatically
6188
# by pkg-config, but it's also needed in common, so we explicitely set it
6189
CFLAGS="$CFLAGS -mms-bitfields"
6190
WIN32_LIBS="-lwsock32 -lwinmm"
6198
if eval "test x$no_x = xyes" ; then
6199
{ echo "$as_me:$LINENO: WARNING: X11 not found - will not build X client" >&5
6200
echo "$as_me: WARNING: X11 not found - will not build X client" >&2;}
6203
{ echo "$as_me:$LINENO: X11 found - will build X client" >&5
6204
echo "$as_me: X11 found - will build X client" >&6;}
6205
X_LIBS="$X_LIBS -lX11"
6206
CF_SUBDIRS="$CF_SUBDIRS x11"
6208
echo Extras: $X_EXTRA_LIBS
6209
echo Xpre: $X_PRE_LIBS
6212
if eval "test x$gtkv1 = xyes" ; then
6213
if eval "test x$cfgtk2 = xyes" ; then
6216
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
6217
if test -n "$ac_tool_prefix"; then
6218
# Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6219
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
6220
echo "$as_me:$LINENO: checking for $ac_word" >&5
6221
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6222
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6223
echo $ECHO_N "(cached) $ECHO_C" >&6
6227
ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6230
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6234
test -z "$as_dir" && as_dir=.
6235
for ac_exec_ext in '' $ac_executable_extensions; do
6236
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6237
ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6238
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6247
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6249
if test -n "$PKG_CONFIG"; then
6250
echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6251
echo "${ECHO_T}$PKG_CONFIG" >&6
6253
echo "$as_me:$LINENO: result: no" >&5
6254
echo "${ECHO_T}no" >&6
6258
if test -z "$ac_cv_path_PKG_CONFIG"; then
6259
ac_pt_PKG_CONFIG=$PKG_CONFIG
6260
# Extract the first word of "pkg-config", so it can be a program name with args.
6261
set dummy pkg-config; ac_word=$2
6262
echo "$as_me:$LINENO: checking for $ac_word" >&5
6263
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6264
if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
6265
echo $ECHO_N "(cached) $ECHO_C" >&6
6267
case $ac_pt_PKG_CONFIG in
6269
ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
6272
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6276
test -z "$as_dir" && as_dir=.
6277
for ac_exec_ext in '' $ac_executable_extensions; do
6278
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6279
ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6280
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6289
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
6291
if test -n "$ac_pt_PKG_CONFIG"; then
6292
echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
6293
echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
6295
echo "$as_me:$LINENO: result: no" >&5
6296
echo "${ECHO_T}no" >&6
6299
PKG_CONFIG=$ac_pt_PKG_CONFIG
6301
PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
6305
if test -n "$PKG_CONFIG"; then
6306
_pkg_min_version=0.9.0
6307
echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
6308
echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
6309
if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
6310
echo "$as_me:$LINENO: result: yes" >&5
6311
echo "${ECHO_T}yes" >&6
6313
echo "$as_me:$LINENO: result: no" >&5
6314
echo "${ECHO_T}no" >&6
6419
if test "${ac_cv_path_install+set}" = set; then
6420
INSTALL=$ac_cv_path_install
6422
# As a last resort, use the slow shell script. We don't cache a
6423
# path for INSTALL within a source directory, because that will
6424
# break other packages using the cache if that directory is
6425
# removed, or if the path is relative.
6426
INSTALL=$ac_install_sh
6429
echo "$as_me:$LINENO: result: $INSTALL" >&5
6430
echo "${ECHO_T}$INSTALL" >&6
6432
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6433
# It thinks the first close brace ends the variable substitution.
6434
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6436
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6438
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6440
echo "$as_me:$LINENO: checking whether ln -s works" >&5
6441
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
6443
if test "$LN_S" = "ln -s"; then
6444
echo "$as_me:$LINENO: result: yes" >&5
6445
echo "${ECHO_T}yes" >&6
6447
echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6448
echo "${ECHO_T}no, using $LN_S" >&6
6451
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6452
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
6453
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
6454
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
6455
echo $ECHO_N "(cached) $ECHO_C" >&6
6457
cat >conftest.make <<\_ACEOF
6459
@echo 'ac_maketemp="$(MAKE)"'
6461
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6462
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
6463
if test -n "$ac_maketemp"; then
6464
eval ac_cv_prog_make_${ac_make}_set=yes
6466
eval ac_cv_prog_make_${ac_make}_set=no
6470
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
6471
echo "$as_me:$LINENO: result: yes" >&5
6472
echo "${ECHO_T}yes" >&6
6475
echo "$as_me:$LINENO: result: no" >&5
6476
echo "${ECHO_T}no" >&6
6477
SET_MAKE="MAKE=${MAKE-make}"
6481
ac_cpp='$CPP $CPPFLAGS'
6482
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6483
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6484
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6485
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6486
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6487
# On Suns, sometimes $CPP names a directory.
6488
if test -n "$CPP" && test -d "$CPP"; then
6491
if test -z "$CPP"; then
6492
if test "${ac_cv_prog_CPP+set}" = set; then
6493
echo $ECHO_N "(cached) $ECHO_C" >&6
6495
# Double quotes because CPP needs to be expanded
6496
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6499
for ac_c_preproc_warn_flag in '' yes
6501
# Use a header file that comes with gcc, so configuring glibc
6502
# with a fresh cross-compiler works.
6503
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6504
# <limits.h> exists even on freestanding compilers.
6505
# On the NeXT, cc -E runs the code through the compiler's parser,
6506
# not just through cpp. "Syntax error" is here to catch this case.
6507
cat >conftest.$ac_ext <<_ACEOF
6510
cat confdefs.h >>conftest.$ac_ext
6511
cat >>conftest.$ac_ext <<_ACEOF
6512
/* end confdefs.h. */
6514
# include <limits.h>
6516
# include <assert.h>
6520
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6521
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6523
grep -v '^ *+' conftest.er1 >conftest.err
6525
cat conftest.err >&5
6526
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6527
(exit $ac_status); } >/dev/null; then
6528
if test -s conftest.err; then
6529
ac_cpp_err=$ac_c_preproc_warn_flag
6530
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6537
if test -z "$ac_cpp_err"; then
6540
echo "$as_me: failed program was:" >&5
6541
sed 's/^/| /' conftest.$ac_ext >&5
6543
# Broken: fails on valid input.
6546
rm -f conftest.err conftest.$ac_ext
6548
# OK, works on sane cases. Now check whether non-existent headers
6549
# can be detected and how.
6550
cat >conftest.$ac_ext <<_ACEOF
6553
cat confdefs.h >>conftest.$ac_ext
6554
cat >>conftest.$ac_ext <<_ACEOF
6555
/* end confdefs.h. */
6556
#include <ac_nonexistent.h>
6558
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6559
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6561
grep -v '^ *+' conftest.er1 >conftest.err
6563
cat conftest.err >&5
6564
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6565
(exit $ac_status); } >/dev/null; then
6566
if test -s conftest.err; then
6567
ac_cpp_err=$ac_c_preproc_warn_flag
6568
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6575
if test -z "$ac_cpp_err"; then
6576
# Broken: success on invalid input.
6579
echo "$as_me: failed program was:" >&5
6580
sed 's/^/| /' conftest.$ac_ext >&5
6582
# Passes both tests.
6586
rm -f conftest.err conftest.$ac_ext
6589
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6590
rm -f conftest.err conftest.$ac_ext
6591
if $ac_preproc_ok; then
6603
echo "$as_me:$LINENO: result: $CPP" >&5
6604
echo "${ECHO_T}$CPP" >&6
6606
for ac_c_preproc_warn_flag in '' yes
6608
# Use a header file that comes with gcc, so configuring glibc
6609
# with a fresh cross-compiler works.
6610
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6611
# <limits.h> exists even on freestanding compilers.
6612
# On the NeXT, cc -E runs the code through the compiler's parser,
6613
# not just through cpp. "Syntax error" is here to catch this case.
6614
cat >conftest.$ac_ext <<_ACEOF
6617
cat confdefs.h >>conftest.$ac_ext
6618
cat >>conftest.$ac_ext <<_ACEOF
6619
/* end confdefs.h. */
6621
# include <limits.h>
6623
# include <assert.h>
6627
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6628
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6630
grep -v '^ *+' conftest.er1 >conftest.err
6632
cat conftest.err >&5
6633
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6634
(exit $ac_status); } >/dev/null; then
6635
if test -s conftest.err; then
6636
ac_cpp_err=$ac_c_preproc_warn_flag
6637
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6644
if test -z "$ac_cpp_err"; then
6647
echo "$as_me: failed program was:" >&5
6648
sed 's/^/| /' conftest.$ac_ext >&5
6650
# Broken: fails on valid input.
6653
rm -f conftest.err conftest.$ac_ext
6655
# OK, works on sane cases. Now check whether non-existent headers
6656
# can be detected and how.
6657
cat >conftest.$ac_ext <<_ACEOF
6660
cat confdefs.h >>conftest.$ac_ext
6661
cat >>conftest.$ac_ext <<_ACEOF
6662
/* end confdefs.h. */
6663
#include <ac_nonexistent.h>
6665
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6666
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6668
grep -v '^ *+' conftest.er1 >conftest.err
6670
cat conftest.err >&5
6671
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6672
(exit $ac_status); } >/dev/null; then
6673
if test -s conftest.err; then
6674
ac_cpp_err=$ac_c_preproc_warn_flag
6675
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6682
if test -z "$ac_cpp_err"; then
6683
# Broken: success on invalid input.
6686
echo "$as_me: failed program was:" >&5
6687
sed 's/^/| /' conftest.$ac_ext >&5
6689
# Passes both tests.
6693
rm -f conftest.err conftest.$ac_ext
6696
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6697
rm -f conftest.err conftest.$ac_ext
6698
if $ac_preproc_ok; then
6701
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6702
See \`config.log' for more details." >&5
6703
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6704
See \`config.log' for more details." >&2;}
6705
{ (exit 1); exit 1; }; }
6709
ac_cpp='$CPP $CPPFLAGS'
6710
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6711
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6712
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6714
if test -n "$ac_tool_prefix"; then
6715
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6716
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6717
echo "$as_me:$LINENO: checking for $ac_word" >&5
6718
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6719
if test "${ac_cv_prog_RANLIB+set}" = set; then
6720
echo $ECHO_N "(cached) $ECHO_C" >&6
6722
if test -n "$RANLIB"; then
6723
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6725
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6729
test -z "$as_dir" && as_dir=.
6730
for ac_exec_ext in '' $ac_executable_extensions; do
6731
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6732
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6733
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6741
RANLIB=$ac_cv_prog_RANLIB
6742
if test -n "$RANLIB"; then
6743
echo "$as_me:$LINENO: result: $RANLIB" >&5
6744
echo "${ECHO_T}$RANLIB" >&6
6746
echo "$as_me:$LINENO: result: no" >&5
6747
echo "${ECHO_T}no" >&6
6751
if test -z "$ac_cv_prog_RANLIB"; then
6752
ac_ct_RANLIB=$RANLIB
6753
# Extract the first word of "ranlib", so it can be a program name with args.
6754
set dummy ranlib; ac_word=$2
6755
echo "$as_me:$LINENO: checking for $ac_word" >&5
6756
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6757
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6758
echo $ECHO_N "(cached) $ECHO_C" >&6
6760
if test -n "$ac_ct_RANLIB"; then
6761
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6763
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6767
test -z "$as_dir" && as_dir=.
6768
for ac_exec_ext in '' $ac_executable_extensions; do
6769
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6770
ac_cv_prog_ac_ct_RANLIB="ranlib"
6771
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6777
test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6780
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6781
if test -n "$ac_ct_RANLIB"; then
6782
echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6783
echo "${ECHO_T}$ac_ct_RANLIB" >&6
6785
echo "$as_me:$LINENO: result: no" >&5
6786
echo "${ECHO_T}no" >&6
6789
RANLIB=$ac_ct_RANLIB
6791
RANLIB="$ac_cv_prog_RANLIB"
6797
if eval "test x$gtk = xyes"; then
6321
echo "$as_me:$LINENO: checking for GTK2" >&5
6322
echo $ECHO_N "checking for GTK2... $ECHO_C" >&6
6324
if test -n "$PKG_CONFIG"; then
6325
if test -n "$GTK2_CFLAGS"; then
6326
pkg_cv_GTK2_CFLAGS="$GTK2_CFLAGS"
6328
if test -n "$PKG_CONFIG" && \
6329
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.0.0\"") >&5
6330
($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.0.0") 2>&5
6332
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6333
(exit $ac_status); }; then
6334
pkg_cv_GTK2_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.0.0" 2>/dev/null`
6342
if test -n "$PKG_CONFIG"; then
6343
if test -n "$GTK2_LIBS"; then
6344
pkg_cv_GTK2_LIBS="$GTK2_LIBS"
6346
if test -n "$PKG_CONFIG" && \
6347
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.0.0\"") >&5
6348
($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.0.0") 2>&5
6350
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6351
(exit $ac_status); }; then
6352
pkg_cv_GTK2_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.0.0" 2>/dev/null`
6363
if test $pkg_failed = yes; then
6365
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6366
_pkg_short_errors_supported=yes
6368
_pkg_short_errors_supported=no
6370
if test $_pkg_short_errors_supported = yes; then
6371
GTK2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gtk+-2.0 >= 2.0.0"`
6373
GTK2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.0.0"`
6375
# Put the nasty error message in config.log where it belongs
6376
echo "$GTK2_PKG_ERRORS" >&5
6379
elif test $pkg_failed = untried; then
6382
GTK2_CFLAGS=$pkg_cv_GTK2_CFLAGS
6383
GTK2_LIBS=$pkg_cv_GTK2_LIBS
6384
echo "$as_me:$LINENO: result: yes" >&5
6385
echo "${ECHO_T}yes" >&6
6388
if eval "test x$HAVE_GTK2 = xyes" ; then
6389
GTK_CFLAGS="`$PKG_CONFIG --cflags gtk+-2.0` -DCFGTK2 -DGTK_ENABLE_BROKEN -DGTK_WINDOW_DIALOG=GTK_WINDOW_TOPLEVEL"
6390
GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0`
6391
CF_SUBDIRS="$CF_SUBDIRS gtk"
6393
{ echo "$as_me:$LINENO: GTK+ 2 found - building original gtk-v1 client with GTK+ 2.0.0" >&5
6394
echo "$as_me: GTK+ 2 found - building original gtk-v1 client with GTK+ 2.0.0" >&6;}
6396
{ echo "$as_me:$LINENO: WARNING: GTK2 not found and --enable-cfgtk2 is set - cannot original gtk-v1 client" >&5
6397
echo "$as_me: WARNING: GTK2 not found and --enable-cfgtk2 is set - cannot original gtk-v1 client" >&2;}
6799
6401
# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
6800
6402
if test "${with_gtk_prefix+set}" = set; then
7110
6712
rm -f conf.gtktest
7117
6714
if eval "test x$CFGTK = xyes"; then
7118
echo "$as_me:$LINENO: result: GTK found - building both gtk and x11 client" >&5
7119
echo "${ECHO_T}GTK found - building both gtk and x11 client" >&6
6715
{ echo "$as_me:$LINENO: GTK 1 found - building gtk client" >&5
6716
echo "$as_me: GTK 1 found - building gtk client" >&6;}
7120
6717
GTK_LIBS=$GTK_LIBS
7121
6718
GTK_CFLAGS="$GTK_CFLAGS"
7124
6721
CF_SUBDIRS="$CF_SUBDIRS gtk"
7126
echo "$as_me:$LINENO: result: GTK not found - building xlib client" >&5
7127
echo "${ECHO_T}GTK not found - building xlib client" >&6
7130
X_LIBS="$X_LIBS -lX11"
7134
echo Extras: $X_EXTRA_LIBS
7135
echo Xpre: $X_PRE_LIBS
6723
{ echo "$as_me:$LINENO: WARNING: GTK 1 not found - not building building gtk-v1 client" >&5
6724
echo "$as_me: WARNING: GTK 1 not found - not building building gtk-v1 client" >&2;}
6728
{ echo "$as_me:$LINENO: gtkv1 client build disabled" >&5
6729
echo "$as_me: gtkv1 client build disabled" >&6;}
6733
if eval "test x$gtkv2 = xyes" ; then
6736
echo "$as_me:$LINENO: checking for GTK2" >&5
6737
echo $ECHO_N "checking for GTK2... $ECHO_C" >&6
6739
if test -n "$PKG_CONFIG"; then
6740
if test -n "$GTK2_CFLAGS"; then
6741
pkg_cv_GTK2_CFLAGS="$GTK2_CFLAGS"
6743
if test -n "$PKG_CONFIG" && \
6744
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.0.0\"") >&5
6745
($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.0.0") 2>&5
6747
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6748
(exit $ac_status); }; then
6749
pkg_cv_GTK2_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.0.0" 2>/dev/null`
6757
if test -n "$PKG_CONFIG"; then
6758
if test -n "$GTK2_LIBS"; then
6759
pkg_cv_GTK2_LIBS="$GTK2_LIBS"
6761
if test -n "$PKG_CONFIG" && \
6762
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.0.0\"") >&5
6763
($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.0.0") 2>&5
6765
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6766
(exit $ac_status); }; then
6767
pkg_cv_GTK2_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.0.0" 2>/dev/null`
6778
if test $pkg_failed = yes; then
6780
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6781
_pkg_short_errors_supported=yes
6783
_pkg_short_errors_supported=no
6785
if test $_pkg_short_errors_supported = yes; then
6786
GTK2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gtk+-2.0 >= 2.0.0"`
6788
GTK2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.0.0"`
6790
# Put the nasty error message in config.log where it belongs
6791
echo "$GTK2_PKG_ERRORS" >&5
6794
elif test $pkg_failed = untried; then
6797
GTK2_CFLAGS=$pkg_cv_GTK2_CFLAGS
6798
GTK2_LIBS=$pkg_cv_GTK2_LIBS
6799
echo "$as_me:$LINENO: result: yes" >&5
6800
echo "${ECHO_T}yes" >&6
6801
CF_SUBDIRS="$CF_SUBDIRS gtk-v2"
6803
if eval "test x$gtkv2 = xyes" ; then
6804
{ echo "$as_me:$LINENO: GTK+ 2 found - will build gtk-v2 client" >&5
6805
echo "$as_me: GTK+ 2 found - will build gtk-v2 client" >&6;}
6807
{ echo "$as_me:$LINENO: WARNING: GTK+ 2 libraries not found - will not build gtk-v2 client" >&5
6808
echo "$as_me: WARNING: GTK+ 2 libraries not found - will not build gtk-v2 client" >&2;}
6811
{ echo "$as_me:$LINENO: gtkv2 client disabled" >&5
6812
echo "$as_me: gtkv2 client disabled" >&6;}
6817
echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
6818
echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
6819
# Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
6820
if test "${enable_maintainer_mode+set}" = set; then
6821
enableval="$enable_maintainer_mode"
6822
USE_MAINTAINER_MODE=$enableval
6824
USE_MAINTAINER_MODE=no
6826
echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
6827
echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
6830
if test $USE_MAINTAINER_MODE = yes; then
6831
MAINTAINER_MODE_TRUE=
6832
MAINTAINER_MODE_FALSE='#'
6834
MAINTAINER_MODE_TRUE='#'
6835
MAINTAINER_MODE_FALSE=
6838
MAINT=$MAINTAINER_MODE_TRUE
6845
echo "$as_me:$LINENO: checking for main in -lGL" >&5
6846
echo $ECHO_N "checking for main in -lGL... $ECHO_C" >&6
6847
if test "${ac_cv_lib_GL_main+set}" = set; then
6848
echo $ECHO_N "(cached) $ECHO_C" >&6
6850
ac_check_lib_save_LIBS=$LIBS
6852
cat >conftest.$ac_ext <<_ACEOF
6855
cat confdefs.h >>conftest.$ac_ext
6856
cat >>conftest.$ac_ext <<_ACEOF
6857
/* end confdefs.h. */
6868
rm -f conftest.$ac_objext conftest$ac_exeext
6869
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6870
(eval $ac_link) 2>conftest.er1
6872
grep -v '^ *+' conftest.er1 >conftest.err
6874
cat conftest.err >&5
6875
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6876
(exit $ac_status); } &&
6877
{ ac_try='test -z "$ac_c_werror_flag"
6878
|| test ! -s conftest.err'
6879
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6882
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6883
(exit $ac_status); }; } &&
6884
{ ac_try='test -s conftest$ac_exeext'
6885
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6888
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6889
(exit $ac_status); }; }; then
6890
ac_cv_lib_GL_main=yes
6892
echo "$as_me: failed program was:" >&5
6893
sed 's/^/| /' conftest.$ac_ext >&5
6895
ac_cv_lib_GL_main=no
6897
rm -f conftest.err conftest.$ac_objext \
6898
conftest$ac_exeext conftest.$ac_ext
6899
LIBS=$ac_check_lib_save_LIBS
6901
echo "$as_me:$LINENO: result: $ac_cv_lib_GL_main" >&5
6902
echo "${ECHO_T}$ac_cv_lib_GL_main" >&6
6903
if test $ac_cv_lib_GL_main = yes; then
6904
cat >>confdefs.h <<_ACEOF
6905
#define HAVE_LIBGL 1
6913
echo "$as_me:$LINENO: checking for main in -lGLU" >&5
6914
echo $ECHO_N "checking for main in -lGLU... $ECHO_C" >&6
6915
if test "${ac_cv_lib_GLU_main+set}" = set; then
6916
echo $ECHO_N "(cached) $ECHO_C" >&6
6918
ac_check_lib_save_LIBS=$LIBS
6920
cat >conftest.$ac_ext <<_ACEOF
6923
cat confdefs.h >>conftest.$ac_ext
6924
cat >>conftest.$ac_ext <<_ACEOF
6925
/* end confdefs.h. */
6936
rm -f conftest.$ac_objext conftest$ac_exeext
6937
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6938
(eval $ac_link) 2>conftest.er1
6940
grep -v '^ *+' conftest.er1 >conftest.err
6942
cat conftest.err >&5
6943
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6944
(exit $ac_status); } &&
6945
{ ac_try='test -z "$ac_c_werror_flag"
6946
|| test ! -s conftest.err'
6947
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6950
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6951
(exit $ac_status); }; } &&
6952
{ ac_try='test -s conftest$ac_exeext'
6953
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6956
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6957
(exit $ac_status); }; }; then
6958
ac_cv_lib_GLU_main=yes
6960
echo "$as_me: failed program was:" >&5
6961
sed 's/^/| /' conftest.$ac_ext >&5
6963
ac_cv_lib_GLU_main=no
6965
rm -f conftest.err conftest.$ac_objext \
6966
conftest$ac_exeext conftest.$ac_ext
6967
LIBS=$ac_check_lib_save_LIBS
6969
echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_main" >&5
6970
echo "${ECHO_T}$ac_cv_lib_GLU_main" >&6
6971
if test $ac_cv_lib_GLU_main = yes; then
6972
cat >>confdefs.h <<_ACEOF
6973
#define HAVE_LIBGLU 1
6981
echo "$as_me:$LINENO: checking for main in -lopengl32" >&5
6982
echo $ECHO_N "checking for main in -lopengl32... $ECHO_C" >&6
6983
if test "${ac_cv_lib_opengl32_main+set}" = set; then
6984
echo $ECHO_N "(cached) $ECHO_C" >&6
6986
ac_check_lib_save_LIBS=$LIBS
6987
LIBS="-lopengl32 $LIBS"
6988
cat >conftest.$ac_ext <<_ACEOF
6991
cat confdefs.h >>conftest.$ac_ext
6992
cat >>conftest.$ac_ext <<_ACEOF
6993
/* end confdefs.h. */
7004
rm -f conftest.$ac_objext conftest$ac_exeext
7005
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7006
(eval $ac_link) 2>conftest.er1
7008
grep -v '^ *+' conftest.er1 >conftest.err
7010
cat conftest.err >&5
7011
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7012
(exit $ac_status); } &&
7013
{ ac_try='test -z "$ac_c_werror_flag"
7014
|| test ! -s conftest.err'
7015
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7018
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7019
(exit $ac_status); }; } &&
7020
{ ac_try='test -s conftest$ac_exeext'
7021
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7024
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7025
(exit $ac_status); }; }; then
7026
ac_cv_lib_opengl32_main=yes
7028
echo "$as_me: failed program was:" >&5
7029
sed 's/^/| /' conftest.$ac_ext >&5
7031
ac_cv_lib_opengl32_main=no
7033
rm -f conftest.err conftest.$ac_objext \
7034
conftest$ac_exeext conftest.$ac_ext
7035
LIBS=$ac_check_lib_save_LIBS
7037
echo "$as_me:$LINENO: result: $ac_cv_lib_opengl32_main" >&5
7038
echo "${ECHO_T}$ac_cv_lib_opengl32_main" >&6
7039
if test $ac_cv_lib_opengl32_main = yes; then
7040
cat >>confdefs.h <<_ACEOF
7041
#define HAVE_LIBOPENGL32 1
7044
LIBS="-lopengl32 $LIBS"
7049
echo "$as_me:$LINENO: checking for main in -lglu32" >&5
7050
echo $ECHO_N "checking for main in -lglu32... $ECHO_C" >&6
7051
if test "${ac_cv_lib_glu32_main+set}" = set; then
7052
echo $ECHO_N "(cached) $ECHO_C" >&6
7054
ac_check_lib_save_LIBS=$LIBS
7055
LIBS="-lglu32 $LIBS"
7056
cat >conftest.$ac_ext <<_ACEOF
7059
cat confdefs.h >>conftest.$ac_ext
7060
cat >>conftest.$ac_ext <<_ACEOF
7061
/* end confdefs.h. */
7072
rm -f conftest.$ac_objext conftest$ac_exeext
7073
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7074
(eval $ac_link) 2>conftest.er1
7076
grep -v '^ *+' conftest.er1 >conftest.err
7078
cat conftest.err >&5
7079
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7080
(exit $ac_status); } &&
7081
{ ac_try='test -z "$ac_c_werror_flag"
7082
|| test ! -s conftest.err'
7083
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7086
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7087
(exit $ac_status); }; } &&
7088
{ ac_try='test -s conftest$ac_exeext'
7089
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7092
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7093
(exit $ac_status); }; }; then
7094
ac_cv_lib_glu32_main=yes
7096
echo "$as_me: failed program was:" >&5
7097
sed 's/^/| /' conftest.$ac_ext >&5
7099
ac_cv_lib_glu32_main=no
7101
rm -f conftest.err conftest.$ac_objext \
7102
conftest$ac_exeext conftest.$ac_ext
7103
LIBS=$ac_check_lib_save_LIBS
7105
echo "$as_me:$LINENO: result: $ac_cv_lib_glu32_main" >&5
7106
echo "${ECHO_T}$ac_cv_lib_glu32_main" >&6
7107
if test $ac_cv_lib_glu32_main = yes; then
7108
cat >>confdefs.h <<_ACEOF
7109
#define HAVE_LIBGLU32 1
7112
LIBS="-lglu32 $LIBS"
7116
echo "$as_me:$LINENO: checking for main in -lglut" >&5
7117
echo $ECHO_N "checking for main in -lglut... $ECHO_C" >&6
7118
if test "${ac_cv_lib_glut_main+set}" = set; then
7119
echo $ECHO_N "(cached) $ECHO_C" >&6
7121
ac_check_lib_save_LIBS=$LIBS
7123
cat >conftest.$ac_ext <<_ACEOF
7126
cat confdefs.h >>conftest.$ac_ext
7127
cat >>conftest.$ac_ext <<_ACEOF
7128
/* end confdefs.h. */
7139
rm -f conftest.$ac_objext conftest$ac_exeext
7140
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7141
(eval $ac_link) 2>conftest.er1
7143
grep -v '^ *+' conftest.er1 >conftest.err
7145
cat conftest.err >&5
7146
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7147
(exit $ac_status); } &&
7148
{ ac_try='test -z "$ac_c_werror_flag"
7149
|| test ! -s conftest.err'
7150
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7153
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7154
(exit $ac_status); }; } &&
7155
{ ac_try='test -s conftest$ac_exeext'
7156
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7159
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7160
(exit $ac_status); }; }; then
7161
ac_cv_lib_glut_main=yes
7163
echo "$as_me: failed program was:" >&5
7164
sed 's/^/| /' conftest.$ac_ext >&5
7166
ac_cv_lib_glut_main=no
7168
rm -f conftest.err conftest.$ac_objext \
7169
conftest$ac_exeext conftest.$ac_ext
7170
LIBS=$ac_check_lib_save_LIBS
7172
echo "$as_me:$LINENO: result: $ac_cv_lib_glut_main" >&5
7173
echo "${ECHO_T}$ac_cv_lib_glut_main" >&6
7174
if test $ac_cv_lib_glut_main = yes; then
7175
opengl="yes"; cat >>confdefs.h <<\_ACEOF
7176
#define HAVE_OPENGL 1
7181
if eval "test x$opengl = xyes" ; then
7182
if eval "test x$win32 = xyes" ; then
7183
OPENGL_LIBS="-lopengl32 -lglu32 -lglut"
7185
OPENGL_LIBS="-lGL -lGLU -lglut"
7190
# Find a good install program. We prefer a C program (faster),
7191
# so one script is as good as another. But avoid the broken or
7192
# incompatible versions:
7193
# SysV /etc/install, /usr/sbin/install
7194
# SunOS /usr/etc/install
7195
# IRIX /sbin/install
7197
# AmigaOS /C/install, which installs bootblocks on floppy discs
7198
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7199
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7200
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7201
# OS/2's system install, which has a completely different semantic
7202
# ./install, which can be erroneously created by make from ./install.sh.
7203
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7204
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
7205
if test -z "$INSTALL"; then
7206
if test "${ac_cv_path_install+set}" = set; then
7207
echo $ECHO_N "(cached) $ECHO_C" >&6
7209
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7213
test -z "$as_dir" && as_dir=.
7214
# Account for people who put trailing slashes in PATH elements.
7216
./ | .// | /cC/* | \
7217
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7218
?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7221
# OSF1 and SCO ODT 3.0 have their own names for install.
7222
# Don't use installbsd from OSF since it installs stuff as root
7224
for ac_prog in ginstall scoinst install; do
7225
for ac_exec_ext in '' $ac_executable_extensions; do
7226
if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
7227
if test $ac_prog = install &&
7228
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7229
# AIX install. It has an incompatible calling convention.
7231
elif test $ac_prog = install &&
7232
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7233
# program-specific install script used by HP pwplus--don't use.
7236
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7248
if test "${ac_cv_path_install+set}" = set; then
7249
INSTALL=$ac_cv_path_install
7251
# As a last resort, use the slow shell script. We don't cache a
7252
# path for INSTALL within a source directory, because that will
7253
# break other packages using the cache if that directory is
7254
# removed, or if the path is relative.
7255
INSTALL=$ac_install_sh
7258
echo "$as_me:$LINENO: result: $INSTALL" >&5
7259
echo "${ECHO_T}$INSTALL" >&6
7261
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7262
# It thinks the first close brace ends the variable substitution.
7263
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7265
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7267
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7269
echo "$as_me:$LINENO: checking whether ln -s works" >&5
7270
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
7272
if test "$LN_S" = "ln -s"; then
7273
echo "$as_me:$LINENO: result: yes" >&5
7274
echo "${ECHO_T}yes" >&6
7276
echo "$as_me:$LINENO: result: no, using $LN_S" >&5
7277
echo "${ECHO_T}no, using $LN_S" >&6
7280
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7281
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
7282
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
7283
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
7284
echo $ECHO_N "(cached) $ECHO_C" >&6
7286
cat >conftest.make <<\_ACEOF
7288
@echo 'ac_maketemp="$(MAKE)"'
7290
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7291
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
7292
if test -n "$ac_maketemp"; then
7293
eval ac_cv_prog_make_${ac_make}_set=yes
7295
eval ac_cv_prog_make_${ac_make}_set=no
7299
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
7300
echo "$as_me:$LINENO: result: yes" >&5
7301
echo "${ECHO_T}yes" >&6
7304
echo "$as_me:$LINENO: result: no" >&5
7305
echo "${ECHO_T}no" >&6
7306
SET_MAKE="MAKE=${MAKE-make}"
7310
ac_cpp='$CPP $CPPFLAGS'
7311
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7312
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7313
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7314
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
7315
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
7316
# On Suns, sometimes $CPP names a directory.
7317
if test -n "$CPP" && test -d "$CPP"; then
7320
if test -z "$CPP"; then
7321
if test "${ac_cv_prog_CPP+set}" = set; then
7322
echo $ECHO_N "(cached) $ECHO_C" >&6
7324
# Double quotes because CPP needs to be expanded
7325
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7328
for ac_c_preproc_warn_flag in '' yes
7330
# Use a header file that comes with gcc, so configuring glibc
7331
# with a fresh cross-compiler works.
7332
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7333
# <limits.h> exists even on freestanding compilers.
7334
# On the NeXT, cc -E runs the code through the compiler's parser,
7335
# not just through cpp. "Syntax error" is here to catch this case.
7336
cat >conftest.$ac_ext <<_ACEOF
7339
cat confdefs.h >>conftest.$ac_ext
7340
cat >>conftest.$ac_ext <<_ACEOF
7341
/* end confdefs.h. */
7343
# include <limits.h>
7345
# include <assert.h>
7349
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7350
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7352
grep -v '^ *+' conftest.er1 >conftest.err
7354
cat conftest.err >&5
7355
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7356
(exit $ac_status); } >/dev/null; then
7357
if test -s conftest.err; then
7358
ac_cpp_err=$ac_c_preproc_warn_flag
7359
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7366
if test -z "$ac_cpp_err"; then
7369
echo "$as_me: failed program was:" >&5
7370
sed 's/^/| /' conftest.$ac_ext >&5
7372
# Broken: fails on valid input.
7375
rm -f conftest.err conftest.$ac_ext
7377
# OK, works on sane cases. Now check whether non-existent headers
7378
# can be detected and how.
7379
cat >conftest.$ac_ext <<_ACEOF
7382
cat confdefs.h >>conftest.$ac_ext
7383
cat >>conftest.$ac_ext <<_ACEOF
7384
/* end confdefs.h. */
7385
#include <ac_nonexistent.h>
7387
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7388
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7390
grep -v '^ *+' conftest.er1 >conftest.err
7392
cat conftest.err >&5
7393
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7394
(exit $ac_status); } >/dev/null; then
7395
if test -s conftest.err; then
7396
ac_cpp_err=$ac_c_preproc_warn_flag
7397
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7404
if test -z "$ac_cpp_err"; then
7405
# Broken: success on invalid input.
7408
echo "$as_me: failed program was:" >&5
7409
sed 's/^/| /' conftest.$ac_ext >&5
7411
# Passes both tests.
7415
rm -f conftest.err conftest.$ac_ext
7418
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7419
rm -f conftest.err conftest.$ac_ext
7420
if $ac_preproc_ok; then
7432
echo "$as_me:$LINENO: result: $CPP" >&5
7433
echo "${ECHO_T}$CPP" >&6
7435
for ac_c_preproc_warn_flag in '' yes
7437
# Use a header file that comes with gcc, so configuring glibc
7438
# with a fresh cross-compiler works.
7439
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7440
# <limits.h> exists even on freestanding compilers.
7441
# On the NeXT, cc -E runs the code through the compiler's parser,
7442
# not just through cpp. "Syntax error" is here to catch this case.
7443
cat >conftest.$ac_ext <<_ACEOF
7446
cat confdefs.h >>conftest.$ac_ext
7447
cat >>conftest.$ac_ext <<_ACEOF
7448
/* end confdefs.h. */
7450
# include <limits.h>
7452
# include <assert.h>
7456
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7457
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7459
grep -v '^ *+' conftest.er1 >conftest.err
7461
cat conftest.err >&5
7462
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7463
(exit $ac_status); } >/dev/null; then
7464
if test -s conftest.err; then
7465
ac_cpp_err=$ac_c_preproc_warn_flag
7466
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7473
if test -z "$ac_cpp_err"; then
7476
echo "$as_me: failed program was:" >&5
7477
sed 's/^/| /' conftest.$ac_ext >&5
7479
# Broken: fails on valid input.
7482
rm -f conftest.err conftest.$ac_ext
7484
# OK, works on sane cases. Now check whether non-existent headers
7485
# can be detected and how.
7486
cat >conftest.$ac_ext <<_ACEOF
7489
cat confdefs.h >>conftest.$ac_ext
7490
cat >>conftest.$ac_ext <<_ACEOF
7491
/* end confdefs.h. */
7492
#include <ac_nonexistent.h>
7494
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7495
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7497
grep -v '^ *+' conftest.er1 >conftest.err
7499
cat conftest.err >&5
7500
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7501
(exit $ac_status); } >/dev/null; then
7502
if test -s conftest.err; then
7503
ac_cpp_err=$ac_c_preproc_warn_flag
7504
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7511
if test -z "$ac_cpp_err"; then
7512
# Broken: success on invalid input.
7515
echo "$as_me: failed program was:" >&5
7516
sed 's/^/| /' conftest.$ac_ext >&5
7518
# Passes both tests.
7522
rm -f conftest.err conftest.$ac_ext
7525
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7526
rm -f conftest.err conftest.$ac_ext
7527
if $ac_preproc_ok; then
7530
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7531
See \`config.log' for more details." >&5
7532
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7533
See \`config.log' for more details." >&2;}
7534
{ (exit 1); exit 1; }; }
7538
ac_cpp='$CPP $CPPFLAGS'
7539
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7540
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7541
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7543
if test -n "$ac_tool_prefix"; then
7544
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7545
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7546
echo "$as_me:$LINENO: checking for $ac_word" >&5
7547
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7548
if test "${ac_cv_prog_RANLIB+set}" = set; then
7549
echo $ECHO_N "(cached) $ECHO_C" >&6
7551
if test -n "$RANLIB"; then
7552
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7554
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7558
test -z "$as_dir" && as_dir=.
7559
for ac_exec_ext in '' $ac_executable_extensions; do
7560
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7561
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7562
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7570
RANLIB=$ac_cv_prog_RANLIB
7571
if test -n "$RANLIB"; then
7572
echo "$as_me:$LINENO: result: $RANLIB" >&5
7573
echo "${ECHO_T}$RANLIB" >&6
7575
echo "$as_me:$LINENO: result: no" >&5
7576
echo "${ECHO_T}no" >&6
7580
if test -z "$ac_cv_prog_RANLIB"; then
7581
ac_ct_RANLIB=$RANLIB
7582
# Extract the first word of "ranlib", so it can be a program name with args.
7583
set dummy ranlib; ac_word=$2
7584
echo "$as_me:$LINENO: checking for $ac_word" >&5
7585
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7586
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7587
echo $ECHO_N "(cached) $ECHO_C" >&6
7589
if test -n "$ac_ct_RANLIB"; then
7590
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7592
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7596
test -z "$as_dir" && as_dir=.
7597
for ac_exec_ext in '' $ac_executable_extensions; do
7598
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7599
ac_cv_prog_ac_ct_RANLIB="ranlib"
7600
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7606
test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7609
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7610
if test -n "$ac_ct_RANLIB"; then
7611
echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7612
echo "${ECHO_T}$ac_ct_RANLIB" >&6
7614
echo "$as_me:$LINENO: result: no" >&5
7615
echo "${ECHO_T}no" >&6
7618
RANLIB=$ac_ct_RANLIB
7620
RANLIB="$ac_cv_prog_RANLIB"
7137
7627
CPPFLAGS="$CPPFLAGS $EXTRA_INC"
7138
7628
LDFLAGS="$LDFLAGS $EXTRA_LIB"