Commit 1b3832d6 authored by bguillaum's avatar bguillaum

better configure.in

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/semagramme/libcaml-grew/trunk@7692 7838e531-6607-4d57-9587-6c381814729c
parent a9d8ab79
......@@ -64,39 +64,16 @@ if test "$config" = yes ; then
AC_LIB_CHECKING(Log,log,log,log,Log,"",true)
AC_SUBST(LOG_INCLUDE,$LIB_INCLUDE)
DEP2PICT="no"
if test "$dep2pict" = yes ; then
#Look for Dep2pict
AC_MSG_CHECKING([for dep2pict])
if test -f c_check_dep2pict.ml ; then
if test -w c_check_dep2pict.ml ; then
rm c_check_dep2pict.* >& /dev/null
else
AC_MSG_ERROR(Cannot remove c_check_dep2pict.ml. Please change its right with chmod 666 c_check_dep2pict.ml)
fi
fi
echo "open Dep2pict;;" > c_check_dep2pict.ml
if (ocamlc -c dep2pict.cma c_check_dep2pict.ml >& /dev/null) ; then
AC_MSG_RESULT(standard)
DEP2PICT="yes"
else
if test "$OCAMLFIND" = no ; then
AC_MSG_WARN(The dep2pict library is missing.)
DEP2PICT="no"
else
if $OCAMLFIND query dep2pict > /dev/null 2>&1 ; then
DEP2PICT_INCLUDE="-I `$OCAMLFIND query dep2pict`"
AC_MSG_RESULT(ocamlfind)
DEP2PICT="yes"
else
AC_MSG_WARN(The dep2pict library is missing.)
DEP2PICT="no"
fi
fi
fi
rm c_check_dep2pict.* >& /dev/null
fi
AC_SUBST(DEP2PICT)
# Dep2pict is optionnal
AC_LIB_CHECKING(Dep2pict,dep2pict,dep2pict,dep2pict,Dep2pict,"",false,true)
AC_SUBST(DEP2PICT_INCLUDE,$LIB_INCLUDE)
if test "$dep2pict" = no || test "$DEP2PICT_INCLUDE_INCLUDE" = no ; then
AC_SUBST(DEP2PICT,no)
else
AC_SUBST(DEP2PICT,yes)
fi
fi
......
This diff is collapsed.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment