From: Ezra Peisach Date: Mon, 22 Jan 1996 22:35:33 +0000 (+0000) Subject: Move the prototype checking code from include/krb5/configure.in into X-Git-Tag: krb5-1.0-beta6~590 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=6a52912d3edc62fa15579a0875f0aba6466adda6;p=krb5.git Move the prototype checking code from include/krb5/configure.in into KRB5_CHECK_PROTOS. This is for applications that wish to use KRB5_PROTOTYPE, are not STDC, do not want to include k5-int.h but need to know if prototypes work on the system. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7358 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/ChangeLog b/src/ChangeLog index 6ae18571c..e63fa073b 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,5 +1,8 @@ Mon Jan 22 07:55:04 1996 Ezra Peisach + * aclocal.m4 (KRB5_CHECK_PROTOS): Move prototype checking code + from include/krb5. + * configure.in: Add in WITH_ANAME_DB and WITH_KDB_DB so that top level configure --help lists options. diff --git a/src/aclocal.m4 b/src/aclocal.m4 index be7fcab7c..94fde749b 100644 --- a/src/aclocal.m4 +++ b/src/aclocal.m4 @@ -1071,3 +1071,21 @@ $1 : fi ])dnl +dnl +dnl Check for prototype support - used by application not including k5-int.h +dnl +define(KRB5_CHECK_PROTOS,[ +AC_MSG_CHECKING([prototype support]) +AC_CACHE_VAL(krb5_cv_has_prototypes, +[AC_TRY_COMPILE( +[int x(double y, int z);], [], +krb5_cv_has_prototypes=yes, krb5_cv_has_prototypes=no)]) +AC_MSG_RESULT($krb5_cv_has_prototypes) +if test $krb5_cv_has_prototypes = no; then +AC_DEFINE(KRB5_NO_PROTOTYPES) +else +AC_DEFINE(KRB5_PROVIDE_PROTOTYPES) +fi +dnl *never* set NARROW_PROTOTYPES +])dnl +dnl