- AC_PROG_SED|MKDIR_P can be missing
- Avoid nosub_top_builddir being empty
- aclocal wants space after -I
AC_SUBST(WFLAGS)
AC_PROG_INSTALL
-AC_PROG_MKDIR_P
AC_PROG_LN_S
-AC_PROG_SED
AC_PROG_EGREP
AC_PROG_AWK
+dnl AC_PROG_MKDIR_P and AC_PROG_SED are from newer autotools
+m4_ifdef([AC_PROG_MKDIR_P], [
+ AC_PROG_MKDIR_P
+], [
+ MKDIR_P="mkdir -p"
+ AC_SUBST(MKDIR_P)
+])
+m4_ifdef([AC_PROG_SED], [
+ AC_PROG_SED
+], [
+ SED="sed"
+ AC_SUBST(SED)
+])
+
AC_CHECK_TOOL([STRIP], [strip])
AC_CHECK_TOOL([RANLIB], [ranlib], [true])
AC_CHECK_TOOL([AR], [ar])
# autoconf values for top dir
abs_top_srcdir ?= $(CURDIR)
abs_top_builddir ?= $(CURDIR)
-nosub_top_builddir ?= .
-nosub_top_srcdir ?= .
+
+# make sure nosub vals are not empty
+ifeq ($(nosub_top_builddir),)
+nosub_top_builddir = .
+endif
+ifeq ($(nosub_top_srcdir),)
+nosub_top_srcdir = .
+endif
##
## Variables for user makefiles
grep -qE 'LT_INIT|LIBTOOL' configure.ac || rm -f ltmain.sh
# Now generate configure & config.h
-aclocal -I${USUAL_DIR}/m4
+aclocal -I ${USUAL_DIR}/m4
autoheader
autoconf