Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 89823 | Differences between
and this patch

Collapse All | Expand All

(-)pilot-link.m4.in.orig (-24 / +21 lines)
Lines 1-38 Link Here
1
AC_DEFUN([IT_PROG_INTLTOOL], [AC_PREREQ([2.50])dnl
1
AC_DEFUN([AC_PILOT_LINK_HOOK], [
2
	PILOT_LINK_VERS=@PILOT_LINK_VERS@
3
	PILOT_LINK_MAJOR=@PILOT_LINK_MAJOR@
4
	PILOT_LINK_MINOR=@PILOT_LINK_MINOR@
5
	PILOT_LINK_PATCH=@PILOT_LINK_PATCH@
2
6
3
AC_DEFUN([AC_PILOT_LINK_HOOK],
7
	AC_MSG_CHECKING(for pilot-link version >= $1)
4
[
5
PILOT_LINK_VERS=@PILOT_LINK_VERS@
6
PILOT_LINK_MAJOR=@PILOT_LINK_MAJOR@
7
PILOT_LINK_MINOR=@PILOT_LINK_MINOR@
8
PILOT_LINK_PATCH=@PILOT_LINK_PATCH@
9
8
10
AC_MSG_CHECKING(for pilot-link version >= $1)
9
	vers=$PILOT_LINK_VERS.$PILOT_LINK_MAJOR.$PILOT_LINK_MINOR$PILOT_LINK_PATCH
10
	pl_ve=`echo $1|sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
11
	pl_ma=`echo $1|sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
12
	pl_mi=`echo $1|sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
11
13
12
vers=$PILOT_LINK_VERS.$PILOT_LINK_MAJOR.$PILOT_LINK_MINOR$PILOT_LINK_PATCH
14
	if test $PILOT_LINK_VERS -gt $pl_ve; then
13
pl_ve=`echo $1|sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
14
pl_ma=`echo $1|sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
15
pl_mi=`echo $1|sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
16
17
if test $PILOT_LINK_VERS -gt $pl_ve; then
18
	AC_MSG_RESULT(yes ($vers))
19
elif test $PILOT_LINK_VERS -eq $pl_ve; then
20
	if test $PILOT_LINK_MAJOR -gt $pl_ma; then 
21
		AC_MSG_RESULT(yes ($vers))
15
		AC_MSG_RESULT(yes ($vers))
22
	elif test $PILOT_LINK_MAJOR -eq $pl_ma; then 
16
	elif test $PILOT_LINK_VERS -eq $pl_ve; then
23
		if test $PILOT_LINK_MINOR -gt $pl_mi; then 
17
		if test $PILOT_LINK_MAJOR -gt $pl_ma; then 
24
			AC_MSG_RESULT(yes ($vers))
25
		elif test $PILOT_LINK_MINOR -eq $pl_mi; then 
26
			AC_MSG_RESULT(yes ($vers))
18
			AC_MSG_RESULT(yes ($vers))
19
		elif test $PILOT_LINK_MAJOR -eq $pl_ma; then 
20
			if test $PILOT_LINK_MINOR -gt $pl_mi; then 
21
				AC_MSG_RESULT(yes ($vers))
22
			elif test $PILOT_LINK_MINOR -eq $pl_mi; then 
23
				AC_MSG_RESULT(yes ($vers))
24
			else
25
				AC_MSG_ERROR(no)
26
			fi
27
		else
27
		else
28
			AC_MSG_ERROR(no)
28
			AC_MSG_ERROR(no)
29
		fi
29
		fi
30
	else
30
	else
31
		AC_MSG_ERROR(no)
31
		AC_MSG_ERROR(no)
32
	fi
32
	fi
33
else
34
	AC_MSG_ERROR(no)
35
fi
36
])
33
])
37
34
38
AC_DEFUN([AC_PILOT_LINK],[
35
AC_DEFUN([AC_PILOT_LINK],[

Return to bug 89823