From: Akim Demaille Date: Tue, 1 Aug 2000 11:10:16 +0000 (+0000) Subject: * acfunctions.m4 (AC_FUNC_ONSTACK): New macro, from X-Git-Tag: autoconf-2.50~682 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=20a739fc2ec253ac8e30a2386b235a8b2bf71fd1;p=thirdparty%2Fautoconf.git * acfunctions.m4 (AC_FUNC_ONSTACK): New macro, from Automake. * doc/autoconf.texi (Particular Functions): Adjust. --- diff --git a/ChangeLog b/ChangeLog index 15e3af8ad..7587eb3eb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2000-08-01 Akim Demaille + + * acfunctions.m4 (AC_FUNC_ONSTACK): New macro, from + Automake. + * doc/autoconf.texi (Particular Functions): Adjust. + 2000-08-01 Akim Demaille * acfunctions.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from diff --git a/NEWS b/NEWS index 5c8d2f21c..752fb2a6f 100644 --- a/NEWS +++ b/NEWS @@ -190,7 +190,7 @@ test cases in this new frame work. ** Specific Macros - AC_FUNC_CHOWN, AC_FUNC_MALLOC, AC_FUNC_STRERROR_R, AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, AC_FUNC_STAT, AC_FUNC_LSTAT, - AC_FUNC_ERROR_AT_LINE. + AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK. New. - AC_FUNC_GETGROUPS diff --git a/acfunctions b/acfunctions index c0a3b608b..795f1b42e 100644 --- a/acfunctions +++ b/acfunctions @@ -24,6 +24,7 @@ memset AC_HEADER_STDC minor AC_HEADER_MAJOR mktime AC_FUNC_MKTIME mmap AC_FUNC_MMAP +obstack_init AC_FUNC_OBSTACK rindex AC_HEADER_STDC setpgrp AC_FUNC_SETPGRP setvbuf AC_FUNC_SETVBUF_REVERSED diff --git a/acfunctions.m4 b/acfunctions.m4 index d6ac63ec5..fe8e77629 100644 --- a/acfunctions.m4 +++ b/acfunctions.m4 @@ -1066,6 +1066,28 @@ fi AU_ALIAS([AC_MMAP], [AC_FUNC_MMAP]) +# AC_FUNC_OBSTACK +# --------------- +# Ensure obstack support. Yeah, this is not exactly a `FUNC' check. +AC_DEFUN([AC_FUNC_OBSTACK], +[AC_CACHE_CHECK([for obstacks], ac_cv_func_obstack, + [AC_TRY_LINK([@%:@include "obstack.h"], + [struct obstack *mem;obstack_free(mem,(char *) 0)], + ac_cv_func_obstack=yes, + ac_cv_func_obstack=no)]) +if test $ac_cv_func_obstack = yes; then + AC_DEFINE(HAVE_OBSTACK, 1, [Define if libc includes obstacks.]) +else + AC_LIBOBJ(obstack) +fi +])# AC_FUNC_OBSTACK + + +# AU::AM_FUNC_OBSTACK +# ------------------- +AU_ALIAS([AM_FUNC_OBSTACK], [AC_FUNC_OBSTACK]) + + # AC_FUNC_SELECT_ARGTYPES # ----------------------- # Determine the correct type to be passed to each of the `select' diff --git a/acidentifiers b/acidentifiers index e667b2907..5bd9f0bc2 100644 --- a/acidentifiers +++ b/acidentifiers @@ -10,6 +10,7 @@ sys_siglist AC_DECL_SYS_SIGLIST # Types. gid_t AC_TYPE_UID_T mode_t AC_TYPE_MODE_T +obstack AC_FUNC_OBSTACK off_t AC_TYPE_OFF_T pid_t AC_TYPE_PID_T size_t AC_TYPE_SIZE_T diff --git a/doc/autoconf.texi b/doc/autoconf.texi index 6bbb0b9ca..b7b580c6e 100644 --- a/doc/autoconf.texi +++ b/doc/autoconf.texi @@ -3076,6 +3076,14 @@ If the @code{mmap} function exists and works correctly, define memory. @end defmac +@defmac AC_FUNC_OBSTACK +@maindex FUNC_OBSTACK +@cvindex HAVE_OBSTACK +@cindex obstack +If the obstacks are found, define @code{HAVE_OBSTACK}, else require an +@code{AC_LIBOBJ} replacement for @samp{obstack}. +@end defmac + @defmac AC_FUNC_SELECT_ARGTYPES @maindex FUNC_SELECT_ARGTYPES @cvindex SELECT_TYPE_ARG1 diff --git a/lib/autoconf/functions.m4 b/lib/autoconf/functions.m4 index d6ac63ec5..fe8e77629 100644 --- a/lib/autoconf/functions.m4 +++ b/lib/autoconf/functions.m4 @@ -1066,6 +1066,28 @@ fi AU_ALIAS([AC_MMAP], [AC_FUNC_MMAP]) +# AC_FUNC_OBSTACK +# --------------- +# Ensure obstack support. Yeah, this is not exactly a `FUNC' check. +AC_DEFUN([AC_FUNC_OBSTACK], +[AC_CACHE_CHECK([for obstacks], ac_cv_func_obstack, + [AC_TRY_LINK([@%:@include "obstack.h"], + [struct obstack *mem;obstack_free(mem,(char *) 0)], + ac_cv_func_obstack=yes, + ac_cv_func_obstack=no)]) +if test $ac_cv_func_obstack = yes; then + AC_DEFINE(HAVE_OBSTACK, 1, [Define if libc includes obstacks.]) +else + AC_LIBOBJ(obstack) +fi +])# AC_FUNC_OBSTACK + + +# AU::AM_FUNC_OBSTACK +# ------------------- +AU_ALIAS([AM_FUNC_OBSTACK], [AC_FUNC_OBSTACK]) + + # AC_FUNC_SELECT_ARGTYPES # ----------------------- # Determine the correct type to be passed to each of the `select' diff --git a/lib/autoscan/functions b/lib/autoscan/functions index c0a3b608b..795f1b42e 100644 --- a/lib/autoscan/functions +++ b/lib/autoscan/functions @@ -24,6 +24,7 @@ memset AC_HEADER_STDC minor AC_HEADER_MAJOR mktime AC_FUNC_MKTIME mmap AC_FUNC_MMAP +obstack_init AC_FUNC_OBSTACK rindex AC_HEADER_STDC setpgrp AC_FUNC_SETPGRP setvbuf AC_FUNC_SETVBUF_REVERSED diff --git a/lib/autoscan/identifiers b/lib/autoscan/identifiers index e667b2907..5bd9f0bc2 100644 --- a/lib/autoscan/identifiers +++ b/lib/autoscan/identifiers @@ -10,6 +10,7 @@ sys_siglist AC_DECL_SYS_SIGLIST # Types. gid_t AC_TYPE_UID_T mode_t AC_TYPE_MODE_T +obstack AC_FUNC_OBSTACK off_t AC_TYPE_OFF_T pid_t AC_TYPE_PID_T size_t AC_TYPE_SIZE_T