diff --git a/acconfig.h b/acconfig.h index 8dc92751e..76b65792d 100644 --- a/acconfig.h +++ b/acconfig.h @@ -1,8 +1,5 @@ @BOTTOM@ -#undef VERSION -#undef PACKAGE - #undef BINDIR #undef LIBDIR #undef LIBEXECDIR @@ -25,164 +22,12 @@ #define KRB_PUT_INT(F, T, L, S) krb_put_int((F), (T), (L)) #endif -/* Define this to the type ssize_t should be */ -#undef ssize_t - -/* Define this to the type sig_atomic_t should be */ -#undef sig_atomic_t - -/* Define this to the type mode_t should be */ -#undef mode_t - -/* Define this if struct utmp have ut_user */ -#undef HAVE_UT_USER - -/* Define this if struct utmp have ut_host */ -#undef HAVE_UT_HOST - -/* Define this if struct utmp have ut_addr */ -#undef HAVE_UT_ADDR - -/* Define this if struct utmp have ut_type */ -#undef HAVE_UT_TYPE - -/* Define this if struct utmp have ut_pid */ -#undef HAVE_UT_PID - -/* Define this if struct utmp have ut_id */ -#undef HAVE_UT_ID - -/* Define this if struct utmpx have ut_syslen */ -#undef HAVE_UT_SYSLEN - -/* Define this if struct utmpx have ut_exit */ -#undef HAVE_UT_EXIT - /* Define this if you have a IPv6 */ #undef HAVE_IPV6 -/* define if prototype of gethostbyname is compatible with - `struct hostent *gethostbyname(const char *) - */ -#undef GETHOSTBYNAME_PROTO_COMPATIBLE - -/* define if prototype of gethostbyaddr is compatible with - `struct hostent *gethostbyaddr(const void *, size_t, int) - */ -#undef GETHOSTBYADDR_PROTO_COMPATIBLE - -/* define if prototype of getservbyname is compatible with - `struct servent *getservbyname(const char *, const char *) - */ -#undef GETSERVBYNAME_PROTO_COMPATIBLE - -/* define if prototype of openlog is compatible with - `void openlog(const char *, int, int)' - */ -#undef OPENLOG_PROTO_COMPATIBLE - -/* define if you have h_errno */ -#undef HAVE_H_ERRNO - -/* define if you have h_errlist but not hstrerror */ -#undef HAVE_H_ERRLIST - -/* define if you have h_nerr but not hstrerror */ -#undef HAVE_H_NERR - -/* define if your system doesn't declare h_errlist */ -#undef HAVE_H_ERRLIST_DECLARATION - -/* define if your system doesn't declare h_nerr */ -#undef HAVE_H_NERR_DECLARATION - -/* define this if you need a declaration for h_errno */ -#undef HAVE_H_ERRNO_DECLARATION - -/* define if you need a declaration for optarg */ -#undef HAVE_OPTARG_DECLARATION - -/* define if you need a declaration for optind */ -#undef HAVE_OPTIND_DECLARATION - -/* define if you need a declaration for opterr */ -#undef HAVE_OPTERR_DECLARATION - -/* define if you need a declaration for optopt */ -#undef HAVE_OPTOPT_DECLARATION - -/* define if you need a declaration for environ */ -#undef HAVE_ENVIRON_DECLARATION - -/* define if you need a declaration for __progname */ -#undef HAVE___PROGNAME_DECLARATION - -/* define if the system is missing a prototype for crypt() */ -#undef NEED_CRYPT_PROTO - -/* define if the system is missing a prototype for strtok_r() */ -#undef NEED_STRTOK_R_PROTO - -/* define if the system is missing a prototype for getusershell() */ -#undef NEED_GETUSERSHELL_PROTO - -/* define if the system is missing a prototype for strtok_r() */ -#undef NEED_HSTRERROR_PROTO - -/* define if the system is missing a prototype for snprintf() */ -#undef NEED_SNPRINTF_PROTO - -/* define if the system is missing a prototype for vsnprintf() */ -#undef NEED_VSNPRINTF_PROTO - -/* define if the system is missing a prototype for asnprintf() */ -#undef NEED_ASNPRINTF_PROTO - -/* define if the system is missing a prototype for asprintf() */ -#undef NEED_ASPRINTF_PROTO - -/* define if the system is missing a prototype for vasnprintf() */ -#undef NEED_VASNPRINTF_PROTO - -/* define if the system is missing a prototype for vasprintf() */ -#undef NEED_VASPRINTF_PROTO - -/* define if the system is missing a prototype for gethostname() */ -#undef NEED_GETHOSTNAME_PROTO - -/* define if the system is missing a prototype for inet_aton() */ -#undef NEED_INET_ATON_PROTO - -/* define if the system is missing a prototype for mkstemp() */ -#undef NEED_MKSTEMP_PROTO - -/* define if the system is missing a prototype for glob() */ -#undef NEED_GLOB_PROTO - -/* Define this if your `struct tm' has a field `tm_gmtoff' */ -#undef HAVE_STRUCT_TM_TM_GMTOFF - /* define if getcwd() is broken (such as in SunOS) */ #undef BROKEN_GETCWD -/* Define this if you have a variable `timezone' */ -#undef HAVE_TIMEZONE - -/* Define this if you have a struct spwd */ -#undef HAVE_STRUCT_SPWD - -/* Define this if struct winsize is declared in sys/termios.h */ -#undef HAVE_STRUCT_WINSIZE - -/* Define this if struct winsize has ws_xpixel */ -#undef HAVE_WS_XPIXEL - -/* Define this if struct winsize has ws_ypixel */ -#undef HAVE_WS_YPIXEL - -/* Define this if struct sockaddr has sa_len */ -#undef SOCKADDR_HAS_SA_LEN - /* Define to isoc_realloc if you have a broken realloc */ #undef BROKEN_REALLOC #ifdef BROKEN_REALLOC @@ -201,12 +46,6 @@ /* Define if you have a readline compatible library */ #undef HAVE_READLINE -/* define if el_init takes four arguments */ -#undef HAVE_FOUR_VALUED_EL_INIT - -/* Define if you have hesiod */ -#undef HESIOD - #define RCSID(msg) \ static /**/const char *const rcsid[] = { (char *)rcsid, "\100(#)" msg } @@ -233,9 +72,6 @@ static /**/const char *const rcsid[] = { (char *)rcsid, "\100(#)" msg } /* define this for OTP support */ #undef OTP -/* define this if you have kerberos 4 */ -#undef KRB4 - /* define this if you want to use the KDC as a kaserver */ #undef KASERVER @@ -255,9 +91,6 @@ static /**/const char *const rcsid[] = { (char *)rcsid, "\100(#)" msg } #define AUTHENTICATION 1 #endif -/* Define if you have hesiod */ -#undef HESIOD - /* define if you want key-deriving des3 code */ #undef NEW_DES3_CODE diff --git a/cf/broken-glob.m4 b/cf/broken-glob.m4 index 84096a508..5466d0f1f 100644 --- a/cf/broken-glob.m4 +++ b/cf/broken-glob.m4 @@ -10,12 +10,10 @@ AC_TRY_LINK([ #include ],[ glob(NULL, GLOB_BRACE|GLOB_NOCHECK|GLOB_QUOTE|GLOB_TILDE, NULL, NULL); ],:,ac_cv_func_glob_working=no,:)) -: << END -@@@funcs="$funcs glob"@@@ -END + if test "$ac_cv_func_glob_working" = yes; then - foo=HAVE_GLOB - AC_DEFINE_UNQUOTED($foo) + AC_DEFINE(HAVE_GLOB, 1, [define if you have a glob() that groks + GLOB_BRACE, GLOB_NOCHECK, GLOB_QUOTE, and GLOB_TILDE]) fi if test "$ac_cv_func_glob_working" = yes; then AC_NEED_PROTO([#include diff --git a/cf/broken-snprintf.m4 b/cf/broken-snprintf.m4 index 83ddea105..d5d789768 100644 --- a/cf/broken-snprintf.m4 +++ b/cf/broken-snprintf.m4 @@ -14,12 +14,9 @@ changequote([,])dnl snprintf(foo, 2, "12"); return strcmp(foo, "1"); }],:,ac_cv_func_snprintf_working=no,:)) -: << END -@@@funcs="$funcs snprintf"@@@ -END + if test "$ac_cv_func_snprintf_working" = yes; then - foo=HAVE_SNPRINTF - AC_DEFINE_UNQUOTED($foo) + AC_DEFINE_UNQUOTED(HAVE_SNPRINTF, 1, [define if you have a working snprintf]) fi if test "$ac_cv_func_snprintf_working" = yes; then AC_NEED_PROTO([#include ],snprintf) @@ -51,12 +48,9 @@ int main() { return foo(0, "12"); }],:,ac_cv_func_vsnprintf_working=no,:)) -: << END -@@@funcs="$funcs vsnprintf"@@@ -END + if test "$ac_cv_func_vsnprintf_working" = yes; then - foo=HAVE_VSNPRINTF - AC_DEFINE_UNQUOTED($foo) + AC_DEFINE_UNQUOTED(HAVE_VSNPRINTF, 1, [define if you have a working vsnprintf]) fi if test "$ac_cv_func_vsnprintf_working" = yes; then AC_NEED_PROTO([#include ],vsnprintf) diff --git a/cf/c-attribute.m4 b/cf/c-attribute.m4 index cc3dc0c5c..88c872eec 100644 --- a/cf/c-attribute.m4 +++ b/cf/c-attribute.m4 @@ -24,7 +24,7 @@ foo(void) ac_cv___attribute__=yes, ac_cv___attribute__=no)]) if test "$ac_cv___attribute__" = "yes"; then - AC_DEFINE(HAVE___ATTRIBUTE__) + AC_DEFINE(HAVE___ATTRIBUTE__, 1, [define if your compiler has __attribute__]) fi AC_MSG_RESULT($ac_cv___attribute__) ]) diff --git a/cf/c-function.m4 b/cf/c-function.m4 index 86eb5eb6b..5ce48f9dd 100644 --- a/cf/c-function.m4 +++ b/cf/c-function.m4 @@ -26,7 +26,7 @@ ac_cv___function__=yes, ac_cv___function__=no, ac_cv___function__=no)]) if test "$ac_cv___function__" = "yes"; then - AC_DEFINE(HAVE___FUNCTION__) + AC_DEFINE(HAVE___FUNCTION__, 1, [define if your compiler has __FUNCTION__]) fi AC_MSG_RESULT($ac_cv___function__) ]) diff --git a/cf/check-declaration.m4 b/cf/check-declaration.m4 index 8b972c8d2..a05ff56e3 100644 --- a/cf/check-declaration.m4 +++ b/cf/check-declaration.m4 @@ -15,16 +15,11 @@ eval "ac_cv_var_$2_declaration=no", eval "ac_cv_var_$2_declaration=yes") ]) -ac_tr_var=[HAVE_]translit($2, [a-z], [A-Z])[_DECLARATION] - -define([foo], [HAVE_]translit($2, [a-z], [A-Z])[_DECLARATION]) -: << END -@@@syms="$syms foo"@@@ -END -undefine([foo]) +define(foo, [HAVE_]translit($2, [a-z], [A-Z])[_DECLARATION]) AC_MSG_RESULT($ac_cv_var_$2_declaration) if eval "test \"\$ac_cv_var_$2_declaration\" = yes"; then - AC_DEFINE_UNQUOTED($ac_tr_var) + AC_DEFINE(foo, 1, [define if your system declares $2]) fi +undef(foo) ]) diff --git a/cf/check-type-extra.m4 b/cf/check-type-extra.m4 index cb4094610..68b789d64 100644 --- a/cf/check-type-extra.m4 +++ b/cf/check-type-extra.m4 @@ -18,6 +18,6 @@ changequote([,]), [#include $3], ac_cv_type_$1=yes, ac_cv_type_$1=no)])dnl AC_MSG_RESULT($ac_cv_type_$1) if test $ac_cv_type_$1 = no; then - AC_DEFINE($1, $2) + AC_DEFINE($1, $2, [Define this to what the type $1 should be.]) fi ]) diff --git a/cf/check-var.m4 b/cf/check-var.m4 index 1cae8a3eb..96b9e484f 100644 --- a/cf/check-var.m4 +++ b/cf/check-var.m4 @@ -9,17 +9,12 @@ int foo() { return $2; }], [foo()], ac_cv_var_$2=yes, ac_cv_var_$2=no) ]) -eval "ac_tr_var=[HAVE_]translit($2,[a-z],[A-Z])" - define([foo], [HAVE_]translit($2, [a-z], [A-Z])) -: << END -@@@syms="$syms foo"@@@ -END -undefine([foo]) AC_MSG_RESULT(`eval echo \\$ac_cv_var_$2`) if test `eval echo \\$ac_cv_var_$2` = yes; then - AC_DEFINE_UNQUOTED($ac_tr_var) + AC_DEFINE_UNQUOTED(foo, 1, [define if you have $2]) AC_CHECK_DECLARATION([$1],[$2]) fi +undefine([foo]) ]) diff --git a/cf/have-struct-field.m4 b/cf/have-struct-field.m4 index 93651adb5..87acc1ec6 100644 --- a/cf/have-struct-field.m4 +++ b/cf/have-struct-field.m4 @@ -1,30 +1,18 @@ dnl $Id$ dnl +dnl check for fields in a structure dnl -dnl Check if a particular struct has a particular field -dnl +dnl AC_HAVE_STRUCT_FIELD(struct, field, headers) -dnl AC_HAVE_STRUCT_FIELD(includes, struct, type, field) AC_DEFUN(AC_HAVE_STRUCT_FIELD, [ -AC_MSG_CHECKING([if $2 has a field $4]) -AC_CACHE_VAL(ac_cv_struct_$2_$4, [ -AC_TRY_COMPILE([$1], -[struct $2 foo; $3 bar = foo.$4; ], -eval "ac_cv_struct_$2_$4=yes", -eval "ac_cv_struct_$2_$4=no") -]) -changequote(, )dnl -eval "ac_tr_var=HAVE_STRUCT_[]upcase($2)_[]upcase($4)" -changequote([, ])dnl - -define([foo], [[HAVE_STRUCT_]translit($2, [a-z], [A-Z])[_]translit($4, [a-z], [A-Z])]) -: << END -@@@syms="$syms foo"@@@ -END -undefine([foo]) - -AC_MSG_RESULT($ac_cv_struct_$2_$4) -if eval "test \"\$ac_cv_struct_$2_$4\" = yes"; then - AC_DEFINE_UNQUOTED($ac_tr_var) +AC_CACHE_CHECK([for $2 in $1], ac_cv_type_$1_$2,[ +AC_TRY_COMPILE([$3],[$1 x; x.$2;], +ac_cv_type_$1_$2=yes, +ac_cv_type_$1_$2=no)]) +if test "$ac_cv_type_$1_$2" = yes; then + define(foo, [HAVE_STRUCT_]translit($1_$2, [a-z ], [A-Z_])) + AC_DEFINE(foo, 1, [Define if $1 has field $2.]) + undefine(foo) fi +AC_MSG_RESULT($ac_cv_type_$1_$2) ]) diff --git a/cf/krb-struct-spwd.m4 b/cf/krb-struct-spwd.m4 index 135a80078..c088129eb 100644 --- a/cf/krb-struct-spwd.m4 +++ b/cf/krb-struct-spwd.m4 @@ -17,6 +17,6 @@ ac_cv_struct_spwd=no) AC_MSG_RESULT($ac_cv_struct_spwd) if test "$ac_cv_struct_spwd" = "yes"; then - AC_DEFINE(HAVE_STRUCT_SPWD) + AC_DEFINE(HAVE_STRUCT_SPWD, 1, [define if you have struct spwd]) fi ]) diff --git a/cf/krb-struct-winsize.m4 b/cf/krb-struct-winsize.m4 index c0520a4af..8ae063881 100644 --- a/cf/krb-struct-winsize.m4 +++ b/cf/krb-struct-winsize.m4 @@ -17,9 +17,11 @@ $i, ac_cv_struct_winsize=yes; break)dnl done ]) if test "$ac_cv_struct_winsize" = "yes"; then - AC_DEFINE(HAVE_STRUCT_WINSIZE, 1)dnl + AC_DEFINE(HAVE_STRUCT_WINSIZE, 1, [define if struct winsize is declared in sys/termios.h]) fi AC_MSG_RESULT($ac_cv_struct_winsize) -AC_EGREP_HEADER(ws_xpixel, termios.h, AC_DEFINE(HAVE_WS_XPIXEL)) -AC_EGREP_HEADER(ws_ypixel, termios.h, AC_DEFINE(HAVE_WS_YPIXEL)) +AC_EGREP_HEADER(ws_xpixel, termios.h, + AC_DEFINE(HAVE_WS_XPIXEL, 1, [define if struct winsize has ws_xpixel])) +AC_EGREP_HEADER(ws_ypixel, termios.h, + AC_DEFINE(HAVE_WS_YPIXEL, 1, [define if struct winsize has ws_ypixel])) ]) diff --git a/cf/need-declaration.m4 b/cf/need-declaration.m4 deleted file mode 100644 index 7dc5feb34..000000000 --- a/cf/need-declaration.m4 +++ /dev/null @@ -1,30 +0,0 @@ -dnl $Id$ -dnl -dnl -dnl Check if we need the declaration of a variable -dnl - -AC_DEFUN(AC_NEED_DECLARATION, [ -AC_MSG_CHECKING([if $3 needs a declaration]) -AC_CACHE_VAL(ac_cv_var_$3_declaration, [ -AC_TRY_COMPILE([$1], -[$2 foo = ($2)$3; ], -eval "ac_cv_var_$3_declaration=no", -eval "ac_cv_var_$3_declaration=yes") -]) - -changequote(, )dnl -eval "ac_tr_var=NEED_[]upcase($3)[]_DECLARATION" -changequote([, ])dnl - -define([foo], [NEED_]translit($3, [a-z], [A-Z])[_DECLARATION]) -: << END -@@@syms="$syms foo"@@@ -END -undefine([foo]) - -AC_MSG_RESULT($ac_cv_var_$3_declaration) -if eval "test \"\$ac_cv_var_$3_declaration\" = yes"; then - AC_DEFINE_UNQUOTED($ac_tr_var) -fi -]) diff --git a/cf/need-proto.m4 b/cf/need-proto.m4 index c4c1022c7..09eed4092 100644 --- a/cf/need-proto.m4 +++ b/cf/need-proto.m4 @@ -7,6 +7,7 @@ dnl dnl AC_NEED_PROTO(includes, function) AC_DEFUN(AC_NEED_PROTO, [ +if test "$ac_cv_func_$2+set" != set -o "$ac_cv_func_$2" = yes; then AC_CACHE_CHECK([if $2 needs a prototype], ac_cv_func_$2_noproto, AC_TRY_COMPILE([$1], [struct foo { int foo; } xx; @@ -17,10 +18,8 @@ eval "ac_cv_func_$2_noproto=yes", eval "ac_cv_func_$2_noproto=no")) define([foo], [NEED_]translit($2, [a-z], [A-Z])[_PROTO]) if test "$ac_cv_func_$2_noproto" = yes; then - AC_DEFINE(foo) + AC_DEFINE(foo, 1, [define if the system is missing a prototype for $2()]) fi -: << END -@@@syms="$syms foo"@@@ -END undefine([foo]) +fi ]) diff --git a/cf/proto-compat.m4 b/cf/proto-compat.m4 index d1e025dec..b9e621795 100644 --- a/cf/proto-compat.m4 +++ b/cf/proto-compat.m4 @@ -15,10 +15,9 @@ eval "ac_cv_func_$2_proto_compat=yes", eval "ac_cv_func_$2_proto_compat=no")) define([foo], translit($2, [a-z], [A-Z])[_PROTO_COMPATIBLE]) if test "$ac_cv_func_$2_proto_compat" = yes; then - AC_DEFINE(foo) + AC_DEFINE(foo, 1, [define if prototype of openlog is compatible with + $3]) +) fi -: << END -@@@syms="$syms foo"@@@ -END undefine([foo]) ]) diff --git a/cf/test-package.m4 b/cf/test-package.m4 index 8fbee37d3..549c92fd7 100644 --- a/cf/test-package.m4 +++ b/cf/test-package.m4 @@ -28,10 +28,6 @@ fi] ) define([foo], translit($1, [a-z], [A-Z])) -: << END -@@@syms="$syms foo"@@@ -END - if test -n "$with_$1" -o -n "$5"; then dnl AC_DEFINE([foo]) if test -n "$with_$1" -a "$with_$1" != "yes"; then @@ -94,7 +90,7 @@ dnl Try to find lib fi if test -n "$$1_include" -o -n "$$1_lib"; then AC_MSG_RESULT([headers $$1_include, libraries $$1_lib]) - AC_DEFINE_UNQUOTED(foo) + AC_DEFINE_UNQUOTED(foo, 1, [Define if you have the $1 package]) if test "$with_$1" = "" -a "$5"; then with_$1="$5" fi diff --git a/cf/type-mode-t.m4 b/cf/type-mode-t.m4 deleted file mode 100644 index 096812c60..000000000 --- a/cf/type-mode-t.m4 +++ /dev/null @@ -1,17 +0,0 @@ -dnl $Id$ -dnl -dnl test for mode_t - -AC_DEFUN(AC_TYPE_MODE_T, -[AC_MSG_CHECKING(for mode_t) -AC_CACHE_VAL(ac_cv_type_mode_t, -AC_TRY_COMPILE( -[#include ], -[mode_t foo = 1;], -ac_cv_type_mode_t=yes, -ac_cv_type_mode_t=no)) -if test "$ac_cv_type_mode_t" = no; then - AC_DEFINE(mode_t, unsigned short)dnl -fi -AC_MSG_RESULT($ac_cv_type_mode_t) -]) diff --git a/cf/type-sig-atomic-t.m4 b/cf/type-sig-atomic-t.m4 deleted file mode 100644 index 30d22e7a4..000000000 --- a/cf/type-sig-atomic-t.m4 +++ /dev/null @@ -1,17 +0,0 @@ -dnl $Id$ -dnl -dnl test for sig_atomic_t - -AC_DEFUN(AC_TYPE_SIG_ATOMIC_T, -[AC_MSG_CHECKING(for sig_atomic_t) -AC_CACHE_VAL(ac_cv_type_sig_atomic_t, -AC_TRY_COMPILE( -[#include ], -[sig_atomic_t foo = 1;], -ac_cv_type_sig_atomic_t=yes, -ac_cv_type_sig_atomic_t=no)) -if test "$ac_cv_type_sig_atomic_t" = no; then - AC_DEFINE(sig_atomic_t, int)dnl -fi -AC_MSG_RESULT($ac_cv_type_sig_atomic_t) -]) diff --git a/configure.in b/configure.in index c68fb4243..9efeab05c 100644 --- a/configure.in +++ b/configure.in @@ -57,7 +57,6 @@ fi AC_TEST_PACKAGE(krb4,krb.h,libkrb.a,-lkrb,/usr/athena) if test "$with_krb4"; then - AC_DEFINE(KRB4, 1) LIB_krb4="$KRB4LIB -ldes" INCLUDE_krb4="$KRB4INCLUDE" EXTRA_LIB45=lib45.a @@ -254,12 +253,11 @@ dnl Checks for typedefs, structures, and compiler characteristics. AC_C_CONST AC_TYPE_OFF_T AC_TYPE_SIZE_T -AC_CHECK_TYPE_EXTRA(ssize_t, int, [#include -foo]) +AC_CHECK_TYPE_EXTRA(ssize_t, int, [#include ]) AC_TYPE_PID_T AC_TYPE_UID_T -AC_TYPE_MODE_T -AC_TYPE_SIG_ATOMIC_T +AC_CHECK_TYPE_EXTRA(mode_t, unsigned short, []) +AC_CHECK_TYPE_EXTRA(sig_atomic_t, int, [#include ]) AC_HEADER_TIME AC_STRUCT_TM @@ -432,24 +430,12 @@ AC_BROKEN(strcasecmp strncasecmp strdup strerror strftime strlwr strnlen) AC_BROKEN(strsep strtok_r strupr swab unsetenv verr verrx vsyslog) AC_BROKEN(vwarn vwarnx warn warnx writev) -if test "$ac_cv_func_gethostname" = "yes"; then -AC_NEED_PROTO([ -#include ], -gethostname) -fi +AC_NEED_PROTO([#include ], setenv) +AC_NEED_PROTO([#include ], unsetenv) +AC_NEED_PROTO([#include ], gethostname) +AC_NEED_PROTO([#include ], mkstemp) +AC_NEED_PROTO([#include ],getusershell) -if test "$ac_cv_func_mkstemp" = "yes"; then -AC_NEED_PROTO([ -#include ], -mkstemp) -fi - -AC_NEED_PROTO([ -#include -], -getusershell) - -if test "$ac_cv_func_inet_aton" = "yes"; then AC_NEED_PROTO([ #ifdef HAVE_SYS_TYPES_H #include @@ -464,7 +450,6 @@ AC_NEED_PROTO([ #include #endif], inet_aton) -fi AC_FIND_FUNC_NO_LIBS(crypt, crypt)dnl @@ -601,14 +586,15 @@ AC_CHECK_DECLARATION([#include ], environ) dnl dnl Check for fields in struct utmp dnl -AC_EGREP_HEADER(ut_user, utmp.h, AC_DEFINE(HAVE_UT_USER)) -AC_EGREP_HEADER(ut_host, utmp.h, AC_DEFINE(HAVE_UT_HOST)) -AC_EGREP_HEADER(ut_addr, utmp.h, AC_DEFINE(HAVE_UT_ADDR)) -AC_EGREP_HEADER(ut_type, utmp.h, AC_DEFINE(HAVE_UT_TYPE)) -AC_EGREP_HEADER(ut_pid, utmp.h, AC_DEFINE(HAVE_UT_PID)) -AC_EGREP_HEADER(ut_id, utmp.h, AC_DEFINE(HAVE_UT_ID)) -AC_EGREP_HEADER(ut_syslen, utmpx.h, AC_DEFINE(HAVE_UT_SYSLEN)) -AC_EGREP_HEADER(ut_exit, utmpx.h, AC_DEFINE(HAVE_UT_EXIT)) + +AC_HAVE_STRUCT_FIELD(utmp, ut_addr, [#include ]) +AC_HAVE_STRUCT_FIELD(utmp, ut_host, [#include ]) +AC_HAVE_STRUCT_FIELD(utmp, ut_id, [#include ]) +AC_HAVE_STRUCT_FIELD(utmp, ut_pid, [#include ]) +AC_HAVE_STRUCT_FIELD(utmp, ut_type, [#include ]) +AC_HAVE_STRUCT_FIELD(utmp, ut_user, [#include ]) +AC_HAVE_STRUCT_FIELD(utmpx, ut_exit, [#include ]) +AC_HAVE_STRUCT_FIELD(utmpx, ut_syslen, [#include ]) AC_KRB_IPV6 @@ -628,7 +614,8 @@ dnl dnl Check for sa_len in struct sockaddr dnl -AC_KRB_STRUCT_SOCKADDR_SA_LEN +AC_HAVE_STRUCT_FIELD(struct sockaddr, sa_len, [#include +#include ]) AC_GROK_TYPES(int8_t int16_t int32_t int64_t) @@ -647,7 +634,7 @@ if test "$ac_cv_func_el_init" = yes ; then ac_cv_func_el_init_four=yes, ac_cv_func_el_init_four=no)]) if test "$ac_cv_func_el_init_four" = yes; then - AC_DEFINE(HAVE_FOUR_VALUED_EL_INIT, 1) + AC_DEFINE(HAVE_FOUR_VALUED_EL_INIT, 1, [Define if el_init takes four arguments.]) fi fi AC_FIND_FUNC_NO_LIBS(readline, edit readline)