Re: [libXau] cannot compile libXau-0.1.1 on aix: wrong compiler option '-include'
Keith Packard <[email protected]> Thu, 25 Mar 2004 08:36:48 -0800
| Newsgroups | gmane.comp.freedesktop.xlibs.general |
|---|---|
| Message-ID | <[email protected]> |
--===============0370148524== Content-Type: multipart/signed; boundary="==_Exmh_-750079744P"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit --==_Exmh_-750079744P Content-Type: multipart/mixed ; boundary="==_Exmh_-7500954640" This is a multipart MIME message. --==_Exmh_-7500954640 Content-Type: text/plain; charset=us-ascii 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 --==_Exmh_-7500954640 Content-Type: text/plain ; name="addconfig"; charset=us-ascii Content-Description: addconfig Content-Disposition: attachment; filename="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 fi done --==_Exmh_-7500954640-- --==_Exmh_-750079744P Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) Comment: Exmh version 2.3.1 11/28/2001 iD8DBQFAYwqgQp8BWwlsTdMRAvbwAJ49lNQGjglXZsaTMpJs26+xkJNkXQCeLEky lWOqdOeykZI7X4dAaHaxkeM= =hZJB -----END PGP SIGNATURE----- --==_Exmh_-750079744P-- --===============0370148524== 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 --===============0370148524==--