summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorRobert James Kaes <rjkaes@users.sourceforge.net>2003-06-26 18:23:01 +0000
committerRobert James Kaes <rjkaes@users.sourceforge.net>2003-06-26 18:23:01 +0000
commita8798e999bb1a5f45835ed5d09867f33fc0c93cc (patch)
treeca63a4332e72e2a61111d5c21198a425b45e7e89
parent1cb032a9340f0b0f8f1256ffa7ee1fc659910c20 (diff)
# Added debugging flags for the flex scanner.
-rw-r--r--configure.ac4
-rw-r--r--src/Makefile.am4
2 files changed, 5 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac
index f5f9575..8c7a427 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,4 +1,4 @@
-dnl $Id: configure.ac,v 2.57 2003-06-25 18:23:11 rjkaes Exp $
+dnl $Id: configure.ac,v 2.58 2003-06-26 18:23:01 rjkaes Exp $
dnl Devlopers, please strive to achieve this order:
dnl
@@ -265,6 +265,7 @@ if test x"$debug_enabled" = x"yes" ; then
fi
CFLAGS="-Wall -g -DYYDEBUG $CFLAGS"
YFLAGS="-v -d"
+ LEX_FLAGS="--warn"
else
dnl No debugging information, include the optimizations
CFLAGS="-O2 -DNDEBUG $CFLAGS"
@@ -341,6 +342,7 @@ AC_SUBST(CFLAGS)
AC_SUBST(LDFLAGS)
AC_SUBST(YFLAGS)
AC_SUBST(CPPFLAGS)
+AC_SUBST(LEX_FLAGS)
AC_SUBST(LIBS)
AC_SUBST(ADDITIONAL_OBJECTS)
AC_SUBST(TINYPROXY_CONFIG_DIR)
diff --git a/src/Makefile.am b/src/Makefile.am
index 804a4c0..4a9c42f 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -1,4 +1,4 @@
-# $Id: Makefile.am,v 1.16 2003-03-13 21:23:01 rjkaes Exp $
+# $Id: Makefile.am,v 1.17 2003-06-26 18:23:01 rjkaes Exp $
#
# Copyright (C) 2000 Robert James Kaes (rjkaes@flarenet.com)
#
@@ -48,7 +48,7 @@ tinyproxy_DEPENDENCIES = @ADDITIONAL_OBJECTS@
tinyproxy_LDADD = @ADDITIONAL_OBJECTS@
scanner.c: scanner.l grammar.h
- $(LEX) $(AM_LFLAGS) $(LFLAGS) -i $< && mv $(LEX_OUTPUT_ROOT).c $@
+ $(LEX) $(LEX_FLAGS) $(LFLAGS) -i $< && mv $(LEX_OUTPUT_ROOT).c $@
clean:
rm -f *.da