configure.ac: fix some broken AM_CONDITIONALs

These AM_CONDITIONALs forgot to include the "test" executable,
resulting in output like this:

```
./configure: line 8718: no: command not found
```