Permalink
Fetching contributors…
Cannot retrieve contributors at this time
67 lines (56 sloc) 1.96 KB
AC_INIT([poudriere],[3.1.99],[https://github.com/freebsd/poudriere],[poudriere])
AC_CONFIG_SRCDIR([configure.ac])
AM_INIT_AUTOMAKE([1.11 foreign -Wall -Wno-portability no-dist-gzip dist-xz])
AM_SILENT_RULES([yes])
AC_CONFIG_HEADER(src/config.h)
AM_MAINTAINER_MODE([disable])
AC_PROG_CC([cc clang gcc])
AC_PROG_RANLIB
AC_CHECK_FUNCS([strftime_l strchrnul utimensat])
AC_CHECK_HEADERS_ONCE([sys/types.h])
AC_CHECK_HEADERS_ONCE([sys/stat.h])
AC_CHECK_HEADERS_ONCE([sys/param.h])
AC_CHECK_HEADERS_ONCE([sys/procctl.h])
AC_CHECK_HEADERS_ONCE([sys/mman.h])
AC_CHECK_HEADERS_ONCE([stdlib.h])
AC_CHECK_HEADERS_ONCE([stddef.h])
AC_CHECK_HEADERS_ONCE([stdarg.h])
AC_CHECK_HEADERS_ONCE([stdbool.h])
AC_CHECK_HEADERS_ONCE([stdint.h])
AC_CHECK_HEADERS_ONCE([string.h])
AC_CHECK_HEADERS_ONCE([unistd.h])
AC_CHECK_HEADERS_ONCE([ctype.h])
AC_CHECK_HEADERS_ONCE([errno.h])
AC_CHECK_HEADERS_ONCE([limits.h])
AC_CHECK_HEADERS_ONCE([libgen.h])
AC_CHECK_HEADERS_ONCE([stdio.h])
AC_CHECK_HEADERS_ONCE([float.h])
AC_CHECK_HEADERS_ONCE([math.h])
AC_CHECK_HEADERS_ONCE([fcntl.h])
# Look for rm -x support. Exit status 64 is bad argument, 1 is
# bad file. So as long as it is not 64 it should be fine.
AC_CACHE_CHECK([whether rm -x works], [ac_cv_rm_x_works],
[ac_cv_rm_x_works=no
rm -x /nonexistent 2>/dev/null
test $? -eq 1 && ac_cv_rm_x_works=yes])
if test "$ac_cv_rm_x_works" = yes; then
RM=
else
# Need bundled
RM=rm
fi
AC_SUBST([RM])
AC_CHECK_DECLS([F_DUPFD_CLOEXEC], [ac_have_f_dupfd_cloexec=1],
[ac_have_f_dupfd_cloexec=0], [[#include <fcntl.h>]])
SH=sh
if [[ $ac_have_f_dupfd_cloexec -eq 0 ]]; then
AC_MSG_WARN([Not using bundled /bin/sh. Some runtime behavior may be wrong.])
AC_MSG_WARN([It is advised to upgrade your base system to a newer release.])
SH=
fi
AC_SUBST([SH])
AC_CONFIG_FILES(Makefile)
# Preserve timestamps for install. This is needed to preserve hardlinks
# for HTML files.
AC_SUBST([INSTALL], ["${ac_cv_path_install% -c} -Cp"])
AC_OUTPUT([src/etc/rc.d/poudriered])