# Process this file with autoconf to produce a configure script.
AC_PREREQ(2.59)
-AC_INIT(folly, 0.1, folly@fb.com)
-m4_define([folly_libtool_current], [1])
+m4_define([folly_version_str], m4_esyscmd_s([cat VERSION]))
+
+AC_INIT([folly], m4_translit(folly_version_str, [:], [.]), [folly@fb.com])
# We assume all revisions are backwards incompatible.
-LT_VERSION=folly_libtool_current:0:0
-AC_SUBST(LT_VERSION)
+LT_VERSION=folly_version_str:0
+AC_SUBST([LT_VERSION])
AC_CONFIG_SRCDIR([Likely.h])
AC_CONFIG_HEADERS([config.h])
AC_CHECK_LIB([gflags],[getenv],[],[AC_MSG_ERROR(
[Please install google-gflags library])])
+AC_CHECK_LIB(ssl,
+ SSL_ctrl,
+ [],
+ [AC_MSG_ERROR(["Error: libssl required"])])
+
# check for boost libs
AX_BOOST_BASE([1.20.0], [], [AC_MSG_ERROR(
[Please install boost >= 1.20.0 (thread, regex, and system)])])
AC_CHECK_HEADER(double-conversion/double-conversion.h, [], [AC_MSG_ERROR(
[Couldn't find double-conversion.h, please download from \
- http://code.google.com/p/double-conversion/])], [])
+ https://github.com/floitsch/double-conversion/])], [])
AC_CHECK_LIB([double-conversion],[ceil],[],[AC_MSG_ERROR(
[Please install double-conversion library])])
AC_CHECK_LIB([event], [event_set], [], [AC_MSG_ERROR([Unable to find libevent])])
-AC_CHECK_LIB([jemalloc], [rallocm])
+AC_CHECK_LIB([jemalloc], [xallocx])
# Checks for typedefs, structures, and compiler characteristics.
AC_HEADER_STDBOOL
AC_TYPE_SIZE_T
AC_HEADER_TIME
AC_C_VOLATILE
-AC_CHECK_TYPE([__int128],
- [AC_DEFINE([HAVE_INT128_T], [1], [Define if __int128 exists])],
- [AC_DEFINE([HAVE_INT128_T], [0], [Define if __int128 does not exist])])
-AC_CHECK_TYPES([ptrdiff_t])
+AC_CHECK_TYPE([__int128], AC_DEFINE([HAVE_INT128_T], [1], [Define if we have __int128]))
+AC_CHECK_TYPES([ptrdiff_t, pthread_spinlock_t])
AC_CACHE_CHECK(
[for ifunc support],
pow \
strerror \
pthread_yield \
- rallocm \
+ pthread_atfork \
malloc_size \
malloc_usable_size \
memrchr \
AM_CONDITIONAL([HAVE_LINUX], [test "$build_os" == "linux-gnu"])
AM_CONDITIONAL([HAVE_WEAK_SYMBOLS],
[test "$folly_cv_prog_cc_weak_symbols" = "yes"])
-AM_CONDITIONAL([HAVE_BITS_FUNCTEXCEPT], [test "$ac_cv_header_bits_functexcept" = "yes"])
+AM_CONDITIONAL([HAVE_BITS_FUNCTEXCEPT], [test "$ac_cv_header_bits_functexcept_h" = "yes"])
# Output
AC_CONFIG_FILES([Makefile