source: git/libpolys/polys/configure.ac @ 1135a61

fieker-DuValspielwiese
Last change on this file since 1135a61 was 812138, checked in by Bradford Hovinen <hovinen@…>, 13 years ago
* Create new macros SING_SYSTEM_SUPPORTS_DYNAMIC_MODULES and SING_CHECK_P_PROCS to resolve question of whether to enable p_Procs_Static and p_Procs_Dynamic * Invoke new macro in libpolys/polys/configure.ac and use its output to direct compilation in libpolys/polys/Makefile.am
  • 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
12SING_CHECK_P_PROCS
13
14# Checks for programs.
15AC_PROG_CXX
16AC_PROG_CC
17AC_PROG_LN_S
18#AC_PROG_RANLIB
19AC_LIBTOOL_DLOPEN
20AC_PROG_LIBTOOL
21AM_PROG_CC_C_O
22
23# Checks for libraries.
24LB_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)]))
25
26# Checks for header files.
27AC_CHECK_HEADERS([stdlib.h string.h])
28
29# Checks for typedefs, structures, and compiler characteristics.
30AC_HEADER_STDBOOL
31AC_C_INLINE
32
33# Checks for library functions.
34AC_FUNC_MALLOC
35AC_CHECK_FUNCS([memset])
36
37AC_CONFIG_FILES([Makefile])
38
39case $DL_KERNEL in
40 static)        DL_KERNEL_OBJECT='p_Procs_Static.$(OBJEXT)'
41                DL_KERNEL_OBJECT_DEBUG='p_Procs_Static.$(OBJEXT)g' ;;
42 dynamic)       DL_KERNEL_OBJECT='p_Procs_Dynamic.$(OBJEXT)'
43                DL_KERNEL_OBJECT_DEBUG='p_Procs_Dynamic.$(OBJEXT)g' ;;
44esac
45
46AC_SUBST([DL_KERNEL_OBJECT])
47AC_SUBST([DL_KERNEL_OBJECT_DEBUG])
48
49AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.