Using compiler capability to generate dependencies.

This closes #58 issue on GitHub.
This commit is contained in:
Max Romanov
2017-12-01 16:28:06 +03:00
parent 1add36a7ee
commit 630ec3f1ec
7 changed files with 78 additions and 119 deletions

View File

@@ -74,13 +74,15 @@ END
if /bin/sh -c "($NXT_AUTOTEST)" >> $NXT_AUTOCONF_ERR 2>&1; then
$echo " found"
nxt_found=yes
cat << END >> $NXT_AUTO_CONFIG_H
if [ -n "$nxt_feature_name" ]; then
cat << END >> $NXT_AUTO_CONFIG_H
#ifndef $nxt_feature_name
#define $nxt_feature_name 1
#endif
END
fi
else
$echo " found but is not working"
fi
@@ -89,13 +91,15 @@ END
*)
$echo " found"
nxt_found=yes
cat << END >> $NXT_AUTO_CONFIG_H
if [ -n "$nxt_feature_name" ]; then
cat << END >> $NXT_AUTO_CONFIG_H
#ifndef $nxt_feature_name
#define $nxt_feature_name 1
#endif
END
fi
;;
esac