mirror of
https://github.com/ceph/ceph
synced 2024-12-17 08:57:28 +00:00
autoconf: add check for the boost_program_options library
check for the existence of boost_program_options library in configure.ac since several files need that library Signed-off-by: Xing Lin <xinglin@cs.utah.edu>
This commit is contained in:
parent
729c1528a8
commit
125582e08e
13
configure.ac
13
configure.ac
@ -553,6 +553,19 @@ AC_CHECK_LIB(boost_thread-mt, main, [],
|
||||
[AC_CHECK_LIB(boost_thread, main, [],
|
||||
AC_MSG_FAILURE(["Boost thread library not found."]))])
|
||||
|
||||
#
|
||||
# Check for boost_program_options library (defines BOOST_PROGRAM_OPTIONS_LIBS).
|
||||
#
|
||||
BOOST_PROGRAM_OPTIONS_LIBS=""
|
||||
saved_LIBS="${LIBS}"
|
||||
LIBS=""
|
||||
AC_CHECK_LIB(boost_program_options-mt, main, [],
|
||||
[AC_CHECK_LIB(boost_program_options, main, [],
|
||||
AC_MSG_FAILURE(["Boost program options library not found."]))])
|
||||
BOOST_PROGRAM_OPTIONS_LIBS="${LIBS}"
|
||||
LIBS="${saved_LIBS}"
|
||||
AC_SUBST(BOOST_PROGRAM_OPTIONS_LIBS)
|
||||
|
||||
AC_LANG([C])
|
||||
|
||||
AC_CHECK_MEMBER([struct fiemap_extent.fe_logical],
|
||||
|
Loading…
Reference in New Issue
Block a user