Fix KDE_CHECK_HEADER in the Autotools admin/ directory

git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kde-common/admin@1236345 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
v3.5.13-sru
tpearson 14 years ago
parent a7aeac7f2d
commit b8493052fa

@ -2364,6 +2364,11 @@ LIBS="$LIBS $X_EXTRA_LIBS"
if test "$GXX" = "yes"; then
CXXFLAGS="$CXXFLAGS -pedantic-errors"
fi
if test -z "$qt_includes"; then
CXXFLAGS="$CXXFLAGS"
else
CXXFLAGS="$CXXFLAGS -I$qt_includes"
fi
AC_TRY_COMPILE([
$2
],
@ -5298,7 +5303,7 @@ AC_DEFINE_UNQUOTED(KDEMAXPATHLEN,$ac_cv_maxpathlen, [Define a safe value for MAX
AC_DEFUN([KDE_CHECK_HEADER],
[
kde_safe_cppflags=$CPPFLAGS
CPPFLAGS="$CPPFLAGS $all_includes -I/usr/include/tqt"
CPPFLAGS="$CPPFLAGS $all_includes -I$kde_incdir/kde -I/usr/include/tqt"
AC_LANG_SAVE
AC_LANG_CPLUSPLUS
AC_CHECK_HEADER([$1], [$2], [$3], [$4])
@ -5311,7 +5316,7 @@ AC_DEFUN([KDE_CHECK_HEADERS],
AH_CHECK_HEADERS([$1])
AC_LANG_SAVE
kde_safe_cppflags=$CPPFLAGS
CPPFLAGS="$CPPFLAGS $all_includes -I/usr/include/tqt"
CPPFLAGS="$CPPFLAGS $all_includes -I$kde_incdir/kde -I/usr/include/tqt"
AC_LANG_CPLUSPLUS
AC_CHECK_HEADERS([$1], [$2], [$3], [$4])
CPPFLAGS=$kde_safe_cppflags

Loading…
Cancel
Save