diff options
author | Karl Berry <karl@freefriends.org> | 2021-02-25 19:22:25 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2021-02-25 19:22:25 +0000 |
commit | ad547a6b5986815fda458221149728d9d9ab1d87 (patch) | |
tree | 16296910eb3eca724371474ea9aea3994dc69614 /Build/source/texk/dvipng/m4 | |
parent | 947b43de3dd21d58ccc2ffadefc4441ea1c2a813 (diff) |
restore Build,TODO from r57911
git-svn-id: svn://tug.org/texlive/trunk@57915 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/dvipng/m4')
-rw-r--r-- | Build/source/texk/dvipng/m4/gs-device.m4 | 41 | ||||
-rw-r--r-- | Build/source/texk/dvipng/m4/makeinfo.m4 | 41 |
2 files changed, 82 insertions, 0 deletions
diff --git a/Build/source/texk/dvipng/m4/gs-device.m4 b/Build/source/texk/dvipng/m4/gs-device.m4 new file mode 100644 index 00000000000..6b726f2e91f --- /dev/null +++ b/Build/source/texk/dvipng/m4/gs-device.m4 @@ -0,0 +1,41 @@ +# Autoconf macros for dvipng. +# Copyright (C) 2002-2010 Jan-Åke Larsson <jan-ake.larsson@liu.se> +# Copyright (C) 2010-2013 Peter Breitenlohner <tex-live@tug.org> +# +# This file is free software; the copyright holders +# give unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. +# +# Extracted from dvipng-1.12/aclocal.m4 and adapted for use in TeX Live. + +# GS_CHECK_DEVICES +# ---------------- +# Check GS (ghostscript) devices. +AC_DEFUN([GS_CHECK_DEVICES], [dnl +GS_WARN= +_GS_HAS_DEVICE([pngalpha], + [GS_WARN="Your EPS inclusions will be cropped to the + boundingbox, and rendered on an opaque background. + Upgrade GhostScript to avoid this." + _GS_HAS_DEVICE([png16m], + [GS_WARN="Your EPS inclusions may not work. + Upgrade/install GhostScript to avoid this."])]) +if test -n "$GS_WARN"; then + AC_MSG_WARN([$GS_WARN]) +fi +]) # GS_CHECK_DEVICES + +# _GS_HAS_DEVICE(DEVICE, ACTION-IF-FAILED) +# ---------------------------------------- +# Internal subroutine. Check if GS has the device DEVICE and +# execute the shell code ACTION-IF-FAILED if not. +m4_define([_GS_HAS_DEVICE], [dnl +AC_MSG_CHECKING([whether $GS has the $1 device]) +if $GS -h | grep $1 >/dev/null; then + AC_MSG_RESULT([yes]) +else + AC_MSG_RESULT([no]) + $2 +fi +])# _GS_HAS_DEVICE + diff --git a/Build/source/texk/dvipng/m4/makeinfo.m4 b/Build/source/texk/dvipng/m4/makeinfo.m4 new file mode 100644 index 00000000000..0ddff45ecde --- /dev/null +++ b/Build/source/texk/dvipng/m4/makeinfo.m4 @@ -0,0 +1,41 @@ +# Autoconf macros for dvipng. +# Copyright (C) 2002-2008 Jan-Åke Larsson <jan-ake.larsson@liu.se> +# Copyright (C) 2008-2013 Peter Breitenlohner <tex-live@tug.org> +# +# This file is free software; the copyright holders +# give unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. +# +# Extracted from dvipng-1.9/aclocal.m4 and adapted for use in TeX Live. + +# MAKEINFO_CHECK_MACROS(MACRO ...) +# -------------------------------- +# For each MACRO check if makeinfo understands @MACRO{}. +# Prepend '-D no-MACRO' for each MACRO not understood to the +# output variable AM_MAKEINFOFLAGS. +AC_DEFUN([MAKEINFO_CHECK_MACROS], [dnl +if test -n "$MAKEINFO" -a "$MAKEINFO" != ":"; then + for ac_macro in $1; do + _MAKEINFO_CHECK_MACRO([$ac_macro]) + done +fi +AC_SUBST([AM_MAKEINFOFLAGS]) +])# MAKEINFO_CHECK_MACROS + +# _MAKEINFO_CHECK_MACRO(MACRO) +# ---------------------------- +# Internal subroutine. Check if makeinfo understands @MACRO{} +# and prepend '-D no-MACRO' to AM_MAKEINFOFLAGS if not. +m4_define([_MAKEINFO_CHECK_MACRO], [dnl +AC_MSG_CHECKING([if $MAKEINFO understands @$1{}]) +echo \\\\input texinfo > conftest.texi +echo @$1{test} >> conftest.texi +if $MAKEINFO conftest.texi > /dev/null 2> /dev/null; then + AC_MSG_RESULT([yes]) +else + AC_MSG_RESULT([no]) + AM_MAKEINFOFLAGS="-D no-$1 $AM_MAKEINFOFLAGS" +fi +rm -f conftest.texi conftest.info +])# _MAKEINFO_CHECK_MACRO + |