mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-30 08:00:51 +00:00
Misc. configure cleanups. I'll check for QSG stuff myself.
This commit is contained in:
parent
a3ec4ac781
commit
eeabafe9f7
2 changed files with 56 additions and 57 deletions
23
acconfig.h
23
acconfig.h
|
@ -7,14 +7,17 @@
|
||||||
/* "Proper" package name */
|
/* "Proper" package name */
|
||||||
#undef PROGRAM
|
#undef PROGRAM
|
||||||
|
|
||||||
/* Define this to the QuakeWorld standard version you support */
|
|
||||||
#undef QW_VERSION
|
|
||||||
|
|
||||||
/* Define this to the NetQuake standard version you support */
|
/* Define this to the NetQuake standard version you support */
|
||||||
#undef NQ_VERSION
|
#undef NQ_VERSION
|
||||||
|
|
||||||
/* Define this to the QSG standard version you support */
|
/* Define this to the QSG standard version you support in NetQuake */
|
||||||
#undef QSG_VERSION
|
#undef NQ_QSG_VERSION
|
||||||
|
|
||||||
|
/* Define this to the QuakeWorld standard version you support */
|
||||||
|
#undef QW_VERSION
|
||||||
|
|
||||||
|
/* Define this to the QSG standard version you support in QuakeWorld */
|
||||||
|
#undef QW_QSG_VERSION
|
||||||
|
|
||||||
/* Define this to the location of the global config file */
|
/* Define this to the location of the global config file */
|
||||||
#undef FS_GLOBALCFG
|
#undef FS_GLOBALCFG
|
||||||
|
@ -85,14 +88,11 @@
|
||||||
/* Define if you have pthread support. */
|
/* Define if you have pthread support. */
|
||||||
#undef HAVE_LIBPTHREAD
|
#undef HAVE_LIBPTHREAD
|
||||||
|
|
||||||
/* Define this to something sane if you don't have stricmp */
|
|
||||||
#undef stricmp
|
|
||||||
|
|
||||||
/* If your version of OpenGL uses APIENTRY, define GLAPIENTRY to be APIENTRY */
|
/* If your version of OpenGL uses APIENTRY, define GLAPIENTRY to be APIENTRY */
|
||||||
#undef GLAPIENTRY
|
#undef GLAPIENTRY
|
||||||
|
|
||||||
/* Define this to something sane if you don't have stricmp */
|
/* Define this if you have fnmatch.h */
|
||||||
#undef stricmp
|
#undef HAVE_FNMATCH_H
|
||||||
|
|
||||||
/* Define this if fnmatch is prototyped in fnmatch.h */
|
/* Define this if fnmatch is prototyped in fnmatch.h */
|
||||||
#undef HAVE_FNMATCH_PROTO
|
#undef HAVE_FNMATCH_PROTO
|
||||||
|
@ -103,9 +103,6 @@
|
||||||
/* Define this if you want to have packet logging */
|
/* Define this if you want to have packet logging */
|
||||||
#undef PACKET_LOGGING
|
#undef PACKET_LOGGING
|
||||||
|
|
||||||
/* Define this if you have fnmatch.h */
|
|
||||||
#undef HAVE_FNMATCH_H
|
|
||||||
|
|
||||||
/* Define this if you have FB_AUX_VGA_PLANES_VGA4 */
|
/* Define this if you have FB_AUX_VGA_PLANES_VGA4 */
|
||||||
#undef HAVE_FB_AUX_VGA_PLANES_VGA4
|
#undef HAVE_FB_AUX_VGA_PLANES_VGA4
|
||||||
|
|
||||||
|
|
76
configure.in
76
configure.in
|
@ -23,15 +23,17 @@ QW_QSG_VERSION=2.0
|
||||||
|
|
||||||
AC_DEFINE_UNQUOTED(PROGRAM, "$PROGRAM")
|
AC_DEFINE_UNQUOTED(PROGRAM, "$PROGRAM")
|
||||||
AC_DEFINE_UNQUOTED(NQ_VERSION, "$NQ_VERSION")
|
AC_DEFINE_UNQUOTED(NQ_VERSION, "$NQ_VERSION")
|
||||||
|
AC_DEFINE_UNQUOTED(NQ_QSG_VERSION, "$NQ_QSG_VERSION")
|
||||||
AC_DEFINE_UNQUOTED(QW_VERSION, "$QW_VERSION")
|
AC_DEFINE_UNQUOTED(QW_VERSION, "$QW_VERSION")
|
||||||
AC_DEFINE_UNQUOTED(QSG_VERSION, "$QSG_VERSION")
|
AC_DEFINE_UNQUOTED(QW_QSG_VERSION, "$QW_QSG_VERSION")
|
||||||
|
|
||||||
AC_SUBST(PROGRAM)
|
AC_SUBST(PROGRAM)
|
||||||
AC_SUBST(NQ_VERSION)
|
AC_SUBST(NQ_VERSION)
|
||||||
|
AC_SUBST(NQ_QSG_VERSION)
|
||||||
AC_SUBST(QW_VERSION)
|
AC_SUBST(QW_VERSION)
|
||||||
AC_SUBST(QSG_VERSION)
|
AC_SUBST(QW_QSG_VERSION)
|
||||||
|
|
||||||
ISODATE=`date +%Y-%m-%d`
|
ISODATE=$(date +%Y-%m-%d)
|
||||||
AC_SUBST(ISODATE)
|
AC_SUBST(ISODATE)
|
||||||
|
|
||||||
AC_LANG_C
|
AC_LANG_C
|
||||||
|
@ -69,8 +71,8 @@ if test "$1" = gcc; then
|
||||||
shift
|
shift
|
||||||
args="$*"
|
args="$*"
|
||||||
AC_MSG_CHECKING(for fubared gcc)
|
AC_MSG_CHECKING(for fubared gcc)
|
||||||
if test `gcc --version` = 2.96; then
|
if test $(gcc --version) = 2.96; then
|
||||||
AC_MSG_RESULT(yes. you poor sod. Hope you have egcs)
|
AC_MSG_RESULT(yes. You poor sod, hope you have egcs)
|
||||||
CC="egcs $args"
|
CC="egcs $args"
|
||||||
set $CPP
|
set $CPP
|
||||||
shift
|
shift
|
||||||
|
@ -88,7 +90,6 @@ AC_SYS_LONG_FILE_NAMES
|
||||||
AC_EXEEXT
|
AC_EXEEXT
|
||||||
AC_OBJEXT
|
AC_OBJEXT
|
||||||
|
|
||||||
|
|
||||||
dnl ==================================================================
|
dnl ==================================================================
|
||||||
dnl Checks for header files.
|
dnl Checks for header files.
|
||||||
dnl ==================================================================
|
dnl ==================================================================
|
||||||
|
@ -149,7 +150,7 @@ if test "x$cross_compiling" = xyes; then
|
||||||
exit 1
|
exit 1
|
||||||
;;
|
;;
|
||||||
x*)
|
x*)
|
||||||
AC_MSG_RESULT(unregognized endianess)
|
AC_MSG_RESULT(unrecognized endianness)
|
||||||
exit 1
|
exit 1
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
@ -157,7 +158,7 @@ else
|
||||||
AC_C_BIGENDIAN
|
AC_C_BIGENDIAN
|
||||||
fi
|
fi
|
||||||
|
|
||||||
AC_MSG_CHECKING(that fnmatch is in fnmatch.h)
|
AC_MSG_CHECKING(for fnmatch in fnmatch.h)
|
||||||
AC_TRY_COMPILE(
|
AC_TRY_COMPILE(
|
||||||
[#include "fnmatch.h"],
|
[#include "fnmatch.h"],
|
||||||
[int (*foo)() = fnmatch;],
|
[int (*foo)() = fnmatch;],
|
||||||
|
@ -311,7 +312,7 @@ fi
|
||||||
|
|
||||||
|
|
||||||
AC_ARG_WITH(ipv6,
|
AC_ARG_WITH(ipv6,
|
||||||
[ --with-ipv6 enable IPv6 support. Optional argument specifies
|
[ --with-ipv6[=DIR] enable IPv6 support. Optional argument specifies
|
||||||
location of inet6 libraries.],
|
location of inet6 libraries.],
|
||||||
if test "x$withval" = xno ; then
|
if test "x$withval" = xno ; then
|
||||||
NETTYPE_IPV6=no
|
NETTYPE_IPV6=no
|
||||||
|
@ -322,7 +323,7 @@ AC_ARG_WITH(ipv6,
|
||||||
LIBS="$LIBS -L${withval}"
|
LIBS="$LIBS -L${withval}"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
,
|
,
|
||||||
NETTYPE_IPV6=no
|
NETTYPE_IPV6=no
|
||||||
)
|
)
|
||||||
AM_CONDITIONAL(NETTYPE_IPV6, test "x$NETTYPE_IPV6" = "xyes")
|
AM_CONDITIONAL(NETTYPE_IPV6, test "x$NETTYPE_IPV6" = "xyes")
|
||||||
|
@ -408,6 +409,7 @@ if test "x$HAVE_FBDEV" != xno; then
|
||||||
dnl there is no fbdev support in the running kernel
|
dnl there is no fbdev support in the running kernel
|
||||||
AC_CHECK_HEADERS(linux/fb.h fbset.h, HAVE_FBDEV=yes, HAVE_FBDEV=no)
|
AC_CHECK_HEADERS(linux/fb.h fbset.h, HAVE_FBDEV=yes, HAVE_FBDEV=no)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
AC_SUBST(HAVE_FBDEV)
|
AC_SUBST(HAVE_FBDEV)
|
||||||
if test "x$HAVE_FBDEV" = xyes; then
|
if test "x$HAVE_FBDEV" = xyes; then
|
||||||
AC_MSG_CHECKING(for FB_AUX_VGA_PLANES_VGA4)
|
AC_MSG_CHECKING(for FB_AUX_VGA_PLANES_VGA4)
|
||||||
|
@ -481,7 +483,7 @@ AC_SUBST(X_SHM_LIB)
|
||||||
dnl Check for XFree86-VidMode support
|
dnl Check for XFree86-VidMode support
|
||||||
AC_ARG_ENABLE(vidmode,
|
AC_ARG_ENABLE(vidmode,
|
||||||
[ --enable-vidmode use XFree86 VidMode extension, if available],
|
[ --enable-vidmode use XFree86 VidMode extension, if available],
|
||||||
HAVE_VIDMODE=$enable_vidmode, HAVE_VIDMODE=auto)
|
HAVE_VIDMODE=$enable_vidmode, HAVE_VIDMODE=auto)
|
||||||
if test "x$HAVE_VIDMODE" != xno; then
|
if test "x$HAVE_VIDMODE" != xno; then
|
||||||
save_CPPFLAGS="$CPPFLAGS"
|
save_CPPFLAGS="$CPPFLAGS"
|
||||||
CPPFLAGS="$X_CFLAGS $CPPFLAGS"
|
CPPFLAGS="$X_CFLAGS $CPPFLAGS"
|
||||||
|
@ -519,9 +521,9 @@ AC_SUBST(DGA_LIBS)
|
||||||
dnl Checks for GLIDE support
|
dnl Checks for GLIDE support
|
||||||
AC_ARG_WITH(glide,
|
AC_ARG_WITH(glide,
|
||||||
[ --with-glide=DIR use the GLIDE 2.x SDK found in DIR],
|
[ --with-glide=DIR use the GLIDE 2.x SDK found in DIR],
|
||||||
HAS_GLIDE=$withval, HAS_GLIDE=auto)
|
HAVE_GLIDE=$withval, HAVE_GLIDE=auto)
|
||||||
if test "x$HAS_GLIDE" != xno; then
|
if test "x$HAVE_GLIDE" != xno; then
|
||||||
if test "x$HAS_GLIDE" != xauto; then
|
if test "x$HAVE_GLIDE" != xauto; then
|
||||||
GLIDE_CFLAGS="$GLIDE_CFLAGS -I$withval/include"
|
GLIDE_CFLAGS="$GLIDE_CFLAGS -I$withval/include"
|
||||||
GLIDE_LIBS="$GLIDE_LIBS -L$withval/lib"
|
GLIDE_LIBS="$GLIDE_LIBS -L$withval/lib"
|
||||||
else
|
else
|
||||||
|
@ -529,9 +531,9 @@ if test "x$HAS_GLIDE" != xno; then
|
||||||
fi
|
fi
|
||||||
save_CPPFLAGS="$CPPFLAGS"
|
save_CPPFLAGS="$CPPFLAGS"
|
||||||
CPPFLAGS="$CPPFLAGS $GLIDE_CFLAGS"
|
CPPFLAGS="$CPPFLAGS $GLIDE_CFLAGS"
|
||||||
AC_CHECK_HEADER(glide.h, HAS_GLIDE=yes, HAS_GLIDE=no)
|
AC_CHECK_HEADER(glide.h, HAVE_GLIDE=yes, HAVE_GLIDE=no)
|
||||||
if test "x$HAS_GLIDE" != xyes; then
|
if test "x$HAVE_GLIDE" != xyes; then
|
||||||
HAS_GLIDE=no
|
HAVE_GLIDE=no
|
||||||
else
|
else
|
||||||
AC_DEFINE(HAVE_GLIDE)
|
AC_DEFINE(HAVE_GLIDE)
|
||||||
fi
|
fi
|
||||||
|
@ -655,24 +657,22 @@ AC_SUBST(HAVE_SGL)
|
||||||
|
|
||||||
TDFXGL_NAME=""
|
TDFXGL_NAME=""
|
||||||
AC_ARG_WITH(3dfx,
|
AC_ARG_WITH(3dfx,
|
||||||
[ --with-3dfx support 3Dfx output for the V1/V2, if an argument
|
[ --with-3dfx[=NAME] support 3Dfx output for the V1/V2. If NAME is
|
||||||
is specified it will be used as the GL wrapper lib
|
specified, it will be used as the GL wrapper lib
|
||||||
for glide.],
|
for Glide.]
|
||||||
|
HAVE_3dfx=$withval, HAVE_3dfx=auto)
|
||||||
|
|
||||||
HAS_3dfx=$withval, HAS_3dfx=auto)
|
if test "x$HAVE_3dfx" != "xno" -a "x$HAVE_SVGA" != "xno" \
|
||||||
if test "x$HAS_3dfx" != "xno" -a "x$HAS_SVGA" != "xno" \
|
-a "x$HAVE_GLIDE" != "xno"; then
|
||||||
-a "x$HAS_GLIDE" != "xno"; then
|
if test "x$HAVE_3dfx" != "xauto" -a "x$HAVE_3dfx" != "xyes"; then
|
||||||
if test "x$HAS_3dfx" != "xauto" -a "x$HAS_3dfx" != "xyes"; then
|
TDFX_NAME="$HAVE_3dfx"
|
||||||
TDFXGL_NAME="$HAS_3dfx"
|
|
||||||
fi
|
fi
|
||||||
if test -z "$TDFXGL_NAME"; then
|
if test -z "$TDFX_NAME"; then
|
||||||
dnl Check in reverse order of preference
|
AC_CHECK_LIB($OGL_NAME, fxMesaCreateContext, TDFXGL_NAME=$OGL_NAME,,
|
||||||
for a in 3dfxgl $OGL_NAME; do
|
|
||||||
AC_CHECK_LIB($a, fxMesaCreateContext, TDFXGL_NAME=$a, qwfoo=qwfoo,
|
|
||||||
[$GLIDE_LIBS $TDFXGL_LIBS])
|
[$GLIDE_LIBS $TDFXGL_LIBS])
|
||||||
done
|
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
AC_MSG_CHECKING(for 3Dfx support)
|
AC_MSG_CHECKING(for 3Dfx support)
|
||||||
if test -n "$TDFXGL_NAME"; then
|
if test -n "$TDFXGL_NAME"; then
|
||||||
TDFXGL_CFLAGS="$GLIDE_CFLAGS"
|
TDFXGL_CFLAGS="$GLIDE_CFLAGS"
|
||||||
|
@ -728,10 +728,10 @@ dnl ==================================================================
|
||||||
dnl Checks for sound
|
dnl Checks for sound
|
||||||
dnl ==================================================================
|
dnl ==================================================================
|
||||||
|
|
||||||
AC_CHECK_LIB(mme,waveOutOpen,HAVE_LIBMME=yes)
|
AC_CHECK_LIB(mme, waveOutOpen, HAVE_LIBMME=yes)
|
||||||
|
|
||||||
AC_ARG_ENABLE(alsa,
|
AC_ARG_ENABLE(alsa,
|
||||||
[ --disable-alsa disable alsa support],
|
[ --enable-alsa enable checks for ALSA support],
|
||||||
)
|
)
|
||||||
|
|
||||||
SNDTYPE=""
|
SNDTYPE=""
|
||||||
|
@ -748,7 +748,7 @@ AC_ARG_ENABLE(sdl-audio,
|
||||||
fi
|
fi
|
||||||
)
|
)
|
||||||
|
|
||||||
if test "x$enable_alsa" != "xno"; then
|
if test "x$enable_alsa" = "xyes"; then
|
||||||
if test -z "$SNDTYPE" -a "x$ac_cv_header_sys_asoundlib_h" = "xyes"; then
|
if test -z "$SNDTYPE" -a "x$ac_cv_header_sys_asoundlib_h" = "xyes"; then
|
||||||
AC_EGREP_CPP([QF_maGiC_VALUE],
|
AC_EGREP_CPP([QF_maGiC_VALUE],
|
||||||
[
|
[
|
||||||
|
@ -1038,8 +1038,8 @@ test "x$prefix" = xNONE && prefix=$ac_default_prefix
|
||||||
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
|
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
|
||||||
|
|
||||||
if test "x$SYSTYPE" = xWIN32; then
|
if test "x$SYSTYPE" = xWIN32; then
|
||||||
default_globalconf="%WINDIR%/${PACKAGE}.conf"
|
default_globalconf="~/${PACKAGE}.conf"
|
||||||
default_userconf="~/${PACKAGE}.rc"
|
default_userconf="~/${PACKAGE}rc"
|
||||||
default_sharepath="."
|
default_sharepath="."
|
||||||
default_userpath="."
|
default_userpath="."
|
||||||
else
|
else
|
||||||
|
@ -1119,11 +1119,13 @@ AC_ARG_ENABLE(optimize,
|
||||||
optimize=$disable_optimize,
|
optimize=$disable_optimize,
|
||||||
optimize=yes
|
optimize=yes
|
||||||
)
|
)
|
||||||
|
|
||||||
AC_ARG_WITH(amd,
|
AC_ARG_WITH(amd,
|
||||||
[ --with-amd Optimize for AMD processors instead of Intel],
|
[ --with-amd Optimize for AMD processors instead of Intel],
|
||||||
HAVE_AMD="yes",
|
HAVE_AMD="yes",
|
||||||
HAVE_AMD="no"
|
HAVE_AMD="no"
|
||||||
)
|
)
|
||||||
|
|
||||||
AC_MSG_CHECKING(for optimization)
|
AC_MSG_CHECKING(for optimization)
|
||||||
if test "x$optimize" = xyes; then
|
if test "x$optimize" = xyes; then
|
||||||
AC_MSG_RESULT(yes)
|
AC_MSG_RESULT(yes)
|
||||||
|
@ -1175,7 +1177,7 @@ AC_ARG_ENABLE(profile,
|
||||||
if test "x$profile" = xyes; then
|
if test "x$profile" = xyes; then
|
||||||
BUILD_TYPE="$BUILD_TYPE Profile"
|
BUILD_TYPE="$BUILD_TYPE Profile"
|
||||||
if test "x$GCC" = xyes; then
|
if test "x$GCC" = xyes; then
|
||||||
CFLAGS="`echo $CFLAGS | sed -e 's/-fomit-frame-pointer//g'` -pg"
|
CFLAGS="$(echo $CFLAGS | sed -e 's/-fomit-frame-pointer//g') -pg"
|
||||||
LDFLAGS="$LDFLAGS -pg"
|
LDFLAGS="$LDFLAGS -pg"
|
||||||
else
|
else
|
||||||
CFLAGS="$CFLAGS -p"
|
CFLAGS="$CFLAGS -p"
|
||||||
|
@ -1247,7 +1249,7 @@ dnl ==================================================================
|
||||||
|
|
||||||
AC_MSG_CHECKING(for libz.a in X11)
|
AC_MSG_CHECKING(for libz.a in X11)
|
||||||
need_abs_libz=no
|
need_abs_libz=no
|
||||||
for d in `echo $X_LIBS | sed -e 's/-L//'`; do
|
for d in $(echo $X_LIBS | sed -e 's/-L//'); do
|
||||||
if test -f $d/libz.a; then
|
if test -f $d/libz.a; then
|
||||||
need_abs_libz=yes
|
need_abs_libz=yes
|
||||||
break
|
break
|
||||||
|
|
Loading…
Reference in a new issue