Setting APXS without quotes breaks in Snow Leopard

Without quoting the environment variable I get this when `brew install mod_fcgid --with-brewed-httpd24 -vvv` on Snow Leopard:

    ==> Verifying mod_fcgid-2.3.9.tar.gz checksum
    tar xf /Library/Caches/Homebrew/mod_fcgid-2.3.9.tar.gz
    ==> APXS=/usr/local/opt/httpd24/bin/apxs ./configure.apxs
    Failed to execute: APXS=/usr/local/opt/httpd24/bin/apxs ./configure.apxs
    ==> Formula
    Tap: homebrew/homebrew-apache
    Path: /usr/local/Library/Taps/homebrew/homebrew-apache/mod_fcgid.rb
    ==> Configuration
    HOMEBREW_VERSION: 0.9.5
    HEAD: e8ec113bca2e07f1e873e9c9312a036f3d7e0146
    CPU: quad-core 64-bit sandybridge
    OS X: 10.6.8-x86_64
    Xcode: 3.2.6
    X11: 2.3.6 => /usr/X11
    ==> ENV
    HOMEBREW_CC: gcc-4.2
    HOMEBREW_CXX: g++-4.2
    MAKEFLAGS: -j4
    CMAKE_PREFIX_PATH: /usr/local
    CMAKE_INCLUDE_PATH: /usr/include/libxml2:/System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers
    CMAKE_LIBRARY_PATH: /System/Library/Frameworks/OpenGL.framework/Versions/Current/Libraries
    PKG_CONFIG_PATH: /usr/local/opt/pcre/lib/pkgconfig
    PKG_CONFIG_LIBDIR: /usr/lib/pkgconfig
    ACLOCAL_PATH: /usr/local/share/aclocal
    PATH: /usr/local/Library/ENV/3.2.6:/usr/local/opt/pcre/bin:/usr/local/opt/httpd24/bin:/usr/bin:/bin:/usr/sbin:/sbin

    Error: mod_fcgid 2.3.9 did not build