1 dnl Process this file with autoconf to produce a configure script.
3 AC_INIT(src/SDL_tbmf.cc)
9 # if any functions have been added, set INTERFACE_AGE to 0.
10 # if backwards compatibility has been broken,
11 # set BINARY_AGE and INTERFACE_AGE to 0.
18 VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION
20 AC_SUBST(MAJOR_VERSION)
21 AC_SUBST(MINOR_VERSION)
22 AC_SUBST(MICRO_VERSION)
23 AC_SUBST(INTERFACE_AGE)
34 LT_RELEASE=$MAJOR_VERSION.$MINOR_VERSION
35 LT_CURRENT=`expr $MICRO_VERSION - $INTERFACE_AGE`
36 LT_REVISION=$INTERFACE_AGE
37 LT_AGE=`expr $BINARY_AGE - $INTERFACE_AGE`
45 AM_INIT_AUTOMAKE(SDL_tbmf, $VERSION)
47 dnl Enable the debug information?
48 AC_MSG_CHECKING([whether debugging is requested])
50 [ --enable-debug enable debugging output to stderr],
51 enable_debug=$enableval, enable_debug=no)
52 AC_MSG_RESULT($enable_debug)
54 dnl Check for programs
65 AM_PATH_SDL($SDL_VERSION,
67 AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!])
69 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
70 LIBS="$LIBS $SDL_LIBS"
72 dnl Check for SDL_ttf library
73 dnl AC_CHECK_LIB(SDL_ttf,
76 dnl AC_MSG_ERROR([*** Unable to find SDL_ttf libary (http://www.libsdl.org/projects/SDL_ttf/)])
79 dnl Set up the Debugging and the Warning level
80 if test x$enable_debug = xyes; then
81 MY_CHECK_BOTH_FLAG(-g)
82 MY_CHECK_BOTH_FLAG(-Wall)
83 MY_CHECK_BOTH_FLAG(-Wshadow)
84 MY_CHECK_BOTH_FLAG(-Wcast-qual)
85 MY_CHECK_BOTH_FLAG(-Wwrite-strings)
86 MY_CHECK_BOTH_FLAG(-Winline)
90 dnl Make sure prefix and exec_prefix are not NONE (for spec file)
91 if test x$prefix = xNONE; then
92 prefix=$ac_default_prefix
94 if test x$exec_prefix = xNONE; then
98 AC_OUTPUT(Makefile src/Makefile SDL_tbmf.spec)