Browse Source

m4 compatibility for solaris

git-svn-id: svn://svn.lighttpd.net/xcache/trunk@292 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
1.2
Xuefer 15 years ago
parent
commit
0356300ba7
  1. 4
      config.m4
  2. 4
      processor/main.m4

4
config.m4

@ -76,6 +76,10 @@ if test "$PHP_XCACHE" != "no"; then
AC_PATH_PROGS([M4], [m4])
if echo | "$M4" -E > /dev/null 2>&1 ; then
M4="$M4 -E"
fi
dnl fix for solaris m4: size of the push-back and argument
if echo | "$M4" -B 102400 > /dev/null 2>&1 ; then
M4="$M4 -B 102400"
fi
PHP_SUBST([M4])
AC_PATH_PROGS([GREP], [grep])

4
processor/main.m4

@ -12,6 +12,10 @@ define(`MAKE_MACRONAME', `translit(`$1', ` ():
define(`ONCE', `ifdef(MAKE_MACRONAME(`ONCE $1'), `', `define(MAKE_MACRONAME(`ONCE $1'))$1')')
define(`m4_errprint', `ONCE(`errprint(`$1
')')')
ifdef(`len', `
define(`m4_len', defn(`len'))
undefine(`len')
')
define(`ZEND_STRS', `($1), (sizeof($1))')
define(`ZEND_STRL', `($1), (sizeof($1) - 1)')
dnl ============

Loading…
Cancel
Save