Add support for --prefix= flag to ./configure

This commit is contained in:
XANTRONIX Development 2020-09-04 23:42:29 -04:00 committed by XANTRONIX Industrial
parent 220be99359
commit 05081df9c6

18
configure vendored
View file

@ -151,11 +151,27 @@ INSTALL = /usr/bin/install
EOF EOF
} }
parse_opt() {
local _IFS="$IFS"
IFS="="
set -- $1
echo $2
IFS="$_IFS"
}
for arg in $@; do for arg in $@; do
case $arg in case $arg in
"--enable-debug") --enable-debug)
DEBUG=1 DEBUG=1
;; ;;
--prefix=*)
PREFIX="`parse_opt "$arg"`"
;;
esac esac
done done