summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2020-04-18 20:29:15 -0700
committerVito Caputo <vcaputo@pengaru.com>2020-04-19 03:27:39 -0700
commitb4911c2abfa513e91c82a712ef277f7e6209b502 (patch)
tree4ee41f6fc432d15147f0bf7e18b032d01efe2231 /configure.ac
*: initial commit
This is largely ripped out of Eon to try give a reusable scaffolding for accelerating SDL-based simple game development. I expect there to be future commits adding more configurability like a means of influencing which flags are passed to SDL_Init(), e.g. if you have no need for joystick support, don't pass in that flag, and libplay won't pass it to SDL_Init() and do the joystick opening/mapping dance, etc.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac26
1 files changed, 26 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
new file mode 100644
index 0000000..22cabbd
--- /dev/null
+++ b/configure.ac
@@ -0,0 +1,26 @@
+AC_INIT([libplay], [1.0], [vcaputo@pengaru.com])
+AM_INIT_AUTOMAKE([-Wall -Werror foreign])
+AC_PROG_CC
+AM_PROG_CC_C_O
+AM_PROG_AR
+AC_PROG_RANLIB
+AM_SILENT_RULES([yes])
+
+CFLAGS="$CFLAGS -Wall"
+
+dnl Check for SDL2
+PKG_CHECK_MODULES(SDL2, sdl2)
+CFLAGS="$CFLAGS $SDL2_CFLAGS"
+LIBS="$LIBS $SDL2_LIBS"
+
+dnl Check for SDL2_mixer
+PKG_CHECK_MODULES(SDL2_MIXER, SDL2_mixer)
+LIBS="$SDL2_MIXER_LIBS $LIBS"
+CFLAGS="$SDL2_MIXER_CFLAGS $CFLAGS"
+
+AC_CONFIG_FILES([
+ Makefile
+ src/Makefile
+])
+
+AC_OUTPUT
© All Rights Reserved