summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorAlan Coopersmith <Alan.Coopersmith@sun.com>2005-09-28 16:55:25 +0000
committerAlan Coopersmith <Alan.Coopersmith@sun.com>2005-09-28 16:55:25 +0000
commitf53404bdbba23fd46420564565ab815f7c20b101 (patch)
tree6252b521cd913c17489ceb16621dd95c326d5dee /configure.ac
parent940158a6f2e98069a47293d713df674e16ad8a11 (diff)
Add kbd_mode build system
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac24
1 files changed, 24 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 8a750f6a6..6095c325e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1044,6 +1044,29 @@ fi
AM_CONDITIONAL(BUILD_XORGCFG, [test x$XORGCFG = xyes])
AM_CONDITIONAL(USE_CURSES, [test x$CURSES = xyes])
+AC_ARG_ENABLE(kbd_mode, AS_HELP_STRING([ --enable-kbd_mode],
+ [Build kbd_mode utility (default: auto)]),
+ [BUILD_KBD_MODE=$enable_val], [BUILD_KBD_MODE="auto"])
+if test x$BUILD_KBD_MODE != xno ; then
+ case $host_os in
+ *bsd*)
+ KBD_MODE_TYPE="bsd"
+# BUILD_KBD_MODE="yes" # need to test on BSD before enabling
+ # by default
+ ;;
+ solaris*)
+ KBD_MODE_TYPE="sun"
+ BUILD_KBD_MODE="yes" # enabled by default
+ ;;
+ *)
+ BUILD_KBD_MODE="no" # disabled by default
+ ;;
+ esac
+fi
+AM_CONDITIONAL(BUILD_KBD_MODE, [test x$BUILD_KBD_MODE = xyes])
+AM_CONDITIONAL(BSD_KBD_MODE, [test x$KBD_MODE_TYPE = xbsd])
+AM_CONDITIONAL(SUN_KBD_MODE, [test x$KBD_MODE_TYPE = xsun])
+
CFLAGS="$XSERVER_CFLAGS $CFLAGS"
AC_SUBST([CFLAGS])
@@ -1145,6 +1168,7 @@ hw/xfree86/xf8_32bpp/Makefile
hw/xfree86/xf8_32wid/Makefile
hw/xfree86/utils/Makefile
hw/xfree86/utils/ioport/Makefile
+hw/xfree86/utils/kbd_mode/Makefile
hw/xfree86/utils/pcitweak/Makefile
hw/xfree86/utils/scanpci/Makefile
hw/xfree86/utils/xorgcfg/Makefile