Ticket #34560: patch-config.m4.diff

File patch-config.m4.diff, 726 bytes (added by ryandesign (Ryan Carsten Schmidt), 12 years ago)
  • config.m4

    old new  
    3131
    3232if test "$PHP_SPIDERMONKEY" != "no"; then
    3333  for i in $PHP_SPIDERMONKEY /usr/local /usr; do
    34     for j in js mozjs mozjs185; do
     34    for j in mozjs185 mozjs js; do
    3535      test -f $i/include/$j/jsapi.h && SPIDERMONKEY_BASEDIR=$i && SPIDERMONKEY_INCDIR=$i/include/$j && break
    3636    done
    3737    # test for the libname independantely
    38     for j in js mozjs mozjs185; do
    39       test -f $i/lib/lib$j.so && SPIDERMONKEY_LIBNAME=$j && break
     38    for j in mozjs185 mozjs js; do
     39      test -f $i/lib/lib$j.@EXT@ && SPIDERMONKEY_LIBNAME=$j && break
    4040    done
    4141    test -f $i/include/$j/jsapi.h && break
    4242  done