1 dnl Process this file with autoconf to produce a configure script.
2 dnl $Id: configure.in,v 1.5 1998/03/24 18:05:13 law Exp $
4 AC_INIT(makeinfo/makeinfo.c)
5 AC_PREREQ(2.12)dnl Minimum Autoconf version required.
6 AM_CONFIG_HEADER(config.h)
8 AM_INIT_AUTOMAKE([texinfo], [3.11])
10 dnl Checks for programs.
12 AC_PROG_GCC_TRADITIONAL
16 # We do this for the sake of a more helpful warning in doc/Makefile.
17 TEXMF='$(datadir)/texmf'
18 AC_CHECK_PROG(TEXCONFIG, texconfig, true, false)
19 $TEXCONFIG && eval `texconfig confall | grep '^TEXMF='`
25 dnl CYGNUS LOCAL: Add AM_MAINTAINER_MODE and AM_EXEEXT
29 dnl Checks for libraries.
30 # Needed on sysV68 for sigblock, sigsetmask.
31 AC_CHECK_LIB(bsd, sigblock)
33 # Some GNU/Linux systems (e.g., SuSE 4.3, 1996) don't have curses, but
34 # rather ncurses. So we check for it.
36 for termlib in ncurses curses termcap terminfo termlib ; do
37 AC_CHECK_LIB(${termlib}, tputs,
38 [TERMLIBS="${TERMLIBS} -l${termlib}"; break])
42 dnl Checks for header files.
44 AC_CHECK_HEADERS(fcntl.h pwd.h string.h strings.h termcap.h termio.h \
46 sys/fcntl.h sys/file.h sys/ptem.h sys/time.h sys/ttold.h sys/wait.h)
48 dnl Do not use <ncurses/termcap.h> unless we're linking with ncurses.
49 if test "x$termlib" = xncurses; then
50 AC_CHECK_HEADER(ncurses/termcap.h)
53 dnl Checks for typedefs, structures, and compiler characteristics.
59 dnl Checks for library functions.
62 if test "$ac_cv_c_cross" = no; then
63 AC_FUNC_SETVBUF_REVERSED
65 AC_CHECK_FUNCS(setvbuf getcwd memset bzero strchr strcasecmp \
66 sigprocmask sigsetmask)
67 dnl strcasecmp, strerror, xmalloc, xrealloc, probably others should be added.
68 AC_REPLACE_FUNCS(memcpy memmove strdup strerror)
70 dnl Set of available languages and i18n macros.
73 AC_LINK_FILES($nls_cv_header_libgt, $nls_cv_header_intl)
85 [sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in >po/Makefile])