From: "cron2 (Code Review)" Date: Wed, 18 Sep 2024 21:00:58 +0000 In-Reply-To: References: Reply-To: gert@...1296..., arne-openvpn@...1227..., openvpn-devel@lists.sourceforge.net, frank@...2641... Message-ID: <872f19daff5a61ebe366ddb5d52f388fcc93af50-HTML@...2715...> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="ZpF7ZRAj4Es="; charset=UTF-8 Subject: [Openvpn-devel] [S] Change in openvpn[master]: configure: Review use of standard AC macros List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: flichtenheld Cc: plaisthos , openvpn-devel --ZpF7ZRAj4Es= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable cron2 has submitted this change. ( http://gerrit.openvpn.net/c/openvpn/+/67= 4?usp=3Demail ) Change subject: configure: Review use of standard AC macros ...................................................................... configure: Review use of standard AC macros - Increase required version to 2.60 since that is documented minimum version for AC_USE_SYSTEM_EXTENSIONS - Remove obsolete macros AC_C_CONST and AC_C_VOLATILE. They are noops on every compiler we support. - Add explicit call to AC_PROG_CC. We get this implictly as dependency of other macros, but it is nicer to have it explicitely as well. - A few typo and whitespace fixes. Change-Id: I7927a572611b7c1dc0b522fd6cdf05fd222a852d Signed-off-by: Frank Lichtenheld Acked-by: Gert Doering Message-Id: <20240918204551.2530-1-gert@...1296...> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg29= 321.html Signed-off-by: Gert Doering --- M configure.ac 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/configure.ac b/configure.ac index 5d7d0fc..0876a6a 100644 --- a/configure.ac +++ b/configure.ac @@ -23,7 +23,7 @@ dnl Process this file with autoconf to produce a configure script. -AC_PREREQ(2.59) +AC_PREREQ(2.60) m4_include(version.m4) AC_INIT([PRODUCT_NAME], [PRODUCT_VERSION], [PRODUCT_BUGREPORT], [PRODUCT_T= ARNAME]) @@ -387,6 +387,7 @@ pkg_config_found=3D"(${PKG_CONFIG})" fi +AC_PROG_CC AC_PROG_CPP AC_PROG_INSTALL AC_PROG_LN_S @@ -443,9 +444,7 @@ ] ) -AC_C_CONST AC_C_INLINE -AC_C_VOLATILE AC_TYPE_OFF_T AC_TYPE_PID_T AC_TYPE_SIZE_T @@ -958,7 +957,7 @@ [AC_MSG_ERROR([OpenSSL check for AES-256-GCM support failed])] ) =20 - # All supported OpenSSL version (>=3D 1.1.0) + # All supported OpenSSL versions (>=3D 1.1.0) # have this feature have_export_keying_material=3D"yes" @@ -1065,9 +1064,8 @@ elif test "${with_crypto_library}" =3D "wolfssl"; then AC_ARG_VAR([WOLFSSL_CFLAGS], [C compiler flags for wolfssl. The include d= irectory should - contain the regular wolfSSL header files but also the - wolfSSL OpenSSL header files. Ex: -I/usr/local/include - -I/usr/local/include/wolfssl]) + contain the regular wolfSSL header files but also the wolfSSL OpenSSL hea= der files. + Ex: -I/usr/local/include -I/usr/local/include/wolfssl]) AC_ARG_VAR([WOLFSSL_LIBS], [linker flags for wolfssl]) saved_CFLAGS=3D"${CFLAGS}" @@ -1258,7 +1256,7 @@ [PKG_CHECK_MODULES([libsystemd], [libsystemd-daemon]= )] ) - PKG_CHECK_EXISTS( [libsystemd > 216], + PKG_CHECK_EXISTS([libsystemd > 216], [AC_DEFINE([SYSTEMD_NEWER_THAN_216], [1], [systemd is newer than v216])] ) -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/674?usp=3Demail To unsubscribe, or for help writing mail filters, visit http://gerrit.openv= pn.net/settings Gerrit-Project: openvpn Gerrit-Branch: master Gerrit-Change-Id: I7927a572611b7c1dc0b522fd6cdf05fd222a852d Gerrit-Change-Number: 674 Gerrit-PatchSet: 4 Gerrit-Owner: flichtenheld Gerrit-Reviewer: cron2 Gerrit-Reviewer: plaisthos Gerrit-CC: openvpn-devel Gerrit-MessageType: merged --ZpF7ZRAj4Es= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

cron2 submitted this change.

View Change

configure: Review use of standard AC macros
- Increase required version to 2.60 since that is documented
mini= mum version for AC_USE_SYSTEM_EXTENSIONS
- Remove obsolete macros AC_C_C= ONST and AC_C_VOLATILE. They
are noops on every compiler we support.- Add explicit call to AC_PROG_CC. We get this implictly as
dependen= cy of other macros, but it is nicer to have it
explicitely as well.- A few typo and whitespace fixes.

Change-Id: I7927a572611b7c1dc0b5= 22fd6cdf05fd222a852d
Signed-off-by: Frank Lichtenheld <frank@...2724...= ..>
Acked-by: Gert Doering <gert@...1296...>
Message-Id: <= ;20240918204551.2530-1-gert@...1296...>
URL: https://www.mail-archive= .com/openvpn-devel@lists.sourceforge.net/msg29321.html
Signed-off-by: Ge= rt Doering <gert@...1296...>
---
M configure.ac
1 file chang= ed, 6 insertions(+), 8 deletions(-)

diff --git a/configure.ac b/configure.ac
index 5d7d0fc..= 0876a6a 100644
--- a/configure.ac
+++ b/con= figure.ac
@@ -23,7 +23,7 @@

dnl Process this file with autoconf to produce a configure script.

-AC_PRERE= Q(2.59)
+AC_PREREQ(2.= 60)

m4_include(version.m4)
AC_INIT([PRODUCT_NAME], [PRODUCT_VERSION], [PRODUCT_BUGREPORT], [PRODUC= T_TARNAME])
@@ -387,6 +387,7 @@
pkg_confi= g_found=3D"(${PKG_CONFIG})"
fi
=
+AC_PROG_CC AC_PROG_CPP
AC_PROG_INSTALL
AC_P= ROG_LN_S
@@ -443,9 +444,7 @@
]
= )

-AC_C_CONST
AC_C_INLINE
-AC_C_VOLATILE
AC_TYPE_OFF_T<= br> AC_TYPE_PID_T
AC_TYPE_SIZE_T
@@ = -958,7 +957,7 @@
[AC_MSG_ERROR([OpenSSL check for AES-25= 6-GCM support failed])]
)

- # All supported OpenSSL version (&= gt;=3D 1.1.0)
+ # All= supported OpenSSL versions (>=3D 1.1.0)
# have this f= eature
have_export_keying_material=3D"yes"

@@ -1065,9 +1064,8 @@

elif test "${with_crypto_library}" =3D "wolfssl&= quot;; then
AC_ARG_VAR([WOLFSSL_CFLAGS], [C compiler flag= s for wolfssl. The include directory should
- contain the regular wolfSSL header files bu= t also the
- w= olfSSL OpenSSL header files. Ex: -I/usr/local/include
- -I/usr/local/include/wolfssl])
+ contain the regular w= olfSSL header files but also the wolfSSL OpenSSL header files.
+ Ex: -I/usr/local/include -I/usr= /local/include/wolfssl])

AC_ARG_VAR([WOLFSSL_LIBS], [link= er flags for wolfssl])

saved_CFLAGS=3D&= quot;${CFLAGS}"
@@ -1258,7 +1256,7 @@
= [PKG_CHECK_MODULES([libsystemd], [libsystemd-daemon]= )]
)

- PKG_CHECK_EXISTS( [libsystemd &= gt; 216],

+ PKG_CH= ECK_EXISTS([libsystemd > 216],
[AC= _DEFINE([SYSTEMD_NEWER_THAN_216], [1],
= [systemd is newer than v216])]
= )

To view, visit change 674. To unsubscribe= , or for help writing mail filters, visit settings.

Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I7927a572611b7c1dc0b522fd6cd= f05fd222a852d
Gerrit-Change-Number: 674
Gerrit-PatchSet: 4
Gerrit-Owner: flichtenheld <frank@...2723...= .>
Gerrit-Reviewer: cron2 <gert@...1296...>=
Gerrit-Reviewer: plaisthos <arne-openvpn@...1186...= .1227...>
Gerrit-CC: openvpn-devel <openvpn-devel@...1484...= ts.sourceforge.net>
Gerrit-MessageType: merged
--ZpF7ZRAj4Es=--