| 1 |
dnl Process this file with autoconf to produce a configure script. |
| 2 |
|
| 3 |
dnl Version of this release |
| 4 |
VERSION=0.1 |
| 5 |
|
| 6 |
AC_INIT(mngplay.c) |
| 7 |
AM_INIT_AUTOMAKE(mngplay, $VERSION) |
| 8 |
|
| 9 |
dnl AC_CANONICAL_SYSTEM |
| 10 |
AC_LANG_C |
| 11 |
|
| 12 |
dnl Checks for programs. |
| 13 |
AC_PROG_CC |
| 14 |
|
| 15 |
dnl Checks for header files. |
| 16 |
AC_HEADER_STDC |
| 17 |
|
| 18 |
dnl check for Simple Direct Media Layer |
| 19 |
AC_CHECK_PROG(HAS_SDL, sdl-config, yes) |
| 20 |
if test "x$HAS_SDL" != "xyes"; then |
| 21 |
AC_MSG_ERROR([ SDL library not found! |
| 22 |
You need this for any display to happen. (rather the point) |
| 23 |
You can get a copy at <http://libsdl.org/>]) |
| 24 |
fi |
| 25 |
CFLAGS="$CFLAGS `sdl-config --cflags`" |
| 26 |
|
| 27 |
mngplay_LDADD="`sdl-config --libs`" |
| 28 |
mngplay_static_LDADD="`sdl-config --static-libs`" |
| 29 |
AC_SUBST(mngplay_LDADD) |
| 30 |
AC_SUBST(mngplay_static_LDADD) |
| 31 |
|
| 32 |
dnl check for libmng - macro in acinclude.m4 |
| 33 |
LIBMNG_CHECK() |
| 34 |
|
| 35 |
AC_OUTPUT(Makefile) |