summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac7
1 files changed, 4 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac
index 88dacbf2b..e7e8821a7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -210,9 +210,10 @@ fi
AC_SUBST([PBX_LIBossaudio])
-AST_EXT_LIB([tonezone], [tone_zone_find], [linux/zaptel.h], [ZAPTEL], [Zaptel])
-if test "$PBX_LIBtonezone" = "0"; then
- AST_EXT_LIB([tonezone], [tone_zone_find], [zaptel.h], [ZAPTEL], [Zaptel], [-lm])
+if test "${PBX_OSTYPE}" = "Linux" ; then
+ AST_EXT_LIB([tonezone], [tone_zone_find], [linux/zaptel.h], [ZAPTEL], [Zaptel])
+else
+ AST_EXT_LIB([tonezone], [tone_zone_find], [zaptel.h], [ZAPTEL], [Zaptel], [-lm])
fi
GSM_INTERNAL="yes"