1 AC_DEFUN([AX_CHECK_NTL], [
3 SAVE_CPPFLAGS="$CPPFLAGS"
4 SAVE_LDFLAGS="$LDFLAGS"
5 CPPFLAGS="$NTL_CPPFLAGS $CPPFLAGS"
6 LDFLAGS="$NTL_LDFLAGS $LDFLAGS"
8 AC_CHECK_HEADER([NTL/ZZ.h],[],[bv_no_ntl=true])
14 ],:,AC_MSG_ERROR(ntl not compiled with gmp support))
19 ], [], [], [AC_MSG_ERROR(Upgrade NTL or configure with NTL_STD_CXX=on)])
22 AC_CHECK_LIB(ntl, main,[],[bv_no_ntl=true])
23 if test "$bv_no_ntl" = "true"; then
24 AC_MSG_ERROR(Need ntl)
26 CPPFLAGS="$SAVE_CPPFLAGS"
27 LDFLAGS="$SAVE_LDFLAGS"