From 8cbf3b2b62960100b30d41ece4a25536c7b3b1b7 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Thu, 7 Jun 2001 06:55:03 +0000 Subject: [PATCH] --disable-sdl --- configure.in | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/configure.in b/configure.in index 49523c1bb..73aa5b407 100644 --- a/configure.in +++ b/configure.in @@ -646,13 +646,19 @@ AC_SUBST(GLX_CFLAGS) AC_SUBST(GLX_LIBS) dnl SDL/SDL-GL checks -AM_PATH_SDL(1.0.1, HAVE_SDL=yes, HAVE_SDL=no) +AC_ARG_ENABLE(sdl, +[ --disable-sdl disable checking for SDL], +) -if test "x$HAVE_SDL" != xno; then - AM_CHECK_SGL(1.1.1, HAVE_SGL=yes, HAVE_SGL=no) +if test "x$enable_sdl" != xno; then + AM_PATH_SDL(1.0.1, HAVE_SDL=yes, HAVE_SDL=no) + + if test "x$HAVE_SDL" != xno; then + AM_CHECK_SGL(1.1.1, HAVE_SGL=yes, HAVE_SGL=no) + fi + AC_SUBST(HAVE_SDL) + AC_SUBST(HAVE_SGL) fi -AC_SUBST(HAVE_SDL) -AC_SUBST(HAVE_SGL) # 3Dfx stuff..