dnl Initialize the automake stuff
dnl set the $host variable based on local machine/os
AC_CANONICAL_TARGET
-AM_INIT_AUTOMAKE(FlightGear, 0.9.4)
+AM_INIT_AUTOMAKE(FlightGear, 0.9.6-pre1)
dnl Checks for programs.
AC_PROG_MAKE_SET
*-*-cygwin* | *-*-mingw32*)
dnl CygWin under Windoze.
- LIBS="$LIBS -lalut -lopenal32 -lwinmm -ldsound -ldxguid -lole32"
+ AC_SEARCH_LIBS(alGenBuffers, openal32)
+ AC_SEARCH_LIBS(alutInit, [ openal32 ALut ] )
+ LIBS="$LIBS -lwinmm -ldsound -ldxguid -lole32"
;;
*-apple-darwin*)
exit
fi
-AC_MSG_CHECKING([for plib 1.7.0 or newer])
+AC_MSG_CHECKING([for plib 1.8.0 or newer])
AC_TRY_RUN([
#include <plib/ul.h>
exit
fi
-AC_MSG_CHECKING([for simgear 0.3.5 or newer])
+AC_MSG_CHECKING([for simgear 0.3.7 or newer])
AC_TRY_RUN([
#include <stdio.h>
#define MIN_MAJOR 0
#define MIN_MINOR 3
-#define MIN_MICRO 5
+#define MIN_MICRO 7
int main() {
int major, minor, micro;
- printf("%d.%d.%d or greater... ", MIN_MAJOR, MIN_MINOR, MIN_MICRO);
+ /* printf("%d.%d.%d or greater, ", MIN_MAJOR, MIN_MINOR, MIN_MICRO); */
+ printf("[found %s] ... ", STRINGIFY(SIMGEAR_VERSION));
sscanf( STRINGIFY(SIMGEAR_VERSION), "%d.%d.%d", &major, &minor, µ );
- if ( major < MIN_MAJOR ) {
- return -1;
- } else if ( major == MIN_MAJOR && minor < MIN_MINOR ) {
- return -1;
- } else if ( major == MIN_MAJOR && minor == MIN_MINOR && micro < MIN_MICRO ){
+ if ( (major < MIN_MAJOR) ||
+ (major == MIN_MAJOR && minor < MIN_MINOR) ||
+ (major == MIN_MAJOR && minor == MIN_MINOR && micro < MIN_MICRO) ) {
return -1;
}
LIBS="$saved_LIBS"
-dnl Check if SimGear was built with Norman JPEG factory support
+dnl Check if SimGear was built with Norman's JPEG factory support
AC_CHECK_HEADER(simgear/screen/jpgfactory.hxx)
if test "x$ac_cv_header_simgear_screen_jpgfactory_hxx" = "xyes"; then
AC_CHECK_LIB(jpeg, jpeg_start_compress)