From: david Date: Mon, 30 Dec 2002 21:34:46 +0000 (+0000) Subject: IRIX/MipsPro patches from Erik Hofman: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=e57e85c5639ddc90416ab40043f14752f37355f5;p=flightgear.git IRIX/MipsPro patches from Erik Hofman: This patch adds some missing default ISO C++ headers to SimGear, especially usefull for Irix/MipsPro. To the best of my knowledge this only affects the Irix/MipsPro compiler combination although it might be usefull for others as well. This patch does not yet remove any compiler specific code, but that would be my next task. The powerfull macros as defined in the compiler.h file allowed me to split it up into multiple patches. --- diff --git a/configure.ac b/configure.ac index b8cf175bd..083aab144 100644 --- a/configure.ac +++ b/configure.ac @@ -21,6 +21,14 @@ AC_PROG_RANLIB AC_PROG_INSTALL AC_PROG_LN_S +# specify the simgear location +AC_ARG_WITH(simgear, [ --with-simgear=PREFIX Specify the prefix path to simgear]) + +if test "x$with_simgear" != "x" ; then + echo "SimGear prefix path is $with_simgear" + EXTRA_DIRS="${EXTRA_DIRS} $with_simgear" +fi + dnl set the $host variable based on local machine/os AC_CANONICAL_HOST @@ -29,6 +37,7 @@ case "${host}" in if test "$CXX" = "CC"; then AR="CC -ar" ARFLAGS="-o" + CXXFLAGS="$CXXFLAGS -I$with_simgear/include/simgear/compatibility" else AR="ar" ARFLAGS="cru" @@ -98,14 +107,6 @@ if test "x$with_metakit" != "x" ; then EXTRA_DIRS="${EXTRA_DIRS} $with_metakit" fi -# specify the simgear location -AC_ARG_WITH(simgear, [ --with-simgear=PREFIX Specify the prefix path to simgear]) - -if test "x$with_simgear" != "x" ; then - echo "SimGear prefix path is $with_simgear" - EXTRA_DIRS="${EXTRA_DIRS} $with_simgear" -fi - dnl Used by JSBSim to conditionally compile in fgfs interface code AC_DEFINE([FGFS], 1, [Define so that JSBSim compiles in 'library' mode])