diff options
| author | Igor Sysoev <igor@sysoev.ru> | 2003-11-26 15:42:18 +0000 |
|---|---|---|
| committer | Igor Sysoev <igor@sysoev.ru> | 2003-11-26 15:42:18 +0000 |
| commit | c0f8d91bde06aeeb53ff16d6c26490f5961f5a31 (patch) | |
| tree | 034ba6291b7d4975868371dae533e4ab985c63f5 /auto/inc | |
| parent | a8fa0a6a37b6e90324e0dcbf4733324199623841 (diff) | |
| download | nginx-c0f8d91bde06aeeb53ff16d6c26490f5961f5a31.tar.gz nginx-c0f8d91bde06aeeb53ff16d6c26490f5961f5a31.tar.bz2 | |
nginx-0.0.1-2003-11-26-18:42:18 import
Diffstat (limited to 'auto/inc')
| -rw-r--r-- | auto/inc | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/auto/inc b/auto/inc new file mode 100644 index 000000000..1db95f5b1 --- /dev/null +++ b/auto/inc @@ -0,0 +1,25 @@ + +echo "checking for $NGX_INC" + +inc=`echo $NGX_INC | sed -e 's/\./_/' | tr '[a-z]' '[A-Z]'` + +echo "#include <$NGX_INC>" > autotest.c +echo "int main() { return 0; }" >> autotest.c + +eval "${CC} -o autotest autotest.c > /dev/null 2>&1" + +if [ -x autotest ]; then + echo " + $NGX_INC found" + + echo "#ifndef HAVE_$inc" >> $NGX_AUTO_CONFIG_H + echo "#define HAVE_$inc 1" >> $NGX_AUTO_CONFIG_H + echo "#endif" >> $NGX_AUTO_CONFIG_H + echo >> $NGX_AUTO_CONFIG_H + + eval "NGX_$inc='#include <$NGX_INC>'" + +else + echo " + $NGX_INC not found" +fi + +rm autotest* |
