2 # Process this file with autoconf to produce a configure script.
5 AC_INIT([g2hec-lib], [0.1], [Ning Shang <nshang@math.purdue.edu>])
7 AC_CONFIG_SRCDIR([src/divisor_negate.C])
8 AC_CONFIG_HEADER([config.h])
9 AC_CONFIG_MACRO_DIR([m4])
11 # Checks for programs.
18 # hack to locate on BSD systems
19 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
20 LIBS="$LIBS -L/usr/local/lib"
22 dnl --------------------------------------------------------
24 # Checks for libraries.
25 # FIXME: Replace `main' with a function in `-lgmp':
26 AC_SEARCH_LIBS([__gmpz_init], [gmp])
27 # FIXME: Replace `main' with a function in `-lm':
28 AC_SEARCH_LIBS([pow], [m])
29 # FIXME: Replace `main' with a function in `-lntl':
30 AC_SEARCH_LIBS([FFT], [ntl])
31 #AC_SEARCH_LIBS([NTL::FFT], [ntl], [], [have_ntl=no])
34 #if test "x${have_ntl}" = xno; then
36 # [AS_HELP_STRING([--with-ntl=<path>],
37 # [prefix of NTL installation, e.g. /usr/local])],
38 # [NTL_PREFIX=$with_ntl],
39 # [AC_MSG_ERROR([You must call configure with the --with-ntl option.
40 # This tells configure where to find the NTL library and headers.
41 # e.g. --with-ntl=/usr/local or --with-mysql=/homes/user/local])])
43 # AC_SUBST(NTL_PREFIX)
44 # NTL_LIBS="-L${NTL_PREFIX}/lib -lntl"
45 # NTL_CPPFLAGS="-I${NTL_PREFIX}/include"
47 # AC_SUBST(NTL_CPPFLAGS)
50 # Checks for header files.
52 # Checks for typedefs, structures, and compiler characteristics.
57 # Checks for library functions.
59 AC_CONFIG_FILES([Makefile