Sat, 03 Jan 2015 20:18:00 +0100
Conditionally enable double key logic according to:
private browsing mode or privacy.thirdparty.isolate preference and
implement in GetCookieStringCommon and FindCookie where it counts...
With some reservations of how to convince FindCookie users to test
condition and pass a nullptr when disabling double key logic.
1 # Copyright (c) 2006, Google Inc.
2 # All rights reserved.
3 #
4 # Redistribution and use in source and binary forms, with or without
5 # modification, are permitted provided that the following conditions are
6 # met:
7 #
8 # * Redistributions of source code must retain the above copyright
9 # notice, this list of conditions and the following disclaimer.
10 # * Redistributions in binary form must reproduce the above
11 # copyright notice, this list of conditions and the following disclaimer
12 # in the documentation and/or other materials provided with the
13 # distribution.
14 # * Neither the name of Google Inc. nor the names of its
15 # contributors may be used to endorse or promote products derived from
16 # this software without specific prior written permission.
17 #
18 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
19 # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
20 # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
21 # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
22 # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
23 # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
24 # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25 # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31 AC_PREREQ(2.57)
33 AC_INIT(breakpad, 0.1, google-breakpad-dev@googlegroups.com)
34 dnl Sanity check: the argument is just a file that should exist.
35 AC_CONFIG_SRCDIR(README)
36 AC_CONFIG_AUX_DIR(autotools)
37 AC_CONFIG_MACRO_DIR([m4])
38 AC_CANONICAL_HOST
40 AM_INIT_AUTOMAKE(subdir-objects tar-ustar 1.11.1)
41 AM_CONFIG_HEADER(src/config.h)
43 AM_PROG_AS
44 AC_PROG_CC
45 AM_PROG_CC_C_O
46 AC_PROG_CPP
47 AC_PROG_CXX
48 AC_PROG_RANLIB
49 AM_CONDITIONAL(GCC, test "$GCC" = yes) # let the Makefile know if we're gcc
51 AC_HEADER_STDC
52 m4_include(m4/ax_pthread.m4)
53 AX_PTHREAD
54 AC_CHECK_HEADERS([a.out.h])
56 # Only build Linux client libs when compiling for Linux
57 case $host in
58 *-*-linux* | *-android* )
59 LINUX_HOST=true
60 ;;
61 esac
62 AM_CONDITIONAL(LINUX_HOST, test x$LINUX_HOST = xtrue)
64 # Only use Android support headers when compiling for Android
65 case $host in
66 *-android*)
67 ANDROID_HOST=true
68 ;;
69 esac
70 AM_CONDITIONAL(ANDROID_HOST, test x$ANDROID_HOST = xtrue)
72 AC_ARG_ENABLE(m32,
73 AS_HELP_STRING([--enable-m32],
74 [Compile/build with -m32]
75 [(default is no)]),
76 [case "${enableval}" in
77 yes)
78 CFLAGS="${CFLAGS} -m32"
79 CXXFLAGS="${CXXFLAGS} -m32"
80 usem32=true
81 ;;
82 no)
83 usem32=false
84 ;;
85 *)
86 AC_MSG_ERROR(bad value ${enableval} for --enable-m32)
87 ;;
88 esac],
89 [usem32=false])
91 AC_ARG_ENABLE(processor,
92 AS_HELP_STRING([--disable-processor],
93 [Don't build processor library]
94 [(default is no)]),
95 [case "${enableval}" in
96 yes)
97 disable_processor=false
98 ;;
99 no)
100 disable_processor=true
101 ;;
102 *)
103 AC_MSG_ERROR(bad value ${enableval} for --disable-processor)
104 ;;
105 esac],
106 [disable_processor=false])
107 AM_CONDITIONAL(DISABLE_PROCESSOR, test x$disable_processor = xtrue)
109 AC_ARG_ENABLE(tools,
110 AS_HELP_STRING([--disable-tools],
111 [Don't build tool binaries]
112 [(default is no)]),
113 [case "${enableval}" in
114 yes)
115 disable_tools=false
116 ;;
117 no)
118 disable_tools=true
119 ;;
120 *)
121 AC_MSG_ERROR(bad value ${enableval} for --disable-tools)
122 ;;
123 esac],
124 [disable_tools=false])
125 AM_CONDITIONAL(DISABLE_TOOLS, test x$disable_tools = xtrue)
127 if test x$LINUX_HOST = xfalse -a x$disable_processor = xtrue -a x$disable_tools = xtrue; then
128 AC_MSG_ERROR([--disable-processor and --disable-tools were specified, and not building for Linux. Nothing to build!])
129 fi
131 AC_ARG_ENABLE(selftest,
132 AS_HELP_STRING([--enable-selftest],
133 [Run extra tests with "make check" ]
134 [(may conflict with optimizations) ]
135 [(default is no)]),
136 [case "${enableval}" in
137 yes)
138 selftest=true
139 ;;
140 no)
141 selftest=false
142 ;;
143 *)
144 AC_MSG_ERROR(bad value ${enableval} for --enable-selftest)
145 ;;
146 esac],
147 [selftest=false])
148 AM_CONDITIONAL(SELFTEST, test x$selftest = xtrue)
150 AC_CONFIG_FILES([Makefile])
151 AC_OUTPUT