fix previous commit -- hasq isnt as cool as i thought and doesnt accept globs, so...
authorMike Frysinger <vapier@gentoo.org>
Sat, 7 Feb 2009 09:26:08 +0000 (09:26 -0000)
committerMike Frysinger <vapier@gentoo.org>
Sat, 7 Feb 2009 09:26:08 +0000 (09:26 -0000)
svn path=/main/trunk/; revision=12589

bin/ebuild.sh

index 34e4f747bf28a08658b75f62c85e71612f778378..2c46da3f996910239fe1b7856bd63e070df5d628 100755 (executable)
@@ -455,6 +455,12 @@ strip_duplicate_slashes() {
        fi
 }
 
+hasg() {
+    local x s=$1
+    shift
+    for x ; do [[ ${x} == ${s} ]] && echo "${x}" && return 0 ; done
+    return 1
+}
 econf() {
        local x
        local LOCAL_EXTRA_ECONF="${EXTRA_ECONF}"
@@ -491,7 +497,7 @@ econf() {
                        CONF_LIBDIR="${!LIBDIR_VAR}"
                fi
                unset LIBDIR_VAR
-               if [ -n "${CONF_LIBDIR}" ] && ! hasq --libdir=* "$@" ; then
+               if [ -n "${CONF_LIBDIR}" ] && ! hasg --libdir=* "$@" ; then
                        if [ "${*/--exec-prefix}" != "$*" ]; then
                                local args="$(echo $*)"
                                local -a pref=($(echo ${args/*--exec-prefix[= ]}))