diff options
author | ted.mielczarek <ted.mielczarek@4c0a9323-5329-0410-9bdc-e9ce6186880e> | 2010-10-05 19:38:22 +0000 |
---|---|---|
committer | ted.mielczarek <ted.mielczarek@4c0a9323-5329-0410-9bdc-e9ce6186880e> | 2010-10-05 19:38:22 +0000 |
commit | e574a2adc64565a6170aac2023b13b2b1d41f40b (patch) | |
tree | 16a68f50e0724dad1c46e052c2dd8df7b697ec42 /configure.ac | |
parent | missed test crashdumps in revision 706. (diff) | |
download | breakpad-e574a2adc64565a6170aac2023b13b2b1d41f40b.tar.xz |
add a --disable-processor configure arg to skip building processor libs and just build client libs
R=nealsid at http://breakpad.appspot.com/209001/show
git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@708 4c0a9323-5329-0410-9bdc-e9ce6186880e
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index f85db345..7737a508 100644 --- a/configure.ac +++ b/configure.ac @@ -78,6 +78,28 @@ AC_ARG_ENABLE(m32, esac], [usem32=false]) +AC_ARG_ENABLE(processor, + AS_HELP_STRING([--disable-processor], + [Don't build processor library] + [(default is no)]), + [case "${enableval}" in + yes) + disable_processor=false + ;; + no) + disable_processor=true + ;; + *) + AC_MSG_ERROR(bad value ${enableval} for --disable-processor) + ;; + esac], + [disable_processor=false]) +AM_CONDITIONAL(DISABLE_PROCESSOR, test x$disable_processor = xtrue) + +if test x$LINUX_HOST = xfalse -a x$disable_processor = xtrue; then + AC_MSG_ERROR([--disable-processor was specified, and not building for Linux. Nothing to build!]) +fi + AC_CHECK_MEMBER(struct sockaddr.sa_len, [AC_DEFINE([GET_SA_LEN(X)],[(((struct sockaddr*)&(X))->sa_len)], [actual length of specific struct sockaddr])], |