1dnl Process this file with autoconf to produce a configure script. 2 3dnl Version of this release 4VERSION=0.1 5 6AC_INIT(mngplay.c) 7AM_INIT_AUTOMAKE(mngplay, $VERSION) 8 9dnl AC_CANONICAL_SYSTEM 10AC_LANG_C 11 12dnl Checks for programs. 13AC_PROG_CC 14 15dnl Checks for header files. 16AC_HEADER_STDC 17 18dnl check for Simple Direct Media Layer 19AC_CHECK_PROG(HAS_SDL, sdl-config, yes) 20if 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/>]) 24fi 25CFLAGS="$CFLAGS `sdl-config --cflags`" 26 27mngplay_LDADD="`sdl-config --libs`" 28mngplay_static_LDADD="`sdl-config --static-libs`" 29AC_SUBST(mngplay_LDADD) 30AC_SUBST(mngplay_static_LDADD) 31 32dnl check for libmng - macro in acinclude.m4 33LIBMNG_CHECK() 34 35AC_OUTPUT(Makefile) 36