X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=configure.ac;h=91daa5127b436fdf11390219fee356e6851c8907;hb=f6ef2ff72979fd6504b930d7db9506f35ce07d37;hp=0a9259763f8750246f34369d5b6097ea4ea2a167;hpb=88d4ba3e4b3c0b8587b2a338a0bf09640d1edb7e;p=sigrok-firmware-fx2lafw.git diff --git a/configure.ac b/configure.ac index 0a925976..91daa512 100644 --- a/configure.ac +++ b/configure.ac @@ -14,14 +14,13 @@ ## GNU General Public License for more details. ## ## You should have received a copy of the GNU General Public License -## along with this program; if not, write to the Free Software -## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +## along with this program; if not, see . ## # We require at least autoconf 2.63 (AC_INIT format changed there). AC_PREREQ([2.63]) -AC_INIT([sigrok-firmware-fx2lafw], [0.1.2], +AC_INIT([sigrok-firmware-fx2lafw], [0.1.5], [sigrok-devel@lists.sourceforge.net], [sigrok-firmware-fx2lafw], [http://www.sigrok.org]) AC_CONFIG_AUX_DIR([autostuff]) @@ -42,6 +41,10 @@ AC_CHECK_PROGS([SDCCLIB], [sdcclib sdcc-sdcclib]) AS_IF([test "x$SDCCLIB" = x], [AC_MSG_ERROR([cannot find sdcclib.])]) +sf_sdcc_version=`$SDCC --version | sed -n 's/.* \([[0-9]][[0-9]]*\.[[0-9]][[0-9]]*\.[[0-9]][[0-9]]*\) .*/\1/p;q' 2>&AS_MESSAGE_LOG_FD` +AS_VERSION_COMPARE([$sf_sdcc_version], [2.9.0], + [AC_MSG_ERROR([At least version 2.9.0 of sdcc is required.])]) + AC_CHECK_PROGS([OBJCOPY], [objcopy]) AC_CHECK_PROGS([MAKEBIN], [makebin sdcc-makebin]) AS_IF([test "x$OBJCOPY$MAKEBIN" = x], @@ -59,6 +62,16 @@ AS_IF([test "x$SDAS8051" = x], [AC_MSG_ERROR([cannot find sdas8051.])]) AC_CONFIG_FILES([Makefile]) - AC_OUTPUT +cat >&AS_MESSAGE_FD <<_EOF + +sigrok-firmware-fx2lafw configuration summary: + - Package version................. $PACKAGE_VERSION + - Prefix.......................... $prefix + +Compile configuration: + - C compiler...................... $SDCC + - C compiler version.............. $sf_sdcc_version + +_EOF