summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorBart Van Assche <bart.vanassche@wdc.com>2018-03-12 14:37:37 -0700
committerBart Van Assche <bart.vanassche@wdc.com>2018-03-12 14:42:50 -0700
commit89556808ef14a30670390f0f52e5726ee00a1303 (patch)
treeea26e9604d588029dcb36a99fe76efc5ea2dee12 /configure
parente0b3258bde6f39ab3a9d178b56526b65e0e32a8d (diff)
downloadfio-89556808ef14a30670390f0f52e5726ee00a1303.tar.gz
fio-89556808ef14a30670390f0f52e5726ee00a1303.tar.bz2
configure: Disable lex on NetBSD
Since the NetBSD lex software does not support all features (yylval) used by fio, disable lex on NetBSD. Signed-off-by: Bart Van Assche <bart.vanassche@wdc.com>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure4
1 files changed, 3 insertions, 1 deletions
diff --git a/configure b/configure
index aefd5bb0..a73b61ee 100755
--- a/configure
+++ b/configure
@@ -252,6 +252,8 @@ elif check_define __linux__ ; then
targetos="Linux"
elif check_define __OpenBSD__ ; then
targetos='OpenBSD'
+elif check_define __NetBSD__ ; then
+ targetos='NetBSD'
elif check_define __sun__ ; then
targetos='SunOS'
CFLAGS="$CFLAGS -D_REENTRANT"
@@ -280,7 +282,7 @@ fi
# cross-compiling to one of these OSes then you'll need to specify
# the correct CPU with the --cpu option.
case $targetos in
-AIX|OpenBSD)
+AIX|*BSD)
# Unless explicitly enabled, turn off lex.
# OpenBSD will hit syntax error when enabled.
if test -z "$disable_lex" ; then