diff options
author | Andreas Schwab <schwab@suse.de> | 1999-10-26 05:47:42 +0000 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 1999-10-25 23:47:42 -0600 |
commit | 1722c704a22f88024973a2aff0ce0f95ec227c72 (patch) | |
tree | ba4ea1ab0d2e908e4a5d9d5f05cb4153b1f877ed /configure | |
parent | 92bcb3808ed5adb57036f5fa2128f3e08c974565 (diff) | |
download | gcc-1722c704a22f88024973a2aff0ce0f95ec227c72.zip gcc-1722c704a22f88024973a2aff0ce0f95ec227c72.tar.gz gcc-1722c704a22f88024973a2aff0ce0f95ec227c72.tar.bz2 |
* configure: Fix quoting inside arguments of eval.
From-SVN: r30179
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -86,7 +86,7 @@ subdirs= target_alias=NOTARGET target_makefile_frag= undefs=NOUNDEFS -version="$Revision: 1.22 $" +version="$Revision: 1.23 $" x11=default bindir='${exec_prefix}/bin' sbindir='${exec_prefix}/sbin' @@ -237,7 +237,7 @@ do esac enableopt=`echo ${option} | sed 's:^--::;s:=.*$::;s:-:_:g'` - eval "$enableopt='$optarg'" + eval "$enableopt=\$optarg" enableoptions="$enableoptions '$option'" ;; --exec-prefix* | --ex*) @@ -370,7 +370,7 @@ do esac withopt=`echo ${option} | sed 's:^--::;s:=.*$::;s:-:_:g'` - eval $withopt="$optarg" + eval $withopt="\$optarg" withoptions="$withoptions $option" ;; --without-*) @@ -913,7 +913,7 @@ if [ "${build}" != "${host}" ]; then tools="${tools} WINDRES WINDRES_FOR_TARGET YACC" for var in ${tools}; do - if [ -z "`eval 'echo $'"${var}"`" ] && [ -r Makefile ]; then + if eval [ -z \"\$${var}\" ] && [ -r Makefile ]; then sed -n -e ':loop /\\$/ N s/\\\n//g @@ -922,7 +922,7 @@ t loop < Makefile > Makefile.v t=`tail -1 Makefile.v` if [ -n "${t}" ]; then - eval "${var}='${t}'" + eval "${var}=\${t}" fi rm -f Makefile.v fi @@ -1420,7 +1420,7 @@ EOF # tools. if [ "${build}" != "${host}" ]; then for var in ${tools}; do - val=`eval 'echo $'"${var}"` + eval val=\$${var} sed -e "/^${var}[ ]*=/{ :loop1 /\\\\$/ N |