2018-02-25 14:33:19 +01:00
|
|
|
AC_PREREQ([2.60])
|
|
|
|
|
2018-05-05 18:25:48 +02:00
|
|
|
m4_define([RELEASE], 0.3)
|
2018-04-17 18:42:45 +02:00
|
|
|
|
|
|
|
AC_INIT([init], [RELEASE], [david.oberhollenzer@tele2.at], init)
|
2018-02-25 14:33:19 +01:00
|
|
|
AC_CONFIG_MACRO_DIR([m4])
|
2018-03-25 01:00:09 +01:00
|
|
|
AM_INIT_AUTOMAKE([foreign subdir-objects dist-xz])
|
2018-02-25 14:33:19 +01:00
|
|
|
AM_SILENT_RULES([yes])
|
|
|
|
AC_PROG_CC
|
2018-04-12 06:58:12 +02:00
|
|
|
AC_PROG_CC_C99
|
2018-02-25 14:33:19 +01:00
|
|
|
AC_PROG_INSTALL
|
|
|
|
AC_PROG_RANLIB
|
2018-03-25 03:09:24 +02:00
|
|
|
AC_PROG_MKDIR_P
|
2018-03-25 13:18:12 +02:00
|
|
|
AC_PROG_LN_S
|
2018-02-25 14:33:19 +01:00
|
|
|
|
2018-04-12 05:41:09 +02:00
|
|
|
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])
|
|
|
|
|
|
|
|
|
2018-06-02 16:20:02 +02:00
|
|
|
AC_ARG_WITH([usyslogd],
|
|
|
|
[AS_HELP_STRING([--without-usyslogd], [Build without syslog daemon])],
|
|
|
|
[case "${withval}" in
|
|
|
|
yes) AM_CONDITIONAL([USYSLOGD], [true]) ;;
|
|
|
|
no) AM_CONDITIONAL([USYSLOGD], [false]) ;;
|
|
|
|
*) AC_MSG_ERROR([bad value ${withval} for --without-usyslogd]) ;;
|
|
|
|
esac],
|
|
|
|
[AM_CONDITIONAL([USYSLOGD], [true])])
|
|
|
|
|
|
|
|
|
2018-02-25 14:33:19 +01:00
|
|
|
AC_CONFIG_HEADERS([lib/include/config.h])
|
|
|
|
AC_DEFINE_DIR(SVCDIR, sysconfdir/init.d, [Startup service directory])
|
|
|
|
AC_DEFINE_DIR(TEMPLATEDIR, datadir/init, [Service template directory])
|
|
|
|
AC_DEFINE_DIR(SCRIPTDIR, libexecdir/init, [Helper script directory])
|
|
|
|
AC_DEFINE_DIR(SOCKDIR, localstatedir/run, [Directory for initd socket])
|
|
|
|
|
|
|
|
AC_DEFINE_DIR(BINPATH, bindir, [Fully evaluated bin directory])
|
|
|
|
AC_DEFINE_DIR(SBINPATH, sbindir, [Fully evaluated sbin directory])
|
2018-04-12 06:15:02 +02:00
|
|
|
AC_DEFINE_DIR(ETCPATH, sysconfdir, [Fulle evaluated etc directory])
|
2018-02-25 14:33:19 +01:00
|
|
|
|
2018-03-25 13:10:13 +02:00
|
|
|
AC_CONFIG_FILES([services/sigkill])
|
|
|
|
AC_CONFIG_FILES([services/sigterm])
|
2018-04-06 18:40:09 +02:00
|
|
|
AC_CONFIG_FILES([services/sysfs])
|
|
|
|
AC_CONFIG_FILES([services/devfs])
|
|
|
|
AC_CONFIG_FILES([services/procfs])
|
2018-04-26 20:34:14 +02:00
|
|
|
AC_CONFIG_FILES([services/ifrename])
|
2018-04-27 22:38:01 +02:00
|
|
|
AC_CONFIG_FILES([services/ifcfg])
|
2018-04-06 18:40:09 +02:00
|
|
|
AC_CONFIG_FILES([scripts/devfs.sh])
|
2018-04-26 20:34:14 +02:00
|
|
|
AC_CONFIG_FILES([scripts/ifrename.sh])
|
2018-04-27 22:38:01 +02:00
|
|
|
AC_CONFIG_FILES([scripts/ifcfg.sh])
|
2018-04-12 06:15:02 +02:00
|
|
|
AC_CONFIG_FILES([etc/initd.env])
|
2018-02-25 14:33:19 +01:00
|
|
|
|
|
|
|
AC_OUTPUT([Makefile])
|