mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-02-20 00:10:09 -05:00
Fixed compile problem on Sol2.6 with stdbool.h
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1047 f882894a-f735-0410-b71e-b25c423dba1c
This commit is contained in:
parent
e22914b7ff
commit
cf812dff06
3 changed files with 13 additions and 0 deletions
|
|
@ -36,3 +36,11 @@ libnagiosplug_a_SOURCES = snprintf.c
|
|||
|
||||
INCLUDES = -I$(srcdir) -I$(top_srcdir)/intl
|
||||
|
||||
BUILT_SOURCES = $(STDBOOL_H)
|
||||
EXTRA_DIST = stdbool_.h
|
||||
MOSTLYCLEANFILES = stdbool.h stdbool.ht
|
||||
# Create stdbool.h on systems that lack a working one.
|
||||
stdbool.h: stdbool_.h
|
||||
sed -e 's/@''HAVE__BOOL''@/$(HAVE__BOOL)/g' $(srcdir)/stdbool_.h > $@t
|
||||
mv $@t $@
|
||||
|
||||
|
|
|
|||
|
|
@ -28,6 +28,7 @@ EXTRA_DIST += np_coreutils.m4
|
|||
EXTRA_DIST += onceonly.m4
|
||||
EXTRA_DIST += progtest.m4
|
||||
EXTRA_DIST += realloc.m4
|
||||
EXTRA_DIST += stdbool.m4
|
||||
EXTRA_DIST += stdint_h.m4
|
||||
EXTRA_DIST += uintmax_t.m4
|
||||
EXTRA_DIST += ulonglong.m4
|
||||
|
|
|
|||
|
|
@ -6,8 +6,12 @@ m4_pattern_forbid([^np_[ABCDEFGHIJKLMNOPQRSTUVXYZ]])dnl
|
|||
m4_pattern_forbid([^jm_[ABCDEFGHIJKLMNOPQRSTUVXYZ]])dnl
|
||||
m4_pattern_forbid([^gl_[ABCDEFGHIJKLMNOPQRSTUVXYZ]])dnl
|
||||
|
||||
dnl These are all m4 things that need to be called
|
||||
dnl Usually in coreutils' prereq.m4, but this is a subset that we need
|
||||
AC_DEFUN([np_COREUTILS],
|
||||
[
|
||||
AC_REQUIRE([gl_GETOPT])
|
||||
AC_REQUIRE([AM_STDBOOL_H])
|
||||
AC_REQUIRE([jm_AFS])
|
||||
AC_REQUIRE([gl_EXITFAIL])
|
||||
AC_REQUIRE([gl_XALLOC])
|
||||
|
|
|
|||
Loading…
Reference in a new issue