[Top][All Lists]

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

Possible patch for autoconf?

From: Daniel Carroll
Subject: Possible patch for autoconf?
Date: Fri, 20 Apr 2001 12:40:47 -0600
User-agent: Mutt/1.2i


    I have a somewhat unusal C compiler and version
of unix that is giving me problems with a configure
script (using Autoconf 2.13).

The result is that configure incorrectly decides that
the <limits.h> header doesn't exist.

There are two related reasons for this problem:
  a) The C compiler likes to print a copyright message on 
       stderr every time that it is executed.  It looks
       something like (qwe.c is an empty file):

           address@hidden:~/t/newac $ cc -E qwe.c
           NCR High Performance C Compiler R3.0c 
           (c) Copyright 1994-97, NCR Corporation
           (c) Copyright 1987-97, MetaWare Incorporated

           #pragma warning_level 3

       The problem with this is that the configure script
       generated by autoconf thinks that this means that
       using 'cc -E' isn't a good way to get at the C preprocessor,
       So configure defaults to using /lib/cpp instead.

  b) The second reason is that /lib/cpp chokes on a preprocessor
       construct in <limits.h> that 'cc -E' will accept.

       That construct is:

           #if #machine(i386)

Getting GCC to compile on this platform is not something that I
have succeeded at yet, so switching to it really isn't an option
at this point.

Now, for what it's worth, there are ways to suppress this copyright
message, but this version of UNIX ships with the message enabled by
default.  And it's somewhat of a hassle to figure out where to tweak
the system to globally disable this message.

I'm not sure how you would like to deal with this (since submitting
patches isn't something that I've done before), but the attached
patch fixes the problem on my system.


        - Dan (address@hidden - Daniel Carroll - Mesa State College)

Attachment: different
Description: Text document

reply via email to

[Prev in Thread] Current Thread [Next in Thread]