3 # compare the generated config.h from a waf build with existing samba
6 OLD_CONFIG
=source3/include
/autoconf
/config.h
7 if test "x$1" != "x" ; then
11 NEW_CONFIG
=bin
/default
/include
/config.h
12 if test "x$2" != "x" ; then
16 EXCEPTIONS
=`dirname $0`/compare_config_h3-exceptions.
grep
18 if test "x$DIFF" = "x" ; then
22 grep "^.define" $NEW_CONFIG |
egrep -v -f $EXCEPTIONS |
sort > waf-config.h
23 grep "^.define" $OLD_CONFIG |
egrep -v -f $EXCEPTIONS |
sort > old-config.h
25 $DIFF old-config.h waf-config.h
26 rm -f old-config.h waf-config.h