From: Alexei Sheplyakov Date: Mon, 23 May 2011 21:37:09 +0000 (+0300) Subject: [build] configure: don't abuse AC_CHECK_FILE. Unbreaks the cross-compilation. X-Git-Tag: release_1-6-1~7 X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=commitdiff_plain;h=47a0c68f3e0c4af0ee22b3ca4fe0e5df66aa69db [build] configure: don't abuse AC_CHECK_FILE. Unbreaks the cross-compilation. Checking for ginsh_parser.h in configure is not a good idea, since it 1) produces a bogus warning during an out of source build, 2) breaks cross-compilation. Solution: just skip that bogus check (auto* tools do a similar check in the run-time *for a reason*). --- diff --git a/configure.ac b/configure.ac index ea990d4f..3ad966e4 100644 --- a/configure.ac +++ b/configure.ac @@ -97,10 +97,6 @@ dnl Check for stuff needed for building the GiNaC interactive shell (ginsh). AC_CHECK_HEADERS(unistd.h) GINAC_HAVE_RUSAGE GINAC_READLINE -AC_CHECK_FILE([ginsh/ginsh_parser.h], [], - [AS_IF([test -z "$YACCEXE"], [GINAC_WARNING([ginsh will not compile, because yacc/bison is missing.])])]) -AC_CHECK_FILE([ginsh/ginsh_lexer.cc], [], - [AS_IF([test x"$LEX" == x":"], [GINAC_WARNING([ginsh will not compile, because lex/flex is missing.])])]) dnl Check for dl library (needed for GiNaC::compile). GINAC_EXCOMPILER