diff options
author | Explorer09 <explorer09@gmail.com> | 2018-04-06 23:47:55 +0800 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2018-05-22 23:21:42 -0300 |
commit | 103f1a497a9ebbcab021c1a8d21276802d1922c6 (patch) | |
tree | 458fe40a5cbe8cf160b6959320649ae38293d144 /configure.ac | |
parent | 08a9b051c5b393e6050abd412df0510e36a9be1a (diff) |
Disable 'make dist' when pkg.m4 is unused in configure
This would prevent a careless future package maintainer from creating a
release tarball with a defective configure script. :)
Also, add a warning in the autogen.sh phase if pkg.m4 is unused.
Signed-off-by: Kang-Che Sung <explorer09@gmail.com>
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 2c4fc5be..ffd8fede 100644 --- a/configure.ac +++ b/configure.ac @@ -292,7 +292,9 @@ then LIBS="$LIBS $LIBNL3_LIBS $LIBNL3GENL_LIBS" AC_DEFINE(HAVE_DELAYACCT, 1, [Define if delay accounting support should be enabled.]) ], [ - AC_MSG_ERROR([htop on Linux requires pkg-config for checking delayacct requirements. Please install pkg-config and run ./autogen.sh to rebuild the configure script.]) + pkg_m4_absent=1 + m4_warning([configure is generated without pkg.m4. 'make dist' target will be disabled.]) + AC_MSG_ERROR([htop on Linux requires pkg-config for checking delayacct requirements. Please install pkg-config and run ./autogen.sh to rebuild the configure script.]) ]) fi |