toolkit/crashreporter/google-breakpad/configure.ac

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/toolkit/crashreporter/google-breakpad/configure.ac	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,151 @@
     1.4 +# Copyright (c) 2006, Google Inc.
     1.5 +# All rights reserved.
     1.6 +#
     1.7 +# Redistribution and use in source and binary forms, with or without
     1.8 +# modification, are permitted provided that the following conditions are
     1.9 +# met:
    1.10 +#
    1.11 +#     * Redistributions of source code must retain the above copyright
    1.12 +# notice, this list of conditions and the following disclaimer.
    1.13 +#     * Redistributions in binary form must reproduce the above
    1.14 +# copyright notice, this list of conditions and the following disclaimer
    1.15 +# in the documentation and/or other materials provided with the
    1.16 +# distribution.
    1.17 +#     * Neither the name of Google Inc. nor the names of its
    1.18 +# contributors may be used to endorse or promote products derived from
    1.19 +# this software without specific prior written permission.
    1.20 +#
    1.21 +# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
    1.22 +# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
    1.23 +# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
    1.24 +# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
    1.25 +# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
    1.26 +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
    1.27 +# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
    1.28 +# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
    1.29 +# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
    1.30 +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
    1.31 +# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    1.32 +
    1.33 +
    1.34 +AC_PREREQ(2.57)
    1.35 +
    1.36 +AC_INIT(breakpad, 0.1, google-breakpad-dev@googlegroups.com)
    1.37 +dnl Sanity check: the argument is just a file that should exist.
    1.38 +AC_CONFIG_SRCDIR(README)
    1.39 +AC_CONFIG_AUX_DIR(autotools)
    1.40 +AC_CONFIG_MACRO_DIR([m4])
    1.41 +AC_CANONICAL_HOST
    1.42 +
    1.43 +AM_INIT_AUTOMAKE(subdir-objects tar-ustar 1.11.1)
    1.44 +AM_CONFIG_HEADER(src/config.h)
    1.45 +
    1.46 +AM_PROG_AS
    1.47 +AC_PROG_CC
    1.48 +AM_PROG_CC_C_O
    1.49 +AC_PROG_CPP
    1.50 +AC_PROG_CXX
    1.51 +AC_PROG_RANLIB
    1.52 +AM_CONDITIONAL(GCC, test "$GCC" = yes)   # let the Makefile know if we're gcc
    1.53 +
    1.54 +AC_HEADER_STDC
    1.55 +m4_include(m4/ax_pthread.m4)
    1.56 +AX_PTHREAD
    1.57 +AC_CHECK_HEADERS([a.out.h])
    1.58 +
    1.59 +# Only build Linux client libs when compiling for Linux
    1.60 +case $host in
    1.61 +  *-*-linux* | *-android* )
    1.62 +    LINUX_HOST=true
    1.63 +    ;;
    1.64 +esac
    1.65 +AM_CONDITIONAL(LINUX_HOST, test x$LINUX_HOST = xtrue)
    1.66 +
    1.67 +# Only use Android support headers when compiling for Android
    1.68 +case $host in
    1.69 +  *-android*)
    1.70 +    ANDROID_HOST=true
    1.71 +    ;;
    1.72 +esac
    1.73 +AM_CONDITIONAL(ANDROID_HOST, test x$ANDROID_HOST = xtrue)
    1.74 +
    1.75 +AC_ARG_ENABLE(m32,
    1.76 +              AS_HELP_STRING([--enable-m32],
    1.77 +                             [Compile/build with -m32]
    1.78 +                             [(default is no)]),
    1.79 +              [case "${enableval}" in
    1.80 +                 yes)
    1.81 +                   CFLAGS="${CFLAGS} -m32"
    1.82 +                   CXXFLAGS="${CXXFLAGS} -m32"
    1.83 +                   usem32=true
    1.84 +                   ;;
    1.85 +                 no)
    1.86 +                   usem32=false
    1.87 +                   ;;
    1.88 +                 *)
    1.89 +                   AC_MSG_ERROR(bad value ${enableval} for --enable-m32)
    1.90 +                   ;;
    1.91 +               esac],
    1.92 +              [usem32=false])
    1.93 +
    1.94 +AC_ARG_ENABLE(processor,
    1.95 +              AS_HELP_STRING([--disable-processor],
    1.96 +                             [Don't build processor library]
    1.97 +                             [(default is no)]),
    1.98 +              [case "${enableval}" in
    1.99 +                 yes)
   1.100 +                   disable_processor=false
   1.101 +                   ;;
   1.102 +                 no)
   1.103 +                   disable_processor=true
   1.104 +                   ;;
   1.105 +                 *)
   1.106 +                   AC_MSG_ERROR(bad value ${enableval} for --disable-processor)
   1.107 +                   ;;
   1.108 +               esac],
   1.109 +              [disable_processor=false])
   1.110 +AM_CONDITIONAL(DISABLE_PROCESSOR, test x$disable_processor = xtrue)
   1.111 +
   1.112 +AC_ARG_ENABLE(tools,
   1.113 +              AS_HELP_STRING([--disable-tools],
   1.114 +                             [Don't build tool binaries]
   1.115 +                             [(default is no)]),
   1.116 +              [case "${enableval}" in
   1.117 +                 yes)
   1.118 +                   disable_tools=false
   1.119 +                   ;;
   1.120 +                 no)
   1.121 +                   disable_tools=true
   1.122 +                   ;;
   1.123 +                 *)
   1.124 +                   AC_MSG_ERROR(bad value ${enableval} for --disable-tools)
   1.125 +                   ;;
   1.126 +               esac],
   1.127 +              [disable_tools=false])
   1.128 +AM_CONDITIONAL(DISABLE_TOOLS, test x$disable_tools = xtrue)
   1.129 +
   1.130 +if test x$LINUX_HOST = xfalse -a x$disable_processor = xtrue -a x$disable_tools = xtrue; then
   1.131 +   AC_MSG_ERROR([--disable-processor and --disable-tools were specified, and not building for Linux. Nothing to build!])
   1.132 +fi
   1.133 +
   1.134 +AC_ARG_ENABLE(selftest,
   1.135 +              AS_HELP_STRING([--enable-selftest],
   1.136 +                             [Run extra tests with "make check" ]
   1.137 +                             [(may conflict with optimizations) ]
   1.138 +                             [(default is no)]),
   1.139 +              [case "${enableval}" in
   1.140 +                 yes)
   1.141 +                   selftest=true
   1.142 +                   ;;
   1.143 +                 no)
   1.144 +                   selftest=false
   1.145 +                   ;;
   1.146 +                 *)
   1.147 +                   AC_MSG_ERROR(bad value ${enableval} for --enable-selftest)
   1.148 +                   ;;
   1.149 +               esac],
   1.150 +              [selftest=false])
   1.151 +AM_CONDITIONAL(SELFTEST, test x$selftest = xtrue)
   1.152 +
   1.153 +AC_CONFIG_FILES([Makefile])
   1.154 +AC_OUTPUT

mercurial