--- configure.in.orig 2004-12-19 20:51:41.771221552 +0930 +++ configure.in 2004-12-19 21:02:59.005777288 +0930 @@ -42,13 +42,17 @@ micro=`echo $gnupg_version | \ sed 's/^gpg (GnuPG) \([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\).*/\3/'` - if test "$major" -eq "$req_major"; then - if test "$minor" -eq "$req_minor"; then - if test "$micro" -ge "$req_micro"; then - ok="yes" - fi + if test "$major" -gt "$req_major"; then + ok="yes" + elif test "$major" -eq "$req_major"; then + if test "$minor" -gt "$req_minor"; then + ok="yes" + elif test "$minor" -eq "$req_minor"; then + if test "$micro" -ge "$req_micro"; then + ok="yes" fi - fi + fi + fi fi if test "$ok" = "yes"; then @@ -83,8 +87,12 @@ micro=`echo $gpgme_config_version | \ sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\).*/\3/'` - if test "$major" -eq "$req_major"; then - if test "$minor" -eq "$req_minor"; then + if test "$major" -gt "$req_major"; then + ok="yes" + elif test "$major" -eq "$req_major"; then + if test "$minor" -gt "$req_minor"; then + ok="yes" + elif test "$minor" -eq "$req_minor"; then if test "$micro" -ge "$req_micro"; then ok="yes" fi --- configure.orig 2004-12-19 22:26:34.407687640 +0930 +++ configure 2004-12-19 22:27:24.973368792 +0930 @@ -7881,13 +8124,17 @@ micro=`echo $gnupg_version | \ sed 's/^gpg (GnuPG) \([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'` - if test "$major" -eq "$req_major"; then - if test "$minor" -eq "$req_minor"; then - if test "$micro" -ge "$req_micro"; then - ok="yes" - fi + if test "$major" -gt "$req_major"; then + ok="yes" + elif test "$major" -eq "$req_major"; then + if test "$minor" -gt "$req_minor"; then + ok="yes" + elif test "$minor" -eq "$req_minor"; then + if test "$micro" -ge "$req_micro"; then + ok="yes" fi - fi + fi + fi fi if test "$ok" = "yes"; then @@ -7962,8 +8209,12 @@ micro=`echo $gpgme_config_version | \ sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'` - if test "$major" -eq "$req_major"; then - if test "$minor" -eq "$req_minor"; then + if test "$major" -gt "$req_major"; then + ok="yes" + elif test "$major" -eq "$req_major"; then + if test "$minor" -gt "$req_minor"; then + ok="yes" + elif test "$minor" -eq "$req_minor"; then if test "$micro" -ge "$req_micro"; then ok="yes" fi