Minor problem with configure (2.4.4)

S

sndive

configure expands
AC_DEFINE(_POSIX_C_SOURCE, 200112L, Define to activate features from
IEEE Stds 1003.1-2001)

to

#define _POSIX_C_SOURCE 200112L

that causes problems because _POSIX_C_SOURCE is defined by system
headers and I get hideous
warnings during compilation.

I tried to fix it by adding AC_UNDEFINE(_POSIX_C_SOURCE);
before AC_DEFINE but autoconf 2.59 won't take it:

configure.in:273: error: possibly undefined macro: AC_UNDEFINE
If this token and others are legitimate, please use
m4_pattern_allow.
See the Autoconf documentation.

Ideas?
 
M

MRAB

configure expands
AC_DEFINE(_POSIX_C_SOURCE, 200112L, Define to activate features from
IEEE Stds 1003.1-2001)

to

#define _POSIX_C_SOURCE 200112L

that causes problems because _POSIX_C_SOURCE is defined by system
headers and I get hideous
warnings during compilation.

I tried to fix it by adding AC_UNDEFINE(_POSIX_C_SOURCE);
before AC_DEFINE but autoconf 2.59 won't take it:

configure.in:273: error: possibly undefined macro: AC_UNDEFINE
If this token and others are legitimate, please use
m4_pattern_allow.
See the Autoconf documentation.

Ideas?

It looks like AC_DEFINE is #define'd but AC_UNDEFINE isn't.

Try:

#undef _POSIX_C_SOURCE

instead.
 
?

=?ISO-8859-1?Q?=22Martin_v=2E_L=F6wis=22?=

configure.in:273: error: possibly undefined macro: AC_UNDEFINE
If this token and others are legitimate, please use
m4_pattern_allow.
See the Autoconf documentation.

Ideas?

RTFM (autoconf documentation, in this case). There is no AC_UNDEFINE.

Regards,
Martin
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top