-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathconfigure.ac
47 lines (39 loc) · 1.37 KB
/
configure.ac
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
42
43
44
45
46
47
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ([2.67])
AC_INIT([savate], [0.5.1~dev], [[email protected]])
AC_CONFIG_HEADERS([config.h])
AM_INIT_AUTOMAKE([foreign])
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES])
# Checks for programs.
AC_PROG_CC
AC_PROG_LIBTOOL
AM_PATH_PYTHON([3.9])
AC_PYTHON_DEVEL
AC_PATH_PROG(RST2MAN, rst2man)
# recvmmsg() support, first off the CLI switch, disabled by default
AC_ARG_ENABLE([recvmmsg],
[AS_HELP_STRING([--enable-recvmmsg], [use recvmmsg() if available @<:@default=no@:>@])],
[
case "${enableval}" in
yes) want_recvmmsg=yes ;;
no) want_recvmmsg=no ;;
*) AC_MSG_ERROR([bad value ${enableval} for --enable-recvmmsg]) ;;
esac
],
[want_recvmmsg=no]
)
# Then if the user enabled it, test for existence of the function
AS_IF([test "x$want_recvmmsg" != xno],
[AC_CHECK_FUNC([recvmmsg])]
)
# And finally define the automake conditional used by our Makefile.am
AM_CONDITIONAL([ENABLE_RECVMMSG], [test "x$ac_cv_func_recvmmsg" = xyes])
AC_SUBST([savatesysconfdir], [\$\(sysconfdir\)/savate])
AC_OUTPUT([
Makefile
savate/Makefile
bin/Makefile
etc/Makefile
doc/Makefile
])