summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/m4/web2c-disable.m4
blob: 65a34f4c87259c91e67de156066c00df9a032530 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# Autoconf macros for web2c.
# Copyright (C) 2009 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.

# WEB2C_DISABLE(PROGRAM, PROBLEM)
# ------------------------------
# Disable building PROGRAM due to PROBLEM, usually missing libraries.
# Terminate, via KPSE_MSG_WARN, if `--disable-missing' was given.
AC_DEFUN([WEB2C_DISABLE],
[AS_IF([test "x$enable_$1" = xyes],
       [KPSE_MSG_WARN([Sorry, $2: disabling $1])
                       enable_$1=no])
]) # WEB2C_DISABLE