mirror of
https://github.com/pygos/cron
synced 2024-11-18 10:59:46 +01:00
55 lines
1.5 KiB
Text
55 lines
1.5 KiB
Text
AC_PREREQ([2.60])
|
|
|
|
AC_INIT([gcron], [0.1], [goliath@infraroot.at], gcron)
|
|
AC_CONFIG_MACRO_DIR([m4])
|
|
AM_INIT_AUTOMAKE([foreign subdir-objects dist-xz])
|
|
AM_SILENT_RULES([yes])
|
|
AC_PROG_CC
|
|
AC_PROG_CC_C99
|
|
AC_PROG_INSTALL
|
|
AC_PROG_RANLIB
|
|
AC_CANONICAL_HOST
|
|
|
|
m4_ifndef([PKG_PROG_PKG_CONFIG],
|
|
[m4_fatal([Could not locate the pkg-config autoconf
|
|
macros. These are usually located in /usr/share/aclocal/pkg.m4.
|
|
If your macros are in a different location, try setting the
|
|
environment variable AL_OPTS="-I/other/macro/dir" before running
|
|
./autogen.sh or autoreconf again. Make sure pkg-config is installed.])])
|
|
PKG_PROG_PKG_CONFIG
|
|
|
|
case "${host_os}" in
|
|
linux*)
|
|
AM_CONDITIONAL([HAVE_LIBBSD], [true])
|
|
PKG_CHECK_MODULES(LIBBSD, [libbsd], [],
|
|
[AC_MSG_ERROR([missing libbsd])])
|
|
;;
|
|
esac
|
|
|
|
UL_WARN_ADD([-Wall])
|
|
UL_WARN_ADD([-Wextra])
|
|
UL_WARN_ADD([-Wunused])
|
|
UL_WARN_ADD([-Wmissing-prototypes])
|
|
UL_WARN_ADD([-Wmissing-declarations])
|
|
UL_WARN_ADD([-Wwrite-strings])
|
|
UL_WARN_ADD([-Wjump-misses-init])
|
|
UL_WARN_ADD([-Wuninitialized])
|
|
UL_WARN_ADD([-Winit-self])
|
|
UL_WARN_ADD([-Wlogical-op])
|
|
UL_WARN_ADD([-Wunused-but-set-parameter])
|
|
UL_WARN_ADD([-Wunused-but-set-variable])
|
|
UL_WARN_ADD([-Wunused-parameter])
|
|
UL_WARN_ADD([-Wunused-result])
|
|
UL_WARN_ADD([-Wunused-variable])
|
|
UL_WARN_ADD([-Wduplicated-cond])
|
|
UL_WARN_ADD([-Wduplicated-branches])
|
|
UL_WARN_ADD([-Wrestrict])
|
|
UL_WARN_ADD([-Wnull-dereference])
|
|
UL_WARN_ADD([-pedantic])
|
|
|
|
AC_SUBST([WARN_CFLAGS])
|
|
|
|
AC_CONFIG_HEADERS([config.h])
|
|
AC_DEFINE_DIR(GCRONDIR, sysconfdir/crontab.d, [crontab source directory])
|
|
|
|
AC_OUTPUT([Makefile])
|