comparison configure.ac @ 5748:3ccb4aaf91c7

* configure.ac (makeinfo): Use basic regexp. Avoid autoconf errors on empty version strings. Report version found if insufficient. Lightly tested.
author Stephen J. Turnbull <stephen@xemacs.org>
date Sun, 28 Jul 2013 02:46:02 +0900
parents 9c17f7be0b92
children a9fd35f939a5
comparison
equal deleted inserted replaced
5747:52b9fe8f44c0 5748:3ccb4aaf91c7
2588 2588
2589 dnl We need a recent version of makeinfo 2589 dnl We need a recent version of makeinfo
2590 AC_MSG_CHECKING([for makeinfo >= 4.12]) 2590 AC_MSG_CHECKING([for makeinfo >= 4.12])
2591 MAKEINFO= 2591 MAKEINFO=
2592 for prog in `which -a makeinfo`; do 2592 for prog in `which -a makeinfo`; do
2593 mi_verstr=[`$prog --version | sed -rn '1s/.*+[[:blank:]]([^[:blank:]]+)$/\1/p'`] 2593 mi_verstr=[`$prog --version | sed -n '1s/^.* \([0-9][0-9]*\.[0-9][0-9]*\)$/\1/p'`]
2594 mi_major=`echo $mi_verstr | cut -d. -f1` 2594 mi_major=`echo $mi_verstr | cut -d. -f1`
2595 mi_minor=`echo $mi_verstr | cut -d. -f2` 2595 mi_minor=`echo $mi_verstr | cut -d. -f2`
2596 if test $mi_major -gt 4 || ( test $mi_major -eq 4 && test $mi_minor -gt 11 ); 2596 if test "$mi_major" -gt 4 || ( test "$mi_major" -eq 4 && test "$mi_minor" -gt 11 );
2597 then 2597 then
2598 MAKEINFO=$prog 2598 MAKEINFO=$prog
2599 break 2599 break
2600 fi 2600 fi
2601 done 2601 done
2602 if test -z $MAKEINFO; then 2602 if test -z $MAKEINFO; then
2603 AC_MSG_RESULT([no]) 2603 AC_MSG_RESULT([no])
2604 AC_MSG_WARN([Makeinfo 4.12 or later required to build info files.]) 2604 AC_MSG_WARN([Found Makeinfo $mi_verstr. 4.12 or later required.])
2605 else 2605 else
2606 AC_MSG_RESULT([yes]) 2606 AC_MSG_RESULT([yes])
2607 fi 2607 fi
2608 AC_CONFIG_FILES([man/Makefile]) 2608 AC_CONFIG_FILES([man/Makefile])
2609 2609