aboutsummaryrefslogtreecommitdiff
path: root/runcap.m4
diff options
context:
space:
mode:
Diffstat (limited to 'runcap.m4')
-rw-r--r--runcap.m47
1 files changed, 6 insertions, 1 deletions
diff --git a/runcap.m4 b/runcap.m4
index cd4c234..3d49f05 100644
--- a/runcap.m4
+++ b/runcap.m4
@@ -13,12 +13,13 @@
#
# You should have received a copy of the GNU General Public License
# along with Runcap. If not, see <http://www.gnu.org/licenses/>.
AC_DEFUN([RUNCAP_SETUP],[
m4_pushdef([runcapdir],m4_if($1,[.],,$1,,[runcap/],$1/))
AC_SUBST([RUNCAP_INC],['-I$(top_srcdir)/]runcapdir')
+ AC_SUBST([RUNCAP_LDADD],['-L$(top_builddir)/]runcapdir -lruncap')
AC_SUBST([RUNCAP_BUILD_TYPE])
m4_if($2,[install],[
LT_INIT
RUNCAP_BUILD_TYPE=install
RUNCAP_LDADD=['$(top_builddir)/]runcapdir[libruncap.la']
AC_CONFIG_FILES(runcapdir[Makefile]:runcapdir[install.in])
@@ -30,10 +31,14 @@ AC_DEFUN([RUNCAP_SETUP],[
],[
AC_PROG_RANLIB
RUNCAP_BUILD_TYPE=static
RUNCAP_LDADD=['$(top_builddir)/]runcapdir[libruncap.a']
AC_CONFIG_FILES(runcapdir[Makefile]:runcapdir[static.in])
])
- AC_CONFIG_FILES(runcapdir[t/Makefile])
+
+ AC_CONFIG_TESTDIR(runcapdir[t])
+ AC_CONFIG_FILES(runcapdir[t/Makefile] runcapdir[t/atlocal])
+ AM_MISSING_PROG([AUTOM4TE], [autom4te])
+
m4_popdef([runcapdir])
])

Return to:

Send suggestions and report system problems to the System administrator.