X-Git-Url: http://vcs.maemo.org/git/?a=blobdiff_plain;ds=sidebyside;f=configure.in;h=07a992ec8f1b0b090720d60c2922c77ef3a5eb11;hb=b179e811e807b955d0f2c69179c4aed54595cfd9;hp=166e87f03c820354bedcf6074a9acdb5a0dd78eb;hpb=e5893c43294d63e6b7364ef0ced84392d543dff0;p=monky diff --git a/configure.in b/configure.in index 166e87f..07a992e 100644 --- a/configure.in +++ b/configure.in @@ -1,7 +1,15 @@ -AC_INIT(src/conky.c) +AC_INIT([Conky],[1.3.0],[brenden1@users.sourceforge.net]) -AM_INIT_AUTOMAKE(conky, 1.3) +AM_INIT_AUTOMAKE(conky, 1.3.0) AM_CONFIG_HEADER(src/config.h) +AC_PROG_LIBTOOL + + +AC_CONFIG_FILES( + Makefile + doc/Makefile + src/Makefile + ) uname=`uname` @@ -57,23 +65,6 @@ if test $dah != "no"; then 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 PROC_UPTIME option dnl @@ -106,7 +97,7 @@ dnl want_mpd=no 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"]) AM_CONDITIONAL(BUILD_MPD, test x$want_mpd == xyes) @@ -120,7 +111,7 @@ dnl want_cairo=no 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"]) AM_CONDITIONAL(BUILD_CAIRO, test x$want_cairo == xyes) @@ -168,52 +159,44 @@ dnl dnl X 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 AC_ARG_ENABLE(x11, -[ --enable-x11 enable if you want X11 support [default=yes]], - [want_x11="$enableval"]) +[ --enable-x11 enable if you want X11 support [default=yes]], + [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 -AC_PATH_X -AC_CHECK_HEADERS([X11/Xlib.h], [], [X11_MISSING=yes]) -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$X11_MISSING" = xyes; then - 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]) - fi - AC_DEFINE(X11, 1, [Define if you want to use X11]) - AC_DEFINE(HAVE_X11, 1, [Define if you have X11]) -fi -dnl AC_PATH_X if test $have_x != "yes"; then -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" + AC_PATH_X + AC_PATH_XTRA + CFLAGS="$CFLAGS $X_CFLAGS" + LIBS="$LIBS $X_LIBS $X11_LIBS" + LDFLAGS="$LDFLAGS $LIBS $X_PRE_LIBS" + if test "x$X_DISPLAY_MISSING" = xyes; then + 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]) + fi + AC_DEFINE(X11, 1, [Define if you want to use X11]) + AC_DEFINE(HAVE_X11, 1, [Define if you have X11]) + if test $dah != "no"; then + 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 +AM_CONDITIONAL(HAVE_X11, test x$want_x11) + -if test "$x_includes" != ""; then - CFLAGS="$CFLAGS -Wall -I$x_includes" -fi dnl dnl Xft dnl -if test "$want_xft" = "yes"; then +if test x$want_xft && test x$want_x11; then AC_PATH_PROG(XFTCONFIG, xft-config) if test x$XFTCONFIG != x; then dnl TODO: needs more checks @@ -259,14 +242,23 @@ dnl Some random headers 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]) dnl For cairo dnl -dnl Check help2man +dnl Check doc stuff dnl +AC_CHECK_PROGS(db2x_xsltproc_cmd, db2x_xsltproc) +AC_CHECK_PROGS(db2x_manxml_cmd, db2x_manxml) +AC_CHECK_PROGS(xsltproc_cmd, xsltproc) +if test x$db2x_xsltproc_cmd = "x" -o x$xsltproc_cmd = "x"; then + AM_CONDITIONAL(HAVE_DOCSTUFF, false) +else + AM_CONDITIONAL(HAVE_DOCSTUFF, true) +fi + dnl dnl Check sysinfo() dnl @@ -342,4 +334,4 @@ AC_SUBST(CFLAGS) AC_SUBST(X11_LIBS) AC_SUBST(XFT_LIBS) -AC_OUTPUT(Makefile) +AC_OUTPUT