mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-18 18:58:22 +00:00
switch compile-time option checking to string storage mode in this branch too
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@89463 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -24,11 +24,11 @@ fi
|
||||
|
||||
case ${OSARCH} in # actually we should check build_os
|
||||
*BSD|mingw|darwin*)
|
||||
BUILDSUM=`echo ${TMP} | md5`
|
||||
echo "#define AST_BUILDOPT_SUM {0x0, 0x0, 0x0, 0x0} /* dummy */"
|
||||
BUILDSUM=`echo ${TMP} | md5 | cut -c1-32`
|
||||
;;
|
||||
*)
|
||||
BUILDSUM=`echo ${TMP} | md5sum`
|
||||
echo "#define AST_BUILDOPT_SUM { 0x`echo -n ${BUILDSUM} | cut -c1-8`, 0x`echo -n ${BUILDSUM} | cut -c9-16`, 0x`echo -n ${BUILDSUM} | cut -c17-24`, 0x`echo -n ${BUILDSUM} | cut -c25-32` }"
|
||||
BUILDSUM=`echo ${TMP} | md5sum | cut -c1-32`
|
||||
;;
|
||||
esac
|
||||
|
||||
echo "#define AST_BUILDOPT_SUM \"${BUILDSUM}\""
|
||||
|
Reference in New Issue
Block a user