--- configure.ac.orig	2018-07-18 08:34:29 UTC
+++ configure.ac
@@ -23,7 +23,7 @@
 # DEALINGS IN THE SOFTWARE.
 
 dnl Process this file with autoconf to produce a configure script
-AC_INIT([BCFtools], m4_esyscmd_s([./version.sh 2>/dev/null]),
+AC_INIT([BCFtools], [@PORTVERSION@],
         [samtools-help@lists.sourceforge.net], [], [http://www.htslib.org/])
 AC_PREREQ([2.63])  dnl This version introduced 4-argument AC_CHECK_HEADER
 AC_CONFIG_SRCDIR([main.c])
