Re: [0.13 PATCH] JS: Use pkg-config mozjs185, not hardcoded directories
أحمد المحمودي <[email protected]> Tue, 26 Apr 2011 15:06:38 +0200
| Newsgroups | gmane.comp.web.links |
|---|---|
| Message-ID | <[email protected]> |
--===============0970808985== Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="LwW0XdcUbUexiWVK" Content-Disposition: inline --LwW0XdcUbUexiWVK Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Apr 23, 2011 at 11:58:26AM +0300, Kalle Olavi Niemitalo wrote: > + # In pkg-config 0.25, pkg-config --exists mozjs185 returns 0 (success) > + # even if mozjs185 depends on nspr, which has not been installed. > + # However, pkg-config --cflags mozjs185 returns 1 then. > + if pkg-config --cflags --libs mozjs185 > /dev/null 2>&AS_MESSAGE_LOG_FD= ; then > + SPIDERMONKEY_LIBS=3D"$(pkg-config --libs mozjs185)" > + SPIDERMONKEY_CFLAGS=3D"$(pkg-config --cflags mozjs185)" ---end quoted text--- Could this be changed to a for loop that checks for either mozjs185 or=20 mozilla-js ? In Debian, mozjs is installed as part of iceweasel, ie.=20 firefox, and that installs a mozilla-js.pc instead of mozjs185.pc --=20 =E2=80=8E=D8=A3=D8=AD=D9=85=D8=AF =D8=A7=D9=84=D9=85=D8=AD=D9=85=D9=88=D8= =AF=D9=8A (Ahmed El-Mahmoudy) Digital design engineer GPG KeyID: 0xEDDDA1B7 GPG Fingerprint: 8206 A196 2084 7E6D 0DF8 B176 BC19 6A94 EDDD A1B7 --LwW0XdcUbUexiWVK Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iQEcBAEBCAAGBQJNtsNeAAoJELwZapTt3aG37nsH/iVVjoVnXJe68K0OKuDp/yCB gsz9U+kn4ZiZOr11kQ2Wqpu65fxDLQD+3UbtLOR5Q8AW0rBoQIsZC3EghCd36Nfi wI+AVBkwp7CHyPDt2VPMR9++3BIcaA5YGU0xV5jHWpolC30ZOKseUnxiDf54Vfkv 2RIynkuKH4ZNeSex2PcdT26sBCRLJNgyVY0b1FIWHDJ3Vy21Za5H+q8anZQmRQ7n IKk4eu83+5WaFwFMoAkDn+W8x98ryw5gykRfQsUaT7rXVR0Q4GpXudjG+Ch/WkWW ErCLyYlzR4jZL+peOSE1ZAqquqaERtCnOxSbHF3fd+WMu9DcfZcO2znSSIZpYoM= =9Fwo -----END PGP SIGNATURE----- --LwW0XdcUbUexiWVK-- --===============0970808985== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ elinks-dev mailing list [email protected] http://linuxfromscratch.org/mailman/listinfo/elinks-dev --===============0970808985==--