2004-06-27 17:28:52 -05:00
|
|
|
dnl Process this file with autoconf to create configure.
|
|
|
|
|
|
|
|
dnl ################################################################
|
|
|
|
dnl # Initialize autoconf
|
|
|
|
dnl ################################################################
|
2004-06-27 23:50:49 -05:00
|
|
|
AC_INIT(libnotify, 0.0.1, chipx86@gnupdate.org)
|
2004-06-27 17:28:52 -05:00
|
|
|
AC_PREREQ(2.50)
|
|
|
|
AC_CONFIG_SRCDIR(config.h.in)
|
|
|
|
AC_COPYRIGHT([Copyright 2004 Christian Hammond])
|
|
|
|
|
|
|
|
|
|
|
|
dnl ################################################################
|
|
|
|
dnl # Version information
|
|
|
|
dnl ################################################################
|
|
|
|
LIBGALAGO_MAJOR_VERSION=0
|
|
|
|
LIBGALAGO_MINOR_VERSION=0
|
|
|
|
LIBGALAGO_MICRO_VERSION=1
|
|
|
|
LIBGALAGO_DEVEL_VERSION=0
|
|
|
|
|
|
|
|
LIBGALAGO_VERSION=$LIBGALAGO_MAJOR_VERSION.$LIBGALAGO_MINOR_VERSION.$LIBGALAGO_MICRO_VERSION
|
|
|
|
|
|
|
|
if test "x$LIBGALAGO_DEVEL_VERSION" != "x0"; then
|
|
|
|
if test "x$LIBGALAGO_MICRO_VERSION" = "x0"; then
|
|
|
|
LIBGALAGO_MICRO_VERSION=$LIBGALAGO_DEVEL_VERSION
|
|
|
|
LIBGALAGO_VERSION=$LIBGALAGO_MAJOR_VERSION.$LIBGALAGO_MINOR_VERSION.$LIBGALAGO_DEVEL_VERSION
|
|
|
|
else
|
|
|
|
LIBGALAGO_VERSION=$LIBGALAGO_VERSION.$LIBGALAGO_DEVEL_VERSION
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
AC_DEFINE_UNQUOTED(LIBGALAGO_MAJOR_VERSION, $LIBGALAGO_MAJOR_VERSION,
|
|
|
|
[libnotify major version.])
|
|
|
|
AC_DEFINE_UNQUOTED(LIBGALAGO_MINOR_VERSION, $LIBGALAGO_MINOR_VERSION,
|
|
|
|
[libnotify minor version.])
|
|
|
|
AC_DEFINE_UNQUOTED(LIBGALAGO_MICRO_VERSION, $LIBGALAGO_MICRO_VERSION,
|
|
|
|
[libnotify micro version.])
|
|
|
|
AC_DEFINE_UNQUOTED(LIBGALAGO_VERSION, "$LIBGALAGO_VERSION",
|
|
|
|
[libnotify version.])
|
|
|
|
|
|
|
|
dnl ################################################################
|
|
|
|
dnl # libtool versioning
|
|
|
|
dnl ################################################################
|
|
|
|
dnl #
|
|
|
|
dnl # +1 : 0 : +1 == new interface that does not break old one.
|
|
|
|
dnl # +1 : 0 : 0 == removed an interface. Breaks old apps.
|
|
|
|
dnl # ? : +1 : ? == internal changes that doesn't break anything.
|
|
|
|
dnl #
|
|
|
|
dnl # CURRENT : REVISION : AGE
|
|
|
|
dnl #
|
|
|
|
LT_CURRENT=0
|
|
|
|
LT_REVISION=0
|
|
|
|
LT_AGE=0
|
|
|
|
|
|
|
|
LT_RELEASE=$LIBGALAGO_MAJOR_VERSION.$LIBGALAGO_MINOR_VERSION.$LIBGALAGO_MICRO_VERSION
|
|
|
|
|
|
|
|
AC_SUBST(LT_RELEASE)
|
|
|
|
AC_SUBST(LT_CURRENT)
|
|
|
|
AC_SUBST(LT_REVISION)
|
|
|
|
AC_SUBST(LT_AGE)
|
|
|
|
|
|
|
|
dnl ################################################################
|
|
|
|
dnl # Initialize automake
|
|
|
|
dnl ################################################################
|
|
|
|
VERSION=$LIBGALAGO_VERSION
|
|
|
|
PACKAGE=libnotify
|
|
|
|
|
|
|
|
AM_INIT_AUTOMAKE($PACKAGE, $VERSION)
|
|
|
|
|
|
|
|
dnl ################################################################
|
|
|
|
dnl # Specify a header configuration file
|
|
|
|
dnl ################################################################
|
|
|
|
AM_CONFIG_HEADER(config.h)
|
|
|
|
|
|
|
|
dnl ################################################################
|
|
|
|
dnl # Check for some standard stuff.
|
|
|
|
dnl ################################################################
|
|
|
|
AC_PROG_CC
|
|
|
|
#AC_ARG_PROGRAM
|
|
|
|
AC_PROG_CPP
|
|
|
|
AC_PROG_MAKE_SET
|
|
|
|
AC_PROG_LN_S
|
|
|
|
AC_PROG_INSTALL
|
|
|
|
|
|
|
|
AC_C_CONST
|
|
|
|
AC_TYPE_SIZE_T
|
|
|
|
AC_EXEEXT
|
|
|
|
|
|
|
|
AM_PROG_LIBTOOL
|
|
|
|
|
2004-11-03 03:21:23 -06:00
|
|
|
AC_CHECK_LIB([popt], [poptGetArg], , AC_MSG_ERROR([Popt is required]))
|
|
|
|
|
2004-06-27 17:28:52 -05:00
|
|
|
pkg_modules="glib-2.0 >= 2.2.2, dbus-1 >= 0.20, dbus-glib-1 >= 0.20"
|
|
|
|
PKG_CHECK_MODULES(PACKAGE, [$pkg_modules])
|
|
|
|
AC_SUBST(PACKAGE_CFLAGS)
|
|
|
|
AC_SUBST(PACKAGE_LIBS)
|
|
|
|
|
|
|
|
AC_DEFINE_UNQUOTED(DBUS_API_SUBJECT_TO_CHANGE, ,DBUS API is subject to change)
|
|
|
|
|
|
|
|
dnl # Use wall if we have GCC
|
|
|
|
if test "x$GCC" = "xyes"; then
|
|
|
|
CFLAGS="$CFLAGS -Wall"
|
|
|
|
fi
|
|
|
|
|
|
|
|
AC_SUBST(CFLAGS)
|
|
|
|
|
|
|
|
dnl ################################################################
|
|
|
|
dnl # Output the Makefiles
|
|
|
|
dnl ################################################################
|
|
|
|
AC_CONFIG_FILES([
|
|
|
|
Makefile
|
2004-11-03 03:21:23 -06:00
|
|
|
libnotify.pc
|
|
|
|
libnotify.spec
|
2004-06-27 17:28:52 -05:00
|
|
|
libnotify/Makefile
|
2004-09-25 04:54:53 -05:00
|
|
|
tests/Makefile
|
2004-11-03 03:21:23 -06:00
|
|
|
tools/Makefile
|
2004-06-27 17:28:52 -05:00
|
|
|
])
|
|
|
|
|
|
|
|
AC_OUTPUT
|
|
|
|
|
|
|
|
echo
|
|
|
|
echo $PACKAGE v$VERSION
|
|
|
|
|
|
|
|
echo
|
|
|
|
echo "Now type make to compile"
|
|
|
|
echo "Then su to root and type: make install"
|
|
|
|
echo
|
|
|
|
|