X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=configure.ac;h=253ae23b3333960d1832443cdea96da367eabdf8;hb=ea177f6744f7f48264a8a5897da183e942ac29bf;hp=3ad24ff3dc56aaac39c8c7799e75ef8b42744081;hpb=619226e9d069d2a3e8ebf8658fb5441ca8a2c233;p=flightgear.git diff --git a/configure.ac b/configure.ac index 3ad24ff3d..253ae23b3 100644 --- a/configure.ac +++ b/configure.ac @@ -380,7 +380,11 @@ AC_DEFINE([ENABLE_PLIB_JOYSTICK], 1, [Define to enable plib joystick support]) dnl Check for the presence of SimGear +if test "x$with_simgear" != "x"; then +AC_CHECK_HEADER($with_simgear/include/simgear/version.h, [ac_cv_header_simgear_version_h=yes], [ac_cv_header_simgear_version_h=no]) +else AC_CHECK_HEADER(simgear/version.h) +fi if test "x$ac_cv_header_simgear_version_h" != "xyes"; then echo echo "You *must* have the SimGear support library installed on your system" @@ -432,7 +436,11 @@ int main() { LIBS="$saved_LIBS" dnl Check if SimGear was built with Norman's JPEG factory support +if test "x$with_simgear" != "x"; then +AC_CHECK_HEADER($with_simgear/include/simgear/screen/jpgfactory.hxx,[ac_cv_header_simgear_screen_jpgfactory_hxx=yes],[ac_cv_header_simgear_screen_jpgfactory_hxx=no]) +else AC_CHECK_HEADER(simgear/screen/jpgfactory.hxx) +fi if test "x$ac_cv_header_simgear_screen_jpgfactory_hxx" = "xyes"; then AC_CHECK_LIB(jpeg, jpeg_start_compress) if test "x$ac_cv_lib_jpeg_jpeg_start_compress" != "xyes" ; then