/[m4]/m4/acm4/m4-obstack.m4
ViewVC logotype

Diff of /m4/acm4/m4-obstack.m4

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2 by gary, Thu Sep 23 16:29:33 2004 UTC revision 1.3 by gary, Fri Dec 24 23:07:05 2004 UTC
# Line 19  Line 19 
19  # the Free Software Foundation, Inc., 59 Temple Place - Suite 330,  # the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
20  # Boston, MA 02111-1307, USA.  # Boston, MA 02111-1307, USA.
21    
22  # serial 8  # serial 9
23    
24  # m4_OBSTACK  # m4_OBSTACK
25  # ----------  # ----------
26  # Use the libc supplied version of obstacks if available.  # Use the libc supplied version of obstacks if available.
27  AC_DEFUN([m4_OBSTACK],  AC_DEFUN([m4_OBSTACK],
28  [AC_PREREQ(2.56)dnl We use the new compiler based header checking in 2.56  [AC_PREREQ(2.56)dnl We use the compiler based header checking in 2.56
29  AC_BEFORE([gl_OBSTACK], [m4_OBSTACK])  AC_BEFORE([gl_OBSTACK], [m4_OBSTACK])
30  AC_ARG_WITH([included-obstack],  AC_ARG_WITH([included-obstack],
31      [AC_HELP_STRING([--with-included-obstack],      [AC_HELP_STRING([--with-included-obstack],
# Line 39  fi Line 39  fi
39    
40  OBSTACK_H=  OBSTACK_H=
41  if test $ac_cv_func_obstack = yes; then  if test $ac_cv_func_obstack = yes; then
   # The system provides obstack.h, `#include <obstack.h>' will work  
42    INCLUDE_OBSTACK_H='#include <obstack.h>'    INCLUDE_OBSTACK_H='#include <obstack.h>'
43  else  else
44    # The system does not provide obstack.h, or the user has specified    INCLUDE_OBSTACK_H='#include <gnu/obstack.h>'
   # to build without it.  Unfortunately we can't leave an obstack.h  
   # file around anywhere in the include path if the system also  
   # provides an implementation: So we ship gnulib/lib/obstack.h, and link  
   # it to m4/obstack.h at Make time (to substitute the missing system  
   # supplied version).  Hence, `#include <m4/obstack.h>' will work.  
   INCLUDE_OBSTACK_H='#include <m4/obstack.h>'  
45    OBSTACK_H=obstack.h    OBSTACK_H=obstack.h
46  fi  fi
47  AC_SUBST(OBSTACK_H)  AC_SUBST(OBSTACK_H)

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26