-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathconfigure.ac
More file actions
60 lines (48 loc) · 1.19 KB
/
Copy pathconfigure.ac
File metadata and controls
60 lines (48 loc) · 1.19 KB
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
48
49
50
51
52
53
54
55
56
57
58
59
60
AC_PREREQ(2.60)
AC_INIT([Cnetworking],
[1.0],
[tymothe.billerey@oteria.fr],
[Cnetworking],
[https://github.com/Neptunium931/Csystem])
AC_CONFIG_SRCDIR([src/protopeach.c])
AC_CONFIG_AUX_DIR([build-aux])
AM_INIT_AUTOMAKE([
foreign
-Wall
silent-rules
subdir-objects
-Werror
])
AC_PROG_CC
AC_PROG_AWK
AC_USE_SYSTEM_EXTENSIONS
AX_COMPILER_FLAGS
AX_CHECK_COMPILE_FLAG([-fsanitize=address], [ASAN_FLAG="-fsanitize=address"])
CFLAGS="$CFLAGS -std=c99 ${ASAN_FLAG} -Wno-declaration-after-statement"
AM_SILENT_RULES([yes])
PKG_CHECK_MODULES([CRITERION], [criterion], [], [
AC_MSG_ERROR([unable to find Criterion])
])
PKG_CHECK_MODULES([PCRE], [libpcre], [], [
AC_MSG_ERROR([unable to find libpcre])
])
PKG_CHECK_MODULES([READLINE], [readline], [], [
AC_MSG_ERROR([unable to find readline])
])
AX_PTHREAD(
[PTHREAD_LIBS="-lpthread"],
AC_MSG_ERROR([$PACKAGE requires pthreads]))
AC_SUBST([CRITERION_CFLAGS])
AC_SUBST([CRITERION_LIBS])
AC_CONFIG_HEADERS(config.h)
AC_CONFIG_FILES([Makefile])
AC_REQUIRE_AUX_FILE([tap-driver.sh])
AC_OUTPUT
AC_MSG_RESULT([
$PACKAGE $VERSION
====================
prefix: ${prefix}
compiler: ${CC}
cflags: ${CFLAGS}
ldflags: ${LDFLAGS}
])