summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorTilghman Lesher <tilghman@meg.abyt.es>2009-08-25 22:39:51 +0000
committerTilghman Lesher <tilghman@meg.abyt.es>2009-08-25 22:39:51 +0000
commitddf5a08d830df22fd66230b55a1457ec42f59bd9 (patch)
tree06df87291f165a51d4ccfef9d7c211f7df2ae719 /configure.ac
parentc18df321f0fa48a4482908d1fe175b0eff4c3a6d (diff)
Not all versions of gnu-linux use glibc, which contains iconv. Some (especially embedded systems) don't have iconv at all.
(closes issue #15169) Reported by: pprindeville git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@214152 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac8
1 files changed, 3 insertions, 5 deletions
diff --git a/configure.ac b/configure.ac
index 4c8a314ff..551531263 100644
--- a/configure.ac
+++ b/configure.ac
@@ -800,11 +800,9 @@ if test "${USE_GSM}" != "no"; then
fi
fi
-if test "${host_os}" != "linux-gnu" ; then
- AST_EXT_LIB_CHECK([ICONV], [iconv], [iconv_open], [iconv.h])
-else
- PBX_ICONV=1
-fi
+AST_EXT_LIB_CHECK([ICONV], [iconv], [iconv_open], [iconv.h])
+# Some versions of Linux package iconv in glibc
+AST_EXT_LIB_CHECK([ICONV], [c], [iconv_close], [iconv.h])
AST_EXT_LIB_CHECK([ICAL], [ical], [icaltimezone_new], [libical/ical.h], [-lpthread])