Ignore:
Timestamp:
Oct 20, 2012, 4:08:52 PM (11 years ago)
Author:
sam
Message:

build: check for a decent version of sed (ie. not the shitty BSD one).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure.ac

    r1995 r2036  
    4949AC_EGREP_CPP(yes, foo)
    5050PKG_PROG_PKG_CONFIG()
     51
     52
     53dnl  Check for a working implementation of sed
     54AC_PROG_SED
     55AC_MSG_CHECKING(for a sed that understands \t)
     56if test "$(echo 'x\x' | "${SED}" 's/.*@<:@^x\t@:>@//')" != x; then
     57  AC_MSG_RESULT(no)
     58  AC_MSG_ERROR([[consider installing GNU sed]])
     59else
     60  AC_MSG_RESULT(yes)
     61fi
     62
    5163
    5264AM_CONDITIONAL(USE_GLEW, test "${ac_cv_my_have_glew}" != "no")
     
    226238ac_cv_my_have_flexlexer_h="no"
    227239AC_LANG_PUSH(C++)
    228 AC_CHECK_HEADERS(FlexLexer.h, [ac_cv_my_have_flexlexer_h="yes"])
     240AC_CHECK_HEADERS(FlexLexer.h,
     241 dnl  Ensure that FlexLexer::yleng is of type int, and not size_t like
     242 dnl  on recent Apple systems. It would break all our existing code.
     243 [AC_MSG_CHECKING(for FlexLexer.h validity)
     244  AC_COMPILE_IFELSE(
     245   [AC_LANG_PROGRAM([#include <FlexLexer.h>
     246      class Foo : public FlexLexer
     247      {
     248          Foo() { int &test = yyleng; }
     249      }],
     250     [])],
     251   [AC_MSG_RESULT(yes)
     252    ac_cv_my_have_flexlexer_h="yes"],
     253   [AC_MSG_RESULT(no)])])
    229254AC_LANG_POP(C++)
    230255if test "x${ac_cv_my_have_flexlexer_h}" = "xno"; then
Note: See TracChangeset for help on using the changeset viewer.