do
CPPFLAGS="$OLD_CPPFLAGS -I$antlr_prefix/include"
LIBS="$OLD_LIBS -L$antlr_prefix/lib -lantlr3c"
- AC_LINK_IFELSE(
+ AC_LINK_IFELSE([AC_LANG_SOURCE(
[
#include <antlr3.h>
pANTLR3_TOKEN_FACTORY factory = antlr3TokenFactoryNew((pANTLR3_INPUT_STREAM) NULL);
return 0;
}
- ],
+ ])],
[
AC_MSG_RESULT(found in $antlr_prefix)
ANTLR_INCLUDES="-I$antlr_prefix/include"
done
AC_MSG_CHECKING([for presence of older antlr3AsciiFileStreamNew()])
- AC_LINK_IFELSE(
+ AC_LINK_IFELSE([AC_LANG_SOURCE(
[
#include <antlr3.h>
pANTLR3_INPUT_STREAM input = antlr3AsciiFileStreamNew(fName);
return 0;
}
- ],
+ ])],
[
AC_MSG_RESULT([found it (must be antlr3 3.2 or similar)])
CVC4CPPFLAGS="${CVC4CPPFLAGS:+$CVC4CPPFLAGS }-DCVC4_ANTLR3_OLD_INPUT_STREAM"
[
AC_MSG_RESULT(failed)
AC_MSG_CHECKING([for presence of newer antlr3FileStreamNew()])
- AC_LINK_IFELSE(
+ AC_LINK_IFELSE([AC_LANG_SOURCE(
[
#include <antlr3.h>
pANTLR3_INPUT_STREAM input = antlr3FileStreamNew(fName, ANTLR3_ENC_8BIT);
return 0;
}
- ],
+ ])],
[
AC_MSG_RESULT([found it (must be antlr3 3.4 or similar)])
],
cvc4_save_CXXFLAGS="$CXXFLAGS"
CXXFLAGS="$CXXFLAGS $1"
AC_LANG_PUSH([C++])
-AC_COMPILE_IFELSE([int main() { return 0; }],
+AC_COMPILE_IFELSE([AC_LANG_SOURCE([int main() { return 0; }])],
[AC_MSG_RESULT([yes]); $2='$1'],
[AC_MSG_RESULT([no])])
AC_LANG_POP([C++])
cvc4_save_LDFLAGS="$LDFLAGS"
LDFLAGS="-static $LDFLAGS"
LIBS="$READLINE_LIBS $LIBS"
- AC_LINK_IFELSE(AC_LANG_PROGRAM([#include <readline/readline.h>],
- [readline("")]),
+ AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <readline/readline.h>],
+ [readline("")])],
[ AC_MSG_RESULT([yes, it works])
with_readline=yes ],
[ AC_MSG_RESULT([no])