|
|
6b4941 |
AC_INIT([mandoc], [1.14.6])
|
|
|
6b4941 |
AC_CONFIG_AUX_DIR([build-aux])
|
|
|
6b4941 |
AM_INIT_AUTOMAKE([foreign])
|
|
|
6b4941 |
AH_TOP([#define _GNU_SOURCE])
|
|
|
6b4941 |
AH_BOTTOM([#include <extern_config.h>])
|
|
|
6b4941 |
AC_CONFIG_HEADERS([config.h])
|
|
|
6b4941 |
AM_PROG_AR
|
|
|
6b4941 |
AC_PROG_CC
|
|
|
6b4941 |
AC_PROG_RANLIB
|
|
|
6b4941 |
AC_PROG_LN_S
|
|
|
6b4941 |
|
|
|
6b4941 |
AC_CHECK_HEADER([endian.h], [AC_DEFINE([HAVE_ENDIAN], [1], [Define to 1 if you have the <endian.h> header file.])], [])
|
|
|
6b4941 |
AC_CHECK_HEADER([sys/endian.h], [AC_DEFINE([HAVE_SYS_ENDIAN], [1], [Define to 1 if you have the <sys/endian.h> header file.])], [])
|
|
|
6b4941 |
|
|
|
6b4941 |
have_EFTYPE=no
|
|
|
6b4941 |
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include <errno.h>
|
|
|
6b4941 |
],[
|
|
|
6b4941 |
#ifndef EFTYPE
|
|
|
6b4941 |
#error notfound
|
|
|
6b4941 |
#endif
|
|
|
6b4941 |
])], [have_EFTYPE=yes])
|
|
|
6b4941 |
|
|
|
6b4941 |
if test "x$have_EFTYPE" = "xno"; then
|
|
|
6b4941 |
AC_DEFINE([EFTYPE], [EINVAL], [Define EFTYPE to EINVAL if it does not exist.])
|
|
|
6b4941 |
fi
|
|
|
6b4941 |
|
|
|
6b4941 |
#
|
|
|
6b4941 |
# Thanks OpenBSD. Guarding each compat file with an include macro is too hard .....
|
|
|
6b4941 |
#
|
|
|
6b4941 |
have_err=no
|
|
|
6b4941 |
have_stringlist=no
|
|
|
6b4941 |
have_vasprintf=no
|
|
|
6b4941 |
have_isblank=no
|
|
|
6b4941 |
have_ohash=no
|
|
|
6b4941 |
have_recallocarray=no
|
|
|
6b4941 |
have_getline=no
|
|
|
6b4941 |
have_mkdtemp=no
|
|
|
6b4941 |
have_progname=no
|
|
|
6b4941 |
have_getsubopt=no
|
|
|
6b4941 |
have_mkstemps=no
|
|
|
6b4941 |
have_reallocarray=no
|
|
|
6b4941 |
have_strndup=no
|
|
|
6b4941 |
have_strlcat=no
|
|
|
6b4941 |
have_strlcpy=no
|
|
|
6b4941 |
have_strsep=no
|
|
|
6b4941 |
have_strcasestr=no
|
|
|
6b4941 |
have_strtonum=no
|
|
|
6b4941 |
have_fts=no
|
|
|
6b4941 |
AC_CHECK_FUNC([err], [have_err=yes], [have_err=no])
|
|
|
6b4941 |
AC_CHECK_FUNC([stringlist], [have_stringlist=yes], [have_stringlist=no])
|
|
|
6b4941 |
AC_CHECK_FUNC([vasprintf], [have_vasprintf=yes], [have_vasprintf=no])
|
|
|
6b4941 |
AC_CHECK_FUNC([isblank], [have_isblank=yes], [have_isblank=no])
|
|
|
6b4941 |
AC_CHECK_FUNC([ohash], [have_ohash=yes], [have_ohash=no])
|
|
|
6b4941 |
AC_CHECK_FUNC([recallocarray], [have_recallocarray=yes], [have_recallocarray=no])
|
|
|
6b4941 |
AC_CHECK_FUNC([getline], [have_getline=yes], [have_getline=no])
|
|
|
6b4941 |
AC_CHECK_FUNC([mkdtemp], [have_mkdtemp=yes], [have_mkdtemp=no])
|
|
|
6b4941 |
AC_CHECK_FUNC([progname], [have_progname=yes], [have_progname=no])
|
|
|
6b4941 |
AC_CHECK_FUNC([getsubopt], [have_getsubopt=yes], [have_getsubopt=no])
|
|
|
6b4941 |
AC_CHECK_FUNC([mkstemps], [have_mkstemps=yes], [have_mkstemps=no])
|
|
|
6b4941 |
AC_CHECK_FUNC([reallocarray], [have_reallocarray=yes], [have_reallocarray=no])
|
|
|
6b4941 |
AC_CHECK_FUNC([strndup], [have_strndup=yes], [have_strndup=no])
|
|
|
6b4941 |
AC_CHECK_FUNC([strlcat], [have_strlcat=yes], [have_strlcat=no])
|
|
|
6b4941 |
AC_CHECK_FUNC([strlcpy], [have_strlcpy=yes], [have_strlcpy=no])
|
|
|
6b4941 |
AC_CHECK_FUNC([strsep], [have_strsep=yes], [have_strsep=no])
|
|
|
6b4941 |
AC_CHECK_FUNC([strcasestr], [have_strcasestr=yes], [have_strcasestr=no])
|
|
|
6b4941 |
AC_CHECK_FUNC([strtonum], [have_strtonum=yes], [have_strtonum=no])
|
|
|
6b4941 |
AC_CHECK_FUNC([fts_open], [have_fts=yes], [have_fts=no])
|
|
|
6b4941 |
|
|
|
6b4941 |
AM_CONDITIONAL([NEED_ERR_COMPAT], [test "x$have_err" != "xyes"])
|
|
|
6b4941 |
AM_CONDITIONAL([NEED_STRINGLIST_COMPAT], [test "x$have_stringlist" != "xyes"])
|
|
|
6b4941 |
AM_CONDITIONAL([NEED_VASPRINTF_COMPAT], [test "x$have_vasprintf" != "xyes"])
|
|
|
6b4941 |
AM_CONDITIONAL([NEED_ISBLANK_COMPAT], [test "x$have_isblank" != "xyes"])
|
|
|
6b4941 |
AM_CONDITIONAL([NEED_OHASH_COMPAT], [test "x$have_ohash" != "xyes"])
|
|
|
6b4941 |
AM_CONDITIONAL([NEED_RECALLOCARRAY_COMPAT], [test "x$have_recallocarray" != "xyes"])
|
|
|
6b4941 |
AM_CONDITIONAL([NEED_GETLINE_COMPAT], [test "x$have_getline" != "xyes"])
|
|
|
6b4941 |
AM_CONDITIONAL([NEED_MKDTEMP_COMPAT], [test "x$have_mkdtemp" != "xyes"])
|
|
|
6b4941 |
AM_CONDITIONAL([NEED_PROGNAME_COMPAT], [test "x$have_progname" != "xyes"])
|
|
|
6b4941 |
AM_CONDITIONAL([NEED_GETSUBOPT_COMPAT], [test "x$have_getsubopt" != "xyes"])
|
|
|
6b4941 |
AM_CONDITIONAL([NEED_MKSTEMPS_COMPAT], [test "x$have_mkstemps" != "xyes"])
|
|
|
6b4941 |
AM_CONDITIONAL([NEED_REALLOCARRAY_COMPAT], [test "x$have_reallocarray" != "xyes"])
|
|
|
6b4941 |
AM_CONDITIONAL([NEED_STRNDUP_COMPAT], [test "x$have_strndup" != "xyes"])
|
|
|
6b4941 |
AM_CONDITIONAL([NEED_STRLCAT_COMPAT], [test "x$have_strlcat" != "xyes"])
|
|
|
6b4941 |
AM_CONDITIONAL([NEED_STRLCPY_COMPAT], [test "x$have_strlcpy" != "xyes"])
|
|
|
6b4941 |
AM_CONDITIONAL([NEED_STRSEP_COMPAT], [test "x$have_strsep" != "xyes"])
|
|
|
6b4941 |
AM_CONDITIONAL([NEED_STRCASESTR_COMPAT], [test "x$have_strcasestr" != "xyes"])
|
|
|
6b4941 |
AM_CONDITIONAL([NEED_STRTONUM_COMPAT], [test "x$have_strtonum" != "xyes"])
|
|
|
6b4941 |
AM_CONDITIONAL([NEED_FTS_COMPAT], [test "x$have_fts" != "xyes"])
|
|
|
6b4941 |
|
|
|
6b4941 |
AC_CONFIG_FILES([Makefile])
|
|
|
6b4941 |
AC_OUTPUT
|