Changeset 6de4f47 in git
- Timestamp:
- Sep 12, 2016, 7:26:33 PM (7 years ago)
- Branches:
- (u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'a800fe4b3e9d37a38c5a10cc0ae9dfa0c15a4ee6')
- Children:
- 730a1f54bc084f74380e5a9e677a2122a271085b
- Parents:
- 98123a6d20c823df0a5dc471793cf7e98e0d5fc8
- Location:
- xalloc
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
xalloc/Makefile.am
r98123a r6de4f47 19 19 omTables_CPPFLAGS = ${AM_CPPFLAGS} 20 20 21 pkgconfigdir = $(libdir)/pkgconfig 22 pkgconfig_DATA = omalloc.pc 23 21 24 CLEANFILES = $(BUILT_SOURCES) 22 23 prefix=@prefix@24 exec_prefix=@exec_prefix@25 libdir=@libdir@26 includedir=@includedir@27 28 Name: omalloc29 Description: The Singular memory manager30 Version: @PACKAGE_VERSION@31 URL: https://github.com/Singular/Sources/tree/spielwiese/@PACKAGE@32 33 # Requires:34 # Conflicts:35 36 Cflags: -I${includedir}37 Libs: -L${libdir} -lomalloc38 # Libs.private:39 40 -
xalloc/configure.ac
r98123a r6de4f47 1 ACLOCAL_AMFLAGS = -I ../m4 1 dnl lllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll 2 dnl File: configure.ac 3 dnl Purpose: Process this file with autoconf to produce configure 4 dnl Author: obachman@mathematik.uni-kl.de (Olaf Bachmann) 5 dnl Created: 11/99 6 dnl lllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll 2 7 3 lib_LTLIBRARIES=libomalloc.la 8 AC_INIT([xmalloc],[4.0]) 4 9 5 libomalloc_includedir=$(includedir)/omalloc 10 AC_CONFIG_MACRO_DIR([../m4]) 11 AC_CONFIG_AUX_DIR([../build-aux]) 12 AC_CONFIG_SRCDIR(dummy.c) 13 AC_CONFIG_HEADER([_config.h]) 6 14 7 libomalloc_include_HEADERS = omalloc.h omallocClass.h 15 AC_PROG_CC 16 AC_PROG_CXX 8 17 9 S OURCES=dummy.c omallocClass.cc18 SING_RESET_FLAGS() 10 19 11 AM_CPPFLAGS =-I${top_srcdir}/.. -I${top_builddir}/.. 20 AM_MAINTAINER_MODE([enable]) 21 AM_INIT_AUTOMAKE([-Wall foreign subdir-objects]) # -Wno-extra-portability -Werror silent-rules 22 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])]) 23 m4_ifdef([AM_PROG_AR], [AM_PROG_AR]) 12 24 13 libomalloc_la_SOURCES=$(SOURCES) $(noinst_HEADERS) 25 AM_SANITY_CHECK 14 26 15 libomalloc_la_LDFLAGS = -release ${PACKAGE_VERSION} 27 # Add pre'prefixed config 28 AX_PREFIX_CONFIG_H([omConfig.h],[],[_config.h]) 16 29 17 libomalloc_la_CPPFLAGS = ${AM_CPPFLAGS} 30 # SING_CHECK_SET_ARGS() 18 31 19 omTables_CPPFLAGS = ${AM_CPPFLAGS} 32 AC_SUBST(VERSION) 20 33 21 CLEANFILES = $(BUILT_SOURCES) 34 CPPFLAGS="-I.. -I. $CPPFLAGS" 35 AC_PROG_MAKE_SET 36 AC_PROG_CC 37 AC_PROG_CPP 22 38 23 prefix=@prefix@ 24 exec_prefix=@exec_prefix@ 25 libdir=@libdir@ 26 includedir=@includedir@ 39 AC_PROG_LN_S 40 AC_PROG_INSTALL 41 AM_PROG_CC_C_O 42 # AM_PROG_AR 43 AC_C_CONST 44 AC_C_INLINE 27 45 28 Name: omalloc 29 Description: The Singular memory manager 30 Version: @PACKAGE_VERSION@ 31 URL: https://github.com/Singular/Sources/tree/spielwiese/@PACKAGE@ 32 33 # Requires: 34 # Conflicts: 35 36 Cflags: -I${includedir} 37 Libs: -L${libdir} -lomalloc 38 # Libs.private: 46 LT_INIT 39 47 40 48 49 dnl lllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll 50 dnl check for programs 51 dnl 52 AC_CHECK_PROG(AR, ar, ar, :) 53 if test "$ac_cv_prog_AR" = no; then 54 AC_MSG_ERROR(*** ar program not found) 55 fi 56 57 dnl lllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll 58 dnl header file checks 59 dnl 60 AC_HEADER_STDC 61 AC_CHECK_HEADERS(limits.h,, 62 AC_MSG_ERROR(Can not compile without limits.h)) 63 64 AC_CHECK_HEADERS(unistd.h sys/mman.h fcntl.h /usr/include/malloc.h) 65 66 AC_CHECK_FUNCS(popen mmap sbrk random) 67 68 dnl llllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll 69 dnl Find out more about particularity of the system 70 dnl 71 72 # sizes 73 AC_CHECK_SIZEOF(long,4) 74 AC_CHECK_SIZEOF(void*,4) 75 AC_CHECK_SIZEOF(double, 8) 76 AC_CHECK_SIZEOF(size_t, 4) 77 78 if test "$ac_cv_sizeof_long" != "$ac_cv_sizeof_voidp"; then 79 AC_MSG_ERROR(need equal sizes for long and void*) 80 fi 81 if test "$ac_cv_sizeof_voidp" != 4 && test "$ac_cv_sizeof_voidp" != 8; then 82 AC_MSG_ERROR(need void* to be 4 or 8 bytes long) 83 fi 84 if test "$ac_cv_sizeof_double" != 4 && test "$ac_cv_sizeof_double" != 8; then 85 AC_MSG_ERROR(need double to be 4 or 8 bytes long) 86 fi 87 88 dnl Set compiler, linker flags so that we can work with omalloc 89 BACKUP_CFLAGS=$CFLAGS 90 BACKUP_CXXFLAGS=$CXXFLAGS 91 BACKUP_LDFLAGS=$LDFLAGS 92 93 CFLAGS="$CFLAGS -I$srcdir" 94 CXXFLAGS="$CXXFLAGS -I$srcdir" 95 96 AC_SUBST(OM_MALLOC_HEADER) 97 AC_SUBST(OM_MALLOC_SOURCE) 98 99 dnl lllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll 100 dnl wrap it up 101 dnl 102 AC_CONFIG_FILES([Makefile omalloc.pc]) 103 AC_OUTPUT 104
Note: See TracChangeset
for help on using the changeset viewer.