diff --git a/configure.ac b/configure.ac
index affb063f23d1aa96cb91df7e20516791ae35b553..964e1497134c2d94744c99b1782ea9a227b36f95 100644
--- a/configure.ac
+++ b/configure.ac
@@ -78,10 +78,8 @@ cat rts/ghcversion.h.top                                                >> rts/i
 echo "#define __GLASGOW_HASKELL__ ${ProjectVersionInt}"                 >> rts/include/ghcversion.h
 echo "#define __GLASGOW_HASKELL_FULL_VERSION__ \"${ProjectVersion}\""   >> rts/include/ghcversion.h
 echo                                                                    >> rts/include/ghcversion.h
-AS_IF([test x"${ProjectPatchLevel1}" != x],
-  [echo "#define __GLASGOW_HASKELL_PATCHLEVEL1__ ${ProjectPatchLevel1}" >> rts/include/ghcversion.h])
-AS_IF([test x"${ProjectPatchLevel2}" != x],
-  [echo "#define __GLASGOW_HASKELL_PATCHLEVEL2__ ${ProjectPatchLevel2}" >> rts/include/ghcversion.h])
+echo "#define __GLASGOW_HASKELL_PATCHLEVEL1__ ${ProjectPatchLevel1}"    >> rts/include/ghcversion.h
+echo "#define __GLASGOW_HASKELL_PATCHLEVEL2__ ${ProjectPatchLevel2}"    >> rts/include/ghcversion.h
 
 cat rts/ghcversion.h.bottom                                             >> rts/include/ghcversion.h