early C compiler test
diff --git a/auto/configure b/auto/configure
index 24acfd7..bcb8aaa 100755
--- a/auto/configure
+++ b/auto/configure
@@ -35,14 +35,15 @@
 
 else
     echo "building for $NGX_PLATFORM"
+    NGX_SYSTEM=$NGX_PLATFORM
 fi
 
+. auto/cc/conf
 
 if [ "$NGX_PLATFORM" != win32 ]; then
     . auto/headers
 fi
 
-. auto/cc/conf
 . auto/os/conf
 
 if [ "$NGX_PLATFORM" != win32 ]; then