[libXau] cannot compile libXau-0.1.1 on aix: wrong compiler option '-include'

Daniel Stone daniel at freedesktop.org
Thu Mar 25 18:21:19 PST 2004


On Thu, Mar 25, 2004 at 08:36:48AM -0800, Keith Packard wrote:
> Around 10 o'clock on Mar 25, =?ISO-8859-1?Q?Jos=E9?= AUGUSTE-ETIENNE wrote:
> > When attempting to build libXau-0.1.1 on aix 4.3.1 with IBM/ANSI-C
> > compiler VAC 5.0.7,
> 
> I was afraid of that.  The fix is to insert 
> 
> #ifdef HAVE_CONFIG_H
> #include <config.h>
> #endif
> 
> at the top of each source file and remove the -include 'config.h' command 
> line option.
> 
> That's what I did in the X server using the attached script.
> 
> -keith

Content-Description: addconfig
> #!/bin/sh
> for i in "$@"; do
> 	if grep -q '<config.h>' $i; then
> 		echo $i already has config.h
> 	else
> 		chmod +w $i
> 		ed $i << EOF
                ^^
> /^#/
> i
> #ifdef HAVE_CONFIG_H
> #include <config.h>
> #endif
> .
> w
> q
> EOF

Please seek professional help.

-- 
Daniel Stone                                            <daniel at freedesktop.org>
freedesktop.org: powering your desktop                http://www.freedesktop.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://freedesktop.org/pipermail/xlibs/attachments/20040325/103a957e/attachment.pgp


More information about the xlibs mailing list