-
-
if ${CFLAGS+:} false; then :
case " $CFLAGS " in
*" "*)
CY_EXECUTE=1
-
- for element in `$PKG_CONFIG --cflags $cy_webkit_pkg`; do
- haveit=
- for x in $CFLAGS; do
-
- acl_save_prefix="$prefix"
- prefix="$acl_final_prefix"
- acl_save_exec_prefix="$exec_prefix"
- exec_prefix="$acl_final_exec_prefix"
- eval x=\"$x\"
- exec_prefix="$acl_save_exec_prefix"
- prefix="$acl_save_prefix"
-
- if test "X$x" = "X$element"; then
- haveit=yes
- break
- fi
- done
- if test -z "$haveit"; then
- CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
- fi
- done
-
-
- for element in `$PKG_CONFIG --cflags $cy_webkit_pkg`; do
- haveit=
- for x in $CXXFLAGS; do
-
- acl_save_prefix="$prefix"
- prefix="$acl_final_prefix"
- acl_save_exec_prefix="$exec_prefix"
- exec_prefix="$acl_final_exec_prefix"
- eval x=\"$x\"
- exec_prefix="$acl_save_exec_prefix"
- prefix="$acl_save_prefix"
-
- if test "X$x" = "X$element"; then
- haveit=yes
- break
- fi
- done
- if test -z "$haveit"; then
- CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
- fi
- done
-
-
for element in `$PKG_CONFIG --cflags $cy_webkit_pkg`; do
haveit=
- for x in $OBJCXXFLAGS; do
+ for x in $CPPFLAGS; do
acl_save_prefix="$prefix"
prefix="$acl_final_prefix"
fi
done
if test -z "$haveit"; then
- OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
+ CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
fi
done
-
for element in `$PKG_CONFIG --libs $cy_webkit_pkg`; do
haveit=
for x in $LIBS; do
CY_EXECUTE=1
-
for element in `$PKG_CONFIG --cflags $cy_webkit_pkg`; do
haveit=
- for x in $CFLAGS; do
-
- acl_save_prefix="$prefix"
- prefix="$acl_final_prefix"
- acl_save_exec_prefix="$exec_prefix"
- exec_prefix="$acl_final_exec_prefix"
- eval x=\"$x\"
- exec_prefix="$acl_save_exec_prefix"
- prefix="$acl_save_prefix"
-
- if test "X$x" = "X$element"; then
- haveit=yes
- break
- fi
- done
- if test -z "$haveit"; then
- CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
- fi
- done
-
-
- for element in `$PKG_CONFIG --cflags $cy_webkit_pkg`; do
- haveit=
- for x in $CXXFLAGS; do
-
- acl_save_prefix="$prefix"
- prefix="$acl_final_prefix"
- acl_save_exec_prefix="$exec_prefix"
- exec_prefix="$acl_final_exec_prefix"
- eval x=\"$x\"
- exec_prefix="$acl_save_exec_prefix"
- prefix="$acl_save_prefix"
-
- if test "X$x" = "X$element"; then
- haveit=yes
- break
- fi
- done
- if test -z "$haveit"; then
- CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
- fi
- done
-
-
- for element in `$PKG_CONFIG --cflags $cy_webkit_pkg`; do
- haveit=
- for x in $OBJCXXFLAGS; do
+ for x in $CPPFLAGS; do
acl_save_prefix="$prefix"
prefix="$acl_final_prefix"
fi
done
if test -z "$haveit"; then
- OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
+ CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
fi
done
-
for element in `$PKG_CONFIG --libs $cy_webkit_pkg`; do
haveit=
for x in $LIBS; do
CY_EXECUTE=1
-
- for element in `$PKG_CONFIG --cflags $cy_webkit_pkg`; do
- haveit=
- for x in $CFLAGS; do
-
- acl_save_prefix="$prefix"
- prefix="$acl_final_prefix"
- acl_save_exec_prefix="$exec_prefix"
- exec_prefix="$acl_final_exec_prefix"
- eval x=\"$x\"
- exec_prefix="$acl_save_exec_prefix"
- prefix="$acl_save_prefix"
-
- if test "X$x" = "X$element"; then
- haveit=yes
- break
- fi
- done
- if test -z "$haveit"; then
- CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
- fi
- done
-
-
- for element in `$PKG_CONFIG --cflags $cy_webkit_pkg`; do
- haveit=
- for x in $CXXFLAGS; do
-
- acl_save_prefix="$prefix"
- prefix="$acl_final_prefix"
- acl_save_exec_prefix="$exec_prefix"
- exec_prefix="$acl_final_exec_prefix"
- eval x=\"$x\"
- exec_prefix="$acl_save_exec_prefix"
- prefix="$acl_save_prefix"
-
- if test "X$x" = "X$element"; then
- haveit=yes
- break
- fi
- done
- if test -z "$haveit"; then
- CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
- fi
- done
-
-
for element in `$PKG_CONFIG --cflags $cy_webkit_pkg`; do
haveit=
- for x in $OBJCXXFLAGS; do
+ for x in $CPPFLAGS; do
acl_save_prefix="$prefix"
prefix="$acl_final_prefix"
fi
done
if test -z "$haveit"; then
- OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
+ CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
fi
done
-
for element in `$PKG_CONFIG --libs $cy_webkit_pkg`; do
haveit=
for x in $LIBS; do
$as_echo "yes" >&6; }
-
- for element in `$PKG_CONFIG --cflags libffi`; do
- haveit=
- for x in $CFLAGS; do
-
- acl_save_prefix="$prefix"
- prefix="$acl_final_prefix"
- acl_save_exec_prefix="$exec_prefix"
- exec_prefix="$acl_final_exec_prefix"
- eval x=\"$x\"
- exec_prefix="$acl_save_exec_prefix"
- prefix="$acl_save_prefix"
-
- if test "X$x" = "X$element"; then
- haveit=yes
- break
- fi
- done
- if test -z "$haveit"; then
- CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
- fi
- done
-
-
for element in `$PKG_CONFIG --cflags libffi`; do
haveit=
- for x in $CXXFLAGS; do
-
- acl_save_prefix="$prefix"
- prefix="$acl_final_prefix"
- acl_save_exec_prefix="$exec_prefix"
- exec_prefix="$acl_final_exec_prefix"
- eval x=\"$x\"
- exec_prefix="$acl_save_exec_prefix"
- prefix="$acl_save_prefix"
-
- if test "X$x" = "X$element"; then
- haveit=yes
- break
- fi
- done
- if test -z "$haveit"; then
- CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
- fi
- done
-
-
- for element in `$PKG_CONFIG --cflags libffi`; do
- haveit=
- for x in $OBJCXXFLAGS; do
+ for x in $CPPFLAGS; do
acl_save_prefix="$prefix"
prefix="$acl_final_prefix"
fi
done
if test -z "$haveit"; then
- OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
+ CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
fi
done
-
for element in `$PKG_CONFIG --libs libffi`; do
haveit=
for x in $LIBS; do
$as_echo "yes" >&6; }
-
for element in `$PKG_CONFIG --cflags libffi`; do
haveit=
- for x in $CFLAGS; do
-
- acl_save_prefix="$prefix"
- prefix="$acl_final_prefix"
- acl_save_exec_prefix="$exec_prefix"
- exec_prefix="$acl_final_exec_prefix"
- eval x=\"$x\"
- exec_prefix="$acl_save_exec_prefix"
- prefix="$acl_save_prefix"
-
- if test "X$x" = "X$element"; then
- haveit=yes
- break
- fi
- done
- if test -z "$haveit"; then
- CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
- fi
- done
-
-
- for element in `$PKG_CONFIG --cflags libffi`; do
- haveit=
- for x in $CXXFLAGS; do
-
- acl_save_prefix="$prefix"
- prefix="$acl_final_prefix"
- acl_save_exec_prefix="$exec_prefix"
- exec_prefix="$acl_final_exec_prefix"
- eval x=\"$x\"
- exec_prefix="$acl_save_exec_prefix"
- prefix="$acl_save_prefix"
-
- if test "X$x" = "X$element"; then
- haveit=yes
- break
- fi
- done
- if test -z "$haveit"; then
- CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
- fi
- done
-
-
- for element in `$PKG_CONFIG --cflags libffi`; do
- haveit=
- for x in $OBJCXXFLAGS; do
+ for x in $CPPFLAGS; do
acl_save_prefix="$prefix"
prefix="$acl_final_prefix"
fi
done
if test -z "$haveit"; then
- OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
+ CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
fi
done
-
for element in `$PKG_CONFIG --libs libffi`; do
haveit=
for x in $LIBS; do
AS_IF([test "x$cy_good" = x1], ]$4[, ]$5[)
]) dnl }}}
-AC_DEFUN([CY_COMPILE_FLAG], [
- AC_LIB_APPENDTOVAR([CFLAGS], ]$1[)
- AC_LIB_APPENDTOVAR([CXXFLAGS], ]$1[)
- AC_LIB_APPENDTOVAR([OBJCXXFLAGS], ]$1[)
-])
-
AC_DEFUN([CY_TEST_FLAG_], [
AC_LANG_PUSH(]$2[)
AC_MSG_CHECKING([for ]]$4[[ ]]$1[)
for cy_webkit_pkg in "webkit-1.0" "WebKitGtk"; do
PKG_CHECK_MODULES([WEBKIT], [$cy_webkit_pkg], [
AC_SUBST([CY_EXECUTE], [1])
- CY_COMPILE_FLAG([`$PKG_CONFIG --cflags $cy_webkit_pkg`])
+ AC_LIB_APPENDTOVAR([CPPFLAGS], [`$PKG_CONFIG --cflags $cy_webkit_pkg`])
AC_LIB_APPENDTOVAR([LIBS], [`$PKG_CONFIG --libs $cy_webkit_pkg`])
], [:]); if test "x$CY_EXECUTE" = x1; then break; fi
done
AC_DEFUN([CY_CHECK_PKG_CONFIG_LIBFFI], [
PKG_CHECK_MODULES([LIBFFI], [libffi], [
- CY_COMPILE_FLAG([`$PKG_CONFIG --cflags libffi`])
+ AC_LIB_APPENDTOVAR([CPPFLAGS], [`$PKG_CONFIG --cflags libffi`])
AC_LIB_APPENDTOVAR([LIBS], [`$PKG_CONFIG --libs libffi`])
], [AC_MSG_ERROR([missing "libffi"])])])