From b58fa077410a510a0c8e4eb348eb9dd8a5e5c6c4 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sun, 13 Jun 2004 19:58:07 +0000 Subject: [PATCH] sdl, linux, unix automake conditionals --- stepmania/configure.ac | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/stepmania/configure.ac b/stepmania/configure.ac index cf8a989ba4..808e7b67c2 100644 --- a/stepmania/configure.ac +++ b/stepmania/configure.ac @@ -67,6 +67,7 @@ if test "$have_sdl" = "no"; then echo "*** make sure that it is installed to continue the build process." exit 1 fi +AM_CONDITIONAL(HAVE_SDL, true) # sdl-config puts -L/usr/lib in the library search path, which reorders things # in a way that breaks some configurations. @@ -207,13 +208,17 @@ case $host in *-linux-*) AC_DEFINE(LINUX, 1, [Linux]) AC_DEFINE(UNIX, 1, [Unix]) + linux=yes + unix=yes ;; *) AC_DEFINE(UNIX, 1, [Unix]) + unix=yes ;; esac - +AM_CONDITIONAL(UNIX, test "$unix" = "yes" ) +AM_CONDITIONAL(LINUX, test "$linux" = "yes" ) AC_ARG_ENABLE(tests, AC_HELP_STRING([--enable-tests], [Build test programs]), enable_tests=$enableval, enable_tests=no) AM_CONDITIONAL(BUILD_TESTS, test "$enable_tests" = "yes" )