diff options
author | fergus.henderson <fergushenderson@users.noreply.github.com> | 2014-04-02 23:14:25 +0000 |
---|---|---|
committer | fergus.henderson <fergushenderson@users.noreply.github.com> | 2014-04-02 23:14:25 +0000 |
commit | 214838b742467896aa19f9bb5546b0ca23ad80be (patch) | |
tree | 3f7117c25bf738377e31240060fb2924f29f2afa /configure.ac | |
parent | be166dc858c9ecde202bbc81f4cc7cf9a375dab2 (diff) | |
download | distcc-git-214838b742467896aa19f9bb5546b0ca23ad80be.tar.gz |
Apply patch for issue 139
<http://code.google.com/p/distcc/issues/detail?id=139>:
add configure option --without-libiberty, to allow
building distcc without GPL3 license encumbrance.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/configure.ac b/configure.ac index 8b18122..feec478 100644 --- a/configure.ac +++ b/configure.ac @@ -359,17 +359,21 @@ else POPT_INCLUDES='' fi -AC_CHECK_LIB([iberty], [expandargv], - , - AC_MSG_ERROR([Cannot find libiberty])) -AC_CHECK_HEADERS([libiberty.h libiberty/libiberty.h], - [break]) -if (test "$ac_cv_header_libiberty_h" != yes) && - (test "$ac_cv_header_libiberty_libiberty_h" != yes); then - AC_MSG_ERROR([Cannot find libiberty.h]) +AC_ARG_WITH(binutils, + AC_HELP_STRING([--without-libiberty], [build without libiberty (no @file support)])) + +if test x"$with_libiberty" != xno; then + AC_CHECK_LIB([iberty], [expandargv], + , + AC_MSG_ERROR([Cannot find libiberty])) + AC_CHECK_HEADERS([libiberty.h libiberty/libiberty.h], + [break]) + if (test "$ac_cv_header_libiberty_h" != yes) && + (test "$ac_cv_header_libiberty_libiberty_h" != yes); then + AC_MSG_ERROR([Cannot find libiberty.h]) + fi fi - ######################################################################## # Check for types AC_TYPE_SIGNAL |