diff --git a/configure.in b/configure.in index b0d035e01..8150bff71 100644 --- a/configure.in +++ b/configure.in @@ -325,8 +325,9 @@ AC_CHECK_FUNCS(sethostent gethostent endhostent dnl inet_pton inet_ntop) AC_MSG_CHECKING(for __libc_stack_end) -AC_TRY_LINK([extern char *__libc_stack_end;], - [char *p = __libc_stack_end;], +AC_TRY_LINK([#include +extern char *__libc_stack_end;], + [printf("%p", (char*) __libc_stack_end);], have_libc_stack_end=yes, have_libc_stack_end=no) AC_MSG_RESULT($have_libc_stack_end) @@ -474,7 +475,10 @@ AC_REPLACE_FUNCS(inet_aton putenv strerror memmove mkstemp) # explicitly to LIBOBJS to make sure that it is translated to # `alloca.lo' for libtool later on. This can and should be done more cleanly. AC_FUNC_ALLOCA -if test "$ALLOCA" = "alloca.o"; then AC_LIBOBJ([alloca]); fi +if test "$ALLOCA" = "alloca.o" +then + AC_LIBOBJ([alloca]) +fi AC_CHECK_MEMBERS([struct stat.st_rdev]) AC_CHECK_MEMBERS([struct stat.st_blksize])