-if test "$lt_major" = "$LIBTOOL_WANTED_MAJOR"; then
- if test "$lt_minor" -lt "$LIBTOOL_WANTED_MINOR"; then
- lt_status="bad"
- elif test -n "$LIBTOOL_WANTED_PATCH"; then
- if test "$lt_minor" -gt "$LIBTOOL_WANTED_MINOR"; then
- lt_status="good"
- elif test -n "$lt_patch"; then
- if test "$lt_patch" -lt "$LIBTOOL_WANTED_PATCH"; then
- lt_status="bad"
- fi
- else
- lt_status="bad"
- fi
- fi
+if test -z "$lt_major"; then
+ lt_status="bad"
+elif test "$lt_major" -gt "$want_lt_major"; then
+ lt_status="good"
+elif test "$lt_major" -lt "$want_lt_major"; then
+ lt_status="bad"
+elif test -z "$lt_minor"; then
+ lt_status="bad"
+elif test "$lt_minor" -gt "$want_lt_minor"; then
+ lt_status="good"
+elif test "$lt_minor" -lt "$want_lt_minor"; then
+ lt_status="bad"
+elif test -z "$lt_patch"; then
+ lt_status="bad"
+elif test "$lt_patch" -gt "$want_lt_patch"; then
+ lt_status="good"
+elif test "$lt_patch" -lt "$want_lt_patch"; then
+ lt_status="bad"
+else
+ lt_status="good"