]> git.sesse.net Git - mlt/blob - src/modules/configure
Fix compile error on Windows.
[mlt] / src / modules / configure
1 #!/bin/sh
2
3 # Clean up disables if not in help mode
4 [ "$help" != "1" ] && rm -f disable-* producers.dat filters.dat transitions.dat consumers.dat
5
6 # Create the make.inc file
7 echo SUBDIRS = `find . -maxdepth 1 -type d | grep -v .svn | grep -v "^.$" | sed 's/\.\///'` > make.inc
8
9 # Iterate through arguments
10 for i in "$@"
11 do
12         case $i in
13                 --disable-* )   touch disable-${i#--disable-} ;;
14         esac
15 done
16
17 # Iterate through each of the components
18 for i in *
19 do
20         if [ -d $i -a \( "$help" = "1" -o ! -f disable-$i \) ]
21         then
22                 if [ "$gpl" = "true" -o ! -f $i/gpl -o "$help" = "1" ]
23                 then
24                         [ -f $i/Makefile -a "$help" = "0" ] && echo "Configuring modules/$i:"
25                         if [ -x $i/configure ]
26                         then
27                                 olddir2=`pwd`
28                                 cd $i
29                                 ./configure "$@"
30                                 [ $? != 0 ] && exit 1
31                                 cd $olddir2
32                         elif [ -f $i/configure ]
33                         then
34                                 echo "  configure script is not set executable!"
35                         fi
36                 elif [ "$help" = "0" ]
37                 then
38                         touch disable-$i
39                 fi
40         fi
41 done
42