Changeset 8 in svn for trunk/config.m4


Ignore:
Timestamp:
2006-05-13T05:19:43+02:00 (9 years ago)
Author:
Xuefer
Message:

make opcode_spec_def.h optional

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/config.m4

    r1 r8  
    88  if test "$PHP_$3" = "yes"; then
    99    xcache_sources="$xcache_sources $1.c"
     10    HAVE_$3=1
    1011    AC_DEFINE([HAVE_$3], 1, [Define for XCACHE: $4])
     12  else
     13    HAVE_$3=
    1114  fi
    1215])dnl
     
    5760  PHP_SUBST([XCACHE_INDENT])
    5861
     62  dnl $ac_srcdir etc require PHP_NEW_EXTENSION
    5963  XCACHE_PROC_SOURCES=`ls $ac_srcdir/processor/*.m4`
    6064  PHP_SUBST([XCACHE_PROC_SOURCES])
     65
     66  AC_MSG_CHECKING(if you have opcode_spec_def.h for xcache)
     67  if test -e "$ac_srcdir/opcode_spec_def.h" ; then
     68    AC_DEFINE([HAVE_XCACHE_OPCODE_SPEC_DEF], 1, [Define if you have opcode_spec_def.h for xcache])
     69    AC_MSG_RESULT(yes)
     70  else
     71    dnl check for features depend on opcode_spec_def.h
     72    AC_MSG_RESULT(no)
     73    define([ERROR], [
     74      AC_MSG_ERROR([cannot build with $1, $ac_srcdir/opcode_spec_def.h required])
     75    ])
     76    if test "$HAVE_XCACHE_DISASSEMBLER" = "1" ; then
     77      ERROR(disassembler)
     78    fi
     79    undefine([ERROR])
     80  fi
    6181fi
Note: See TracChangeset for help on using the changeset viewer.