aboutsummaryrefslogtreecommitdiffstats
path: root/build_tools
diff options
context:
space:
mode:
authorrizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b>2007-11-16 18:48:15 +0000
committerrizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b>2007-11-16 18:48:15 +0000
commit9062f796e716e3f126bb1588f5765ad6ba1a6826 (patch)
tree5f4dada183cffdcee3e735b2166eb791c97cc888 /build_tools
parent53208c490daf3f803d84e35acd43cabb0ef39486 (diff)
both md5sum and variable substitutions such as ${BUILDSUM:0:8}
are not available in FreeBSD. For the time being, put in a workaround so we can build the system, and wait for the result of the discussion on whether we can store the md5 as a string rather than 4 ints (if so, we won't need more complex tricks with awk or sed for splitting the md5). 1.4 will be fixed when we decide the issue. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89328 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'build_tools')
-rwxr-xr-xbuild_tools/make_buildopts_h13
1 files changed, 11 insertions, 2 deletions
diff --git a/build_tools/make_buildopts_h b/build_tools/make_buildopts_h
index fc7fdd2c9..62cba7dd8 100755
--- a/build_tools/make_buildopts_h
+++ b/build_tools/make_buildopts_h
@@ -21,5 +21,14 @@ then
echo "#define AST_DEVMODE 1"
TMP="${TMP} AST_DEVMODE"
fi
-BUILDSUM=`echo ${TMP} | md5sum`
-echo "#define AST_BUILDOPT_SUM {0x${BUILDSUM:0:8}, 0x${BUILDSUM:8:8}, 0x${BUILDSUM:16:8}, 0x${BUILDSUM:24:8}}"
+
+case ${OSARCH} in
+*BSD)
+ BUILDSUM=`echo ${TMP} | md5`
+ echo "#define AST_BUILDOPT_SUM {0x0, 0x0, 0x0, 0x0} /* dummy */"
+ ;;
+*)
+ BUILDSUM=`echo ${TMP} | md5sum`
+ echo "#define AST_BUILDOPT_SUM {0x${BUILDSUM:0:8}, 0x${BUILDSUM:8:8}, 0x${BUILDSUM:16:8}, 0x${BUILDSUM:24:8}}"
+ ;;
+esac