summarylogtreecommitdiffstats
path: root/in_chroot.patch
blob: 519ad32f3dd30f3746ccdac33224128d5fb583e1 (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
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
64
65
66
67
68
69
70
71
72
--- configure.ac	2018-08-17 13:18:28.010088365 +0200
+++ configure.ac.new	2018-08-17 18:14:06.049959957 +0200
@@ -6,6 +6,7 @@
 m4_define([abi_version], [abi_version_major.abi_version_minor.abi_version_micro])
 
 AC_INIT([abiword],[abi_version],[http://www.abisource.com/])
+m4_pattern_allow([AC_MSG_ERROR])
 AC_CANONICAL_HOST
 AC_CONFIG_HEADERS(config.h)
 AC_CONFIG_MACRO_DIR([m4])
@@ -561,61 +562,6 @@
 fi
 AC_SUBST(ABIWORD_ICONDIR, "$abi_cv_icondir")
 
-dnl ***********************************************************************
-dnl GCC/Clang sanitizer support
-dnl ***********************************************************************
-AC_ARG_WITH([sanitizer],
-            [AS_HELP_STRING([--with-sanitizer=@<:@address/undefined/no@:>@],
-                            [Use specific GCC/Clang analyzer])],
-            [with_sanitizer=$withval],
-            [with_sanitizer=no])
-AS_IF([test "x$with_sanitizer" != "xno"],[
-	AX_CHECK_COMPILE_FLAG([-fsanitize=$withval],
-	                      [CFLAGS="$CFLAGS -fsanitize=$withval"
-			       CXXFLAGS="$CXXFLAGS -fsanitize=$withval"],
-	                      [AC_MSG_ERROR([-fsanitize=$withval is not supported])])
-        AX_APPEND_COMPILE_FLAGS([-fno-omit-frame-pointer])
-        AC_LANG_PUSH(C++)
-        AX_APPEND_COMPILE_FLAGS([-fno-omit-frame-pointer])
-        AC_LANG_POP
-])
-
-dnl ***************************************************************
-dnl Excessive warnings
-dnl ***************************************************************
-AC_LANG_PUSH(C++)
-AX_CHECK_COMPILE_FLAG([-Werror=unknown-warning-option], [
-	ax_compiler_flags_test="-Werror=unknown-warning-option"
-], [
-	ax_compiler_flags_test=""
-])
-dnl XXX enable these
-dnl -Wformat-nonliteral
-AX_APPEND_COMPILE_FLAGS([ \
-   -Wcast-align \
-   -Wchar-subscripts \
-   -Wconst-qual \
-   -Wextra \
-   -Wformat \
-   -Wformat-security \
-   -Wformat-overflow=2 \
-   -Wheader-guard \
-   -Wimplicit-fallthrough=3 \
-   -Wlogical-not-parentheses \
-   -Wmisleading-indentation \
-   -Wmissing-noreturn \
-   -Wno-overloaded-virtual \
-   -Wpointer-arith \
-   -Wpointer-bool-conversion \
-   -Wredundant-decls \
-   -Wshadow \
-   -Wsign-compare \
-   -Wunreachable-code \
-   -Wunused \
-   -Wwrite-strings \
-], [], [$ax_compiler_flags_test])
-AC_LANG_POP
-
 #
 # Dependency tests
 #