petidomo/configure.ac

102 lines
2.9 KiB
Plaintext
Raw Normal View History

2008-12-11 22:46:44 +00:00
dnl configure.ac -- Process this file with autoconf to produce a configure script.
2019-07-10 12:58:41 +00:00
AC_INIT([petidomo],[m4_esyscmd(build-aux/git-version-gen .tarball-version)],[simons@cryp.to],[petidomo],[https://github.com/peti/petidomo])
2008-12-11 22:46:44 +00:00
AC_CONFIG_SRCDIR([petidomo.h])
AC_CONFIG_AUX_DIR([build-aux])
AM_INIT_AUTOMAKE([1.11 -Wall foreign subdir-objects])
2008-12-11 22:46:44 +00:00
AC_CONFIG_MACRO_DIR([build-aux])
AC_COPYRIGHT([dnl
2019-07-10 13:00:47 +00:00
Copyright (C) 1995-2019 Peter Simons <simons@cryp.to>
2008-12-11 22:46:44 +00:00
Copyright (C) 1999-2000 CyberSolutions GmbH, Germany.
Copyright (C) 2000 Cable & Wireless Corp.
Petidomo is free software: you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
Free Software Foundation, either version 3 of the License, or (at your
option) any later version.
Petidomo is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
more details.
You should have received a copy of the GNU General Public License along
with Petidomo. If not, see <http://www.gnu.org/licenses/>.])
2010-02-24 17:54:46 +00:00
AC_MSG_NOTICE([petidomo version $VERSION])
2010-02-24 15:51:54 +00:00
2008-12-11 22:46:44 +00:00
AC_PROG_CC
2010-02-24 15:51:54 +00:00
gl_EARLY
2008-12-11 22:46:44 +00:00
AM_PROG_CC_C_O
AM_PROG_AR
2008-12-11 22:46:44 +00:00
AC_PROG_RANLIB
AM_PROG_LEX
if test "$LEX" != "flex"; then
AC_MSG_WARN([$LEX might not work; install flex if the build fails.])
fi
AC_PROG_YACC
if test "$YACC" != "bison -y"; then
AC_MSG_WARN([$YACC might not work; install bison if the build fails.])
fi
2010-02-24 15:51:54 +00:00
gl_INIT
2008-12-11 22:46:44 +00:00
AC_SUBST(mta)
AC_ARG_WITH(mta, [ --with-mta=PATH location of the mail transport agent (sendmail?)],
[
if test "$withval" = "no" -o "$withval" = "yes"; then
AC_MSG_ERROR([The --with-mta option expects a path as parameter!])
fi
AC_MSG_CHECKING(for the location of the mail transport agent)
mta=$withval
AC_MSG_RESULT($mta)
if test ! -f $mta; then
AC_MSG_WARN(The specified MTA '$mta' does not exist.)
elif test ! -x $mta; then
AC_MSG_WARN(The specified MTA '$mta' is not executable.)
fi
],
[
AC_PATH_PROG(mta, sendmail, none, $PATH:/usr/lib:/etc/usr/etc)
if test "$mta" = "none"; then
AC_MSG_ERROR(Cannot locate your mail transport agent.)
fi
])
dnl Include debug code?
AC_MSG_CHECKING([whether to include debugging capabilities])
AC_ARG_WITH(debug, [ --with-debug Support debugging? (default: yes)],
[
if test "$withval" = "no"; then
AC_MSG_RESULT(no)
elif test "$withval" = "yes"; then
CPPFLAGS="$CPPFLAGS -DDEBUG"
AC_MSG_RESULT(yes)
fi
],
[
CPPFLAGS="$CPPFLAGS -DDEBUG"
AC_MSG_RESULT(yes)
])
dnl other system stuff
AC_SYS_LARGEFILE
dnl Grande Finale
2010-02-24 15:51:54 +00:00
AC_CONFIG_HEADER([config.h])
2008-12-11 22:46:44 +00:00
AC_CONFIG_FILES([
Makefile
2010-02-24 15:51:54 +00:00
doc/Makefile
libgnu/Makefile
2008-12-11 22:46:44 +00:00
libargv/Makefile
libconfigfile/Makefile
liblists/Makefile
libmpools/Makefile
librfc822/Makefile
libtext/Makefile
])
AC_OUTPUT