--- configure.in.orig	Sat Jul 22 23:45:32 2006
+++ configure.in	Thu Jul 27 10:28:00 2006
@@ -16,7 +16,7 @@
 
 dnl Checks for header files.
 AC_HEADER_STDC
-AC_CHECK_HEADERS(fcntl.h malloc.h unistd.h)
+AC_CHECK_HEADERS(fcntl.h malloc.h unistd.h alloca.h)
 
 dnl Checks for typedefs, structures, and compiler characteristics.
 AC_C_CONST
--- sv_util/vasnprintf.c.orig	Sat Jul 22 23:44:15 2006
+++ sv_util/vasnprintf.c	Thu Jul 27 10:28:29 2006
@@ -25,7 +25,7 @@
 #ifdef HAVE_CONFIG_H
 # include <config.h>
 #endif
-#ifndef IN_LIBINTL
+#if !defined(IN_LIBINTL) && defined(HAVE_ALLOCA_H)
 # include <alloca.h>
 #endif
 
