summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJavier Pello <javier.pello@urjc.es>2013-05-06 13:08:55 +0200
committerJames Cloos <cloos@jhcloos.com>2013-06-06 18:05:40 -0400
commit2c16f3221c15b88a1122c35c0b091e8fcc2523fe (patch)
tree7c5fdc69e8fcadca41fd5bb758ee2b2be6dcfaf7
parent140f8fd3017f180e4e410a8385c5d43db7d85dab (diff)
Fix --disable-feature options in configure
Make --disable-feature options passed to configure not enable the feature but keep it disabled instead. Signed-off-by: Javier Pello <javier.pello@urjc.es> Signed-off-by: James Cloos <cloos@jhcloos.com>
-rw-r--r--configure.ac23
1 files changed, 17 insertions, 6 deletions
diff --git a/configure.ac b/configure.ac
index a38ce7f..32e21e9 100644
--- a/configure.ac
+++ b/configure.ac
@@ -47,18 +47,29 @@ fi
AM_CONDITIONAL(XAW_INTERNATIONALIZATION, [test "x$XAW_I18N" = xyes])
AC_ARG_ENABLE([multiplane-bitmaps],
- [AS_HELP_STRING([--enable-multiplane-bitmaps], dnl
- [enable XPM support])],
+ [AS_HELP_STRING([--enable-multiplane-bitmaps], [enable XPM support])],
+ [],
+ [enable_multiplane_bitmaps=no])
+
+AS_IF([test "x$enable_multiplane_bitmaps" != xno],
[XAW3D_CPPFLAGS="${XAW3D_CPPFLAGS} -DXAW_MULTIPLANE_PIXMAPS" dnl
PKG_CHECK_MODULES(XPM, xpm)])
AC_ARG_ENABLE([gray-stipples],
- [AS_HELP_STRING([--enable-gray-stipples], dnl
- [enable gray stipples])], [XAW3D_CPPFLAGS="${XAW3D_CPPFLAGS} -DXAW_GRAY_BLKWHT_STIPPLES"])
+ [AS_HELP_STRING([--enable-gray-stipples], [enable gray stipples])],
+ [],
+ [enable_gray_stipples=no])
+
+AS_IF([test "x$enable_gray_stipples" != xno],
+ [XAW3D_CPPFLAGS="${XAW3D_CPPFLAGS} -DXAW_GRAY_BLKWHT_STIPPLES"])
AC_ARG_ENABLE([arrow-scrollbars],
- [AS_HELP_STRING([--enable-arrow-scrollbars], dnl
- [enable arrow scrollbars])], [XAW3D_CPPFLAGS="${XAW3D_CPPFLAGS} -DXAW_ARROW_SCROLLBARS"])
+ [AS_HELP_STRING([--enable-arrow-scrollbars], [enable arrow scrollbars])],
+ [],
+ [enable_arrow_scrollbars=no])
+
+AS_IF([test "x$enable_arrow_scrollbars" != xno],
+ [XAW3D_CPPFLAGS="${XAW3D_CPPFLAGS} -DXAW_ARROW_SCROLLBARS"])
AC_SUBST(XAW3D_CPPFLAGS)