X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=userv.git;a=blobdiff_plain;f=configure.in;h=f58fcb4bfe7ba95733cedcfef7a4866ffbbee6a2;hp=2c7bb2d25c276e5e1684458f5dab6e52893d473b;hb=70d3947fb471e0e12ef89c35f915f6acec217f4a;hpb=3d807a2dbb651589be1aaea2646cd624bb03b599;ds=sidebyside diff --git a/configure.in b/configure.in index 2c7bb2d..f58fcb4 100644 --- a/configure.in +++ b/configure.in @@ -1,6 +1,6 @@ # userv - configure.in -# -# Copyright (C)1996-1997 Ian Jackson +# +# Copyright (C)1996-1997,1999 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 @@ -44,6 +44,9 @@ AC_PROG_INSTALL CFLAGS="$CFLAGS -D_GNU_SOURCE" +AC_CHECK_LIB(socket,socket) +AC_CHECK_FUNCS(setenv) + AC_CACHE_CHECK(for EPROTO,userv_cv_hdr_eproto, AC_EGREP_CPP(yes, [ @@ -57,6 +60,19 @@ then AC_DEFINE(HAVE_EPROTO) fi +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)) +if test $userv_cv_hdr_logauthpriv = yes +then + AC_DEFINE(HAVE_LOG_AUTHPRIV) +fi + AC_SUBST(OPTIMISE) if test "${GCC-no}" = yes; then OPTIMISE=-O2