Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old December 29th, 2006, 01:35 AM
sndive@gmail.com
Guest
 
Posts: n/a
Default Minor problem with configure (2.4.4)

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?

  #2  
Old December 29th, 2006, 06:15 PM
MRAB
Guest
 
Posts: n/a
Default Re: Minor problem with configure (2.4.4)


sndive@gmail.com wrote:
Quote:
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.

  #3  
Old December 30th, 2006, 12:55 AM
=?ISO-8859-1?Q?=22Martin_v=2E_L=F6wis=22?=
Guest
 
Posts: n/a
Default Re: Minor problem with configure (2.4.4)

sndive@gmail.com schrieb:
Quote:
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
 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles