# HG changeset patch # User Andrew John Hughes # Date 1477545834 -3600 # Node ID cebac2cc1f7a193d970bede3ae1d66368599d4b7 # Parent 47c21fc24330157e31214a0bca54e05790f1825c PR3180: Support building without pre-compiled headers 2016-10-26 Andrew John Hughes 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. diff -r 47c21fc24330 -r cebac2cc1f7a ChangeLog --- 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 + + 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 Bump to icedtea-2.7.0pre08. diff -r 47c21fc24330 -r cebac2cc1f7a INSTALL --- 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 ======= diff -r 47c21fc24330 -r cebac2cc1f7a Makefile.am --- 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)" \ diff -r 47c21fc24330 -r cebac2cc1f7a NEWS --- 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 diff -r 47c21fc24330 -r cebac2cc1f7a acinclude.m4 --- 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") +]) diff -r 47c21fc24330 -r cebac2cc1f7a configure.ac --- 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])