Fail the configure script if you don't have boost
authorOwen Yamauchi <oyamauchi@fb.com>
Tue, 30 Apr 2013 21:33:21 +0000 (14:33 -0700)
committerSara Golemon <sgolemon@fb.com>
Mon, 20 May 2013 18:01:27 +0000 (11:01 -0700)
Summary:
Discovered this while trying to build folly on OS X. It would print a
warning about Boost being missing that got drowned out in the rest of
the configure output, and then the build would fail. This makes the
failure more friendly.

Test Plan:
`autoreconf; ./configure` on a system without boost
installed; make sure configure fails and the last thing it prints is the
boost error message.

Reviewed By: delong.j@fb.com

FB internal diff: D797389

folly/configure.ac

index 267fae39ff46e85aa1c9d9830c131e32b0234087..21d8f4adb9f659e64b23a27510cd2facd36403ac 100644 (file)
@@ -30,7 +30,8 @@ AC_CHECK_LIB([gflags],[getenv],[],[AC_MSG_ERROR(
              [Please install google-gflags library])])
 
 # check for boost libs
-AX_BOOST_BASE
+AX_BOOST_BASE([1.20.0], [], [AC_MSG_ERROR(
+              [Please install boost >= 1.20.0 (thread, regex, and system)])])
 AX_BOOST_THREAD
 AX_BOOST_REGEX
 AX_BOOST_SYSTEM