From 9ff03784d66e143709ab422b73bc97b7ae17f3e9 Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Sun, 3 Jun 2012 13:58:01 +0000 Subject: [PATCH] build: if FlexLexer.h isn't found in the build environment, use the one we ship in contrib. --- configure.ac | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/configure.ac b/configure.ac index 11185af4..03201104 100644 --- a/configure.ac +++ b/configure.ac @@ -268,6 +268,16 @@ AM_CONDITIONAL(USE_SDL_MIXER, test "${ac_cv_my_have_sdl_mixer}" = "yes") AM_CONDITIONAL(USE_SDL_IMAGE, test "${ac_cv_my_have_sdl_image}" = "yes") +dnl Use Flex's FlexLexer.h or ours? +ac_cv_my_have_flexlexer_h="no" +AC_LANG_PUSH(C++) +AC_CHECK_HEADERS(FlexLexer.h, [ac_cv_my_have_flexlexer_h="yes"]) +AC_LANG_POP(C++) +if test "x${ac_cv_my_have_flexlexer_h}" = "xno"; then + LOL_CFLAGS="$LOL_CFLAGS -I\$(top_srcdir)/contrib/flex-2.5.35/include" +fi + + dnl Use NativeClient? ac_cv_my_have_nacl="no" AC_LANG_PUSH(C++)