Changeset 2e7edcb in git for configure.ac


Ignore:
Timestamp:
Sep 27, 2019, 5:46:37 PM (5 years ago)
Author:
Murray Heymann <heymann.murray@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
732205bdd491ef2c8b4d3628ab66de417fee4e24
Parents:
133ae77191f33f5123836be93522078ff2d5618af3b65d2b16ccfd13cf43ee24f2049311f57e2a55
Message:
Merge branch 'spielwiese' into machine_learning
File:
1 edited

Legend:

Unmodified
Added
Removed
  • configure.ac

    r133ae7 r2e7edcb  
    8989AC_CHECK_LIB(rt,clock_gettime)
    9090
    91 LB_CHECK_GMP(4.0,,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)]))
     91# Check whether --with-gmp was given.
     92if test "${with_gmp+set}" = set; then :
     93  if test "$with_gmp" = yes ; then
     94        GMP_HOME_PATH="${DEFAULT_CHECKING_PATH}"
     95   elif test "$with_gmp" != no ; then
     96        GMP_HOME_PATH="$with_gmp ${DEFAULT_CHECKING_PATH}"
     97    fi
     98else
     99  GMP_HOME_PATH="${DEFAULT_CHECKING_PATH}"
     100fi
     101
     102BACKUP_CFLAGS=${CFLAGS}
     103BACKUP_LIBS=${LIBS}
     104
     105for GMP_HOME in ${GMP_HOME_PATH}
     106do
     107  if test "x$GMP_HOME" != "x/usr"; then
     108    GMP_CPPFLAGS="-I${GMP_HOME}/include"
     109    GMP_LIBS="-L${GMP_HOME}/lib -Wl,-rpath -Wl,${GMP_HOME}/lib -lgmp"
     110  else
     111    GMP_CPPFLAGS=""
     112    GMP_LIBS="-lgmp"
     113  fi
     114  CFLAGS="${BACKUP_CFLAGS} ${GMP_CPPFLAGS}"
     115  LIBS="${BACKUP_LIBS} ${GMP_LIBS}"
     116done
     117AC_SUBST(GMP_CPPFLAGS)
     118AC_SUBST(GMP_LIBS)
     119
     120AC_CHECK_HEADERS([gmp.h], ,[AC_MSG_ERROR([GNU MP not found])])
     121AC_CHECK_LIB(gmp, __gmpz_init, , [AC_MSG_ERROR([GNU MP not found])])
     122
    92123LB_CHECK_NTL(5.0,,AC_MSG_WARN([Unable to find NTL (which is strongly recommended) on your machine: please use --with-ntl=PATH_TO_DIR_CONTAINING_LIB_AND_INCLUDE (see also ./configure --help if you do not understand what we are talking about)]))
    93124LB_CHECK_FLINT(2.3,,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)]))
Note: See TracChangeset for help on using the changeset viewer.