Index: xorgversion.m4 =================================================================== RCS file: /cvs/xenocara/util/macros/xorgversion.m4,v retrieving revision 1.1.1.2 retrieving revision 1.2 diff -u -r1.1.1.2 -r1.2 --- xorgversion.m4 16 Dec 2006 18:18:33 -0000 1.1.1.2 +++ xorgversion.m4 16 Dec 2006 19:16:54 -0000 1.2 @@ -42,16 +42,16 @@ AC_MSG_NOTICE([Building with package name set to $PACKAGE]) fi AC_DEFINE_UNQUOTED([PACKAGE_VERSION_MAJOR], - [`echo $PACKAGE_VERSION | sed -ne 's/^\([[^\.]]\+\).*/\1/p'`], + [`echo $PACKAGE_VERSION | cut -d . -f 1`], [Major version of this package]) - PVM=`echo $PACKAGE_VERSION | sed -ne 's/^\([[^\.]]\+\)\.\([[^\.]]\+\).*/\2/p'` + PVM=`echo $PACKAGE_VERSION | cut -d . -f 2` if test "x$PVM" = "x"; then PVM="0" fi AC_DEFINE_UNQUOTED([PACKAGE_VERSION_MINOR], [$PVM], [Minor version of this package]) - PVP=`echo $PACKAGE_VERSION | sed -ne 's/^\([[^\.]]\+\)\.\([[^\.]]\+\)\.\([[^\.]]\+\).*/\3/p'` + PVP=`echo $PACKAGE_VERSION | cut -d . -f 3` if test "x$PVP" = "x"; then PVP="0" fi