source: git/libpolys/configure.ac @ c5917f1

spielwiese
Last change on this file since c5917f1 was c5917f1, checked in by Bradford Hovinen <hovinen@…>, 13 years ago
* Add libpolys/libpolys-config.in as prototype for script to make it easier to link against libpolys * Generate libpolys/libpolys-config from configure
  • Property mode set to 100644
File size: 1.8 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_INIT_AUTOMAKE
7
8dnl Check if build env is sane
9AM_SANITY_CHECK
10
11LT_INIT(dlopen disable-static)
12
13# Checks for programs.
14AC_PROG_CXX
15AC_PROG_CC
16AC_PROG_LN_S
17AC_PROG_INSTALL
18AM_PROG_CC_C_O
19
20# Checks for libraries.
21LB_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)]))
22
23# Checks for library functions.
24AC_FUNC_ERROR_AT_LINE
25AC_CHECK_FUNCS([memmove memset pow sqrt strchr])
26AC_FUNC_VPRINTF
27AC_FUNC_MALLOC
28AC_CHECK_FUNC([vsnprintf], [AC_DEFINE([HAVE_VSNPRINTF], [1], [Define if vsnprintf exists.])])
29
30# Checks for header files.
31AC_HEADER_STDC
32AC_STDC_HEADERS
33AC_CHECK_HEADERS([stdlib.h string.h unistd.h pwd.h sys/param.h limits.h float.h])
34
35# Checks for typedefs, structures, and compiler characteristics.
36AC_C_CONST
37AC_C_INLINE
38AC_HEADER_STDBOOL
39AC_TYPE_SIZE_T
40
41SING_CHECK_PIPE
42
43# check for cpu properties
44AC_CHECK_SIZEOF(long,4)
45SING_CHECK_CPU
46
47#check for host:
48AC_CANONICAL_HOST
49case $host_os in
50  *cygwin* ) LIBPREFIX="-Xlinker -Bdynamic";;
51  * ) LIBPREFIX="";;
52esac
53
54dnl INCLUDES=""
55dnl dnl OS specific flags and options
56dnl case "$host" in
57dnl     *-*-freebsd*)
58dnl         LIBS="$LIBS -L/usr/local/lib -lc"
59dnl     CFLAGS="$CFLAGS -I/usr/local/include"
60dnl     INCLUDES="$INCLUDES -I/usr/local/include"
61dnl     ;;
62dnl esac       
63dnl AC_SUBST(INCLUDES)
64
65SING_CHECK_P_PROCS
66
67AC_SUBST(LIBPREFIX)
68
69AC_CONFIG_FILES([Makefile])
70AC_CONFIG_FILES([misc/Makefile])
71AC_CONFIG_FILES([reporter/Makefile])
72AC_CONFIG_FILES([resources/Makefile])
73AC_CONFIG_FILES([coeffs/Makefile])
74AC_CONFIG_FILES([polys/Makefile])
75AC_CONFIG_FILES([tests/Makefile])
76AC_CONFIG_FILES([libpolys-config])
77AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.