]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#2049] improve build error message
authorAndrei Pavel <andrei@isc.org>
Tue, 14 Sep 2021 08:44:29 +0000 (11:44 +0300)
committerAndrei Pavel <andrei@isc.org>
Tue, 14 Sep 2021 08:44:29 +0000 (11:44 +0300)
m4macros/ax_find_library.m4
m4macros/ax_sysrepo.m4

index 52a1bde73dc5a30c9319ef6490e03cd2e8404f89..26ce8519292d89463aa95a7d82e99db434c52e10 100644 (file)
@@ -60,7 +60,12 @@ AC_DEFUN([AX_FIND_LIBRARY], [
     else
       AC_MSG_RESULT(["no"])
       AX_DISPLAY_LIBRARY_WARNINGS()
-      AC_MSG_ERROR(["${with_library}" needs to point to a .pc file or to the installation directory, but points to none of those])
+      # TODO: It can also point to a .pc file, but the current sysrepo
+      # implementation does not allow it because there are more .pc files than
+      # --with flags. After migration to sysrepo v2 has been done there will be
+      # four flags and four .pc files so change the error message to say that it
+      # can also point to a .pc file.
+      AC_MSG_ERROR(["${with_library}" needs to point to the installation directory])
     fi
 
   else
index 9511eac305bcdce1bb83f20c6c7f7c689dc88252..925affb76d5f5ada2846eb9298dfa2e79ed88a27 100644 (file)
@@ -183,7 +183,7 @@ AC_DEFUN([AX_SYSREPO], [
              AC_MSG_ERROR([Using sysrepo <= 0.7.6 which is no longer supported. Upgrade to the latest version with C++ bindings: 1.4.140.])],
             [AC_MSG_RESULT([no])
              AX_DISPLAY_LIBRARY_WARNINGS()
-             AC_MSG_ERROR([Found Sysrepo C++ bindings, but could not identify their version. If you think Kea should support this version of sysrepo, please contact ISC.)])]
+             AC_MSG_ERROR([Found Sysrepo C++ bindings, but could not identify their version. If you think Kea should support this version of sysrepo, please contact ISC.])]
           )]
         )]
       )],