From 4478ab66775a69e01e4606c14ce3fdbbd4e99d40 Mon Sep 17 00:00:00 2001 From: hyung-hwan Date: Sun, 25 May 2025 17:30:22 +0900 Subject: [PATCH] improved the HAWK_MOD m4 macro --- configure | 35 +++++++++++++++++++++++++++++++++++ m4/hawk_mod.m4 | 7 +++++++ 2 files changed, 42 insertions(+) diff --git a/configure b/configure index db4189ff..45af6e73 100755 --- a/configure +++ b/configure @@ -28056,6 +28056,13 @@ fi then enable_mod_ffi_static_is="yes" fi + elif test "x${enable_mod_ffi_is}" = "xyes" + then + if test "x${enable_shared}" = "xno" -a "x${enable_static}" = "xyes" + then + ## not configured to produce shared objects + enable_mod_ffi_static_is="yes" + fi fi @@ -28124,6 +28131,13 @@ fi then enable_mod_memc_static_is="yes" fi + elif test "x${enable_mod_memc_is}" = "xyes" + then + if test "x${enable_shared}" = "xno" -a "x${enable_static}" = "xyes" + then + ## not configured to produce shared objects + enable_mod_memc_static_is="yes" + fi fi @@ -28466,6 +28480,13 @@ printf "%s\n" "no" >&6; } then enable_mod_mysql_static_is="yes" fi + elif test "x${enable_mod_mysql_is}" = "xyes" + then + if test "x${enable_shared}" = "xno" -a "x${enable_static}" = "xyes" + then + ## not configured to produce shared objects + enable_mod_mysql_static_is="yes" + fi fi @@ -28808,6 +28829,13 @@ fi then enable_mod_sed_static_is="yes" fi + elif test "x${enable_mod_sed_is}" = "xyes" + then + if test "x${enable_shared}" = "xno" -a "x${enable_static}" = "xyes" + then + ## not configured to produce shared objects + enable_mod_sed_static_is="yes" + fi fi @@ -28876,6 +28904,13 @@ fi then enable_mod_uci_static_is="yes" fi + elif test "x${enable_mod_uci_is}" = "xyes" + then + if test "x${enable_shared}" = "xno" -a "x${enable_static}" = "xyes" + then + ## not configured to produce shared objects + enable_mod_uci_static_is="yes" + fi fi diff --git a/m4/hawk_mod.m4 b/m4/hawk_mod.m4 index c970a907..5ce3dded 100644 --- a/m4/hawk_mod.m4 +++ b/m4/hawk_mod.m4 @@ -29,6 +29,13 @@ AC_DEFUN([HAWK_MOD], then enable_mod_$1_static_is="yes" fi + elif test "x${enable_mod_$1_is}" = "xyes" + then + if test "x${enable_shared}" = "xno" -a "x${enable_static}" = "xyes" + then + ## not configured to produce shared objects + enable_mod_$1_static_is="yes" + fi fi m4_pushdef([UPNAME], m4_translit([$1], [abcdefghijklmnopqrstuvwxyz], [ABCDEFGHIJKLMNOPQRSTUVWXYZ]))