refuse to run if not executed by the main configure script
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15604 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
4
samples/configure
vendored
4
samples/configure
vendored
@@ -523,6 +523,10 @@ fi
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
if test "x$wx_cv_path_samplesubdirs" = "x"; then
|
||||||
|
{ echo "configure: error: Please run configure from the top level directory." 1>&2; exit 1; }
|
||||||
|
fi
|
||||||
|
|
||||||
SAMPLES_SUBDIRS=$wx_cv_path_samplesubdirs
|
SAMPLES_SUBDIRS=$wx_cv_path_samplesubdirs
|
||||||
|
|
||||||
|
|
||||||
|
@@ -3,6 +3,12 @@ AC_REVISION($Id$)dnl
|
|||||||
|
|
||||||
AC_INIT(Makefile.in)
|
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
|
SAMPLES_SUBDIRS=$wx_cv_path_samplesubdirs
|
||||||
AC_SUBST(SAMPLES_SUBDIRS)
|
AC_SUBST(SAMPLES_SUBDIRS)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user