X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=configure.ac;h=38f795832a1c63489a196a64a34ff206f35bdf27;hb=65ce1a04b2f57ba2ff1444a42e03564fcd956bb5;hp=885ce39a52d560f6c776db32e54168c10ad528f1;hpb=c44ef2126c7159a1b2bd152c07bba1ae308740e7;p=simgear.git diff --git a/configure.ac b/configure.ac index 885ce39a..38f79583 100644 --- a/configure.ac +++ b/configure.ac @@ -10,7 +10,7 @@ AC_CONFIG_SRCDIR([simgear/bucket/newbucket.cxx]) AC_PREREQ(2.52) dnl Initialize the automake stuff -AM_INIT_AUTOMAKE(SimGear, 0.0.19pre2) +AM_INIT_AUTOMAKE(SimGear, 0.3.0) dnl Specify KAI C++ compiler and flags. dnl Borrowed with slight modification from blitz distribution. @@ -38,14 +38,20 @@ AC_PROG_RANLIB AC_PROG_INSTALL AC_PROG_LN_S + +# 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) + if echo $includedir | egrep "simgear$" > /dev/null; then echo "includedir is" $includedir "libdir is" $libdir @@ -54,12 +60,6 @@ else echo "includedir changed to" $includedir "libdir is" $libdir fi -# Determine version of automake ... important because of -# incompatibilities between versions -AUTO_MAKE_VERSION=`automake --version | head -1 | awk '{print $4}' | sed -e 's/\-p[[0-9]]$//' | sed -e 's/\.//'` -AM_CONDITIONAL(ANCIENT_AUTOMAKE, test $AUTO_MAKE_VERSION -lt 14) -AM_CONDITIONAL(OLD_AUTOMAKE, test $AUTO_MAKE_VERSION -lt 15) - # set logging default value # with_logging=yes AC_ARG_WITH(logging, [ --with-logging Include logging output (default)]) @@ -113,7 +113,7 @@ AM_CONDITIONAL(IS_CYGWIN, test "x$is_cygwin" = "xyes") if test "x$HOSTTYPE" != "xmacintosh" -a "x$is_mingw" != "xyes"; then dnl extra library and include directories - EXTRA_DIRS="/usr/local /usr/local/plib /usr/X11R6" + EXTRA_DIRS="/usr/X11R6" if test -d /opt/X11R6 ; then EXTRA_DIRS="$EXTRA_DIRS /opt/X11R6" @@ -167,6 +167,8 @@ fi dnl check for OpenGL related libraries +AM_CONDITIONAL(EXTGL_NEEDED, test "x$ac_cv_header_windows_h" = "xyes") + if test "x$HOSTTYPE" = "xmacintosh" ; then dnl Macintosh OSX LIBS="$LIBS -framework OpenGL -framework GLUT" @@ -271,11 +273,11 @@ AM_CONDITIONAL(HAVE_XWINDOWS, test "x$ac_cv_lib_X11_XCreateWindow" = "xyes" ) AC_LANG_PUSH(C++) dnl Check for "plib" without which we cannot go on -AC_CHECK_HEADER(plib/pu.h) -if test "x$ac_cv_header_plib_pu_h" != "xyes"; then +AC_CHECK_HEADER(plib/ul.h) +if test "x$ac_cv_header_plib_ul_h" != "xyes"; then echo echo "You *must* have the plib library installed on your system to build" - echo "the FGFS simulator!" + echo "SimGear!" echo echo "Please see README.plib for more details." echo @@ -283,10 +285,28 @@ if test "x$ac_cv_header_plib_pu_h" != "xyes"; then exit fi -AC_CHECK_HEADER(plib/ssgaLensFlare.h) -if test "x$ac_cv_header_plib_ssgaLensFlare_h" = "xyes"; then - AC_DEFINE([FG_CHEESY_LENS_FLARE], 1, [Define for cheesy lens flare effect]) -fi +AC_MSG_CHECKING([for plib 1.6.0 or newer]) +AC_TRY_RUN([ +#include + +#define MIN_PLIB_VERSION 160 + +int main() { + int major, minor, micro; + + if ( PLIB_VERSION < MIN_PLIB_VERSION ) { + return -1; + } + + return 0; +} + +], + AC_MSG_RESULT(yes), + [AC_MSG_RESULT(wrong version); + AC_MSG_ERROR([Install plib 1.6.0 or later first...])], + AC_MSG_RESULT(yes) +) dnl Check for system installed metakit AC_CHECK_HEADER(mk4.h) @@ -343,7 +363,6 @@ AC_CONFIG_FILES([ \ simgear/bucket/Makefile \ simgear/debug/Makefile \ simgear/ephemeris/Makefile \ - simgear/interpreter/Makefile \ simgear/io/Makefile \ simgear/magvar/Makefile \ simgear/math/Makefile \ @@ -353,6 +372,7 @@ AC_CONFIG_FILES([ \ simgear/screen/Makefile \ simgear/serial/Makefile \ simgear/sky/Makefile \ + simgear/sky/clouds3d/Makefile \ simgear/threads/Makefile \ simgear/timing/Makefile \ simgear/xgl/Makefile \