Commit 709e9d0f authored by stolpmann's avatar stolpmann

findlib: enabled by topfind


git-svn-id: https://godirepo.camlcity.org/svn/wdialog/trunk@185 f54c9a64-0731-4a92-b797-30fd5898f27c
parent e217e8bb
#! /bin/sh
# $Id: configure,v 3.10 2003-11-04 22:29:15 stolpmann Exp $
# $Id: configure,v 3.11 2004-01-04 16:26:16 stolpmann Exp $
#--- Options ---
# value -1: off by command line ("forced")
......@@ -452,24 +452,29 @@ fi
printf "%s" "Checking the name of the findlib loader... "
rm -rf ocaml-findlib
stdlib=`ocamlc -where`
if [ -f "$stdlib/findlib" ]; then
echo "<stdlib>/findlib"
ln -s "$stdlib/findlib" ocaml-findlib
if [ -f "$stdlib/topfind" ]; then
echo "<stdlib>/topfind"
ln -s "$stdlib/topfind" ocaml-findlib
else
if [ -f "$stdlib/ocamlfind" ]; then # debian
echo "<stdlib>/ocamlfind"
ln -s "$stdlib/ocamlfind" ocaml-findlib
if [ -f "$stdlib/findlib" ]; then
echo "<stdlib>/findlib"
ln -s "$stdlib/findlib" ocaml-findlib
else
echo "not found"
echo "Sorry, cannot find the findlib loader. Something is wrong"
echo "with your installation."
exit 1
if [ -f "$stdlib/ocamlfind" ]; then # debian
echo "<stdlib>/ocamlfind"
ln -s "$stdlib/ocamlfind" ocaml-findlib
else
echo "not found"
echo "Sorry, cannot find the findlib loader. Something is wrong"
echo "with your installation."
exit 1
fi
fi
fi
printf "%s" "Checking whether the findlib loader works... "
echo <<'EOF' >.testscript
#use "findlib";;
#use "./ocaml-findlib";;
EOF
ocaml .testscript >.testout 2>&1
......
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