I have no idea what this is supposed to be doing, but it is doing it wrong. During make, after building apr, using vanilla awk:
~/ws/httpd-2.0/srclib/apr/.libs
~/ws/httpd-2.0/srclib/apr/.libs
~/ws/httpd-2.0/srclib/apr/.libs
awk -f /Users/fielding/ws/httpd-2.0/srclib/apr/build/make_var_export.awk /Users/fielding/ws/httpd-2.0/srclib/apr/include/*.h > export_vars.h
awk -f /Users/fielding/ws/httpd-2.0/srclib/apr/build/make_exports.awk /Users/fielding/ws/httpd-2.0/srclib/apr/include/*.h > exports.c
cc -E -DHAVE_CONFIG_H -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -no-cpp-precomp -I./include -I../include exports.c | grep "ap_hack_" | sed -e 's/^.*[)]\(.*\);$/\1/' >> apr.exp
cc -E -DHAVE_CONFIG_H -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -no-cpp-precomp -I./include -I../include export_vars.h | sed -e 's/^\#[^!]*//' | sed -e '/^$/d' >> apr.exp
export_vars.h:1: undefined type, found `apr_month_snames'
export_vars.h:2: illegal external declaration, missing `;' after `apr_day_snames'
cpp-precomp: warning: errors during smart preprocessing, retrying in basic mode
...
...[seems to be okay]
...
This is what apr_exports.h looks like: apr_month_snames apr_day_snames
which obviously isn't a valid include file.
....Roy
