Turn off lex by default on OpenBSD
[fio.git] / configure
index 75d0978d305442b6a8e2306d9c4a1fd776f5a5ce..bcb898a835a857670afa5203db4cf923bbe50b88 100755 (executable)
--- a/configure
+++ b/configure
@@ -257,8 +257,9 @@ 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)
+AIX|OpenBSD)
   # Unless explicitly enabled, turn off lex.
+  # OpenBSD will hit syntax error when enabled.
   if test -z "$disable_lex" ; then
     disable_lex="yes"
   else
@@ -2003,7 +2004,7 @@ int main(int argc, char **argv)
   return cuInit(0);
 }
 EOF
-if test "$enable_cuda" == "yes"  && compile_prog "" "-lcuda" "cuda"; then
+if test "$enable_cuda" = "yes" && compile_prog "" "-lcuda" "cuda"; then
   cuda="yes"
   LIBS="-lcuda $LIBS"
 fi