summaryrefslogtreecommitdiff
path: root/Build/source/m4
diff options
context:
space:
mode:
authorPeter Breitenlohner <peb@mppmu.mpg.de>2015-03-07 12:52:35 +0000
committerPeter Breitenlohner <peb@mppmu.mpg.de>2015-03-07 12:52:35 +0000
commit6ae228af0d6896a9064a316894b1aa52f527234e (patch)
treec34055628ed38b86f603df0f8021d4475653e8e6 /Build/source/m4
parentd2f25be6f809b55d69b802b4c3f491d1dcfa1e6d (diff)
texk/dvipng: Minor update of build system
git-svn-id: svn://tug.org/texlive/trunk@36454 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/m4')
-rw-r--r--Build/source/m4/ChangeLog4
-rw-r--r--Build/source/m4/kpse-win32.m410
2 files changed, 13 insertions, 1 deletions
diff --git a/Build/source/m4/ChangeLog b/Build/source/m4/ChangeLog
index 3ed7f07ad9a..aea24a0e4df 100644
--- a/Build/source/m4/ChangeLog
+++ b/Build/source/m4/ChangeLog
@@ -1,3 +1,7 @@
+2015-03-07 Peter Breitenlohner <peb@mppmu.mpg.de>
+
+ * kpse-win32.m4: Define KPSE_DO_IF_WIN32 for WIN32 only tests.
+
2015-02-19 Peter Breitenlohner <peb@mppmu.mpg.de>
* kpse-cairo-flags.m4: Require KPSE_PIXMAN_FLAGS.
diff --git a/Build/source/m4/kpse-win32.m4 b/Build/source/m4/kpse-win32.m4
index 9d6375404fa..8893ceb68c0 100644
--- a/Build/source/m4/kpse-win32.m4
+++ b/Build/source/m4/kpse-win32.m4
@@ -1,5 +1,5 @@
# Public macros for the TeX Live (TL) tree.
-# Copyright (C) 2009-2014 Peter Breitenlohner <tex-live@tug.org>
+# Copyright (C) 2009-2015 Peter Breitenlohner <tex-live@tug.org>
#
# This file is free software; the copyright holder
# gives unlimited permission to copy and/or distribute it,
@@ -68,3 +68,11 @@ AM_CONDITIONAL([WIN32_CALL],
AM_COND_IF([WIN32],
[AC_CONFIG_LINKS([callexe.c:../texlive/w32_wrapper/callexe.c])])
]) # KPSE_WIN32_CALL
+
+# KPSE_DO_IF_WIN32(COMMAND)
+# -------------------------
+# Execute COMMAND, if Windows.
+AC_DEFUN([KPSE_DO_IF_WIN32], [dnl
+AC_REQUIRE([KPSE_CHECK_WIN32])[]dnl
+AS_IF([test "x$kpse_cv_have_win32" != xno], [$1])
+]) # KPSE_DO_IF_WIN32