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
|
dnl Process this file with autoconf to produce a configure script.
dnl
dnl Copyright 2000 - 2022 S. Varshavchik. See COPYING for
dnl distribution information.
AC_INIT([sysconftool],[0.22],[courier-users@lists.sourceforge.net])
AC_CONFIG_SRCDIR(sysconftool.in)
AM_INIT_AUTOMAKE(foreign)
dnl Checks for programs.
AC_PROG_INSTALL
AC_PROG_LN_S
AC_PATH_PROGS(PERL, perl5 perl, perl)
if test "$PERL" = "perl"
then
AC_MSG_ERROR(Perl program not found.)
fi
ACDIR=`aclocal --print-ac-dir`
if test "$ACDIR" = ""
then
AC_MSG_ERROR(aclocal not installed - please install aclocal)
fi
if test "$prefix" != "NONE"
then
ACDIR='${datadir}/'`basename $ACDIR` # For make distcheck
fi
AC_SUBST(ACDIR)
dnl Checks for libraries.
dnl Checks for header files.
dnl Checks for typedefs, structures, and compiler characteristics.
dnl Checks for library functions.
AM_CONDITIONAL(HAVE_SGML, test -d ${srcdir}/libs/docbook)
env LC_ALL=C perl -e 'use POSIX qw(strftime); print strftime("DATE=\"%a %b %d %Y\"; DATEFULL=\"%a, %d %b %Y %H:%M:%S %z\"", localtime)' >configure.date
. ./configure.date
rm configure.date
AC_SUBST(DATE)
AC_SUBST(DATEFULL)
AC_CONFIG_FILES([Makefile
sysconftool
sysconftoolcheck
sysconftool.spec
sysconftool.m4
sysconftoolize.pl
courier-debuild
])
AC_OUTPUT
|