mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-11-05 21:07:52 +00:00
configure and makefile updates
git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky@153 7f574dfc-610e-0410-a909-a81674777703
This commit is contained in:
parent
802095c03e
commit
a066bb6506
@ -2,7 +2,7 @@
|
|||||||
# $Id$
|
# $Id$
|
||||||
|
|
||||||
aclocal-1.9
|
aclocal-1.9
|
||||||
# libtoolize --force
|
libtoolize --force
|
||||||
# autoheader
|
autoheader
|
||||||
automake-1.9 -a
|
automake-1.9 -a
|
||||||
autoconf
|
autoconf
|
||||||
|
83
configure.in
83
configure.in
@ -2,6 +2,8 @@ AC_INIT([Conky],[1.3],[brenden1@users.sourceforge.net])
|
|||||||
|
|
||||||
AM_INIT_AUTOMAKE(conky, 1.3)
|
AM_INIT_AUTOMAKE(conky, 1.3)
|
||||||
AM_CONFIG_HEADER(src/config.h)
|
AM_CONFIG_HEADER(src/config.h)
|
||||||
|
AC_PROG_LIBTOOL
|
||||||
|
|
||||||
|
|
||||||
AC_CONFIG_FILES(
|
AC_CONFIG_FILES(
|
||||||
Makefile
|
Makefile
|
||||||
@ -62,23 +64,6 @@ if test $dah != "no"; then
|
|||||||
AC_DEFINE(OWN_WINDOW, 1, [Define if you want support for window creating])
|
AC_DEFINE(OWN_WINDOW, 1, [Define if you want support for window creating])
|
||||||
fi
|
fi
|
||||||
|
|
||||||
dnl
|
|
||||||
dnl DOUBLE_BUFFER option
|
|
||||||
dnl
|
|
||||||
|
|
||||||
dah=yes
|
|
||||||
AC_ARG_ENABLE(double_buffer,
|
|
||||||
[ --enable-double-buffer enable if you want to support flicker-free operation [default=yes]],
|
|
||||||
[dah="$enableval"])
|
|
||||||
|
|
||||||
if test $dah != "no"; then
|
|
||||||
AC_DEFINE(DOUBLE_BUFFER, 1, [Define if you want support for the DBE extension])
|
|
||||||
AC_CHECK_HEADERS([X11/extensions/Xdbe.h], [AC_DEFINE([HAVE_XDBE], 1, [Xdbe])], [XDBE_MISSING=yes])
|
|
||||||
if test "x$XDBE_MISSING" = xyes; then
|
|
||||||
AC_MSG_ERROR([something went wrong when checking for Xdbe (double buffer extension])
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
dnl
|
dnl
|
||||||
dnl PROC_UPTIME option
|
dnl PROC_UPTIME option
|
||||||
dnl
|
dnl
|
||||||
@ -112,7 +97,7 @@ dnl
|
|||||||
|
|
||||||
want_mpd=no
|
want_mpd=no
|
||||||
AC_ARG_ENABLE(mpd,
|
AC_ARG_ENABLE(mpd,
|
||||||
[ --enable-mpd enable if you want MPD support [default=no]],
|
[ --enable-mpd enable if you want MPD support [default=no]],
|
||||||
[want_mpd="$enableval"])
|
[want_mpd="$enableval"])
|
||||||
|
|
||||||
AM_CONDITIONAL(BUILD_MPD, test x$want_mpd == xyes)
|
AM_CONDITIONAL(BUILD_MPD, test x$want_mpd == xyes)
|
||||||
@ -126,7 +111,7 @@ dnl
|
|||||||
|
|
||||||
want_cairo=no
|
want_cairo=no
|
||||||
AC_ARG_ENABLE(cairo,
|
AC_ARG_ENABLE(cairo,
|
||||||
[ --enable-cairo enable if you want Cairo support [default=no]],
|
[ --enable-cairo enable if you want Cairo support [default=no]],
|
||||||
[want_cairo="$enableval"])
|
[want_cairo="$enableval"])
|
||||||
|
|
||||||
AM_CONDITIONAL(BUILD_CAIRO, test x$want_cairo == xyes)
|
AM_CONDITIONAL(BUILD_CAIRO, test x$want_cairo == xyes)
|
||||||
@ -174,52 +159,44 @@ dnl
|
|||||||
dnl X
|
dnl X
|
||||||
dnl
|
dnl
|
||||||
|
|
||||||
|
dah=yes
|
||||||
|
AC_ARG_ENABLE(double_buffer,
|
||||||
|
[ --enable-double-buffer enable if you want to support flicker-free operation [default=yes]],
|
||||||
|
[dah="$enableval"])
|
||||||
|
|
||||||
want_x11=yes
|
want_x11=yes
|
||||||
AC_ARG_ENABLE(x11,
|
AC_ARG_ENABLE(x11,
|
||||||
[ --enable-x11 enable if you want X11 support [default=yes]],
|
[ --enable-x11 enable if you want X11 support [default=yes]],
|
||||||
[want_x11="$enableval"])
|
[want_x11="$enableval"])
|
||||||
|
|
||||||
|
|
||||||
AM_CONDITIONAL(BUILD_X11, test x$want_x11 == xyes)
|
AM_CONDITIONAL(BUILD_X11, test x$want_x11)
|
||||||
if test x$want_x11 == xyes; then
|
if test x$want_x11 == xyes; then
|
||||||
AC_PATH_X
|
AC_PATH_X
|
||||||
AC_CHECK_HEADERS([X11/Xlib.h], [], [X11_MISSING=yes])
|
AC_PATH_XTRA
|
||||||
AC_CHECK_LIB([X11], [XOpenDisplay], [X11_LIBS="-lX11"], [], [[-L$x_libraries]])
|
CFLAGS="$CFLAGS $X_CFLAGS"
|
||||||
AC_CHECK_LIB([Xext], [XdbeQueryExtension], [
|
LIBS="$LIBS $X_LIBS $X11_LIBS"
|
||||||
X11_LIBS="$X11_LIBS -lXext"
|
LDFLAGS="$LDFLAGS $LIBS $X_PRE_LIBS"
|
||||||
AC_DEFINE(HAVE_LIBXEXT, 1, [Define if you have libXext])
|
if test "x$X_DISPLAY_MISSING" = xyes; then
|
||||||
], [], [[-L$x_libraries $X11_LIBS]])
|
AC_MSG_ERROR([something went wrong when checking for X11, you're probably missing headers or it's not installed, either re-run configure with --disable-x11, or fix this])
|
||||||
if test "x$X11_MISSING" = xyes; then
|
fi
|
||||||
AC_MSG_ERROR([something went wrong when checking for X11, you're probably missing headers or it's not installed, either re-run configure with --disable-x11, or fix this])
|
AC_DEFINE(X11, 1, [Define if you want to use X11])
|
||||||
fi
|
AC_DEFINE(HAVE_X11, 1, [Define if you have X11])
|
||||||
AC_DEFINE(X11, 1, [Define if you want to use X11])
|
if test $dah != "no"; then
|
||||||
AC_DEFINE(HAVE_X11, 1, [Define if you have X11])
|
AC_DEFINE(DOUBLE_BUFFER, 1, [Define if you want support for the DBE extension])
|
||||||
|
AC_CHECK_LIB(Xext, XdbeQueryExtension, [AC_DEFINE([HAVE_XDBE], 1, [Xdbe]) LIBS="$LIBS -lXext"],
|
||||||
|
[AC_MSG_ERROR([something went wrong when checking for Xdbe (double buffer extension)])])
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
dnl AC_PATH_X if test $have_x != "yes"; then
|
AM_CONDITIONAL(HAVE_X11, test x$want_x11)
|
||||||
dnl echo "Sorry, X is very much needed"
|
|
||||||
dnl exit 1
|
|
||||||
dnl fi
|
|
||||||
dnl AC_DEFINE(HAVE_X11, 1, [Define if you have X11])
|
|
||||||
|
|
||||||
AC_CHECK_LIB([X11], [XOpenDisplay], [X11_LIBS="-lX11"], [], [[-L$x_libraries]])
|
|
||||||
AC_CHECK_LIB([Xext], [XdbeQueryExtension], [
|
|
||||||
X11_LIBS="$X11_LIBS -lXext"
|
|
||||||
AC_DEFINE(HAVE_LIBXEXT, 1, [Define if you have libXext])
|
|
||||||
], [], [[-L$x_libraries $X11_LIBS]])
|
|
||||||
|
|
||||||
if test "$x_libraries" != ""; then
|
|
||||||
LDFLAGS="$LDFLAGS -L$x_libraries"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if test "$x_includes" != ""; then
|
|
||||||
CFLAGS="$CFLAGS -Wall -I$x_includes"
|
|
||||||
fi
|
|
||||||
|
|
||||||
dnl
|
dnl
|
||||||
dnl Xft
|
dnl Xft
|
||||||
dnl
|
dnl
|
||||||
|
|
||||||
if test "$want_xft" = "yes"; then
|
if test x$want_xft && test x$want_x11; then
|
||||||
AC_PATH_PROG(XFTCONFIG, xft-config)
|
AC_PATH_PROG(XFTCONFIG, xft-config)
|
||||||
if test x$XFTCONFIG != x; then
|
if test x$XFTCONFIG != x; then
|
||||||
dnl TODO: needs more checks
|
dnl TODO: needs more checks
|
||||||
@ -265,7 +242,7 @@ dnl Some random headers
|
|||||||
dnl
|
dnl
|
||||||
|
|
||||||
|
|
||||||
AC_CHECK_HEADERS([signal.h unistd.h X11/Xlib.h sys/utsname.h sys/stat.h linux/soundcard.h dirent.h])
|
AC_CHECK_HEADERS([signal.h unistd.h X11/Xlib.h sys/utsname.h sys/stat.h linux/soundcard.h dirent.h mcheck.h])
|
||||||
AC_CHECK_HEADERS([sys/statfs.h sys/param.h sys/mount.h])
|
AC_CHECK_HEADERS([sys/statfs.h sys/param.h sys/mount.h])
|
||||||
dnl For cairo
|
dnl For cairo
|
||||||
|
|
||||||
|
@ -2,7 +2,6 @@ man_MANS = conky.1.gz
|
|||||||
|
|
||||||
clean-am: clean-generic mostlyclean-am
|
clean-am: clean-generic mostlyclean-am
|
||||||
rm -f docs.mxml
|
rm -f docs.mxml
|
||||||
rm -f ${top_srcdir}/README
|
|
||||||
rm -f conky.1.gz
|
rm -f conky.1.gz
|
||||||
|
|
||||||
if HAVE_DOCSTUFF
|
if HAVE_DOCSTUFF
|
||||||
|
BIN
doc/conky.1.gz
BIN
doc/conky.1.gz
Binary file not shown.
@ -10,6 +10,7 @@ endif
|
|||||||
|
|
||||||
if BUILD_LINUX
|
if BUILD_LINUX
|
||||||
linux = linux.c
|
linux = linux.c
|
||||||
|
PTHREAD_LIBS = -lpthread
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if BUILD_SOLARIS
|
if BUILD_SOLARIS
|
||||||
@ -18,6 +19,7 @@ endif
|
|||||||
|
|
||||||
if BUILD_FREEBSD
|
if BUILD_FREEBSD
|
||||||
freebsd = freebsd.c
|
freebsd = freebsd.c
|
||||||
|
PTHREAD_LIBS = -pthread
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if BUILD_NETBSD
|
if BUILD_NETBSD
|
||||||
@ -38,11 +40,7 @@ endif
|
|||||||
|
|
||||||
conky_SOURCES = common.c fs.c top.c $(linux) mail.c mixer.c $(seti) $(mpd) $(solaris) $(freebsd) $(netbsd) $(cairo) conky.c conky.h $(x11) $(mldonkey) remoted.c remoted.h remotec.c remotec.h
|
conky_SOURCES = common.c fs.c top.c $(linux) mail.c mixer.c $(seti) $(mpd) $(solaris) $(freebsd) $(netbsd) $(cairo) conky.c conky.h $(x11) $(mldonkey) remoted.c remoted.h remotec.c remotec.h
|
||||||
|
|
||||||
AM_LDFLAGS = $(X11_LIBS) $(XFT_LIBS) $(CAIRO_LIBS)
|
AM_LDFLAGS = $(X11_LIBS) $(XFT_LIBS) $(CAIRO_LIBS) $(PTHREAD_LIBS) -lm
|
||||||
|
|
||||||
LDADD = $(METAR_LIBS)
|
|
||||||
|
|
||||||
LIBS = -lm -lpthread
|
|
||||||
|
|
||||||
EXTRA_DIST = seti.c linux.c solaris.c freebsd.c netbsd.c mpd.c libmpdclient.c \
|
EXTRA_DIST = seti.c linux.c solaris.c freebsd.c netbsd.c mpd.c libmpdclient.c \
|
||||||
cairo.c libmpdclient.h top.h mldonkey.c ftp.c ftp.h x11.c
|
cairo.c libmpdclient.h top.h mldonkey.c ftp.c ftp.h x11.c
|
||||||
|
@ -15,6 +15,9 @@
|
|||||||
/* Define to 1 if you have the <dirent.h> header file. */
|
/* Define to 1 if you have the <dirent.h> header file. */
|
||||||
#undef HAVE_DIRENT_H
|
#undef HAVE_DIRENT_H
|
||||||
|
|
||||||
|
/* Define to 1 if you have the <dlfcn.h> header file. */
|
||||||
|
#undef HAVE_DLFCN_H
|
||||||
|
|
||||||
/* Define if you have getloadavg */
|
/* Define if you have getloadavg */
|
||||||
#undef HAVE_GETLOADAVG
|
#undef HAVE_GETLOADAVG
|
||||||
|
|
||||||
@ -24,12 +27,12 @@
|
|||||||
/* Define if you have kstat (Solaris) */
|
/* Define if you have kstat (Solaris) */
|
||||||
#undef HAVE_KSTAT
|
#undef HAVE_KSTAT
|
||||||
|
|
||||||
/* Define if you have libXext */
|
|
||||||
#undef HAVE_LIBXEXT
|
|
||||||
|
|
||||||
/* Define to 1 if you have the <linux/soundcard.h> header file. */
|
/* Define to 1 if you have the <linux/soundcard.h> header file. */
|
||||||
#undef HAVE_LINUX_SOUNDCARD_H
|
#undef HAVE_LINUX_SOUNDCARD_H
|
||||||
|
|
||||||
|
/* Define to 1 if you have the <mcheck.h> header file. */
|
||||||
|
#undef HAVE_MCHECK_H
|
||||||
|
|
||||||
/* Define to 1 if you have the <memory.h> header file. */
|
/* Define to 1 if you have the <memory.h> header file. */
|
||||||
#undef HAVE_MEMORY_H
|
#undef HAVE_MEMORY_H
|
||||||
|
|
||||||
@ -78,9 +81,6 @@
|
|||||||
/* Define if you have X11 */
|
/* Define if you have X11 */
|
||||||
#undef HAVE_X11
|
#undef HAVE_X11
|
||||||
|
|
||||||
/* Define to 1 if you have the <X11/extensions/Xdbe.h> header file. */
|
|
||||||
#undef HAVE_X11_EXTENSIONS_XDBE_H
|
|
||||||
|
|
||||||
/* Define to 1 if you have the <X11/Xlib.h> header file. */
|
/* Define to 1 if you have the <X11/Xlib.h> header file. */
|
||||||
#undef HAVE_X11_XLIB_H
|
#undef HAVE_X11_XLIB_H
|
||||||
|
|
||||||
@ -131,3 +131,6 @@
|
|||||||
|
|
||||||
/* Define if you are using Xft */
|
/* Define if you are using Xft */
|
||||||
#undef XFT
|
#undef XFT
|
||||||
|
|
||||||
|
/* Define to 1 if the X Window System is missing or not being used. */
|
||||||
|
#undef X_DISPLAY_MISSING
|
||||||
|
@ -3957,7 +3957,9 @@ else if (strcasecmp(name, a) == 0 || strcasecmp(name, a) == 0)
|
|||||||
#ifdef OWN_WINDOW
|
#ifdef OWN_WINDOW
|
||||||
CONF("own_window") {
|
CONF("own_window") {
|
||||||
own_window = string_to_bool(value);
|
own_window = string_to_bool(value);
|
||||||
|
#ifdef XDBE
|
||||||
use_xdbe = 0;
|
use_xdbe = 0;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
CONF("stippled_borders") {
|
CONF("stippled_borders") {
|
||||||
@ -4196,7 +4198,9 @@ int main(int argc, char **argv)
|
|||||||
#ifdef OWN_WINDOW
|
#ifdef OWN_WINDOW
|
||||||
case 'o':
|
case 'o':
|
||||||
own_window = 1;
|
own_window = 1;
|
||||||
|
#ifdef XDBE
|
||||||
use_xdbe = 0;
|
use_xdbe = 0;
|
||||||
|
#endif
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
#ifdef XDBE
|
#ifdef XDBE
|
||||||
|
Loading…
Reference in New Issue
Block a user