From: Gilles Detillieux To: htdig@htdig.org Subject: [htdig] Patch This patch should fix PR#545, to test for presence of alloca.h --- htdig-3.1.2.bak/configure.in Wed Apr 21 21:47:53 1999 +++ htdig-3.1.2/configure.in Wed Aug 4 16:17:57 1999 @@ -13,7 +13,7 @@ # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software -# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # AC_INIT(htcommon/DocumentDB.cc) @@ -79,7 +79,7 @@ dnl More header checks--here use C++ AC_LANG_CPLUSPLUS -AC_CHECK_HEADERS(fcntl.h limits.h malloc.h sys/file.h sys/ioctl.h sys/time.h unistd.h getopt.h strings.h zlib.h) +AC_CHECK_HEADERS(fcntl.h limits.h malloc.h sys/file.h sys/ioctl.h sys/time.h unistd.h getopt.h strings.h zlib.h alloca.h) AC_CHECK_HEADER(fstream.h,nofstream=0,nofstream=1) if test "x$nofstream" = "x1" ; then AC_MSG_ERROR([To compile ht://Dig, you will need a C++ library. Try installing libstdc++.]) --- htdig-3.1.2.bak/configure Wed Apr 21 21:47:53 1999 +++ htdig-3.1.2/configure Wed Aug 4 16:17:57 1999 @@ -2010,7 +2010,7 @@ CXXCPP="$ac_cv_prog_CXXCPP" echo "$ac_t""$CXXCPP" 1>&6 -for ac_hdr in fcntl.h limits.h malloc.h sys/file.h sys/ioctl.h sys/time.h unistd.h getopt.h strings.h zlib.h +for ac_hdr in fcntl.h limits.h malloc.h sys/file.h sys/ioctl.h sys/time.h unistd.h getopt.h strings.h zlib.h alloca.h do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 --- htdig-3.1.2.bak/include/htconfig.h.in Wed Apr 21 21:47:58 1999 +++ htdig-3.1.2/include/htconfig.h.in Wed Aug 4 16:30:10 1999 @@ -55,6 +55,9 @@ /* Define if you have the header file. */ #undef HAVE_ZLIB_H + +/* Define if you have the header file. */ +#undef HAVE_ALLOCA_H /* Define if you have the header file. */ #undef HAVE_SYS_FILE_H --- htdig-3.1.2.bak/htlib/regex.c Wed Apr 21 21:47:58 1999 +++ htdig-3.1.2/htlib/regex.c Wed Aug 4 16:20:48 1999 @@ -27,6 +27,7 @@ #undef _GNU_SOURCE #define _GNU_SOURCE +#include #ifdef HAVE_CONFIG_H # include #endif