diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2009-02-25 00:52:05 +0100 |
---|---|---|
committer | Lars-Peter Clausen <lars@metafoo.de> | 2009-02-25 00:52:05 +0100 |
commit | 99b38c284e91efc45f9bc4c087e462abe98ae0a4 (patch) | |
tree | 69f93ee0ecdd650a5c1e4c3ae6b3738fd1dc34ca /configure.ac | |
parent | 703acea131caf72e71f04a0ad40f540fe236be89 (diff) |
Make the path to the sysfs state file for the jbt6k47 display driver
configurable. It can either be set at configure time with
--with-jbt6k47-state-path=PATH. Or at runtime in the xorg.conf device section.
The option name is StatePath.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 7720337..f3b1712 100644 --- a/configure.ac +++ b/configure.ac @@ -50,6 +50,17 @@ AC_ARG_ENABLE(pciaccess, AS_HELP_STRING([--enable-pciaccess], [Enable use of libpciaccess (default: disabled)]), [PCIACCESS=$enableval], [PCIACCESS=no]) +AC_ARG_ENABLE(jbt6k74-set-state, AS_HELP_STRING([--disable-jbt6k74-set-state], + [Whether the driver should set the jbt6k74 + state when changing resolution (default: + enabled)]), + [JBT6K74_SET_STATE=$enableval], [JBT6K74_SET_STATE=yes]) + +AC_ARG_WITH(jbt6k74-state-path, AS_HELP_STRING([--with-jbt6k74-state-path=PATH], + [Path to the jbt6k74 sysfs state file [[default=/sys/bus/spi/devices/spi2.0/state]]]), + [JBT6K74_STATE_PATH="$withval"], + [JBT6K74_STATE_PATH="/sys/bus/spi/devices/spi2.0/state"]) + # Checks for extensions XORG_DRIVER_CHECK_EXT(RANDR, randrproto) XORG_DRIVER_CHECK_EXT(RENDER, renderproto) @@ -66,6 +77,11 @@ if test "x$PCIACCESS" = xyes; then XORG_CFLAGS="$XORG_CFLAGS $PCIACCESS_CFLAGS" fi +if test "x$JBT6K74_SET_STATE" = xyes; then + AC_DEFINE(JBT6K74_SET_STATE, 1, [Set jbt6k74 state when changing resolution]) + AC_DEFINE_UNQUOTED(JBT6K74_STATE_PATH, "$JBT6K74_STATE_PATH", [Path to the jbt6k74 sysfs state path]) +fi + # Checks for libraries. # Checks for header files. |