From 0eeb1dc9455f8976a988e218bec446fdba5574fe Mon Sep 17 00:00:00 2001 From: Bryan Jurish Date: Sun, 26 Apr 2009 22:36:09 +0000 Subject: + yet more quoted-command-line-macro hell svn path=/trunk/externals/moocow/; revision=11161 --- gfsm/gfsm/configure.gnu | 31 +++++++++++++++++++++++++++++-- 1 file changed, 29 insertions(+), 2 deletions(-) (limited to 'gfsm/gfsm/configure.gnu') diff --git a/gfsm/gfsm/configure.gnu b/gfsm/gfsm/configure.gnu index f433366..e86d268 100755 --- a/gfsm/gfsm/configure.gnu +++ b/gfsm/gfsm/configure.gnu @@ -1,3 +1,30 @@ -#!/bin/sh -exec "`dirname $0`"/configure "$@" FLEX=no BISON=no --disable-doc --disable-programs --disable-shared --prefix="$PWD/../../extended/build.moo/noinstall" +#!/bin/bash + +##-- hack CFLAGS +for arg in "$@"; do + case "$arg" in + CFLAGS=*) + axsf_safe= + for axsf_flag in `echo $arg | sed -e 's/^[^=]*=//'` + do + #echo "checking: $axsf_flag" + axsf_flag_tmp=`echo $axsf_flag | sed -e 's/[ '\''\"\(\)]//g'` + if test "${axsf_flag_tmp}" = "${axsf_flag}"; then + axsf_safe="$axsf_safe $axsf_flag" + else + axsf_unsafe="$axsf_unsafe $axsf_flag" + fi + done + #echo "new CFLAGS: $axsf_safe" + args=("${args[@]}" "CFLAGS=$axsf_safe") ##-- only retain 'safe' flags for gfsm + ;; + *) + #echo "default: $arg" + args=("${args[@]}" "$arg") + ;; + esac +done + +#echo "`dirname $0`"/configure "${args[@]}" FLEX=no BISON=no --disable-doc --disable-programs --disable-shared --prefix="$PWD/../../extended/build.moo/noinstall" +exec "`dirname $0`"/configure "${args[@]}" FLEX=no BISON=no --disable-doc --disable-programs --disable-shared --prefix="$PWD/../../extended/build.moo/noinstall" -- cgit v1.2.1