AW: Difficulties compiling hmake / HaXml
Malcolm Wallace
Malcolm.Wallace@cs.york.ac.uk
Wed, 28 Mar 2001 15:26:44 +0100
> Okay, I tried to ignore the error and went on with "make install"
> (after "./configure" and "make"). However, again an error message
> appears (see above), and there is no .exe output. What can I do
> about this now?
* Either try the hack to READLINE="" in lib/ix86-CYGWIN_NT-4.0/config,
then 'make install';
* Or try './configure --install' instead of 'make install'.
* Or, best of all, apply the patch below to the configure script,
then re-run the whole sequence of ./configure; make; make install.
Regards,
Malcolm
diff -u -r1.18 configure
--- configure 2001/02/16 16:09:37 1.18
+++ configure 2001/03/28 14:23:57
@@ -247,15 +247,23 @@
then echo "You gave the following extra build options: $BUILDOPTS"
fi
- echo -n "Testing for the readline library: "
- echo 'main(){;}' >rd.c
- if ${CC-gcc} -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.out rd.c
+ echo -n "Testing for the readline library: "
+ case $OS in
+ CYGWIN*) echo ' cannot use'
+ READLINE="" ;;
+ *) echo 'main(){;}' >rd.c
+ if ${CC-gcc} -o rd.out rd.c -lreadline >/dev/null 2>&1
+ then echo ' yes (detected)'
+ READLINE="-DUSE_READLINE=1 -lreadline"
+ else if ${CC-gcc} -o rd.out rd.c -lreadline -lncurses >/dev/null 2>&1
+ then echo ' yes (detected)'
+ READLINE="-DUSE_READLINE=1 -lreadline -lncurses"
+ else echo ' no (detected)'
+ READLINE=""
+ fi
+ fi
+ rm -f rd.c rd.out ;;
+ esac
if [ "$EXE" = "" ]
then echo "Executables need .exe suffix? no (detected)"