12a6b7db3SskrllAC_INIT 2fa2c2dd3SchristosAC_USE_SYSTEM_EXTENSIONS 32a6b7db3SskrllAC_CONFIG_SRCDIR(gettext.c) 42a6b7db3SskrllAC_CONFIG_HEADER(config.h) 52a6b7db3SskrllAC_CONFIG_MACRO_DIR(../config) 62a6b7db3SskrllAM_GNU_GETTEXT_VERSION(0.12.1) 798f124a6SchristosAM_GNU_GETTEXT([], [need-ngettext]) 82a6b7db3Sskrll 92a6b7db3Sskrll# This replaces the extensive use of DEFS in the original Makefile.in. 102a6b7db3SskrllAC_DEFINE(IN_LIBINTL, 1, [Define because this is libintl.]) 112a6b7db3SskrllAC_DEFINE(IN_LIBRARY, 1, [Define because this is a library.]) 122a6b7db3SskrllAC_DEFINE(DEPENDS_ON_LIBICONV, 1, [Define because we depend on libiconv.]) 132a6b7db3SskrllAC_DEFINE(ENABLE_RELOCATABLE, 1, [Define to enable relocation.]) 142a6b7db3SskrllAC_DEFINE(NO_XMALLOC, 1, [Define if there is no xmalloc.]) 152a6b7db3SskrllAC_DEFINE(set_relocation_prefix, libintl_set_relocation_prefix, 162a6b7db3Sskrll[Define this entry point correctly.]) 172a6b7db3SskrllAC_DEFINE(relocate, libintl_relocate, 182a6b7db3Sskrll[Define this entry point correctly.]) 192a6b7db3Sskrll 202a6b7db3SskrllMISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing 212a6b7db3SskrllAC_CHECK_PROGS([ACLOCAL], [aclocal], [$MISSING aclocal]) 222a6b7db3SskrllAC_CHECK_PROGS([AUTOCONF], [autoconf], [$MISSING autoconf]) 232a6b7db3SskrllAC_CHECK_PROGS([AUTOHEADER], [autoheader], [$MISSING autoheader]) 242a6b7db3Sskrll 252a6b7db3SskrllAC_ARG_ENABLE(maintainer-mode, 262a6b7db3Sskrll[ --enable-maintainer-mode enable rules only needed by maintainers],, 272a6b7db3Sskrllenable_maintainer_mode=no) 282a6b7db3Sskrllif test "x$enable_maintainer_mode" = xno; then 292a6b7db3Sskrll MAINT='#' 302a6b7db3Sskrllelse 312a6b7db3Sskrll MAINT= 322a6b7db3Sskrllfi 332a6b7db3SskrllAC_SUBST(MAINT) 342a6b7db3Sskrll 352a6b7db3Sskrll# Additional info for config.intl. 362a6b7db3SskrllAC_SUBST(LIBINTL_DEP) 372a6b7db3SskrllAC_SUBST(INCINTL) 382a6b7db3Sskrll 392a6b7db3SskrllLIBINTL_DEP= 402a6b7db3SskrllINCINTL= 412a6b7db3Sskrllcase $USE_INCLUDED_LIBINTL in 422a6b7db3Sskrll yes) 43*f22f0ef4Schristos LIBINTL=`echo $LIBINTL | sed 's,${top_builddir},-L&/..,; s,\.\./intl/libintl\.a,../intl -lintl,' ` 442a6b7db3Sskrll LIBINTL_DEP='${top_builddir}/../intl/libintl.a' 452a6b7db3Sskrll INCINTL='-I${top_builddir}/../intl' 462a6b7db3Sskrll ;; 472a6b7db3Sskrllesac 482a6b7db3Sskrll 49*f22f0ef4Schristos# intl is sometimes linked into shared libraries even without --enable-shared 50*f22f0ef4Schristos# (e.g. gdbsupport's inprocess agent): so always PICify, just in case. 51*f22f0ef4SchristosGCC_PICFLAG 52*f22f0ef4SchristosAC_SUBST(PICFLAG) 53*f22f0ef4Schristos 54*f22f0ef4SchristosBISON3_YES='#' 55*f22f0ef4SchristosBISON3_NO= 56*f22f0ef4Schristosif test "$INTLBISON" != :; then 57*f22f0ef4Schristos ac_bison3=no 58*f22f0ef4Schristos AC_MSG_CHECKING([bison 3 or later]) 59*f22f0ef4Schristoschangequote(<<,>>)dnl 60*f22f0ef4Schristos ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'` 61*f22f0ef4Schristos case $ac_prog_version in 62*f22f0ef4Schristos [3-9].*) 63*f22f0ef4Schristoschangequote([,])dnl 64*f22f0ef4Schristos ac_prog_version="$ac_prog_version, bison3"; ac_bison3=yes;; 65*f22f0ef4Schristos *) ac_prog_version="$ac_prog_version, old";; 66*f22f0ef4Schristos esac 67*f22f0ef4Schristos AC_MSG_RESULT([$ac_prog_version]) 68*f22f0ef4Schristos if test $ac_bison3 = yes; then 69*f22f0ef4Schristos BISON3_YES= 70*f22f0ef4Schristos BISON3_NO='#' 71*f22f0ef4Schristos fi 72*f22f0ef4Schristosfi 73*f22f0ef4SchristosAC_SUBST(BISON3_YES) 74*f22f0ef4SchristosAC_SUBST(BISON3_NO) 75*f22f0ef4Schristos 762a6b7db3SskrllAC_CONFIG_FILES(Makefile config.intl) 772a6b7db3SskrllAC_OUTPUT 78