Mercurial > hg > nginx-quic
view auto/inc @ 220:4f81b931e9ff
nginx-0.0.1-2004-01-08-11:47:17 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Thu, 08 Jan 2004 08:47:17 +0000 |
parents | 00cafae0bdf1 |
children | 1903c6821958 |
line wrap: on
line source
echo -n "checking for $ngx_inc ..." echo >> $NGX_ERR echo "checking for $ngx_inc" >> $NGX_ERR ngx_found=no inc=`echo $ngx_inc | sed -e 's/\./_/' | sed -e 's/\//_/' | tr '[a-z]' '[A-Z]'` cat << END > $NGX_AUTOTEST.c #include <$ngx_inc> int main() { return 0; } END eval "${CC} -o $NGX_AUTOTEST $NGX_AUTOTEST.c >> $NGX_ERR 2>&1" if [ -x $NGX_AUTOTEST ]; then echo " found" cat << END >> $NGX_AUTO_CONFIG_H #ifndef HAVE_$inc #define HAVE_$inc 1 #endif END eval "NGX_$inc='#include <$ngx_inc>'" ngx_found=yes else echo " not found" fi rm $NGX_AUTOTEST*