| 1 |
# libunistring-optional.m4 |
| 2 |
# serial 1 |
| 3 |
dnl Copyright (C) 2010-2024 Free Software Foundation, Inc. |
| 4 |
dnl This file is free software; the Free Software Foundation |
| 5 |
dnl gives unlimited permission to copy and/or distribute it, |
| 6 |
dnl with or without modifications, as long as this notice is preserved. |
| 7 |
dnl This file is offered as-is, without any warranty. |
| 8 |
|
| 9 |
dnl gl_LIBUNISTRING_OPTIONAL |
| 10 |
dnl Searches for an installed libunistring or uses the included source code |
| 11 |
dnl parts. |
| 12 |
dnl If found, it sets and AC_SUBSTs HAVE_LIBUNISTRING=yes and the LIBUNISTRING |
| 13 |
dnl and LTLIBUNISTRING variables and augments the CPPFLAGS variable, and |
| 14 |
dnl #defines HAVE_LIBUNISTRING to 1. Otherwise, it sets and AC_SUBSTs |
| 15 |
dnl HAVE_LIBUNISTRING=no and LIBUNISTRING and LTLIBUNISTRING to empty. |
| 16 |
|
| 17 |
AC_DEFUN([gl_LIBUNISTRING_OPTIONAL], |
| 18 |
[ |
| 19 |
dnl gl_LIBUNISTRING does a couple of extra things if this macro is used. |
| 20 |
AC_REQUIRE([gl_LIBUNISTRING]) |
| 21 |
|
| 22 |
AC_MSG_CHECKING([whether to use the included libunistring]) |
| 23 |
AC_MSG_RESULT([$gl_libunistring_use_included]) |
| 24 |
]) |