Blame gettext-tools/gnulib-m4/libunistring-optional.m4

Packit 5b56b6
# libunistring-optional.m4 serial 1
Packit 5b56b6
dnl Copyright (C) 2010-2015 Free Software Foundation, Inc.
Packit 5b56b6
dnl This file is free software; the Free Software Foundation
Packit 5b56b6
dnl gives unlimited permission to copy and/or distribute it,
Packit 5b56b6
dnl with or without modifications, as long as this notice is preserved.
Packit 5b56b6
Packit 5b56b6
dnl gl_LIBUNISTRING_OPTIONAL
Packit 5b56b6
dnl Searches for an installed libunistring or uses the included source code
Packit 5b56b6
dnl parts.
Packit 5b56b6
dnl If found, it sets and AC_SUBSTs HAVE_LIBUNISTRING=yes and the LIBUNISTRING
Packit 5b56b6
dnl and LTLIBUNISTRING variables and augments the CPPFLAGS variable, and
Packit 5b56b6
dnl #defines HAVE_LIBUNISTRING to 1. Otherwise, it sets and AC_SUBSTs
Packit 5b56b6
dnl HAVE_LIBUNISTRING=no and LIBUNISTRING and LTLIBUNISTRING to empty.
Packit 5b56b6
Packit 5b56b6
AC_DEFUN([gl_LIBUNISTRING_OPTIONAL],
Packit 5b56b6
[
Packit 5b56b6
  dnl gl_LIBUNISTRING does a couple of extra things if this macro is used.
Packit 5b56b6
  AC_REQUIRE([gl_LIBUNISTRING])
Packit 5b56b6
Packit 5b56b6
  AC_MSG_CHECKING([whether to use the included libunistring])
Packit 5b56b6
  AC_MSG_RESULT([$gl_libunistring_use_included])
Packit 5b56b6
])