AC_CHECK_HEADERS, preprocessor call and Solaris

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all,

I am porting my rsyslog project to the Solaris Sunstudio compiler (no
fun, I know...).

I have a problem with AC_CHECK_HEADERS. When it calls the
preprocessor, it ignores CFLAGS. However, the Sunstudio compiler needs
-std=c99 even when the preprocessor is called and if it is missing,
things do not work out.

I know I can use the optional forth argument to skip the preprocessor
call, but this does not sound like a really clean solution (more kind
of a work-around). I am searching for a way to make autoconf call the
preprocessor with a set of flags I can specify. Is this possible?

For your reference, here is a failed build:

http://build.rsyslog.com:8010/builders/rsyslog%20solaris11x64%20rsyslog/builds/426/steps/shell_3/logs/config.log

A problem line is
""/usr/include/sys/feature_tests.h", line 358: #error: "Compiler or
options invalid; UNIX 03 and POSIX.1-2001 applications require the use
of c99""

Searching for "Compiler or options invalid" brings up the details.
There are multiple instances.

TIA,
Rainer

_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
https://lists.gnu.org/mailman/listinfo/autoconf



[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux