summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorben <ben@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-05-18 11:53:00 +0000
committerben <ben@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-05-18 11:53:00 +0000
commitdc6d14fb1b20e86cc24c6fbe5ce239566e5d588e (patch)
tree0577b8baadd2986746a75e36642b543e0d6212fc /configure
parent971b1a83d8751fdeb6640afa705eb9a39375f286 (diff)
downloadmpv-dc6d14fb1b20e86cc24c6fbe5ce239566e5d588e.tar.bz2
mpv-dc6d14fb1b20e86cc24c6fbe5ce239566e5d588e.tar.xz
Add support for AppleIR Remote as an input under Linux systems.
This requires Linux 2.6 with evdev and appleir drivers. The keymapping is done to mimics the one that was done for MacOSX. WARNING: Most distributions do not seems to bother and only let root access to the device. Modify udev rules accordingly if you want regular user to be able to use the remote. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26795 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure29
1 files changed, 29 insertions, 0 deletions
diff --git a/configure b/configure
index bede9a9006..fbb02c7a1d 100755
--- a/configure
+++ b/configure
@@ -229,6 +229,7 @@ Optional features:
--enable-lircc enable LIRCCD (LIRC client daemon) input [autodetect]
--enable-joystick enable joystick support [disable]
--enable-apple-remote enable Apple Remote input (Mac OS X only) [autodetect]
+ --enable-apple-ir enable Apple IR Remote input (Linux only) [autodetect]
--disable-vm disable X video mode extensions [autodetect]
--disable-xf86keysym disable support for multimedia keys [autodetect]
--enable-radio enable radio interface [disable]
@@ -630,6 +631,7 @@ _libnut=auto
_lirc=auto
_lircc=auto
_apple_remote=auto
+_apple_ir=auto
_gui=no
_gtk1=no
_termcap=auto
@@ -1073,6 +1075,8 @@ for ac_option do
--disable-lircc) _lircc=no ;;
--enable-apple-remote) _apple_remote=yes ;;
--disable-apple-remote) _apple_remote=no ;;
+ --enable-apple-ir) _apple_ir=yes ;;
+ --disable-apple-ir) _apple_ir=no ;;
--enable-gui) _gui=yes ;;
--disable-gui) _gui=no ;;
--enable-gtk1) _gtk1=yes ;;
@@ -3604,6 +3608,27 @@ echores "$_apple_remote"
fi #if darwin
+if linux; then
+
+echocheck "Apple IR"
+if test "$_apple_ir" = auto ; then
+ _apple_ir=no
+ cat > $TMPC <<EOF
+#include <linux/input.h>
+int main(void) {
+ struct input_event ev;
+ return 0;
+}
+EOF
+ cc_check && tmp_run && _apple_ir=yes
+fi
+if test "$_apple_ir" = yes ; then
+ _def_apple_ir='#define HAVE_APPLE_IR 1'
+else
+ _def_apple_ir='#undef HAVE_APPLE_IR'
+fi
+echores "$_apple_ir"
+fi #if linux
echocheck "pkg-config"
_pkg_config=pkg-config
@@ -7640,6 +7665,7 @@ LADSPA = $_ladspa
JOYSTICK = $_joystick
LIRC = $_lirc
APPLE_REMOTE = $_apple_remote
+APPLE_IR = $_apple_ir
TV = $_tv
TV_V4L = $_tv_v4l
TV_V4L1 = $_tv_v4l1
@@ -8050,6 +8076,9 @@ $_def_lirc
/* Apple Remote (remote control, see http://docs.info.apple.com/article.html?artnum=302504) support: */
$_def_apple_remote
+/* Apple IR Remote (Linux remote control driver) */
+$_def_apple_ir
+
/* Support for maemo (http://www.maemo.org) */
$_def_maemo