Re: [libXau] cannot compile libXau-0.1.1 on aix: wrong compiler option '-include'
Daniel Stone <[email protected]> Thu, 25 Mar 2004 18:21:19 -0800
| Newsgroups | gmane.comp.freedesktop.xlibs.general |
|---|---|
| Message-ID | <[email protected]> |
--===============0456880800==
Content-Type: multipart/signed; micalg=pgp-sha1;
protocol="application/pgp-signature"; boundary="/TUrtqMIkCP4YtJm"
Content-Disposition: inline
--/TUrtqMIkCP4YtJm
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
On Thu, Mar 25, 2004 at 08:36:48AM -0800, Keith Packard wrote:
> Around 10 o'clock on Mar 25, =3D?ISO-8859-1?Q?Jos=3DE9?=3D AUGUSTE-ETIENN=
E wrote:
> > When attempting to build libXau-0.1.1 on aix 4.3.1 with IBM/ANSI-C
> > compiler VAC 5.0.7,
>=20
> I was afraid of that. The fix is to insert=20
>=20
> #ifdef HAVE_CONFIG_H
> #include <config.h>
> #endif
>=20
> at the top of each source file and remove the -include 'config.h' command=
=20
> line option.
>=20
> That's what I did in the X server using the attached script.
>=20
> -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.
--=20
Daniel Stone <[email protected]=
=2Eorg>
freedesktop.org: powering your desktop http://www.freedeskto=
p.org
--/TUrtqMIkCP4YtJm
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)
iD8DBQFAY5OfcPClnTztfv0RAvZTAKCJl9xB7shtugLFxBPNt5Y/GhRSXgCgiHsX
1A+jyZCPQW3Qtx3QfofVCsQ=
=FsdS
-----END PGP SIGNATURE-----
--/TUrtqMIkCP4YtJm--
--===============0456880800==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
xlibs mailing list
[email protected]
http://freedesktop.org/mailman/listinfo/xlibs
--===============0456880800==--