diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2016-03-26 20:17:17 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2016-03-26 20:17:17 +0000 |
commit | 5658b628b9bf1c1e0bd5856736332ce8b9c51517 (patch) | |
tree | 8f716d52ec83a073d0d0e2befee6e03c2941dc71 | |
parent | b429a00cce4c150cf8050545f903ecb304691ab9 (diff) |
Look for utempter_add_record to be sure we have the new utempter API, the old
utempter API was also using utempter.h.
-rw-r--r-- | configure.ac | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/configure.ac b/configure.ac index 82e8a452..8ce20632 100644 --- a/configure.ac +++ b/configure.ac @@ -167,10 +167,17 @@ if test "x$found_curses" = xno; then fi # Look for utempter. -AC_CHECK_HEADER(utempter.h, have_utempter=yes, have_utempter=no) -if test "x$have_utempter" = xyes; then - AC_DEFINE(HAVE_UTEMPTER) - LIBS="$LIBS -lutempter" +AC_CHECK_HEADER(utempter.h, found_utempter=yes, found_utempter=no) +if test "x$found_utempter" = xyes; then + AC_SEARCH_LIBS( + utempter_add_record, + utempter, + found_utempter=yes, + found_utempter=no + ) + if test "x$found_utempter" = xyes; then + AC_DEFINE(HAVE_UTEMPTER) + fi fi # Check for b64_ntop. |