summaryrefslogtreecommitdiff
blob: 2dbe28b5aa6878dc4a1b4a3b23c4efe8e5002940 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
Reverted, removed the second hunk about dev-libs/check, and further
adjusted. The tarball already contains the man page and gengetopt
generated command line parsing, so these checks are useless to us.

From fbd340d1c777e23b66ef27ce1c03c4eb3bafc511 Mon Sep 17 00:00:00 2001
From: Thordur Bjornsson <thorduri@yubico.com>
Date: Thu, 12 Jan 2017 14:28:31 +0100
Subject: [PATCH] auto: Check for help2man/gengetopt, and bail out if not
 found.

Both are required to build.

While here, if `--enable-tests` passed, check for `check` and
if not found, bail out as well.
---
 configure.ac | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/configure.ac b/configure.ac
index ad409a2..6decb78 100644
--- b/configure.ac
+++ a/configure.ac
@@ -43,14 +43,7 @@
 LT_INIT([win32-dll])
 
 AM_MISSING_PROG(HELP2ADOC, help2adoc, $missing_dir)
 AM_MISSING_PROG(HELP2MAN, help2man, $missing_dir)
-if ! which help2man >/dev/null ; then
-   AC_MSG_ERROR([help2man missing])
-fi
-if ! which gengetopt >/dev/null ; then
-   AC_MSG_ERROR([gengetopt missing])
-fi
-
 gl_LD_VERSION_SCRIPT
 
 PKG_CHECK_MODULES([LIBJSON], [json-c], [], [