diff options
author | Nikias Bassen | 2009-08-02 07:35:00 +0200 |
---|---|---|
committer | Nikias Bassen | 2009-08-02 07:35:00 +0200 |
commit | 6fbd2a72122d6bcd70edbf599baa7465e3e9acb6 (patch) | |
tree | feb60a5383dffef6e095a59168547f6a13791c7d /configure.ac | |
parent | a4ef4325ec1b6cddd4212a6fec954cba270cebb4 (diff) | |
download | usbmuxd-6fbd2a72122d6bcd70edbf599baa7465e3e9acb6.tar.gz usbmuxd-6fbd2a72122d6bcd70edbf599baa7465e3e9acb6.tar.bz2 |
include config.h and defined ENABLE_HACKS
Use --disable-hacks to NOT enable hacks like the N*128/N*512 hack when
running configure. Hacks are enabled by default.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 55ce7af..d8c10f8 100644 --- a/configure.ac +++ b/configure.ac @@ -18,6 +18,20 @@ AC_PROG_INSTALL PKG_CHECK_MODULES(libusb, libusb >= 0.1.12) +# check for options +AC_ARG_ENABLE([hacks], + [AS_HELP_STRING([--disable-hacks], + [disable hacks that provide workarounds for certain problems])], + [enable_hacks=no], + [enable_hacks=yes]) +if test "x$enable_hacks" = xyes; then + AC_DEFINE(ENABLE_HACKS, 1, [Define if you want hacks enabled]) + echo "Note: hacks are enabled." +else + echo "Note: hacks are DISABLED." +fi +AM_CONDITIONAL(ENABLE_HACKS, test "x$enable_hacks" = xyes) + # Output files AC_OUTPUT([ |