diff --git a/configure.in b/configure.in index ff970ce50..b0b7f27e9 100644 --- a/configure.in +++ b/configure.in @@ -40,7 +40,7 @@ AM_PROG_LIBTOOL if test "$GCC" = "yes"; then # -Wcast-align doesn't work well on alpha osf/1 - WFLAGS="-Wall -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast -Wmissing-declarations -Wnested-externs" + WFLAGS="-Wall -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast -Wmissing-declarations -Wnested-externs -O" WFLAGS_NOUNUSED="-Wno-unused" fi AC_SUBST(WFLAGS) @@ -423,6 +423,40 @@ 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 + +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 +#endif +#ifdef HAVE_SYS_SOCKET_H +#include +#endif +#ifdef HAVE_NETINET_IN_H +#include +#endif +#ifdef HAVE_ARPA_INET_H +#include +#endif], +inet_aton) +fi + AC_FIND_FUNC_NO_LIBS(crypt, crypt)dnl AC_CACHE_CHECK(if realloc if broken, ac_cv_func_realloc_broken, [