aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2021-06-16 14:43:16 +0000
committerOmar Polo <op@omarpolo.com>2021-06-16 14:43:16 +0000
commit74f0778b9ae93a700d8b0f759b05f24e69f54921 (patch)
tree7e67078f430fce32caf192e38dc91dc8a6accc5a /configure
parent984c46a82e002089b3a4035ba34873ad9c75d973 (diff)
drop the dependency on lex by implementing yylex by ourselves
The actual implementation is based off doas' parse.y. This gave us various benefits, like cleaner code, \ to break long lines, better handling of quotes etc...
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure14
1 files changed, 0 insertions, 14 deletions
diff --git a/configure b/configure
index 84ed361..d5f4035 100755
--- a/configure
+++ b/configure
@@ -40,7 +40,6 @@ CFLAGS="${CFLAGS} -g -W -Wall -Wextra -Wmissing-prototypes -Wstrict-prototypes"
CFLAGS="${CFLAGS} -Wwrite-strings -Wno-unused-parameter"
LDFLAGS="-ltls -levent"
LD_IMSG=
-LEX=lex
STATIC=
YACC=yacc
@@ -74,17 +73,6 @@ if which pkg-config 2>/dev/null 1>&2; then
esac
fi
-# auto detect lex/flex
-which ${LEX} 2>/dev/null 1>&2 || {
- echo "${LEX} not found: trying flex" 1>&2
- echo "${LEX} not found: trying flex" 1>&3
- LEX=flex
- which ${LEX} 2>/dev/null 1>&2 || {
- echo "${LEX} not found: giving up" 1>&2
- echo "${LEX} not found: giving up" 1>&3
- }
-}
-
# auto detect yacc/bison
which ${YACC} 2>/dev/null 1>&2 || {
echo "${YACC} not found: trying bison" 1>&2
@@ -112,7 +100,6 @@ for keyvals in "$@"; do
CFLAGS) CFLAGS="$val" ;;
DESTDIR) DESTDIR="$val" ;;
LDFLAGS) LDFLAGS="$val" ;;
- LEX) LEX="$lex" ;;
PREFIX) PREFIX="$val" ;;
YACC) YACC="$val" ;;
*)
@@ -398,7 +385,6 @@ CC = ${CC}
CFLAGS = ${CFLAGS}
LDFLAGS = ${LDFLAGS} ${LD_IMSG}
YACC = ${YACC}
-LEX = ${LEX}
STATIC = ${STATIC}
PREFIX = ${PREFIX}
BINDIR = ${BINDIR}