From: "flichtenheld (Code Review)"
Date: Wed, 10 Jul 2024 13:57:09 +0000
References:
Reply-To: frank@...2641..., arne-openvpn@...1227...,
openvpn-devel@lists.sourceforge.net
Message-ID: <93a0b05c76fa2aa87d9e032b33efa953055208af-HTML@...2715...>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Content-Disposition: inline
Content-Type: multipart/alternative; boundary="DfcI9a4HH8w="; 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: plaisthos
Cc: openvpn-devel
--DfcI9a4HH8w=
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Attention is currently required from: plaisthos.
Hello plaisthos,
I'd like you to do a code review.
Please visit
http://gerrit.openvpn.net/c/openvpn/+/674?usp=3Demail
to review the following change.
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
---
M configure.ac
1 file changed, 6 insertions(+), 8 deletions(-)
git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/74/674/1
diff --git a/configure.ac b/configure.ac
index dcc46e2..3e7c0be 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
@@ -959,7 +958,7 @@
[AC_MSG_ERROR([OpenSSL check for AES-256-GCM support failed])]
)
- # 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"
@@ -1059,9 +1058,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}"
@@ -1252,7 +1250,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: 1
Gerrit-Owner: flichtenheld
Gerrit-Reviewer: plaisthos
Gerrit-CC: openvpn-devel
Gerrit-Attention: plaisthos
Gerrit-MessageType: newchange
--DfcI9a4HH8w=
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Attention is currently required from: plaisthos.
flichtenheld would like plaisthos to review this change.
Vi=
ew Change
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_V=
OLATILE. They
are noops on every compiler we support.
- Add explici=
t call to AC_PROG_CC. We get this implictly as
dependency of other mac=
ros, but it is nicer to have it
explicitely as well.
- A few typo a=
nd whitespace fixes.
Change-Id: I7927a572611b7c1dc0b522fd6cdf05fd222=
a852d
Signed-off-by: Frank Lichtenheld <frank@...2641...>
---M configure.ac
1 file changed, 6 insertions(+), 8 deletions(-)
=
git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/74/674/1
=
diff --git a/configure.ac b/configure.ac
index dcc46e=
2..3e7c0be 100644
--- a/configure.ac
+++ b/=
configure.ac
@@ -23,7 +23,7 @@
=
dnl Process this file with autoconf to produce a configure script.=
span>
-AC_PR=
EREQ(2.59)
+AC_PREREQ=
(2.60)
m4_include(version.m4)
=
AC_INIT([PRODUCT_NAME], [PRODUCT_VERSION], [PRODUCT_BUGREPORT], [PRO=
DUCT_TARNAME])
@@ -387,6 +387,7 @@
pkg_co=
nfig_found=3D"(${PKG_CONFIG})"
fi
+AC_PROG_CC
AC_PROG_CPP
AC_PROG_INSTALL
A=
C_PROG_LN_S
@@ -443,9 +444,7 @@
]<=
br> )
-AC_C_CONST
AC_C_INLINE
-AC_C_VOLATILE
AC_TYPE_OFF_T
AC_TYPE_PID_T
AC_TYPE_SIZE_T
=
@@ -959,7 +958,7 @@
[AC_MSG_ERROR([OpenSSL check for AES=
-256-GCM support failed])]
)
=
- # All supported OpenSSL version=
(>=3D 1.1.0)
+ # =
All supported OpenSSL versions (>=3D 1.1.0)
# have thi=
s feature
have_export_keying_material=3D"yes"=
span>
@@ -1059,9 +1058,8 @@
elif test "${with_crypto_library}" =3D "wolfs=
sl"; then
AC_ARG_VAR([WOLFSSL_CFLAGS], [C compiler f=
lags for wolfssl. The include directory 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 regula=
r wolfSSL header files but also the wolfSSL OpenSSL header files.
+ Ex: -I/usr/local/include -I/=
usr/local/include/wolfssl])
AC_ARG_VAR([WOLFSSL_LIBS], [l=
inker flags for wolfssl])
saved_CFLAGS=
=3D"${CFLAGS}"
@@ -1252,7 +1250,7 @@
[PKG_CHECK_MODULES([libsystemd], [libsystemd-dae=
mon])]
)
- PKG_CHECK_EXISTS( [libsyste=
md > 216],
+ PK=
G_CHECK_EXISTS([libsystemd > 216],
=
[AC_DEFINE([SYSTEMD_NEWER_THAN_216], [1],
=
[systemd is newer than v216])]
=
)
To view, visit change 674. To unsubsc=
ribe, 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: 1
Gerrit-Owner: flichtenheld <frank@...2723...=
.>
Gerrit-Reviewer: plaisthos <arne-openvpn@...1186...=
.1227...>
Gerrit-CC: openvpn-devel <openvpn-devel@...1484...=
ts.sourceforge.net>
Gerrit-Attention: plaisthos <arne-openvpn@...220...=
..1227...>
Gerrit-MessageType: newchange
--DfcI9a4HH8w=--