libsndfile-ocaml source files.
[Faustine.git] / configure
1 #!/bin/bash
2
3 prefix="${PWD}"
4 INTERPRETOR_PATH="$prefix/interpretor"
5 PREPROCESSOR_PATH="$INTERPRETOR_PATH/preprocessor/faust-0.9.47mr3"
6 OCAML_INCLUDE_PATH_DEFAULT="/usr/lib/ocaml"
7 SNDFILE_PATH_DEFAULT="~/Desktop/libsndfile-ocaml"
8
9 cd $PREPROCESSOR_PATH
10 make clean
11 cd $INTERPRETOR_PATH
12 make mrproper
13 cd $prefix
14
15 echo ""
16 echo "1. Please set ocaml include header files' path: "
17 echo " [default]: $OCAML_INCLUDE_PATH_DEFAULT"
18 read -r OCAML_INCLUDE_PATH
19
20 if [ -z $OCAML_INCLUDE_PATH ]; then
21 OCAML_INCLUDE_PATH=$OCAML_INCLUDE_PATH_DEFAULT
22 fi
23 echo "Ocaml include path : $OCAML_INCLUDE_PATH"
24
25
26 echo ""
27 echo "2. Please set libsndfile-ocaml path: "
28 echo " [default]: $SNDFILE_PATH_DEFAULT"
29 read -r SNDFILE_PATH
30
31 if [ -z $SNDFILE_PATH ]; then
32 SNDFILE_PATH=$SNDFILE_PATH_DEFAULT
33 fi
34 echo "libsndfile-ocaml path : $SNDFILE_PATH"
35
36 rm -f Makefile
37 cp Makefile.in Makefile
38 echo "OCAML_INCLUDE_PATH = $OCAML_INCLUDE_PATH" >> Makefile
39 echo "SNDFILE_PATH = $SNDFILE_PATH" >> Makefile
40