Skip to content

Commit

Permalink
Perform substitutions for #undef autoconf macros in missing.h
Browse files Browse the repository at this point in the history
  • Loading branch information
arr2036 committed Oct 19, 2014
1 parent 49203f6 commit 4bf8683
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/include/all.mk
Expand Up @@ -51,6 +51,11 @@ src/include/autoconf.sed: src/include/autoconf.h
's,#[\\t ]*ifndef[\\t ]*" $$2 "$$,#if !"$$3 ",g;'\
's,defined(" $$2 ")," $$3 ",g;"}' > $@

@grep -o '#undef [^ ]*' $< | sed 's,/#undef /,,;' | awk '{print "'\
's,#[\\t ]*ifdef[\\t ]*" $$2 "$$,#if 0,g;'\
's,#[\\t ]*ifndef[\\t ]*" $$2 "$$,#if 1,g;'\
's,defined(" $$2 "),0,g;"}' >> $@

src/include/radius.h: | src/include/attributes.h

src/include/attributes.h: share/dictionary.freeradius.internal
Expand Down

0 comments on commit 4bf8683

Please sign in to comment.