source: git/libpolys/configure.ac @ 720156

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