X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=configure.ac;h=c0aac66f4626dfab1b06fcfa471e48232c3356bc;hb=5f21c75e02057d33dd960961d626465c0eaebd0c;hp=dd44d8688ec5cad465bcbdde1d9731fde31a8135;hpb=34e2a9dc374914418d0a414490e10e1264c0a146;p=simgear.git diff --git a/configure.ac b/configure.ac index dd44d868..c0aac66f 100644 --- a/configure.ac +++ b/configure.ac @@ -47,8 +47,25 @@ case "${host}" in if test "x$CXX" = "xCC" -o "x$CXX" = "xccache CC"; then AR="$CXX -ar" ARFLAGS="-o" - CXXFLAGS="$CXXFLAGS -I$(top_srcdir)/simgear/compatibility" + CXXFLAGS="$CXXFLAGS -I$(top_srcdir)/simgear/compatibility/MIPSpro740" compatibility_DIR="compatibility" + MIPSpro_DIRS="MIPSpro740" + AC_MSG_CHECKING([for MIPSpro compiler version 7.4 or newer]) + AC_TRY_RUN([ + int main() { + if ( _COMPILER_VERSION < 740 ) { + return -1; + } + return 0; + } + + ], AC_MSG_RESULT(yes), + [ AC_MSG_RESULT(no) + CXXFLAGS="$CXXFLAGS -I$(top_srcdir)/simgear/compatibility/MIPSpro721" + MIPSpro_DIRS="$(MIPSpro_DIRS) MIPSpro721" + AC_MSG_WARN([Using our own subset of the STL headers]) + ], AC_MSG_RESULT(yes)) + AC_SUBST(MIPSpro_DIRS) fi ;; *) @@ -333,11 +350,14 @@ AC_HEADER_TIME AC_STRUCT_TM dnl Checks for library functions. +old_LIBS=$LIBS +LIBS="$base_LIBS $network_LIBS $opengl_LIBS" AC_TYPE_SIGNAL AC_FUNC_VPRINTF -AC_CHECK_FUNCS( \ +AC_CHECK_FUNCS( [ \ ftime gettimeofday timegm memcpy bcopy mktime strstr rand \ - random drand48 setitimer getitimer signal GetLocalTime rint getrusage ) + random drand48 setitimer getitimer signal GetLocalTime rint getrusage ] ) +LIBS=$old_LIBS AM_CONFIG_HEADER(simgear/simgear_config.h) @@ -348,6 +368,8 @@ AC_CONFIG_FILES([ \ simgear/Makefile \ simgear/version.h \ simgear/compatibility/Makefile \ + simgear/compatibility/MIPSpro721/Makefile \ + simgear/compatibility/MIPSpro740/Makefile \ simgear/bucket/Makefile \ simgear/debug/Makefile \ simgear/ephemeris/Makefile \ @@ -355,6 +377,7 @@ AC_CONFIG_FILES([ \ simgear/magvar/Makefile \ simgear/math/Makefile \ simgear/metar/Makefile \ + simgear/environment/Makefile \ simgear/misc/Makefile \ simgear/nasal/Makefile \ simgear/props/Makefile \