source: git/libpolys/configure.ac @ 9d53d0

spielwiese
Last change on this file since 9d53d0 was 964389, checked in by Oleksandr Motsak <motsak@…>, 12 years ago
ADD: add INSTALL_PREFIX macro into config.h and to the search path
  • Property mode set to 100644
File size: 2.3 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
73if test "x$prefix" != xNONE; then
74  PREFIX="$prefix"
75else
76  PREFIX="$ac_default_prefix"
77fi
78
79# AC_SUBST(PREFIX)
80AC_DEFINE_UNQUOTED(INSTALL_PREFIX,"$PREFIX",Prefix)
81
82AC_SUBST(LIBPREFIX)
83
84AC_CONFIG_FILES([Makefile])
85AC_CONFIG_FILES([misc/Makefile])
86AC_CONFIG_FILES([reporter/Makefile])
87AC_CONFIG_FILES([resources/Makefile])
88AC_CONFIG_FILES([coeffs/Makefile])
89AC_CONFIG_FILES([polys/Makefile])
90AC_CONFIG_FILES([tests/Makefile])
91AC_CONFIG_FILES([libpolys-config])
92AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.