]> ruderich.org/simon Gitweb - wall-notify/wall-notify.git/blobdiff - configure.ac
remove superfluous braces in comment
[wall-notify/wall-notify.git] / configure.ac
index 84c3e324ea395864d4147e43a6f1b19be1b4f80e..7b4ab5a39de5b51a651400cc88067c4861eded41 100644 (file)
@@ -37,9 +37,6 @@ fi
 AC_CHECK_HEADERS([utempter.h utmpx.h])
 
 if test "x$ac_cv_header_utempter_h" = xyes; then
-    AC_CHECK_FUNCS([setresuid setresgid],[],
-                   [AC_MSG_ERROR([setresuid() and setresgid() required for utmpx])])
-
     AC_MSG_NOTICE([using utempter])
     AC_CHECK_LIB([utempter], [utempter_add_record],
                  [], [AC_MSG_ERROR([utempter_add_record() required])])
@@ -49,7 +46,10 @@ if test "x$ac_cv_header_utempter_h" = xyes; then
 
 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
@@ -67,7 +67,8 @@ AC_ARG_ENABLE([x11],
                fi])
 
 if test -z "$disable_x11_support"; then
-    AX_PTHREAD([],[AC_MSG_ERROR([pthread is required, use --disable-x11])])
+    AX_PTHREAD([],
+               [AC_MSG_ERROR([pthread is required for X, use --disable-x11])])
     LIBS="$PTHREAD_LIBS $LIBS"
     CFLAGS="$PTHREAD_CFLAGS $CFLAGS"
     CC="$PTHREAD_CC"