abs_srcdir=`(cd $srcdir; pwd)`
abs_builddir=`pwd`
-php_abs_top_srcdir=`(cd $srcdir; pwd)`
-php_abs_top_builddir=`pwd`
+php_abs_top_srcdir=$abs_srcdir
+php_abs_top_builddir=$abs_builddir
dnl Because ``make install'' is often performed by the superuser,
dnl we create the libs subdirectory as the user who configures PHP.
CXXFLAGS_CLEAN=$CXXFLAGS
CFLAGS_CLEAN=$CFLAGS
-CFLAGS="$CFLAGS $standard_libtool_flag"
+CFLAGS="\$(CFLAGS_CLEAN) $standard_libtool_flag"
INLINE_CFLAGS="$INLINE_CFLAGS $standard_libtool_flag"
CXXFLAGS="$CXXFLAGS $standard_libtool_flag"