mirror of
https://git.code.sf.net/p/quake/quakeforge-old
synced 2025-02-27 05:41:16 +00:00
Don't clear *_LIBS and *_CFLAGS. Now users can add extra flags on the commandline when running configure.
This commit is contained in:
parent
52989e1110
commit
40297513b6
1 changed files with 14 additions and 28 deletions
42
configure.in
42
configure.in
|
@ -93,8 +93,6 @@ if test "x$HAS_DGA" != xno; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
dnl Checks for VGA support
|
dnl Checks for VGA support
|
||||||
VGA_CFLAGS=""
|
|
||||||
VGA_LIBS=""
|
|
||||||
case "${target}" in
|
case "${target}" in
|
||||||
i?86-*-*djgpp* | i?86-*-*msdos*)
|
i?86-*-*djgpp* | i?86-*-*msdos*)
|
||||||
HAS_VGA=yes
|
HAS_VGA=yes
|
||||||
|
@ -105,8 +103,6 @@ case "${target}" in
|
||||||
esac
|
esac
|
||||||
|
|
||||||
dnl Checks for MGL support
|
dnl Checks for MGL support
|
||||||
MGL_CFLAGS=""
|
|
||||||
MGL_LIBS=""
|
|
||||||
AC_ARG_WITH(mgl,
|
AC_ARG_WITH(mgl,
|
||||||
[ --with-mgl=DIR use MGL found in DIR],
|
[ --with-mgl=DIR use MGL found in DIR],
|
||||||
HAS_MGL=$withval, HAS_MGL=auto)
|
HAS_MGL=$withval, HAS_MGL=auto)
|
||||||
|
@ -115,8 +111,8 @@ if test "x$HAS_MGL" != xno; then
|
||||||
HAS_MGL=no
|
HAS_MGL=no
|
||||||
else
|
else
|
||||||
if test "x$HAS_MGL" != xauto; then
|
if test "x$HAS_MGL" != xauto; then
|
||||||
MGL_CFLAGS="-I$withval/include"
|
MGL_CFLAGS="$MGL_CFLAGS -I$withval/include"
|
||||||
MGL_LIBS="-L$withval/lib"
|
MGL_LIBS="$MGL_LIBS -L$withval/lib"
|
||||||
fi
|
fi
|
||||||
save_CPPFLAGS="$CPPFLAGS"
|
save_CPPFLAGS="$CPPFLAGS"
|
||||||
CPPFLAGS="$CPPFLAGS $MGL_CFLAGS"
|
CPPFLAGS="$CPPFLAGS $MGL_CFLAGS"
|
||||||
|
@ -126,15 +122,13 @@ if test "x$HAS_MGL" != xno; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
dnl Checks for GGI support
|
dnl Checks for GGI support
|
||||||
GGI_CFLAGS=""
|
|
||||||
GGI_LIBS=""
|
|
||||||
AC_ARG_WITH(ggi,
|
AC_ARG_WITH(ggi,
|
||||||
[ --with-ggi=DIR use LibGGI found in DIR],
|
[ --with-ggi=DIR use LibGGI found in DIR],
|
||||||
HAS_GGI=$withval, HAS_GGI=auto)
|
HAS_GGI=$withval, HAS_GGI=auto)
|
||||||
if test "x$HAS_GGI" != xno; then
|
if test "x$HAS_GGI" != xno; then
|
||||||
if test "x$HAS_GGI" != xauto; then
|
if test "x$HAS_GGI" != xauto; then
|
||||||
GGI_CFLAGS="-I$withval/include"
|
GGI_CFLAGS="$GGI_CFLAGS -I$withval/include"
|
||||||
GGI_LIBS="-L$withval/lib"
|
GGI_LIBS="$GGI_LIBS -L$withval/lib"
|
||||||
fi
|
fi
|
||||||
save_CPPFLAGS="$CPPFLAGS"
|
save_CPPFLAGS="$CPPFLAGS"
|
||||||
CPPFLAGS="$CPPFLAGS $GGI_CFLAGS"
|
CPPFLAGS="$CPPFLAGS $GGI_CFLAGS"
|
||||||
|
@ -143,15 +137,13 @@ if test "x$HAS_GGI" != xno; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
dnl Checks for SVGALib support
|
dnl Checks for SVGALib support
|
||||||
SVGA_CFLAGS=""
|
|
||||||
SVGA_LIBS=""
|
|
||||||
AC_ARG_WITH(svga,
|
AC_ARG_WITH(svga,
|
||||||
[ --with-svga=DIR use SVGALib found in DIR],
|
[ --with-svga=DIR use SVGALib found in DIR],
|
||||||
HAS_SVGA=$withval, HAS_SVGA=auto)
|
HAS_SVGA=$withval, HAS_SVGA=auto)
|
||||||
if test "x$HAS_SVGA" != xno; then
|
if test "x$HAS_SVGA" != xno; then
|
||||||
if test "x$HAS_SVGA" != xauto; then
|
if test "x$HAS_SVGA" != xauto; then
|
||||||
SVGA_CFLAGS="-I$withval/include"
|
SVGA_CFLAGS="$SVGA_CFLAGS= -I$withval/include"
|
||||||
SVGA_LIBS="-L$withval/lib"
|
SVGA_LIBS="$SVGA_LIBS -L$withval/lib"
|
||||||
dnl The default system location is /usr/include or /usr/local/include
|
dnl The default system location is /usr/include or /usr/local/include
|
||||||
dnl and we (obviously) don't need to set CFLAGS for that
|
dnl and we (obviously) don't need to set CFLAGS for that
|
||||||
fi
|
fi
|
||||||
|
@ -165,15 +157,13 @@ if test "x$HAS_SVGA" != xno; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
dnl Checks for SDL support
|
dnl Checks for SDL support
|
||||||
SDL_CFLAGS=""
|
|
||||||
SDL_LIBS=""
|
|
||||||
AC_ARG_WITH(sdl,
|
AC_ARG_WITH(sdl,
|
||||||
[ --with-sdl=DIR use SDL found in DIR],
|
[ --with-sdl=DIR use SDL found in DIR],
|
||||||
HAS_SDL=$withval, HAS_SDL=auto)
|
HAS_SDL=$withval, HAS_SDL=auto)
|
||||||
if test "x$HAS_SDL" != xno; then
|
if test "x$HAS_SDL" != xno; then
|
||||||
if test "x$HAS_SDL" != xauto; then
|
if test "x$HAS_SDL" != xauto; then
|
||||||
SDL_CFLAGS="-I$withval/include"
|
SDL_CFLAGS="$SDL_CFLAGS -I$withval/include"
|
||||||
SDL_LIB="-L$withbal/lib"
|
SDL_LIB="$SDL_LIBS -L$withbal/lib"
|
||||||
fi
|
fi
|
||||||
save_CPPFLAGS="$CPPFLAGS"
|
save_CPPFLAGS="$CPPFLAGS"
|
||||||
CPPFLAGS="$CPPFLAGS $SDL_CFLAGS"
|
CPPFLAGS="$CPPFLAGS $SDL_CFLAGS"
|
||||||
|
@ -183,17 +173,15 @@ fi
|
||||||
|
|
||||||
|
|
||||||
dnl Checks for GLIDE support
|
dnl Checks for GLIDE support
|
||||||
GLIDE_CFLAGS=""
|
|
||||||
GLIDE_LIBS=""
|
|
||||||
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)
|
HAS_GLIDE=$withval, HAS_GLIDE=auto)
|
||||||
if test "x$HAS_GLIDE" != xno; then
|
if test "x$HAS_GLIDE" != xno; then
|
||||||
if test "x$HAS_GLIDE" != xauto; then
|
if test "x$HAS_GLIDE" != xauto; then
|
||||||
GLIDE_CFLAGS="-I$withval/include"
|
GLIDE_CFLAGS="$GLIDE_CFLAGS -I$withval/include"
|
||||||
GLIDE_LIBS="-L$withval/lib"
|
GLIDE_LIBS="$GLIDE_LIBS -L$withval/lib"
|
||||||
else
|
else
|
||||||
GLIDE_CFLAGS="-I/usr/include/glide -I/usr/local/include/glide"
|
GLIDE_CFLAGS="$GLIDE_CFLAGS -I/usr/include/glide -I/usr/local/include/glide"
|
||||||
fi
|
fi
|
||||||
save_CPPFLAGS="$CPPFLAGS"
|
save_CPPFLAGS="$CPPFLAGS"
|
||||||
CPPFLAGS="$CPPFLAGS $GLIDE_CFLAGS"
|
CPPFLAGS="$CPPFLAGS $GLIDE_CFLAGS"
|
||||||
|
@ -205,8 +193,6 @@ if test "x$HAS_GLIDE" != xno; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
dnl Checks for OGL support
|
dnl Checks for OGL support
|
||||||
OGL_CFLAGS=""
|
|
||||||
OGL_LIBS=""
|
|
||||||
dnl GL is a special case, we need seperate includes/libs entires
|
dnl GL is a special case, we need seperate includes/libs entires
|
||||||
AC_ARG_WITH(opengl,
|
AC_ARG_WITH(opengl,
|
||||||
[ --with-opengl=DIR use OpenGL with libraries found in DIR],
|
[ --with-opengl=DIR use OpenGL with libraries found in DIR],
|
||||||
|
@ -220,12 +206,12 @@ if test "x$OGL_INCLUDES" = xno; then
|
||||||
fi
|
fi
|
||||||
if test "x$HAS_OGL" != xno; then
|
if test "x$HAS_OGL" != xno; then
|
||||||
if test "x$HAS_OGL" != xauto; then
|
if test "x$HAS_OGL" != xauto; then
|
||||||
OGL_LIBS="-L$HAS_OGL"
|
OGL_LIBS="$OGL_LIBS -L$HAS_OGL"
|
||||||
fi
|
fi
|
||||||
if test "x$OGL_INCLUDES" != xauto; then
|
if test "x$OGL_INCLUDES" != xauto; then
|
||||||
OGL_CFLAGS="-I$OGL_INCLUDES"
|
OGL_CFLAGS="$OGL_CFLAGS -I$OGL_INCLUDES"
|
||||||
else
|
else
|
||||||
OGL_CFLAGS="-I/usr/local/include -I${x_includes:-.}"
|
OGL_CFLAGS="$OGL_CFLAGS -I/usr/local/include -I${x_includes:-.}"
|
||||||
fi
|
fi
|
||||||
save_CPPFLAGS="$CPPFLAGS"
|
save_CPPFLAGS="$CPPFLAGS"
|
||||||
CPPFLAGS="$CPPFLAGS $OGL_CFLAGS"
|
CPPFLAGS="$CPPFLAGS $OGL_CFLAGS"
|
||||||
|
|
Loading…
Reference in a new issue