.svn folders cleaned
[libg2hec.git] / configure.ac
blob8427303652734fafbf9c8260029a925c4b1d952b
1 #                                               -*- Autoconf -*-
2 # Process this file with autoconf to produce a configure script.
4 AC_PREREQ(2.61)
5 AC_INIT([g2hec-lib], [0.1], [Ning Shang <nshang@math.purdue.edu>])
6 AM_INIT_AUTOMAKE
7 AC_CONFIG_SRCDIR([src/divisor_negate.C])
8 AC_CONFIG_HEADER([config.h])
9 AC_CONFIG_MACRO_DIR([m4])
11 # Checks for programs.
12 AC_PROG_CC
13 AC_PROG_CXX
14 AC_PROG_MAKE_SET
15 AC_PROG_RANLIB
16 AC_LANG([C++])
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])
33 # NTL is a must
34 #if test "x${have_ntl}" = xno; then
35 #  AC_ARG_WITH([ntl],
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"
46 #  AC_SUBST(NTL_LIBS)
47 #  AC_SUBST(NTL_CPPFLAGS)
48 #fi
50 # Checks for header files.
52 # Checks for typedefs, structures, and compiler characteristics.
53 AC_HEADER_STDBOOL
54 AC_C_CONST
55 AC_C_INLINE
57 # Checks for library functions.
59 AC_CONFIG_FILES([Makefile
60                  src/Makefile
61                  doc/Makefile])
63 AC_OUTPUT