]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/configure.in
refuse to run if not executed by the main configure script
[wxWidgets.git] / samples / configure.in
index 773f64610708d9ad86a8fba49b53d1fd2a19d209..c95587e95aee21e6dcb37c29ad18f6d958d04afe 100644 (file)
@@ -3,6 +3,12 @@ AC_REVISION($Id$)dnl
 
 AC_INIT(Makefile.in)
 
+dnl we need the values the main configure determined for us, so refuse
+dnl to run if we don't have them
+if test "x$wx_cv_path_samplesubdirs" = "x"; then
+    AC_MSG_ERROR([Please run configure from the top level directory.])
+fi
+
 SAMPLES_SUBDIRS=$wx_cv_path_samplesubdirs
 AC_SUBST(SAMPLES_SUBDIRS)