ObjFW  Check-in [2477baa59a]

Overview
Comment:-Wall was added too early to (OBJ)CFLAGS.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 2477baa59afddfb80a7af5d98935b8a7df89be2e2bd70e7a0dd72956daa11a38
User & Date: js on 2009-04-10 01:12:32
Other Links: manifest | tags
Context
2009-04-10
01:40
Forgot to remove old workaround for a warning in OFConstString.h. check-in: 26a6fdf806 user: js tags: trunk
01:12
-Wall was added too early to (OBJ)CFLAGS. check-in: 2477baa59a user: js tags: trunk
01:04
Too much was changed here from uint8_t to char. Fixed. check-in: e08efd62c2 user: js tags: trunk
Changes

Modified configure.ac from [2984007ca4] to [2a061b3274].

10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
10
11
12
13
14
15
16





17
18
19
20
21
22
23







-
-
-
-
-







AC_PROG_EGREP

CFLAGS="$CFLAGS -Wall"
OBJCFLAGS="$OBJCFLAGS -Wall -fobjc-exceptions"
OBJCFLAGS="$OBJCFLAGS -fconstant-string-class=OFConstString"
LIBS="$LIBS -lobjc"

if test x"$GCC" = x"yes"; then
	CFLAGS="$CFLAGS -Werror"
	OBJCFLAGS="$OBJCFLAGS -Werror"
fi

AX_CHECK_COMPILER_FLAGS(-pipe, [
	CFLAGS="$CFLAGS -pipe"
	OBJCFLAGS="$OBJCFLAGS -pipe"])
AX_CHECK_COMPILER_FLAGS(-fno-constant-cfstrings,
	[OBJCFLAGS="$OBJCFLAGS -fno-constant-cfstrings"])

AC_DEFINE(OF_CONFIG_H, 1, [Define so that we know we got our config.h])
139
140
141
142
143
144
145





146
147
148
149
150
151
152
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152







+
+
+
+
+







		ac_cv_have_ipv6="no",
		ac_cv_have_ipv6="no")])
AC_MSG_RESULT($ac_cv_have_ipv6)
test x"$ac_cv_have_ipv6" = x"yes" && \
	AC_DEFINE(HAVE_IPV6, 1, "Whether we have IPv6 support")

AC_CHECK_HEADERS(sys/mman.h)

if test x"$GCC" = x"yes"; then
	CFLAGS="$CFLAGS -Werror"
	OBJCFLAGS="$OBJCFLAGS -Werror"
fi

if test x"$cross_compiling" = x"yes"; then
	case "$host" in
		*-*-mingw*)
			AC_PATH_PROG(WINE, wine)

			if test x"$WINE" != "x"; then