From: durk Date: Sat, 1 Sep 2007 12:55:46 +0000 (+0000) Subject: Added a check for OpenSceneGraph and created some basic documentation. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=4718b9dc0759b4a18356725cc05ffaa651215b66;p=simgear.git Added a check for OpenSceneGraph and created some basic documentation. --- diff --git a/Makefile.am b/Makefile.am index 4c0bf037..a57c42b3 100644 --- a/Makefile.am +++ b/Makefile.am @@ -6,6 +6,7 @@ EXTRA_DIST = \ README.zlib \ README.plib \ README.OpenAL \ + README.OSG \ projects \ SimGear.dsp \ SimGear.dsw diff --git a/README.OSG b/README.OSG new file mode 100644 index 00000000..5cef509f --- /dev/null +++ b/README.OSG @@ -0,0 +1,24 @@ +[This file is mirrored in both the FlightGear and SimGear packages.] + +You *must* have OpenSceneGraph (OSG) installed to build this version of +FlightGear. + +You can get the latest version of OSG from: + +http://www.openscenegraph.org/ + +Build notes: + +Unzip the file OpenSceneGraph-2.0.zip and install using the following +commands: + +unzip OpenSceneGraph-2.0 +cd OpenSceneGraph +ccmake . + +[ While running ccmake: press 'c' to configure, press 'c' once more, and + then press 'g' to generate and exit ] + +make +sudo make install + diff --git a/configure.ac b/configure.ac index 23bfb03e..41c24f55 100644 --- a/configure.ac +++ b/configure.ac @@ -386,6 +386,18 @@ int main() { LIBS="$saved_LIBS" +AC_CHECK_HEADER(osg/Version) +if test "x$ac_cv_header_osg_Version" != "xyes"; then + echo + echo "You *must* have the OpenSceneGraph support library installed on your system" + echo "to build the FGFS simulator!" + echo + echo "Please see README.OSG for more details." + echo + echo "configure aborted." + exit +fi + AC_LANG_POP dnl Check for system installed zlib