diff -ruN ogrenew.orig/acinclude.m4 ogrenew/acinclude.m4 --- ogrenew.orig/acinclude.m4 2006-07-28 05:47:30.000000000 +0400 +++ ogrenew/acinclude.m4 2007-02-07 21:41:10.000000000 +0300 @@ -493,3 +493,13 @@ esac AC_SUBST(OGRE_THREAD_LIBS) ]) + +AC_DEFUN([OGRE_CHECK_SAMPLES], +[ + AC_ARG_ENABLE(samples, + AC_HELP_STRING([--disable-samples], [Do not build samples]), + [build_samples=$enableval], + [build_samples=yes]) + AM_CONDITIONAL([BUILD_SAMPLES], [test "x$build_samples" != "xyes"]) +]) + diff -ruN ogrenew.orig/configure.in ogrenew/configure.in --- ogrenew.orig/configure.in 2007-01-20 17:21:21.000000000 +0300 +++ ogrenew/configure.in 2007-02-07 21:30:54.000000000 +0300 @@ -64,6 +64,7 @@ OGRE_CHECK_CG OGRE_CHECK_OPENEXR OGRE_CHECK_DX9 +OGRE_CHECK_SAMPLES dnl Detect endianness OGRE_DETECT_ENDIAN diff -ruN ogrenew.orig/Samples/Makefile.am ogrenew/Samples/Makefile.am --- ogrenew.orig/Samples/Makefile.am 2006-05-05 01:31:55.000000000 +0400 +++ ogrenew/Samples/Makefile.am 2007-02-07 21:36:42.000000000 +0300 @@ -1,5 +1,8 @@ -SUBDIRS = SkeletalAnimation BezierPatch EnvMapping Transpacency Lighting \ -ParticleFX TextureFX SkyDome BSP Common SkyPlane SkyBox CameraTrack Terrain \ +SUBDIRS = Common + +if BUILD_SAMPLES +SUBDIRS += SkeletalAnimation BezierPatch EnvMapping Transpacency Lighting \ +ParticleFX TextureFX SkyDome BSP SkyPlane SkyBox CameraTrack Terrain \ RenderToTexture Water CubeMapping Dot3Bump Smoke CelShading Fresnel Shadows \ DynTex VolumeTex Grass DeferredShading @@ -7,4 +10,4 @@ SUBDIRS += Gui FacialAnimation OceanDemo Compositor endif - +endif