+2006-03-27 Ken Raeburn <raeburn@mit.edu>
+
+ * configure.in: Supply comment template in AC_DEFINE calls.
+
2005-08-20 Ken Raeburn <raeburn@mit.edu>
* configure.in: Use K5_AC_INIT instead of AC_INIT.
+2006-03-27 Ken Raeburn <raeburn@mit.edu>
+
+ * configure.in: Supply comment template in AC_DEFINE calls.
+
2005-08-20 Ken Raeburn <raeburn@mit.edu>
* configure.in: Use K5_AC_INIT instead of AC_INIT.
--with-afs=AFSDIR use preinstalled AFS library tree],
,with_afs=no)dnl
if test $with_afs != no; then
- AC_DEFINE(SETPAG)
+ AC_DEFINE(SETPAG,1,[Define if setpag should be used])
LOGINLIBS="$LOGINLIBS -L$with_afs/lib -L$with_afs/lib/afs -lauth -lsys -lrx -llwp"
fi
AC_PROG_INSTALL
;;
alpha*-dec-osf*)
AC_CHECK_LIB(security,setluid,
- AC_DEFINE(HAVE_SETLUID)
+ AC_DEFINE(HAVE_SETLUID,1,[Define if setluid is supplied by the OSF/1 security library])
LOGINLIBS="$LOGINLIBS -lsecurity"
)
;;
CHECK_SETJMP
CHECK_DIRENT
CHECK_WAIT_TYPE
-AC_CHECK_HEADER(termios.h,[AC_CHECK_FUNC(cfsetispeed,AC_DEFINE(POSIX_TERMIOS))])
+AC_CHECK_HEADER(termios.h,[AC_CHECK_FUNC(cfsetispeed,AC_DEFINE(POSIX_TERMIOS,1,[Define if POSIX-compatible termios interface is found]))])
CHECK_UTMP
KRB5_GETSOCKNAME_ARGS
dnl
krb5_cv_has_streams=yes, krb5_cv_has_streams=no)])
AC_MSG_RESULT($krb5_cv_has_streams)
if test $krb5_cv_has_streams = yes; then
-AC_DEFINE(HAVE_STREAMS)
+AC_DEFINE(HAVE_STREAMS,1,[Define if the OS uses streams])
fi
dnl
dnl
krb5_cv_f_setown=yes,krb5_cv_f_setown=no)])
AC_MSG_RESULT($krb5_cv_f_setown)
if test $krb5_cv_f_setown = yes; then
-AC_DEFINE(HAVE_SETOWN)
+AC_DEFINE(HAVE_SETOWN,1,[Define if F_SETOWN is available])
fi
dnl
dnl
SETENVOBJ=setenv.o
AC_SUBST([SETENVSRC])
AC_SUBST([SETENVOBJ])
-AC_DEFINE([NEED_SETENV])
+AC_DEFINE([NEED_SETENV],1,[Define if setenv needs to be defined])
fi
dnl
dnl
krb5_cv_setpgrp_args=two, krb5_cv_setpgrp_args=void)])
AC_MSG_RESULT($krb5_cv_setpgrp_args)
if test $krb5_cv_setpgrp_args = two; then
-AC_DEFINE(SETPGRP_TWOARG)
+AC_DEFINE(SETPGRP_TWOARG,1,[Define if setpgrp takes two arguments])
fi
dnl
dnl
krb5_cv_shadow_pwd=yes, krb5_cv_shadow_pwd=no)])
AC_MSG_RESULT($krb5_cv_shadow_pwd)
if test $krb5_cv_shadow_pwd = yes; then
-AC_DEFINE(HAVE_SHADOW)
+AC_DEFINE(HAVE_SHADOW,1,[Define if shadow password interface is available])
fi
dnl
dnl
dnl Kludge for simple server --- FIXME is this the best way to do this?
dnl
if test "$ac_cv_lib_socket" = "yes" -a "$ac_cv_lib_nsl" = "yes"; then
- AC_DEFINE(BROKEN_STREAMS_SOCKETS)
+ AC_DEFINE(BROKEN_STREAMS_SOCKETS,1,[Define if socket can't be bound to 0.0.0.0])
fi
dnl
dnl
+2006-03-27 Ken Raeburn <raeburn@mit.edu>
+
+ * configure.in: Supply comment template in AC_DEFINE calls.
+
2005-08-20 Ken Raeburn <raeburn@mit.edu>
* configure.in: Use K5_AC_INIT instead of AC_INIT.
AC_CHECK_SIZEOF(int)
AC_CHECK_SIZEOF(long)
AC_HEADER_STDARG
-AC_CHECK_HEADER(termios.h,[AC_CHECK_FUNC(cfsetispeed,AC_DEFINE(POSIX_TERMIOS))])
+AC_CHECK_HEADER(termios.h,[AC_CHECK_FUNC(cfsetispeed,AC_DEFINE(POSIX_TERMIOS,1,[Define if POSIX termios interface found]))])
AC_CHECK_HEADERS(unistd.h stdlib.h string.h sys/select.h sys/sockio.h paths.h)
CHECK_UTMP
DECLARE_SYS_ERRLIST
SETENVOBJ=setenv.o
AC_SUBST([SETENVSRC])
AC_SUBST([SETENVOBJ])
-AC_DEFINE([NEED_SETENV])
+AC_DEFINE([NEED_SETENV],1,[Define if setenv needs to be defined])
fi
dnl
dnl
krb5_cv_shadow_pwd=yes, krb5_cv_shadow_pwd=no)])
AC_MSG_RESULT($krb5_cv_shadow_pwd)
if test $krb5_cv_shadow_pwd = yes; then
-AC_DEFINE(HAVE_SHADOW)
+AC_DEFINE(HAVE_SHADOW,1,[Define if shadow password interface found])
fi
case $krb5_cv_host in
alpha*-dec-osf*)
AC_CHECK_LIB(security,setluid,
- AC_DEFINE(HAVE_SETLUID)
+ AC_DEFINE(HAVE_SETLUID,1,[Define if setluid provided in OSF/1 security library])
FTPD_LIBS="$FTPD_LIBS -lsecurity"
)
;;
+2006-03-27 Ken Raeburn <raeburn@mit.edu>
+
+ * configure.in: Supply comment template in AC_DEFINE calls.
+
2006-03-15 Ken Raeburn <raeburn@mit.edu>
* configure.in: If tgetent can't be found, error out.
SETENVOBJ=setenv.o
AC_SUBST([SETENVSRC])
AC_SUBST([SETENVOBJ])
- AC_DEFINE([NEED_SETENV])
+ AC_DEFINE([NEED_SETENV],1,[Define if setenv needs to be defined])
fi
dnl
KRB5_NEED_PROTO([#include <stdlib.h>],setenv)
AC_MSG_RESULT(No Kerberos 4 authentication)
else
AC_MSG_RESULT(Kerberos 4 authentication enabled)
- AC_DEFINE(KRB4)
+ AC_DEFINE(KRB4,1,[Define if krb4 authentication is enabled])
fi
KRB5_BUILD_LIBRARY_STATIC
KRB5_BUILD_LIBOBJS
#endif
])
dnl
-AC_CHECK_LIB(termcap,main,AC_DEFINE(TERMCAP)
+AC_CHECK_LIB(termcap,main,AC_DEFINE(TERMCAP,1,[Define if termcap library is available])
LIBS="$LIBS -ltermcap")
AC_CHECK_LIB(curses,setupterm,LIBS="$LIBS -lcurses",
AC_CHECK_LIB(ncurses,setupterm,LIBS="$LIBS -lncurses")
AC_CHECK_FUNC(tgetent, , [AC_MSG_ERROR([Could not find tgetent; are you missing a curses/ncurses library?])])
KRB5_AC_INET6
AC_CHECK_FUNCS(setupterm)
-AC_CHECK_HEADER(termios.h,AC_DEFINE(USE_TERMIO) ac_termio=1)
+AC_CHECK_HEADER(termios.h,AC_DEFINE(USE_TERMIO,1,[Define if termio should be used]) ac_termio=1)
if test -z "$ac_termio"; then
-AC_CHECK_HEADER(termio.h,AC_DEFINE(SYSV_TERMIO),ac_sysv_termio=1)
+AC_CHECK_HEADER(termio.h,AC_DEFINE(SYSV_TERMIO,1,[Define if SysV termio interface is found]),ac_sysv_termio=1)
if test -z "$ac_sysv_termio"; then
AC_MSG_CHECKING([for cc_t in termio.h])
AC_CACHE_VAL(krb_cv_type_cc_t,
[cc_t foo;],krb_cv_type_cc_t=yes,krb_cv_type_cc_t=no)])
AC_MSG_RESULT($krb_cv_type_cc_t)
if test $krb_cv_type_cc_t = no; then
- AC_DEFINE(NO_CC_T)
+ AC_DEFINE(NO_CC_T,1,[Define if termio.h does not define type cc_t])
fi
fi
fi
#endif
],[speed_t termspeed],krb5_cv_type_speed_t=yes, krb5_cv_type_speed_t=no)])
if test $krb5_cv_type_speed_t = no; then
- AC_DEFINE(speed_t, int)
+ AC_DEFINE(speed_t, int, [Define if system termios interface doesn't define speed_t])
fi;
dnl
dnl
;;
esac
if test -z "$broken_streams" -a "$ac_cv_header_sys_stream_h" = yes; then
- AC_CHECK_FUNC(grantpt,AC_DEFINE(STREAMSPTY))
+ AC_CHECK_FUNC(grantpt,AC_DEFINE(STREAMSPTY,1,[Define if streams pty interface should be used]))
fi
AC_MSG_CHECKING([if setpgrp takes two arguments])
dnl
krb5_cv_sys_setpgrp_two=yes,krb5_cv_sys_setpgrp_two=no)])
AC_MSG_RESULT($krb5_cv_sys_setpgrp_two)
if test $krb5_cv_sys_setpgrp_two = yes; then
- AC_DEFINE(SETPGRP_TWOARG)
+ AC_DEFINE(SETPGRP_TWOARG,1,[Define if setpgrp takes two arguments])
fi
dnl
KRB5_NEED_PROTO([#include <stdlib.h>],unsetenv,1)