X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?a=blobdiff_plain;f=configure.in;h=13e1f9f139daba52db0b5e494ef0f74ce207376e;hb=7adf2c71251abac86b93cbd21914acccac295575;hp=f58fcb4bfe7ba95733cedcfef7a4866ffbbee6a2;hpb=26cf1562f35e53b9c54be0887650feef48550343;p=userv.git
diff --git a/configure.in b/configure.in
index f58fcb4..13e1f9f 100644
--- a/configure.in
+++ b/configure.in
@@ -1,20 +1,20 @@
# userv - configure.in
#
-# Copyright (C)1996-1997,1999 Ian Jackson
-#
+# userv is copyright Ian Jackson and other contributors.
+# See README for full authorship information.
+#
# This 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 2 of the License, or
+# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
-#
+#
# This program 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 userv; if not, write to the Free Software
-# Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+# along with this program. If not, see .
AC_INIT(language.i4)
AC_CONFIG_HEADER(config.h)
@@ -41,38 +41,53 @@ AC_ARG_ENABLE(debug,
AC_PROG_CC
AC_PROG_CPP
AC_PROG_INSTALL
+AC_CHECK_PROGS(MD5SUM_SIMPLE, md5sum md5 gmd5sum)
CFLAGS="$CFLAGS -D_GNU_SOURCE"
AC_CHECK_LIB(socket,socket)
-AC_CHECK_FUNCS(setenv)
+AC_CHECK_FUNCS(setenv strsignal vsnprintf)
-AC_CACHE_CHECK(for EPROTO,userv_cv_hdr_eproto,
+AC_CACHE_CHECK([for EPROTO],userv_cv_hdr_eproto,[
AC_EGREP_CPP(yes,
[
#include
#ifdef EPROTO
yes
#endif
-],userv_cv_hdr_eproto=yes,userv_cv_hdr_eproto=no))
+],userv_cv_hdr_eproto=yes,userv_cv_hdr_eproto=no)])
if test $userv_cv_hdr_eproto = yes
then
AC_DEFINE(HAVE_EPROTO)
fi
-AC_CACHE_CHECK(for LOG_AUTHPRIV,userv_cv_hdr_logauthpriv,
+AC_CACHE_CHECK([for LOG_AUTHPRIV],userv_cv_hdr_logauthpriv,[
AC_EGREP_CPP(yes,
[
#include
#ifdef LOG_AUTHPRIV
yes
#endif
-],userv_cv_hdr_logauthpriv=yes,userv_cv_hdr_logauthpriv=no))
+],userv_cv_hdr_logauthpriv=yes,userv_cv_hdr_logauthpriv=no)])
if test $userv_cv_hdr_logauthpriv = yes
then
AC_DEFINE(HAVE_LOG_AUTHPRIV)
fi
+AC_CACHE_CHECK([for WCOREDUMP],userv_cv_hdr_wcoredump,[
+ AC_EGREP_CPP(yes,
+[
+#include
+#include
+#ifdef WCOREDUMP
+ yes
+#endif
+],userv_cv_hdr_wcoredump=yes,userv_cv_hdr_wcoredump=no)])
+if test $userv_cv_hdr_wcoredump = yes
+then
+ AC_DEFINE(HAVE_WCOREDUMP)
+fi
+
AC_SUBST(OPTIMISE)
if test "${GCC-no}" = yes; then
OPTIMISE=-O2