Move the AC_OUTPUT below the checks. So you nicely see what goes wrong.
Attach a file by drag & drop or click to upload