Skip to content

Commit

Permalink
Handle libintl needing libiconv (for OpenBSD 5.2)
Browse files Browse the repository at this point in the history
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
  • Loading branch information
David Woodhouse authored and David Woodhouse committed Nov 7, 2012
1 parent 05c8d79 commit fa5760a
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions configure.ac
Expand Up @@ -171,9 +171,18 @@ if test "$USE_NLS" = "yes"; then
(void)dgettext("openconnect", "foo");])],
[AC_MSG_RESULT(yes (with -lintl))]
LIBINTL="-lintl",
[AC_MSG_RESULT(no)
USE_NLS=no])
LIBS="$oldLIBS"])
[LIBS="$LIBS -liconv"
AC_LINK_IFELSE([AC_LANG_PROGRAM([
#include <locale.h>
#include <libintl.h>],[
setlocale(LC_ALL, "");
bindtextdomain("openconnect", "/tmp");
(void)dgettext("openconnect", "foo");])],
[AC_MSG_RESULT(yes (with -lintl -liconv))]
LIBINTL="-lintl",
[AC_MSG_RESULT(no)
USE_NLS=no])
LIBS="$oldLIBS"])])
fi

if test "$USE_NLS" = "yes"; then
Expand Down

0 comments on commit fa5760a

Please sign in to comment.