summaryrefslogtreecommitdiffstats
path: root/compile.sh
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2007-11-28 22:42:36 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2007-11-28 22:42:36 +0100
commit66c34423c10b576b7e91d6b218a962ee6c5143d6 (patch)
tree2502e46d83cdaa2bd4d24a7c2cbd4f3e85ba6d5a /compile.sh
parent22ed9d7d0fc0b571aee5e692467ed90034feab6f (diff)
Can use sudo if user is not root
Diffstat (limited to 'compile.sh')
-rwxr-xr-xcompile.sh18
1 files changed, 13 insertions, 5 deletions
diff --git a/compile.sh b/compile.sh
index 0781b4e..4ccfdb2 100755
--- a/compile.sh
+++ b/compile.sh
@@ -216,13 +216,21 @@ then
if [ ! -e $compiledir/Makefile ];
then
cd $compiledir
- if [ "X$crosscompile_target" = 'Xpowerpc-apple-darwin' ];
- then
+ case "$crosscompile_target" in
+ powerpc-apple-darwin)
# libewf should work under MacOSX but it hasn't been tested
- $confdir/configure --host=$crosscompile_target --prefix=$prefix $CONFIGUREOPT --without-ewf
- else
+ $confdir/configure --host=$crosscompile_target --prefix=$prefix $CONFIGUREOPT --without-ewf --enable-sudo --with-sudo-bin=/usr/bin/sudo
+ ;;
+ i586-pc-msdosdjgpp)
+ $confdir/configure --host=$crosscompile_target --prefix=$prefix $CONFIGUREOPT --without-ewf --without-iconv
+ ;;
+ i386-pc-cygwin)
+ $confdir/configure --host=$crosscompile_target --prefix=$prefix $CONFIGUREOPT --without-iconv
+ ;;
+ *)
$confdir/configure --host=$crosscompile_target --prefix=$prefix $CONFIGUREOPT
- fi
+ ;;
+ esac
cd $pwd_saved
fi
if [ -e $compiledir/Makefile ];