Move options check to our own scope
@@ -6,6 +6,10 @@ PHP_ARG_ENABLE([swow],
[no]
)
+if test "${SWOW}" != "no"; then
+
+ AC_DEFINE([HAVE_SWOW], 1, [Have Swow])
+
PHP_ARG_ENABLE([swow-debug],
[whether to enable Swow debug build flags],
[AS_HELP_STRING([--enable-swow-debug], [Enable Swow debug build flags])],
@@ -18,10 +22,6 @@ PHP_ARG_ENABLE([swow-valgrind],
[$PHP_SWOW_DEBUG], [$PHP_SWOW_DEBUG]
)
-if test "${SWOW}" != "no"; then
-
- AC_DEFINE([HAVE_SWOW], 1, [Have Swow])
-
SWOW_CFLAGS=""
SWOW_STD_CFLAGS=""
SWOW_STD_CFLAGS="${SWOW_STD_CFLAGS} -fvisibility=hidden -std=gnu90"
