Skip to content
This repository has been archived by the owner on Mar 6, 2023. It is now read-only.

Commit

Permalink
sync with experimental revision 7314.
Browse files Browse the repository at this point in the history
git-svn-id: https://serveur-svn.lri.fr/svn/modhel/luatex/trunk@7315 0b2b3880-5936-4365-a048-eb17d2e5a6bf
  • Loading branch information
luigiScarso committed Mar 24, 2020
1 parent 1066b3a commit e97493d
Show file tree
Hide file tree
Showing 18 changed files with 246 additions and 60 deletions.
8 changes: 4 additions & 4 deletions source/configure
Original file line number Diff line number Diff line change
Expand Up @@ -3968,7 +3968,7 @@ case $enable_luajittex in #(
: ;; #(
*) :
case $host in #(
alpha* | sparc* | x86_64-*-solaris* | powerpc-* ) :
alpha* | sparc* | x86_64-*-solaris* | powerpc* ) :
{ $as_echo "$as_me:${as_lineno-$LINENO}: $host -> \`--disable-luajittex'" >&5
$as_echo "$as_me: $host -> \`--disable-luajittex'" >&6;}
ac_configure_args="$ac_configure_args '--disable-luajittex'" ;; #(
Expand All @@ -3981,7 +3981,7 @@ case $enable_luajithbtex in #(
: ;; #(
*) :
case $host in #(
alpha* | sparc* | x86_64-*-solaris* | powerpc-* ) :
alpha* | sparc* | x86_64-*-solaris* | powerpc* ) :
{ $as_echo "$as_me:${as_lineno-$LINENO}: $host -> \`--disable-luajithbtex'" >&5
$as_echo "$as_me: $host -> \`--disable-luajithbtex'" >&6;}
ac_configure_args="$ac_configure_args '--disable-luajithbtex'" ;; #(
Expand All @@ -3994,7 +3994,7 @@ case $enable_mfluajit in #(
: ;; #(
*) :
case $host in #(
alpha* | sparc* | x86_64-*-solaris* | powerpc-* ) :
alpha* | sparc* | x86_64-*-solaris* | powerpc* ) :
{ $as_echo "$as_me:${as_lineno-$LINENO}: $host -> \`--disable-mfluajit'" >&5
$as_echo "$as_me: $host -> \`--disable-mfluajit'" >&6;}
ac_configure_args="$ac_configure_args '--disable-mfluajit'" ;; #(
Expand All @@ -4007,7 +4007,7 @@ case $enable_mfluajit_nowin in #(
: ;; #(
*) :
case $host in #(
alpha* | sparc* | x86_64-*-solaris* | powerpc-* ) :
alpha* | sparc* | x86_64-*-solaris* | powerpc* ) :
{ $as_echo "$as_me:${as_lineno-$LINENO}: $host -> \`--disable-mfluajit-nowin'" >&5
$as_echo "$as_me: $host -> \`--disable-mfluajit-nowin'" >&6;}
ac_configure_args="$ac_configure_args '--disable-mfluajit-nowin'" ;; #(
Expand Down
8 changes: 4 additions & 4 deletions source/libs/configure
Original file line number Diff line number Diff line change
Expand Up @@ -3148,7 +3148,7 @@ case $enable_luajittex in #(
: ;; #(
*) :
case $host in #(
alpha* | sparc* | x86_64-*-solaris* | powerpc-* ) :
alpha* | sparc* | x86_64-*-solaris* | powerpc* ) :
{ $as_echo "$as_me:${as_lineno-$LINENO}: $host -> \`--disable-luajittex'" >&5
$as_echo "$as_me: $host -> \`--disable-luajittex'" >&6;}
ac_configure_args="$ac_configure_args '--disable-luajittex'" ;; #(
Expand All @@ -3161,7 +3161,7 @@ case $enable_luajithbtex in #(
: ;; #(
*) :
case $host in #(
alpha* | sparc* | x86_64-*-solaris* | powerpc-* ) :
alpha* | sparc* | x86_64-*-solaris* | powerpc* ) :
{ $as_echo "$as_me:${as_lineno-$LINENO}: $host -> \`--disable-luajithbtex'" >&5
$as_echo "$as_me: $host -> \`--disable-luajithbtex'" >&6;}
ac_configure_args="$ac_configure_args '--disable-luajithbtex'" ;; #(
Expand All @@ -3174,7 +3174,7 @@ case $enable_mfluajit in #(
: ;; #(
*) :
case $host in #(
alpha* | sparc* | x86_64-*-solaris* | powerpc-* ) :
alpha* | sparc* | x86_64-*-solaris* | powerpc* ) :
{ $as_echo "$as_me:${as_lineno-$LINENO}: $host -> \`--disable-mfluajit'" >&5
$as_echo "$as_me: $host -> \`--disable-mfluajit'" >&6;}
ac_configure_args="$ac_configure_args '--disable-mfluajit'" ;; #(
Expand All @@ -3187,7 +3187,7 @@ case $enable_mfluajit_nowin in #(
: ;; #(
*) :
case $host in #(
alpha* | sparc* | x86_64-*-solaris* | powerpc-* ) :
alpha* | sparc* | x86_64-*-solaris* | powerpc* ) :
{ $as_echo "$as_me:${as_lineno-$LINENO}: $host -> \`--disable-mfluajit-nowin'" >&5
$as_echo "$as_me: $host -> \`--disable-mfluajit-nowin'" >&6;}
ac_configure_args="$ac_configure_args '--disable-mfluajit-nowin'" ;; #(
Expand Down
9 changes: 9 additions & 0 deletions source/libs/libpng/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
2020-03-14 Karl Berry <karl@freefriends.org>

Import VSX support from upstream to TL configure.
* configure.ac (powerpc-vsx): new AC_ARG_ENABLE, copied
from libpng-src/configure.ac.
* Makefile.am (nodist_libpng_a_SOURCES) [PNG_POWERPC_VSX]:
add powerpc/*.c, copied from libpng-src/Makefile.am.
From Johannes Hielscher, tlbuild mail 16 Feb 2020 23:09:54 (item 2).

2019-05-03 Akira Kakuto <kakuto@w32tex.org>

Import libpng-1.6.37.
Expand Down
9 changes: 7 additions & 2 deletions source/libs/libpng/Makefile.am
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
## $Id: Makefile.am 50024 2019-02-14 17:11:10Z karl $
## $Id: Makefile.am 54291 2020-03-14 16:03:19Z karl $
## Proxy Makefile.am to build libpng for TeX Live.
##
## Copyright 2016-2017 Karl Berry <tex-live@tug.org>
## Copyright 2016-2020 Karl Berry <tex-live@tug.org>
## Copyright 2009-2015 Peter Breitenlohner <tex-live@tug.org>
##
## This file is free software; the copyright holder
Expand Down Expand Up @@ -49,6 +49,11 @@ nodist_libpng_a_SOURCES += @LIBPNG_TREE@/arm/arm_init.c\
@LIBPNG_TREE@/arm/palette_neon_intrinsics.c
endif

if PNG_POWERPC_VSX
nodist_libpng_a_SOURCES += @LIBPNG_TREE@/powerpc/powerpc_init.c\
@LIBPNG_TREE@/powerpc/filter_vsx_intrinsics.c
endif

$(libpng_a_OBJECTS): config.force

## Tests
Expand Down
35 changes: 32 additions & 3 deletions source/libs/libpng/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,9 @@ POST_UNINSTALL = :
@PNG_ARM_NEON_TRUE@ @LIBPNG_TREE@/arm/filter_neon.S @LIBPNG_TREE@/arm/filter_neon_intrinsics.c \
@PNG_ARM_NEON_TRUE@ @LIBPNG_TREE@/arm/palette_neon_intrinsics.c

@PNG_POWERPC_VSX_TRUE@am__append_2 = @LIBPNG_TREE@/powerpc/powerpc_init.c\
@PNG_POWERPC_VSX_TRUE@ @LIBPNG_TREE@/powerpc/filter_vsx_intrinsics.c

@build_TRUE@check_PROGRAMS = pngtest$(EXEEXT)
subdir = .
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
Expand Down Expand Up @@ -124,6 +127,8 @@ am__dirstamp = $(am__leading_dot)dirstamp
@PNG_ARM_NEON_TRUE@ @LIBPNG_TREE@/arm/filter_neon.$(OBJEXT) \
@PNG_ARM_NEON_TRUE@ @LIBPNG_TREE@/arm/filter_neon_intrinsics.$(OBJEXT) \
@PNG_ARM_NEON_TRUE@ @LIBPNG_TREE@/arm/palette_neon_intrinsics.$(OBJEXT)
@PNG_POWERPC_VSX_TRUE@am__objects_2 = @LIBPNG_TREE@/powerpc/powerpc_init.$(OBJEXT) \
@PNG_POWERPC_VSX_TRUE@ @LIBPNG_TREE@/powerpc/filter_vsx_intrinsics.$(OBJEXT)
nodist_libpng_a_OBJECTS = @LIBPNG_TREE@/png.$(OBJEXT) \
@LIBPNG_TREE@/pngerror.$(OBJEXT) \
@LIBPNG_TREE@/pngget.$(OBJEXT) @LIBPNG_TREE@/pngmem.$(OBJEXT) \
Expand All @@ -136,7 +141,8 @@ nodist_libpng_a_OBJECTS = @LIBPNG_TREE@/png.$(OBJEXT) \
@LIBPNG_TREE@/pngwio.$(OBJEXT) \
@LIBPNG_TREE@/pngwrite.$(OBJEXT) \
@LIBPNG_TREE@/pngwtran.$(OBJEXT) \
@LIBPNG_TREE@/pngwutil.$(OBJEXT) $(am__objects_1)
@LIBPNG_TREE@/pngwutil.$(OBJEXT) $(am__objects_1) \
$(am__objects_2)
libpng_a_OBJECTS = $(nodist_libpng_a_OBJECTS)
nodist_pngtest_OBJECTS = @LIBPNG_TREE@/pngtest.$(OBJEXT)
pngtest_OBJECTS = $(nodist_pngtest_OBJECTS)
Expand Down Expand Up @@ -177,7 +183,9 @@ am__depfiles_remade = @LIBPNG_TREE@/$(DEPDIR)/png.Po \
@LIBPNG_TREE@/arm/$(DEPDIR)/arm_init.Po \
@LIBPNG_TREE@/arm/$(DEPDIR)/filter_neon.Po \
@LIBPNG_TREE@/arm/$(DEPDIR)/filter_neon_intrinsics.Po \
@LIBPNG_TREE@/arm/$(DEPDIR)/palette_neon_intrinsics.Po
@LIBPNG_TREE@/arm/$(DEPDIR)/palette_neon_intrinsics.Po \
@LIBPNG_TREE@/powerpc/$(DEPDIR)/filter_vsx_intrinsics.Po \
@LIBPNG_TREE@/powerpc/$(DEPDIR)/powerpc_init.Po
am__mv = mv -f
CPPASCOMPILE = $(CCAS) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
$(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CCASFLAGS) $(CCASFLAGS)
Expand Down Expand Up @@ -621,7 +629,7 @@ nodist_libpng_a_SOURCES = @LIBPNG_TREE@/png.c @LIBPNG_TREE@/pngerror.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)
@LIBPNG_TREE@/pngwutil.c $(am__append_1) $(am__append_2)
AM_TESTS_ENVIRONMENT = LIBPNG_TREE=$(LIBPNG_TREE); export LIBPNG_TREE;
@build_TRUE@TESTS = libpng.test
@build_TRUE@dist_check_SCRIPTS = libpng.test
Expand Down Expand Up @@ -750,6 +758,18 @@ clean-noinstLIBRARIES:
@LIBPNG_TREE@/arm/palette_neon_intrinsics.$(OBJEXT): \
@LIBPNG_TREE@/arm/$(am__dirstamp) \
@LIBPNG_TREE@/arm/$(DEPDIR)/$(am__dirstamp)
@LIBPNG_TREE@/powerpc/$(am__dirstamp):
@$(MKDIR_P) @LIBPNG_TREE@/powerpc
@: > @LIBPNG_TREE@/powerpc/$(am__dirstamp)
@LIBPNG_TREE@/powerpc/$(DEPDIR)/$(am__dirstamp):
@$(MKDIR_P) @LIBPNG_TREE@/powerpc/$(DEPDIR)
@: > @LIBPNG_TREE@/powerpc/$(DEPDIR)/$(am__dirstamp)
@LIBPNG_TREE@/powerpc/powerpc_init.$(OBJEXT): \
@LIBPNG_TREE@/powerpc/$(am__dirstamp) \
@LIBPNG_TREE@/powerpc/$(DEPDIR)/$(am__dirstamp)
@LIBPNG_TREE@/powerpc/filter_vsx_intrinsics.$(OBJEXT): \
@LIBPNG_TREE@/powerpc/$(am__dirstamp) \
@LIBPNG_TREE@/powerpc/$(DEPDIR)/$(am__dirstamp)

libpng.a: $(libpng_a_OBJECTS) $(libpng_a_DEPENDENCIES) $(EXTRA_libpng_a_DEPENDENCIES)
$(AM_V_at)-rm -f libpng.a
Expand All @@ -766,6 +786,7 @@ mostlyclean-compile:
-rm -f *.$(OBJEXT)
-rm -f @LIBPNG_TREE@/*.$(OBJEXT)
-rm -f @LIBPNG_TREE@/arm/*.$(OBJEXT)
-rm -f @LIBPNG_TREE@/powerpc/*.$(OBJEXT)

distclean-compile:
-rm -f *.tab.c
Expand All @@ -790,6 +811,8 @@ distclean-compile:
@AMDEP_TRUE@@am__include@ @am__quote@@LIBPNG_TREE@/arm/$(DEPDIR)/filter_neon.Po@am__quote@ # am--include-marker
@AMDEP_TRUE@@am__include@ @am__quote@@LIBPNG_TREE@/arm/$(DEPDIR)/filter_neon_intrinsics.Po@am__quote@ # am--include-marker
@AMDEP_TRUE@@am__include@ @am__quote@@LIBPNG_TREE@/arm/$(DEPDIR)/palette_neon_intrinsics.Po@am__quote@ # am--include-marker
@AMDEP_TRUE@@am__include@ @am__quote@@LIBPNG_TREE@/powerpc/$(DEPDIR)/filter_vsx_intrinsics.Po@am__quote@ # am--include-marker
@AMDEP_TRUE@@am__include@ @am__quote@@LIBPNG_TREE@/powerpc/$(DEPDIR)/powerpc_init.Po@am__quote@ # am--include-marker

$(am__depfiles_remade):
@$(MKDIR_P) $(@D)
Expand Down Expand Up @@ -1327,6 +1350,8 @@ distclean-generic:
-rm -f @LIBPNG_TREE@/$(am__dirstamp)
-rm -f @LIBPNG_TREE@/arm/$(DEPDIR)/$(am__dirstamp)
-rm -f @LIBPNG_TREE@/arm/$(am__dirstamp)
-rm -f @LIBPNG_TREE@/powerpc/$(DEPDIR)/$(am__dirstamp)
-rm -f @LIBPNG_TREE@/powerpc/$(am__dirstamp)
-test -z "$(DISTCLEANFILES)" || rm -f $(DISTCLEANFILES)

maintainer-clean-generic:
Expand Down Expand Up @@ -1359,6 +1384,8 @@ distclean: distclean-recursive
-rm -f @LIBPNG_TREE@/arm/$(DEPDIR)/filter_neon.Po
-rm -f @LIBPNG_TREE@/arm/$(DEPDIR)/filter_neon_intrinsics.Po
-rm -f @LIBPNG_TREE@/arm/$(DEPDIR)/palette_neon_intrinsics.Po
-rm -f @LIBPNG_TREE@/powerpc/$(DEPDIR)/filter_vsx_intrinsics.Po
-rm -f @LIBPNG_TREE@/powerpc/$(DEPDIR)/powerpc_init.Po
-rm -f Makefile
distclean-am: clean-am distclean-compile distclean-generic \
distclean-hdr distclean-tags
Expand Down Expand Up @@ -1426,6 +1453,8 @@ maintainer-clean: maintainer-clean-recursive
-rm -f @LIBPNG_TREE@/arm/$(DEPDIR)/filter_neon.Po
-rm -f @LIBPNG_TREE@/arm/$(DEPDIR)/filter_neon_intrinsics.Po
-rm -f @LIBPNG_TREE@/arm/$(DEPDIR)/palette_neon_intrinsics.Po
-rm -f @LIBPNG_TREE@/powerpc/$(DEPDIR)/filter_vsx_intrinsics.Po
-rm -f @LIBPNG_TREE@/powerpc/$(DEPDIR)/powerpc_init.Po
-rm -f Makefile
maintainer-clean-am: distclean-am maintainer-clean-generic

Expand Down
9 changes: 9 additions & 0 deletions source/libs/libpng/config.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,15 @@
/* Enable ARM Neon optimizations */
#undef PNG_ARM_NEON_OPT

/* Turn on POWERPC VSX optimizations at run-time */
#undef PNG_POWERPC_VSX_API_SUPPORTED

/* Check for POWERPC VSX support at run-time */
#undef PNG_POWERPC_VSX_CHECK_SUPPORTED

/* Enable POWERPC VSX optimizations */
#undef PNG_POWERPC_VSX_OPT

/* Define to 1 if you have the ANSI C header files. */
#undef STDC_HEADERS

Expand Down
74 changes: 74 additions & 0 deletions source/libs/libpng/configure
Original file line number Diff line number Diff line change
Expand Up @@ -625,6 +625,8 @@ ac_includes_default="\
ac_subst_vars='am__EXEEXT_FALSE
am__EXEEXT_TRUE
LTLIBOBJS
PNG_POWERPC_VSX_FALSE
PNG_POWERPC_VSX_TRUE
PNG_ARM_NEON_FALSE
PNG_ARM_NEON_TRUE
LIBPNG_DEFINES
Expand Down Expand Up @@ -745,6 +747,7 @@ with_system_zlib
with_zlib_includes
with_zlib_libdir
enable_arm_neon
enable_powerpc_vsx
'
ac_precious_vars='build_alias
host_alias
Expand Down Expand Up @@ -1391,6 +1394,12 @@ Optional Features:
call to png_set_option; yes/on: turn on
unconditionally. If not specified: determined by the
compiler.
--enable-powerpc-vsx Enable POWERPC VSX optimizations: =no/off, check,
api, yes/on: no/off: disable the optimizations;
check: use internal checking code 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]
Expand Down Expand Up @@ -6029,6 +6038,67 @@ else
fi


# emacs-page
# PowerPC
# ===
#
# PowerPC VSX (SIMD) support.

# Check whether --enable-powerpc-vsx was given.
if test "${enable_powerpc_vsx+set}" = set; then :
enableval=$enable_powerpc_vsx; case "$enableval" in
no|off)
# disable the default enabling on __ppc64__ systems:

$as_echo "#define PNG_POWERPC_VSX_OPT 0" >>confdefs.h

# Prevent inclusion of the platform specific files below:
enable_powerpc_vsx=no;;
check)

$as_echo "#define PNG_POWERPC_VSX_CHECK_SUPPORTED /**/" >>confdefs.h

{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-powerpc-vsx Please check contrib/powerpc/README file
for the list of supported OSes." >&5
$as_echo "$as_me: WARNING: --enable-powerpc-vsx Please check contrib/powerpc/README file
for the list of supported OSes." >&2;};;
api)

$as_echo "#define PNG_POWERPC_VSX_API_SUPPORTED /**/" >>confdefs.h
;;
yes|on)

$as_echo "#define PNG_POWERPC_VSX_OPT 2" >>confdefs.h

{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-powerpc-vsx: please specify 'check' or 'api', if
you want the optimizations unconditionally pass '-maltivec -mvsx'
or '-mcpu=power8'to the compiler." >&5
$as_echo "$as_me: WARNING: --enable-powerpc-vsx: please specify 'check' or 'api', if
you want the optimizations unconditionally pass '-maltivec -mvsx'
or '-mcpu=power8'to the compiler." >&2;};;
*)
as_fn_error $? "--enable-powerpc-vsx=${enable_powerpc_vsx}: invalid value" "$LINENO" 5
esac
fi


# Add PowerPC specific files to all builds where the host_cpu is powerpc('powerpc*') or
# where POWERPC optimizations were explicitly requested (this allows a fallback if a
# future host CPU does not match 'powerpc*')

if test "$enable_powerpc_vsx" != 'no' &&
case "$host_cpu" in
powerpc*|ppc64*) :;;
esac; then
PNG_POWERPC_VSX_TRUE=
PNG_POWERPC_VSX_FALSE='#'
else
PNG_POWERPC_VSX_TRUE='#'
PNG_POWERPC_VSX_FALSE=
fi



ac_config_files="$ac_config_files Makefile include/Makefile"


Expand Down Expand Up @@ -6185,6 +6255,10 @@ 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
if test -z "${PNG_POWERPC_VSX_TRUE}" && test -z "${PNG_POWERPC_VSX_FALSE}"; then
as_fn_error $? "conditional \"PNG_POWERPC_VSX\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
: "${CONFIG_STATUS=./config.status}"
ac_write_fail=0
Expand Down
Loading

0 comments on commit e97493d

Please sign in to comment.