Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in55
1 files changed, 52 insertions, 3 deletions
diff --git a/configure.in b/configure.in
index 0b42aa7..1628c75 100644
--- a/configure.in
+++ b/configure.in
@@ -1,7 +1,16 @@
AC_INIT(configure.in)
+dnl ----------------------------------------------------------------
+dnl append SVN revision to the version number
+OSIRIONVERSION='0.0.1'
+SVNREVISION=`svnversion $srcdir`
+
+if test ! -z "$SVNREVISION"; then
+ OSIRIONVERSION="${OSIRIONVERSION}_${SVNREVISION}"
+fi
+
AM_CONFIG_HEADER(src/config.h)
-AM_INIT_AUTOMAKE(osirion, 0.1)
+AM_INIT_AUTOMAKE(osirion, $OSIRIONVERSION)
AC_LANG_CPLUSPLUS
AC_PROG_CXX
@@ -62,6 +71,9 @@ AC_DEFUN([KDE_FIND_PATH],
fi
])
+dnl ----------------------------------------------------------------
+dnl HOST dependend variables
+dnl
AC_MSG_CHECKING([host type])
case "$host" in
*-*-mingw*)
@@ -85,6 +97,9 @@ AC_SUBST(HOST_LIBS)
AC_SUBST(ICON_CLIENT)
AC_SUBST(ICON_SERVER)
+dnl ----------------------------------------------------------------
+dnl enable compiler warnings or not
+dnl
AC_MSG_CHECKING(whether to abort on compiler warnings)
WARN_CFLAGS=""
AC_ARG_ENABLE(warn,
@@ -97,7 +112,9 @@ AC_ARG_ENABLE(warn,
)
AC_SUBST(WARN_CFLAGS)
-
+dnl ----------------------------------------------------------------
+dnl enable DEBUG messages or not
+dnl
AC_MSG_CHECKING(whether to include debug messages)
AC_ARG_ENABLE(debug_messages,
AC_HELP_STRING(
@@ -108,10 +125,41 @@ AC_ARG_ENABLE(debug_messages,
AC_DEFINE_UNQUOTED(HAVE_DEBUG_MESSAGES, 1, [Defines if debug information is enabled])
)
+dnl ----------------------------------------------------------------
+dnl check for ncurses
+dnl
+
+HAVE_CURSES=no
+
+AC_ARG_WITH(ncurses,
+ AC_HELP_STRING([--without-ncurses],
+ [don't include ncurses support]
+ )
+)
+
+if test "x${with_ncurses}" != "xno"; then
+ save_CPPFLAGS="$CPPFLAGS"
+ CPPFLAGS="$CPPFLAGS $CURSES_CFLAGS"
+
+ AC_CHECK_HEADER(ncurses.h,
+ HAVE_CURSES=yes
+ AC_DEFINE(HAVE_CURSES, 1, [Define this if you have ncurses])
+ CURSES_LIBS="$NCURSES_LIBS -lncurses",
+ HAVE_CURSES=no
+ )
+
+ CPPFLAGS="$save_CPPFLAGS"
+fi
+AC_SUBST(CURSES_CFLAGS)
+AC_SUBST(CURSES_LIBS)
+
+dnl ----------------------------------------------------------------
+dnl build client and erer or dedicated server only
+dnl
BUILD_CLIENT=no
AC_ARG_WITH(client,
- AC_HELP_STRING([--without-client], [build the dedicated server only])
+ AC_HELP_STRING([--without-client], [do not build the client application])
)
AC_MSG_CHECKING(whether to build client)
@@ -229,6 +277,7 @@ Configuration summary:
platform ........... $host
flags .............. $CXXFLAGS
libraries .......... $HOST_LIBS
+ ncurses ............ $HAVE_CURSES
build client ....... $BUILD_CLIENT
opengl ............. $GL_LIBS
openal ............. $AL_LIBS