diff options
Diffstat (limited to 'admin/acinclude.m4.in')
| -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 e40883a0..163c6815 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.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 |
