summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Cameron <brian.cameron@sun.com>2004-09-15 17:58:29 +0000
committerBrian Cameron <bcameron@src.gnome.org>2004-09-15 17:58:29 +0000
commit34d037a9647f6e085177356c1f93e0f9a8cd31b4 (patch)
tree24410093624b7b57a34d0e03719c44779ec0dd9c
parent0201589239973a2056dd85ddc6f7aa7ed7b0ff52 (diff)
downloadgdm-34d037a9647f6e085177356c1f93e0f9a8cd31b4.tar.gz
Corrected check for Solaris auditing API so it will not set HAVE_ADT when
Tue Sep 15 12:45:00 2004 Brian Cameron <brian.cameron@sun.com> * configure.in: Corrected check for Solaris auditing API so it will not set HAVE_ADT when building on Solaris 9 and earlier. The auditing API supported in gdm2 is only supported on the next release of Solaris. Also corrected minor bug with IPv6 check not properly saying "no" when --enable-ipv6 is not defined.
-rw-r--r--ChangeLog7
-rw-r--r--configure.in23
2 files changed, 26 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index e13b16a4..587325eb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+Tue Sep 15 12:45:00 2004 Brian Cameron <brian.cameron@sun.com>
+
+ * configure.in: Corrected check for Solaris auditing API so it
+ will not set HAVE_ADT when building on Solaris 9 and earlier.
+ The auditing API supported in gdm2 is only supported on the
+ next release of Solaris.
+
Tue Sep 14 15:29:22 2004 George Lebl <jirka@5z.com>
* Release 2.6.0.5
diff --git a/configure.in b/configure.in
index 47de1805..4710ae86 100644
--- a/configure.in
+++ b/configure.in
@@ -211,7 +211,10 @@ if test x$enable_ipv6 = xyes; then
fi
fi
fi
+else
+ AC_MSG_RESULT(no)
fi
+
dnl ****************************
dnl IPv6 checks end here
dnl ****************************
@@ -636,15 +639,27 @@ else
fi
# Check for Solaris auditing API
+# Note, Solaris auditing not supported for Solaris 9 or earlier and
+# should not be used on these versions of Solaris if auditing is
+# required. Solaris auditing is only supported on systems that
+# support the ADT_USER enumeration value.
#
AC_MSG_CHECKING(for Solaris auditing API)
-AC_CHECK_LIB(bsm, adt_start_session, [
- AC_DEFINE(HAVE_ADT)
- EXTRA_DAEMON_LIBS="$EXTRA_DAEMON_LIBS -lbsm" ])
+AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
+#include <bsm/adt.h>
+adt_user_context = ADT_USER;
+]], [[]])], [ check_sun_audit=yes ], [ check_sun_audit=no ])
+
+if test ${check_sun_audit} = yes
+then
+ AC_DEFINE(HAVE_ADT)
+ AC_MSG_RESULT(yes)
+else
+ AC_MSG_RESULT(no)
+fi
# Check for Solaris logindevperm support
#
-AC_MSG_CHECKING(for Solaris logindevperm)
AC_CHECK_LIB(devinfo, di_devperm_login, [
AC_DEFINE(HAVE_LOGINDEVPERM)
EXTRA_DAEMON_LIBS="$EXTRA_DAEMON_LIBS -ldevinfo" ])