cleanup: don't pass builtin libs includes to CPPFLAGS, it's already taken care of by the {b,m}makefile

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24667 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík 2003-11-26 11:06:17 +00:00
parent 85ebb95c27
commit eea650d869
2 changed files with 4540 additions and 1863 deletions

6365
configure vendored

File diff suppressed because it is too large Load Diff

View File

@ -1874,7 +1874,6 @@ dnl ------------------------------------------------------------------------
dnl Check for regex libraries dnl Check for regex libraries
dnl ------------------------------------------------------------------------ dnl ------------------------------------------------------------------------
REGEX_INCLUDE=
if test "$wxUSE_REGEX" != "no"; then if test "$wxUSE_REGEX" != "no"; then
AC_DEFINE(wxUSE_REGEX) AC_DEFINE(wxUSE_REGEX)
@ -1895,17 +1894,12 @@ if test "$wxUSE_REGEX" != "no"; then
wxUSE_REGEX=sys wxUSE_REGEX=sys
fi fi
fi fi
if test "$wxUSE_REGEX" = "builtin" ; then
REGEX_INCLUDE="-I\${top_srcdir}/src/regex"
fi
fi fi
dnl ------------------------------------------------------------------------ dnl ------------------------------------------------------------------------
dnl Check for zlib compression library dnl Check for zlib compression library
dnl ------------------------------------------------------------------------ dnl ------------------------------------------------------------------------
ZLIB_INCLUDE=
ZLIB_LINK= ZLIB_LINK=
if test "$wxUSE_ZLIB" != "no" ; then if test "$wxUSE_ZLIB" != "no" ; then
AC_DEFINE(wxUSE_ZLIB) AC_DEFINE(wxUSE_ZLIB)
@ -1973,17 +1967,12 @@ if test "$wxUSE_ZLIB" != "no" ; then
wxUSE_ZLIB=sys wxUSE_ZLIB=sys
fi fi
fi fi
if test "$wxUSE_ZLIB" = "builtin" ; then
ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
fi
fi fi
dnl ------------------------------------------------------------------------ dnl ------------------------------------------------------------------------
dnl Check for png library dnl Check for png library
dnl ------------------------------------------------------------------------ dnl ------------------------------------------------------------------------
PNG_INCLUDE=
PNG_LINK= PNG_LINK=
if test "$wxUSE_LIBPNG" != "no" ; then if test "$wxUSE_LIBPNG" != "no" ; then
AC_DEFINE(wxUSE_LIBPNG) AC_DEFINE(wxUSE_LIBPNG)
@ -2048,10 +2037,6 @@ if test "$wxUSE_LIBPNG" != "no" ; then
fi fi
fi fi
if test "$wxUSE_LIBPNG" = "builtin" ; then
PNG_INCLUDE="-I\${top_srcdir}/src/png"
fi
SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png" SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
fi fi
@ -2059,7 +2044,6 @@ dnl ------------------------------------------------------------------------
dnl Check for jpeg library dnl Check for jpeg library
dnl ------------------------------------------------------------------------ dnl ------------------------------------------------------------------------
JPEG_INCLUDE=
JPEG_LINK= JPEG_LINK=
if test "$wxUSE_LIBJPEG" != "no" ; then if test "$wxUSE_LIBJPEG" != "no" ; then
AC_DEFINE(wxUSE_LIBJPEG) AC_DEFINE(wxUSE_LIBJPEG)
@ -2108,17 +2092,12 @@ if test "$wxUSE_LIBJPEG" != "no" ; then
fi fi
fi fi
fi fi
if test "$wxUSE_LIBJPEG" = "builtin" ; then
JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
fi
fi fi
dnl ------------------------------------------------------------------------ dnl ------------------------------------------------------------------------
dnl Check for tiff library dnl Check for tiff library
dnl ------------------------------------------------------------------------ dnl ------------------------------------------------------------------------
TIFF_INCLUDE=
TIFF_LINK= TIFF_LINK=
TIFF_PREREQ_LINKS=-lm TIFF_PREREQ_LINKS=-lm
if test "$wxUSE_LIBTIFF" != "no" ; then if test "$wxUSE_LIBTIFF" != "no" ; then
@ -2154,10 +2133,6 @@ if test "$wxUSE_LIBTIFF" != "no" ; then
wxUSE_LIBTIFF=sys wxUSE_LIBTIFF=sys
fi fi
fi fi
if test "$wxUSE_LIBTIFF" = "builtin" ; then
TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
fi
fi fi
dnl ------------------------------------------------------------------------ dnl ------------------------------------------------------------------------
@ -5628,15 +5603,12 @@ fi
dnl all -I options we must pass to the compiler dnl all -I options we must pass to the compiler
dnl dnl
dnl note that the order is somewhat important, in particular the ZLIB_INCLUDE dnl note that the order is somewhat important: wxWindows headers should
dnl and other stuff for the built in libraries should come first to avoid dnl come first and the one with setup.h should be before $(top_srcdir)/include
dnl including the system headers with the same name (it is particularly dnl in case the latter contains setup.h used by non-autoconf makefiles (e.g.
dnl important for zlib because XFree 4.2.0 has its own, horribly old and dnl CodeWarrior):
dnl incompatible, zlib.h) and the wxWindows headers should come first anyhow
INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_NAME} \ INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_NAME} \
-I\${top_srcdir}/include \ -I\${top_srcdir}/include $TOOLKIT_INCLUDE"
$REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \
$TOOLKIT_INCLUDE"
dnl C/C++ compiler options used to compile wxWindows dnl C/C++ compiler options used to compile wxWindows
if test "$GXX" = yes ; then if test "$GXX" = yes ; then