.gitignore: Add the rest of the source dists.

acinclude.m4: Fix SDL detection up some, should be more reliable.
bootstrap: reorder commands.
configure.in: Remove CDTYPE_BSD rule.
This commit is contained in:
Jeff Teunissen 2000-10-05 16:44:44 +00:00
parent c2a1e1f229
commit cb70ed81f6
4 changed files with 13 additions and 29 deletions

2
.gitignore vendored
View file

@ -7,4 +7,6 @@ config.log
config.status config.status
configure configure
quakeforge.lsm quakeforge.lsm
quakeforge-*.tar.bz2
quakeforge-*.tar.gz quakeforge-*.tar.gz
quakeforge-*.zip

View file

@ -79,7 +79,7 @@ dnl
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <SDL/SDL.h> #include <SDL.h>
char* char*
my_strdup (char *str) my_strdup (char *str)
@ -156,7 +156,7 @@ int main (int argc, char *argv[])
LIBS="$LIBS $SDL_LIBS" LIBS="$LIBS $SDL_LIBS"
AC_TRY_LINK([ AC_TRY_LINK([
#include <stdio.h> #include <stdio.h>
#include <SDL/SDL.h> #include <SDL.h>
], [ return 0; ], ], [ return 0; ],
[ echo "*** The test program compiled, but did not run. This usually means" [ echo "*** The test program compiled, but did not run. This usually means"
echo "*** that the run-time linker is not finding SDL or finding the wrong" echo "*** that the run-time linker is not finding SDL or finding the wrong"
@ -193,7 +193,7 @@ int main (int argc, char *argv[])
# Shamelessly stolen from Owen Taylor # Shamelessly stolen from Owen Taylor
dnl AM_CHECK_SGL([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]]) dnl AM_CHECK_SGL([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]])
dnl Test for SDL 1.1.x, and define SGL_CFLAGS and SGL_LIBS dnl Test for SDL 1.1.x, do _not_ redefine any variables.
dnl ***MUST*** be run _after_ checking for SDL 1.0x, if used. dnl ***MUST*** be run _after_ checking for SDL 1.0x, if used.
dnl dnl
AC_DEFUN(AM_CHECK_SGL, AC_DEFUN(AM_CHECK_SGL,
@ -201,7 +201,7 @@ AC_DEFUN(AM_CHECK_SGL,
dnl Get the cflags and libraries from the sdl-config script dnl Get the cflags and libraries from the sdl-config script
dnl dnl
min_sdl_version=ifelse([$1], ,1.1.0,$1) min_sdl_version=ifelse([$1], ,1.1.0,$1)
AC_MSG_CHECKING(for SDL - version >= $min_sdl_version) AC_MSG_CHECKING(whether SDL is version >= $min_sdl_version)
no_sgl="" no_sgl=""
if test "$SDL_CONFIG" = "no" ; then if test "$SDL_CONFIG" = "no" ; then
no_sgl=yes no_sgl=yes
@ -215,6 +215,10 @@ dnl
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'` sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \ sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'` sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
ac_save_CFLAGS="$CFLAGS"
ac_save_LIBS="$LIBS"
CFLAGS="$CFLAGS $SGL_CFLAGS"
LIBS="$LIBS $SGL_LIBS"
dnl dnl
dnl Do nothing more than check if the installed SDL is sufficiently new, since dnl Do nothing more than check if the installed SDL is sufficiently new, since
dnl we already did that in the SDL detection dnl we already did that in the SDL detection
@ -223,7 +227,7 @@ dnl
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <SDL/SDL.h> #include <SDL.h>
char* char*
my_strdup (char *str) my_strdup (char *str)
@ -274,6 +278,4 @@ main (int argc, char *argv[])
AC_MSG_RESULT(no) AC_MSG_RESULT(no)
ifelse([$3], , :, [$3]) ifelse([$3], , :, [$3])
fi fi
AC_SUBST(SGL_CFLAGS)
AC_SUBST(SGL_LIBS)
]) ])

View file

@ -1,6 +1,6 @@
#!/bin/sh #!/bin/sh
aclocal aclocal
autoheader
automake --add-missing automake --add-missing
autoheader
autoconf autoconf

View file

@ -722,19 +722,6 @@ QF_maGiC_VALUE
) )
fi fi
if test -z "$CDTYPE"; then
AC_EGREP_CPP([QF_maGiC_VALUE],
[
#include <sys/cdio.h>
#if defined (CDIOREADTOCENTRY) || defined (CDIOREADTOCENTRYS)
QF_maGiC_VALUE
#endif
],
AC_MSG_RESULT([yes (BSD)])
CDTYPE=BSD
)
fi
if test -z "$CDTYPE"; then if test -z "$CDTYPE"; then
AC_EGREP_CPP([QF_maGIC_VALUE], AC_EGREP_CPP([QF_maGIC_VALUE],
[ [
@ -752,15 +739,8 @@ test -z "$CDTYPE" && AC_MSG_RESULT([no, using null CD audio driver])
AC_SUBST(CD_LIBS) AC_SUBST(CD_LIBS)
AC_SUBST(CD_CFLAGS) AC_SUBST(CD_CFLAGS)
AM_CONDITIONAL(CDTYPE_LINUX, test "$CDTYPE" = "LINUX") AM_CONDITIONAL(CDTYPE_LINUX, test "$CDTYPE" = "LINUX")
AM_CONDITIONAL(CDTYPE_BSD, test "$CDTYPE" = "BSD")
AM_CONDITIONAL(CDTYPE_WIN32, test "$CDTYPE" = "WIN32") AM_CONDITIONAL(CDTYPE_WIN32, test "$CDTYPE" = "WIN32")
AM_CONDITIONAL(CDTYPE_NULL, test "$CDTYPE" != "LINUX" -a "$CDTYPE" != "BSD" -a "$CDTYPE" != "WIN32") AM_CONDITIONAL(CDTYPE_NULL, test "$CDTYPE" != "LINUX" -a "$CDTYPE" != "WIN32")
if test "$CDTTPE" = BSD; then
AC_HAVE_STRUCT_FIELD(struct ioc_read_toc_single_entry, entry,
[#include <sys/cdio.h>]
)
fi
dnl ================================================================== dnl ==================================================================
dnl Checks for networking dnl Checks for networking