spielwiese
Last change
on this file since 41dde6 was
41dde6,
checked in by Mohamed Barakat <mohamed.barakat@…>, 12 years ago
|
- moved the definitions of HAVE_MULT_MOD, HAVE_DIV_MOD, and HAVE_GENERIC_ADD to cpu-check.m4
- generate misc/auxiliary.h in configure script
|
-
Property mode set to
100644
|
File size:
1.5 KB
|
Line | |
---|
1 | AC_INIT([singular], [3.1.2.sw]) |
---|
2 | AC_CONFIG_MACRO_DIR([../m4]) |
---|
3 | AC_CONFIG_AUX_DIR([.]) |
---|
4 | AC_CONFIG_SRCDIR([reporter/reporter.h]) |
---|
5 | AC_CONFIG_HEADER([config.h misc/auxiliary.h]) |
---|
6 | AM_INIT_AUTOMAKE |
---|
7 | |
---|
8 | # Checks for programs. |
---|
9 | AC_PROG_CXX |
---|
10 | AC_PROG_CC |
---|
11 | AC_PROG_LN_S |
---|
12 | AC_PROG_INSTALL |
---|
13 | AM_PROG_CC_C_O |
---|
14 | AC_LIBTOOL_DLOPEN |
---|
15 | AC_PROG_LIBTOOL |
---|
16 | |
---|
17 | # Checks for libraries. |
---|
18 | LB_CHECK_GMP(,,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)])) |
---|
19 | |
---|
20 | # Checks for library functions. |
---|
21 | AC_FUNC_ERROR_AT_LINE |
---|
22 | AC_CHECK_FUNCS([memmove memset pow sqrt strchr]) |
---|
23 | AC_FUNC_VPRINTF |
---|
24 | AC_FUNC_MALLOC |
---|
25 | AC_CHECK_FUNC([vsnprintf], [AC_DEFINE([HAVE_VSNPRINTF], [1], |
---|
26 | [Define if vsnprintf exists.])]) |
---|
27 | |
---|
28 | # Checks for header files. |
---|
29 | AC_HEADER_STDC |
---|
30 | AC_CHECK_HEADERS([stdlib.h string.h unistd.h pwd.h sys/param.h limits.h float.h]) |
---|
31 | |
---|
32 | # Checks for typedefs, structures, and compiler characteristics. |
---|
33 | AC_C_CONST |
---|
34 | AC_C_INLINE |
---|
35 | AC_HEADER_STDBOOL |
---|
36 | AC_TYPE_SIZE_T |
---|
37 | |
---|
38 | SING_CHECK_PIPE |
---|
39 | |
---|
40 | # check for cpu properties |
---|
41 | AC_CHECK_SIZEOF(long,4) |
---|
42 | SING_CHECK_CPU |
---|
43 | |
---|
44 | #check for host: |
---|
45 | AC_CANONICAL_HOST |
---|
46 | case $host_os in |
---|
47 | *cygwin* ) LIBPREFIX="-Xlinker -Bdynamic";; |
---|
48 | * ) LIBPREFIX="";; |
---|
49 | esac |
---|
50 | |
---|
51 | SING_CHECK_P_PROCS |
---|
52 | |
---|
53 | AC_SUBST(LIBPREFIX) |
---|
54 | |
---|
55 | AC_CONFIG_FILES([Makefile]) |
---|
56 | AC_CONFIG_FILES([misc/Makefile]) |
---|
57 | AC_CONFIG_FILES([reporter/Makefile]) |
---|
58 | AC_CONFIG_FILES([resources/Makefile]) |
---|
59 | AC_CONFIG_FILES([coeffs/Makefile]) |
---|
60 | AC_CONFIG_FILES([polys/Makefile]) |
---|
61 | AC_CONFIG_FILES([tests/Makefile]) |
---|
62 | AC_OUTPUT |
---|
Note: See
TracBrowser
for help on using the repository browser.