There is a reason why its using DX_CHECK_HEADERS  rather than
AC_CHECK_HEADERS that arose during the initial conversion to the auto
tools; exactly what, I don't recall - it could have arisen on any of quite
a few platforms.  It has something to do with how the preprocesor is
invoked.

Since the auto tools don't know about DX_CHECK_HEADERS, #undefs have to be
added explicitly into acconfig.h that correspond to the tested header files
have to be added to acconfig.h - eg. '#undef HAVE_SYS_SOCKET_H', if
sys/socket.h shows up in the DX_CHECK_HEADERS list.  autoheader then uses
acconfig.h to build dxconfig.h.in.

Unfortunately for AIX, autoheader passes very long lines into some system
utilities - sed, awk or something, and the AIX versions of these fails.
This causes some symbols, notably HAVE_SYS_SOCKET_H, to not appear in
dxconfig.h.

I have a version of acconfig.h that cases these long lines to be broken up,
and it works for AIX.  Since I have a lot of confidence that it won't break
anything else, I'll check it in. I'm not comfortable with the
AC_CHECK_HEADERS fix since (you'll find) there are a lot of other symbols
that are missing form dxconfig.h due to this problem.

Greg




"David L. Thompson" <[EMAIL PROTECTED]>@opendx.watson.ibm.com on 12/01/99
05:46:22 PM

Please respond to [email protected]

Sent by:  [EMAIL PROTECTED]


To:   [email protected]
cc:
Subject:  [opendx-dev] Why DX_CHECK_HEADERS



Greg or Peter,

I tried to compile the latest CVS on AIX 4.1 and found a little
problem. I had to add the AC_CHECK_HEADERS( sys/socket.h ). This
header is being checked in DX_CHECK_HEADERS; however when autoheader
runs, it doesn't create symbols in dxconfig.h.in for those headers.
Since AIX 4.1 needs HAVE_SYS_SOCKET_H defined then I will submit an
update with AC_CHECK_HEADERS( sys/socket.h ). Is there going to be
any more like this that you can think of?

David
.............................................................................

David L. Thompson                          The University of Montana
mailto:[EMAIL PROTECTED]                 Computer Science Department
http://www.cs.umt.edu/u/dthompsn           Missoula, MT  59812
                                            Work Phone : (406)257-8530


Reply via email to