Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/eglib
diff options
context:
space:
mode:
authorAngelo Compagnucci <angelo.compagnucci@gmail.com>2015-09-05 09:57:21 +0300
committerAngelo Compagnucci <angelo.compagnucci@gmail.com>2015-09-05 09:57:21 +0300
commit026a8c44d332b3595814ce0aceba255467cd7b6d (patch)
treea47084ceaba8f3b12331bdb7abcb05e3f929052c /eglib
parent8a4b2f74d50d0e3c26cbaf72df32615338d824cd (diff)
eglib: checking for locale_charset function
This patch checks if locale_charset function is availabe in libiconv or libcharset and changes the linking options accordingly.
Diffstat (limited to 'eglib')
-rw-r--r--eglib/configure.ac1
1 files changed, 1 insertions, 0 deletions
diff --git a/eglib/configure.ac b/eglib/configure.ac
index 9d094ea7cdf..5ea220e779f 100644
--- a/eglib/configure.ac
+++ b/eglib/configure.ac
@@ -182,6 +182,7 @@ fi
AC_SUBST(G_HAVE_ISO_VARARGS)
AC_CHECK_HEADERS(getopt.h sys/select.h sys/time.h sys/wait.h pwd.h langinfo.h iconv.h localcharset.h sys/types.h sys/resource.h)
+AC_CHECK_LIB([iconv], [locale_charset],[],[AC_CHECK_LIB([charset], [locale_charset],[LIBS+="-liconv -lcharset"])])
AC_CHECK_HEADER(alloca.h, [HAVE_ALLOCA_H=1], [HAVE_ALLOCA_H=0])
AC_SUBST(HAVE_ALLOCA_H)