diff options
author | Ezra Peisach <epeisach@mit.edu> | 1996-01-22 22:35:33 +0000 |
---|---|---|
committer | Ezra Peisach <epeisach@mit.edu> | 1996-01-22 22:35:33 +0000 |
commit | 6a52912d3edc62fa15579a0875f0aba6466adda6 (patch) | |
tree | e3174aea9ee10fa799d1144e7018f80e11547319 | |
parent | cd4dc5d24fd5c1b86fc810106a0f4c316a29e35a (diff) | |
download | krb5-6a52912d3edc62fa15579a0875f0aba6466adda6.tar.gz krb5-6a52912d3edc62fa15579a0875f0aba6466adda6.tar.xz krb5-6a52912d3edc62fa15579a0875f0aba6466adda6.zip |
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
-rw-r--r-- | src/ChangeLog | 3 | ||||
-rw-r--r-- | src/aclocal.m4 | 18 |
2 files changed, 21 insertions, 0 deletions
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 <epeisach@kangaroo.mit.edu> + * 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 |