]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
configure: Review use of standard AC macros
authorFrank Lichtenheld <frank@lichtenheld.com>
Wed, 18 Sep 2024 20:45:50 +0000 (22:45 +0200)
committerGert Doering <gert@greenie.muc.de>
Wed, 18 Sep 2024 20:50:08 +0000 (22:50 +0200)
- 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 <frank@lichtenheld.com>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <20240918204551.2530-1-gert@greenie.muc.de>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg29321.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
configure.ac

index 5d7d0fc5b916bd0dc315d1774f9fe30c4ebf3b9a..0876a6a5834c1b9085fdf6638c7b2427be01751d 100644 (file)
@@ -23,7 +23,7 @@ dnl  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 
 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_TARNAME])
@@ -387,6 +387,7 @@ else
        pkg_config_found="(${PKG_CONFIG})"
 fi
 
+AC_PROG_CC
 AC_PROG_CPP
 AC_PROG_INSTALL
 AC_PROG_LN_S
@@ -443,9 +444,7 @@ ifdef(
        ]
 )
 
-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 @@ if test "${with_crypto_library}" = "openssl"; then
                [AC_MSG_ERROR([OpenSSL check for AES-256-GCM support failed])]
        )
 
-       # All supported OpenSSL version (>= 1.1.0)
+       # All supported OpenSSL versions (>= 1.1.0)
        # have this feature
        have_export_keying_material="yes"
 
@@ -1065,9 +1064,8 @@ elif test "${with_crypto_library}" = "mbedtls"; then
 
 elif test "${with_crypto_library}" = "wolfssl"; then
        AC_ARG_VAR([WOLFSSL_CFLAGS], [C compiler flags 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 regular 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], [linker flags for wolfssl])
 
        saved_CFLAGS="${CFLAGS}"
@@ -1258,7 +1256,7 @@ if test "$enable_systemd" = "yes" ; then
                       [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])]
                     )