X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=configure.ac;h=3c1939664a6a5c5ec1922a2cdd45d92c41596eb0;hb=4c63daac52b77c9224ff501084f79274fd531a97;hp=528f7146ba45d116615fb97d6b4601a8f409a490;hpb=1eb18876bb0eb8f55567dd8a92ab10091d045df7;p=wall-notify%2Fwall-notify.git diff --git a/configure.ac b/configure.ac index 528f714..3c19396 100644 --- a/configure.ac +++ b/configure.ac @@ -1,4 +1,4 @@ -dnl Copyright (C) 2014 Simon Ruderich +dnl Copyright (C) 2014-2015 Simon Ruderich dnl dnl This program is free software: you can redistribute it and/or modify dnl it under the terms of the GNU General Public License as published by @@ -43,9 +43,13 @@ if test "x$ac_cv_header_utempter_h" = xyes; then AC_CHECK_LIB([utempter], [utempter_remove_record], [], [AC_MSG_ERROR([utempter_remove_record() required])]) AC_DEFINE([USE_UTEMPTER], 1, [Define to 1 to use utempter.]) + elif test "x$ac_cv_header_utmpx_h" = xyes; then AC_MSG_NOTICE([using utmp]) + AC_CHECK_FUNCS([setresuid setresgid],[], + [AC_MSG_ERROR([setresuid() and setresgid() required for utmpx])]) AC_DEFINE([USE_UTMPX], 1, [Define to 1 to use utmp.]) + else AC_MSG_ERROR([neither utmpx.h nor utempter.h found, aborting]) fi @@ -76,7 +80,7 @@ if test -z "$disable_x11_support"; then CFLAGS="$X_CFLAGS $CFLAGS" fi -AC_CONFIG_FILES([Makefile src/Makefile]) +AC_CONFIG_FILES([Makefile src/Makefile man/Makefile]) AC_OUTPUT if test "x$ac_cv_header_utempter_h" != xyes; then