OLD | NEW |
1 # Copyright (c) 2006, Google Inc. | 1 # Copyright (c) 2006, Google Inc. |
2 # All rights reserved. | 2 # All rights reserved. |
3 # | 3 # |
4 # Redistribution and use in source and binary forms, with or without | 4 # Redistribution and use in source and binary forms, with or without |
5 # modification, are permitted provided that the following conditions are | 5 # modification, are permitted provided that the following conditions are |
6 # met: | 6 # met: |
7 # | 7 # |
8 # * Redistributions of source code must retain the above copyright | 8 # * Redistributions of source code must retain the above copyright |
9 # notice, this list of conditions and the following disclaimer. | 9 # notice, this list of conditions and the following disclaimer. |
10 # * Redistributions in binary form must reproduce the above | 10 # * Redistributions in binary form must reproduce the above |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 AC_MSG_ERROR(bad value ${enableval} for --disable-tools) | 128 AC_MSG_ERROR(bad value ${enableval} for --disable-tools) |
129 ;; | 129 ;; |
130 esac], | 130 esac], |
131 [disable_tools=false]) | 131 [disable_tools=false]) |
132 AM_CONDITIONAL(DISABLE_TOOLS, test x$disable_tools = xtrue) | 132 AM_CONDITIONAL(DISABLE_TOOLS, test x$disable_tools = xtrue) |
133 | 133 |
134 if test x$LINUX_HOST = xfalse -a x$disable_processor = xtrue -a x$disable_tools
= xtrue; then | 134 if test x$LINUX_HOST = xfalse -a x$disable_processor = xtrue -a x$disable_tools
= xtrue; then |
135 AC_MSG_ERROR([--disable-processor and --disable-tools were specified, and not
building for Linux. Nothing to build!]) | 135 AC_MSG_ERROR([--disable-processor and --disable-tools were specified, and not
building for Linux. Nothing to build!]) |
136 fi | 136 fi |
137 | 137 |
| 138 AC_ARG_ENABLE(system-test-libs, |
| 139 AS_HELP_STRING([--enable-system-test-libs], |
| 140 [Use gtest/gmock/etc... from the system instead ] |
| 141 [of the local copies (default is local)]), |
| 142 [case "${enableval}" in |
| 143 yes) |
| 144 system_test_libs=true |
| 145 ;; |
| 146 no) |
| 147 system_test_libs=false |
| 148 ;; |
| 149 *) |
| 150 AC_MSG_ERROR(bad value ${enableval} for --enable-system-test-
libs) |
| 151 ;; |
| 152 esac], |
| 153 [system_test_libs=false]) |
| 154 AM_CONDITIONAL(SYSTEM_TEST_LIBS, test x$system_test_libs = xtrue) |
| 155 |
| 156 AC_ARG_VAR([GMOCK_CONFIG], [Path to gmock-config script]) |
| 157 AC_ARG_VAR([GMOCK_CFLAGS], [Compiler flags for gmock]) |
| 158 AC_ARG_VAR([GMOCK_LIBS], [Linker flags for gmock]) |
| 159 AC_ARG_VAR([GTEST_CONFIG], [Path to gtest-config script]) |
| 160 AC_ARG_VAR([GTEST_CFLAGS], [Compiler flags for gtest]) |
| 161 AC_ARG_VAR([GTEST_LIBS], [Linker flags for gtest]) |
| 162 if test x$system_test_libs = xtrue; then |
| 163 AC_CHECK_TOOL([GMOCK_CONFIG], [gmock-config]) |
| 164 AC_CHECK_TOOL([GTEST_CONFIG], [gtest-config]) |
| 165 GMOCK_CFLAGS=`$GMOCK_CONFIG --cppflags --cxxflags` |
| 166 GMOCK_LIBS=`$GMOCK_CONFIG --ldflags --libs` |
| 167 GTEST_CFLAGS=`$GTEST_CONFIG --cppflags --cxxflags` |
| 168 GTEST_LIBS=`$GTEST_CONFIG --ldflags --libs` |
| 169 fi |
| 170 |
138 AC_ARG_ENABLE(selftest, | 171 AC_ARG_ENABLE(selftest, |
139 AS_HELP_STRING([--enable-selftest], | 172 AS_HELP_STRING([--enable-selftest], |
140 [Run extra tests with "make check" ] | 173 [Run extra tests with "make check" ] |
141 [(may conflict with optimizations) ] | 174 [(may conflict with optimizations) ] |
142 [(default is no)]), | 175 [(default is no)]), |
143 [case "${enableval}" in | 176 [case "${enableval}" in |
144 yes) | 177 yes) |
145 selftest=true | 178 selftest=true |
146 ;; | 179 ;; |
147 no) | 180 no) |
148 selftest=false | 181 selftest=false |
149 ;; | 182 ;; |
150 *) | 183 *) |
151 AC_MSG_ERROR(bad value ${enableval} for --enable-selftest) | 184 AC_MSG_ERROR(bad value ${enableval} for --enable-selftest) |
152 ;; | 185 ;; |
153 esac], | 186 esac], |
154 [selftest=false]) | 187 [selftest=false]) |
155 AM_CONDITIONAL(SELFTEST, test x$selftest = xtrue) | 188 AM_CONDITIONAL(SELFTEST, test x$selftest = xtrue) |
156 | 189 |
157 AC_CONFIG_FILES(m4_flatten([ | 190 AC_CONFIG_FILES(m4_flatten([ |
158 breakpad.pc | 191 breakpad.pc |
159 breakpad-client.pc | 192 breakpad-client.pc |
160 Makefile | 193 Makefile |
161 ])) | 194 ])) |
162 | 195 |
163 AC_OUTPUT | 196 AC_OUTPUT |
OLD | NEW |