0001-fix-configure-debug.patch 1013 B

1234567891011121314151617181920212223
  1. AC_ARG_ENABLE is passed wrong parameters for action-if-given:
  2. If someone passed --enable-debug to configure enable_debug was set to 'yes',
  3. but if --disable-debug was passed the action is also called and debug was
  4. also set to 'yes' which is wrong.
  5. Use $enableval for this case.
  6. Reported upstream as ISC-Bugs #37780 (not publicly accesible).
  7. Thanks to Nathaniel Roach for pointing out the problem.
  8. Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
  9. diff -Nura dhcp-4.1-ESV-R10.orig/configure.ac dhcp-4.1-ESV-R10/configure.ac
  10. --- dhcp-4.1-ESV-R10.orig/configure.ac 2014-11-11 09:50:07.719277076 -0300
  11. +++ dhcp-4.1-ESV-R10/configure.ac 2014-11-11 09:51:10.722432148 -0300
  12. @@ -53,7 +53,7 @@
  13. AC_ARG_ENABLE(debug,
  14. AC_HELP_STRING([--enable-debug],
  15. [create a debug-only version of the software (default is no).]),
  16. - [enable_debug=yes],[enable_debug=no])
  17. + [enable_debug=$enableval],[enable_debug=no])
  18. # This is very much off by default.
  19. if test "$enable_debug" = "yes" ; then
  20. AC_DEFINE([DEBUG], [1],