X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=configure;h=e1985812fc363b90a3c622d7a1f3da0e1eb4b300;hb=4dbf3ebb9b3642a02300bd2388c6b2211160cb5a;hp=0dc352f29ab8c296468747b4beefbde40e5afc7a;hpb=757e8d55530954c3002b71f78d5027a222e810f7;p=melted diff --git a/configure b/configure index 0dc352f..e198581 100755 --- a/configure +++ b/configure @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh function show_help { @@ -55,7 +55,7 @@ function build_config echo "LIBDL=-ldl" echo "OPTIMISATIONS=-O4 -pipe -ffast-math -fomit-frame-pointer" - echo "CFLAGS+=-Wall \$(TARGETARCH) \$(TARGETCPU) \$(OPTIMISATIONS) \$(MMX_FLAGS) \$(DEBUG_FLAGS) \$(LARGE_FILE) -pthread" + echo "CFLAGS+=-Wall -fPIC -DPIC \$(TARGETARCH) \$(TARGETCPU) \$(OPTIMISATIONS) \$(MMX_FLAGS) \$(DEBUG_FLAGS) \$(LARGE_FILE) -pthread" ) > config.mak echo "#!/bin/sh" > mlt-config @@ -92,7 +92,7 @@ set +x export build_dir=`dirname $0` export prefix=/usr/local export help=0 -export version=0.0.3 +export version=0.1.1 export debug=true export mmx=true export gpl=false @@ -120,10 +120,11 @@ do if [ -x src/$i/configure ] then [ $help = 0 ] && echo "Configuring `basename $i`:" - pushd src/$i > /dev/null + olddir=`pwd` + cd src/$i ./configure "$@" [ $? != 0 ] && exit 1 - popd > /dev/null + cd $olddir fi done