]> granicus.if.org Git - sudo/commitdiff
Add --with-systrace
authorTodd C. Miller <Todd.Miller@courtesan.com>
Fri, 24 Sep 2004 00:11:31 +0000 (00:11 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Fri, 24 Sep 2004 00:11:31 +0000 (00:11 +0000)
config.h.in
configure.in

index 4d0c77329f6f3bd9a52a2a50f08e9172e030b055..495192ec738ad33b86a98583cc16695c345918a6 100644 (file)
 /* Define to 1 if your struct stat has an st_mtimespec member */
 #undef HAVE_ST_MTIMESPEC
 
+/* Define to 1 to build support for tracing subprocesses using systrace(4) */
+#undef HAVE_SYSTRACE
+
+/* Define to 1 if you have the <dev/systrace.h> header file. */
+#undef HAVE_DEV_SYSTRACE_H
+
+/* Define to 1 if you have the <sys/systrace.h> header file. */
+#undef HAVE_SYS_SYSTRACE_H
+
 /* Define to 1 if you have the `sysconf' function. */
 #undef HAVE_SYSCONF
 
index 872bf5628198698e140f3a3393a4651c4c3df8da..013b9f120502b6686d0095faeace896090a19df1 100644 (file)
@@ -397,6 +397,13 @@ AC_ARG_WITH(bsdauth, [  --with-bsdauth          enable BSD authentication suppor
                ;;
 esac])
 
+AC_ARG_WITH(systrace, [  --with-systrace[[=DIR]]   enable systrace(4) support],
+[case $with_systrace in
+    no)                with_systrace=""
+               ;;
+    *)         ;;
+esac])
+
 AC_MSG_CHECKING(whether to lecture users the first time they run sudo)
 AC_ARG_WITH(lecture, [  --without-lecture       don't print lecture for first-time sudoer],
 [case $with_lecture in
@@ -1770,6 +1777,18 @@ AC_CHECK_FUNCS(getprogname, , [
     AC_MSG_RESULT($sudo_cv___progname)
 ])
 dnl
+dnl systrace(4) support
+dnl
+if test -n "$with_systrace"; then
+    AC_DEFINE(HAVE_SYSTRACE)
+    if test "$with_systrace" = "yes"; then
+       AC_CHECK_HEADERS(dev/systrace.h sys/systrace.h, [break])
+    else
+       CPPFLAGS="$CPPFLAGS -I${with_systrace}"
+    fi
+    SUDO_OBJS="${SUDO_OBJS} systrace.o"
+fi
+dnl
 dnl Kerberos IV
 dnl
 if test -n "$with_kerb4"; then
@@ -2256,6 +2275,7 @@ AH_TEMPLATE(HAVE_SKEY, [Define to 1 if you use S/Key.])
 AH_TEMPLATE(HAVE_SKEYACCESS, [Define to 1 if your S/Key library has skeyaccess().])
 AH_TEMPLATE(HAVE_ST_MTIM, [Define to 1 if your struct stat has an st_mtim member])
 AH_TEMPLATE(HAVE_ST_MTIMESPEC, [Define to 1 if your struct stat has an st_mtimespec member])
+AH_TEMPLATE(HAVE_SYSTRACE, [Define to 1 to build support for tracing subprocesses using systrace(4)])
 AH_TEMPLATE(HAVE_TERMIOS_H, [Define to 1 if you have the <termios.h> header file and the `tcgetattr' function.])
 AH_TEMPLATE(HAVE_TIMESPEC, [Define to 1 if you have struct timespec in sys/time.h])
 AH_TEMPLATE(HAVE___PROGNAME, [Define to 1 if your crt0.o defines the __progname symbol for you.])