chiark / gitweb /
changelog WIP
[userv.git] / configure.in
index bc0263fda92b205fb26928fddaf7edb7b2044e05..f46c56a4c0c0252df0d60be669052763dd53ca58 100644 (file)
@@ -1,6 +1,6 @@
 #  userv - configure.in
 #
-#  Copyright (C)1996-1997,1999 Ian Jackson
+#  Copyright (C)1996-1997,1999-2000,2003 Ian Jackson
 #   
 #  This is free software; you can redistribute it and/or modify it
 #  under the terms of the GNU General Public License as published by
@@ -41,12 +41,12 @@ AC_ARG_ENABLE(debug,
 AC_PROG_CC
 AC_PROG_CPP
 AC_PROG_INSTALL
-AC_CHECK_PROGS(MD5SUM_SIMPLE, md5sum md5)
+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_EGREP_CPP(yes,
@@ -74,6 +74,20 @@ then
        AC_DEFINE(HAVE_LOG_AUTHPRIV)
 fi
 
+AC_CACHE_CHECK(for WCOREDUMP,userv_cv_hdr_wcoredump,
+ AC_EGREP_CPP(yes,
+[
+#include <sys/types.h>
+#include <sys/wait.h>
+#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