diff -Nurp MPlayer-0.90pre9-old/configure MPlayer-0.90pre9/configure
--- configure	2003-02-06 03:01:18.000000000 +0100
+++ configure	2003-02-06 03:03:28.000000000 +0100
@@ -135,6 +135,7 @@ Optional features:
   --disable-iconv        do not use iconv(3) function [autodetect]
   --disable-setlocale    disable setlocale using in mplayer [autodetect]
   --enable-lirc          enable LIRC (remote control) support [autodetect]
+  --enable-lircc         enable LIRCCD (LIRC client daemon) input [autodetect]
   --enable-joystick      enable joystick support [disable]
   --disable-tv           disable TV Interface (tv/dvb grabbers) [enable]
   --disable-tv-v4l       disable Video4Linux TV Interface support [autodetect]
@@ -985,6 +986,7 @@ _xvid=auto
 _divx4linux=auto
 _opendivx=no
 _lirc=auto
+_lircc=auto
 _gui=no
 _termcap=auto
 _termios=auto
@@ -1138,6 +1140,8 @@ for ac_option do
   --disable-libfame)	_fame=no	;;
   --enable-lirc)	_lirc=yes	;;
   --disable-lirc)	_lirc=no	;;
+  --enable-lircc)	_lircc=yes	;;
+  --disable-lircc)	_lircc=no	;;
   --enable-gui)		_gui=yes	;;
   --disable-gui)	_gui=no		;;
   --enable-termcap)	_termcap=yes	;;
@@ -4375,6 +4379,23 @@ else
 fi
 echores "$_lirc"
 
+echocheck "lircc"
+if test "$_lircc" = auto ; then
+  _lircc=no
+  cat > $TMPC <<EOF
+#include <lirc/lircc.h>
+int main(void) { return 0; }
+EOF
+  cc_check -llircc && _lircc=yes
+fi
+if test "$_lircc" = yes ; then
+  _def_lircc='#define HAVE_LIRCC 1'
+  _ld_lircc='-llircc'
+else
+  _def_lircc='#undef HAVE_LIRCC'
+fi
+echores "$_lircc"
+
 
 #############################################################################
 echo "Creating config.mak"
@@ -4451,6 +4472,7 @@ SGIAUDIO_LIB = $_ld_sgiaudio
 # input/demuxer/codecs
 TERMCAP_LIB = $_ld_termcap
 LIRC_LIB = $_ld_lirc
+LIRCC_LIB = $_ld_lircc
 CSS_USE = $_css
 CSS_LIB = $_ld_css
 DVDKIT = $_dvdkit
@@ -4680,6 +4702,12 @@ $_def_vsscanf
 /* LIRC (remote control, see www.lirc.org) support: */
 $_def_lirc
 
+/*
+ * LIRCCD (LIRC client daemon)
+ * See http://www.dolda2000.cjb.net/~fredrik/lirccd/
+ */
+$_def_lircc
+
 /* DeCSS support using libcss */
 $_def_css
 
diff -Nurp MPlayer-0.90pre9-old/help/help_mp-en.h MPlayer-0.90pre9/help/help_mp-en.h
--- help/help_mp-en.h	2003-02-06 03:14:51.000000000 +0100
+++ help/help_mp-en.h	2003-02-06 03:16:25.000000000 +0100
@@ -271,6 +271,10 @@ static char help_text[]=
 #define MSGTR_LIRCopenfailed "Failed opening lirc support!\n"
 #define MSGTR_LIRCcfgerr "Failed to read LIRC config file %s!\n"
 
+// LIRCC:
+#define MSGTR_SettingUpLIRCC "Setting up lircc support...\n"
+#define MSGTR_LIRCCopenfailed "Connection to lirccd failed!\n"
+
 // vf.c
 #define MSGTR_CouldNotFindVideoFilter "Couldn't find video filter '%s'\n"
 #define MSGTR_CouldNotOpenVideoFilter "Couldn't open video filter '%s'\n"
diff -Nurp MPlayer-0.90pre9-old/input/input.c MPlayer-0.90pre9/input/input.c
--- input/input.c	2003-02-06 03:04:42.000000000 +0100
+++ input/input.c	2003-02-06 03:22:58.000000000 +0100
@@ -32,6 +32,10 @@
 #include "lirc.h"
 #endif
 
+#ifdef HAVE_LIRCC
+#include <lirc/lircc.h>
+#endif
+
 /// This array defines all know commands.
 /// The first field is an id used to recognize the command without too many strcmp
 /// The second is abviously the command name
@@ -308,7 +312,7 @@ static short ar_state = -1;
 static mp_cmd_t* ar_cmd = NULL;
 static unsigned int ar_delay = 100, ar_rate = 8, last_ar = 0;
 
-static int use_joystick = 1, use_lirc = 1;
+static int use_joystick = 1, use_lirc = 1, use_lircc = 1;
 static char* config_file = "input.conf";
 
 static char* js_dev = NULL;
@@ -337,6 +341,8 @@ static config_t mp_input_opts[] = {
   { "joystick", &use_joystick,  CONF_TYPE_FLAG, CONF_GLOBAL, 0, 1, NULL },
   { "nolirc", &use_lirc, CONF_TYPE_FLAG, CONF_GLOBAL, 1, 0, NULL },
   { "lirc", &use_lirc, CONF_TYPE_FLAG, CONF_GLOBAL, 0, 1, NULL },
+  { "nolircc", &use_lircc, CONF_TYPE_FLAG, CONF_GLOBAL, 1, 0, NULL },
+  { "lircc", &use_lircc, CONF_TYPE_FLAG, CONF_GLOBAL, 0, 1, NULL },
   { NULL, NULL, 0, 0, 0, 0, NULL}
 };
 
@@ -1298,6 +1304,13 @@ mp_input_init(void) {
   }
 #endif
 
+#ifdef HAVE_LIRCC
+  if(use_lircc) {
+    if(!lircc_init("mplayer", NULL))
+      mp_input_add_cmd_fd(lircc_fd,1,NULL,(mp_close_func_t)lircc_cleanup);
+  }
+#endif
+
   if(in_file) {
     struct stat st;
     if(stat(in_file,&st))
diff -Nurp MPlayer-0.90pre9-old/Makefile MPlayer-0.90pre9/Makefile
--- Makefile	2003-02-06 04:43:04.000000000 +0100
+++ Makefile	2003-02-06 04:43:08.000000000 +0100
@@ -175,7 +175,7 @@ endif
 
 $(PRG):	$(MPLAYER_DEP)
 	./darwinfixlib.sh $(MPLAYER_DEP)
-	$(CC) $(CFLAGS) -o $(PRG) $(OBJS_MPLAYER) libvo/libvo.a libao2/libao2.a $(VIDIX_LIBS) $(GUI_LIBS) $(COMMON_LIBS) $(GTK_LIBS) $(VO_LIBS) $(AO_LIBS) $(EXTRA_LIB) $(LIRC_LIB) $(STATIC_LIB) $(ARCH_LIB) -lm 
+	$(CC) $(CFLAGS) -o $(PRG) $(OBJS_MPLAYER) libvo/libvo.a libao2/libao2.a $(VIDIX_LIBS) $(GUI_LIBS) $(COMMON_LIBS) $(GTK_LIBS) $(VO_LIBS) $(AO_LIBS) $(EXTRA_LIB) $(LIRC_LIB) $(LIRCC_LIB) $(STATIC_LIB) $(ARCH_LIB) -lm 
 
 $(PRG_FIBMAP): fibmap_mplayer.o
 	$(CC) -o $(PRG_FIBMAP) fibmap_mplayer.o
@@ -183,7 +183,7 @@ $(PRG_FIBMAP): fibmap_mplayer.o
 ifeq ($(MENCODER),yes)
 $(PRG_MENCODER): $(MENCODER_DEP)
 	./darwinfixlib.sh $(MENCODER_DEP) libmpcodecs/libmpencoders.a
-	$(CC) $(CFLAGS) -o $(PRG_MENCODER) $(OBJS_MENCODER) libmpcodecs/libmpencoders.a $(COMMON_LIBS) $(EXTRA_LIB) $(ENCORE_LIB) $(MLIB_LIB) $(LIRC_LIB) $(ARCH_LIB) -lm 
+	$(CC) $(CFLAGS) -o $(PRG_MENCODER) $(OBJS_MENCODER) libmpcodecs/libmpencoders.a $(COMMON_LIBS) $(EXTRA_LIB) $(ENCORE_LIB) $(MLIB_LIB) $(LIRC_LIB) $(LIRCC_LIB) $(ARCH_LIB) -lm 
 endif
 
 # Every mplayer dependency depends on version.h, to force building version.h

