source: git/libpolys/configure.ac @ 06df101

spielwiese
Last change on this file since 06df101 was ea0001, checked in by Mohamed Barakat <mohamed.barakat@…>, 13 years ago
make check finds the gftables and dynamic modules (also out of tree) - added AM_MAINTAINER_MODE to configure.ac everywhere - we now symlink to gftables rather than copying - use GFTABLEDIR to find gftables in nfReadTable (this is a hack which breaks Singular when it is installed) - symlink the dynamic modules from libpolys/polys to libpolys/tests
  • Property mode set to 100644
File size: 2.2 KB
Line 
1AC_INIT([singular], [3.1.2.sw])
2AC_CONFIG_MACRO_DIR([../m4])
3AC_CONFIG_AUX_DIR([.])
4AC_CONFIG_SRCDIR([reporter/reporter.h])
5AC_CONFIG_HEADER([config.h misc/auxiliary.h])
6AM_MAINTAINER_MODE
7AM_INIT_AUTOMAKE
8
9dnl Check if build env is sane
10AM_SANITY_CHECK
11
12LT_INIT(dlopen disable-static)
13
14# Checks for programs.
15AC_PROG_CXX
16AC_PROG_CC
17AC_PROG_LN_S
18AC_PROG_INSTALL
19AM_PROG_CC_C_O
20
21# Checks for libraries.
22LB_CHECK_GMP(3.1.1,,AC_MSG_ERROR([Unable to find GMP on your machine: please use --with-gmp=PATH_TO_DIR_CONTAINING_LIB_AND_INCLUDE (see also ./configure --help if you do not understand what we are talking about)]))
23
24LB_CHECK_NTL(5.0,,AC_MSG_WARN([Unable to find NTL (which is strongly recommended) on your machine: please use --with-ntl=PATH_TO_DIR_CONTAINING_LIB_AND_INCLUDE (see also ./configure --help if you do not understand what we are talking about)]))
25
26# Checks for library functions.
27AC_FUNC_ERROR_AT_LINE
28AC_CHECK_FUNCS([memmove memset pow sqrt strchr])
29AC_FUNC_VPRINTF
30AC_FUNC_MALLOC
31AC_CHECK_FUNC([vsnprintf], [AC_DEFINE([HAVE_VSNPRINTF], [1], [Define if vsnprintf exists.])])
32
33# Checks for header files.
34AC_HEADER_STDC
35AC_STDC_HEADERS
36AC_CHECK_HEADERS([stdlib.h string.h unistd.h pwd.h sys/param.h limits.h float.h])
37
38# Checks for typedefs, structures, and compiler characteristics.
39AC_C_CONST
40AC_C_INLINE
41AC_HEADER_STDBOOL
42AC_TYPE_SIZE_T
43
44SING_CHECK_PIPE
45
46# check for cpu properties
47AC_CHECK_SIZEOF(long,4)
48SING_CHECK_CPU
49
50#check for host:
51AC_CANONICAL_HOST
52case $host_os in
53  *cygwin* ) LIBPREFIX="-Xlinker -Bdynamic";;
54  * ) LIBPREFIX="";;
55esac
56
57dnl INCLUDES=""
58dnl dnl OS specific flags and options
59dnl case "$host" in
60dnl     *-*-freebsd*)
61dnl         LIBS="$LIBS -L/usr/local/lib -lc"
62dnl     CFLAGS="$CFLAGS -I/usr/local/include"
63dnl     INCLUDES="$INCLUDES -I/usr/local/include"
64dnl     ;;
65dnl esac       
66dnl AC_SUBST(INCLUDES)
67
68SING_CHECK_P_PROCS
69SING_CHECK_ARITH_RINGS
70SING_CHECK_FACTORY
71SING_CHECK_PLURAL
72
73AC_SUBST(LIBPREFIX)
74
75AC_CONFIG_FILES([Makefile])
76AC_CONFIG_FILES([misc/Makefile])
77AC_CONFIG_FILES([reporter/Makefile])
78AC_CONFIG_FILES([resources/Makefile])
79AC_CONFIG_FILES([coeffs/Makefile])
80AC_CONFIG_FILES([polys/Makefile])
81AC_CONFIG_FILES([tests/Makefile])
82AC_CONFIG_FILES([libpolys-config])
83AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.