Move the prototype checking code from include/krb5/configure.in into
authorEzra Peisach <epeisach@mit.edu>
Mon, 22 Jan 1996 22:35:33 +0000 (22:35 +0000)
committerEzra Peisach <epeisach@mit.edu>
Mon, 22 Jan 1996 22:35:33 +0000 (22:35 +0000)
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

src/ChangeLog
src/aclocal.m4

index 6ae18571c45703562d17b7edfb5d53be03a68dc2..e63fa073bc7c8d8433a96fe7d1369755e084f934 100644 (file)
@@ -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.
 
index be7fcab7c704550c978714be8c62f3d5f8011f8e..94fde749bb7796656801907eaf02c30df93ca1ad 100644 (file)
@@ -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