--- trunk/mage/usr/lib/mage/smage2.sh 2012/01/10 15:48:33 1621 +++ trunk/mage/usr/lib/mage/smage2.sh 2012/01/13 13:20:22 1631 @@ -177,6 +177,8 @@ fi echo -e "${COLBLUE}==>${COLGREEN} fetching ${uri}${COLDEFAULT}" + # always use verbose mode for source downloads + FVERBOSE=off msetfeature "verbose" # do not die here, mchecksum catches download errors mdownload --uri "${uri}" --dir "${outputdir}" @@ -240,8 +242,24 @@ local myopts if [[ ! -z ${CTARGET} ]] then - myopts="--target=${CTARGET}" + myopts+=" --target=${CTARGET}" fi + # if requested disable-static + if [[ ! -z $(./configure --help | grep -- '--.*able-static') ]] + then + if mqueryfeature '!static' + then + myopts+=" --disable-static" + else + myopts+=" --enable-static" + fi + fi + + # always enable shared by default + if [[ ! -z $(./configure --help | grep -- '--.*able-shared') ]] + then + myopts+=" --enable-shared" + fi if [ -x ./configure ] then