Package: gap-float / 0.9.1+ds-6

upstream-update-m4_ac_find_gap_m4.patch Patch series | download
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
Description: update AC_FIND_GAP m4 macro
 Import m4/ac_find_gap.m4 from the gap-io GitHub git repository
 and add material to find the GAP command-line interface wrt
 the adopted style and customary naminf scheme.
Origin: vendor, Debian
Author: Jerome Benoit <calculus@rezozer.net>
Last-Update: 2016-10-14

--- a/m4/ac_find_gap.m4
+++ b/m4/ac_find_gap.m4
@@ -170,4 +170,22 @@
   AC_SUBST(GAP_LIBS)
 
   AC_LANG_POP([C])
+
+  ###############################################
+  # Now check for the GAP command-line interface
+
+	CGAPPATH=$PATH
+	AC_PATH_PROG([CGAP],[gap$SHEXT],Unknown,[$CGAPPATH])
+	if test "x$CGAP" = "xUnknown" ; then
+    echo ""
+    echo "********************************************************************"
+    echo "  ERROR"
+    echo ""
+    echo "  Failed to find the GAP command-line interface in the list of"
+    echo "  paths $CGAPPATH"
+    echo "********************************************************************"
+    echo ""
+    AC_MSG_ERROR([Unable to find GAP command-line interface])
+	fi
+
 ])