build: Support all *=* forms.

ck_pring
Samy Al Bahra 12 years ago
parent e1e6d52e5b
commit 3de1f23d74

22
configure vendored

@ -124,11 +124,11 @@ generate_stdout()
} }
for option in $*; do for option in $*; do
value=`echo "$option" | sed -e 's/^[^=]*=\(.*\)/\1/'` value=`expr "$option" : '[^=]*=\(.*\)'`
case "$option" in case "$option" in
--help) --help)
echo "Usage: ./configure [OPTIONS]" echo "Usage: $0 [OPTIONS]"
echo echo
echo "The following options may be used for cross-building." echo "The following options may be used for cross-building."
echo " --profile=N Use custom build profile (use in conjunction with \$CC)" echo " --profile=N Use custom build profile (use in conjunction with \$CC)"
@ -195,20 +195,14 @@ for option in $*; do
--mandir=*) --mandir=*)
MANDIR=$value MANDIR=$value
;; ;;
CC=*) *=*)
CC=$value NAME=`expr "$option" : '\([^=]*\)='`
;; VALUE=`echo "$value" | sed "s/'/'\\\\\\\\''/g"`
LDFLAGS=*) eval "$NAME='$VALUE'"
LDFLAGS=$value export $NAME
;;
CFLAGS=*)
CFLAGS=$value
;;
GZIP=*)
GZIP=$value
;; ;;
*) *)
echo "./configure [--help]" echo "$0 [--help]"
exit $EXIT_FAILURE exit $EXIT_FAILURE
;; ;;
esac esac

Loading…
Cancel
Save