Changeset 102624 in webkit


Ignore:
Timestamp:
Dec 12, 2011 2:33:45 PM (12 years ago)
Author:
commit-queue@webkit.org
Message:

Simplify autotools configure.ac
https://bugs.webkit.org/show_bug.cgi?id=74312

Patch by Andy Wingo <wingo@igalia.com> on 2011-12-12
Reviewed by Martin Robinson.

.:

  • configure.ac: Don't AC_DEFINE so many things. Many of the

defines were stale (ENABLE_YARR, ENABLE_JIT_OPTIMIZE_CALL, etc),
and with Platform.h we don't need to make an explicit decision
here. If the user does pass --enable-jit or --disable-jit, effect
that choice via setting JSC_CPPFLAGS.

Source/JavaScriptCore:

  • GNUmakefile.am: Add JSC_CPPFLAGS to javascriptcore_cppflags.
Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/ChangeLog

    r102582 r102624  
     12011-12-12  Andy Wingo  <wingo@igalia.com>
     2
     3        Simplify autotools configure.ac
     4        https://bugs.webkit.org/show_bug.cgi?id=74312
     5
     6        Reviewed by Martin Robinson.
     7
     8        * configure.ac: Don't AC_DEFINE so many things.  Many of the
     9        defines were stale (ENABLE_YARR, ENABLE_JIT_OPTIMIZE_CALL, etc),
     10        and with Platform.h we don't need to make an explicit decision
     11        here.  If the user does pass --enable-jit or --disable-jit, effect
     12        that choice via setting JSC_CPPFLAGS.
     13
    1142011-12-12  Alexis Menard  <alexis.menard@openbossa.org>
    215
  • trunk/Source/JavaScriptCore/ChangeLog

    r102623 r102624  
     12011-12-12  Andy Wingo  <wingo@igalia.com>
     2
     3        Simplify autotools configure.ac
     4        https://bugs.webkit.org/show_bug.cgi?id=74312
     5
     6        Reviewed by Martin Robinson.
     7
     8        * GNUmakefile.am: Add JSC_CPPFLAGS to javascriptcore_cppflags.
     9
    1102011-12-12  Filip Pizlo  <fpizlo@apple.com>
    211
  • trunk/Source/JavaScriptCore/GNUmakefile.am

    r101242 r102624  
    4343
    4444javascriptcore_cppflags += \
     45        $(JSC_CPPFLAGS) \
    4546        -I$(srcdir)/Source \
    4647        -I$(srcdir)/Source/JavaScriptCore \
  • trunk/configure.ac

    r102448 r102624  
    816816AC_MSG_RESULT([$with_jsengine])
    817817
    818 if test "$with_jsengine" = "jsc"; then
    819     AC_MSG_CHECKING([whether to enable JIT compilation])
    820     AC_ARG_ENABLE([jit],
    821                   AC_HELP_STRING([--enable-jit],
    822                                  [Enable JIT compilation default=yes]),
    823                   [],[enable_jit="yes"])
    824     if test "$enable_jit" = "yes"; then
    825         case "$host_cpu" in
    826             arm*)
    827                 AC_DEFINE([ENABLE_JIT], [1], [Define to enable JIT])
    828                 AC_DEFINE([ENABLE_YARR], [1], [Define to enable YARR])
    829                 AC_DEFINE([ENABLE_YARR_JIT], [1], [Define to enable YARR JIT])
    830             ;;
    831             i*86|x86_64)
    832                 AC_DEFINE([ENABLE_JIT], [1], [Define to enable JIT])
    833                 AC_DEFINE([ENABLE_YARR], [1], [Define to enable YARR])
    834                 AC_DEFINE([ENABLE_YARR_JIT], [1], [Define to enable YARR JIT])
    835                 AC_DEFINE([ENABLE_JIT_OPTIMIZE_CALL], [1], [Define to enable optimizing calls])
    836                 AC_DEFINE([ENABLE_JIT_OPTIMIZE_PROPERTY_ACCESS], [1], [Define to enable optimized property access])
    837                 AC_DEFINE([ENABLE_JIT_OPTIMIZE_ARITHMETIC], [1], [Define to enable optimized arithmetic])
    838                 case "$host_cpu" in
    839                     i*86)
    840                         AC_DEFINE([WTF_USE_JIT_STUB_ARGUMENT_VA_LIST], [1], [Use stub va_list])
    841                     ;;
    842                     x86_64)
    843                         AC_DEFINE([WTF_USE_JIT_STUB_ARGUMENT_REGISTER], [1], [Use stub register])
    844                         AC_DEFINE([WTF_USE_ALTERNATE_JSIMMEDIATE], [1], [Use alternate JSImmediate])
    845                     ;;
    846                 esac
    847             ;;
    848             sh4)
    849                 AC_DEFINE([ENABLE_YARR], [1], [Define to enable YARR])
    850                 AC_DEFINE([ENABLE_YARR_JIT], [1], [Define to enable YARR JIT])
    851                 AC_DEFINE([ENABLE_JIT], [1], [Define to enable JIT])
    852                 AC_DEFINE([WTF_USE_JIT_STUB_ARGUMENT_REGISTER], [1], [Use stub register])
    853             ;;
    854             *)
    855                 enable_jit="no (CPU '$host_cpu' not supported)"
    856             ;;
    857         esac
    858     else
    859             AC_DEFINE([ENABLE_JIT], [0], [Define to enable JIT])
    860     fi
    861 else
    862     AC_DEFINE([ENABLE_JIT], [0], [Define to enable JIT])
    863     enable_jit="no"
    864 fi
    865 
     818AC_MSG_CHECKING([whether to enable JIT compilation])
     819AC_ARG_ENABLE(jit,
     820              AS_HELP_STRING([--enable-jit],
     821                             [Enable JIT compilation (default: autodetect)]))
     822case "$enable_jit" in
     823  yes) JSC_CPPFLAGS="-DENABLE_JIT=1" ;;
     824  no) JSC_CPPFLAGS="-DENABLE_JIT=0" ;;
     825  *) enable_jit="autodetect" ;;
     826esac
     827AC_SUBST(JSC_CPPFLAGS)
    866828AC_MSG_RESULT([$enable_jit])
    867829
Note: See TracChangeset for help on using the changeset viewer.