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

Diff of /m4/config/m4-obstack.m4

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

revision 1.1 by gary, Thu Sep 4 16:04:09 2003 UTC revision 1.2 by gary, Fri Sep 5 18:32:26 2003 UTC
# Line 29  AC_DEFUN([M4_AC_FUNC_OBSTACK], Line 29  AC_DEFUN([M4_AC_FUNC_OBSTACK],
29  [AC_PREREQ(2.56)dnl We use the new compiler based header checking in 2.56  [AC_PREREQ(2.56)dnl We use the new compiler based header checking in 2.56
30  AC_REQUIRE([gl_OBSTACK])  AC_REQUIRE([gl_OBSTACK])
31  m4_pattern_allow([^m4_cv_func_obstack$])dnl  m4_pattern_allow([^m4_cv_func_obstack$])dnl
 m4_pattern_allow([^m4_obstack_c$])dnl  
 m4_pattern_allow([^m4_obstack_h$])dnl  
32    
33  AC_CHECK_HEADERS(obstack.h, [], [], [AC_INCLUDES_DEFAULT])  AC_CHECK_HEADERS(obstack.h, [], [], [AC_INCLUDES_DEFAULT])
34    
# Line 49  else Line 47  else
47  fi  fi
48    
49  OBSTACK_H=  OBSTACK_H=
 OBSTACK_C=  
 m4_obstack_h=m4/obstack.h  
 m4_obstack_c=m4/obstack.c  
 rm -f $m4_obstack_c $m4_obstack_h  
50  if test $m4_cv_func_obstack = yes; then  if test $m4_cv_func_obstack = yes; then
51    
52    # The system provides obstack.h, `#include <obstack.h>' will work    # The system provides obstack.h, `#include <obstack.h>' will work
# Line 68  else Line 62  else
62    # it to m4/obstack.h at Make time (to substitute the missing system    # it to m4/obstack.h at Make time (to substitute the missing system
63    # supplied version).  Hence, `#include <m4/obstack.h>' will work.    # supplied version).  Hence, `#include <m4/obstack.h>' will work.
64    INCLUDE_OBSTACK_H='#include <m4/obstack.h>'    INCLUDE_OBSTACK_H='#include <m4/obstack.h>'
65      OBSTACK_H=obstack.h
   if test x"$ac_cv_header_obstack_h" != xyes; then  
     OBSTACK_H=obstack.h  
     OBSTACK_C=obstack.c  
   fi  
66    
67    # In the absence of a system implementation, we must compile our own:    # In the absence of a system implementation, we must compile our own:
68    AC_LIBOBJ(obstack)    AC_LIBOBJ(obstack)
69    
70  fi  fi
71  AC_SUBST(OBSTACK_H)  AC_SUBST(OBSTACK_H)
 AC_SUBST(OBSTACK_C)  
72  AC_SUBST(INCLUDE_OBSTACK_H)  AC_SUBST(INCLUDE_OBSTACK_H)
73  ])# M4_AC_FUNC_OBSTACK  ])# M4_AC_FUNC_OBSTACK

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

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