1997-08-22 00:57:35 +02:00
|
|
|
dnl Process this file with autoconf to produce a configure script.
|
1998-03-24 20:41:43 +01:00
|
|
|
dnl $Id: configure.in,v 1.7 1998/03/26 10:30:41 law Exp $
|
1998-03-22 22:47:59 +01:00
|
|
|
dnl
|
|
|
|
AC_INIT(makeinfo/makeinfo.c)
|
|
|
|
AC_PREREQ(2.12)dnl Minimum Autoconf version required.
|
|
|
|
AM_CONFIG_HEADER(config.h)
|
|
|
|
|
1998-03-24 20:41:43 +01:00
|
|
|
AM_INIT_AUTOMAKE([texinfo], [3.12])
|
1997-08-22 00:57:35 +02:00
|
|
|
|
|
|
|
dnl Checks for programs.
|
1998-03-22 22:47:59 +01:00
|
|
|
AC_PROG_CC
|
|
|
|
AC_PROG_GCC_TRADITIONAL
|
1997-09-16 07:01:43 +02:00
|
|
|
EGCS_PROG_INSTALL
|
1997-08-22 00:57:35 +02:00
|
|
|
AC_PROG_RANLIB
|
|
|
|
|
1998-03-22 22:47:59 +01:00
|
|
|
# We do this for the sake of a more helpful warning in doc/Makefile.
|
|
|
|
TEXMF='$(datadir)/texmf'
|
|
|
|
AC_CHECK_PROG(TEXCONFIG, texconfig, true, false)
|
1998-03-24 20:41:43 +01:00
|
|
|
$TEXCONFIG && eval `texconfig conf </dev/null | grep '^TEXMF='`
|
1998-03-22 22:47:59 +01:00
|
|
|
AC_SUBST(TEXMF)
|
|
|
|
|
1997-08-22 00:57:35 +02:00
|
|
|
AC_ISC_POSIX
|
|
|
|
AC_MINIX
|
|
|
|
|
1998-03-22 22:47:59 +01:00
|
|
|
dnl CYGNUS LOCAL: Add AM_MAINTAINER_MODE and AM_EXEEXT
|
|
|
|
AM_MAINTAINER_MODE
|
1997-08-22 00:57:35 +02:00
|
|
|
AM_EXEEXT
|
|
|
|
|
|
|
|
dnl Checks for libraries.
|
1998-04-12 22:00:34 +02:00
|
|
|
AC_CHECK_HEADERS(zlib.h, [AC_CHECK_LIB(z, gzdopen)])
|
1998-03-24 20:41:43 +01:00
|
|
|
|
|
|
|
# Needed on sysV68 for sigblock, sigsetmask. But check for it in libc first.
|
|
|
|
AC_CHECK_FUNC(sigblock, , AC_CHECK_LIB(bsd, sigblock))
|
1997-08-22 00:57:35 +02:00
|
|
|
|
1998-03-22 22:47:59 +01:00
|
|
|
# Some GNU/Linux systems (e.g., SuSE 4.3, 1996) don't have curses, but
|
|
|
|
# rather ncurses. So we check for it.
|
1997-08-22 00:57:35 +02:00
|
|
|
TERMLIBS=
|
1998-03-22 22:47:59 +01:00
|
|
|
for termlib in ncurses curses termcap terminfo termlib ; do
|
1997-08-22 00:57:35 +02:00
|
|
|
AC_CHECK_LIB(${termlib}, tputs,
|
|
|
|
[TERMLIBS="${TERMLIBS} -l${termlib}"; break])
|
|
|
|
done
|
|
|
|
AC_SUBST(TERMLIBS)
|
|
|
|
|
|
|
|
dnl Checks for header files.
|
1998-03-24 20:41:43 +01:00
|
|
|
dnl Do not use <ncurses/termcap.h> unless we're linking with ncurses.
|
|
|
|
if test "x$termlib" = xncurses; then
|
|
|
|
dnl Use AC_CHECK_HEADERS so the HAVE_*_H symbol gets defined.
|
|
|
|
AC_CHECK_HEADERS(ncurses/termcap.h)
|
|
|
|
fi
|
1997-08-22 00:57:35 +02:00
|
|
|
AC_HEADER_STDC
|
1998-03-22 22:47:59 +01:00
|
|
|
AC_CHECK_HEADERS(fcntl.h pwd.h string.h strings.h termcap.h termio.h \
|
|
|
|
termios.h unistd.h \
|
|
|
|
sys/fcntl.h sys/file.h sys/ptem.h sys/time.h sys/ttold.h sys/wait.h)
|
|
|
|
|
1997-08-22 00:57:35 +02:00
|
|
|
dnl Checks for typedefs, structures, and compiler characteristics.
|
|
|
|
AC_TYPE_OFF_T
|
1998-03-22 22:47:59 +01:00
|
|
|
AC_TYPE_SIGNAL
|
1997-08-22 00:57:35 +02:00
|
|
|
AC_C_CONST
|
|
|
|
AC_STRUCT_TM
|
|
|
|
|
|
|
|
dnl Checks for library functions.
|
|
|
|
AC_FUNC_ALLOCA
|
1998-03-22 22:47:59 +01:00
|
|
|
AC_FUNC_VPRINTF
|
1998-03-26 11:30:41 +01:00
|
|
|
if test "$ac_cv_c_cross" = no; then
|
|
|
|
AC_FUNC_SETVBUF_REVERSED
|
|
|
|
fi
|
1997-08-22 00:57:35 +02:00
|
|
|
AC_CHECK_FUNCS(setvbuf getcwd memset bzero strchr strcasecmp \
|
1998-03-22 22:47:59 +01:00
|
|
|
sigprocmask sigsetmask)
|
1997-08-22 00:57:35 +02:00
|
|
|
dnl strcasecmp, strerror, xmalloc, xrealloc, probably others should be added.
|
1998-03-22 22:47:59 +01:00
|
|
|
AC_REPLACE_FUNCS(memcpy memmove strdup strerror)
|
|
|
|
|
|
|
|
dnl Set of available languages and i18n macros.
|
|
|
|
ALL_LINGUAS="de fr"
|
|
|
|
AM_GNU_GETTEXT
|
|
|
|
AC_LINK_FILES($nls_cv_header_libgt, $nls_cv_header_intl)
|
1997-08-22 00:57:35 +02:00
|
|
|
|
1998-03-22 22:47:59 +01:00
|
|
|
AC_OUTPUT([Makefile \
|
|
|
|
doc/Makefile \
|
|
|
|
info/Makefile \
|
|
|
|
intl/Makefile \
|
|
|
|
lib/Makefile \
|
|
|
|
makeinfo/Makefile \
|
|
|
|
po/Makefile.in \
|
|
|
|
util/Makefile \
|
|
|
|
],
|
|
|
|
[sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in >po/Makefile])
|