diff options
author | Ossama Othman <ossama-othman@users.noreply.github.com> | 1999-04-06 01:19:47 +0000 |
---|---|---|
committer | Ossama Othman <ossama-othman@users.noreply.github.com> | 1999-04-06 01:19:47 +0000 |
commit | e1d5a184c17250af9880c03a42122966a7601e8e (patch) | |
tree | f1676675462d87c06971d3538d2529ec9d4096c6 /m4 | |
parent | dd349e38ca4ea7055385629e9354f07acd43c2ae (diff) | |
download | ATCD-e1d5a184c17250af9880c03a42122966a7601e8e.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.m4 | 23 |
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). |