summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorOssama Othman <ossama-othman@users.noreply.github.com>1999-04-06 01:19:47 +0000
committerOssama Othman <ossama-othman@users.noreply.github.com>1999-04-06 01:19:47 +0000
commit643e83f4e66f10025e41103a13e792b7f2dea24e (patch)
treef1676675462d87c06971d3538d2529ec9d4096c6 /m4
parentd94fd93b439ffdbc7a299258f1b5d3ba90f95424 (diff)
downloadATCD-643e83f4e66f10025e41103a13e792b7f2dea24e.tar.gz
* configure.in:
* m4/acinclude.m4: Created the macro ACE_CHECK_FOR_CVS_DIR to prevent the configure script from continuing the configuration if the current configuration directory is in a CVS controlled directory. The idea is to prevent automatically generated files from being checked into the repository. This will prevent accidental overwrites of ACE's current Makefiles by the automatically generated ones, for example. In addition, this should ease the transition from the current Makefile scheme to the new Auto{conf,make}/libtool scheme since the current Makefiles can remain under CVS control without the generate Makefiles interfering with them.
Diffstat (limited to 'm4')
-rw-r--r--m4/acinclude.m423
1 files changed, 23 insertions, 0 deletions
diff --git a/m4/acinclude.m4 b/m4/acinclude.m4
index 6311377d810..a0c87046af8 100644
--- a/m4/acinclude.m4
+++ b/m4/acinclude.m4
@@ -23,6 +23,29 @@ dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
dnl miscellaneous macros
+dnl Prevent the configure script continuing any further if a CVS control
+dnl directory is found. The idea is to prevent files generated during
+dnl configuration and build from be checked in to the CVS repository that
+dnl the sources are checked into. This should only be an issue for
+dnl maintainers, not end-users. Maintainers should configure and build in
+dnl a directory that doesn't contain any CVS controlled sources and files,
+dnl i.e. that doesn't contain a CVS directory.
+dnl
+dnl Usage: ACE_CHECK_FOR_CVS_DIR
+AC_DEFUN(ACE_CHECK_FOR_CVS_DIR,
+[
+ if test -d CVS; then
+ AC_MSG_ERROR(
+ [
+ This error is meant for maintainers:
+
+ Please configure and build in a non-CVS controlled directory.
+ Doing so will prevent accidentally committing automatically
+ generated files into the CVS repository and help ensure that
+ the generated files and build scheme are correct.
+ ])
+ fi
+])
dnl Add compiler flags to the CXXFLAGS and CFLAGS variables when doing an
dnl AC_TRY_COMPILE (not ACE_TRY_COMPILE).