From b5314c20d8e3caf62fe0dc96ad937a2950158b23 Mon Sep 17 00:00:00 2001 From: Louis Gesbert Date: Thu, 2 Mar 2017 12:19:56 +0100 Subject: [PATCH] Install mli, cmx, etc. --- Makefile | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/Makefile b/Makefile index 09464ff..5044d7f 100644 --- a/Makefile +++ b/Makefile @@ -56,7 +56,7 @@ $(DOSELIBS)/cudf.%: @for i in _build/cudf/cudf.*; do \ if [ -e $$i ]; then \ cp $$i $(DOSELIBS) ; \ - rm -f $(DOSELIBS)/*.mlpack $(DOSELIBS)/*.cmx ; \ + rm -f $(DOSELIBS)/*.mlpack ; \ fi ; \ done @@ -67,7 +67,7 @@ $(DOSELIBS)/common.%: common/*.ml common/*.mli if [ -e $$i ]; then \ cp $$i $(DOSELIBS) ; \ rm $$i ;\ - rm -f $(DOSELIBS)/*.mlpack $(DOSELIBS)/*.cmx ; \ + rm -f $(DOSELIBS)/*.mlpack ; \ fi ; \ done @@ -78,7 +78,7 @@ $(DOSELIBS)/versioning.%: versioning/*.ml versioning/*.mli if [ -e $$i ]; then \ cp $$i $(DOSELIBS) ; \ rm $$i ;\ - rm -f $(DOSELIBS)/*.mlpack $(DOSELIBS)/*.cmx ; \ + rm -f $(DOSELIBS)/*.mlpack ; \ fi ; \ done @@ -88,7 +88,7 @@ $(DOSELIBS)/algo.%: algo/*.ml algo/*.mli $(DOSELIBS)/common.% if [ -e $$i ]; then \ cp $$i $(DOSELIBS) ; \ rm $$i ;\ - rm -f $(DOSELIBS)/*.mlpack $(DOSELIBS)/*.cmx ; \ + rm -f $(DOSELIBS)/*.mlpack ; \ fi ; \ done @@ -98,7 +98,7 @@ $(DOSELIBS)/debian.%: deb/*.ml deb/*.mli $(DOSELIBS)/pef.% if [ -e $$i ]; then \ cp $$i $(DOSELIBS) ; \ rm $$i ;\ - rm -f $(DOSELIBS)/*.mlpack $(DOSELIBS)/*.cmx ; \ + rm -f $(DOSELIBS)/*.mlpack ; \ fi ; \ done @@ -108,7 +108,7 @@ $(DOSELIBS)/opam.%: opam/*.ml opam/*.mli $(DOSELIBS)/pef.% if [ -e $$i ]; then \ cp $$i $(DOSELIBS) ; \ rm $$i ;\ - rm -f $(DOSELIBS)/*.mlpack $(DOSELIBS)/*.cmx ; \ + rm -f $(DOSELIBS)/*.mlpack ; \ fi ; \ done @@ -118,7 +118,7 @@ $(D
dnl -*- Autoconf -*- fragment for the C++ daemon.

AC_MSG_CHECKING([whether to build daemon])
AC_MSG_RESULT([$guix_build_daemon])

dnl C++ environment.  This macro must be used unconditionnaly.
AC_PROG_CXX
AM_PROG_AR
AC_LANG([C++])

if test "x$guix_build_daemon" = "xyes"; then

  GUIX_ASSERT_CXX11

  AC_PROG_RANLIB
  AC_CONFIG_HEADERS([nix/config.h])

  dnl Use 64-bit file system calls so that we can support files > 2 GiB.
  AC_SYS_LARGEFILE

  dnl Look for zlib, a required dependency.
  AC_CHECK_LIB([z], [gzdopen], [true],
    [AC_MSG_ERROR([Guix requires zlib.  See http://www.zlib.net/.])])
  AC_CHECK_HEADERS([zlib.h], [true],
    [AC_MSG_ERROR([Guix requires zlib.  See http://www.zlib.net/.])])

  dnl Look for libbz2, an optional dependency.
  AC_CHECK_LIB([bz2], [BZ2_bzWriteOpen], [HAVE_LIBBZ2=yes], [HAVE_LIBBZ2=no])
  if test "x$HAVE_LIBBZ2" = xyes; then
    AC_CHECK_HEADERS([bzlib.h])
    HAVE_LIBBZ2="$ac_cv_header_bzlib_h"
  fi

  dnl Look for SQLite, a required dependency.
  PKG_CHECK_MODULES([SQLITE3], [sqlite3 >= 3.6.19])

  AC_DEFINE_UNQUOTED([SYSTEM], ["$guix_system"],
    [Guix host system type--i.e., platform and OS kernel tuple.])

  case "$LIBGCRYPT_PREFIX" in
    no)
      LIBGCRYPT_CPPFLAGS=""
      ;;
    *)
      LIBGCRYPT_CPPFLAGS="-I$LIBGCRYPT_PREFIX/include"
      ;;
  esac

  case "$LIBGCRYPT_LIBDIR" in
    no | "")
      ;;
    *)
      LIBGCRYPT_LDFLAGS="-L$LIBGCRYPT_LIBDIR"
      ;;
  esac

  LIBGCRYPT_LIBS="-lgcrypt"
  AC_SUBST([LIBGCRYPT_CPPFLAGS])
  AC_SUBST([LIBGCRYPT_LDFLAGS])
  AC_SUBST([LIBGCRYPT_LIBS])

  save_CPPFLAGS="$CPPFLAGS"
  save_LDFLAGS="$LDFLAGS"
  save_LIBS="$LIBS"
  CPPFLAGS="$CPPFLAGS $LIBGCRYPT_CPPFLAGS"
  LDFLAGS="$LDFLAGS $LIBGCRYPT_LDFLAGS"
  LIBS="$LIBS $LIBGCRYPT_LIBS"

  have_gcrypt=yes
  AC_CHECK_LIB([gcrypt], [gcry_md_open], [:], [have_gcrypt=no])
  AC_CHECK_HEADER([gcrypt.h], [:], [have_g