diff options
Diffstat (limited to 'source4/autogen.sh')
-rwxr-xr-x | source4/autogen.sh | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/source4/autogen.sh b/source4/autogen.sh index e5aa69776f3..67a3df3bd97 100755 --- a/source4/autogen.sh +++ b/source4/autogen.sh @@ -63,6 +63,16 @@ $AUTOCONF $IPATHS || exit 1 rm -rf autom4te*.cache +# Run swig if it is available +SWIG=swig +SWIG_FILES="./scripting/python/misc.i ./auth/auth.i ./auth/credentials/credentials.i ./lib/talloc/talloc.i ./lib/ldb/ldb.i ./lib/registry/registry.i ./lib/tdb/tdb.i ./libcli/swig/libcli_smb.i ./libcli/swig/libcli_nbt.i ./librpc/rpc/dcerpc.i" +if which $SWIG >/dev/null 2>&1; then + for I in $SWIG_FILES + do + echo "$0: running $SWIG for $I" + swig -python -keyword $I + done +fi + echo "Now run ./configure and then make." exit 0 - |