+# OpenSceneGraph
+case "${host}" in
+*-apple-darwin*)
+ if test "x$with_osg_framework" != "x"; then
+ AC_CHECK_FRAMEWORK(osgViewer, [#include <osgViewer/Version>], $with_osg_framework)
+ AC_CHECK_FRAMEWORK(osgGA, [#include <osgGA/Version>], $with_osg_framework)
+ AC_CHECK_FRAMEWORK(osgText, [#include <osgText/Version>], $with_osg_framework)
+ AC_CHECK_FRAMEWORK(osgFX, [#include <osgFX/AnisotropicLighting>], $with_osg_framework)
+ AC_CHECK_FRAMEWORK(osgUtil, [#include <osgUtil/Version>], $with_osg_framework)
+ AC_CHECK_FRAMEWORK(osgDB, [#include <osgDB/Version>], $with_osg_framework)
+ AC_CHECK_FRAMEWORK(osgSim, [#include <osgSim/Version>], $with_osg_framework)
+ AC_CHECK_FRAMEWORK(osgParticle, [#include <osgParticle/Version>], $with_osg_framework)
+ AC_CHECK_FRAMEWORK(osg, [#include <osg/Version>], $with_osg_framework)
+ osg_FRAMEWORKS="$FRAMEWORKS"
+ FRAMEWORKS=""
+ AC_SUBST(osg_FRAMEWORKS)
+ AC_CHECK_FRAMEWORK(OpenThreads, [#include <OpenThreads/Version>], $with_osg_framework)
+ openthreads_FRAMEWORK="$FRAMEWORKS"
+ FRAMEWORKS=""
+ AC_SUBST(openthreads_FRAMEWORK)
+ else
+ dnl
+ dnl This is needed when osg dynamic libs are specified
+ dnl instead of OSG frameworks on Mac OS X
+ dnl
+ LDFLAGS="$LDFLAGS -L$with_osg"
+ fi
+ ;;
+esac
+AM_CONDITIONAL(HAVE_FRAMEWORK_OSG, test "x$ac_cv_framework_osg" != "x")
+
+AC_CHECK_HEADER(osg/Version)
+if test "x$ac_cv_header_osg_Version" != "xyes"; then
+ if test "x$ac_cv_framework_osg" != "xyes"; then
+ echo
+ echo "You *must* have the OpenSceneGraph support library installed on your system"
+ echo "to build this version of SimGear!"
+ echo
+ echo "Please see README.OSG for more details."
+ echo
+ echo "configure aborted."
+ exit
+ fi
+fi
+
+AC_CHECK_HEADER(boost/version.hpp)
+if test "x$ac_cv_header_boost_version_hpp" != "xyes"; then
+ echo
+ echo "You *must* have the Boost library installed on your system"
+ echo "to build this version of SimGear!"
+ echo
+ echo "configure aborted."
+ exit
+fi
+