1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70
|
dnl Process this file with autoconf to produce a configure script.
AC_INIT(GNU Indent, 2.2.11, bug-indent@gnu.org)
AC_CONFIG_SRCDIR(src/indent.c)
AC_CONFIG_AUX_DIR(config)
AM_INIT_AUTOMAKE(indent, 2.2.11)
AM_CONFIG_HEADER(config.h)
AM_MAINTAINER_MODE
dnl Checks for programs.
AC_PROG_CC
AC_PROG_CPP
AC_PROG_INSTALL
AC_AIX
AC_MINIX
dnl Checks for UNIX variants that set DEFS,
AC_ISC_POSIX
dnl Checks for compiler output filename suffixes.
AC_EXEEXT
AC_OBJEXT
dnl Checks for typedefs, structures, and compiler characteristics.
dnl AM_C_PROTOTYPES
AC_C_CONST
dnl Check for tools needed for formatting the documentation.
ac_aux_dir_abs=`cd $ac_aux_dir && pwd`
AC_PATH_PROG(DVIPS, dvips, $ac_aux_dir_abs/missing dvips)
AC_PATH_PROG(TEXI2PDF, texi2pdf, $ac_aux_dir_abs/missing texi2pdf)
AC_PATH_PROG(TEXI2HTML, texi2html, $ac_aux_dir_abs/missing texi2html)
dnl These are the only lines required to internationalize the package.
dnl (OK, not quite, the AC_OUTPUT has also some parts.)
AM_GNU_GETTEXT
AM_GNU_GETTEXT_VERSION(0.11.5)
AH_TEMPLATE(HAVE_LC_MESSAGES)
AH_TEMPLATE(ENABLE_NLS)
AH_TEMPLATE(HAVE_GETTEXT)
AH_TEMPLATE(HAVE_CATGETS)
AH_TEMPLATE(HAVE_STPCPY)
localedir=${datadir}/locale
AC_SUBST(localedir)
AC_HEADER_STDC
AC_CHECK_FUNCS(strchr memcpy memmove utime)
AC_CHECK_HEADERS(unistd.h string.h malloc.h utime.h sys/utime.h)
if test "$ac_cv_func_utime" = yes ; then
if test "$ac_cv_header_utime_h" = yes ; then
indent_UTIMBUF
fi
fi
AC_HEADER_DIRENT
AC_OUTPUT([
intl/Makefile
po/Makefile.in
Makefile
src/Makefile
doc/Makefile
man/Makefile
],
[touch Makefile.in])
|