diff options
author | Lukas Slebodnik <lslebodn@redhat.com> | 2013-08-31 15:32:39 +0200 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2013-09-09 16:59:47 +0200 |
commit | 4d12b06c45f91715902cb2d28c9b689964911632 (patch) | |
tree | cab5ef67ffeb89ec085ab9021f560a00be631245 /src/build_macros.m4 | |
parent | a4b698cdd9b974ecf53e7d90aa989b350ca4cec0 (diff) | |
download | sssd-4d12b06c45f91715902cb2d28c9b689964911632.tar.gz sssd-4d12b06c45f91715902cb2d28c9b689964911632.tar.xz sssd-4d12b06c45f91715902cb2d28c9b689964911632.zip |
AUTOTOOLS: Refactor unicode library detection
If $libdir is not in default library path libunistring cannot be
found. (pkg-config can not be used in this case).
This patch helps to search libunistring in "$libdir" directory.
In refactoring part, indentation was updated to be more readable
and some duplicated parts were removed.
Diffstat (limited to 'src/build_macros.m4')
-rw-r--r-- | src/build_macros.m4 | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/build_macros.m4 b/src/build_macros.m4 index 8cd2d3cde..92d7c65d1 100644 --- a/src/build_macros.m4 +++ b/src/build_macros.m4 @@ -34,3 +34,17 @@ $3 ])dnl fi[]dnl ])]) + +dnl SSS_AC_EXPAND_LIB_DIR() prepare variable sss_extra_libdir, +dnl variable will contain expanded version of string "$libdir" +dnl therefore this variable can be safely added to LDFLAGS as +dnl "-L$sss_extra_libdir ". +AC_DEFUN([SSS_AC_EXPAND_LIB_DIR], +[ + AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) + dnl By default, look in $includedir and $libdir. + AC_LIB_WITH_FINAL_PREFIX([ + eval additional_libdir=\"$libdir\" + ]) + sss_extra_libdir="$additional_libdir" +]) |