diff options
author | Andrei Pavel <andrei@isc.org> | 2021-09-14 10:44:29 +0200 |
---|---|---|
committer | Andrei Pavel <andrei@isc.org> | 2021-09-14 10:44:29 +0200 |
commit | 4a06ecf784f3664d6b05b5d5739f74a07753c0a0 (patch) | |
tree | ce0be06716331b639d47a18239357d0b0568b5d0 /m4macros | |
parent | [#2049] some fixes for NETCONF build (diff) | |
download | kea-4a06ecf784f3664d6b05b5d5739f74a07753c0a0.tar.xz kea-4a06ecf784f3664d6b05b5d5739f74a07753c0a0.zip |
[#2049] improve build error message
Diffstat (limited to 'm4macros')
-rw-r--r-- | m4macros/ax_find_library.m4 | 7 | ||||
-rw-r--r-- | m4macros/ax_sysrepo.m4 | 2 |
2 files changed, 7 insertions, 2 deletions
diff --git a/m4macros/ax_find_library.m4 b/m4macros/ax_find_library.m4 index 52a1bde73d..26ce851929 100644 --- a/m4macros/ax_find_library.m4 +++ b/m4macros/ax_find_library.m4 @@ -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 diff --git a/m4macros/ax_sysrepo.m4 b/m4macros/ax_sysrepo.m4 index 9511eac305..925affb76d 100644 --- a/m4macros/ax_sysrepo.m4 +++ b/m4macros/ax_sysrepo.m4 @@ -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.])] )] )] )], |