1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86
|
dnl Process this file with autoconf to produce a configure script.
AC_INIT(src/xmms-status-plugin.c)
AM_CONFIG_HEADER(config.h)
VERSION=1.0
PACKAGE=xmms-status-plugin
AM_INIT_AUTOMAKE($PACKAGE, $VERSION)
AM_DISABLE_STATIC
AC_PROG_CC
AM_PROG_LIBTOOL
AM_MAINTAINER_MODE
dnl Checks for programs.
AC_REQUIRE_CPP
AC_PROG_INSTALL
AC_PROG_LN_S
AC_PROG_MAKE_SET
AC_ISC_POSIX
dnl Checks for libraries.
AM_PATH_GTK(1.2.0)
AM_PATH_XMMS(1.0.1,,
AC_MSG_ERROR([*** XMMS >= 1.0.1 not installed - please install first ***]))
LIBS_save=$LIBS
LIBS="$XMMS_LIBS $LIBS"
AC_CHECK_FUNCS([xmms_remote_playlist_delete xmms_remote_quit xmms_remote_play_pause xmms_remote_playlist_show_adddfiles xmms_remote_playlist_show_adddir xmms_remote_playlist_show_addurl])
LIBS=$LIBS_save
PTHREAD_LIBS=error
AC_CHECK_LIB(pthread, pthread_attr_init,
PTHREAD_LIBS="-lpthread")
if test "x$PTHREAD_LIBS" = xerror; then
AC_CHECK_LIB(pthreads, pthread_attr_init,
PTHREAD_LIBS="-lpthreads")
fi
if test "x$PTHREAD_LIBS" = xerror; then
AC_CHECK_LIB(c_r, pthread_attr_init,
PTHREAD_LIBS="-lc_r")
fi
if test "x$PTHREAD_LIBS" = xerror; then
AC_CHECK_FUNC(pthread_attr_init, PTHREAD_LIBS="")
fi
AC_SUBST(PTHREAD_LIBS)
AC_DEFINE_UNQUOTED(XMMS_DATA_DIR, "$XMMS_DATA_DIR")
ALL_LINGUAS="fr de nl"
AM_GNU_GETTEXT
dnl #############################################################
dnl turn warnings into errors to enforce clean code
dnl #############################################################
AC_ARG_ENABLE(more-warnings,
[ --enable-more-warnings Enable maximum compiler warnings [default=yes]],
more_warnings="$enableval", more_warnings=yes)
AC_ARG_ENABLE(fatal-warnings,
[ --enable-fatal-warnings Turn compiler warnings into errors [default=yes]],
fatal_warnings="$enableval", fatal_warnings=yes)
if test "$GCC" = "yes" -a "$more_warnings" = "yes"; then
CFLAGS="$CFLAGS \
-Wall -Wno-uninitialized \
-Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes \
-Wnested-externs -Wpointer-arith \
-Wno-sign-compare -Wsign-promo"
fi
if test "$GCC" = "yes" -a "$fatal_warnings" = "yes"; then
CFLAGS="$CFLAGS -Werror"
fi
AC_OUTPUT([
Makefile
xmms-status-plugin.spec
src/Makefile
images/Makefile
intl/Makefile
po/Makefile.in
])
|