From: Michael R Sweet Date: Thu, 4 Mar 2021 14:43:00 +0000 (-0500) Subject: Add autoheader protection and some more comments to explain what we're doing. X-Git-Tag: v2.4b1~244 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=392045bbaa62c86fc89dbd9945c77f77fc2665b1;p=thirdparty%2Fcups.git Add autoheader protection and some more comments to explain what we're doing. --- diff --git a/configure b/configure index f2b2aa6308..16bdcbca6f 100755 --- a/configure +++ b/configure @@ -3098,6 +3098,8 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu + + # Make sure we can run config.sub. $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 @@ -7531,7 +7533,6 @@ if test "$mandir" = "\${prefix}/man" -a "$prefix" = "/"; then fi - PICFLAG=1 DSOFLAGS="${DSOFLAGS:=}" @@ -8021,7 +8022,6 @@ case $host_os_name in esac - ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" " #include #include diff --git a/configure.ac b/configure.ac index a1f9796e3a..78e5b619ee 100644 --- a/configure.ac +++ b/configure.ac @@ -15,15 +15,19 @@ AC_PREREQ([2.60]) dnl Package name and version... AC_INIT([CUPS], [2.4rc1], [https://github.com/openprinting/cups/issues], [cups], [https://openprinting.github.io/cups]) +dnl This line is provided to ensure that you don't run the autoheader program +dnl against this project. Doing so is completely unsupported and WILL cause +dnl problems! +AH_TOP([#error "Somebody ran autoheader on this project which is unsupported and WILL cause problems."]) + +dnl Include configure tests for different areas... sinclude(config-scripts/cups-opsys.m4) sinclude(config-scripts/cups-common.m4) sinclude(config-scripts/cups-directories.m4) sinclude(config-scripts/cups-manpages.m4) - sinclude(config-scripts/cups-sharedlibs.m4) sinclude(config-scripts/cups-libtool.m4) sinclude(config-scripts/cups-compiler.m4) - sinclude(config-scripts/cups-network.m4) sinclude(config-scripts/cups-poll.m4) sinclude(config-scripts/cups-gssapi.m4) @@ -36,6 +40,8 @@ sinclude(config-scripts/cups-snap.m4) sinclude(config-scripts/cups-startup.m4) sinclude(config-scripts/cups-defaults.m4) +dnl See what languages are available and make sure we generate the localization +dnl files as needed... INSTALL_LANGUAGES="" UNINSTALL_LANGUAGES="" LANGFILES="" @@ -59,6 +65,7 @@ AS_IF([test "x$LANGUAGES" != x], [ AC_SUBST([INSTALL_LANGUAGES]) AC_SUBST([UNINSTALL_LANGUAGES]) +dnl Provide autoconf with a list of files to generate and output them... AC_CONFIG_FILES([ Makedefs conf/cups-files.conf