Welcome to mirror list, hosted at ThFree Co, Russian Federation.

inc « auto - github.com/nginx/nginx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/auto/inc
blob: 0419f11a0fc92c6e2132e53b72f57dd604e80ce6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32

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*