X-Git-Url: http://git.ipfire.org/?p=people%2Fpmueller%2Fipfire-2.x.git;a=blobdiff_plain;f=src%2Finstaller%2Fconfigure.ac;h=fb4858cba8bba6c2b1a62b7f9c42d7a6b619c54a;hp=9a3c45529a658604fa6b467d18a2e4ccf8400192;hb=82b405615f47bb1dc34f4a3b488cb282058e9be3;hpb=5315fae6b3cf1b773c792b7e999bf60513696182 diff --git a/src/installer/configure.ac b/src/installer/configure.ac index 9a3c45529a..fb4858cba8 100644 --- a/src/installer/configure.ac +++ b/src/installer/configure.ac @@ -39,8 +39,21 @@ AC_PROG_CC AC_PROG_CC_C99 AC_PROG_CC_C_O +CC_CHECK_FLAGS_APPEND([with_cflags], [CFLAGS], [\ + "-Wformat=2 -Wformat-security -Wformat-nonliteral" \ + -Werror=overflow \ + -fno-strict-aliasing \ + -fstack-protector \ + -fstack-protector-strong \ + -fPIE \ + --param=ssp-buffer-size=4]) +AC_SUBST([OUR_CFLAGS], "$with_cflags") + AC_PATH_PROG([M4], [m4]) +# Gettext +AM_GNU_GETTEXT([external]) +AM_GNU_GETTEXT_VERSION([0.18]) AC_CHECK_HEADERS([libintl.h]) # This makes sure pkg.m4 is available. @@ -63,17 +76,22 @@ PKG_CHECK_MODULES(UDEV, [libudev]) AC_ARG_WITH([distro-name], AS_HELP_STRING([--with-distro-name] [The name of the distribution]), - AC_DEFINE_UNQUOTED([NAME], "$withval", [The name of the distribution]), + AC_DEFINE_UNQUOTED([DISTRO_NAME], "$withval", [The name of the distribution]), AC_MSG_ERROR([*** you need to set the name with --with-distro-name=])) AC_ARG_WITH([distro-sname], AS_HELP_STRING([--with-distro-sname] [The short name of the distribution]), - AC_DEFINE_UNQUOTED([SNAME], "$withval", [The sname of the distribution]), + AC_DEFINE_UNQUOTED([DISTRO_SNAME], "$withval", [The sname of the distribution]), AC_MSG_ERROR([*** you need to set the sname with --with-distro-sname=])) +AC_ARG_WITH([distro-version], + AS_HELP_STRING([--with-distro-sname] [The version of the distribution]), + AC_DEFINE_UNQUOTED([DISTRO_VERSION], "$withval", [The version of the distribution]), + AC_MSG_ERROR([*** you need to set the version with --with-distro-version=])) + AC_ARG_WITH([distro-slogan], AS_HELP_STRING([--with-distro-slogan] [The slogan of the distribution]), - AC_DEFINE_UNQUOTED([SLOGAN], "$withval", [The slogan of the distribution]), + AC_DEFINE_UNQUOTED([DISTRO_SLOGAN], "$withval", [The slogan of the distribution]), AC_MSG_ERROR([*** you need to set the slogan with --with-distro-slogan=])) AC_ARG_WITH([config-root], @@ -81,8 +99,14 @@ AC_ARG_WITH([config-root], AC_DEFINE_UNQUOTED([CONFIG_ROOT], "$withval", [The config-root]), AC_MSG_ERROR([*** you need to set CONFIG_ROOT with --with-config-root=])) +AC_ARG_WITH([download-url], + AS_HELP_STRING([--with-download-url] [The default download URL]), + AC_DEFINE_UNQUOTED([DOWNLOAD_URL], "$withval", [The default download URL]), + AC_MSG_ERROR([*** you need to set DOWNLOAD_URL with --with-download-url=])) + AC_CONFIG_FILES([ Makefile + po/Makefile.in ]) AC_OUTPUT @@ -92,4 +116,9 @@ AC_MSG_RESULT([ CFLAGS: ${OUR_CFLAGS} ${CFLAGS} CPPFLAGS: ${OUR_CPPFLAGS} ${CPPFLAGS} LDFLAGS: ${OUR_LDFLAGS} ${LDFLAGS} + + Distribution: ${DISTRO_NAME} (${DISTRO_SNAME}) + Version: ${DISTRO_VERSION} + Slogan: ${DISTRO_SLOGAN} + Config Root: ${CONFIG_ROOT} ])