X-Git-Url: https://gitweb.michael.orlitzky.com/?p=apply-default-acl.git;a=blobdiff_plain;f=configure.ac;h=3213494fd73e63e53b547c81b574500f846fa4f3;hp=e4742341dc04e8cccf74f4b2addbc9ed9a63629f;hb=4690ed9ee897a63b7ed19dd92ab6f48758144314;hpb=d1736ff4b531360a1bfd1993159cc8835da55911 diff --git a/configure.ac b/configure.ac index e474234..3213494 100644 --- a/configure.ac +++ b/configure.ac @@ -1,10 +1,19 @@ AC_PREREQ([2.68]) -AC_INIT([apply-default-acl], [0.3.1], [michael@orlitzky.com]) -AM_INIT_AUTOMAKE([-Wall foreign no-dist-gzip dist-xz]) -AC_CONFIG_FILES([Makefile src/Makefile]) +AC_INIT([apply-default-acl], [0.4.2], [michael@orlitzky.com]) +# Store build artifacts in this directory to keep the house clean. +AC_CONFIG_AUX_DIR([build-aux]) +AM_INIT_AUTOMAKE([-Wall foreign no-dist-gzip dist-xz tar-ustar]) +AC_CONFIG_FILES([Makefile src/Makefile src/libadacl.pc]) AC_CONFIG_SRCDIR([src/apply-default-acl.c]) AC_CONFIG_MACRO_DIRS([m4]) +# Not used, but keeps the build log clean. +AC_CONFIG_HEADERS([config.h]) + +# Adds --with-pkgconfigdir to the ./configure script and defines +# the @pkgconfigdir@ variable to be used elsewhere. +PKG_INSTALLDIR + # Checks for programs. AC_PROG_CC AM_PROG_AR @@ -13,7 +22,7 @@ AM_PROG_AR AC_HEADER_DIRENT # dirent.h AC_HEADER_STAT # sys/stat.h AC_HEADER_STDBOOL # stdbool.h -AC_HEADER_STDC # stdlib.h string.h (implied: errno.h limits.h stdio.h) +AC_HEADER_STDC # stdlib.h string.h (implied: errno.h stdio.h) # Check for header files not covered by the predefined macros above. AC_HEADER_REQUIRE(acl/libacl.h) @@ -44,5 +53,11 @@ AC_CHECK_DECLS([O_PATH], [[#define _GNU_SOURCE #include ]]) -LT_INIT +# And check for the GNU/BSD extension asprintf(), which lets us avoid +# praying to the PATH_MAX gods while constructing long paths. +AC_CHECK_FUNC(asprintf, + [], + AC_MSG_ERROR(missing required asprintf function)) + +LT_INIT([disable-static]) AC_OUTPUT