diff options
| author | Michele Calgaro <michele.calgaro@yahoo.it> | 2026-02-27 11:19:29 +0900 |
|---|---|---|
| committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2026-03-10 13:06:56 +0900 |
| commit | c8a9dd20a52b50f0a6db801db7267f8eb5f65c31 (patch) | |
| tree | 96e46d91fe1f9565456a0d15f53aa92804f12f3e /admin | |
| parent | 9d719b1cd3961240f45c17e2d68a6c7bd72676b6 (diff) | |
| download | kvirc-c8a9dd20a52b50f0a6db801db7267f8eb5f65c31.tar.gz kvirc-c8a9dd20a52b50f0a6db801db7267f8eb5f65c31.zip | |
Use direct dependency on libgsm instead of loading it at runtime if available
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'admin')
| -rw-r--r-- | admin/acinclude.m4.in | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/admin/acinclude.m4.in b/admin/acinclude.m4.in index e40883a..abc25a3 100644 --- a/admin/acinclude.m4.in +++ b/admin/acinclude.m4.in @@ -590,12 +590,15 @@ AC_DEFUN([AC_SS_MISC_OPTIONS], if test "$SS_NO_GSM" = "true"; then AC_MSG_RESULT(yes) else - AC_DEFINE([COMPILE_USE_GSM], 1, [define if you have libgsm and want the GSM code to be compiled]) - SS_BUILD_FLAGS="G$SS_BUILD_FLAGS" AC_MSG_RESULT(no) + AC_CHECK_HEADER(gsm/gsm.h,HAVE_GSM_H="yes",HAVE_GSM_H="no") + AC_CHECK_LIB(gsm, gsm_create, HAVE_GSM_LIB="yes", HAVE_GSM_LIB="no") + if test "x$HAVE_GSM_H" = "xyes" && test "x$HAVE_GSM_LIB" = "xyes"; then + AC_DEFINE([COMPILE_USE_GSM], 1, [define if you have libgsm and want the GSM code to be compiled]) + SS_BUILD_FLAGS="G$SS_BUILD_FLAGS" + fi fi - AC_MSG_CHECKING([if you want to ignore SIGALARM]) AC_ARG_WITH(ignore-sigalarm, [ --with-ignore-sigalarm Ignore SIGALARM in all threads],SS_IGNORE_SIGALARM="true") if test "$SS_IGNORE_SIGALARM" = "true"; then |
