summaryrefslogtreecommitdiff
path: root/recipes-support/heartbeat/files/0001-remove-runtime-configure-checks.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-support/heartbeat/files/0001-remove-runtime-configure-checks.patch')
-rwxr-xr-xrecipes-support/heartbeat/files/0001-remove-runtime-configure-checks.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/recipes-support/heartbeat/files/0001-remove-runtime-configure-checks.patch b/recipes-support/heartbeat/files/0001-remove-runtime-configure-checks.patch
new file mode 100755
index 0000000..1c7928d
--- /dev/null
+++ b/recipes-support/heartbeat/files/0001-remove-runtime-configure-checks.patch
@@ -0,0 +1,27 @@
+--- a/configure.ac 2015-02-09 17:04:41.000000000 +0100
++++ b/configure.ac 2015-09-11 13:33:03.765388294 +0200
+@@ -2022,23 +2022,8 @@ AC_CHECK_HEADERS(bzlib.h, , [bz2_install
+ AC_CHECK_LIB(bz2, BZ2_bzBuffToBuffCompress , , [bz2_installed="no"])
+ AM_CONDITIONAL(BUILD_BZ2_COMPRESS_MODULE, test "x${bz2_installed}" = "xyes")
+
+-dnl check if there are getpid() inconsistency
+-dnl Note: reduce LIBS; in particular, ltdl can cause confusion.
+-dnl Possibly better: move 'LIBS="$LIBS -lltdl"' from above to beyond here.
+-dnl
+-AC_MSG_CHECKING(for getpid() consistency in multi-process/threads program)
+-ac_save_LIBS=$LIBS
+-LIBS="-lpthread"
+-AC_TRY_RUN(`cat $srcdir/config/pidtest.c`,
+-AC_MSG_RESULT(ok),
+-[AC_MSG_RESULT(fail); AC_DEFINE(GETPID_INCONSISTENT, 1 , [pid inconsistent])],)
+-LIBS=$ac_save_LIBS
+
+-dnl check byte order
+-AC_MSG_CHECKING(for byteorder)
+-AC_TRY_RUN(`cat $srcdir/config/byteorder_test.c`,
+-[AC_MSG_RESULT(little-endian); AC_DEFINE(CONFIG_LITTLE_ENDIAN, 1, [little-endian])],
+-[AC_MSG_RESULT(big-endian); AC_DEFINE(CONFIG_BIG_ENDIAN, 1, [big-endian])],)
++AC_DEFINE(CONFIG_BIG_ENDIAN, 1, [big-endian])
+
+
+ dnl