-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathconfigure.ac
63 lines (55 loc) · 1.18 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
AC_INIT([liblzw], [0.4], [https://github.com/vapier/liblzw/issues], [], [https://github.com/vapier/liblzw])
AC_CONFIG_AUX_DIR([build-aux])
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_HEADER([config.h])
AM_INIT_AUTOMAKE([-Wall 1.15 dist-xz foreign no-dist-gzip silent-rules])
AM_SILENT_RULES([yes])
AC_LIBTOOL_WIN32_DLL
AM_PROG_AR
LT_INIT
AC_ENABLE_SHARED
AC_ENABLE_STATIC
AC_PROG_CC
AC_CHECK_HEADERS_ONCE(m4_flatten([
assert.h
ctype.h
errno.h
fcntl.h
features.h
inttypes.h
stdarg.h
stdint.h
stdio.h
stdlib.h
string.h
time.h
unistd.h
sys/cdefs.h
sys/stat.h
sys/types.h
]))
dnl Do this at the end so -Werror isn't used in configure tests.
AC_MSG_CHECKING([whether to enable -Werror])
AC_ARG_ENABLE(
[werror],
[AS_HELP_STRING([--enable-werror], [Enable -Werror when compiling.])],
[],
[
dnl Enable on my dev box.
AS_CASE([$HOSTNAME$USER], [vapier*vapier], [enable_werror=vapier]
)]
)
AS_IF(
[test "$enable_werror" != "no"],
[AS_VAR_APPEND([CFLAGS], [" -Wall -Wextra -Wnonnull -Wundef -Werror"])]
)
AC_MSG_RESULT([$enable_werror])
AM_MISSING_PROG([AUTOM4TE], [autom4te])
AC_CONFIG_TESTDIR(tests)
AC_CONFIG_FILES([
Makefile
tests/Makefile
tests/package.m4
liblzw.pc
])
AC_OUTPUT