OK, once we figured out that the AIX include scheme needed a simple include,
and not the double-redirection that didn't work, ATHENA_INCLUDE started
working fine.
Now somebody made a '#define ATHENA_INCLUDE(a,b) SIMPLE_INCLUDE(a,b)',
which trips over the same AIX preprocessor bug that STARTED this whole
discussion.
To sum up:
Under AIX, '#define ATHENA_INCLUDE(a,b) <a/b>' works. Redirecting it
any deeper through multiple #defines doesn't work.
Yes, it's broken. Yes, there's a bug report open at IBM about it.
I've appended the fix that I used to work around this - it's Ugly And Wrong,
but got me a build...
/Valdis
*** lwlib/config.h.in.dist Mon Apr 3 16:16:37 2000
--- lwlib/config.h.in Mon Apr 3 16:19:16 2000
***************
*** 32,38 ****
--- 32,42 ----
/* The path to the Athena widgets - the usual value is `X11/Xaw' */
#undef ATHENA_H_PATH
#ifdef ATHENA_H_PATH
+ #if defined(_AIX) && !defined( __GNUC__)
+ # define ATHENA_INCLUDE(file) <ATHENA_H_PATH/file>
+ #else
# define ATHENA_INCLUDE(file) SMART_INCLUDE (ATHENA_H_PATH,file)
+ #endif
#else
# define ATHENA_INCLUDE(file) <file>
#endif
Show replies by date