Description: remove unneeded check for obsolete -unsafe-string
Author: Stephane Glondu <steph@glondu.net>
Date: Tue, 7 Sep 2021 12:51:42 +0200
Forwarded: http://bugzilla.scilab.org/show_bug.cgi?id=16748

---
 scilab/m4/ocaml.m4 | 12 ------------
 1 file changed, 12 deletions(-)

diff --git a/scilab/m4/ocaml.m4 b/scilab/m4/ocaml.m4
index f25e10a08..11323c8a6 100644
--- a/scilab/m4/ocaml.m4
+++ b/scilab/m4/ocaml.m4
@@ -23,22 +23,10 @@ AC_DEFUN([AC_CHECK_PROG_OCAML],[
 	if test "$OCAMLC" = no; then
 		AC_MSG_ERROR([ocamlc not found. Mandatory to build the Scicos modelica compiler (Use --without-modelica to disable the Modelica compiler).])
 	fi
-	# since ocaml 4.06, unsafe string is no more the default parameter ; enforce it
-        "$OCAMLC" -unsafe-string
-	if test "$?" -ne "0"; then
-		AC_MSG_WARN([ocamlc does not support "-unsafe-string". Needed to build the Scicos modelica compiler (Use --without-modelica to disable the Modelica compiler).])
-	fi
-        OCAMLCFLAGS="$OCAMLCFLAGS -unsafe-string"
 	AC_CHECK_PROG(OCAMLOPT,ocamlopt,ocamlopt,no)
 	if test "$OCAMLOPT" = no; then
 		AC_MSG_ERROR([ocamlopt not found. Mandatory to build the Scicos modelica compiler.])
 	fi
-	# since ocaml 4.06, unsafe string is no more the default parameter ; enforce it
-        "$OCAMLOPT" -unsafe-string
-	if test "$?" -ne "0"; then
-		AC_MSG_WARN([ocamlc does not support "-unsafe-string". Needed to build the Scicos modelica compiler (Use --without-modelica to disable the Modelica compiler).])
-	fi
-        OCAMLOPTFLAGS="$OCAMLOPTFLAGS -unsafe-string"
 	AC_CHECK_PROG(OCAMLDEP,ocamldep,ocamldep,no)
 	if test "$OCAMLDEP" = no; then
 		AC_MSG_ERROR([ocamldep not found. Mandatory to build the Scicos modelica compiler.])
-- 
2.33.0


