changeset 2895:cebac2cc1f7a

PR3180: Support building without pre-compiled headers 2016-10-26 Andrew John Hughes <gnu.andrew@member.fsf.org> PR3180: Support building without pre-compiled headers * INSTALL: Updated. * Makefile.am: (ICEDTEA_ENV): Set USE_PRECOMPILED_HEADER appropriately, according to whether DISABLE_PRECOMPILED_HEADERS is defined or not. * NEWS: Updated. * acinclude.m4: (IT_DISABLE_PRECOMPILED_HEADERS): New macro to provide the --disable-precompiled-headers option. * configure.ac: Invoke IT_DISABLE_PRECOMPILED_HEADERS.
author Andrew John Hughes <gnu_andrew@member.fsf.org>
date Thu, 27 Oct 2016 06:23:54 +0100
parents 47c21fc24330
children 18f2aec9b670
files ChangeLog INSTALL Makefile.am NEWS acinclude.m4 configure.ac
diffstat 6 files changed, 48 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Thu Oct 27 05:40:14 2016 +0100
+++ b/ChangeLog	Thu Oct 27 06:23:54 2016 +0100
@@ -1,3 +1,17 @@
+2016-10-26  Andrew John Hughes  <gnu.andrew@member.fsf.org>
+
+	PR3180: Support building without pre-compiled headers
+	* INSTALL: Updated.
+	* Makefile.am:
+	(ICEDTEA_ENV): Set USE_PRECOMPILED_HEADER
+	appropriately, according to whether
+	DISABLE_PRECOMPILED_HEADERS is defined or not.
+	* NEWS: Updated.
+	* acinclude.m4:
+	(IT_DISABLE_PRECOMPILED_HEADERS): New macro to
+	provide the --disable-precompiled-headers option.
+	* configure.ac: Invoke IT_DISABLE_PRECOMPILED_HEADERS.
+
 2016-10-26  Andrew John Hughes  <gnu.andrew@member.fsf.org>
 
 	Bump to icedtea-2.7.0pre08.
--- a/INSTALL	Thu Oct 27 05:40:14 2016 +0100
+++ b/INSTALL	Thu Oct 27 06:23:54 2016 +0100
@@ -258,6 +258,7 @@
 * --enable-split-debuginfo: Strip debuginfo from binaries and libraries
   and install in .debug files under ${libdir}/debug instead.  objcopy
   from binutils must be available to perform the stripping.
+* --disable-precompiled-headers: Don't use pre-compiled headers.
 
 Testing
 =======
--- a/Makefile.am	Thu Oct 27 05:40:14 2016 +0100
+++ b/Makefile.am	Thu Oct 27 06:23:54 2016 +0100
@@ -747,6 +747,14 @@
 	ALT_CACERTS_FILE="${CACERTS_FILE}"
 endif
 
+if DISABLE_PRECOMPILED_HEADERS
+ICEDTEA_ENV += \
+	USE_PRECOMPILED_HEADER=0
+else
+ICEDTEA_ENV += \
+	USE_PRECOMPILED_HEADER=1
+endif
+
 # OpenJDK boot build environment.
 ICEDTEA_ENV_BOOT = $(ICEDTEA_ENV) \
 	BOOTCLASSPATH_CLS_RT="-bootclasspath $(CLS_DIR_BOOT):$(RUNTIME)" \
--- a/NEWS	Thu Oct 27 05:40:14 2016 +0100
+++ b/NEWS	Thu Oct 27 06:23:54 2016 +0100
@@ -16,6 +16,8 @@
 
 * Security fixes
   - PR3207, RH1367357: lcms2: Out-of-bounds read in Type_MLU_Read()
+* New features
+  - PR3180: Support building without pre-compiled headers
 * Backports
   - S6604109, PR3162: javax.print.PrintServiceLookup.lookupPrintServices fails SOMETIMES for Cups
   - S6907252, PR3162: ZipFileInputStream Not Thread-Safe
--- a/acinclude.m4	Thu Oct 27 05:40:14 2016 +0100
+++ b/acinclude.m4	Thu Oct 27 06:23:54 2016 +0100
@@ -3452,3 +3452,25 @@
   AC_MSG_RESULT([$disable_systemtap_tests])
   AM_CONDITIONAL([DISABLE_SYSTEMTAP_TESTS], test x"${disable_systemtap_tests}" = "xyes")
 ])
+
+AC_DEFUN_ONCE([IT_DISABLE_PRECOMPILED_HEADERS],
+[
+  AC_MSG_CHECKING([whether to disable the use of pre-compiled headers])
+  AC_ARG_ENABLE([precompiled-headers],
+                [AS_HELP_STRING(--disable-precompiled-headers,do not use pre-compiled headers [[default=no]])],
+  [
+    case "${enableval}" in
+      no)
+        disable_precompiled_headers=yes
+        ;;
+      *)
+        disable_precompiled_headers=no
+        ;;
+    esac
+  ],
+  [
+    disable_precompiled_headers=no
+  ])
+  AC_MSG_RESULT([$disable_precompiled_headers])
+  AM_CONDITIONAL([DISABLE_PRECOMPILED_HEADERS], test x"${disable_precompiled_headers}" = "xyes")
+])
--- a/configure.ac	Thu Oct 27 05:40:14 2016 +0100
+++ b/configure.ac	Thu Oct 27 06:23:54 2016 +0100
@@ -61,6 +61,7 @@
 IT_ENABLE_SUNEC
 IT_ENABLE_NATIVE_DEBUGINFO
 IT_ENABLE_JAVA_DEBUGINFO
+IT_DISABLE_PRECOMPILED_HEADERS
 
 IT_WITH_FONTS_DIR
 AC_CONFIG_FILES([linux.fontconfig.Gentoo.properties])