]> git.mxchange.org Git - flightgear.git/commitdiff
Help configure finding the rti libraries.
authorMathias Froehlich <Mathias.Froehlich@web.de>
Sun, 23 Jan 2011 19:34:14 +0000 (20:34 +0100)
committerMathias Froehlich <Mathias.Froehlich@web.de>
Sun, 23 Jan 2011 19:35:05 +0000 (20:35 +0100)
configure.ac

index d7f7a65a6001dd45e32a3e66eaea1cf496947e28..cd41238ff9be946231b46c534c7460f828ff0833 100644 (file)
@@ -271,9 +271,11 @@ if test "x$with_rti13" != "xno"; then
     if test "x$simgear_hla" = "xyes" ; then
         AC_MSG_CHECKING([for hla libraries])
         saved_LIBS="$LIBS"
+        saved_LDFLAGS="$LDFLAGS"
         for rti13libs in "-lRTI-NG -lFedTime" "-lRTI-NGd -lFedTimed" ; do
             if test "x$hla_libs" = "x" ; then
                 LIBS="-lsghla13 -lsghla -lsgxml -lsgstructure -lsgmath -lsgdebug -lsgtiming $rti13libs -lrt $saved_LIBS"
+                LDFLAGS="$HLA_LDFLAGS $saved_LDFLAGS"
                 AC_TRY_LINK([
                     #include <simgear/hla/HLA13Federate.hxx>
                     ],[
@@ -282,6 +284,7 @@ if test "x$with_rti13" != "xno"; then
             fi
         done
         LIBS="$saved_LIBS"
+        LDFLAGS="$saved_LDFLAGS"
         AC_MSG_RESULT($hla_libs)
     fi
     AC_LANG_POP()