diff options
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 | |||
| 18 | 18 | ||
| 19 | PKG_CHECK_MODULES(libusb, libusb >= 0.1.12) | 19 | PKG_CHECK_MODULES(libusb, libusb >= 0.1.12) |
| 20 | 20 | ||
| 21 | # check for options | ||
| 22 | AC_ARG_ENABLE([hacks], | ||
| 23 | [AS_HELP_STRING([--disable-hacks], | ||
| 24 | [disable hacks that provide workarounds for certain problems])], | ||
| 25 | [enable_hacks=no], | ||
| 26 | [enable_hacks=yes]) | ||
| 27 | if test "x$enable_hacks" = xyes; then | ||
| 28 | AC_DEFINE(ENABLE_HACKS, 1, [Define if you want hacks enabled]) | ||
| 29 | echo "Note: hacks are enabled." | ||
| 30 | else | ||
| 31 | echo "Note: hacks are DISABLED." | ||
| 32 | fi | ||
| 33 | AM_CONDITIONAL(ENABLE_HACKS, test "x$enable_hacks" = xyes) | ||
| 34 | |||
| 21 | # Output files | 35 | # Output files |
| 22 | 36 | ||
| 23 | AC_OUTPUT([ | 37 | AC_OUTPUT([ |
