Do a configure test whether or not to include -I/usr/local/include in
wx-config --c*flags instead of never doing it for gcc. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25817 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
13
configure.in
13
configure.in
@@ -1347,6 +1347,18 @@ AC_PROG_CXX
|
||||
|
||||
AC_LANG_RESTORE
|
||||
|
||||
dnl check if compiler includes /usr/local/include in
|
||||
dnl default include files search path.
|
||||
AC_MSG_CHECKING([for /usr/local/include in default include path])
|
||||
GCC_SEARCHES_USR_LOCAL_INCLUDE="no"
|
||||
if test "$GCC" = "yes" ; then
|
||||
echo | gcc -v -x c++ -E - 2>&1 | sed -n '/^#include </,$p' | \
|
||||
sed -n '1,/End of search list\./p' | \
|
||||
grep '^ */usr/local/include$' 2>&1 /dev/null \
|
||||
&& GCC_SEARCHES_USR_LOCAL_INCLUDE="yes"
|
||||
fi
|
||||
AC_MSG_RESULT([$GCC_SEARCHES_USR_LOCAL_INCLUDE])
|
||||
|
||||
dnl ranlib command
|
||||
dnl defines RANLIB with the appropriate command
|
||||
AC_PROG_RANLIB
|
||||
@@ -6021,6 +6033,7 @@ AC_SUBST(MACRESWXCONFIG)
|
||||
|
||||
dnl other tools
|
||||
AC_SUBST(GCC)
|
||||
AC_SUBST(GCC_SEARCHES_USR_LOCAL_INCLUDE)
|
||||
AC_SUBST(DLLTOOL)
|
||||
AC_SUBST(AS)
|
||||
AC_SUBST(NM)
|
||||
|
Reference in New Issue
Block a user