From 94de188684ea9f9b2b49ecb4100c1d3c888431e1 Mon Sep 17 00:00:00 2001 From: Jonathan Moore Liles Date: Tue, 20 May 2008 14:34:02 -0500 Subject: [PATCH] configure: process old arguments more robustly. --- Makefile | 2 +- scripts/config-funcs | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 5985e47..620da82 100644 --- a/Makefile +++ b/Makefile @@ -22,7 +22,7 @@ else CXXFLAGS := -pipe -O3 -fno-rtti -fno-exceptions -DNDEBUG endif -CXXFLAGS += $(libsndfile_CFLAGS) $(LASH_CFLAGS) $(FLTK_CFLAGS) -DINSTALL_PREFIX=\"$(prefix)\" -DVERSION=\"$(VERSION)\" +CXXFLAGS += $(libsndfile_CFLAGS) $(LASH_CFLAGS) $(FLTK_CFLAGS) -DINSTALL_PREFIX="\"$(prefix)\"" -DVERSION=\"$(VERSION)\" include scripts/colors diff --git a/scripts/config-funcs b/scripts/config-funcs index 229707a..a640ef8 100644 --- a/scripts/config-funcs +++ b/scripts/config-funcs @@ -59,7 +59,7 @@ using () extract_options () { - local line; + local line name value if [ -f make.conf ] then @@ -75,7 +75,9 @@ extract_options () then break else - eval "$line" + name=${line%=*} + value=${line#*=} + eval "$name='$value'" fi done } < make.conf