autoconf: fix handling of --enable/--disable options, WINE fix
commit0da1549b7386c60669b34819b0c93b700d212b3c
authorH. Peter Anvin <hpa@zytor.com>
Thu, 6 Apr 2017 22:24:58 +0000 (6 15:24 -0700)
committerH. Peter Anvin <hpa@zytor.com>
Thu, 6 Apr 2017 22:48:45 +0000 (6 15:48 -0700)
tree54354378f8740253f7f8028bf4fafbc537fab6f1
parent3646e7dde050c06101d1b1bb4dd4f944354777de
autoconf: fix handling of --enable/--disable options, WINE fix

AC_ARG_ENABLE() doesn't really work the way you expect: one argument
is called on *any* invocation.  Create simple helper wrappers to get
the effect we really want for boolean options.

Define WINELOADER=/dev/null to prevent autoconf from inadvertently
running Wine and think we are not cross-compiling even if we are.  It
is at the very best slow and buys us absolutely nothing.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
aclocal.m4
configure.ac