diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2017-08-19 14:57:01 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org> | 2017-08-19 17:15:58 +0300 |
commit | 511f9c9765eb2a9992ea4470703ebcd96faca52b (patch) | |
tree | e0414383c4bc9cc9a95f5f32aae6fd2e8557e204 /runcap.m4 | |
parent | ead370a83f981ccf3d288dbe222fd362ec801f79 (diff) | |
download | runcap-511f9c9765eb2a9992ea4470703ebcd96faca52b.tar.gz runcap-511f9c9765eb2a9992ea4470703ebcd96faca52b.tar.bz2 |
Switch to autotools
* .gitignore: Update.
* Makefile: Remove.
* Make.am: New file.
* install.am: New file.
* shared.am: New file.
* static.am: New file.
* configure.ac: New file.
* runcap.m4: New file.
* t/Makefile: Remove.
* t/Makefile.am: New file.
* t/testsuite: Don't use relative directory addressing.
Diffstat (limited to 'runcap.m4')
-rw-r--r-- | runcap.m4 | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/runcap.m4 b/runcap.m4 new file mode 100644 index 0000000..cd4c234 --- /dev/null +++ b/runcap.m4 @@ -0,0 +1,39 @@ +# This file is part of runcap -*- autoconf -*- +# Copyright (C) 2017 Sergey Poznyakoff +# +# Runcap is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3, or (at your option) +# any later version. +# +# Runcap is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# 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_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]) + ],[shared],[ + LT_INIT + RUNCAP_BUILD_TYPE=shared + RUNCAP_LDADD=['$(top_builddir)/]runcapdir[libruncap.la'] + AC_CONFIG_FILES(runcapdir[Makefile]:runcapdir[shared.in]) + ],[ + 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]) + m4_popdef([runcapdir]) +]) + |