texlive[45971] Build/source/libs/libpng/include/Makefile.in:

commits+karl at tug.org commits+karl at tug.org
Sun Dec 3 00:51:48 CET 2017


Revision: 45971
          http://tug.org/svn/texlive?view=revision&revision=45971
Author:   karl
Date:     2017-12-03 00:51:48 +0100 (Sun, 03 Dec 2017)
Log Message:
-----------
--enable-arm-neon: import support from upstream

Modified Paths:
--------------
    trunk/Build/source/libs/libpng/ChangeLog
    trunk/Build/source/libs/libpng/Makefile.am
    trunk/Build/source/libs/libpng/Makefile.in
    trunk/Build/source/libs/libpng/aclocal.m4
    trunk/Build/source/libs/libpng/config.h.in
    trunk/Build/source/libs/libpng/configure
    trunk/Build/source/libs/libpng/configure.ac
    trunk/Build/source/libs/libpng/include/Makefile.in

Property Changed:
----------------
    trunk/Build/source/libs/libpng/configure.ac

Modified: trunk/Build/source/libs/libpng/ChangeLog
===================================================================
--- trunk/Build/source/libs/libpng/ChangeLog	2017-12-02 23:50:45 UTC (rev 45970)
+++ trunk/Build/source/libs/libpng/ChangeLog	2017-12-02 23:51:48 UTC (rev 45971)
@@ -1,3 +1,12 @@
+2017-12-02  Karl Berry  <karl at freefriends.org>
+
+	Import ARM support from upstream to TL configure.
+	* Makefile.am (nodist_libpng_a_SOURCES): add arm/*.[cS] files
+	per upstream Makefile.am.
+	* configure.ac (AM_PROG_AS),
+	(AC_ARG_ENABLE([arm-neon]): add.
+	Report from Johannes Hielscher, tlbuild mail 1 Nov 2017 02:39:55.
+
 2017-09-29 Akira Kakuto  <kakuto at fuk.kindai.ac.jp>
 
 	Import libpng-1.6.34.

Modified: trunk/Build/source/libs/libpng/Makefile.am
===================================================================
--- trunk/Build/source/libs/libpng/Makefile.am	2017-12-02 23:50:45 UTC (rev 45970)
+++ trunk/Build/source/libs/libpng/Makefile.am	2017-12-02 23:51:48 UTC (rev 45971)
@@ -28,21 +28,26 @@
 
 nodist_libpng_a_SOURCES = \
 	@LIBPNG_TREE@/png.c \
-	@LIBPNG_TREE@/pngset.c \
+	@LIBPNG_TREE@/pngerror.c \
 	@LIBPNG_TREE@/pngget.c \
+	@LIBPNG_TREE@/pngmem.c \
+	@LIBPNG_TREE@/pngpread.c \
+	@LIBPNG_TREE@/pngread.c \
+	@LIBPNG_TREE@/pngrio.c \
+	@LIBPNG_TREE@/pngrtran.c \
 	@LIBPNG_TREE@/pngrutil.c \
+	@LIBPNG_TREE@/pngset.c \
 	@LIBPNG_TREE@/pngtrans.c \
-	@LIBPNG_TREE@/pngwutil.c \
-	@LIBPNG_TREE@/pngread.c \
-	@LIBPNG_TREE@/pngrio.c \
 	@LIBPNG_TREE@/pngwio.c \
 	@LIBPNG_TREE@/pngwrite.c \
-	@LIBPNG_TREE@/pngrtran.c \
 	@LIBPNG_TREE@/pngwtran.c \
-	@LIBPNG_TREE@/pngmem.c \
-	@LIBPNG_TREE@/pngerror.c \
-	@LIBPNG_TREE@/pngpread.c
+	@LIBPNG_TREE@/pngwutil.c
 
+if PNG_ARM_NEON
+nodist_libpng_a_SOURCES += @LIBPNG_TREE@/arm/arm_init.c\
+	@LIBPNG_TREE@/arm/filter_neon.S @LIBPNG_TREE@/arm/filter_neon_intrinsics.c
+endif
+
 $(libpng_a_OBJECTS): config.force
 
 ## Tests

Modified: trunk/Build/source/libs/libpng/Makefile.in
===================================================================
--- trunk/Build/source/libs/libpng/Makefile.in	2017-12-02 23:50:45 UTC (rev 45970)
+++ trunk/Build/source/libs/libpng/Makefile.in	2017-12-02 23:51:48 UTC (rev 45971)
@@ -86,6 +86,9 @@
 NORMAL_UNINSTALL = :
 PRE_UNINSTALL = :
 POST_UNINSTALL = :
+ at PNG_ARM_NEON_TRUE@am__append_1 = @LIBPNG_TREE@/arm/arm_init.c\
+ at PNG_ARM_NEON_TRUE@	@LIBPNG_TREE@/arm/filter_neon.S @LIBPNG_TREE@/arm/filter_neon_intrinsics.c
+
 @build_TRUE at check_PROGRAMS = pngtest$(EXEEXT)
 subdir = .
 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
@@ -115,19 +118,23 @@
 libpng_a_AR = $(AR) $(ARFLAGS)
 libpng_a_LIBADD =
 am__dirstamp = $(am__leading_dot)dirstamp
+ at PNG_ARM_NEON_TRUE@am__objects_1 =  \
+ at PNG_ARM_NEON_TRUE@	@LIBPNG_TREE@/arm/arm_init.$(OBJEXT) \
+ at PNG_ARM_NEON_TRUE@	@LIBPNG_TREE@/arm/filter_neon.$(OBJEXT) \
+ at PNG_ARM_NEON_TRUE@	@LIBPNG_TREE@/arm/filter_neon_intrinsics.$(OBJEXT)
 nodist_libpng_a_OBJECTS = @LIBPNG_TREE@/png.$(OBJEXT) \
-	@LIBPNG_TREE@/pngset.$(OBJEXT) @LIBPNG_TREE@/pngget.$(OBJEXT) \
+	@LIBPNG_TREE@/pngerror.$(OBJEXT) \
+	@LIBPNG_TREE@/pngget.$(OBJEXT) @LIBPNG_TREE@/pngmem.$(OBJEXT) \
+	@LIBPNG_TREE@/pngpread.$(OBJEXT) \
+	@LIBPNG_TREE@/pngread.$(OBJEXT) @LIBPNG_TREE@/pngrio.$(OBJEXT) \
+	@LIBPNG_TREE@/pngrtran.$(OBJEXT) \
 	@LIBPNG_TREE@/pngrutil.$(OBJEXT) \
+	@LIBPNG_TREE@/pngset.$(OBJEXT) \
 	@LIBPNG_TREE@/pngtrans.$(OBJEXT) \
-	@LIBPNG_TREE@/pngwutil.$(OBJEXT) \
-	@LIBPNG_TREE@/pngread.$(OBJEXT) @LIBPNG_TREE@/pngrio.$(OBJEXT) \
 	@LIBPNG_TREE@/pngwio.$(OBJEXT) \
 	@LIBPNG_TREE@/pngwrite.$(OBJEXT) \
-	@LIBPNG_TREE@/pngrtran.$(OBJEXT) \
 	@LIBPNG_TREE@/pngwtran.$(OBJEXT) \
-	@LIBPNG_TREE@/pngmem.$(OBJEXT) \
-	@LIBPNG_TREE@/pngerror.$(OBJEXT) \
-	@LIBPNG_TREE@/pngpread.$(OBJEXT)
+	@LIBPNG_TREE@/pngwutil.$(OBJEXT) $(am__objects_1)
 libpng_a_OBJECTS = $(nodist_libpng_a_OBJECTS)
 nodist_pngtest_OBJECTS = @LIBPNG_TREE@/pngtest.$(OBJEXT)
 pngtest_OBJECTS = $(nodist_pngtest_OBJECTS)
@@ -150,6 +157,12 @@
 depcomp = $(SHELL) $(top_srcdir)/../../build-aux/depcomp
 am__depfiles_maybe = depfiles
 am__mv = mv -f
+CPPASCOMPILE = $(CCAS) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
+	$(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CCASFLAGS) $(CCASFLAGS)
+AM_V_CPPAS = $(am__v_CPPAS_ at AM_V@)
+am__v_CPPAS_ = $(am__v_CPPAS_ at AM_DEFAULT_V@)
+am__v_CPPAS_0 = @echo "  CPPAS   " $@;
+am__v_CPPAS_1 = 
 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
 	$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
 AM_V_CC = $(am__v_CC_ at AM_V@)
@@ -472,6 +485,9 @@
 AUTOMAKE = @AUTOMAKE@
 AWK = @AWK@
 CC = @CC@
+CCAS = @CCAS@
+CCASDEPMODE = @CCASDEPMODE@
+CCASFLAGS = @CCASFLAGS@
 CCDEPMODE = @CCDEPMODE@
 CFLAGS = @CFLAGS@
 CPP = @CPP@
@@ -575,23 +591,14 @@
 
 AM_CFLAGS = $(VISIBILITY_CFLAGS) $(WARNING_CFLAGS)
 noinst_LIBRARIES = libpng.a
-nodist_libpng_a_SOURCES = \
-	@LIBPNG_TREE@/png.c \
-	@LIBPNG_TREE@/pngset.c \
-	@LIBPNG_TREE@/pngget.c \
-	@LIBPNG_TREE@/pngrutil.c \
-	@LIBPNG_TREE@/pngtrans.c \
-	@LIBPNG_TREE@/pngwutil.c \
-	@LIBPNG_TREE@/pngread.c \
-	@LIBPNG_TREE@/pngrio.c \
-	@LIBPNG_TREE@/pngwio.c \
-	@LIBPNG_TREE@/pngwrite.c \
-	@LIBPNG_TREE@/pngrtran.c \
-	@LIBPNG_TREE@/pngwtran.c \
-	@LIBPNG_TREE@/pngmem.c \
-	@LIBPNG_TREE@/pngerror.c \
-	@LIBPNG_TREE@/pngpread.c
-
+nodist_libpng_a_SOURCES = @LIBPNG_TREE@/png.c @LIBPNG_TREE@/pngerror.c \
+	@LIBPNG_TREE@/pngget.c @LIBPNG_TREE@/pngmem.c \
+	@LIBPNG_TREE@/pngpread.c @LIBPNG_TREE@/pngread.c \
+	@LIBPNG_TREE@/pngrio.c @LIBPNG_TREE@/pngrtran.c \
+	@LIBPNG_TREE@/pngrutil.c @LIBPNG_TREE@/pngset.c \
+	@LIBPNG_TREE@/pngtrans.c @LIBPNG_TREE@/pngwio.c \
+	@LIBPNG_TREE@/pngwrite.c @LIBPNG_TREE@/pngwtran.c \
+	@LIBPNG_TREE@/pngwutil.c $(am__append_1)
 AM_TESTS_ENVIRONMENT = LIBPNG_TREE=$(LIBPNG_TREE); export LIBPNG_TREE;
 @build_TRUE at TESTS = libpng.test
 @build_TRUE at dist_check_SCRIPTS = libpng.test
@@ -610,7 +617,7 @@
 	$(MAKE) $(AM_MAKEFLAGS) all-recursive
 
 .SUFFIXES:
-.SUFFIXES: .c .log .o .obj .test .test$(EXEEXT) .trs
+.SUFFIXES: .S .c .log .o .obj .test .test$(EXEEXT) .trs
 am--refresh: Makefile
 	@:
 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(srcdir)/../../am/dist_hook.am $(srcdir)/../../am/reconfig.am $(srcdir)/../../am/rebuild.am $(am__configure_deps)
@@ -671,34 +678,49 @@
 	@: > @LIBPNG_TREE@/$(DEPDIR)/$(am__dirstamp)
 @LIBPNG_TREE@/png.$(OBJEXT): @LIBPNG_TREE@/$(am__dirstamp) \
 	@LIBPNG_TREE@/$(DEPDIR)/$(am__dirstamp)
- at LIBPNG_TREE@/pngset.$(OBJEXT): @LIBPNG_TREE@/$(am__dirstamp) \
+ at LIBPNG_TREE@/pngerror.$(OBJEXT): @LIBPNG_TREE@/$(am__dirstamp) \
 	@LIBPNG_TREE@/$(DEPDIR)/$(am__dirstamp)
 @LIBPNG_TREE@/pngget.$(OBJEXT): @LIBPNG_TREE@/$(am__dirstamp) \
 	@LIBPNG_TREE@/$(DEPDIR)/$(am__dirstamp)
- at LIBPNG_TREE@/pngrutil.$(OBJEXT): @LIBPNG_TREE@/$(am__dirstamp) \
+ at LIBPNG_TREE@/pngmem.$(OBJEXT): @LIBPNG_TREE@/$(am__dirstamp) \
 	@LIBPNG_TREE@/$(DEPDIR)/$(am__dirstamp)
- at LIBPNG_TREE@/pngtrans.$(OBJEXT): @LIBPNG_TREE@/$(am__dirstamp) \
+ at LIBPNG_TREE@/pngpread.$(OBJEXT): @LIBPNG_TREE@/$(am__dirstamp) \
 	@LIBPNG_TREE@/$(DEPDIR)/$(am__dirstamp)
- at LIBPNG_TREE@/pngwutil.$(OBJEXT): @LIBPNG_TREE@/$(am__dirstamp) \
-	@LIBPNG_TREE@/$(DEPDIR)/$(am__dirstamp)
 @LIBPNG_TREE@/pngread.$(OBJEXT): @LIBPNG_TREE@/$(am__dirstamp) \
 	@LIBPNG_TREE@/$(DEPDIR)/$(am__dirstamp)
 @LIBPNG_TREE@/pngrio.$(OBJEXT): @LIBPNG_TREE@/$(am__dirstamp) \
 	@LIBPNG_TREE@/$(DEPDIR)/$(am__dirstamp)
+ at LIBPNG_TREE@/pngrtran.$(OBJEXT): @LIBPNG_TREE@/$(am__dirstamp) \
+	@LIBPNG_TREE@/$(DEPDIR)/$(am__dirstamp)
+ at LIBPNG_TREE@/pngrutil.$(OBJEXT): @LIBPNG_TREE@/$(am__dirstamp) \
+	@LIBPNG_TREE@/$(DEPDIR)/$(am__dirstamp)
+ at LIBPNG_TREE@/pngset.$(OBJEXT): @LIBPNG_TREE@/$(am__dirstamp) \
+	@LIBPNG_TREE@/$(DEPDIR)/$(am__dirstamp)
+ at LIBPNG_TREE@/pngtrans.$(OBJEXT): @LIBPNG_TREE@/$(am__dirstamp) \
+	@LIBPNG_TREE@/$(DEPDIR)/$(am__dirstamp)
 @LIBPNG_TREE@/pngwio.$(OBJEXT): @LIBPNG_TREE@/$(am__dirstamp) \
 	@LIBPNG_TREE@/$(DEPDIR)/$(am__dirstamp)
 @LIBPNG_TREE@/pngwrite.$(OBJEXT): @LIBPNG_TREE@/$(am__dirstamp) \
 	@LIBPNG_TREE@/$(DEPDIR)/$(am__dirstamp)
- at LIBPNG_TREE@/pngrtran.$(OBJEXT): @LIBPNG_TREE@/$(am__dirstamp) \
-	@LIBPNG_TREE@/$(DEPDIR)/$(am__dirstamp)
 @LIBPNG_TREE@/pngwtran.$(OBJEXT): @LIBPNG_TREE@/$(am__dirstamp) \
 	@LIBPNG_TREE@/$(DEPDIR)/$(am__dirstamp)
- at LIBPNG_TREE@/pngmem.$(OBJEXT): @LIBPNG_TREE@/$(am__dirstamp) \
+ at LIBPNG_TREE@/pngwutil.$(OBJEXT): @LIBPNG_TREE@/$(am__dirstamp) \
 	@LIBPNG_TREE@/$(DEPDIR)/$(am__dirstamp)
- at LIBPNG_TREE@/pngerror.$(OBJEXT): @LIBPNG_TREE@/$(am__dirstamp) \
-	@LIBPNG_TREE@/$(DEPDIR)/$(am__dirstamp)
- at LIBPNG_TREE@/pngpread.$(OBJEXT): @LIBPNG_TREE@/$(am__dirstamp) \
-	@LIBPNG_TREE@/$(DEPDIR)/$(am__dirstamp)
+ at LIBPNG_TREE@/arm/$(am__dirstamp):
+	@$(MKDIR_P) @LIBPNG_TREE@/arm
+	@: > @LIBPNG_TREE@/arm/$(am__dirstamp)
+ at LIBPNG_TREE@/arm/$(DEPDIR)/$(am__dirstamp):
+	@$(MKDIR_P) @LIBPNG_TREE@/arm/$(DEPDIR)
+	@: > @LIBPNG_TREE@/arm/$(DEPDIR)/$(am__dirstamp)
+ at LIBPNG_TREE@/arm/arm_init.$(OBJEXT):  \
+	@LIBPNG_TREE@/arm/$(am__dirstamp) \
+	@LIBPNG_TREE@/arm/$(DEPDIR)/$(am__dirstamp)
+ at LIBPNG_TREE@/arm/filter_neon.$(OBJEXT):  \
+	@LIBPNG_TREE@/arm/$(am__dirstamp) \
+	@LIBPNG_TREE@/arm/$(DEPDIR)/$(am__dirstamp)
+ at LIBPNG_TREE@/arm/filter_neon_intrinsics.$(OBJEXT):  \
+	@LIBPNG_TREE@/arm/$(am__dirstamp) \
+	@LIBPNG_TREE@/arm/$(DEPDIR)/$(am__dirstamp)
 
 libpng.a: $(libpng_a_OBJECTS) $(libpng_a_DEPENDENCIES) $(EXTRA_libpng_a_DEPENDENCIES) 
 	$(AM_V_at)-rm -f libpng.a
@@ -717,6 +739,7 @@
 mostlyclean-compile:
 	-rm -f *.$(OBJEXT)
 	-rm -f @LIBPNG_TREE@/*.$(OBJEXT)
+	-rm -f @LIBPNG_TREE@/arm/*.$(OBJEXT)
 
 distclean-compile:
 	-rm -f *.tab.c
@@ -737,7 +760,26 @@
 @AMDEP_TRUE@@am__include@ @am__quote@@LIBPNG_TREE@/$(DEPDIR)/pngwrite.Po at am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@@LIBPNG_TREE@/$(DEPDIR)/pngwtran.Po at am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@@LIBPNG_TREE@/$(DEPDIR)/pngwutil.Po at am__quote@
+ at AMDEP_TRUE@@am__include@ @am__quote@@LIBPNG_TREE@/arm/$(DEPDIR)/arm_init.Po at am__quote@
+ at AMDEP_TRUE@@am__include@ @am__quote@@LIBPNG_TREE@/arm/$(DEPDIR)/filter_neon.Po at am__quote@
+ at AMDEP_TRUE@@am__include@ @am__quote@@LIBPNG_TREE@/arm/$(DEPDIR)/filter_neon_intrinsics.Po at am__quote@
 
+.S.o:
+ at am__fastdepCCAS_TRUE@	$(AM_V_CPPAS)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`;\
+ at am__fastdepCCAS_TRUE@	$(CPPASCOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\
+ at am__fastdepCCAS_TRUE@	$(am__mv) $$depbase.Tpo $$depbase.Po
+ at AMDEP_TRUE@@am__fastdepCCAS_FALSE@	$(AM_V_CPPAS)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
+ at AMDEP_TRUE@@am__fastdepCCAS_FALSE@	DEPDIR=$(DEPDIR) $(CCASDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+ at am__fastdepCCAS_FALSE@	$(AM_V_CPPAS at am__nodep@)$(CPPASCOMPILE) -c -o $@ $<
+
+.S.obj:
+ at am__fastdepCCAS_TRUE@	$(AM_V_CPPAS)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.obj$$||'`;\
+ at am__fastdepCCAS_TRUE@	$(CPPASCOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ `$(CYGPATH_W) '$<'` &&\
+ at am__fastdepCCAS_TRUE@	$(am__mv) $$depbase.Tpo $$depbase.Po
+ at AMDEP_TRUE@@am__fastdepCCAS_FALSE@	$(AM_V_CPPAS)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
+ at AMDEP_TRUE@@am__fastdepCCAS_FALSE@	DEPDIR=$(DEPDIR) $(CCASDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+ at am__fastdepCCAS_FALSE@	$(AM_V_CPPAS at am__nodep@)$(CPPASCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
+
 .c.o:
 @am__fastdepCC_TRUE@	$(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`;\
 @am__fastdepCC_TRUE@	$(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\
@@ -1247,6 +1289,8 @@
 	-test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
 	-rm -f @LIBPNG_TREE@/$(DEPDIR)/$(am__dirstamp)
 	-rm -f @LIBPNG_TREE@/$(am__dirstamp)
+	-rm -f @LIBPNG_TREE@/arm/$(DEPDIR)/$(am__dirstamp)
+	-rm -f @LIBPNG_TREE@/arm/$(am__dirstamp)
 	-test -z "$(DISTCLEANFILES)" || rm -f $(DISTCLEANFILES)
 
 maintainer-clean-generic:
@@ -1259,7 +1303,7 @@
 
 distclean: distclean-recursive
 	-rm -f $(am__CONFIG_DISTCLEAN_FILES)
-	-rm -rf @LIBPNG_TREE@/$(DEPDIR)
+	-rm -rf @LIBPNG_TREE@/$(DEPDIR) @LIBPNG_TREE@/arm/$(DEPDIR)
 	-rm -f Makefile
 distclean-am: clean-am distclean-compile distclean-generic \
 	distclean-hdr distclean-tags
@@ -1307,7 +1351,7 @@
 maintainer-clean: maintainer-clean-recursive
 	-rm -f $(am__CONFIG_DISTCLEAN_FILES)
 	-rm -rf $(top_srcdir)/autom4te.cache
-	-rm -rf @LIBPNG_TREE@/$(DEPDIR)
+	-rm -rf @LIBPNG_TREE@/$(DEPDIR) @LIBPNG_TREE@/arm/$(DEPDIR)
 	-rm -f Makefile
 maintainer-clean-am: distclean-am maintainer-clean-generic
 

Modified: trunk/Build/source/libs/libpng/aclocal.m4
===================================================================
--- trunk/Build/source/libs/libpng/aclocal.m4	2017-12-02 23:50:45 UTC (rev 45970)
+++ trunk/Build/source/libs/libpng/aclocal.m4	2017-12-02 23:51:48 UTC (rev 45971)
@@ -56,6 +56,26 @@
   [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
 _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
 
+# Figure out how to run the assembler.                      -*- Autoconf -*-
+
+# Copyright (C) 2001-2017 Free Software Foundation, Inc.
+#
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# AM_PROG_AS
+# ----------
+AC_DEFUN([AM_PROG_AS],
+[# By default we simply use the C compiler to build assembly code.
+AC_REQUIRE([AC_PROG_CC])
+test "${CCAS+set}" = set || CCAS=$CC
+test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
+AC_ARG_VAR([CCAS],      [assembler compiler command (defaults to CC)])
+AC_ARG_VAR([CCASFLAGS], [assembler compiler flags (defaults to CFLAGS)])
+_AM_IF_OPTION([no-dependencies],, [_AM_DEPENDENCIES([CCAS])])dnl
+])
+
 # AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
 
 # Copyright (C) 2001-2017 Free Software Foundation, Inc.

Modified: trunk/Build/source/libs/libpng/config.h.in
===================================================================
--- trunk/Build/source/libs/libpng/config.h.in	2017-12-02 23:50:45 UTC (rev 45970)
+++ trunk/Build/source/libs/libpng/config.h.in	2017-12-02 23:51:48 UTC (rev 45971)
@@ -54,6 +54,15 @@
 /* Define to the version of this package. */
 #undef PACKAGE_VERSION
 
+/* Turn on ARM Neon optimizations at run-time */
+#undef PNG_ARM_NEON_API_SUPPORTED
+
+/* Check for ARM Neon support at run-time */
+#undef PNG_ARM_NEON_CHECK_SUPPORTED
+
+/* Enable ARM Neon optimizations */
+#undef PNG_ARM_NEON_OPT
+
 /* Define to 1 if you have the ANSI C header files. */
 #undef STDC_HEADERS
 

Modified: trunk/Build/source/libs/libpng/configure
===================================================================
--- trunk/Build/source/libs/libpng/configure	2017-12-02 23:50:45 UTC (rev 45970)
+++ trunk/Build/source/libs/libpng/configure	2017-12-02 23:51:48 UTC (rev 45971)
@@ -625,6 +625,8 @@
 ac_subst_vars='am__EXEEXT_FALSE
 am__EXEEXT_TRUE
 LTLIBOBJS
+PNG_ARM_NEON_FALSE
+PNG_ARM_NEON_TRUE
 LIBPNG_DEFINES
 LIBPNG_TREE
 build_FALSE
@@ -641,6 +643,11 @@
 VISIBILITY_CFLAGS
 LN_S
 RANLIB
+am__fastdepCCAS_FALSE
+am__fastdepCCAS_TRUE
+CCASDEPMODE
+CCASFLAGS
+CCAS
 WARNING_CFLAGS
 am__fastdepCC_FALSE
 am__fastdepCC_TRUE
@@ -737,6 +744,7 @@
 with_system_zlib
 with_zlib_includes
 with_zlib_libdir
+enable_arm_neon
 '
       ac_precious_vars='build_alias
 host_alias
@@ -746,6 +754,8 @@
 LDFLAGS
 LIBS
 CPPFLAGS
+CCAS
+CCASFLAGS
 CPP'
 
 
@@ -1374,6 +1384,13 @@
   --enable-compiler-warnings=[no|min|yes|max|all]
                           Turn on compiler warnings [default: yes if
                           maintainer-mode, min otherwise]
+  --enable-arm-neon     Enable ARM NEON optimizations: =no/off, check, api,
+                          yes/on: no/off: disable the optimizations; check:
+                          use internal checking code (deprecated and poorly
+                          supported); api: disable by default, enable by a
+                          call to png_set_option; yes/on: turn on
+                          unconditionally. If not specified: determined by the
+                          compiler.
 
 Optional Packages:
   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
@@ -1391,6 +1408,8 @@
   LIBS        libraries to pass to the linker, e.g. -l<library>
   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
               you have headers in a nonstandard directory <include dir>
+  CCAS        assembler compiler command (defaults to CC)
+  CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
   CPP         C preprocessor
 
 Use these variables to override the choices made by `configure' or to help
@@ -4732,6 +4751,139 @@
 fi
 
 
+# By default we simply use the C compiler to build assembly code.
+
+test "${CCAS+set}" = set || CCAS=$CC
+test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
+
+
+
+depcc="$CCAS"   am_compiler_list=
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
+$as_echo_n "checking dependency style of $depcc... " >&6; }
+if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
+  # We make a subdir and do the tests there.  Otherwise we can end up
+  # making bogus files that we don't know about and never remove.  For
+  # instance it was reported that on HP-UX the gcc test will end up
+  # making a dummy file named 'D' -- because '-MD' means "put the output
+  # in D".
+  rm -rf conftest.dir
+  mkdir conftest.dir
+  # Copy depcomp to subdir because otherwise we won't find it if we're
+  # using a relative directory.
+  cp "$am_depcomp" conftest.dir
+  cd conftest.dir
+  # We will build objects and dependencies in a subdirectory because
+  # it helps to detect inapplicable dependency modes.  For instance
+  # both Tru64's cc and ICC support -MD to output dependencies as a
+  # side effect of compilation, but ICC will put the dependencies in
+  # the current directory while Tru64 will put them in the object
+  # directory.
+  mkdir sub
+
+  am_cv_CCAS_dependencies_compiler_type=none
+  if test "$am_compiler_list" = ""; then
+     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
+  fi
+  am__universal=false
+
+
+  for depmode in $am_compiler_list; do
+    # Setup a source with many dependencies, because some compilers
+    # like to wrap large dependency lists on column 80 (with \), and
+    # we should not choose a depcomp mode which is confused by this.
+    #
+    # We need to recreate these files for each test, as the compiler may
+    # overwrite some of them when testing with obscure command lines.
+    # This happens at least with the AIX C compiler.
+    : > sub/conftest.c
+    for i in 1 2 3 4 5 6; do
+      echo '#include "conftst'$i'.h"' >> sub/conftest.c
+      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
+      # Solaris 10 /bin/sh.
+      echo '/* dummy */' > sub/conftst$i.h
+    done
+    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
+
+    # We check with '-c' and '-o' for the sake of the "dashmstdout"
+    # mode.  It turns out that the SunPro C++ compiler does not properly
+    # handle '-M -o', and we need to detect this.  Also, some Intel
+    # versions had trouble with output in subdirs.
+    am__obj=sub/conftest.${OBJEXT-o}
+    am__minus_obj="-o $am__obj"
+    case $depmode in
+    gcc)
+      # This depmode causes a compiler race in universal mode.
+      test "$am__universal" = false || continue
+      ;;
+    nosideeffect)
+      # After this tag, mechanisms are not by side-effect, so they'll
+      # only be used when explicitly requested.
+      if test "x$enable_dependency_tracking" = xyes; then
+	continue
+      else
+	break
+      fi
+      ;;
+    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
+      # This compiler won't grok '-c -o', but also, the minuso test has
+      # not run yet.  These depmodes are late enough in the game, and
+      # so weak that their functioning should not be impacted.
+      am__obj=conftest.${OBJEXT-o}
+      am__minus_obj=
+      ;;
+    none) break ;;
+    esac
+    if depmode=$depmode \
+       source=sub/conftest.c object=$am__obj \
+       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
+       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
+         >/dev/null 2>conftest.err &&
+       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
+       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
+       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
+       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
+      # icc doesn't choke on unknown options, it will just issue warnings
+      # or remarks (even with -Werror).  So we grep stderr for any message
+      # that says an option was ignored or not supported.
+      # When given -MP, icc 7.0 and 7.1 complain thusly:
+      #   icc: Command line warning: ignoring option '-M'; no argument required
+      # The diagnosis changed in icc 8.0:
+      #   icc: Command line remark: option '-MP' not supported
+      if (grep 'ignoring option' conftest.err ||
+          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
+        am_cv_CCAS_dependencies_compiler_type=$depmode
+        break
+      fi
+    fi
+  done
+
+  cd ..
+  rm -rf conftest.dir
+else
+  am_cv_CCAS_dependencies_compiler_type=none
+fi
+
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
+$as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
+CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
+
+ if
+  test "x$enable_dependency_tracking" != xno \
+  && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
+  am__fastdepCCAS_TRUE=
+  am__fastdepCCAS_FALSE='#'
+else
+  am__fastdepCCAS_TRUE='#'
+  am__fastdepCCAS_FALSE=
+fi
+
+
 if test -n "$ac_tool_prefix"; then
   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
@@ -4836,6 +4988,7 @@
 fi
 
 
+echo 'dbg:_KPSE_COMPILER_VISIBILITY called.' >&5
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for C to hide external symbols" >&5
 $as_echo_n "checking CFLAGS for C to hide external symbols... " >&6; }
 if ${kpse_cv_visibility_cflags+:} false; then :
@@ -4863,6 +5016,7 @@
 fi
 rm -f core conftest.err conftest.$ac_objext
 done
+CFLAGS=$kpse_save_flags
 ac_ext=c
 ac_cpp='$CPP $CPPFLAGS'
 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
@@ -4873,7 +5027,6 @@
 fi
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kpse_cv_visibility_cflags" >&5
 $as_echo "$kpse_cv_visibility_cflags" >&6; }
-CFLAGS=$kpse_save_flags
 case $kpse_cv_visibility_cflags in #(
   unknown) :
      ;; #(
@@ -4889,6 +5042,7 @@
 ac_config_headers="$ac_config_headers config.h"
 
 
+if false; then
 # For GCC 5 the default mode for C is -std=gnu11 instead of -std=gnu89
 # In pngpriv.h we request just the POSIX 1003.1 and C89 APIs by defining _POSIX_SOURCE to 1
 # This is incompatible with the new default mode, so we test for that and force the
@@ -4921,6 +5075,7 @@
 
 fi
 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
 
 # Checks for header files.
 ac_ext=c
@@ -5813,6 +5968,63 @@
 LIBPNG_DEFINES='-DPNG_CONFIGURE_LIBPNG -DPNG_NO_MMX_CODE'
 
 
+# emacs-page
+# ARM
+# ===
+#
+# ARM NEON (SIMD) support.
+
+# Check whether --enable-arm-neon was given.
+if test "${enable_arm_neon+set}" = set; then :
+  enableval=$enable_arm_neon; case "$enableval" in
+      no|off)
+         # disable the default enabling on __ARM_NEON__ systems:
+
+$as_echo "#define PNG_ARM_NEON_OPT 0" >>confdefs.h
+
+         # Prevent inclusion of the assembler files below:
+         enable_arm_neon=no;;
+      check)
+
+$as_echo "#define PNG_ARM_NEON_CHECK_SUPPORTED /**/" >>confdefs.h
+;;
+      api)
+
+$as_echo "#define PNG_ARM_NEON_API_SUPPORTED /**/" >>confdefs.h
+;;
+      yes|on)
+
+$as_echo "#define PNG_ARM_NEON_OPT 2" >>confdefs.h
+
+         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-arm-neon: please specify 'check' or 'api', if
+            you want the optimizations unconditionally pass -mfpu=neon
+            to the compiler." >&5
+$as_echo "$as_me: WARNING: --enable-arm-neon: please specify 'check' or 'api', if
+            you want the optimizations unconditionally pass -mfpu=neon
+            to the compiler." >&2;};;
+      *)
+         as_fn_error $? "--enable-arm-neon=${enable_arm_neon}: invalid value" "$LINENO" 5
+   esac
+fi
+
+
+# Add ARM specific files to all builds where the host_cpu is arm ('arm*') or
+# where ARM optimizations were explicitly requested (this allows a fallback if a
+# future host CPU does not match 'arm*')
+
+ if test "$enable_arm_neon" != 'no' &&
+    case "$host_cpu" in
+      arm*|aarch64*) :;;
+      *)    test "$enable_arm_neon" != '';;
+    esac; then
+  PNG_ARM_NEON_TRUE=
+  PNG_ARM_NEON_FALSE='#'
+else
+  PNG_ARM_NEON_TRUE='#'
+  PNG_ARM_NEON_FALSE=
+fi
+
+
 ac_config_files="$ac_config_files Makefile include/Makefile"
 
 
@@ -5957,10 +6169,18 @@
   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
 Usually this means the macro was only invoked conditionally." "$LINENO" 5
 fi
+if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
+  as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
+Usually this means the macro was only invoked conditionally." "$LINENO" 5
+fi
 if test -z "${build_TRUE}" && test -z "${build_FALSE}"; then
   as_fn_error $? "conditional \"build\" was never defined.
 Usually this means the macro was only invoked conditionally." "$LINENO" 5
 fi
+if test -z "${PNG_ARM_NEON_TRUE}" && test -z "${PNG_ARM_NEON_FALSE}"; then
+  as_fn_error $? "conditional \"PNG_ARM_NEON\" was never defined.
+Usually this means the macro was only invoked conditionally." "$LINENO" 5
+fi
 
 : "${CONFIG_STATUS=./config.status}"
 ac_write_fail=0

Modified: trunk/Build/source/libs/libpng/configure.ac
===================================================================
--- trunk/Build/source/libs/libpng/configure.ac	2017-12-02 23:50:45 UTC (rev 45970)
+++ trunk/Build/source/libs/libpng/configure.ac	2017-12-02 23:51:48 UTC (rev 45971)
@@ -1,7 +1,8 @@
+dnl $Id$
 dnl Process this file with autoconf to produce a configure script.
 dnl
-dnl   Copyright (C) 2016 Karl Berry <tex-live at tug.org>
-dnl   Copyright (C) 2009-2015 Peter Breitenlohner <tex-live at tug.org>
+dnl   Copyright 2016-2017 Karl Berry <tex-live at tug.org>
+dnl   Copyright 2009-2015 Peter Breitenlohner <tex-live at tug.org>
 dnl
 dnl   This file is free software; the copyright holder
 dnl   gives unlimited permission to copy and/or distribute it,
@@ -17,6 +18,7 @@
 KPSE_BASIC([libpng])
 
 AC_PROG_CC
+AM_PROG_AS
 AC_PROG_RANLIB
 AC_PROG_LN_S
 
@@ -24,6 +26,7 @@
 
 AC_CONFIG_HEADERS([config.h])
 
+if false; then
 # For GCC 5 the default mode for C is -std=gnu11 instead of -std=gnu89
 # In pngpriv.h we request just the POSIX 1003.1 and C89 APIs by defining _POSIX_SOURCE to 1
 # This is incompatible with the new default mode, so we test for that and force the 
@@ -37,6 +40,7 @@
 AC_MSG_RESULT(yes)
 CFLAGS="$CFLAGS -std=c89"
 ])
+fi
 
 # Checks for header files.
 AC_HEADER_STDC
@@ -70,6 +74,53 @@
 
 AC_SUBST([LIBPNG_DEFINES], ['-DPNG_CONFIGURE_LIBPNG -DPNG_NO_MMX_CODE'])
 
+# emacs-page
+# ARM
+# ===
+#
+# ARM NEON (SIMD) support.
+
+AC_ARG_ENABLE([arm-neon],
+   AS_HELP_STRING([[[--enable-arm-neon]]],
+      [Enable ARM NEON optimizations: =no/off, check, api, yes/on:]
+      [no/off: disable the optimizations; check: use internal checking code]
+      [(deprecated and poorly supported); api: disable by default, enable by]
+      [a call to png_set_option; yes/on: turn on unconditionally.]
+      [If not specified: determined by the compiler.]),
+   [case "$enableval" in
+      no|off)
+         # disable the default enabling on __ARM_NEON__ systems:
+         AC_DEFINE([PNG_ARM_NEON_OPT], [0],
+                   [Disable ARM Neon optimizations])
+         # Prevent inclusion of the assembler files below:
+         enable_arm_neon=no;;
+      check)
+         AC_DEFINE([PNG_ARM_NEON_CHECK_SUPPORTED], [],
+                   [Check for ARM Neon support at run-time]);;
+      api)
+         AC_DEFINE([PNG_ARM_NEON_API_SUPPORTED], [],
+                   [Turn on ARM Neon optimizations at run-time]);;
+      yes|on)
+         AC_DEFINE([PNG_ARM_NEON_OPT], [2],
+                   [Enable ARM Neon optimizations])
+         AC_MSG_WARN([--enable-arm-neon: please specify 'check' or 'api', if]
+            [you want the optimizations unconditionally pass -mfpu=neon]
+            [to the compiler.]);;
+      *)
+         AC_MSG_ERROR([--enable-arm-neon=${enable_arm_neon}: invalid value])
+   esac])
+
+# Add ARM specific files to all builds where the host_cpu is arm ('arm*') or
+# where ARM optimizations were explicitly requested (this allows a fallback if a
+# future host CPU does not match 'arm*')
+
+AM_CONDITIONAL([PNG_ARM_NEON],
+   [test "$enable_arm_neon" != 'no' &&
+    case "$host_cpu" in
+      arm*|aarch64*) :;;
+      *)    test "$enable_arm_neon" != '';;
+    esac])
+
 AC_CONFIG_FILES([Makefile include/Makefile])
 
 AC_OUTPUT


Property changes on: trunk/Build/source/libs/libpng/configure.ac
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Date Author Id
\ No newline at end of property
Modified: trunk/Build/source/libs/libpng/include/Makefile.in
===================================================================
--- trunk/Build/source/libs/libpng/include/Makefile.in	2017-12-02 23:50:45 UTC (rev 45970)
+++ trunk/Build/source/libs/libpng/include/Makefile.in	2017-12-02 23:51:48 UTC (rev 45971)
@@ -130,6 +130,9 @@
 AUTOMAKE = @AUTOMAKE@
 AWK = @AWK@
 CC = @CC@
+CCAS = @CCAS@
+CCASDEPMODE = @CCASDEPMODE@
+CCASFLAGS = @CCASFLAGS@
 CCDEPMODE = @CCDEPMODE@
 CFLAGS = @CFLAGS@
 CPP = @CPP@



More information about the tex-live-commits mailing list