Changeset 6de4f47 in git


Ignore:
Timestamp:
Sep 12, 2016, 7:26:33 PM (7 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'a800fe4b3e9d37a38c5a10cc0ae9dfa0c15a4ee6')
Children:
730a1f54bc084f74380e5a9e677a2122a271085b
Parents:
98123a6d20c823df0a5dc471793cf7e98e0d5fc8
Message:
fix: the messed up xalloc configuration
Location:
xalloc
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • xalloc/Makefile.am

    r98123a r6de4f47  
    1919omTables_CPPFLAGS = ${AM_CPPFLAGS}
    2020
     21pkgconfigdir = $(libdir)/pkgconfig
     22pkgconfig_DATA = omalloc.pc
     23
    2124CLEANFILES = $(BUILT_SOURCES)
    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

    r98123a r6de4f47  
    1 ACLOCAL_AMFLAGS = -I ../m4
     1dnl lllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll
     2dnl File: configure.ac
     3dnl Purpose: Process this file with autoconf to produce configure
     4dnl Author:  obachman@mathematik.uni-kl.de (Olaf Bachmann)
     5dnl Created: 11/99
     6dnl lllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll
    27
    3 lib_LTLIBRARIES=libomalloc.la
     8AC_INIT([xmalloc],[4.0])
    49
    5 libomalloc_includedir=$(includedir)/omalloc
     10AC_CONFIG_MACRO_DIR([../m4])
     11AC_CONFIG_AUX_DIR([../build-aux])
     12AC_CONFIG_SRCDIR(dummy.c)
     13AC_CONFIG_HEADER([_config.h])
    614
    7 libomalloc_include_HEADERS = omalloc.h omallocClass.h
     15AC_PROG_CC
     16AC_PROG_CXX
    817
    9 SOURCES=dummy.c omallocClass.cc
     18SING_RESET_FLAGS()
    1019
    11 AM_CPPFLAGS =-I${top_srcdir}/.. -I${top_builddir}/..
     20AM_MAINTAINER_MODE([enable])
     21AM_INIT_AUTOMAKE([-Wall foreign subdir-objects]) # -Wno-extra-portability -Werror silent-rules
     22m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
     23m4_ifdef([AM_PROG_AR], [AM_PROG_AR])
    1224
    13 libomalloc_la_SOURCES=$(SOURCES) $(noinst_HEADERS)
     25AM_SANITY_CHECK
    1426
    15 libomalloc_la_LDFLAGS    = -release ${PACKAGE_VERSION}
     27# Add pre'prefixed config
     28AX_PREFIX_CONFIG_H([omConfig.h],[],[_config.h])
    1629
    17 libomalloc_la_CPPFLAGS  = ${AM_CPPFLAGS}
     30# SING_CHECK_SET_ARGS()
    1831
    19 omTables_CPPFLAGS = ${AM_CPPFLAGS}
     32AC_SUBST(VERSION)
    2033
    21 CLEANFILES = $(BUILT_SOURCES)
     34CPPFLAGS="-I.. -I. $CPPFLAGS"
     35AC_PROG_MAKE_SET
     36AC_PROG_CC
     37AC_PROG_CPP
    2238
    23 prefix=@prefix@
    24 exec_prefix=@exec_prefix@
    25 libdir=@libdir@
    26 includedir=@includedir@
     39AC_PROG_LN_S
     40AC_PROG_INSTALL
     41AM_PROG_CC_C_O
     42# AM_PROG_AR
     43AC_C_CONST
     44AC_C_INLINE
    2745
    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:
     46LT_INIT
    3947
    4048
     49dnl lllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll
     50dnl check for programs
     51dnl
     52AC_CHECK_PROG(AR, ar, ar, :)
     53if test "$ac_cv_prog_AR" = no; then
     54  AC_MSG_ERROR(*** ar program not found)
     55fi
     56
     57dnl lllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll
     58dnl header file checks
     59dnl
     60AC_HEADER_STDC
     61AC_CHECK_HEADERS(limits.h,,
     62  AC_MSG_ERROR(Can not compile without limits.h))
     63
     64AC_CHECK_HEADERS(unistd.h sys/mman.h fcntl.h /usr/include/malloc.h)
     65
     66AC_CHECK_FUNCS(popen mmap sbrk random)
     67
     68dnl llllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll
     69dnl Find out more about particularity of the system
     70dnl
     71
     72# sizes
     73AC_CHECK_SIZEOF(long,4)
     74AC_CHECK_SIZEOF(void*,4)
     75AC_CHECK_SIZEOF(double, 8)
     76AC_CHECK_SIZEOF(size_t, 4)
     77
     78if test "$ac_cv_sizeof_long" != "$ac_cv_sizeof_voidp"; then
     79  AC_MSG_ERROR(need equal sizes for long and void*)
     80fi
     81if 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)
     83fi
     84if 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)
     86fi
     87
     88dnl Set compiler, linker flags so that we can work with omalloc
     89BACKUP_CFLAGS=$CFLAGS
     90BACKUP_CXXFLAGS=$CXXFLAGS
     91BACKUP_LDFLAGS=$LDFLAGS
     92
     93CFLAGS="$CFLAGS -I$srcdir"
     94CXXFLAGS="$CXXFLAGS -I$srcdir"
     95
     96AC_SUBST(OM_MALLOC_HEADER)
     97AC_SUBST(OM_MALLOC_SOURCE)
     98
     99dnl lllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll
     100dnl wrap it up
     101dnl
     102AC_CONFIG_FILES([Makefile omalloc.pc])
     103AC_OUTPUT
     104
Note: See TracChangeset for help on using the changeset viewer.