pocl: fix invalid check in configure.

Wrongly recognized build mode of llvm in addition to optimization level -Os caused some invalid functionality. More details in https://github.com/pocl/pocl/issues/59.

Closes #27034.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>