blob: 2c75e5811721084c3a4c6d2633ac5627812dc7f9 (
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
|
AC_INIT([cursespong], [0.1.0], [pjm@nac.net])
AC_CONFIG_AUX_DIR([build-aux])
AC_CONFIG_SRCDIR([src/main.c])
AM_INIT_AUTOMAKE([subdir-objects])
AC_PROG_CC()
AM_PROG_CC_C_O()
if test "x$GCC" = "xyes"; then
GCC_CFLAGS="-pedantic -Wall -Wextra -Werror"
GCC_CFLAGS="${GCC_CFLAGS} -Wformat=2 -Wswitch -Wswitch-enum"
GCC_CFLAGS="${GCC_CFLAGS} -Wdeclaration-after-statement"
GCC_CFLAGS="${GCC_CFLAGS} -Wundef -Wshadow"
GCC_CFLAGS="${GCC_CFLAGS} -Wpointer-arith -Wbad-function-cast"
GCC_CFLAGS="${GCC_CFLAGS} -Wcast-qual -Wcast-align -Wwrite-strings"
GCC_CFLAGS="${GCC_CFLAGS} -Wconversion"
GCC_CFLAGS="${GCC_CFLAGS} -Wlogical-op -Waggregate-return"
GCC_CFLAGS="${GCC_CFLAGS} -Wstrict-prototypes -Wold-style-definition"
GCC_CFLAGS="${GCC_CFLAGS} -Wmissing-prototypes -Wmissing-declarations"
GCC_CFLAGS="${GCC_CFLAGS} -Wredundant-decls -Wnested-externs"
GCC_CFLAGS="${GCC_CFLAGS} -Wunreachable-code -Winline"
GCC_CFLAGS="${GCC_CFLAGS} -Wdisabled-optimization"
GCC_CFLAGS="${GCC_CFLAGS} -fstack-protector -Wstack-protector"
fi
AC_SUBST(GCC_CFLAGS)
AC_CONFIG_FILES([Makefile])
AC_CONFIG_HEADERS([config.h])
AC_OUTPUT()
|