include $(top_srcdir)/Makefile-head.am
AUTOMAKE_OPTIONS=gnu
+ACLOCAL_AMFLAGS=-I macros
SUBDIRS=macros src doc po
## to automatically rebuild aclocal.m4 if any of the macros in
## `macros/' change
AC_INIT(src/libcaptive/Makefile-libcaptive.am)
dnl 2.53 for AM_GLIB_GNU_GETTEXT:
AC_PREREQ(2.53)
+dnl Not yet present in: Red Hat autoconf-2.57-3
+dnl AC_CONFIG_MACRO_DIR(macros)
AM_INIT_AUTOMAKE(captive,1.0.3cvs)
AM_CONFIG_HEADER(config.h)
AM_MAINTAINER_MODE
have_libntfs_includes=true
AC_CHECK_HEADERS
# '#include "config.h"' may be required by <ntfs/*> include files.
- test -r config.h || touch config.h
+ # "config.h" may be already present while not yet being compilable.
+ rm -f config.h-ntfs_save
+ mv -f config.h config.h-ntfs_save 2>/dev/null
+ touch config.h
captive_save_CPPFLAGS="$CPPFLAGS"
CPPFLAGS="$CPPFLAGS -I." # for "config.h" touched above
AC_CHECK_HEADERS(ntfs/types.h ntfs/volume.h,,[ have_libntfs_includes=false ])
CPPFLAGS="$captive_save_CPPFLAGS"
+ rm -f config.h
+ mv -f config.h-ntfs_save config.h 2>/dev/null
if $have_libntfs_includes;then
captive_save_CPPFLAGS="$CPPFLAGS"