Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

[93fbe8]: configure Maximize Restore History

Download this file

configure    47 lines (40 with data), 1.3 kB

#!/bin/sh

cat <<MSG
-------------------------------------------------------------------------------
| This configure file is provided in order for you to be able to build        |
| liquidsoap without having to install all the dependencies.                  |
| If you want to use the libraries, use the configure of the subdirectories.  |
| This script will build liquidsoap with features indicated in PACKAGES.      |
| Edit it or build manually if you need something more specific.              |
-------------------------------------------------------------------------------

MSG

OPTS=""
error=""

if [ ! -f PACKAGES ]; then
  echo "Please copy PACKAGES.default to PACKAGES";
  echo "and edit it to enable the packages you";
  echo "want to enable.";
  exit 1;
fi;

packages=`grep -v '\#' PACKAGES`

for p in `for i in $packages ; do ls -d $i* | head -1 ; done` ; do
  if test "x$p" = "xliquidsoap" ; then
    base="liquidsoap"
    echo ./configure $OPTS $* > liquidsoap/configure-with-options
  else
    base=`echo $p | sed -e 's/ocaml-//' | sed -e 's/-.*//'`
    OPTS="$OPTS --with-$base-dir=../$p/src"
  fi
  echo
  echo "****** Configuring $p"
  echo
  cd $p
  if test -f ./configure ; then
    echo ./configure $OPTS $*
    ./configure $OPTS $* || exit 1
  else
    echo "No configure script found for $*"
    exit 1
  fi
  cd ..
done