From: Travis Cross Date: Mon, 5 May 2014 21:38:52 +0000 (+0000) Subject: Avoid training :'s in paths X-Git-Tag: v1.5.12~38^2~3 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0a56e643b13cfb1cb5546a3ff0ae962f93ce8602;p=thirdparty%2Ffreeswitch.git Avoid training :'s in paths When the path was empty, path_push_unique would cause a training colon to be added. This was a known issue that didn't cause any harm, but while we're here, we'll clean this up. --- diff --git a/configure.ac b/configure.ac index 39e8063276..10087e3b0b 100644 --- a/configure.ac +++ b/configure.ac @@ -607,7 +607,11 @@ path_remove () { path_push_unique () { x="$(eval echo \$$1)" x="$(path_remove "$x" "$2")" - eval export $1="$2:$x" + if test -z "$x"; then + eval export $1="$2" + else + eval export $1="$2:$x" + fi } # tweak platform specific flags