summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJinghua Luo <sunmoon1997@gmail.com>2007-02-04 00:35:00 +0800
committerJinghua Luo <sunmoon1997@gmail.com>2007-02-04 00:35:00 +0800
commite71e18043588689c0a92a747347e1745ae5969ab (patch)
tree6103a70a7e00034cb1bee986fafa4c13535db46e
parentec487ac1221462ffbfb5221006131a3eb71d043e (diff)
tests: build sdl test only if SDL is available.
-rw-r--r--src/Makefile.am6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index 2387996..f946d3d 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -49,7 +49,11 @@ libsdl_freetype_opengl_la_SOURCES = \
libsdl_freetype_opengl_la_LIBADD = $(FONTCONFIG_LIBS) libsdl-freetype.la
libsdl_freetype_opengl_la_LDFLAGS = -version-info @VERSION_INFO@ -no-undefined
-noinst_PROGRAMS = hash-test cache-test font-test sdl-test
+if HAVE_SDL
+sdl_test=sdl-test
+endif
+
+noinst_PROGRAMS = hash-test cache-test font-test $(sdl_test)
hash_test_SOURCES = hash-test.c
hash_test_LDADD = libsdl-freetype.la