Changeset 58543e3 in git
- Timestamp:
- Sep 12, 2016, 5:30:20 PM (7 years ago)
- Branches:
- (u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'a657104b677b4c461d018cbf3204d72d34ad66a9')
- Children:
- da4b3223efff0b797045aad67f6bce7fe3596550
- Parents:
- 0816f71425281ce41a6a64263309ea59a13ade6e
- Location:
- xalloc
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
xalloc/Makefile.am
r0816f7 r58543e3 21 21 CLEANFILES = $(BUILT_SOURCES) 22 22 23 prefix=@prefix@ 24 exec_prefix=@exec_prefix@ 25 libdir=@libdir@ 26 includedir=@includedir@ 27 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: 39 40 -
xalloc/configure.ac
r0816f7 r58543e3 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 1 ACLOCAL_AMFLAGS = -I ../m4 7 2 8 AC_INIT([xmalloc],[4.0]) 3 lib_LTLIBRARIES=libomalloc.la 9 4 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]) 5 libomalloc_includedir=$(includedir)/omalloc 14 6 15 AC_PROG_CC 16 AC_PROG_CXX 7 libomalloc_include_HEADERS = omalloc.h omallocClass.h 17 8 18 S ING_RESET_FLAGS()9 SOURCES=dummy.c omallocClass.cc 19 10 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]) 11 AM_CPPFLAGS =-I${top_srcdir}/.. -I${top_builddir}/.. 24 12 25 AM_SANITY_CHECK 13 libomalloc_la_SOURCES=$(SOURCES) $(noinst_HEADERS) 26 14 27 # Add pre'prefixed config 28 #AX_PREFIX_CONFIG_H([omConfig.h],[],[_config.h]) 15 libomalloc_la_LDFLAGS = -release ${PACKAGE_VERSION} 29 16 30 # SING_CHECK_SET_ARGS() 17 libomalloc_la_CPPFLAGS = ${AM_CPPFLAGS} 31 18 32 #AC_SUBST(VERSION) 19 omTables_CPPFLAGS = ${AM_CPPFLAGS} 33 20 34 CPPFLAGS="-I.. -I. $CPPFLAGS" 35 AC_PROG_MAKE_SET 36 AC_PROG_CC 37 AC_PROG_CPP 21 CLEANFILES = $(BUILT_SOURCES) 38 22 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 23 prefix=@prefix@ 24 exec_prefix=@exec_prefix@ 25 libdir=@libdir@ 26 includedir=@includedir@ 45 27 46 LT_INIT 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: 47 39 48 40 49 dnl lllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll50 dnl check for programs51 dnl52 AC_CHECK_PROG(AR, ar, ar, :)53 if test "$ac_cv_prog_AR" = no; then54 AC_MSG_ERROR(*** ar program not found)55 fi56 57 dnl lllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll58 dnl header file checks59 dnl60 AC_HEADER_STDC61 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 llllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll69 dnl Find out more about particularity of the system70 dnl71 72 # sizes73 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"; then79 AC_MSG_ERROR(need equal sizes for long and void*)80 fi81 if test "$ac_cv_sizeof_voidp" != 4 && test "$ac_cv_sizeof_voidp" != 8; then82 AC_MSG_ERROR(need void* to be 4 or 8 bytes long)83 fi84 if test "$ac_cv_sizeof_double" != 4 && test "$ac_cv_sizeof_double" != 8; then85 AC_MSG_ERROR(need double to be 4 or 8 bytes long)86 fi87 88 dnl Set compiler, linker flags so that we can work with omalloc89 BACKUP_CFLAGS=$CFLAGS90 BACKUP_CXXFLAGS=$CXXFLAGS91 BACKUP_LDFLAGS=$LDFLAGS92 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 lllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll100 dnl wrap it up101 dnl102 AC_CONFIG_FILES([Makefile])103 AC_OUTPUT104
Note: See TracChangeset
for help on using the changeset viewer.