]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
configure/CMake: Remove unused checks
authorFrank Lichtenheld <frank@lichtenheld.com>
Thu, 27 Nov 2025 10:53:37 +0000 (11:53 +0100)
committerGert Doering <gert@greenie.muc.de>
Thu, 27 Nov 2025 11:14:41 +0000 (12:14 +0100)
Do not run configure checks that we do not
actually need.

But add one missing check in CMake for strsep!

Change-Id: I0da2cc8bbe9e394d1bb55cff496ea3e11584ca20
Signed-off-by: Frank Lichtenheld <frank@lichtenheld.com>
Acked-by: Gert Doering <gert@greenie.muc.de>
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1409
Message-Id: <20251127105343.30723-1-gert@greenie.muc.de>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg34740.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
CMakeLists.txt
config.h.cmake.in
configure.ac

index c4d50e48299bfb745cec71467198c22ce85ccc06..f101a1bdc650e3a9a49a8ef3959e8946f0322ae4 100644 (file)
@@ -240,6 +240,7 @@ endif()
 
 check_symbol_exists(chsize io.h HAVE_CHSIZE)
 check_symbol_exists(getrlimit sys/resource.h HAVE_GETRLIMIT)
+check_symbol_exists(strsep string.h HAVE_STRSEP)
 
 # Some OS (e.g. FreeBSD) need some basic headers to allow
 # including network headers
index bf1899cdfac88c7cb947f30a792be8b2feaaf4db..f68ea27da8ed8af8f820636467bc59092fbabcd4 100644 (file)
 /* Define to 1 if you have the <syslog.h> header file. */
 #cmakedefine HAVE_SYSLOG_H
 
-/* Define to 1 if you have the `system' function. */
-#undef HAVE_SYSTEM
-
 /* Define to 1 if you have the <systemd/sd-daemon.h> header file. */
 #undef HAVE_SYSTEMD_SD_DAEMON_H
 
 /* Define to 1 if you have the <tap-windows.h> header file. */
 #undef HAVE_TAP_WINDOWS_H
 
-/* Define to 1 if you have the `time' function. */
-#define HAVE_TIME 1
-
-/* Define to 1 if you have the <time.h> header file. */
-#define HAVE_TIME_H 1
-
 /* Define to 1 if you have the <uapi.h> header file. */
 #undef HAVE_UAPI_H
 
 /* Define to 1 if you have the <valgrind/memcheck.h> header file. */
 #undef HAVE_VALGRIND_MEMCHECK_H
 
-/* Define to 1 if you have the `vfork' function. */
-#undef HAVE_VFORK
-
-/* Define to 1 if you have the <vfork.h> header file. */
-#undef HAVE_VFORK_H
-
 /* Availability of different mbed TLS features and APIs */
 #cmakedefine HAVE_PSA_CRYPTO_H
 #cmakedefine HAVE_MBEDTLS_SSL_SET_EXPORT_KEYS_CB
index 030f8ded970b769d166f142b65a48b12f3065dfc..60799e011ee14af10a538c3b260a49e012ee467d 100644 (file)
@@ -475,13 +475,7 @@ ifdef(
 )
 
 AC_C_INLINE
-AC_TYPE_OFF_T
-AC_TYPE_PID_T
-AC_TYPE_SIZE_T
-AC_TYPE_UID_T
 AX_TYPE_SOCKLEN_T
-AC_CHECK_SIZEOF([unsigned int])
-AC_CHECK_SIZEOF([unsigned long])
 AC_CHECK_HEADERS([ \
        fcntl.h io.h \
        sys/types.h sys/socket.h \
@@ -492,7 +486,7 @@ AC_CHECK_HEADERS([ \
 AC_CHECK_HEADERS([ \
        sys/time.h sys/ioctl.h sys/stat.h \
        sys/mman.h sys/file.h sys/wait.h \
-       unistd.h libgen.h stropts.h \
+       libgen.h stropts.h \
        syslog.h pwd.h grp.h termios.h \
        sys/sockio.h sys/uio.h \
        poll.h sys/epoll.h err.h \
@@ -545,12 +539,6 @@ AC_CHECK_TYPES(
        [AC_DEFINE([in_port_t], [uint16_t], [Workaround missing in_port_t])],
        [[${SOCKET_INCLUDES}]]
 )
-AC_CHECK_TYPE(
-       [struct iphdr],
-       [AC_DEFINE([HAVE_IPHDR], [1], [struct iphdr needed for IPv6 support])],
-       ,
-       [[${SOCKET_INCLUDES}]]
-)
 AC_CHECK_TYPE(
        [struct msghdr],
        [AC_DEFINE([HAVE_MSGHDR], [1], [struct msghdr needed for extended socket error support])],
@@ -657,11 +645,11 @@ AC_CHECK_DECLS(
 AC_FUNC_FORK
 
 AC_CHECK_FUNCS([ \
-       daemon chroot getpwnam setuid nice system dup dup2 \
+       daemon chroot getpwnam setuid nice dup dup2 \
        syslog openlog mlockall getrlimit getgrnam setgid \
-       setgroups flock time gettimeofday \
+       setgroups flock gettimeofday \
        setsid chdir \
-       chsize ftruncate execve getpeereid basename dirname access \
+       chsize ftruncate execve getpeereid basename dirname \
        epoll_create strsep \
 ])