diff options
author | Omar Polo <op@omarpolo.com> | 2021-06-16 14:43:16 +0000 |
---|---|---|
committer | Omar Polo <op@omarpolo.com> | 2021-06-16 14:43:16 +0000 |
commit | 74f0778b9ae93a700d8b0f759b05f24e69f54921 (patch) | |
tree | 7e67078f430fce32caf192e38dc91dc8a6accc5a /configure | |
parent | 984c46a82e002089b3a4035ba34873ad9c75d973 (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-x | configure | 14 |
1 files changed, 0 insertions, 14 deletions
@@ -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} |