X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=autogen.sh;h=a576ed6672afab5a9697e610ce8b6a9e0265b208;hb=b3b28212f6a26cc906c8d4737966b44f281856b5;hp=3628c690efd8020cc60a99be15afffba431ea296;hpb=b1d30c53c534e1fc7b43d3fd00e0b4d9057ac3eb;p=mono.git diff --git a/autogen.sh b/autogen.sh index 3628c690efd..a576ed6672a 100755 --- a/autogen.sh +++ b/autogen.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Run this to generate all the initial makefiles, etc. # Ripped off from GNOME macros version @@ -107,15 +107,19 @@ fi # Plug in the extension module # has_ext_mod=false +ext_mod_args='' for PARAM; do - if test "$PARAM" = "--enable-extension-module" ; then - has_ext_mod=true - fi + if [[ $PARAM =~ "--enable-extension-module" ]] ; then + has_ext_mod=true + if [[ $PARAM =~ "=" ]] ; then + ext_mod_args=`echo $PARAM | cut -d= -f2` + fi + fi done if test x$has_ext_mod = xtrue; then pushd ../mono-extensions/scripts - sh ./prepare-repo.sh || exit 1 + sh ./prepare-repo.sh $ext_mod_args || exit 1 popd else cat mono/mini/Makefile.am.in > mono/mini/Makefile.am