@@ -307,13 +307,6 @@ AC_ARG_ENABLE([gprof],
307
307
[ enable_gprof=$enableval] ,
308
308
[ enable_gprof=no] )
309
309
310
- dnl Pass compiler & linker flags that make builds deterministic
311
- AC_ARG_ENABLE ( [ determinism] ,
312
- [ AS_HELP_STRING ( [ --enable-determinism] ,
313
- [ Enable compilation flags that make builds deterministic (default is no)] ) ] ,
314
- [ enable_determinism=$enableval] ,
315
- [ enable_determinism=no] )
316
-
317
310
dnl Turn warnings into errors
318
311
AC_ARG_ENABLE ( [ werror] ,
319
312
[ AS_HELP_STRING ( [ --enable-werror] ,
@@ -482,7 +475,9 @@ if test "x$CXXFLAGS_overridden" = "xno"; then
482
475
AX_CHECK_COMPILE_FLAG ( [ -Wself-assign] ,[ NOWARN_CXXFLAGS="$NOWARN_CXXFLAGS -Wno-self-assign"] ,,[ [ $CXXFLAG_WERROR] ] )
483
476
AX_CHECK_COMPILE_FLAG ( [ -Wunused-local-typedef] ,[ NOWARN_CXXFLAGS="$NOWARN_CXXFLAGS -Wno-unused-local-typedef"] ,,[ [ $CXXFLAG_WERROR] ] )
484
477
AX_CHECK_COMPILE_FLAG ( [ -Wimplicit-fallthrough] ,[ NOWARN_CXXFLAGS="$NOWARN_CXXFLAGS -Wno-implicit-fallthrough"] ,,[ [ $CXXFLAG_WERROR] ] )
485
- AX_CHECK_COMPILE_FLAG ( [ -Wdeprecated-copy] ,[ NOWARN_CXXFLAGS="$NOWARN_CXXFLAGS -Wno-deprecated-copy"] ,,[ [ $CXXFLAG_WERROR] ] )
478
+ if test x$suppress_external_warnings != xyes ; then
479
+ AX_CHECK_COMPILE_FLAG ( [ -Wdeprecated-copy] ,[ NOWARN_CXXFLAGS="$NOWARN_CXXFLAGS -Wno-deprecated-copy"] ,,[ [ $CXXFLAG_WERROR] ] )
480
+ fi
486
481
fi
487
482
488
483
dnl Don't allow extended (non-ASCII) symbols in identifiers. This is easier for code review.
@@ -964,12 +959,6 @@ if test x$TARGET_OS = xdarwin; then
964
959
AX_CHECK_LINK_FLAG ( [ [ -Wl,-bind_at_load] ] , [ HARDENED_LDFLAGS="$HARDENED_LDFLAGS -Wl,-bind_at_load"] ,, [ [ $LDFLAG_WERROR] ] )
965
960
fi
966
961
967
- if test x$enable_determinism = xyes; then
968
- if test x$TARGET_OS = xwindows; then
969
- AX_CHECK_LINK_FLAG ( [ [ -Wl,--no-insert-timestamp] ] , [ LDFLAGS="$LDFLAGS -Wl,--no-insert-timestamp"] ,, [ [ $LDFLAG_WERROR] ] )
970
- fi
971
- fi
972
-
973
962
AC_CHECK_HEADERS ( [ endian.h sys/endian.h byteswap.h stdio.h stdlib.h unistd.h strings.h sys/types.h sys/stat.h sys/select.h sys/prctl.h sys/sysctl.h vm/vm_param.h sys/vmmeter.h sys/resources.h] )
974
963
975
964
AC_CHECK_DECLS ( [ getifaddrs, freeifaddrs] ,[ CHECK_SOCKET] ,,
@@ -981,6 +970,8 @@ AC_CHECK_DECLS([strnlen])
981
970
dnl Check for daemon(3), unrelated to --with-daemon (although used by it)
982
971
AC_CHECK_DECLS ( [ daemon] )
983
972
973
+ AC_CHECK_DECLS ( [ pipe2] )
974
+
984
975
AC_CHECK_DECLS ( [ le16toh, le32toh, le64toh, htole16, htole32, htole64, be16toh, be32toh, be64toh, htobe16, htobe32, htobe64] ,,,
985
976
[ #if HAVE_ENDIAN_H
986
977
#include <endian.h>
@@ -1185,6 +1176,7 @@ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <fcntl.h>]],
1185
1176
[ AC_MSG_RESULT ( yes ) ; HAVE_O_CLOEXEC=1 ] ,
1186
1177
[ AC_MSG_RESULT ( no ) ; HAVE_O_CLOEXEC=0 ]
1187
1178
)
1179
+ AC_DEFINE_UNQUOTED ( [ HAVE_O_CLOEXEC] , [ $HAVE_O_CLOEXEC] , [ Define to 1 if O_CLOEXEC flag is available.] )
1188
1180
1189
1181
dnl crc32c platform checks
1190
1182
AC_MSG_CHECKING ( for __builtin_prefetch )
@@ -1348,13 +1340,15 @@ if test x$enable_wallet != xno; then
1348
1340
fi
1349
1341
1350
1342
if test x$use_ebpf != xno; then
1351
- AC_CHECK_HEADER ( [ sys/sdt.h] , [ have_sdt=yes] , [ have_sdt=no] )
1352
- else
1353
- have_sdt=no
1354
- fi
1355
-
1356
- if test x$have_sdt = xyes; then
1357
- AC_DEFINE ( [ ENABLE_TRACING] , [ 1] , [ Define to 1 to enable eBPF user static defined tracepoints] )
1343
+ AC_MSG_CHECKING ( [ whether eBPF tracepoints are supported] )
1344
+ AC_COMPILE_IFELSE ( [
1345
+ AC_LANG_PROGRAM (
1346
+ [ #include <sys/sdt.h>] ,
1347
+ [ DTRACE_PROBE("context", "event");]
1348
+ ) ] ,
1349
+ [ AC_MSG_RESULT ( yes ) ; have_sdt=yes; AC_DEFINE ( [ ENABLE_TRACING] , [ 1] , [ Define to 1 to enable eBPF user static defined tracepoints] ) ] ,
1350
+ [ AC_MSG_RESULT ( no ) ; have_sdt=no;]
1351
+ )
1358
1352
fi
1359
1353
1360
1354
dnl Check for libminiupnpc (optional)
0 commit comments