# HG changeset patch # User Maxim Dounin # Date 1378315023 -14400 # Node ID 945aa9c7f2829e71de03611dead6411d2b574bf6 # Parent 6c35a1f428f29a44524bb911c28452b84982ee56 Configure: fixed building with Sun C if CFLAGS set (ticket #65). diff --git a/auto/cc/conf b/auto/cc/conf --- a/auto/cc/conf +++ b/auto/cc/conf @@ -43,6 +43,29 @@ if test -n "$CFLAGS"; then ngx_include_opt="-I" ;; + sunc) + + case "$NGX_MACHINE" in + + i86pc) + NGX_AUX=" src/os/unix/ngx_sunpro_x86.il" + ;; + + sun4u | sun4v) + NGX_AUX=" src/os/unix/ngx_sunpro_sparc64.il" + ;; + + esac + + case $CPU in + + amd64) + NGX_AUX=" src/os/unix/ngx_sunpro_amd64.il" + ;; + + esac + ;; + esac else