AC_PREREQ(2.52)
# Initialize the automake stuff
-AM_INIT_AUTOMAKE(FlightGear, 0.7.11pre1)
+AM_INIT_AUTOMAKE(FlightGear, 0.9.0)
# Checks for programs.
AC_PROG_MAKE_SET
echo "IS_CYGWIN = $is_cygwin"
AM_CONDITIONAL(IS_CYGWIN, test "x$is_cygwin" = "xyes")
-# Determine version of automake ... important becuase of
-# incompatibilities between versions
-AUTO_MAKE_VERSION=`automake --version | head -1 | awk '{print $4}' | sed -e 's/\.\([0-9]*\).*/\1/'`
-if test $AUTO_MAKE_VERSION -lt 15; then
- echo ""
- echo "You need to upgrade to automake version 1.5 or greater."
- echo "Most distributions have packages available to install or you can"
- echo "find the source for the most recent version at"
- echo "ftp://ftp.gnu.org/gnu/automake"
- exit 1
-fi
-
# Used by JSBSim
AC_DEFINE([FGFS], 1, [Define so that JSBSim compiles in 'library' mode])
+
# Used on the Irix platform
AR="ar"
+ARFLAGS="cru"
OS=`uname -s`
if test "$OS" = "IRIX" -o "$OS" = "IRIX64"; then
if test "$CXX" = "CC"; then
AR="CC -ar"
- AC_SUBST(AR)
+ ARFLAGS="-o"
fi
fi
+AC_SUBST(AR)
+AC_SUBST(ARFLAGS)
# Specify if we want logging (testing build) or not (release build)
# extra library and include directories
if test "x$ac_cv_header_windows_h" != "xyes" ; then
- EXTRA_DIRS="${EXTRA_DIRS} /usr/local /usr/X11R6"
+ EXTRA_DIRS="${EXTRA_DIRS} /usr/X11R6"
if test -d /opt/X11R6 ; then
EXTRA_DIRS="${EXTRA_DIRS} /opt/X11R6"
exit
fi
-AC_MSG_CHECKING([for simgear 0.0.19 or newer])
+AC_MSG_CHECKING([for simgear 0.2.0 or newer])
AC_TRY_RUN([
#include <stdio.h>
#define XSTRINGIFY(X) #X
#define MIN_MAJOR 0
-#define MIN_MINOR 0
-#define MIN_MICRO 19
+#define MIN_MINOR 2
+#define MIN_MICRO 0
int main() {
int major, minor, micro;