diff options
author | Slávek Banko <[email protected]> | 2018-02-13 15:04:22 +0100 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2018-02-13 15:04:22 +0100 |
commit | a14adb9ab9c50cbcd95a2d2e3f42c41fecf73fb0 (patch) | |
tree | 74fe96eab9e0a3bcefff551f24d5e7f46acff618 /CMakeLists.txt | |
parent | 4d31e7d405ea7bf530b3d3dd136abff3da52b7ed (diff) | |
download | tdelibs-a14adb9ab9c50cbcd95a2d2e3f42c41fecf73fb0.tar.gz tdelibs-a14adb9ab9c50cbcd95a2d2e3f42c41fecf73fb0.zip |
Add search for utempter helper
This resolves Bug 2841
Signed-off-by: Slávek Banko <[email protected]>
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 80d66bc28..c8047f82f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -599,7 +599,26 @@ endif( HAVE_LIBMAGIC ) if( WITH_UTEMPTER ) check_include_file( utempter.h HAVE_UTEMPTER_H ) check_library_exists( utempter addToUtmp "" HAVE_ADDTOUTEMP ) - if( HAVE_UTEMPTER_H AND HAVE_ADDTOUTEMP ) + if( NOT DEFINED UTEMPTER_HELPER ) + message( STATUS "Looking for utempter helper" ) + find_program( UTEMPTER_HELPER utempter + PATHS + /usr/lib/${CMAKE_LIBRARY_ARCHITECTURE}/utempter + /usr/lib/utempter + /usr/libexec/utempter + /usr/libexec + /usr/local/lib/${CMAKE_LIBRARY_ARCHITECTURE}/utempter + /usr/local/lib/utempter + /usr/local/libexec/utempter + /usr/local/libexec + ) + if( UTEMPTER_HELPER ) + message( STATUS "Looking for utempter helper - found" ) + else( ) + message( STATUS "Looking for utempter helper - not found" ) + endif( ) + endif( ) + if( HAVE_UTEMPTER_H AND HAVE_ADDTOUTEMP AND UTEMPTER_HELPER ) set( HAVE_UTEMPTER 1 ) set( UTEMPTER_LIBRARY utempter ) else( ) |