#25191: openvrml +js_spidermonkey needs -I${prefix}/include/js -----------------------------------+---------------------------------------- Reporter: braden@… | Owner: raphael@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 1.9.0 Resolution: fixed | Keywords: Port: openvrml | -----------------------------------+---------------------------------------- Changes (by raphael@…): * status: new => closed * resolution: => fixed Comment: Replying to [ticket:25191 braden@…]:
Conceivably, `JS_CFLAGS` could be used for this instead. However, note that if `JS_CFLAGS` is '''not''' set, `configure` will set it to "`-DXP_UNIX -DJS_THREADSAFE`".
Here on Mac OS X 10.6.3 on an Intel Core Duo {{{JS_CFLAGS}}} is not set. If I add {{{-I${prefix}/include/js}}} to {{{CPPFLAGS}}} configure fails with the following error in {{{config.log}}}: {{{ configure:19380: checking jsapi.h usability configure:19380: /usr/bin/gcc-4.2 -c -O2 -arch i386 -I/opt/local/include -I/opt/local/include/js conftest.c >&5 In file included from /opt/local/include/js/jspubtd.h:45, from /opt/local/include/js/jsapi.h:47, from conftest.c:61: /opt/local/include/js/jstypes.h:248:6: error: #error "Must define one of XP_BEOS, XP_OS2, XP_WIN or XP_UNIX" }}} Adding {{{JS_CFLAGS="-DXP_UNIX -DJS_THREADSAFE -I${prefix}/include/js"}}} to the configure environment works for me. Fixed in r68681. -- Ticket URL: <http://trac.macports.org/ticket/25191#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS