Blame gettext-tools/configure.ac

Packit Bot 06c835
dnl Configuration for the gettext-tools directory of GNU gettext
Packit Bot 06c835
dnl Copyright (C) 1995-2011, 2015 Free Software Foundation, Inc.
Packit Bot 06c835
dnl
Packit Bot 06c835
dnl This program is free software: you can redistribute it and/or modify
Packit Bot 06c835
dnl it under the terms of the GNU General Public License as published by
Packit Bot 06c835
dnl the Free Software Foundation; either version 3 of the License, or
Packit Bot 06c835
dnl (at your option) any later version.
Packit Bot 06c835
dnl
Packit Bot 06c835
dnl This program is distributed in the hope that it will be useful,
Packit Bot 06c835
dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit Bot 06c835
dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
Packit Bot 06c835
dnl GNU General Public License for more details.
Packit Bot 06c835
dnl
Packit Bot 06c835
dnl You should have received a copy of the GNU General Public License
Packit Bot 06c835
dnl along with this program.  If not, see <http://www.gnu.org/licenses/>.
Packit Bot 06c835
Packit Bot 06c835
dnl Process this file with autoconf to produce a configure script.
Packit Bot 06c835
Packit Bot 06c835
AC_PREREQ([2.62])
Packit Bot 06c835
AC_INIT([gettext-tools],
Packit Bot 06c835
	m4_esyscmd([../build-aux/git-version-gen ../.tarball-version]),
Packit Bot 06c835
	[bug-gnu-gettext@gnu.org])
Packit Bot 06c835
AC_CONFIG_SRCDIR([src/msgfmt.c])
Packit Bot 06c835
AC_CONFIG_AUX_DIR([../build-aux])
Packit Bot 06c835
AM_INIT_AUTOMAKE([1.11.1 silent-rules parallel-tests])
Packit Bot 06c835
AC_CONFIG_HEADERS([config.h])
Packit Bot 06c835
Packit Bot 06c835
dnl Installation directories.
Packit Bot 06c835
test "$docdir" != '${datarootdir}/doc/${PACKAGE_TARNAME}' || docdir='${datarootdir}/doc/gettext'
Packit Bot 06c835
Packit Bot 06c835
dnl Checks for programs.
Packit Bot 06c835
AC_PROG_CC
Packit Bot 06c835
AC_PROG_INSTALL
Packit Bot 06c835
AC_PROG_YACC
Packit Bot 06c835
Packit Bot 06c835
gt_JAVA_CHOICE
Packit Bot 06c835
Packit Bot 06c835
gt_GCJ
Packit Bot 06c835
if test -n "$HAVE_GCJ" && test "$JAVA_CHOICE" = yes; then
Packit Bot 06c835
  BUILDJAVAEXE=yes
Packit Bot 06c835
else
Packit Bot 06c835
  BUILDJAVAEXE=no
Packit Bot 06c835
fi
Packit Bot 06c835
AC_SUBST([BUILDJAVAEXE])
Packit Bot 06c835
Packit Bot 06c835
gt_JAVAEXEC
Packit Bot 06c835
gt_JAVACOMP([1.3])
Packit Bot 06c835
AC_CHECK_PROG([JAR], [jar], [jar])
Packit Bot 06c835
if test -n "$HAVE_JAVACOMP" && test -n "$JAR" && test "$JAVA_CHOICE" != no; then
Packit Bot 06c835
  BUILDJAVA=yes
Packit Bot 06c835
else
Packit Bot 06c835
  BUILDJAVA=no
Packit Bot 06c835
fi
Packit Bot 06c835
AC_SUBST([BUILDJAVA])
Packit Bot 06c835
if test -n "$HAVE_JAVAEXEC" && test $BUILDJAVA = yes; then
Packit Bot 06c835
  TESTJAVA=yes
Packit Bot 06c835
else
Packit Bot 06c835
  TESTJAVA=no
Packit Bot 06c835
fi
Packit Bot 06c835
AC_SUBST([TESTJAVA])
Packit Bot 06c835
Packit Bot 06c835
gt_CSHARPCOMP
Packit Bot 06c835
if test -n "$HAVE_CSHARPCOMP" && test "$CSHARP_CHOICE" != no; then
Packit Bot 06c835
  BUILDCSHARP=yes
Packit Bot 06c835
else
Packit Bot 06c835
  BUILDCSHARP=no
Packit Bot 06c835
fi
Packit Bot 06c835
AC_SUBST([BUILDCSHARP])
Packit Bot 06c835
Packit Bot 06c835
gt_CSHARPEXEC([csharpexec-test.exe], [$srcdir/m4])
Packit Bot 06c835
if test -n "$HAVE_CSHARPEXEC" && test $BUILDCSHARP = yes; then
Packit Bot 06c835
  TESTCSHARP=yes
Packit Bot 06c835
else
Packit Bot 06c835
  TESTCSHARP=no
Packit Bot 06c835
fi
Packit Bot 06c835
AC_SUBST([TESTCSHARP])
Packit Bot 06c835
Packit Bot 06c835
dnl Check for host type.
Packit Bot 06c835
AC_CANONICAL_HOST
Packit Bot 06c835
Packit Bot 06c835
dnl Checks for compiler output filename suffixes.
Packit Bot 06c835
AC_OBJEXT
Packit Bot 06c835
AC_EXEEXT
Packit Bot 06c835
Packit Bot 06c835
dnl Make sure we see all GNU and Solaris extensions.
Packit Bot 06c835
gl_EARLY
Packit Bot 06c835
grgl_EARLY
Packit Bot 06c835
gtpo_EARLY
Packit Bot 06c835
Packit Bot 06c835
dnl Check for build configuration.
Packit Bot 06c835
Packit Bot 06c835
gl_WOE32_DLL
Packit Bot 06c835
Packit Bot 06c835
LT_INIT([win32-dll])
Packit Bot 06c835
Packit Bot 06c835
dnl Prepares the libtool configuration for handling of Windows resources, and
Packit Bot 06c835
dnl sets the RC variable to a program that compiles Windows resource files.
Packit Bot 06c835
LT_LANG([Windows Resource])
Packit Bot 06c835
Packit Bot 06c835
dnl On mingw and Cygwin, we can activate special Makefile rules which add
Packit Bot 06c835
dnl version information to the shared libraries and executables.
Packit Bot 06c835
case "$host_os" in
Packit Bot 06c835
  mingw* | cygwin*) is_woe32=yes ;;
Packit Bot 06c835
  *) is_woe32=no ;;
Packit Bot 06c835
esac
Packit Bot 06c835
AM_CONDITIONAL([WOE32], [test $is_woe32 = yes])
Packit Bot 06c835
Packit Bot 06c835
dnl On Cygwin 1.7.10-1 or later, error_* variables are defined in the
Packit Bot 06c835
dnl Cygwin DLL.  To avoid any conflict with gettext DLLs, always link
Packit Bot 06c835
dnl to gnulib's error.c.  See GETTEXTLIB_EXPORTS_FLAGS setting below.
Packit Bot 06c835
case "$host_os" in
Packit Bot 06c835
  cygwin*) ac_cv_lib_error_at_line=no ;;
Packit Bot 06c835
esac
Packit Bot 06c835
Packit Bot 06c835
dnl Checks for libraries.
Packit Bot 06c835
Packit Bot 06c835
dnl These are the only lines required to internationalize the package.
Packit Bot 06c835
dnl (OK, not quite, the AC_CONFIG_FILES has also some parts.)
Packit Bot 06c835
AM_GNU_GETTEXT([use-libtool], [need-ngettext])
Packit Bot 06c835
Packit Bot 06c835
dnl This line internationalizes the bison generated parsers.
Packit Bot 06c835
BISON_I18N
Packit Bot 06c835
Packit Bot 06c835
dnl Test whether msgmerge must be linked against libm. This is the case on
Packit Bot 06c835
dnl most systems; but BeOS has all <math.h> functions in libc and doesn't have
Packit Bot 06c835
dnl a libm.
Packit Bot 06c835
MSGMERGE_LIBM=?
Packit Bot 06c835
AC_TRY_LINK([
Packit Bot 06c835
   #ifndef __NO_MATH_INLINES
Packit Bot 06c835
   # define __NO_MATH_INLINES 1 /* for glibc */
Packit Bot 06c835
   #endif
Packit Bot 06c835
   #include <math.h>
Packit Bot 06c835
   double x;],
Packit Bot 06c835
  [x = ceil(x); x = sqrt(x);],
Packit Bot 06c835
  [MSGMERGE_LIBM=])
Packit Bot 06c835
if test "$MSGMERGE_LIBM" = "?"; then
Packit Bot 06c835
  save_LIBS="$LIBS" 
Packit Bot 06c835
  LIBS="$LIBS -lm"
Packit Bot 06c835
  AC_TRY_LINK([
Packit Bot 06c835
     #ifndef __NO_MATH_INLINES
Packit Bot 06c835
     # define __NO_MATH_INLINES 1 /* for glibc */
Packit Bot 06c835
     #endif
Packit Bot 06c835
     #include <math.h>
Packit Bot 06c835
     double x;],
Packit Bot 06c835
    [x = ceil(x); x = sqrt(x);],
Packit Bot 06c835
    [MSGMERGE_LIBM="-lm"])
Packit Bot 06c835
  LIBS="$save_LIBS"
Packit Bot 06c835
fi
Packit Bot 06c835
if test "$MSGMERGE_LIBM" = "?"; then
Packit Bot 06c835
  MSGMERGE_LIBM=
Packit Bot 06c835
fi
Packit Bot 06c835
AC_SUBST([MSGMERGE_LIBM])
Packit Bot 06c835
Packit Bot 06c835
dnl Checks for header files, functions and declarations.
Packit Bot 06c835
gl_INIT
Packit Bot 06c835
grgl_INIT
Packit Bot 06c835
gtpo_INIT
Packit Bot 06c835
Packit Bot 06c835
dnl Checks for header files.
Packit Bot 06c835
AC_CHECK_HEADERS([pwd.h])
Packit Bot 06c835
Packit Bot 06c835
dnl Checks for typedefs, structures, and compiler characteristics.
Packit Bot 06c835
AC_C_INLINE
Packit Bot 06c835
AC_TYPE_UNSIGNED_LONG_LONG_INT
Packit Bot 06c835
AC_TYPE_SIZE_T
Packit Bot 06c835
AC_CHECK_TYPES([ptrdiff_t])
Packit Bot 06c835
gt_TYPE_SSIZE_T
Packit Bot 06c835
AC_TYPE_PID_T
Packit Bot 06c835
gl_GLIBC21
Packit Bot 06c835
if test $GLIBC21 = yes; then
Packit Bot 06c835
  AC_CHECK_MEMBERS([struct __locale_struct.__names], , , [#include <xlocale.h>])
Packit Bot 06c835
fi
Packit Bot 06c835
Packit Bot 06c835
dnl Checks for library functions.
Packit Bot 06c835
AC_CHECK_FUNCS([select])
Packit Bot 06c835
AC_FUNC_VFORK
Packit Bot 06c835
gt_SIGINFO
Packit Bot 06c835
gt_SETLOCALE
Packit Bot 06c835
Packit Bot 06c835
AC_C_BIGENDIAN([endianness=1], [endianness=0],
Packit Bot 06c835
  [echo "AC-C-BIGENDIAN fails to work on your system." | sed -e 's,-,_,g' 1>&2
Packit Bot 06c835
   echo "Please report this as a bug to bug-autoconf@gnu.org" 1>&2
Packit Bot 06c835
   exit 1],
Packit Bot 06c835
  [endianness=universal])
Packit Bot 06c835
if test $endianness != universal; then
Packit Bot 06c835
  AC_DEFINE_UNQUOTED([ENDIANNESS], [$endianness],
Packit Bot 06c835
    [Define according to the byte order of the target machine: 1 for big endian, 0 for little endian.])
Packit Bot 06c835
fi
Packit Bot 06c835
dnl For possibly universal binaries, it's not possible to determine the
Packit Bot 06c835
dnl endianness at configure time. So determine it at compile time.
Packit Bot 06c835
AH_BOTTOM([
Packit Bot 06c835
#ifndef ENDIANNESS
Packit Bot 06c835
# if defined __BIG_ENDIAN__
Packit Bot 06c835
#  define ENDIANNESS 1
Packit Bot 06c835
# endif
Packit Bot 06c835
# if defined __LITTLE_ENDIAN__
Packit Bot 06c835
#  define ENDIANNESS 0
Packit Bot 06c835
# endif
Packit Bot 06c835
#endif
Packit Bot 06c835
])
Packit Bot 06c835
Packit Bot 06c835
gt_PREREQ_HOSTNAME
Packit Bot 06c835
Packit Bot 06c835
dnl Compilation on mingw and Cygwin needs special Makefile rules, because
Packit Bot 06c835
dnl 1. when we install a shared library, we must arrange to export
Packit Bot 06c835
dnl    auxiliary pointer variables for every exported variable,
Packit Bot 06c835
dnl 2. when we install a shared library and a static library simultaneously,
Packit Bot 06c835
dnl    the include file specifies __declspec(dllimport) and therefore we
Packit Bot 06c835
dnl    must arrange to define the auxiliary pointer variables for the
Packit Bot 06c835
dnl    exported variables _also_ in the static library.
Packit Bot 06c835
if test "$enable_shared" = yes; then
Packit Bot 06c835
  case "$host_os" in
Packit Bot 06c835
    mingw* | cygwin*) is_woe32dll=yes ;;
Packit Bot 06c835
    *) is_woe32dll=no ;;
Packit Bot 06c835
  esac
Packit Bot 06c835
else
Packit Bot 06c835
  is_woe32dll=no
Packit Bot 06c835
fi
Packit Bot 06c835
AM_CONDITIONAL([WOE32DLL], [test $is_woe32dll = yes])
Packit Bot 06c835
if test $is_woe32dll = yes; then
Packit Bot 06c835
  AC_DEFINE([WOE32DLL], [1],
Packit Bot 06c835
    [Define when --enable-shared is used on mingw or Cygwin.])
Packit Bot 06c835
fi
Packit Bot 06c835
Packit Bot 06c835
GETTEXTLIB_EXPORTS_FLAGS=
Packit Bot 06c835
dnl woe32dll/gettextlib-exports.c needs to know whether the getopt facility
Packit Bot 06c835
dnl is replaced by gnulib. GETOPT_H is set by gl_FUNC_GETOPT_POSIX, inside
Packit Bot 06c835
dnl gl_INIT.
Packit Bot 06c835
if test -n "$GETOPT_H"; then
Packit Bot 06c835
  GETTEXTLIB_EXPORTS_FLAGS="-DGNULIB_DEFINED_GETOPT $GETTEXTLIB_EXPORTS_FLAGS"
Packit Bot 06c835
fi
Packit Bot 06c835
dnl woe32dll/gettextlib-exports.c needs to know whether the error
Packit Bot 06c835
dnl facility is replaced by gnulib. ac_cv_lib_error_at_line is set by
Packit Bot 06c835
dnl gl_ERROR, inside gl_INIT.
Packit Bot 06c835
if test "$ac_cv_lib_error_at_line" = no; then
Packit Bot 06c835
  GETTEXTLIB_EXPORTS_FLAGS="-DGNULIB_DEFINED_ERROR $GETTEXTLIB_EXPORTS_FLAGS"
Packit Bot 06c835
fi
Packit Bot 06c835
Packit Bot 06c835
dnl 64-bit mingw does not prepend an underscore to C symbols.
Packit Bot 06c835
dnl USER_LABEL_PREFIX is set by gl_ASM_SYMBOL_PREFIX, inside gl_INIT.
Packit Bot 06c835
if test "$USER_LABEL_PREFIX" = _; then
Packit Bot 06c835
  GETTEXTLIB_EXPORTS_FLAGS="-DUSER_LABEL_PREFIX_UNDERSCORE $GETTEXTLIB_EXPORTS_FLAGS"
Packit Bot 06c835
fi
Packit Bot 06c835
AC_SUBST([GETTEXTLIB_EXPORTS_FLAGS])
Packit Bot 06c835
Packit Bot 06c835
dnl Tell the source files that the error facility is replaced by
Packit Bot 06c835
dnl gnulib, to make sure to prepend "rpl_" prefix to the error_*
Packit Bot 06c835
dnl symbols.
Packit Bot 06c835
if test "$ac_cv_lib_error_at_line" = no; then
Packit Bot 06c835
  AC_DEFINE([GNULIB_REPLACE_ERROR], [1],
Packit Bot 06c835
    [Define when the error facility is replaced by gnulib.])
Packit Bot 06c835
fi
Packit Bot 06c835
Packit Bot 06c835
dnl Put some default definitions into config.h.
Packit Bot 06c835
AH_TOP([
Packit Bot 06c835
/* Default value for alignment of strings in .mo file.  */
Packit Bot 06c835
#define DEFAULT_OUTPUT_ALIGNMENT 1
Packit Bot 06c835
])
Packit Bot 06c835
AH_BOTTOM([
Packit Bot 06c835
/* A file name cannot consist of any character possible.  INVALID_PATH_CHAR
Packit Bot 06c835
   contains the characters not allowed.  */
Packit Bot 06c835
#if defined _MSC_VER || defined __MINGW32__
Packit Bot 06c835
/* Woe32.  This string is valid for Windows NT/2000.  On Windows 95/98/ME some
Packit Bot 06c835
   few characters in the range 0x80..0xff are invalid as well, but this doesn't
Packit Bot 06c835
   matter much for our purposes.  */
Packit Bot 06c835
# define INVALID_PATH_CHAR "\001\002\003\004\005\006\007\010\011\012\013\014\015\016\017\020\021\022\023\024\025\026\027\030\031\032\033\034\035\036\037\"*/:<>?\\|"
Packit Bot 06c835
#elif defined MSDOS
Packit Bot 06c835
/* Something like this for MSDOG.  */
Packit Bot 06c835
# define INVALID_PATH_CHAR "\001\002\003\004\005\006\007\010\011\012\013\014\015\016\017\020\021\022\023\024\025\026\027\030\031\032\033\034\035\036\037 \177\\:."
Packit Bot 06c835
#else
Packit Bot 06c835
/* Unix.  */
Packit Bot 06c835
# define INVALID_PATH_CHAR "\001\002\003\004\005\006\007\010\011\012\013\014\015\016\017\020\021\022\023\024\025\026\027\030\031\032\033\034\035\036\037 \177/"
Packit Bot 06c835
#endif
Packit Bot 06c835
Packit Bot 06c835
/* This is the page width for the message_print function.  It should
Packit Bot 06c835
   not be set to more than 79 characters (Emacs users will appreciate
Packit Bot 06c835
   it).  It is used to wrap the msgid and msgstr strings, and also to
Packit Bot 06c835
   wrap the file position (#:) comments.  */
Packit Bot 06c835
#define PAGE_WIDTH 79
Packit Bot 06c835
Packit Bot 06c835
/* On Windows, variables that may be in a DLL must be marked specially.  */
Packit Bot 06c835
#if ((defined _MSC_VER && defined _DLL) || defined WOE32DLL) && !defined IN_RELOCWRAPPER
Packit Bot 06c835
# define DLL_VARIABLE __declspec (dllimport)
Packit Bot 06c835
#else
Packit Bot 06c835
# define DLL_VARIABLE
Packit Bot 06c835
#endif
Packit Bot 06c835
Packit Bot 06c835
/* Extra OS/2 (emx+gcc) defines.  */
Packit Bot 06c835
#if defined __EMX__ && !defined __KLIBC__
Packit Bot 06c835
# include "intl/os2compat.h"
Packit Bot 06c835
#endif
Packit Bot 06c835
])
Packit Bot 06c835
Packit Bot 06c835
dnl Check for nm output filter that yields the exported symbols.
Packit Bot 06c835
gt_GLOBAL_SYMBOL_PIPE
Packit Bot 06c835
Packit Bot 06c835
dnl Check for Emacs and where to install .elc files.
Packit Bot 06c835
dnl Sometimes Emacs is badly installed. Allow the user to work around it.
Packit Bot 06c835
AC_ARG_WITH([emacs],
Packit Bot 06c835
  [  --without-emacs         do not use Emacs, don't install po-mode],
Packit Bot 06c835
  [gt_use_emacs=$withval],
Packit Bot 06c835
  [gt_use_emacs=yes])
Packit Bot 06c835
if test "$EMACS" != no; then
Packit Bot 06c835
  AC_MSG_CHECKING([whether Emacs support is requested])
Packit Bot 06c835
  AC_MSG_RESULT([$gt_use_emacs])
Packit Bot 06c835
  if test "$gt_use_emacs" = no; then
Packit Bot 06c835
    EMACS=no
Packit Bot 06c835
  fi
Packit Bot 06c835
fi
Packit Bot 06c835
dnl If $EMACS = no, we won't install any Emacs Lisp (*.el) files,
Packit Bot 06c835
dnl therefore it's useless to determine $(lispdir).
Packit Bot 06c835
if test "$EMACS" != no; then
Packit Bot 06c835
  AM_PATH_LISPDIR
Packit Bot 06c835
fi
Packit Bot 06c835
Packit Bot 06c835
aclocaldir='${datadir}/aclocal'
Packit Bot 06c835
AC_SUBST([aclocaldir])
Packit Bot 06c835
Packit Bot 06c835
dnl Check how to install the set of previous versions, for autopoint.
Packit Bot 06c835
AC_ARG_WITH([git],
Packit Bot 06c835
  [  --without-git           don't use git to compress the infrastructure archive],
Packit Bot 06c835
  [gt_use_git=$withval],
Packit Bot 06c835
  [gt_use_git=maybe])
Packit Bot 06c835
AC_ARG_WITH([cvs],
Packit Bot 06c835
  [  --with-cvs              use cvs to compress the infrastructure archive
Packit Bot 06c835
                          (deprecated)],
Packit Bot 06c835
  [gt_use_cvs=$withval],
Packit Bot 06c835
  [gt_use_cvs=no])
Packit Bot 06c835
AC_ARG_WITH([bzip2],
Packit Bot 06c835
  [  --without-bzip2         don't use bzip2 to compress the infrastructure archive],
Packit Bot 06c835
  [gt_use_bzip2=$withval],
Packit Bot 06c835
  [gt_use_bzip2=maybe])
Packit Bot 06c835
AC_ARG_WITH([xz],
Packit Bot 06c835
  [  --without-xz            don't use xz to compress the infrastructure archive],
Packit Bot 06c835
  [gt_use_xz=$withval],
Packit Bot 06c835
  [gt_use_xz=maybe])
Packit Bot 06c835
# The CVS format is deprecated, because "cvs init" does not work in all
Packit Bot 06c835
# circumstances
Packit Bot 06c835
# (see <http://lists.gnu.org/archive/html/bug-cvs/2010-05/msg00003.html>)
Packit Bot 06c835
# and we are not allowed to distribute the cvs infrastructure files ourselves
Packit Bot 06c835
# (see <http://lists.gnu.org/archive/html/bug-cvs/2010-06/msg00011.html>).
Packit Bot 06c835
#
Packit Bot 06c835
# With the archive from version 0.18.1, we can observe the following
Packit Bot 06c835
# compression rates:
Packit Bot 06c835
#    Size           File
Packit Bot 06c835
#  16916480   archive.dir.tar
Packit Bot 06c835
#   3528757   archive.dir.tar.gz
Packit Bot 06c835
#   2621440   archive.cvs.tar
Packit Bot 06c835
#   2082492   archive.dir.tar.bz2
Packit Bot 06c835
#    696320   archive.git.tar
Packit Bot 06c835
#    599046   archive.git.tar.bz2
Packit Bot 06c835
#    592989   archive.git.tar.gz
Packit Bot 06c835
#    588124   archive.git.tar.xz
Packit Bot 06c835
#    457190   archive.cvs.tar.gz
Packit Bot 06c835
#    335808   archive.cvs.tar.bz2
Packit Bot 06c835
#    308880   archive.dir.tar.xz
Packit Bot 06c835
#    299124   archive.cvs.tar.xz
Packit Bot 06c835
# Among these:
Packit Bot 06c835
#   - We don't offer the uncompressed ones, because at least gzip can be
Packit Bot 06c835
#     assumed to be present everywhere.
Packit Bot 06c835
#   - Among archive.git.tar.*, all have approximately the same size, because
Packit Bot 06c835
#     git already compresses most of its repository data. Offer only .gz here.
Packit Bot 06c835
#   - Among archive.cvs.tar.*, offer only .gz, for simplicity, since --with-cvs
Packit Bot 06c835
#     is deprecated.
Packit Bot 06c835
# The remaining ones are:
Packit Bot 06c835
#    Size           File            ARCHIVE_FORMAT
Packit Bot 06c835
#   3528757   archive.dir.tar.gz      dirgz
Packit Bot 06c835
#   2082492   archive.dir.tar.bz2     dirbz2
Packit Bot 06c835
#    592989   archive.git.tar.gz      git
Packit Bot 06c835
#    457190   archive.cvs.tar.gz      cvs
Packit Bot 06c835
#    308880   archive.dir.tar.xz      dirxz
Packit Bot 06c835
if test "$gt_use_xz" != no && test "$gt_use_xz" != maybe; then
Packit Bot 06c835
  # --with-xz is specified. Even if --with-git or --with-cvs or --with-bzip2 is
Packit Bot 06c835
  # also specified, we use the dirxz format.
Packit Bot 06c835
  ARCHIVE_FORMAT=dirxz
Packit Bot 06c835
else
Packit Bot 06c835
  if test "$gt_use_git" != no && test "$gt_use_git" != maybe; then
Packit Bot 06c835
    # --with-git is specified. Even if --with-cvs or --with-bzip2 is also
Packit Bot 06c835
    # specified, we use the git format.
Packit Bot 06c835
    ARCHIVE_FORMAT=git
Packit Bot 06c835
  else
Packit Bot 06c835
    if test "$gt_use_cvs" != no; then
Packit Bot 06c835
      # --with-cvs is specified. Even if --with-bzip2 is also specified, we use
Packit Bot 06c835
      # the cvs format.
Packit Bot 06c835
      ARCHIVE_FORMAT=cvs
Packit Bot 06c835
    else
Packit Bot 06c835
      if test "$gt_use_bzip2" != no && test "$gt_use_bzip2" != maybe; then
Packit Bot 06c835
        # --with-bzip2 is specified. We use the dirbz2 format.
Packit Bot 06c835
        ARCHIVE_FORMAT=dirbz2
Packit Bot 06c835
      else
Packit Bot 06c835
        # Neither --with-git nor --with-cvs nor --with-bzip2 nor --with-xz is
Packit Bot 06c835
        # specified. Determine which programs are present.
Packit Bot 06c835
        if test "$gt_use_xz" != no \
Packit Bot 06c835
           && (xz --version) >/dev/null 2>&1 \
Packit Bot 06c835
           && xz --version | grep lzma >/dev/null; then
Packit Bot 06c835
          # --without-xz is not specified, and the xz program exists.
Packit Bot 06c835
          ARCHIVE_FORMAT=dirxz
Packit Bot 06c835
        else
Packit Bot 06c835
          # --without-xz is specified, or the xz program is missing.
Packit Bot 06c835
changequote(,)dnl
Packit Bot 06c835
          if test "$gt_use_git" != no \
Packit Bot 06c835
             && (git --version) >/dev/null 2>&1 \
Packit Bot 06c835
             && { case `git --version | sed -e 's/^[^0-9]*//'` in
Packit Bot 06c835
                    0.* | 1.[0-5].*) false ;;
Packit Bot 06c835
                    *) true ;;
Packit Bot 06c835
                  esac
Packit Bot 06c835
                }; then
Packit Bot 06c835
changequote([,])dnl
Packit Bot 06c835
            # --without-git is not specified, and the git program exists
Packit Bot 06c835
            # in version 1.6 or newer. Use git format.
Packit Bot 06c835
            ARCHIVE_FORMAT=git
Packit Bot 06c835
          else
Packit Bot 06c835
            # --without-git is specified, or the git program is missing.
Packit Bot 06c835
changequote(,)dnl
Packit Bot 06c835
            if test "$gt_use_bzip2" != no \
Packit Bot 06c835
               && (: | bzip2 --version) >/dev/null 2>&1 \
Packit Bot 06c835
               && { sed_bzip2_version1='s/ \([0-9][0-9.]*\).*/ \1/'
Packit Bot 06c835
                    sed_bzip2_version2='s/^.* //'
Packit Bot 06c835
                    case `(: | bzip2 --version) 2>&1 \
Packit Bot 06c835
                          | sed -e 1q \
Packit Bot 06c835
                          | sed -e "$sed_bzip2_version1" -e "$sed_bzip2_version2"` in
Packit Bot 06c835
                      0.*) false ;;
Packit Bot 06c835
                      *) true ;;
Packit Bot 06c835
                    esac
Packit Bot 06c835
                  }; then
Packit Bot 06c835
changequote([,])dnl
Packit Bot 06c835
              # --without-bzip2 is not specified, and the bzip2 program exists
Packit Bot 06c835
              # in version 1.0 or newer. Use dirbz2 format.
Packit Bot 06c835
              ARCHIVE_FORMAT=dirbz2
Packit Bot 06c835
            else
Packit Bot 06c835
              # --without-bzip2 is specified, or the bzip2 program is missing.
Packit Bot 06c835
              ARCHIVE_FORMAT=dirgz
Packit Bot 06c835
            fi
Packit Bot 06c835
          fi
Packit Bot 06c835
        fi
Packit Bot 06c835
      fi
Packit Bot 06c835
    fi
Packit Bot 06c835
  fi
Packit Bot 06c835
fi
Packit Bot 06c835
AC_SUBST([ARCHIVE_FORMAT])
Packit Bot 06c835
Packit Bot 06c835
ARCHIVE_VERSION=0.19.7
Packit Bot 06c835
AC_SUBST([ARCHIVE_VERSION])
Packit Bot 06c835
Packit Bot 06c835
PACKAGE_SUFFIX="-$ARCHIVE_VERSION"
Packit Bot 06c835
AC_SUBST([PACKAGE_SUFFIX])
Packit Bot 06c835
AC_DEFINE_UNQUOTED(PACKAGE_SUFFIX, "$PACKAGE_SUFFIX",
Packit Bot 06c835
  [Define to the suffix of this package])
Packit Bot 06c835
Packit Bot 06c835
dnl Check for tools needed for formatting the documentation.
Packit Bot 06c835
ac_aux_dir_abs=`cd $ac_aux_dir && pwd`
Packit Bot 06c835
AC_PATH_PROG([DVIPS], [dvips], [$ac_aux_dir_abs/missing dvips])
Packit Bot 06c835
AC_PATH_PROG([TEXI2PDF], [texi2pdf], [$ac_aux_dir_abs/missing texi2pdf])
Packit Bot 06c835
AC_PATH_PROG([PERL], [perl], [$ac_aux_dir_abs/missing perl])
Packit Bot 06c835
Packit Bot 06c835
dnl Check for tools needed for formatting man pages.
Packit Bot 06c835
CROSS_COMPILING=$cross_compiling
Packit Bot 06c835
AC_SUBST([CROSS_COMPILING])
Packit Bot 06c835
Packit Bot 06c835
dnl Checks for optional programs for the tests/lang-*, tests/recode-* tests.
Packit Bot 06c835
gl_PROG_ANSI_CXX([CXX], [ANSICXX])
Packit Bot 06c835
gt_LOCALE_FR
Packit Bot 06c835
gt_LOCALE_FR_UTF8
Packit Bot 06c835
gt_LOCALE_JA
Packit Bot 06c835
Packit Bot 06c835
dnl Checks for functions for the tests/*.c tests.
Packit Bot 06c835
AC_CHECK_FUNCS_ONCE([getrlimit setrlimit uselocale])
Packit Bot 06c835
Packit Bot 06c835
dnl Prepares the libtool configuration for languages used by the tests.
Packit Bot 06c835
LT_LANG([C++])
Packit Bot 06c835
Packit Bot 06c835
dnl Check whether to execute tests that rely on libasprintf.
Packit Bot 06c835
dnl This test must be consistent with gettext-runtime/configure.ac.
Packit Bot 06c835
if test "${enable_libasprintf+set}" = set; then
Packit Bot 06c835
  if test "$enable_libasprintf" != no; then
Packit Bot 06c835
    TESTLIBASPRINTF=yes
Packit Bot 06c835
  else
Packit Bot 06c835
    TESTLIBASPRINTF=no
Packit Bot 06c835
  fi
Packit Bot 06c835
else
Packit Bot 06c835
  TESTLIBASPRINTF=yes
Packit Bot 06c835
fi
Packit Bot 06c835
if test "$CXX" = no; then
Packit Bot 06c835
  TESTLIBASPRINTF=no
Packit Bot 06c835
fi
Packit Bot 06c835
AC_SUBST([TESTLIBASPRINTF])
Packit Bot 06c835
Packit Bot 06c835
dnl Generate the version information file in the intl/ directory.
Packit Bot 06c835
test -d intl || mkdir intl
Packit Bot 06c835
echo "GNU gettext library from gettext-$VERSION" > intl/VERSION
Packit Bot 06c835
Packit Bot 06c835
AC_CONFIG_SUBDIRS([examples])
Packit Bot 06c835
Packit Bot 06c835
AC_CONFIG_FILES([Makefile])
Packit Bot 06c835
Packit Bot 06c835
AC_CONFIG_FILES([doc/Makefile])
Packit Bot 06c835
Packit Bot 06c835
AC_CONFIG_FILES([intl/Makefile:../gettext-runtime/intl/Makefile.in], [
Packit Bot 06c835
  # Change srcdir variable so that it points to ../gettext-runtime/intl.
Packit Bot 06c835
  # Change PLURAL_OBJECT variable so that pluralx.c is used instead of plural.c.
Packit Bot 06c835
  sed -e 's|^srcdir =.*$|srcdir = $(top_srcdir)/../gettext-runtime/intl|' \
Packit Bot 06c835
      -e 's|^VPATH =.*$||' \
Packit Bot 06c835
      -e 's|^PLURAL_OBJECT = .*$|PLURAL_OBJECT = pluralx.\$lo|' \
Packit Bot 06c835
    < intl/Makefile > intl/Makefile.tmp
Packit Bot 06c835
  mv intl/Makefile.tmp intl/Makefile
Packit Bot 06c835
  ])
Packit Bot 06c835
Packit Bot 06c835
AC_CONFIG_FILES([its/Makefile])
Packit Bot 06c835
Packit Bot 06c835
AC_CONFIG_FILES([gnulib-lib/Makefile])
Packit Bot 06c835
Packit Bot 06c835
AC_CONFIG_FILES([libgrep/Makefile])
Packit Bot 06c835
Packit Bot 06c835
AC_CONFIG_FILES([src/Makefile])
Packit Bot 06c835
AC_CONFIG_FILES([src/user-email:src/user-email.sh.in])
Packit Bot 06c835
Packit Bot 06c835
AC_CONFIG_FILES([libgettextpo/Makefile])
Packit Bot 06c835
AC_CONFIG_FILES([libgettextpo/exported.sh])
Packit Bot 06c835
Packit Bot 06c835
AC_CONFIG_FILES([po/Makefile.in])
Packit Bot 06c835
Packit Bot 06c835
AC_CONFIG_FILES([projects/Makefile])
Packit Bot 06c835
Packit Bot 06c835
AC_CONFIG_FILES([styles/Makefile])
Packit Bot 06c835
Packit Bot 06c835
AC_CONFIG_FILES([misc/Makefile])
Packit Bot 06c835
AC_CONFIG_FILES([misc/gettextize], [chmod a+x misc/gettextize])
Packit Bot 06c835
AC_CONFIG_FILES([misc/autopoint], [chmod a+x misc/autopoint])
Packit Bot 06c835
AC_CONFIG_FILES([misc/convert-archive], [chmod a+x misc/convert-archive])
Packit Bot 06c835
Packit Bot 06c835
AC_CONFIG_FILES([man/Makefile],
Packit Bot 06c835
                [FIX_MAKEFILE_DISTRIB])
Packit Bot 06c835
AC_CONFIG_FILES([man/x-to-1])
Packit Bot 06c835
Packit Bot 06c835
AC_CONFIG_FILES([m4/Makefile])
Packit Bot 06c835
Packit Bot 06c835
AC_CONFIG_FILES([tests/Makefile])
Packit Bot 06c835
Packit Bot 06c835
AC_CONFIG_FILES([tests/init-env])
Packit Bot 06c835
Packit Bot 06c835
AC_CONFIG_FILES([gnulib-tests/Makefile])
Packit Bot 06c835
Packit Bot 06c835
AC_OUTPUT