3-argument form of AC_DEFINE.
* m4/regex.m4 (AM_WITH_REGEX): Use 3-argument form of AC_DEFINE.
* m4/ptrdiff.m4 (AM_TYPE_PTRDIFF_T): Use 3-argument form of
AC_DEFINE.
* m4/protos.m4 (AM_C_PROTOTYPES):Use 3-argument form of
AC_DEFINE.
* m4/obstack.m4 (AM_FUNC_OBSTACK): Use 3-argument form of
AC_DEFINE.
* m4/init.m4 (AM_INIT_AUTOMAKE): Use 3-argument form of
AC_DEFINE.
* m4/dmalloc.m4 (AM_WITH_DMALLOC): Use 3-argument form of
AC_DEFINE.
ftp://ftp.letters.com/src/dmalloc/dmalloc.tar.gz],
[if test "$withval" = yes; then
AC_MSG_RESULT(yes)
- AC_DEFINE(WITH_DMALLOC)
+ AC_DEFINE(WITH_DMALLOC,1,
+ [Define if using the dmalloc debugging malloc package])
LIBS="$LIBS -ldmalloc"
LDFLAGS="$LDFLAGS -g"
else
AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
fi
ifelse([$3],,
-AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE")
-AC_DEFINE_UNQUOTED(VERSION, "$VERSION"))
+AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
+AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package]))
AC_REQUIRE([AM_SANITY_CHECK])
AC_REQUIRE([AC_ARG_PROGRAM])
dnl FIXME This is truly gross.
am_cv_func_obstack=yes,
am_cv_func_obstack=no)])
if test $am_cv_func_obstack = yes; then
- AC_DEFINE(HAVE_OBSTACK)
+ AC_DEFINE(HAVE_OBSTACK,1,[Define if libc includes obstacks])
else
LIBOBJS="$LIBOBJS obstack.o"
fi
AC_MSG_CHECKING([for function prototypes])
if test "$am_cv_prog_cc_stdc" != no; then
AC_MSG_RESULT(yes)
- AC_DEFINE(PROTOTYPES)
+ AC_DEFINE(PROTOTYPES,1,[Define if compiler has function prototypes])
U= ANSI2KNR=
else
AC_MSG_RESULT(no)
[AC_TRY_COMPILE([#include <stddef.h>], [ptrdiff_t p],
am_cv_type_ptrdiff_t=yes, am_cv_type_ptrdiff_t=no)])
if test $am_cv_type_ptrdiff_t = yes; then
- AC_DEFINE(HAVE_PTRDIFF_T)
+ AC_DEFINE(HAVE_PTRDIFF_T,1,[Define if system has ptrdiff_t type])
fi
])
[am_with_regex=1])
if test -n "$am_with_regex"; then
AC_MSG_RESULT(regex)
- AC_DEFINE(WITH_REGEX)
+ AC_DEFINE(WITH_REGEX,1,[Define if using GNU regex])
AC_CACHE_CHECK([for GNU regex in libc], am_cv_gnu_regex,
AC_TRY_LINK([], [extern int re_max_failures; re_max_failures = 1],
am_cv_gnu_regex=yes, am_cv_gnu_regex=no))
fi
])
if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
- AC_DEFINE(GWINSZ_IN_SYS_IOCTL)
+ AC_DEFINE(GWINSZ_IN_SYS_IOCTL,1,
+ [Define if TIOCGWINSZ requires sys/ioctl.h])
fi
])