diff options
author | Owen Taylor <otaylor@redhat.com> | 2002-11-21 05:33:40 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@src.gnome.org> | 2002-11-21 05:33:40 +0000 |
commit | 2f78134755cb6081737a57dbf8b85104ae5ef7ee (patch) | |
tree | ccfd83daff2af9fbae61e435fdab5b92c1402a8c /configure.in | |
parent | 4b14c577617509ee04d34e8ec6dd9e759df75be0 (diff) | |
download | pango-2f78134755cb6081737a57dbf8b85104ae5ef7ee.tar.gz |
Use some shell magic rather than perl to check for the right gtk-doc
Thu Nov 21 00:26:40 2002 Owen Taylor <otaylor@redhat.com>
* configure.in: Use some shell magic rather than
perl to check for the right gtk-doc version to
avoid having to worry about finding Perl.
Make checks handle 0.10 > 0.9. (#99120, Dan Mills)
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 28 |
1 files changed, 19 insertions, 9 deletions
diff --git a/configure.in b/configure.in index 7425c2d0..eb781350 100644 --- a/configure.in +++ b/configure.in @@ -549,22 +549,32 @@ fi AC_SUBST(HTML_DIR) +# +# Check for sufficiently new gtk-doc +# +gtk_doc_min_version=0.6 AC_CHECK_PROG(GTKDOC, gtkdoc-mkdb, true, false) - -gtk_doc_min_version=0.6 if $GTKDOC ; then gtk_doc_version=`gtkdoc-mkdb --version` AC_MSG_CHECKING([gtk-doc version ($gtk_doc_version) >= $gtk_doc_min_version]) - if perl <<EOF ; then - exit (("$gtk_doc_version" =~ /^[[0-9]]+\.[[0-9]]+$/) && - ("$gtk_doc_version" >= "$gtk_doc_min_version") ? 0 : 1); -EOF + + IFS="${IFS= }"; pango_save_IFS="$IFS"; IFS="." + set $gtk_doc_version + for min in $gtk_doc_min_version ; do + cur=$1; shift + if test -z $min ; then break; fi + if test -z $cur ; then GTKDOC=false; break; fi + if test $cur -gt $min ; then break ; fi + if test $cur -lt $min ; then GTKDOC=false; break ; fi + done + IFS="$pango_save_IFS" + + if $GTKDOC ; then AC_MSG_RESULT(yes) - else + else AC_MSG_RESULT(no) - GTKDOC=false - fi + fi fi AM_CONDITIONAL(HAVE_GTK_DOC, $GTKDOC) |