blob: f7f6dfd7f14c392415d14c6c4e3e8e4d5655783d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
--- a/configure.ac
+++ b/configure.ac
@@ -236,6 +236,7 @@
AC_PROG_CC
AC_PROG_LN_S
AC_CHECK_PROG(AR, ar, ar)
+PKG_PROG_PKG_CONFIG
AC_SUBST(AR)
AC_SUBST(AR_FLAGS)
@@ -716,6 +717,8 @@
fi
if test "x$with_SDL" = "x2"; then
AC_DEFINE(HAVE_SDL2, 1, [Using SDL2])
+ PKG_CHECK_MODULES(sdl2, sdl2,
+ [CONF_CPPFLAGS="$CONF_CPPFLAGS $sdl2_CFLAGS"],[])
fi
AM_CONDITIONAL(HAVE_SDL, test x$with_SDL = x1 -o x$with_SDL = x2)
|