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 |
|
|
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 |
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 |