+2003-07-30 Jan Nieuwenhuizen <janneke@gnu.org>
+
+ * lexer-gcc-3.0.patch: Remove.
+
+ * lexer-gcc-3.1.sh: Disable FlexLexer.h massaging.
+
2003-07-30 Han-Wen Nienhuys <hanwen@cs.uu.nl>
* debian/rules (binary-arch): remove NEWS.
+++ /dev/null
-# Patch file documenting fix for flex-2.5.4 and gcc-3.x
-#
-# For usage of this patch, see INSTALL.txt
-
---- ./lily/out-gcc-3.0/lexer.cc~ Tue Jun 26 13:12:26 2001
-+++ ./lily/out-gcc-3.0/lexer.cc Tue Jun 26 13:11:56 2001
-@@ -21,7 +21,7 @@
- #ifdef __cplusplus
-
- #include <stdlib.h>
--class istream;
-+#include <iostream>
- #include <unistd.h>
-
- /* Use prototypes in function declarations. */
set -e
+FLEXLEXER=OK
+
+if [ -z "$FLEXLEXER" ]; then
+
includes="$HOME/usr/include /usr/local/include /usr/include"
for i in $includes; do
exit 1
fi
+fi # flexlexer
if [ -n "$CONF" ]; then
CONFIGSUFFIX=-$CONF
fi
outdir=out$CONFIGSUFFIX
+if [ -z "$FLEXLEXER" ]; then
+
echo -n "Copying and fixing $file... "
mkdir -p lily/$outdir
rm -f lily/$outdir/FlexLexer.h
$file > lily/$outdir/FlexLexer.h
echo "done"
+fi # flexlexer
if [ -f GNUmakefile ]; then
- echo -n "Generating and fixing $file... "
-
file=lily/$outdir/lexer.cc
+ echo -n "Generating and fixing $file... "
rm -f $file
make conf=$CONF -C lily $outdir/lexer.cc > /dev/null 2>&1 || true