diff --git a/configure b/configure index ab94af6..03e9224 100755 --- a/configure +++ b/configure @@ -151,11 +151,27 @@ INSTALL = /usr/bin/install EOF } +parse_opt() { + local _IFS="$IFS" + + IFS="=" + + set -- $1 + + echo $2 + + IFS="$_IFS" +} + for arg in $@; do case $arg in - "--enable-debug") + --enable-debug) DEBUG=1 ;; + + --prefix=*) + PREFIX="`parse_opt "$arg"`" + ;; esac done