Fix a few build problems on Solaris (and check for an md5 utility in

configure instead of the icky loop I was doing before).

(closes issue #13842)
Reported by: snuffy
Patches:
      bug13842_20081106.diff uploaded by snuffy (license 35)
      13842.diff uploaded by seanbright (license 71)
Tested by: snuffy


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@157600 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Sean Bright
2008-11-19 00:27:45 +00:00
parent a361f7897a
commit 559e644b63
6 changed files with 68 additions and 20 deletions

View File

@@ -26,13 +26,8 @@ then
echo "#define AST_DEVMODE 1"
TMP="${TMP} AST_DEVMODE"
fi
for x in md5 digest md5sum gmd5sum; do
BUILDSUM=`echo ${TMP} | $x 2> /dev/null`
if [ $? = 0 ]; then
BUILDSUM=`echo ${BUILDSUM} | cut -c1-32`
break;
fi
done
BUILDSUM=`echo ${TMP} | ${MD5} | cut -c1-32`
echo "#define AST_BUILDOPT_SUM \"${BUILDSUM}\""
echo "#define AST_BUILDOPTS \"${BUILDOPTS}\""

View File

@@ -30,7 +30,7 @@ elif [ -d .svn ]; then
fi
if [ ${BRANCH} != 0 ] ; then
if [ -z ${RESULT} ] ; then
if [ -z "${RESULT}" ] ; then
RESULT="${PART}"
else
RESULT="${RESULT}-${PART}"
@@ -39,7 +39,7 @@ elif [ -d .svn ]; then
fi
if [ ${TEAM} != 0 ] ; then
if [ -z ${RESULT} ] ; then
if [ -z "${RESULT}" ] ; then
RESULT="${PART}"
else
RESULT="${RESULT}-${PART}"