]>
Commit | Line | Data |
---|---|---|
fffd353d AJ |
1 | # SPDX-License-Identifier: ISC |
2 | # SPDX-URL: https://spdx.org/licenses/ISC.html | |
3 | # | |
4 | # Copyright (C) 2005-2015 Atheme Project (http://atheme.org/) | |
5 | # Copyright (C) 2021 Atheme Development Group (https://atheme.github.io/) | |
6 | ||
7 | AC_PREREQ([2.69]) | |
8 | ||
9 | AC_LANG([C]) | |
10 | AC_INIT([Atheme IRC Services Contrib Modules], [1.0], [https://github.com/atheme/atheme-contrib-modules/issues/], [atheme-contrib-modules], [https://atheme.github.io/]) | |
11 | ||
12 | AC_CONFIG_AUX_DIR([build-aux]) | |
13 | AC_CONFIG_FILES([buildsys.mk extra.mk]) | |
14 | AC_CONFIG_HEADERS([src/contrib-sysconf.h]) | |
15 | AC_CONFIG_MACRO_DIR([m4]) | |
16 | AC_CONFIG_SRCDIR([src/atheme-compat.h]) | |
17 | AC_PREFIX_DEFAULT([~/atheme]) | |
18 | AS_IF([test "x${prefix}" = "xNONE"], [prefix="${ac_default_prefix}"]) | |
19 | ||
20 | # Programs required by the build system | |
21 | AC_PROG_CC | |
22 | AC_PROG_CC_C99 | |
23 | AS_IF([test "x${ac_cv_prog_cc_c99}" = "xno"], [ | |
24 | AC_MSG_FAILURE([This program requires a C99 compiler]) | |
25 | ]) | |
26 | AC_CHECK_TOOL([AR], [ar]) | |
27 | AC_PATH_PROG([CP], [cp]) | |
28 | AC_PROG_INSTALL | |
29 | AC_PATH_PROG([LN], [ln]) | |
30 | AC_PROG_LN_S | |
31 | AC_PROG_MAKE_SET | |
32 | AC_PROG_MKDIR_P | |
33 | AC_PATH_PROG([MV], [mv]) | |
34 | AC_PROG_RANLIB | |
35 | AC_PATH_PROG([RM], [rm]) | |
36 | AC_PATH_PROG([TAR], [tar]) | |
37 | ||
38 | # Does what its name implies. The above block can't be put into this function | |
39 | # because of autotools black magic voodoo crap that no-one understands ... | |
40 | ATHEME_CONTRIB_CHECK_BUILD_REQUIREMENTS | |
41 | ||
42 | # Automake compatibility. --nenolod | |
43 | AC_SUBST([PACKAGE], [AC_PACKAGE_TARNAME]) | |
44 | AC_SUBST([VERSION], [AC_PACKAGE_VERSION]) | |
45 | AC_DEFINE_UNQUOTED([PACKAGE], ["${PACKAGE}"], [Name of package]) | |
46 | AC_DEFINE_UNQUOTED([VERSION], ["${VERSION}"], [Version number of package]) | |
47 | ||
48 | # This should be before any library tests so that insufficient header | |
49 | # inclusions in those tests are caught before they become a runtime | |
50 | # problem | |
51 | ATHEME_CONTRIB_TEST_CC_FLAGS([-Werror=implicit]) | |
52 | ||
53 | # Some modules use platform-specific functionality and thus need checks that | |
54 | # the functionality is available | |
55 | ATHEME_CONTRIB_LIBTEST_RES_QUERY | |
56 | ||
57 | ||
58 | ||
59 | AC_OUTPUT | |
60 | BUILDSYS_TOUCH_DEPS |