diff options
author | Daniel Stone <daniel@fooishbar.org> | 2005-12-23 07:40:44 +0000 |
---|---|---|
committer | Daniel Stone <daniel@fooishbar.org> | 2005-12-23 07:40:44 +0000 |
commit | 5fd978b1e7bce9169f87712a4a7c2c36a68ac00a (patch) | |
tree | 1fc8dd56bab213d250a3dad3a0ec432c3e283f27 /configure.ac | |
parent | 5230e86b1cc841bfb35806618052aa835b7eb7e7 (diff) |
Make LBX configuration default to auto.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 4b94e78de..ad4529f12 100644 --- a/configure.ac +++ b/configure.ac @@ -383,7 +383,7 @@ AC_ARG_ENABLE(xf86vidmode, AS_HELP_STRING([--disable-xf86vidmode], [Build XF8 AC_ARG_ENABLE(xf86misc, AS_HELP_STRING([--disable-xf86misc], [Build XF86Misc extension (default: enabled)]), [XF86MISC=$enableval], [XF86MISC=yes]) AC_ARG_ENABLE(xcsecurity, AS_HELP_STRING([--disable-xcsecurity], [Build Security extension (default: enabled)]), [XCSECURITY=$enableval], [XCSECURITY=yes]) AC_ARG_ENABLE(xevie, AS_HELP_STRING([--disable-xevie], [Build XEvIE extension (default: enabled)]), [XEVIE=$enableval], [XEVIE=yes]) -AC_ARG_ENABLE(lbx, AS_HELP_STRING([--disable-lbx], [Build LBX extension (default: enabled)]), [LBX=$enableval], [LBX=yes]) +AC_ARG_ENABLE(lbx, AS_HELP_STRING([--disable-lbx], [Build LBX extension (default: auto)]), [LBX=$enableval], [LBX=auto]) AC_ARG_ENABLE(appgroup, AS_HELP_STRING([--disable-appgroup], [Build XC-APPGROUP extension (default: enabled)]), [APPGROUP=$enableval], [APPGROUP=yes]) AC_ARG_ENABLE(cup, AS_HELP_STRING([--disable-cup], [Build TOG-CUP extension (default: enabled)]), [CUP=$enableval], [CUP=yes]) AC_ARG_ENABLE(evi, AS_HELP_STRING([--disable-evi], [Build Extended-Visual-Information extension (default: enabled)]), [EVI=$enableval], [EVI=yes]) @@ -536,6 +536,16 @@ fi AM_CONDITIONAL(GLX, test "x$GLX" = xyes) AC_SUBST([MESA_SOURCE]) +PKG_CHECK_MODULES([LBXUTIL_TEST], [lbxutil], [have_lbxutil=yes], [have_lbxutil=no]) + +if test "x$LBX" = xauto; then + if test "x$have_lbxutil" = "xyes"; then + LBX="yes" + else + LBX="no" + fi +fi + AM_CONDITIONAL(LBX, [test "x$LBX" = xyes]) if test "x$LBX" = xyes; then AC_DEFINE(LBX, 1, [Support LBX extension]) |