diff options
author | Andrew Shadura <andrewsh@debian.org> | 2014-09-14 17:41:43 +0200 |
---|---|---|
committer | Andrew Shadura <andrew@shadura.me> | 2015-07-25 14:44:57 +0200 |
commit | 02e4dec7376d8e7b563b8008b979682b82b23e11 (patch) | |
tree | 18b1263e3a507d785fbde6a8a09e6e019ff986a8 /features/mkc_imp.f_warn.mk | |
parent | 99305952b2affb1672b6f44834378729c753aab4 (diff) | |
parent | 7bea690e43ee009efc9e8f6a45504496348cd3ee (diff) |
Imported Debian patch 0.28.0-1
Diffstat (limited to 'features/mkc_imp.f_warn.mk')
-rw-r--r-- | features/mkc_imp.f_warn.mk | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/features/mkc_imp.f_warn.mk b/features/mkc_imp.f_warn.mk new file mode 100644 index 0000000..c494d50 --- /dev/null +++ b/features/mkc_imp.f_warn.mk @@ -0,0 +1,29 @@ +# Copyright (c) 2014 by Aleksey Cheusov +# +# See LICENSE file in the distribution. +############################################################ +.ifndef _MKC_IMP_F_WARN_MK +_MKC_IMP_F_WARN_MK := 1 + +.include <mkc_imp.f_progname.mk> + +.include <mkc_imp.conf-cleanup.mk> + +MKC_CHECK_HEADERS += err.h +MKC_CHECK_FUNCLIBS += warn warnx vwarn vwarnx +MKC_CHECK_FUNCS2 += warn:err.h warnx:err.h vwarn:err.h vwarnx:err.h + +.include <mkc_imp.conf-cleanup.mk> + +.if ${HAVE_FUNCLIB.warn:U0} && ${HAVE_FUNCLIB.warnx:U0} && \ + ${HAVE_FUNCLIB.vwarn:U0} && ${HAVE_FUNCLIB.vwarnx:U0} && \ + ${HAVE_FUNC2.warn.err_h:U0} && ${HAVE_FUNC2.warnx.err_h:U0} && \ + ${HAVE_FUNC2.vwarn.err_h:U0} && ${HAVE_FUNC2.vwarnx.err_h:U0} +CFLAGS += -DMKC_WARN_IS_FINE +.else +MKC_SRCS += ${FEATURESDIR}/warn/warn.c +.endif + +.include <mkc_imp.conf-final.mk> + +.endif # _MKC_IMP_F_WARN_MK |