summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorWilfredo Sanchez <wsanchez@php.net>2001-04-03 23:30:49 +0000
committerWilfredo Sanchez <wsanchez@php.net>2001-04-03 23:30:49 +0000
commitcb71c4c2d0553cc2a93c5ddba873e150b6be6fa5 (patch)
tree00f22a4527c10c2e42f24fef6c86599e28ca16ec /ext
parenta71b0e1bfb95435c56cb2c090f5c19707cf309ac (diff)
downloadphp-git-cb71c4c2d0553cc2a93c5ddba873e150b6be6fa5.tar.gz
Separate CPPFLAGS from CFLAGS.
Diffstat (limited to 'ext')
-rw-r--r--ext/bcmath/libbcmath/src/Makefile.am3
-rw-r--r--ext/informix/config.m42
-rw-r--r--ext/msql/config.m46
-rw-r--r--ext/odbc/config.m42
4 files changed, 7 insertions, 6 deletions
diff --git a/ext/bcmath/libbcmath/src/Makefile.am b/ext/bcmath/libbcmath/src/Makefile.am
index a0928a2264..fab37d785e 100644
--- a/ext/bcmath/libbcmath/src/Makefile.am
+++ b/ext/bcmath/libbcmath/src/Makefile.am
@@ -11,7 +11,8 @@ libbcmath_a_SOURCES= add.c compare.c debug.c div.c divmod.c doaddsub.c \
INCLUDES = -I$(srcdir) -I..
-CFLAGS = @CFLAGS@ $(INCLUDES) -Wall
+CFLAGS = @CFLAGS@
+CPPFLAGS = $(INCLUDES) -Wall
MAINTAINERCLEANFILES= Makefile.in $(libbcmath_a_SOURCES) private.h bcmath.h
diff --git a/ext/informix/config.m4 b/ext/informix/config.m4
index 537dd451be..dfc958d1dd 100644
--- a/ext/informix/config.m4
+++ b/ext/informix/config.m4
@@ -49,7 +49,7 @@ WARNING: You specified Informix base install directory that is different
dnl Allow override to use static and/or threaded libs
:
fi
- CFLAGS="$CFLAGS $IFX_INCLUDE"
+ CPPFLAGS="$CPPFLAGS $IFX_INCLUDE"
LDFLAGS="$LDFLAGS $IFX_LFLAGS"
case "$host_alias" in
diff --git a/ext/msql/config.m4 b/ext/msql/config.m4
index a2b046d404..3241b89399 100644
--- a/ext/msql/config.m4
+++ b/ext/msql/config.m4
@@ -5,8 +5,8 @@ dnl Test mSQL version by checking if msql.h has "IDX_TYPE" defined.
dnl
AC_DEFUN(PHP_MSQL_VERSION,[
AC_MSG_CHECKING([mSQL version])
- ac_php_oldcflags=$CFLAGS
- CFLAGS="$INCLUDES $CFLAGS"
+ ac_php_oldcppflags=$CPPFLAGS
+ CPPFLAGS="$INCLUDES $CPPFLAGS"
AC_TRY_COMPILE([#include <sys/types.h>
#include "msql.h"],[int i = IDX_TYPE],[
AC_DEFINE(MSQL1,0,[ ])
@@ -15,7 +15,7 @@ AC_DEFUN(PHP_MSQL_VERSION,[
AC_DEFINE(MSQL1,1,[ ])
MSQL_VERSION="1.0"
])
- CFLAGS=$ac_php_oldcflags
+ CPPFLAGS=$ac_php_oldcppflags
AC_MSG_RESULT($MSQL_VERSION)
])
diff --git a/ext/odbc/config.m4 b/ext/odbc/config.m4
index 348527f8ef..43ca281055 100644
--- a/ext/odbc/config.m4
+++ b/ext/odbc/config.m4
@@ -271,7 +271,7 @@ AC_ARG_WITH(custom-odbc,
E.g., you should define following for
Sybase SQL Anywhere 5.5.00 on QNX, prior to
run configure script:
- CFLAGS=\"-DODBC_QNX -DSQLANY_BUG\"
+ CPPFLAGS=\"-DODBC_QNX -DSQLANY_BUG\"
LDFLAGS=-lunix
CUSTOM_ODBC_LIBS=\"-ldblib -lodbc\".],
[