source: git/libpolys/polys/configure.ac @ ab4f17

spielwiese
Last change on this file since ab4f17 was ab4f17, checked in by Mohamed Barakat <mohamed.barakat@…>, 13 years ago
added an autoconf macro to check for GMP
  • Property mode set to 100644
File size: 1.3 KB
Line 
1#                                               -*- Autoconf -*-
2# Process this file with autoconf to produce a configure script.
3
4AC_PREREQ([2.65])
5AC_INIT([polys], [3.1.2.sw])
6AC_CONFIG_AUX_DIR([.])
7AM_INIT_AUTOMAKE
8AC_CONFIG_SRCDIR([pDebug.cc])
9AC_CONFIG_HEADERS([config.h])
10AC_CONFIG_MACRO_DIR([m4],[../../m4])
11
12# Checks for programs.
13AC_PROG_CXX
14AC_PROG_CC
15AC_PROG_LN_S
16#AC_PROG_RANLIB
17AC_LIBTOOL_DLOPEN
18AC_PROG_LIBTOOL
19AM_PROG_CC_C_O
20
21# Checks for libraries.
22LB_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)]))
23
24
25# Checks for header files.
26AC_CHECK_HEADERS([stdlib.h string.h])
27
28# Checks for typedefs, structures, and compiler characteristics.
29AC_HEADER_STDBOOL
30AC_C_INLINE
31
32# Checks for library functions.
33AC_FUNC_MALLOC
34AC_CHECK_FUNCS([memset])
35
36AC_CONFIG_FILES([Makefile])
37
38case $DL_KERNEL in
39 static)        DL_KERNEL_OBJECT='p_Procs_Static.$(OBJEXT)'
40                DL_KERNEL_OBJECT_DEBUG='p_Procs_Static.$(OBJEXT)g' ;;
41 dynamic)       DL_KERNEL_OBJECT='p_Procs_Dynamic.$(OBJEXT)'
42                DL_KERNEL_OBJECT_DEBUG='p_Procs_Dynamic.$(OBJEXT)g' ;;
43esac
44
45AC_SUBST([DL_KERNEL_OBJECT])
46AC_SUBST([DL_KERNEL_OBJECT_DEBUG])
47
48AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.