]> git.mxchange.org Git - simgear.git/commitdiff
Added a check for OpenSceneGraph and created some basic documentation.
authordurk <durk>
Sat, 1 Sep 2007 12:55:46 +0000 (12:55 +0000)
committerdurk <durk>
Sat, 1 Sep 2007 12:55:46 +0000 (12:55 +0000)
Makefile.am
README.OSG [new file with mode: 0644]
configure.ac

index 4c0bf03759fc6a2d830995140ef960cdda3f3f53..a57c42b3a0dd44463020c26eddba3071e34981f7 100644 (file)
@@ -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 (file)
index 0000000..5cef509
--- /dev/null
@@ -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
+
index 23bfb03e60fba6f05bb56c8cb2a82af3f40d65cf..41c24f5588a91c5e966165cfeaba67b821ac9d71 100644 (file)
@@ -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