"Fossies" - the Fresh Open Source Software Archive

Member "singular-4.2.1/libpolys/configure.ac" (9 Jun 2021, 4588 Bytes) of package /linux/misc/singular-4.2.1.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "configure.ac": 4.2.0p3_vs_4.2.1.

    1 AC_INIT([libpolys], [4.2.1])
    2 
    3 AC_CONFIG_MACRO_DIR([../m4])
    4 AC_CONFIG_AUX_DIR([../build-aux])
    5 AC_CONFIG_SRCDIR([reporter/reporter.h])
    6 AC_CONFIG_HEADER([_config.h])
    7 
    8 AM_MAINTAINER_MODE([enable])
    9 
   10 AM_INIT_AUTOMAKE([-Wall foreign subdir-objects]) # -Wno-extra-portability -Werror silent-rules
   11 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
   12 m4_ifdef([AM_PROG_AR], [AM_PROG_AR])
   13 
   14 dnl Check if build env is sane
   15 AM_SANITY_CHECK
   16 
   17 AX_PROG_CXX_FOR_BUILD
   18 
   19 # Add pre'prefixed config
   20 AX_PREFIX_CONFIG_H([libpolysconfig.h],[],[_config.h])
   21 
   22 # - Check for CC and CXX but be careful about CFLAGS.
   23 SING_RESET_FLAGS()
   24 SING_CHECK_SET_ARGS()
   25 
   26 AC_PROG_CC
   27 AC_PROG_CXX
   28 AM_PROG_CC_C_O
   29 AC_PROG_LN_S
   30 AC_PROG_INSTALL
   31 
   32 # Turn off shared libraries during beta-testing, since they
   33 # make the build process take too long.
   34 LT_INIT([win32-dll])
   35 # ([shared])
   36 # LT_INIT([win32-dll])(dlopen disable-static) # doesn't work on PowerPC!
   37 
   38 SING_WIN_FLAGS
   39 
   40 # Checks for libraries.
   41 # This test for -lpthread etc has to come before AX_PTHREAD,
   42 # because libtool tends to ignore -pthread in linking shared C++-libs
   43 # see https://gcc.gnu.org/bugzilla/show_bug.cgi?id=25460
   44 # (happens with ubuntu 14.04)
   45 AC_SEARCH_LIBS(sem_wait,[rt pthreads pthread],[],[
   46   AC_MSG_ERROR([sem_wait not found in rt,pthreads,pthread])
   47 ])
   48 
   49 # Check whether --with-gmp was given.
   50 SING_CHECK_GMP
   51 
   52 dnl ntl check in factory
   53 LB_CHECK_FLINT(2.4,,AC_MSG_WARN([Unable to find FLINT (which is strongly recommended) on your machine: please use --with-flint=PATH_TO_DIR_CONTAINING_LIB_AND_INCLUDE (see also ./configure --help if you do not understand what we are talking about)]))
   54 
   55 SING_CHECK_JULIA
   56 
   57 # Checks for library functions.
   58 AC_FUNC_ERROR_AT_LINE
   59 AC_CHECK_FUNCS([memmove memset pow sqrt strchr setenv putenv])
   60 AC_FUNC_VPRINTF
   61 AC_CHECK_FUNC([vsnprintf], [AC_DEFINE([HAVE_VSNPRINTF], [1], [Define if vsnprintf exists.])])
   62 
   63 # Checks for header files.
   64 AC_HEADER_STDC
   65 AC_STDC_HEADERS
   66 AC_CHECK_HEADERS([stdlib.h string.h unistd.h pwd.h sys/param.h limits.h float.h execinfo.h])
   67 
   68 # If the compiler supports GCC C++ ABI name demangling (has header
   69 #   cxxabi.h and abi::__cxa_demangle() function), define
   70 #   HAVE_GCC_ABI_DEMANGLE
   71 AX_CXX_GCC_ABI_DEMANGLE
   72 
   73 # Checks for typedefs, structures, and compiler characteristics.
   74 AC_C_CONST
   75 AC_C_INLINE
   76 AC_HEADER_STDBOOL
   77 AC_TYPE_SIZE_T
   78 
   79 # SING_CHECK_PIPE
   80 
   81 # check for cpu properties
   82 AC_CHECK_SIZEOF(long,4)
   83 SING_CHECK_CPU
   84 
   85 #check for host:
   86 AC_CANONICAL_HOST
   87 
   88 case $host_os in
   89   *cygwin* ) AX_APPEND_LINK_FLAGS([-Wl,-Bdynamic]);;
   90 esac
   91 
   92 dnl INCLUDES=""
   93 dnl dnl OS specific flags and options (does work without the following:)
   94 dnl case "$host" in
   95 dnl     *-*-freebsd*)
   96 dnl         LIBS="$LIBS -L/usr/local/lib -lc"
   97 dnl 	CFLAGS="$CFLAGS -I/usr/local/include"
   98 dnl 	INCLUDES="$INCLUDES -I/usr/local/include"
   99 dnl 	;;
  100 dnl esac
  101 dnl AC_SUBST(INCLUDES)
  102 
  103 SING_CHECK_OMALLOC()
  104 
  105 ENABLE_RESOURCES="yes"
  106 
  107 AC_ARG_VAR( [RESOURCES_INCLUDES], [INCLUDES for libsingular_resources] )
  108 AC_ARG_VAR( [RESOURCES_LIBS], [LIBS for libsingular_resources] )
  109 
  110 AC_MSG_CHECKING(whether libsingular_resources should be used)
  111 
  112 if test "x$ENABLE_RESOURCES" = xyes;
  113 then
  114   AC_MSG_RESULT(yes)
  115 
  116   AC_MSG_CHECKING([  RESOURCES_INCLUDES?..])
  117   AC_MSG_RESULT(${RESOURCES_INCLUDES:-unset})
  118 
  119   AC_MSG_CHECKING([  RESOURCES_LIBS?..])
  120   AC_MSG_RESULT(${RESOURCES_LIBS:-unset})
  121 
  122   PKG_REQUIRE="$PKG_REQUIRE singular_resources"
  123   AC_SUBST(PKG_REQUIRE)
  124 else
  125   AC_MSG_RESULT(no)
  126 fi
  127 
  128 AM_CONDITIONAL([ENABLE_RESOURCES],[test "x$ENABLE_RESOURCES" = xyes])
  129 
  130 SING_CHECK_FACTORY()
  131 
  132 SING_CHECK_P_PROCS
  133 SING_CHECK_ARITH_RINGS
  134 SING_CHECK_PLURAL
  135 
  136 # AC_SUBST(PREFIX)
  137 # AC_DEFINE_UNQUOTED(INSTALL_PREFIX,"$PREFIX",Prefix)
  138 
  139 AC_DEFINE([SINGULAR],[1],[SINGULAR])
  140 AC_DEFINE([DISABLE_GMP_CPP],[1],[DISABLE_GMP_CPP])
  141 AC_DEFINE([NOSTREAMIO],[1],[DISABLE_GMP_CPP])
  142 
  143 # AX_PYTHON_DEFAULT()
  144 # AX_PYTHON_WITH_VERSION([2.4])
  145 
  146 AC_DEFINE_UNQUOTED([NTL_CPPFLAGS],"$NTL_CPPFLAGS",[NTL_CPPFLAGS])
  147 AC_DEFINE_UNQUOTED([NTL_LIBS],"$NTL_LIBS",[NTL_LIBS])
  148 
  149 AC_DEFINE_UNQUOTED([GMP_CPPFLAGS],"$GMP_CPPFLAGS",[GMP_CPPFLAGS])
  150 AC_DEFINE_UNQUOTED([GMP_LIBS],"$GMP_LIBS",[GMP_LIBS])
  151 
  152 # AC_DEFINE_UNQUOTED([FLINT_CFLAGS],"$FLINT_CFLAGS",[FLINT_CFLAGS])
  153 # AC_DEFINE_UNQUOTED([FLINT_LIBS],"$FLINT_LIBS",[FLINT_LIBS])
  154 
  155 ## AC_DEFINE([HAVE_POLYEXTENSIONS], [1], [Enable the algebraic & transcendental extensions])
  156 
  157 AC_CONFIG_FILES([Makefile])
  158 AC_CONFIG_FILES([misc/Makefile])
  159 AC_CONFIG_FILES([reporter/Makefile])
  160 AC_CONFIG_FILES([coeffs/Makefile])
  161 AC_CONFIG_FILES([polys/Makefile])
  162 AC_CONFIG_FILES([tests/Makefile])
  163 AC_CONFIG_FILES([libpolys-config], [chmod +x libpolys-config])
  164 AC_CONFIG_FILES([libpolys.pc])
  165 AC_OUTPUT