bug#51129: Check for gperf if running from git: this avoids breaking at runtime.

"Dr. Arne Babenhauserheide" <[email protected]>
Newsgroups gmane.lisp.guile.bugs
Message-ID <[email protected]>
-- 
Unpolitisch sein
heißt politisch sein,
ohne es zu merken.
draketo.de
0001-autoconf-Check-for-gperf-if-running-from-git.patch (text/x-patch, 851 B)
From 0b70a54dd7df0075c392067a7ce17d0f05a59adf Mon Sep 17 00:00:00 2001
From: Arne Babenhauserheide <[email protected]>
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
signature.asc (application/pgp-signature, 1.1 KB)
-----BEGIN PGP SIGNATURE-----

iQJEBAEBCAAuFiEE801qEjXQSQPNItXAE++NRSQDw+sFAmFjzVsQHGFybmVfYmFi
QHdlYi5kZQAKCRAT741FJAPD6/dREACc3h8tpuxsyYmb7WquVSDH3ZE9IX3jHYg6
beMuhDQdgx/sAHMKPiR3aV2XcQpcfSOCtX1712pyEj6vdqo81f0FwDMZAZ+Yckvk
AuGeYh+GkRK0BrxBChkcExy4JTCTLu5Pyv+mq2Bvjv09N396RfdxLWt6biE9q4R0
G9LBa1+iOsIxFZR4taatFlug6XKFp91ZS2Y1FHqr3Gq0oj/lqjzmzJ/JmArcLtfn
+YpBBHM0GhdgTFoI0JuZlpf8dN+M7wcYUNPIpx1Ved9hoN1z8B7Jeia8ZdxDMFMQ
ZdER+gt0s86INxvujS3AL29Aua5vRasp1GXiNm9PniHqOX/sv6CESFX9x+gj2iaO
VX8MDS1YPMu0AE5S0dy472qxUhTQ3JOMcY9Dd+24LlNaYuXQccJrzQ7yOlGkh/+E
skbBAKMZWUuPe6SafNc+oUACHY2cqT98aFZPCCcPynmYeQJz9JID9aca+OiJ9KvP
kC5ZcZzox1riG3MTbXikIdm+EE7IiZURi9NeZIqzBEkQVGQLrD0hKd0zQJIFl1Ls
aJOOVV45KsnMHWYvauUMwa5TK86ulOK222Ix4XKKYGwABowsHlJ6UFNI8dR9wxh3
4NTsJ5it5ux6l6mCuNRZViJfTOYnxj+Q1h5bazQZfwz2aclRxJ1ik+jCjLq8buHn
/eXl2pqdqIjEBAEBCAAuFiEE3Si95tmHXKvOSosd3M8NswvBBUgFAmFjzV4QHGFy
bmVfYmFiQHdlYi5kZQAKCRDczw2zC8EFSJh/A/4kiFA4jDK0wETvNOUMrXRQIpbU
6MIb60ixzUjRd/R9N9sYb34cyQAUwExf8G7tu2+qUjxCcHhwNcRPDD21TWiSpuQ5
UUrmsGI3oCUMc/X4mUTcM/8TAaxHhgSr79bvo6XMVZZdeFE4zgK0V7VHNMLSeTHl
78bU52L9x89sUVEcdA==
=E4kj
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.