X-Git-Url: https://scm.cri.mines-paristech.fr/git/Faustine.git/blobdiff_plain/4ecbf362e0d1d0abb9a7f0e9af8322472f28f7d1..c21be74684e409aaf08937e776c6cedce35b8fc0:/configure?ds=inline diff --git a/configure b/configure index 7eb8e79..ebb3976 100755 --- a/configure +++ b/configure @@ -1,40 +1,12 @@ -#!/bin/bash +#! /bin/bash -prefix="${PWD}" -INTERPRETOR_PATH="$prefix/interpretor" -PREPROCESSOR_PATH="$INTERPRETOR_PATH/preprocessor/faust-0.9.47mr3" -OCAML_INCLUDE_PATH_DEFAULT="/usr/lib/ocaml" -SNDFILE_PATH_DEFAULT="~/Desktop/libsndfile-ocaml" - -cd $PREPROCESSOR_PATH -make clean -cd $INTERPRETOR_PATH -make mrproper -cd $prefix - -echo "" -echo "1. Please set ocaml include header files' path: " -echo " [default]: $OCAML_INCLUDE_PATH_DEFAULT" -read -r OCAML_INCLUDE_PATH - -if [ -z $OCAML_INCLUDE_PATH ]; then - OCAML_INCLUDE_PATH=$OCAML_INCLUDE_PATH_DEFAULT -fi -echo "Ocaml include path : $OCAML_INCLUDE_PATH" +# libsndfile configure +LIBSNDFILE_PREFIX=$PWD/interpretor/lib +LIBSNDFILE_SRCDIR=$LIBSNDFILE_PREFIX/src/libsndfile-1.0.25 +LIBSNDFILE_DESTNAME=libsndfile +DESTDIR=$LIBSNDFILE_PREFIX/$LIBSNDFILE_DESTNAME -echo "" -echo "2. Please set libsndfile-ocaml path: " -echo " [default]: $SNDFILE_PATH_DEFAULT" -read -r SNDFILE_PATH - -if [ -z $SNDFILE_PATH ]; then - SNDFILE_PATH=$SNDFILE_PATH_DEFAULT -fi -echo "libsndfile-ocaml path : $SNDFILE_PATH" - -rm -f Makefile -cp Makefile.in Makefile -echo "OCAML_INCLUDE_PATH = $OCAML_INCLUDE_PATH" >> Makefile -echo "SNDFILE_PATH = $SNDFILE_PATH" >> Makefile - +make mrproper +mkdir -p $DESTDIR +cd $LIBSNDFILE_SRCDIR && ./configure --prefix="$DESTDIR" --exec_prefix="$DESTDIR"