mirror of
https://git.code.sf.net/p/quake/newtree
synced 2024-11-21 19:51:18 +00:00
.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:
parent
c2a1e1f229
commit
cb70ed81f6
4 changed files with 13 additions and 29 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -7,4 +7,6 @@ config.log
|
|||
config.status
|
||||
configure
|
||||
quakeforge.lsm
|
||||
quakeforge-*.tar.bz2
|
||||
quakeforge-*.tar.gz
|
||||
quakeforge-*.zip
|
||||
|
|
16
acinclude.m4
16
acinclude.m4
|
@ -79,7 +79,7 @@ dnl
|
|||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <SDL/SDL.h>
|
||||
#include <SDL.h>
|
||||
|
||||
char*
|
||||
my_strdup (char *str)
|
||||
|
@ -156,7 +156,7 @@ int main (int argc, char *argv[])
|
|||
LIBS="$LIBS $SDL_LIBS"
|
||||
AC_TRY_LINK([
|
||||
#include <stdio.h>
|
||||
#include <SDL/SDL.h>
|
||||
#include <SDL.h>
|
||||
], [ return 0; ],
|
||||
[ 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"
|
||||
|
@ -193,7 +193,7 @@ int main (int argc, char *argv[])
|
|||
# Shamelessly stolen from Owen Taylor
|
||||
|
||||
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
|
||||
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
|
||||
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=""
|
||||
if test "$SDL_CONFIG" = "no" ; then
|
||||
no_sgl=yes
|
||||
|
@ -215,6 +215,10 @@ dnl
|
|||
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
|
||||
sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
|
||||
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 Do nothing more than check if the installed SDL is sufficiently new, since
|
||||
dnl we already did that in the SDL detection
|
||||
|
@ -223,7 +227,7 @@ dnl
|
|||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <SDL/SDL.h>
|
||||
#include <SDL.h>
|
||||
|
||||
char*
|
||||
my_strdup (char *str)
|
||||
|
@ -274,6 +278,4 @@ main (int argc, char *argv[])
|
|||
AC_MSG_RESULT(no)
|
||||
ifelse([$3], , :, [$3])
|
||||
fi
|
||||
AC_SUBST(SGL_CFLAGS)
|
||||
AC_SUBST(SGL_LIBS)
|
||||
])
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#!/bin/sh
|
||||
|
||||
aclocal
|
||||
autoheader
|
||||
automake --add-missing
|
||||
autoheader
|
||||
autoconf
|
||||
|
|
22
configure.in
22
configure.in
|
@ -722,19 +722,6 @@ QF_maGiC_VALUE
|
|||
)
|
||||
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
|
||||
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_CFLAGS)
|
||||
AM_CONDITIONAL(CDTYPE_LINUX, test "$CDTYPE" = "LINUX")
|
||||
AM_CONDITIONAL(CDTYPE_BSD, test "$CDTYPE" = "BSD")
|
||||
AM_CONDITIONAL(CDTYPE_WIN32, test "$CDTYPE" = "WIN32")
|
||||
AM_CONDITIONAL(CDTYPE_NULL, test "$CDTYPE" != "LINUX" -a "$CDTYPE" != "BSD" -a "$CDTYPE" != "WIN32")
|
||||
|
||||
if test "$CDTTPE" = BSD; then
|
||||
AC_HAVE_STRUCT_FIELD(struct ioc_read_toc_single_entry, entry,
|
||||
[#include <sys/cdio.h>]
|
||||
)
|
||||
fi
|
||||
AM_CONDITIONAL(CDTYPE_NULL, test "$CDTYPE" != "LINUX" -a "$CDTYPE" != "WIN32")
|
||||
|
||||
dnl ==================================================================
|
||||
dnl Checks for networking
|
||||
|
|
Loading…
Reference in a new issue