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