mirror of
https://github.com/nginx/nginx.git
synced 2024-12-01 03:17:17 +08:00
33 lines
540 B
Plaintext
33 lines
540 B
Plaintext
|
|
echo $ngx_n "checking for $ngx_inc ..." $ngx_c
|
|
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"
|
|
have=HAVE_$inc . auto/have
|
|
eval "NGX_$inc='#include <$ngx_inc>'"
|
|
ngx_found=yes
|
|
|
|
else
|
|
echo " not found"
|
|
fi
|
|
|
|
rm $NGX_AUTOTEST*
|