summaryrefslogtreecommitdiffstats
path: root/mufhd0/configure.in
diff options
context:
space:
mode:
Diffstat (limited to 'mufhd0/configure.in')
-rw-r--r--mufhd0/configure.in44
1 files changed, 44 insertions, 0 deletions
diff --git a/mufhd0/configure.in b/mufhd0/configure.in
new file mode 100644
index 0000000..765c54c
--- /dev/null
+++ b/mufhd0/configure.in
@@ -0,0 +1,44 @@
+dnl Process this file with autoconf to produce a configure script.
+AC_INIT(mufhd0.cpp)
+
+AC_CANONICAL_HOST
+
+AC_PROG_MAKE_SET
+
+dnl Setup for automake
+AM_INIT_AUTOMAKE(mufhd0, 1.0)
+
+dnl Get the operating system and version number...
+uname=`uname`
+uversion=`uname -r | sed -e 's/-.*$//g;s/[\.]//g'`
+
+dnl Check for tools
+AC_PROG_CXX
+AC_PROG_RANLIB
+AC_ISC_POSIX
+
+dnl Add the local include path and some flags
+CFLAGS="$CFLAGS -I/usr/X11R6/include -I/usr/local/include -O3 -fomit-frame-pointer -ffast-math -march=${host_cpu} -mcpu=${host_cpu} -finline-functions -malign-double -funroll-loops"
+
+dnl Checks for header files.
+AC_HEADER_STDC
+
+dnl Checks for typedefs, structures, and compiler characteristics.
+AC_C_CONST
+
+dnl Checks for library functions.
+
+dnl Check for SDL
+SDL_VERSION=1.0.1
+AM_PATH_SDL($SDL_VERSION,
+ :,
+ AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!])
+)
+CFLAGS="$CFLAGS $SDL_CFLAGS"
+CXXFLAGS="$CFLAGS"
+LIBS="$LIBS $SDL_LIBS"
+
+AC_OUTPUT([
+water/Makefile
+Makefile
+])