bug-ncurses
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 03/19] aclocal.m4 (CF_WITH_ADA_SHAREDLIB): Clarify result message


From: G. Branden Robinson
Subject: [PATCH 03/19] aclocal.m4 (CF_WITH_ADA_SHAREDLIB): Clarify result message.
Date: Fri, 27 Oct 2023 11:43:37 -0500

Throw the warning about Ada95 share library support _after_ reporting
the Autoconf check result.

Report the actual result of the check, rather than the user's (foiled)
desire for an Ada95 shared library.
---
 aclocal.m4 | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/aclocal.m4 b/aclocal.m4
index 7223793f..2c713750 100644
--- a/aclocal.m4
+++ b/aclocal.m4
@@ -9026,17 +9026,23 @@ AC_ARG_WITH(ada-sharedlib,
        [[  --with-ada-sharedlib    use GNAT project support to build Ada95 
shared library]],
        [with_ada_sharedlib=$withval],
        [with_ada_sharedlib=no])
-AC_MSG_RESULT($with_ada_sharedlib)
+cf_ada_sharedlib_warn=no
 
 if test "x$with_ada_sharedlib" != xno
 then
        if test "x$cf_gnat_projects" != xyes
        then
-               AC_MSG_WARN(disabling since GNAT projects are not supported)
                with_ada_sharedlib=no
+               cf_ada_sharedlib_warn=yes
        fi
 fi
 
+AC_MSG_RESULT($with_ada_sharedlib)
+if test "x$cf_ada_sharedlib_warn" != xno
+then
+       AC_MSG_WARN(disabling Ada95 shared library since GNAT projects are not 
supported)
+fi
+
 ADA_SHAREDLIB='lib$(LIB_NAME).so.1'
 MAKE_ADA_SHAREDLIB="#"
 
-- 
2.30.2

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]