dnl Process this file with autoconf to produce a configure script. AC_INIT(configure.in) AM_INIT_AUTOMAKE(opie_sync, 0.82) AM_MAINTAINER_MODE AM_CONFIG_HEADER(config.h) AC_ISC_POSIX AC_PROG_CC AM_PROG_CC_STDC AC_HEADER_STDC pkg_modules="libgnomeui-2.0 gtk+-2.0 glib-2.0" PKG_CHECK_MODULES(PACKAGE, [$pkg_modules]) AC_SUBST(PACKAGE_CFLAGS) AC_SUBST(PACKAGE_LIBS) dnl Add extra flags if in debug mode AC_ARG_ENABLE(debug, [--enable-debug Enable debugging - useful only for developers and testers], DBG_FLAGS="yes", DBG_FLAGS="no", ) AM_CONDITIONAL(OPIE_DBG_FLAGS, test "$DBG_FLAGS" = "yes") CPPFLAGS="${GTK_CFLAGS} ${GNOME_INCLUDEDIR} ${ORBIT_CFLAGS} ${BONOBO_CFLAGS}" dnl GETTEXT_PACKAGE=opie_sync dnl AC_SUBST(GETTEXT_PACKAGE) dnl AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE") dnl Add the languages which your application supports here. dnl ALL_LINGUAS="" dnl AM_GLIB_GNU_GETTEXT AC_PROG_LIBTOOL dnl opie_sync required libraries AC_CHECK_LIB(curl,curl_global_init,,AC_MSG_ERROR(You must have libcurl installed.)) AC_CHECK_LIB(expat,XML_ParserCreate,,AC_MSG_ERROR(You must have libexpat installed.)) AC_CHECK_LIB(crypto,MD5_Init,,AC_MSG_ERROR(You must have OpenSSL libcrypto installed.)) dnl Info for the RPM MULTISYNC_TOP="../.." AC_SUBST(VERSION) AC_SUBST(prefix) MULTISYNC_VERSION=`grep "#define VERSION" ${MULTISYNC_TOP}/config.h | sed -e 's/#define VERSION //g' | sed -e 's/\"//g'` AC_SUBST(MULTISYNC_VERSION) AC_OUTPUT([ Makefile src/Makefile po/Makefile.in ${MULTISYNC_TOP}/specs/multisync-opie.spec ])