configure.ac: fix a check of debug flag for #qt3

$enable_debug is either "yes" or "no", so "test -z" is always false