unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
* bug#51129: Check for gperf if running from git: this avoids breaking at runtime.
@ 2021-10-11  5:35 Dr. Arne Babenhauserheide
  2022-08-02 17:27 ` bug#51129: gperf lloda
  0 siblings, 1 reply; 2+ messages in thread
From: Dr. Arne Babenhauserheide @ 2021-10-11  5:35 UTC (permalink / raw)
  To: 51129


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1.1: patch to check for gperf --]
[-- Type: text/x-patch, Size: 884 bytes --]

From 0b70a54dd7df0075c392067a7ce17d0f05a59adf Mon Sep 17 00:00:00 2001
From: Arne Babenhauserheide <arne_bab@web.de>
Date: Mon, 11 Oct 2021 07:33:23 +0200
Subject: [PATCH] autoconf: Check for gperf if running from git

this avoids breaking at runtime.
---
 configure.ac | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/configure.ac b/configure.ac
index a3cdaff78..5e1231a6e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -80,6 +80,15 @@ else
   fi
 fi
 
+# Check for gperf if running from git
+AC_MSG_CHECKING([Checking for gperf if built from git])
+if ! test -f ".tarball-version" && false; then
+  AC_CHECK_TOOL([GPERF], [gperf], [no])
+  if test x"$GPERF" = x"no"; then
+    AC_MSG_ERROR([Building from git requires gperf, but it could not be found. Please install gperf.])
+  fi
+fi
+
 gl_EARLY
 AC_PROG_CPP
 AC_PROG_SED
-- 
2.33.0


[-- Attachment #1.2: Type: text/plain, Size: 81 bytes --]


-- 
Unpolitisch sein
heißt politisch sein,
ohne es zu merken.
draketo.de

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 1125 bytes --]

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-08-02 17:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-11  5:35 bug#51129: Check for gperf if running from git: this avoids breaking at runtime Dr. Arne Babenhauserheide
2022-08-02 17:27 ` bug#51129: gperf lloda

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).