X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/76d3a838799e8abde2e7ac41fc59ef8785c29a6f..66ab14c717d6954a7fa5986c02b685271c6b5b64:/unix/configure.ac diff --git a/unix/configure.ac b/unix/configure.ac index 91563562..699e6ef8 100644 --- a/unix/configure.ac +++ b/unix/configure.ac @@ -14,12 +14,16 @@ if test "X$GCC" = Xyes; then CFLAGS="$CFLAGS -Wall -Werror" fi +AC_CHECK_HEADERS([utmpx.h],,,[ +#include +#include ]) + AM_PATH_GTK([1.2.0], [all_targets="all-cli all-gtk"], [all_targets="all-cli"]) AC_SUBST([all_targets]) AC_SEARCH_LIBS([socket], [xnet]) -AC_CHECK_FUNCS([getaddrinfo ptsname pututline setresuid strsignal]) +AC_CHECK_FUNCS([getaddrinfo ptsname setresuid strsignal]) AC_OUTPUT @@ -35,7 +39,7 @@ AH_BOTTOM([ #ifndef HAVE_STRSIGNAL # define HAVE_NO_STRSIGNAL #endif -#ifndef HAVE_PUTUTLINE +#ifndef HAVE_UTMPX_H # define OMIT_UTMP #endif #ifndef HAVE_PTSNAME