From 684c0a895deb8aee17e8f384c12624b5d665760d Mon Sep 17 00:00:00 2001
From: Sergey Poznyakoff <gray@gnu.org.ua>
Date: Fri, 14 Sep 2001 12:05:55 +0000
Subject: [PATCH] Check for presense of GNU obstack functions.

---
 configure.in |  9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/configure.in b/configure.in
index a26e34c..db95e92 100644
--- a/configure.in
+++ b/configure.in
@@ -78,7 +78,7 @@ AC_HEADER_DIRENT
 AM_C_PROTOTYPES
 AC_CHECK_HEADERS(argp.h errno.h fcntl.h inttypes.h libgen.h limits.h malloc.h \
  paths.h shadow.h stdarg.h stdio.h stdlib.h string.h strings.h sys/file.h \
- syslog.h termios.h termio.h sgtty.h unistd.h )
+ syslog.h termios.h termio.h sgtty.h unistd.h obstack.h termcap.h)
 
 dnl Checks for typedefs, structures, and compiler characteristics.
 AC_C_CONST
@@ -129,6 +129,10 @@ if test x"$ac_cv_func_argp_parse" != xyes; then
 	AC_SUBST(ARGPINCS)
 fi
 
+AC_CHECK_FUNCS(_obstack_begin,
+               [AC_DEFINE(HAVE_OBSTACK)],
+               [LIBOBJS="$LIBOBJS obstack.o"])
+
 dnl check if mysql support was added
 AC_SUBST(BUILD_LIBMYSQL)
 AC_SUBST(MYSQLLIBS)
@@ -246,4 +250,5 @@ AC_OUTPUT(Makefile mailutils.spec include/Makefile include/mailutils/Makefile
  m4/Makefile doc/Makefile argp/Makefile lib/Makefile lib/posix/Makefile
  mailbox/Makefile imap4d/Makefile mailbox/include/Makefile from/Makefile
  mail/Makefile pop3d/Makefile frm/Makefile sieve/Makefile messages/Makefile
- scripts/Makefile libmu_scm/Makefile guimb/Makefile guimb/scm/Makefile MySql/Makefile)
+ scripts/Makefile libmu_scm/Makefile guimb/Makefile guimb/scm/Makefile
+ MySql/Makefile)
--
libgit2 0.24.0