Previous solution requires autoconf > 2.69, use dumb solution for now.

This commit is contained in:
Jerry James 2021-03-29 14:46:29 -06:00
parent fa9b80e568
commit 1229f3b91c

View File

@ -1,12 +1,10 @@
--- configure.in.orig 2017-08-23 06:49:52.000000000 -0600 --- configure.in.orig 2017-08-23 06:49:52.000000000 -0600
+++ configure.in 2021-03-29 14:18:01.847530174 -0600 +++ configure.in 2021-03-29 14:40:50.317505290 -0600
@@ -29,9 +29,13 @@ @@ -29,9 +29,11 @@
# OCAMLWIN32 "yes"/"no" depending on Sys.os_type = "Win32" # OCAMLWIN32 "yes"/"no" depending on Sys.os_type = "Win32"
# EXE ".exe" if OCAMLWIN32=yes, "" otherwise # EXE ".exe" if OCAMLWIN32=yes, "" otherwise
+m4_define([ocplib_simplex_VERSION], +AC_INIT([ocplib-simplex], [0.4])
+ m4_esyscmd([sed -rn 's/^version:[[:blank:]]*"([^"]*)"/\1/p' opam]))
+AC_INIT([ocplib-simplex], m4_defn([ocplib_simplex_VERSION]))
+ +
# check for one particular file of the sources # check for one particular file of the sources
# ADAPT THE FOLLOWING LINE TO YOUR SOURCES! # ADAPT THE FOLLOWING LINE TO YOUR SOURCES!
@ -15,7 +13,7 @@
# Check for Ocaml compilers # Check for Ocaml compilers
@@ -137,5 +141,6 @@ AC_SUBST(OCAMLWIN32) @@ -137,5 +139,6 @@ AC_SUBST(OCAMLWIN32)
AC_SUBST(EXE) AC_SUBST(EXE)
# Finally create the Makefile.configurable from Makefile.configurable.in # Finally create the Makefile.configurable from Makefile.configurable.in