aboutsummaryrefslogtreecommitdiff
path: root/configure.ac
blob: eda70323dacb723986f412715029948545315621 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#    Copyright (C) 2023  Pasha <pasha@bell01.com>
#
#    This program 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 of the License, or
#    (at your option) any later version.
#
#    This program 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 this program.  If not, see <https://www.gnu.org/licenses/>.

AC_PREREQ([2.57])

m4_include([version.m4])
AC_INIT([AC_PACKAGE_NAME], [AC_PACKAGE_VERSION], [AC_PACKAGE_BUGREPORT],
  [AC_PACKAGE_TARNAME])
AM_INIT_AUTOMAKE([-Wall -Werror foreign])
AC_CHECK_LIB(
[cgroup],
[cgroup_init],
[
	dnl Override the default behavior of AC_CHECK_LIB,
	dnl we don't want -lcgroup in LIBS.
	:
],
[AC_MSG_ERROR([Cannot compile without libcgroup!])])
AC_PROG_CC
AM_PROG_AR
AC_PROG_INSTALL
AC_PROG_RANLIB
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_FILES([
 Makefile
 lib/Makefile
 src/Makefile
])
AC_OUTPUT