AC_PREREQ(2.59)
|
AC_PREREQ(2.59)
|
AC_INIT
|
AC_INIT
|
AC_CONFIG_SRCDIR(gettext.c)
|
AC_CONFIG_SRCDIR(gettext.c)
|
AC_CONFIG_HEADER(config.h)
|
AC_CONFIG_HEADER(config.h)
|
AC_CONFIG_MACRO_DIR(../config)
|
AC_CONFIG_MACRO_DIR(../config)
|
AM_GNU_GETTEXT_VERSION(0.12.1)
|
AM_GNU_GETTEXT_VERSION(0.12.1)
|
AM_GNU_GETTEXT
|
AM_GNU_GETTEXT
|
|
|
# This replaces the extensive use of DEFS in the original Makefile.in.
|
# This replaces the extensive use of DEFS in the original Makefile.in.
|
AC_DEFINE(IN_LIBINTL, 1, [Define because this is libintl.])
|
AC_DEFINE(IN_LIBINTL, 1, [Define because this is libintl.])
|
AC_DEFINE(IN_LIBRARY, 1, [Define because this is a library.])
|
AC_DEFINE(IN_LIBRARY, 1, [Define because this is a library.])
|
AC_DEFINE(DEPENDS_ON_LIBICONV, 1, [Define because we depend on libiconv.])
|
AC_DEFINE(DEPENDS_ON_LIBICONV, 1, [Define because we depend on libiconv.])
|
AC_DEFINE(ENABLE_RELOCATABLE, 1, [Define to enable relocation.])
|
AC_DEFINE(ENABLE_RELOCATABLE, 1, [Define to enable relocation.])
|
AC_DEFINE(NO_XMALLOC, 1, [Define if there is no xmalloc.])
|
AC_DEFINE(NO_XMALLOC, 1, [Define if there is no xmalloc.])
|
AC_DEFINE(set_relocation_prefix, libintl_set_relocation_prefix,
|
AC_DEFINE(set_relocation_prefix, libintl_set_relocation_prefix,
|
[Define this entry point correctly.])
|
[Define this entry point correctly.])
|
AC_DEFINE(relocate, libintl_relocate,
|
AC_DEFINE(relocate, libintl_relocate,
|
[Define this entry point correctly.])
|
[Define this entry point correctly.])
|
|
|
MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
|
MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
|
AC_CHECK_PROGS([ACLOCAL], [aclocal], [$MISSING aclocal])
|
AC_CHECK_PROGS([ACLOCAL], [aclocal], [$MISSING aclocal])
|
AC_CHECK_PROGS([AUTOCONF], [autoconf], [$MISSING autoconf])
|
AC_CHECK_PROGS([AUTOCONF], [autoconf], [$MISSING autoconf])
|
AC_CHECK_PROGS([AUTOHEADER], [autoheader], [$MISSING autoheader])
|
AC_CHECK_PROGS([AUTOHEADER], [autoheader], [$MISSING autoheader])
|
|
|
AC_ARG_ENABLE(maintainer-mode,
|
AC_ARG_ENABLE(maintainer-mode,
|
[ --enable-maintainer-mode enable rules only needed by maintainers],,
|
[ --enable-maintainer-mode enable rules only needed by maintainers],,
|
enable_maintainer_mode=no)
|
enable_maintainer_mode=no)
|
if test "x$enable_maintainer_mode" = xno; then
|
if test "x$enable_maintainer_mode" = xno; then
|
MAINT='#'
|
MAINT='#'
|
else
|
else
|
MAINT=
|
MAINT=
|
fi
|
fi
|
AC_SUBST(MAINT)
|
AC_SUBST(MAINT)
|
|
|
# Additional info for config.intl.
|
# Additional info for config.intl.
|
AC_SUBST(LIBINTL_DEP)
|
AC_SUBST(LIBINTL_DEP)
|
AC_SUBST(INCINTL)
|
AC_SUBST(INCINTL)
|
|
|
LIBINTL_DEP=
|
LIBINTL_DEP=
|
INCINTL=
|
INCINTL=
|
case $USE_INCLUDED_LIBINTL in
|
case $USE_INCLUDED_LIBINTL in
|
yes)
|
yes)
|
LIBINTL=`echo $LIBINTL | sed 's,${top_builddir},&/..,' `
|
LIBINTL=`echo $LIBINTL | sed 's,${top_builddir},&/..,' `
|
LTLIBINTL=`echo $LTLIBINTL | sed 's,${top_builddir},&/..,' `
|
LTLIBINTL=`echo $LTLIBINTL | sed 's,${top_builddir},&/..,' `
|
LIBINTL_DEP='${top_builddir}/../intl/libintl.a'
|
LIBINTL_DEP='${top_builddir}/../intl/libintl.a'
|
INCINTL='-I${top_builddir}/../intl'
|
INCINTL='-I${top_builddir}/../intl'
|
;;
|
;;
|
esac
|
esac
|
|
|
AC_CONFIG_FILES(Makefile config.intl)
|
AC_CONFIG_FILES(Makefile config.intl)
|
AC_OUTPUT
|
AC_OUTPUT
|
|
|