mirror of
https://github.com/netfun2000/lcd4linux.git
synced 2026-02-27 09:44:34 +08:00
[lcd4linux @ 2004-04-09 06:09:54 by reinelt]
big configure rework from Xavier git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@412 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
This commit is contained in:
+65
-57
@@ -3,6 +3,7 @@
|
||||
AUTOMAKE_OPTIONS = gnu
|
||||
CLEANFILES = *~
|
||||
DRIVERS=@DRIVERS@
|
||||
PLUGINS=@PLUGINS@
|
||||
|
||||
bin_PROGRAMS = lcd4linux
|
||||
#lib_LTLIBRARIES = liblcd4linux.la
|
||||
@@ -10,10 +11,10 @@ bin_PROGRAMS = lcd4linux
|
||||
AM_CFLAGS = $(X_CFLAGS) -D_GNU_SOURCE -Wall
|
||||
|
||||
lcd4linux_LDFLAGS = $(X_LIBS)
|
||||
lcd4linux_LDADD = @DRIVERS@ @DRVLIBS@
|
||||
lcd4linux_LDADD = @DRIVERS@ @PLUGINS@ @DRVLIBS@ @PLUGINLIBS@
|
||||
#lcd4linux_LDADD = liblcd4linux.la @DRVLIBS@
|
||||
#remove next line for liblcd4linux
|
||||
lcd4linux_DEPENDENCIES = @DRIVERS@
|
||||
lcd4linux_DEPENDENCIES = @DRIVERS@ @PLUGINS@
|
||||
|
||||
lcd4linux_SOURCES = \
|
||||
lcd4linux.c \
|
||||
@@ -38,24 +39,7 @@ widget_icon.c widget_icon.h \
|
||||
plugin.c plugin.h \
|
||||
plugin_math.c \
|
||||
plugin_string.c \
|
||||
plugin_cfg.c \
|
||||
plugin_uname.c \
|
||||
plugin_loadavg.c \
|
||||
plugin_proc_stat.c \
|
||||
plugin_cpuinfo.c \
|
||||
plugin_meminfo.c \
|
||||
plugin_netdev.c \
|
||||
plugin_ppp.c \
|
||||
plugin_dvb.c \
|
||||
plugin_apm.c \
|
||||
plugin_i2c_sensors.c \
|
||||
plugin_imon.c \
|
||||
plugin_exec.c \
|
||||
plugin_xmms.c \
|
||||
plugin_mysql.c \
|
||||
plugin_wireless.c \
|
||||
plugin_seti.c \
|
||||
plugin_pop3.c
|
||||
plugin_cfg.c
|
||||
|
||||
#liblcd4linux_la_DEPENDENCIES = @DRIVERS@
|
||||
#liblcd4linux_la_LDFLAGS = -version-info 9:12:9
|
||||
@@ -63,42 +47,66 @@ plugin_pop3.c
|
||||
|
||||
#liblcd4linux_la_SOURCES =
|
||||
|
||||
EXTRA_lcd4linux_SOURCES= \
|
||||
drv_generic_text.c drv_generic_text.h \
|
||||
drv_generic_graphic.c drv_generic_graphic.h \
|
||||
drv_generic_serial.c drv_generic_serial.h \
|
||||
drv_generic_parport.c drv_generic_parport.h \
|
||||
BeckmannEgle.c \
|
||||
drv_Crystalfontz.c \
|
||||
drv_Cwlinux.c \
|
||||
drv_HD44780.c \
|
||||
drv_M50530.c \
|
||||
drv_T6963.c \
|
||||
drv_USBLCD.c \
|
||||
drv_MatrixOrbital.c \
|
||||
MilfordInstruments.c \
|
||||
PalmPilot.c \
|
||||
Raster.c \
|
||||
drv_X11.c \
|
||||
Text.c \
|
||||
font_6x8.h
|
||||
EXTRA_lcd4linux_SOURCES= \
|
||||
drv_generic_text.c \
|
||||
drv_generic_text.h \
|
||||
drv_generic_graphic.c \
|
||||
drv_generic_graphic.h \
|
||||
drv_generic_serial.c \
|
||||
drv_generic_serial.h \
|
||||
drv_generic_parport.c \
|
||||
drv_generic_parport.h \
|
||||
BeckmannEgle.c \
|
||||
drv_Crystalfontz.c \
|
||||
drv_Cwlinux.c \
|
||||
drv_HD44780.c \
|
||||
drv_M50530.c \
|
||||
drv_T6963.c \
|
||||
drv_USBLCD.c \
|
||||
drv_MatrixOrbital.c \
|
||||
MilfordInstruments.c \
|
||||
PalmPilot.c \
|
||||
Raster.c \
|
||||
drv_X11.c \
|
||||
Text.c \
|
||||
font_6x8.h \
|
||||
\
|
||||
plugin_apm.c \
|
||||
plugin_cpuinfo.c \
|
||||
plugin_dvb.c \
|
||||
plugin_exec.c \
|
||||
plugin_i2c_sensors.c \
|
||||
plugin_imon.c \
|
||||
plugin_loadavg.c \
|
||||
plugin_meminfo.c \
|
||||
plugin_mysql.c \
|
||||
plugin_netdev.c \
|
||||
plugin_pop3.c \
|
||||
plugin_ppp.c \
|
||||
plugin_proc_stat.c \
|
||||
plugin_seti.c \
|
||||
plugin_uname.c \
|
||||
plugin_wireless.c \
|
||||
plugin_xmms.c
|
||||
|
||||
EXTRA_DIST = \
|
||||
lcd4linux.conf.sample \
|
||||
lcd4kde.conf \
|
||||
lcd4linux.kdelnk \
|
||||
lcd4linux.xpm \
|
||||
lcd4linux.lsm \
|
||||
curses.m4 \
|
||||
AUTHORS \
|
||||
CREDITS \
|
||||
FAQ \
|
||||
NEWS \
|
||||
TODO \
|
||||
README \
|
||||
README.Rows \
|
||||
README.Tokens \
|
||||
README.Drivers \
|
||||
README.Plugins \
|
||||
README.KDE \
|
||||
|
||||
EXTRA_DIST = \
|
||||
lcd4linux.conf.sample \
|
||||
lcd4kde.conf \
|
||||
lcd4linux.kdelnk \
|
||||
lcd4linux.xpm \
|
||||
lcd4linux.lsm \
|
||||
curses.m4 \
|
||||
AUTHORS \
|
||||
CREDITS \
|
||||
FAQ \
|
||||
NEWS \
|
||||
TODO \
|
||||
README \
|
||||
README.Rows \
|
||||
README.Tokens \
|
||||
README.Drivers \
|
||||
README.Plugins \
|
||||
README.KDE \
|
||||
plugin_sample.c
|
||||
|
||||
|
||||
+8
-10
@@ -73,12 +73,14 @@ LN_S = @LN_S@
|
||||
LTLIB = @LTLIB@
|
||||
MAKEINFO = @MAKEINFO@
|
||||
PACKAGE = @PACKAGE@
|
||||
PLUGINLIBS = @PLUGINLIBS@
|
||||
RANLIB = @RANLIB@
|
||||
VERSION = @VERSION@
|
||||
|
||||
AUTOMAKE_OPTIONS = gnu
|
||||
CLEANFILES = *~
|
||||
DRIVERS = @DRIVERS@
|
||||
PLUGINS = @PLUGINS@
|
||||
|
||||
bin_PROGRAMS = lcd4linux
|
||||
#lib_LTLIBRARIES = liblcd4linux.la
|
||||
@@ -86,12 +88,12 @@ bin_PROGRAMS = lcd4linux
|
||||
AM_CFLAGS = $(X_CFLAGS) -D_GNU_SOURCE -Wall
|
||||
|
||||
lcd4linux_LDFLAGS = $(X_LIBS)
|
||||
lcd4linux_LDADD = @DRIVERS@ @DRVLIBS@
|
||||
lcd4linux_LDADD = @DRIVERS@ @PLUGINS@ @DRVLIBS@ @PLUGINLIBS@
|
||||
#lcd4linux_LDADD = liblcd4linux.la @DRVLIBS@
|
||||
#remove next line for liblcd4linux
|
||||
lcd4linux_DEPENDENCIES = @DRIVERS@
|
||||
lcd4linux_DEPENDENCIES = @DRIVERS@ @PLUGINS@
|
||||
|
||||
lcd4linux_SOURCES = lcd4linux.c cfg.c cfg.h debug.c debug.h drv.c drv.h evaluator.c evaluator.h hash.c hash.h layout.c layout.h lock.c lock.h pid.c pid.h timer.c timer.h thread.c thread.h udelay.c udelay.h qprintf.c qprintf.h widget.c widget.h widget_text.c widget_text.h widget_bar.c widget_bar.h widget_icon.c widget_icon.h plugin.c plugin.h plugin_math.c plugin_string.c plugin_cfg.c plugin_uname.c plugin_loadavg.c plugin_proc_stat.c plugin_cpuinfo.c plugin_meminfo.c plugin_netdev.c plugin_ppp.c plugin_dvb.c plugin_apm.c plugin_i2c_sensors.c plugin_imon.c plugin_exec.c plugin_xmms.c plugin_mysql.c plugin_wireless.c plugin_seti.c plugin_pop3.c
|
||||
lcd4linux_SOURCES = lcd4linux.c cfg.c cfg.h debug.c debug.h drv.c drv.h evaluator.c evaluator.h hash.c hash.h layout.c layout.h lock.c lock.h pid.c pid.h timer.c timer.h thread.c thread.h udelay.c udelay.h qprintf.c qprintf.h widget.c widget.h widget_text.c widget_text.h widget_bar.c widget_bar.h widget_icon.c widget_icon.h plugin.c plugin.h plugin_math.c plugin_string.c plugin_cfg.c
|
||||
|
||||
|
||||
#liblcd4linux_la_DEPENDENCIES = @DRIVERS@
|
||||
@@ -100,10 +102,10 @@ lcd4linux_SOURCES = lcd4linux.c cfg.c cfg.h deb
|
||||
|
||||
#liblcd4linux_la_SOURCES =
|
||||
|
||||
EXTRA_lcd4linux_SOURCES = drv_generic_text.c drv_generic_text.h drv_generic_graphic.c drv_generic_graphic.h drv_generic_serial.c drv_generic_serial.h drv_generic_parport.c drv_generic_parport.h BeckmannEgle.c drv_Crystalfontz.c drv_Cwlinux.c drv_HD44780.c drv_M50530.c drv_T6963.c drv_USBLCD.c drv_MatrixOrbital.c MilfordInstruments.c PalmPilot.c Raster.c drv_X11.c Text.c font_6x8.h
|
||||
EXTRA_lcd4linux_SOURCES = drv_generic_text.c drv_generic_text.h drv_generic_graphic.c drv_generic_graphic.h drv_generic_serial.c drv_generic_serial.h drv_generic_parport.c drv_generic_parport.h BeckmannEgle.c drv_Crystalfontz.c drv_Cwlinux.c drv_HD44780.c drv_M50530.c drv_T6963.c drv_USBLCD.c drv_MatrixOrbital.c MilfordInstruments.c PalmPilot.c Raster.c drv_X11.c Text.c font_6x8.h plugin_apm.c plugin_cpuinfo.c plugin_dvb.c plugin_exec.c plugin_i2c_sensors.c plugin_imon.c plugin_loadavg.c plugin_meminfo.c plugin_mysql.c plugin_netdev.c plugin_pop3.c plugin_ppp.c plugin_proc_stat.c plugin_seti.c plugin_uname.c plugin_wireless.c plugin_xmms.c
|
||||
|
||||
|
||||
EXTRA_DIST = lcd4linux.conf.sample lcd4kde.conf lcd4linux.kdelnk lcd4linux.xpm lcd4linux.lsm curses.m4 AUTHORS CREDITS FAQ NEWS TODO README README.Rows README.Tokens README.Drivers README.Plugins README.KDE plugin_sample.c
|
||||
EXTRA_DIST = lcd4linux.conf.sample lcd4kde.conf lcd4linux.kdelnk lcd4linux.xpm lcd4linux.lsm curses.m4 AUTHORS CREDITS FAQ NEWS TODO README README.Rows README.Tokens README.Drivers README.Plugins README.KDE plugin_sample.c
|
||||
|
||||
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
||||
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
|
||||
@@ -123,11 +125,7 @@ X_PRE_LIBS = @X_PRE_LIBS@
|
||||
lcd4linux_OBJECTS = lcd4linux.o cfg.o debug.o drv.o evaluator.o hash.o \
|
||||
layout.o lock.o pid.o timer.o thread.o udelay.o qprintf.o widget.o \
|
||||
widget_text.o widget_bar.o widget_icon.o plugin.o plugin_math.o \
|
||||
plugin_string.o plugin_cfg.o plugin_uname.o plugin_loadavg.o \
|
||||
plugin_proc_stat.o plugin_cpuinfo.o plugin_meminfo.o plugin_netdev.o \
|
||||
plugin_ppp.o plugin_dvb.o plugin_apm.o plugin_i2c_sensors.o \
|
||||
plugin_imon.o plugin_exec.o plugin_xmms.o plugin_mysql.o \
|
||||
plugin_wireless.o plugin_seti.o plugin_pop3.o
|
||||
plugin_string.o plugin_cfg.o
|
||||
CFLAGS = @CFLAGS@
|
||||
COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
|
||||
CCLD = $(CC)
|
||||
|
||||
+51
-3
@@ -58,9 +58,6 @@
|
||||
/* Define to 1 if you have the <malloc.h> header file. */
|
||||
#undef HAVE_MALLOC_H
|
||||
|
||||
/* Define to 1 if you have the `memmove' function. */
|
||||
#undef HAVE_MEMMOVE
|
||||
|
||||
/* Define to 1 if you have the <memory.h> header file. */
|
||||
#undef HAVE_MEMORY_H
|
||||
|
||||
@@ -230,6 +227,57 @@
|
||||
/* Define to the version of this package. */
|
||||
#undef PACKAGE_VERSION
|
||||
|
||||
/* apm plugin */
|
||||
#undef PLUGIN_APM
|
||||
|
||||
/* cpuinfo plugin */
|
||||
#undef PLUGIN_CPUINFO
|
||||
|
||||
/* dvb plugin */
|
||||
#undef PLUGIN_DVB
|
||||
|
||||
/* exec plugin */
|
||||
#undef PLUGIN_EXEC
|
||||
|
||||
/* i2c sensors plugin */
|
||||
#undef PLUGIN_I2C_SENSORS
|
||||
|
||||
/* imon plugin */
|
||||
#undef PLUGIN_IMON
|
||||
|
||||
/* loadavg plugin */
|
||||
#undef PLUGIN_LOADAVG
|
||||
|
||||
/* meminfo plugin */
|
||||
#undef PLUGIN_MEMINFO
|
||||
|
||||
/* mysql plugin */
|
||||
#undef PLUGIN_MYSQL
|
||||
|
||||
/* netdev plugin */
|
||||
#undef PLUGIN_NETDEV
|
||||
|
||||
/* POP3 plugin */
|
||||
#undef PLUGIN_POP3
|
||||
|
||||
/* ppp plugin */
|
||||
#undef PLUGIN_PPP
|
||||
|
||||
/* proc_stat plugin */
|
||||
#undef PLUGIN_PROC_STAT
|
||||
|
||||
/* seti plugin */
|
||||
#undef PLUGIN_SETI
|
||||
|
||||
/* uname plugin */
|
||||
#undef PLUGIN_UNAME
|
||||
|
||||
/* wireless plugin */
|
||||
#undef PLUGIN_WIRELESS
|
||||
|
||||
/* xmms plugin */
|
||||
#undef PLUGIN_XMMS
|
||||
|
||||
/* Define as the return type of signal handlers (`int' or `void'). */
|
||||
#undef RETSIGTYPE
|
||||
|
||||
|
||||
+4
-252
@@ -36,255 +36,10 @@ AC_PATH_XTRA
|
||||
AC_CHECK_HEADERS(gd/gd.h gd.h, [has_gd=true], [has_gd=false])
|
||||
|
||||
# drivers
|
||||
AC_MSG_CHECKING([which drivers to compile])
|
||||
AC_ARG_WITH(
|
||||
drivers,
|
||||
[ --with-drivers=<list> compile driver for displays in <list>,]
|
||||
[ drivers may be separated with commas,]
|
||||
[ 'all' (default) compiles all available drivers,]
|
||||
[ drivers may be excluded with 'all,!<driver>',]
|
||||
[ (try 'all,\!<driver>' if your shell complains...)]
|
||||
[ possible drivers are:]
|
||||
[ BeckmannEgle, CrystalFontz, Curses, Cwlinux,]
|
||||
[ HD44780, M50530, T6963, USBLCD, MatrixOrbital,]
|
||||
[ MilfordInstruments, PalmPilot, PNG, PPM, X11],
|
||||
drivers=$withval,
|
||||
drivers=all
|
||||
)
|
||||
sinclude(drivers.m4)
|
||||
|
||||
drivers=`echo $drivers|sed 's/,/ /g'`
|
||||
|
||||
for driver in $drivers; do
|
||||
|
||||
case $driver in
|
||||
!*)
|
||||
val="no"
|
||||
driver=`echo $driver|cut -c 2-`
|
||||
;;
|
||||
*)
|
||||
val="yes"
|
||||
;;
|
||||
esac
|
||||
|
||||
case "$driver" in
|
||||
all)
|
||||
BECKMANNEGLE="yes"
|
||||
CRYSTALFONTZ="yes"
|
||||
CURSES="yes"
|
||||
CWLINUX="yes"
|
||||
HD44780="yes"
|
||||
M50530="yes"
|
||||
T6963="yes"
|
||||
USBLCD="yes"
|
||||
MATRIXORBITAL="yes"
|
||||
MILINST="yes"
|
||||
PALMPILOT="yes"
|
||||
PNG="yes"
|
||||
PPM="yes"
|
||||
X11="yes"
|
||||
;;
|
||||
BeckmannEgle)
|
||||
BECKMANNEGLE=$val
|
||||
;;
|
||||
CrystalFontz)
|
||||
CRYSTALFONTZ=$val
|
||||
;;
|
||||
Curses)
|
||||
CURSES=$val
|
||||
;;
|
||||
Cwlinux)
|
||||
CWLINUX=$val
|
||||
;;
|
||||
HD44780)
|
||||
HD44780=$val
|
||||
;;
|
||||
M50530)
|
||||
M50530=$val
|
||||
;;
|
||||
T6963)
|
||||
T6963=$val
|
||||
;;
|
||||
USBLCD)
|
||||
USBLCD=$val
|
||||
;;
|
||||
MatrixOrbital)
|
||||
MATRIXORBITAL=$val
|
||||
;;
|
||||
MilfordInstruments)
|
||||
MILINST=$val
|
||||
;;
|
||||
PalmPilot)
|
||||
PALMPILOT=$val
|
||||
;;
|
||||
PNG)
|
||||
PNG=$val
|
||||
;;
|
||||
PPM)
|
||||
PPM=$val
|
||||
;;
|
||||
X11)
|
||||
X11=$val
|
||||
;;
|
||||
*)
|
||||
AC_MSG_ERROR([Unknown driver '$driver'])
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
AC_MSG_RESULT([done])
|
||||
|
||||
PARPORT="no"
|
||||
SERIAL="no"
|
||||
TEXT="no"
|
||||
GRAPHIC="no"
|
||||
|
||||
if test "$BECKMANNEGLE" = "yes"; then
|
||||
# DRIVERS="$DRIVERS BeckmannEgle.lo"
|
||||
# DRIVERS="$DRIVERS BeckmannEgle.o"
|
||||
AC_DEFINE(WITH_BECKMANNEGLE,1,[Beckmann&Egle driver])
|
||||
fi
|
||||
|
||||
if test "$CRYSTALFONTZ" = "yes"; then
|
||||
TEXT="yes"
|
||||
SERIAL="yes"
|
||||
# DRIVERS="$DRIVERS drv_Crystalfontz.lo"
|
||||
DRIVERS="$DRIVERS drv_Crystalfontz.o"
|
||||
AC_DEFINE(WITH_CRYSTALFONTZ,1,[Crystalfontz driver])
|
||||
fi
|
||||
|
||||
if test "$CURSES" = "yes"; then
|
||||
if test "$has_curses" = true; then
|
||||
# DRIVERS="$DRIVERS Text.lo"
|
||||
# DRIVERS="$DRIVERS Text.o"
|
||||
DRVLIBS="$DRVLIBS $CURSES_LIBS"
|
||||
CPPFLAGS="$CPPFLAGS $CURSES_INCLUDES"
|
||||
AC_DEFINE(WITH_TEXT,1,[Curses driver])
|
||||
else
|
||||
AC_MSG_WARN(curses not found: Curses driver disabled)
|
||||
fi
|
||||
fi
|
||||
|
||||
if test "$CWLINUX" = "yes"; then
|
||||
TEXT="yes"
|
||||
SERIAL="yes"
|
||||
# DRIVERS="$DRIVERS drv_Cwlinux.lo"
|
||||
DRIVERS="$DRIVERS drv_Cwlinux.o"
|
||||
AC_DEFINE(WITH_CWLINUX,1,[CwLinux driver])
|
||||
fi
|
||||
|
||||
if test "$HD44780" = "yes"; then
|
||||
TEXT="yes"
|
||||
PARPORT="yes"
|
||||
# DRIVERS="$DRIVERS drv_HD44780.lo"
|
||||
DRIVERS="$DRIVERS drv_HD44780.o"
|
||||
AC_DEFINE(WITH_HD44780,1,[HD44780 driver])
|
||||
fi
|
||||
|
||||
if test "$M50530" = "yes"; then
|
||||
TEXT="yes"
|
||||
PARPORT="yes"
|
||||
# DRIVERS="$DRIVERS drv_M50530.lo"
|
||||
DRIVERS="$DRIVERS drv_M50530.o"
|
||||
AC_DEFINE(WITH_M50530,1,[M50530 driver])
|
||||
fi
|
||||
|
||||
if test "$T6963" = "yes"; then
|
||||
GRAPHIC="yes"
|
||||
PARPORT="yes"
|
||||
# DRIVERS="$DRIVERS drv_T6963.lo"
|
||||
DRIVERS="$DRIVERS drv_T6963.o"
|
||||
AC_DEFINE(WITH_T6963,1,[T6963 driver])
|
||||
fi
|
||||
|
||||
if test "$USBLCD" = "yes"; then
|
||||
TEXT="yes"
|
||||
SERIAL="yes"
|
||||
# DRIVERS="$DRIVERS drv_USBLCD.lo"
|
||||
DRIVERS="$DRIVERS drv_USBLCD.o"
|
||||
AC_DEFINE(WITH_USBLCD,1,[USBLCD driver])
|
||||
fi
|
||||
|
||||
if test "$MATRIXORBITAL" = "yes"; then
|
||||
SERIAL="yes"
|
||||
# DRIVERS="$DRIVERS drv_MatrixOrbital.lo"
|
||||
DRIVERS="$DRIVERS drv_MatrixOrbital.o"
|
||||
AC_DEFINE(WITH_MATRIXORBITAL,1,[MatrixOrbital driver])
|
||||
fi
|
||||
|
||||
if test "$MILINST" = "yes"; then
|
||||
# DRIVERS="$DRIVERS MilfordInstruments.lo"
|
||||
# DRIVERS="$DRIVERS MilfordInstruments.o"
|
||||
AC_DEFINE(WITH_MILINST,1,[Milford Instruments driver])
|
||||
fi
|
||||
|
||||
if test "$PALMPILOT" = "yes"; then
|
||||
# DRIVERS="$DRIVERS PalmPilot.lo"
|
||||
# DRIVERS="$DRIVERS PalmPilot.o"
|
||||
AC_DEFINE(WITH_PALMPILOT,1,[PalmPilot driver])
|
||||
fi
|
||||
|
||||
if test "$PNG" = "yes"; then
|
||||
if test "$has_gd" = "true"; then
|
||||
GRAPHIC="yes"
|
||||
AC_DEFINE(WITH_PNG,1,[ driver])
|
||||
DRVLIBS="$DRVLIBS -lgd"
|
||||
else
|
||||
AC_MSG_WARN(gd.h not found: PNG driver disabled)
|
||||
fi
|
||||
fi
|
||||
|
||||
if test "$PPM" = "yes"; then
|
||||
if test "$has_gd" = "true"; then
|
||||
GRAPHIC="yes"
|
||||
AC_DEFINE(WITH_PPM,1,[ driver])
|
||||
else
|
||||
AC_MSG_WARN(gd.h not found: PNG driver disabled)
|
||||
fi
|
||||
fi
|
||||
|
||||
if test "$X11" = "yes"; then
|
||||
if test "$no_x" = "yes"; then
|
||||
AC_MSG_WARN(X11 headers or libraries not available: X11 driver disabled)
|
||||
else
|
||||
GRAPHIC="yes"
|
||||
# DRIVERS="$DRIVERS drv_X11.lo"
|
||||
DRIVERS="$DRIVERS drv_X11.o"
|
||||
DRVLIBS="$DRVLIBS -L$ac_x_libraries -lX11"
|
||||
AC_DEFINE(WITH_X11,1,[X11 driver])
|
||||
fi
|
||||
fi
|
||||
|
||||
if test "$DRIVERS" = ""; then
|
||||
AC_MSG_ERROR([You should include at least one driver...])
|
||||
fi
|
||||
|
||||
# generic text driver
|
||||
if test "$TEXT" = "yes"; then
|
||||
# DRIVERS="$DRIVERS drv_generic_text.lo"
|
||||
DRIVERS="$DRIVERS drv_generic_text.o"
|
||||
fi
|
||||
|
||||
# generic graphic driver
|
||||
if test "$GRAPHIC" = "yes"; then
|
||||
:
|
||||
# DRIVERS="$DRIVERS
|
||||
DRIVERS="$DRIVERS drv_generic_graphic.o"
|
||||
fi
|
||||
|
||||
# generic parport driver
|
||||
if test "$PARPORT" = "yes"; then
|
||||
# DRIVERS="$DRIVERS drv_generic_parport.lo"
|
||||
DRIVERS="$DRIVERS drv_generic_parport.o"
|
||||
fi
|
||||
|
||||
# generic serial driver
|
||||
if test "$SERIAL" = "yes"; then
|
||||
# DRIVERS="$DRIVERS drv_generic_serial.lo"
|
||||
DRIVERS="$DRIVERS drv_generic_serial.o"
|
||||
fi
|
||||
|
||||
AC_SUBST(DRIVERS)
|
||||
AC_SUBST(DRVLIBS)
|
||||
# plugins
|
||||
sinclude(plugins.m4)
|
||||
|
||||
# Checks for header files.
|
||||
AC_HEADER_STDC
|
||||
@@ -293,10 +48,7 @@ AC_HEADER_SYS_WAIT
|
||||
AC_CHECK_HEADERS([arpa/inet.h fcntl.h malloc.h netdb.h netinet/in.h stdlib.h string.h sys/ioctl.h sys/socket.h sys/time.h syslog.h termios.h unistd.h])
|
||||
AC_CHECK_HEADERS(sys/io.h asm/io.h)
|
||||
AC_CHECK_HEADERS(linux/parport.h linux/ppdev.h)
|
||||
AC_CHECK_HEADERS(linux/dvb/frontend.h)
|
||||
AC_CHECK_HEADERS(net/if_ppp.h)
|
||||
AC_CHECK_HEADERS(asm/msr.h)
|
||||
AC_CHECK_HEADERS(mysql/mysql.h)
|
||||
|
||||
# Checks for typedefs, structures, and compiler characteristics.
|
||||
AC_C_CONST
|
||||
@@ -325,7 +77,7 @@ AC_FUNC_SELECT_ARGTYPES
|
||||
AC_TYPE_SIGNAL
|
||||
AC_FUNC_STAT
|
||||
AC_FUNC_STRTOD
|
||||
AC_CHECK_FUNCS([dup2 gethostbyname gettimeofday memmove memset pow putenv regcomp select socket sqrt strcasecmp strchr strdup strerror strncasecmp strndup strpbrk strrchr strstr strtol uname])
|
||||
AC_CHECK_FUNCS([dup2 gethostbyname gettimeofday memset pow putenv regcomp select socket sqrt strcasecmp strchr strdup strerror strncasecmp strndup strpbrk strrchr strstr strtol uname])
|
||||
|
||||
AC_CONFIG_FILES([Makefile])
|
||||
AC_OUTPUT
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/* $Id: plugin.c,v 1.26 2004/04/08 11:59:26 reinelt Exp $
|
||||
/* $Id: plugin.c,v 1.27 2004/04/09 06:09:55 reinelt Exp $
|
||||
*
|
||||
* plugin handler for the Evaluator
|
||||
*
|
||||
@@ -22,8 +22,8 @@
|
||||
*
|
||||
*
|
||||
* $Log: plugin.c,v $
|
||||
* Revision 1.26 2004/04/08 11:59:26 reinelt
|
||||
* added plugin_pop3 from Javi
|
||||
* Revision 1.27 2004/04/09 06:09:55 reinelt
|
||||
* big configure rework from Xavier
|
||||
*
|
||||
* Revision 1.25 2004/04/07 08:29:05 hejl
|
||||
* New plugin for wireless info
|
||||
@@ -161,97 +161,167 @@
|
||||
|
||||
|
||||
// Prototypes
|
||||
int plugin_init_math (void);
|
||||
int plugin_init_string (void);
|
||||
int plugin_init_cfg (void);
|
||||
int plugin_init_uname (void);
|
||||
int plugin_init_loadavg (void);
|
||||
int plugin_init_proc_stat (void);
|
||||
int plugin_init_cpuinfo (void);
|
||||
int plugin_init_meminfo (void);
|
||||
int plugin_init_netdev (void);
|
||||
int plugin_init_ppp (void);
|
||||
int plugin_init_dvb (void);
|
||||
int plugin_init_apm (void);
|
||||
int plugin_init_i2c_sensors (void);
|
||||
int plugin_init_exec (void);
|
||||
int plugin_init_xmms (void);
|
||||
int plugin_init_imon(void);
|
||||
int plugin_init_mysql(void);
|
||||
int plugin_init_seti(void);
|
||||
int plugin_init_wireless(void);
|
||||
int plugin_init_pop3(void);
|
||||
|
||||
|
||||
void plugin_exit_math (void);
|
||||
int plugin_init_math (void);
|
||||
void plugin_exit_math (void);
|
||||
int plugin_init_string (void);
|
||||
void plugin_exit_string (void);
|
||||
void plugin_exit_cfg (void);
|
||||
void plugin_exit_uname (void);
|
||||
void plugin_exit_loadavg (void);
|
||||
void plugin_exit_proc_stat (void);
|
||||
void plugin_exit_cpuinfo (void);
|
||||
void plugin_exit_meminfo (void);
|
||||
void plugin_exit_netdev (void);
|
||||
void plugin_exit_ppp (void);
|
||||
void plugin_exit_dvb (void);
|
||||
int plugin_init_cfg (void);
|
||||
void plugin_exit_cfg (void);
|
||||
|
||||
int plugin_init_apm (void);
|
||||
void plugin_exit_apm (void);
|
||||
void plugin_exit_i2c_sensors (void);
|
||||
int plugin_init_cpuinfo (void);
|
||||
void plugin_exit_cpuinfo (void);
|
||||
int plugin_init_dvb (void);
|
||||
void plugin_exit_dvb (void);
|
||||
int plugin_init_exec (void);
|
||||
void plugin_exit_exec (void);
|
||||
void plugin_exit_xmms (void);
|
||||
int plugin_init_i2c_sensors (void);
|
||||
void plugin_exit_i2c_sensors (void);
|
||||
int plugin_init_imon(void);
|
||||
void plugin_exit_imon(void);
|
||||
int plugin_init_loadavg (void);
|
||||
void plugin_exit_loadavg (void);
|
||||
int plugin_init_meminfo (void);
|
||||
void plugin_exit_meminfo (void);
|
||||
int plugin_init_mysql(void);
|
||||
void plugin_exit_mysql(void);
|
||||
int plugin_init_netdev (void);
|
||||
void plugin_exit_netdev (void);
|
||||
int plugin_init_pop3 (void);
|
||||
void plugin_exit_pop3 (void);
|
||||
int plugin_init_ppp (void);
|
||||
void plugin_exit_ppp (void);
|
||||
int plugin_init_proc_stat (void);
|
||||
void plugin_exit_proc_stat (void);
|
||||
int plugin_init_seti(void);
|
||||
void plugin_exit_seti(void);
|
||||
int plugin_init_uname (void);
|
||||
void plugin_exit_uname (void);
|
||||
int plugin_init_wireless(void);
|
||||
void plugin_exit_wireless(void);
|
||||
void plugin_exit_pop3(void);
|
||||
int plugin_init_xmms (void);
|
||||
void plugin_exit_xmms (void);
|
||||
|
||||
|
||||
int plugin_init (void)
|
||||
{
|
||||
plugin_init_math();
|
||||
plugin_init_string();
|
||||
plugin_init_cfg();
|
||||
plugin_init_uname();
|
||||
plugin_init_loadavg();
|
||||
plugin_init_proc_stat();
|
||||
plugin_init_cpuinfo();
|
||||
plugin_init_meminfo();
|
||||
plugin_init_netdev();
|
||||
plugin_init_ppp();
|
||||
plugin_init_dvb();
|
||||
plugin_init_apm();
|
||||
plugin_init_i2c_sensors();
|
||||
plugin_init_exec();
|
||||
plugin_init_xmms();
|
||||
plugin_init_imon();
|
||||
plugin_init_mysql();
|
||||
plugin_init_seti();
|
||||
plugin_init_wireless();
|
||||
plugin_init_pop3();
|
||||
|
||||
#ifdef PLUGIN_APM
|
||||
plugin_init_apm();
|
||||
#endif
|
||||
#ifdef PLUGIN_CPUINFO
|
||||
plugin_init_cpuinfo();
|
||||
#endif
|
||||
#ifdef PLUGIN_DVB
|
||||
plugin_init_dvb();
|
||||
#endif
|
||||
#ifdef PLUGIN_EXEC
|
||||
plugin_init_exec();
|
||||
#endif
|
||||
#ifdef PLUGIN_I2C_SENSORS
|
||||
plugin_init_i2c_sensors();
|
||||
#endif
|
||||
#ifdef PLUGIN_IMON
|
||||
plugin_init_imon();
|
||||
#endif
|
||||
#ifdef PLUGIN_LOADAVG
|
||||
plugin_init_loadavg();
|
||||
#endif
|
||||
#ifdef PLUGIN_MEMINFO
|
||||
plugin_init_meminfo();
|
||||
#endif
|
||||
#ifdef PLUGIN_MYSQL
|
||||
plugin_init_mysql();
|
||||
#endif
|
||||
#ifdef PLUGIN_NETDEV
|
||||
plugin_init_netdev();
|
||||
#endif
|
||||
#ifdef PLUGIN_POP3
|
||||
plugin_init_pop3();
|
||||
#endif
|
||||
#ifdef PLUGIN_PPP
|
||||
plugin_init_ppp();
|
||||
#endif
|
||||
#ifdef PLUGIN_PROC_STAT
|
||||
plugin_init_proc_stat();
|
||||
#endif
|
||||
#ifdef PLUGIN_SETI
|
||||
plugin_init_seti();
|
||||
#endif
|
||||
#ifdef PLUGIN_UNAME
|
||||
plugin_init_uname();
|
||||
#endif
|
||||
#ifdef PLUGIN_WIRELESS
|
||||
plugin_init_wireless();
|
||||
#endif
|
||||
#ifdef PLUGIN_XMMS
|
||||
plugin_init_xmms();
|
||||
#endif
|
||||
return 0;
|
||||
}
|
||||
|
||||
void plugin_exit(void) {
|
||||
plugin_exit_math();
|
||||
plugin_exit_string();
|
||||
plugin_exit_cfg();
|
||||
plugin_exit_uname();
|
||||
plugin_exit_loadavg();
|
||||
plugin_exit_proc_stat();
|
||||
plugin_exit_cpuinfo();
|
||||
plugin_exit_meminfo();
|
||||
plugin_exit_netdev();
|
||||
plugin_exit_ppp();
|
||||
plugin_exit_dvb();
|
||||
#ifdef PLUGIN_APM
|
||||
plugin_exit_apm();
|
||||
plugin_exit_i2c_sensors();
|
||||
#endif
|
||||
#ifdef PLUGIN_CPUINFO
|
||||
plugin_exit_cpuinfo();
|
||||
#endif
|
||||
#ifdef PLUGIN_DVB
|
||||
plugin_exit_dvb();
|
||||
#endif
|
||||
#ifdef PLUGIN_EXEC
|
||||
plugin_exit_exec();
|
||||
plugin_exit_xmms();
|
||||
plugin_exit_imon();
|
||||
plugin_exit_mysql();
|
||||
plugin_exit_seti();
|
||||
plugin_exit_wireless();
|
||||
#endif
|
||||
#ifdef PLUGIN_I2C_SENSORS
|
||||
plugin_exit_i2c_sensors();
|
||||
#endif
|
||||
#ifdef PLUGIN_IMON
|
||||
plugin_exit_imon();
|
||||
#endif
|
||||
#ifdef PLUGIN_LOADAVG
|
||||
plugin_exit_loadavg();
|
||||
#endif
|
||||
#ifdef PLUGIN_MEMINFO
|
||||
plugin_exit_meminfo();
|
||||
#endif
|
||||
#ifdef PLUGIN_MYSQL
|
||||
plugin_exit_mysql();
|
||||
#endif
|
||||
#ifdef PLUGIN_NETDEV
|
||||
plugin_exit_netdev();
|
||||
#endif
|
||||
#ifdef PLUGIN_POP3
|
||||
plugin_exit_pop3();
|
||||
|
||||
#endif
|
||||
#ifdef PLUGIN_PPP
|
||||
plugin_exit_ppp();
|
||||
#endif
|
||||
#ifdef PLUGIN_PROC_STAT
|
||||
plugin_exit_proc_stat();
|
||||
#endif
|
||||
#ifdef PLUGIN_SETI
|
||||
plugin_exit_seti();
|
||||
#endif
|
||||
#ifdef PLUGIN_UNAME
|
||||
plugin_exit_uname();
|
||||
#endif
|
||||
#ifdef PLUGIN_WIRELESS
|
||||
plugin_exit_wireless();
|
||||
#endif
|
||||
#ifdef PLUGIN_XMMS
|
||||
plugin_exit_xmms();
|
||||
#endif
|
||||
|
||||
plugin_exit_cfg();
|
||||
plugin_exit_string();
|
||||
plugin_exit_math();
|
||||
|
||||
|
||||
DeleteFunctions();
|
||||
DeleteVariables();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user