]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
configure.ac: check for boost/spirit.hpp
authorsage <sage@ceph0.dreamhost.com>
Wed, 9 Apr 2008 21:39:25 +0000 (14:39 -0700)
committersage <sage@ceph0.dreamhost.com>
Wed, 9 Apr 2008 21:39:25 +0000 (14:39 -0700)
configure.ac

index 7ae02b745bae87deb7661928ce7b5cd968964fe5..1cfb5d5bce5131ec19c52d7394efa6dde9aa95eb 100644 (file)
@@ -88,6 +88,15 @@ AM_CONDITIONAL(WITH_CCGNU, test "WITH_CCGNU" = "1")
 AC_HEADER_DIRENT
 AC_HEADER_STDC
 AC_HEADER_SYS_WAIT
+
+# spirit?
+AC_LANG([C++])
+AC_DEFINE([HAVE_BOOST_SPIRIT_CORE_HPP], [], [Description])
+AC_CHECK_HEADER([boost/spirit.hpp],
+                [AC_DEFINE([HAVE_BOOST_SPIRIT_CORE_HPP])],
+                [AC_MSG_ERROR([Sorry, you need to install the Boost spirit parser library (libboost-dev on debian)])])
+
+AC_LANG([C])
 AC_CHECK_HEADERS([arpa/inet.h fcntl.h netdb.h netinet/in.h stdint.h stdlib.h string.h sys/file.h sys/ioctl.h sys/mount.h sys/param.h sys/socket.h sys/statvfs.h sys/time.h sys/vfs.h syslog.h unistd.h utime.h])
 
 # Checks for typedefs, structures, and compiler characteristics.