1AC_PREREQ(2.50) 2AC_INIT(libiptcdata/iptc-data.h) 3AM_CONFIG_HEADER(config.h) 4AM_INIT_AUTOMAKE(libiptcdata, 1.0.4) 5AM_MAINTAINER_MODE 6 7dnl --------------------------------------------------------------------------- 8dnl When making a release: 9dnl 1. If the library source code has changed at all since the last release, 10dnl then increment REVISION. 11dnl 2. If the interface has been changed since the last release, increment 12dnl CURRENT, and set REVISION to 0. 13dnl 3. If the interface changes consist solely of additions, increment AGE. 14dnl 4. If the interface has removed elements, set AGE to 0. 15dnl --------------------------------------------------------------------------- 16LIBIPTCDATA_AGE=3 17LIBIPTCDATA_REVISION=3 18LIBIPTCDATA_CURRENT=3 19AC_SUBST(LIBIPTCDATA_AGE) 20AC_SUBST(LIBIPTCDATA_REVISION) 21AC_SUBST(LIBIPTCDATA_CURRENT) 22LIBIPTCDATA_VERSION_INFO=$LIBIPTCDATA_CURRENT:$LIBIPTCDATA_REVISION:$LIBIPTCDATA_AGE 23AC_SUBST(LIBIPTCDATA_VERSION_INFO) 24 25AM_DISABLE_STATIC 26AM_PROG_LIBTOOL 27 28 29AC_ARG_ENABLE(python, 30[ --enable-python Build Python wrapper library], 31[case "${enableval}" in 32 yes) pythonlib=true ;; 33 no) pythonlib=false ;; 34 *) AC_MSG_ERROR(bad value ${enableval} for --enable-python) ;; 35esac],[pythonlib=false]) 36AM_CONDITIONAL([PYTHONLIB], [test x$pythonlib = xtrue]) 37 38if test "x$pythonlib" = "xtrue"; then 39 dnl setup python devel environment 40 AC_PYTHON_DEVEL 41 AM_PATH_PYTHON 42fi 43 44dnl Create a stdint.h-like file containing size-specific integer definitions 45dnl that will always be available 46AC_NEED_STDINT_H(libiptcdata/_stdint.h) 47 48dnl --------------------------------------------------------------------------- 49dnl i18n support 50dnl --------------------------------------------------------------------------- 51dnl ALL_LINGUAS="de it" 52 53dnl The gettext domain of the command-line utility 54IPTC_GETTEXT_PACKAGE=iptc 55AC_DEFINE_UNQUOTED(IPTC_GETTEXT_PACKAGE,"$IPTC_GETTEXT_PACKAGE",[The gettext domain for the command-line utility]) 56AC_SUBST(IPTC_GETTEXT_PACKAGE) 57 58dnl The gettext domain of the library 59GETTEXT_PACKAGE=${PACKAGE} 60AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE",[The gettext domain for the library]) 61AC_SUBST(GETTEXT_PACKAGE) 62#if test -f po/Makevars.template 63#then 64# sed -e "s/^DOMAIN.*/DOMAIN = ${GETTEXT_PACKAGE}/" < po/Makevars.template > po/Makevars 65# AC_MSG_RESULT([yes. done.]) 66#else 67# AC_MSG_RESULT([no]) 68#fi 69AM_GNU_GETTEXT([external]) 70AM_GNU_GETTEXT_VERSION(0.13.1) 71 72AM_ICONV() 73 74dnl Check for headers (Mac OSX often doesn't have them) 75AC_CHECK_HEADERS([getopt.h wchar.h iconv.h]) 76 77 78GTK_DOC_CHECK([1.0]) 79 80 81dnl --------------------------------------------------------------------------- 82dnl Warnings 83dnl --------------------------------------------------------------------------- 84if test "x$GCC" = "xyes"; then 85 CFLAGS="$CFLAGS -g -Wall -Wmissing-declarations -Wmissing-prototypes" 86 LDFLAGS="$LDFLAGS -g -Wall" 87 AC_SUBST(CFLAGS) 88 AC_SUBST(LDFLAGS) 89fi 90 91AC_OUTPUT([ 92 Makefile 93 libiptcdata.spec 94 libiptcdata/Makefile 95 m4/Makefile 96 libiptcdata/libiptcdata.pc 97 iptc/Makefile 98 docs/Makefile 99 docs/reference/Makefile 100 docs/reference/version.xml 101 po/Makefile.in 102 iptc/po/Makefile.in 103 win/Makefile 104 win/iptctool/Makefile 105 python/Makefile 106]) 107 108echo " 109 110Configuration (libiptcdata): 111 112 Source code location: ${srcdir} 113 Compiler: ${CC} 114 Python Library: ${pythonlib} 115" 116