]>
git.ipfire.org Git - thirdparty/util-linux.git/blob - tools/checkdecl.sh
4 # This script checkd for #ifdef HAVE_DECL_SYMBOL in code.
8 # Unlike the other autoconf ‘AC_CHECK_*S’ macros, when a symbol is not
9 # declared, HAVE_DECL_symbol is defined to ‘0’ instead of leaving
10 # HAVE_DECL_symbol undeclared. When you are sure that the check was performed,
11 # use HAVE_DECL_symbol in #if.
14 if [ ! -f .
/configure
]; then
15 echo "Not found configure script"
19 for decl
in $
(awk '/HAVE_DECL_.*ac_have_decl/ { print $2 }' configure
); do
20 git
grep -nE '[[:blank:]]*#[[:blank:]]*if(ndef|def)[[:blank:]]*'$decl;