Skip to content

Commit 31f0daa

Browse files
committed
add gnu11 to cflags if possible
1 parent a9c3b9d commit 31f0daa

4 files changed

Lines changed: 6 additions & 6 deletions

File tree

configure.ac

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,17 @@ AC_PREREQ([2.60])
77
AC_INIT([mod_gearman], [5.2.1], [sven.nierlein@consol.de])
88
AM_INIT_AUTOMAKE([-Wall foreign subdir-objects])
99
AC_CONFIG_SRCDIR([neb_module_naemon/mod_gearman.c],[worker/worker.c],[tools/send_gearman.c],[tools/check_gearman.c],[tools/gearman_top.c])
10-
AC_CONFIG_HEADER([config.h])
10+
AC_CONFIG_HEADERS([config.h])
1111

1212
CFLAGS="${CFLAGS} -Wall -W -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -O -fPIC -D_GNU_SOURCE -D_REENTRANT -D_FILE_OFFSET_BITS=64"
1313

1414
##############################################
1515
# Checks for programs.
16-
AC_PROG_CXX
1716
AC_PROG_CC
1817
AM_PROG_CC_C_O
1918
AC_PROG_RANLIB
20-
AM_PROG_AR
19+
20+
AX_CHECK_COMPILE_FLAG([-std=gnu11], CFLAGS="${CFLAGS} -std=gnu11")
2121

2222
##############################################
2323
# gearman wants this

debian/control

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Priority: extra
44
Maintainer: Sven Nierlein <sven.nierlein@consol.de>
55
Build-Depends: debhelper (>= 10), automake, libtool, libgearman-dev (>= 1.1), libncurses5-dev,
66
libltdl-dev, gearman-job-server, help2man, dctrl-tools, libperl-dev, gearman-tools,
7-
naemon-dev (>= 1.4.3), pkg-config, libssl-dev, openssl
7+
naemon-dev (>= 1.4.3), pkg-config, libssl-dev, openssl, autoconf-archive, autoconf
88
Standards-Version: 3.9.1
99
Homepage: http://labs.consol.de/nagios/mod-gearman/
1010

debian/mod-gearman.dsc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Vcs-Browser: https://github.com/sni/mod_gearman
1010
Vcs-Git: git://github.com/sni/mod_gearman.git
1111
Build-Depends: debhelper (>= 7), automake, libtool, libgearman-dev (>= 1.1), libncurses5-dev,
1212
libltdl-dev, gearman-job-server, help2man, dctrl-tools, libperl-dev, gearman-tools,
13-
naemon-dev, pkg-config, libssl-dev, openssl
13+
naemon-dev, pkg-config, libssl-dev, openssl, autoconf-archive, autoconf
1414
Files:
1515
00000000000000000000000000000000 0000 mod_gearman_1.0.0.orig.tar.gz
1616
00000000000000000000000000000000 0000 mod_gearman_1.0.0-1.diff.tar.gz

support/mod_gearman.spec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Source0: mod_gearman-%{version}.tar.gz
1313
Group: System/Monitoring
1414
Summary: Mod-Gearman module for Naemon
1515
Requires: libgearman, perl, logrotate, openssl
16-
BuildRequires: autoconf, automake, gcc-c++, pkgconfig, ncurses-devel
16+
BuildRequires: autoconf, autoconf-archive, automake, gcc-c++, pkgconfig, ncurses-devel
1717
BuildRequires: libtool, libtool-ltdl-devel, libevent-devel, openssl-devel
1818
BuildRequires: libgearman-devel
1919
BuildRequires: naemon-devel >= 1.4.3

0 commit comments

Comments
 (0)