Fixed sed type detection, added messages.

git-svn-id: http://voip.null.ro/svn/yate@3159 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
paulc 2010-03-30 13:37:41 +00:00
parent 109bb293ff
commit 68313f1b7d
1 changed files with 10 additions and 8 deletions

View File

@ -20,14 +20,6 @@ AC_SUBST(PACKAGE_RELEASE)
AC_SUBST(PACKAGE_STATUS)
AC_SUBST(PACKAGE_REVISION)
# sed expression to convert version into something comparable lexicographically
csed='sed'
vsed='s/\(^\|\.\)\([[0-9]]\)\($\|\.\)/\10\2\3/g'
if [[ -n `echo a | sed 's/a\|b//'` ]]; then
csed='sed -E'
vsed='s/(^|\.)([[0-9]])($|\.)/\10\2\3/g'
fi
# We may need the host OS type but avoid the overhead of AC_CANONICAL_SYSTEM
AC_MSG_CHECKING([for local operating system type])
uname_os=`uname -s`
@ -63,6 +55,16 @@ AC_PROG_CXX
AC_PROG_CC
AC_PROG_AWK
AC_MSG_CHECKING([for sed command to use])
# sed expression to convert version into something comparable lexicographically
csed='sed'
vsed='s/\(^\|\.\)\([[0-9]]\)\($\|\.\)/\10\2\3/g'
if [[ -n "`echo a | sed 's/a\|b//'`" ]]; then
csed='sed -E'
vsed='s/(^|\.)([[0-9]])($|\.)/\10\2\3/g'
fi
AC_MSG_RESULT([$csed])
# Check if gcc style printf argument check is supported
HAVE_GCC_FORMAT_CHECK=""
AC_MSG_CHECKING([for gcc printf format typechecks])