configure, hmake, and nhc98



About this list Date view Thread view Subject view Author view

Ralf Hinze (ralf@cs.uu.nl)
Tue, 20 Mar 2001 16:40:22 +0100


Dear all, I came across the following bugs, shortcomings .. 1. configure script: the test for the readline library does not work on my linux box: echo -n "Testing for the readline library: " echo 'main(){;}' >rd.c if ${CCC} -o rd.out rd.c -lreadline >/dev/null 2>&1 then echo ' yes (detected)' READLINE="-DUSE_READLINE=1 -lreadline" else echo ' no (detected)' READLINE="" fi rm -f rd.c rd.out To cure the problem I simply added `-lncurses'. 2. hmake: hmake inserts the -cpp directive even if this is not required. Unfortunately, since cpp does not like Haskell strings gaps, this sometimes provokes compilation failures. Is there a way of turning the automatic insertion of -cpp off? 3: nhc98. The renamer does not work for the program posted here: http://www.cs.uu.nl/~ralf/software.html#psq Here is a copy of the session (note BTW that -cpp is inserted though it is not needed): ralf/tmp> tar xzf PSQueue.tar.gz ralf/tmp> cd Programs/ Directory: /home/ralf/tmp/Programs tmp/Programs> hmake Main ghc -c -cpp -o Stringable.o Stringable.lhs ghc -c -cpp -o Sequ.o Sequ.lhs ghc -c -cpp -o Basic.o Basic.lhs ghc -c -cpp -o Balanced.o Balanced.lhs ghc -c -cpp -o BinPacking.o BinPacking.lhs ghc -c -cpp -o Main.o Main.lhs ghc -o Main Sequ.o Balanced.o Stringable.o Basic.o BinPacking.o Main.o tmp/Programs> hmake -realclean Main rm -f Sequ.o Balanced.o Stringable.o Basic.o BinPacking.o Main.o rm -f Sequ.hi Balanced.hi Stringable.hi Basic.hi BinPacking.hi Main.hi tmp/Programs> hmake -nhc98 Main nhc98 -c -cpp -o Stringable.o Stringable.lhs nhc98 -c -cpp -o Sequ.o Sequ.lhs nhc98 -c -cpp -o Basic.o Basic.lhs nhc98 -c -cpp -o Balanced.o Balanced.lhs nhc98 -c -cpp -o BinPacking.o BinPacking.lhs ==================================== Error when renaming:: Identifier empty defined 2 times. Let me know if you require any further information and thanks for building a great system (I really like hmake). Cheers, Ralf


About this list Date view Thread view Subject view Author view