projects/guix·blob python-team · refs

39 lines · 1.2 KiB

1From 84685930d5cfc7005f3414601230a23e28a18f59 Mon Sep 17 00:00:00 2001
2From: Thomas Loimer <[email protected]>
3Date: Tue, 5 Sep 2023 22:02:55 +0200
4Subject: [PATCH 1/3] Enable error message for missing libraries
5
6Move the check for missing libraries to a place where the queried
7variables are set.
8---
9 configure.ac | 7 ++++---
10 1 file changed, 4 insertions(+), 3 deletions(-)
11
12diff --git a/configure.ac b/configure.ac
13index 035b9d7..47452c5 100644
14--- a/configure.ac
15+++ b/configure.ac
16@@ -95,9 +95,6 @@ dnl AC_CHECK_PROG(XDG_MENU, [xdg-desktop-menu], [xdg-desktop-menu])
17 AC_SEARCH_LIBS([pow], [m])dnl
18 dnl AC_SEARCH_LIBS([deflate], [z]) # libz is not needed.
19 AC_SEARCH_LIBS([FcInit], [fontconfig])
20-AS_IF([test "x$ac_cv_search_pow" = xno \
21- || test "x$ac_cv_search_png_read_info" = xno],
22- [AC_MSG_ERROR([Necessary libraries not found.])])
23
24
25 # Checks for header files.
26@@ -187,6 +184,10 @@ PostScript files. To disable calling ghostscript, set to the empty string,
27 AC_SUBST([gsman])
28 AM_SUBST_NOTMAKE([gsman])
29
30+AS_IF([test "x$ac_cv_search_pow" = xno \
31+ || test "x$ac_cv_search_png_read_info" = xno],
32+ [AC_MSG_ERROR([Necessary libraries not found.])])
33+
34
35 # Checks for typedefs, structures, and compiler characteristics.
36 AC_C_BIGENDIAN
37--
382.40.1
39