AC_CONFIG_SRCDIR([libexif/exif-data.h])
AC_CONFIG_HEADERS([config.h])
AM_INIT_AUTOMAKE([gnu 1.8 dist-bzip2])
-GP_CONFIG_INIT
GP_CONFIG_MSG([Source code location],[${srcdir}])
dnl ---------------------------------------------------------------------------
AC_SUBST(MATHLIBS)
-dnl ---------------------------------------------------------------------------
-dnl i18n support
-dnl ---------------------------------------------------------------------------
+# ---------------------------------------------------------------------------
+# i18n support
+# ---------------------------------------------------------------------------
GP_GETTEXT_HACK([${PACKAGE}-${LIBEXIF_CURRENT}],
[Lutz Müller and others])
ALL_LINGUAS="de es fr"
dnl GP_CONFIG_MSG([Location of bar],[${bar}])
dnl GP_CONFIG_OUTPUT
dnl
-
+dnl
AC_DEFUN([GP_CONFIG_INIT],
-[
+[# the empty string must contain at least as many spaces as the substr length
+ndim_config_empty=" "
ndim_config_msg="
Configuration (${PACKAGE_TARNAME} ${PACKAGE_VERSION}):
-"
-])
-
+";])dnl
+dnl
AC_DEFUN([GP_CONFIG_MSG],
-[
-AC_REQUIRE([GP_CONFIG_INIT])
-# the empty string must contain at least as many spaces as the substr length
-ndim_config_empty=" "
-if test -n "$1"; then
- ndim_config_msg="${ndim_config_msg} $(expr "$1:${ndim_config_empty}" : "\(.\{0,22\}\)") $2
+[AC_REQUIRE([GP_CONFIG_INIT])dnl
+m4_if([$1],,[
+# Empty line in config message output
+ndim_config_msg="${ndim_config_msg}
"
-else
- ndim_config_msg="${ndim_config_msg}
+],[
+ndim_config_msg="${ndim_config_msg} $(expr "$1:${ndim_config_empty}" : "\(.\{0,22\}\)") $2
"
-fi
-])
-
+])])dnl
+dnl
AC_DEFUN([GP_CONFIG_OUTPUT],
-[
-AC_REQUIRE([GP_CONFIG_INIT])
-AC_REQUIRE([GP_CONFIG_MSG])
+[AC_REQUIRE([GP_CONFIG_INIT])dnl
+AC_REQUIRE([GP_CONFIG_MSG])dnl
echo "${ndim_config_msg}
-You may run \"make\" and \"make install\" now."
-])
-
+You may run \"make\" and \"make install\" now.";])dnl
+dnl
dnl Please do not remove this:
dnl filetype: de774af3-dc3b-4b1d-b6f2-4aca35d3da16
dnl I use this to find all the different instances of this file which
dnl are supposed to be synchronized.
-
+dnl
dnl Local Variables:
dnl mode: autoconf
dnl End:
dnl [Copyright Holder],
dnl [foo-translation@example.org])
dnl ALL_LINGUAS="de es fr"
+dnl AM_GNU_GETTEXT_VERSION([0.14.1])
dnl AM_GNU_GETTEXT([external])
+dnl AM_PO_SUBDIRS()
+dnl AM_ICONV()
dnl GP_GETTEXT_FLAGS
dnl
dnl You can leave out the GP_GETTEXT_HACK parameters if you want to,
AC_DEFUN([GP_GETTEXT_HACK],
[
-if test -n "$1"; then
- GETTEXT_PACKAGE="$1"
-else
- GETTEXT_PACKAGE=${PACKAGE_TARNAME}
-fi
+m4_if([$1],[],[GETTEXT_PACKAGE="${PACKAGE_TARNAME}"],[GETTEXT_PACKAGE="$1"])
AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE], ["$GETTEXT_PACKAGE"],
[The gettext domain we're using])
AC_SUBST([GETTEXT_PACKAGE])
sed_cmds="s|^DOMAIN.*|DOMAIN = ${GETTEXT_PACKAGE}|"
-if test -n "$2"; then
- sed_cmds="${sed_cmds};s|^COPYRIGHT_HOLDER.*|COPYRIGHT_HOLDER = $2|"
-fi
-if test -n "$3"; then
- sed_mb="$3"
-elif test -n "$PACKAGE_BUGREPORT"; then
+m4_if([$2],[],[],[sed_cmds="${sed_cmds};s|^COPYRIGHT_HOLDER.*|COPYRIGHT_HOLDER = $2|"])
+m4_if([$3],[],[if test -n "$PACKAGE_BUGREPORT"; then
sed_mb="${PACKAGE_BUGREPORT}"
else
AC_MSG_ERROR([
*** or give [GP_GETTEXT_HACK] the second parameter.
***
])
-fi
+fi],[sed_mb="$3"])
sed_cmds="${sed_cmds};s|^MSGID_BUGS_ADDRESS.*|MSGID_BUGS_ADDRESS = ${sed_mb}|"
# Not so sure whether this hack is all *that* evil...
AC_MSG_CHECKING([for po/Makevars requiring hack])
-if test -f po/Makevars.template; then
- sed "$sed_cmds" < po/Makevars.template > po/Makevars
+if test -f "${srcdir}/po/Makevars.template"; then
+ sed "$sed_cmds" < "${srcdir}/po/Makevars.template" > "${srcdir}/po/Makevars"
AC_MSG_RESULT([yes, done.])
else
AC_MSG_RESULT([no])