3 path=`which mlt-config 2>/dev/null`
4 [ $? != 0 ] && echo "MLT not installed - aborting" && exit 1
6 # Determine default prefix
7 prefix=`mlt-config --prefix`
8 [ "$prefix" = "" ] && echo "Can't locate MLT's prefix - please reconfigure MLT." && exit 1
10 # Allow override from command line
11 [ "$1" != "" ] && prefix="${1#--prefix=}"
14 [ ! -d "$prefix" ] && echo "Invalid prefix $prefix - aborting" && exit 1
16 echo "prefix=$prefix" > config.mak
23 echo "CXXFLAGS+=-D__DARWIN__ -Wall -fPIC `mlt-config --cflags`"
24 echo "LDFLAGS=-dynamiclib `mlt-config --libs` `mlt-config miracle --libs` `mlt-config valerie --libs` -single_module"
28 echo "CXXFLAGS+=-pthread -Wall -fPIC `mlt-config --cflags`"
29 echo "LDFLAGS=-shared `mlt-config --libs` `mlt-config miracle --libs`"
33 echo "MLT++ configured - will be installed in $prefix."