From: Todd C. Miller Date: Fri, 24 Sep 2004 00:11:31 +0000 (+0000) Subject: Add --with-systrace X-Git-Tag: SUDO_1_7_0~968 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2af113f24ef182382ab81f25a4a1b0197d9b89b7;p=sudo Add --with-systrace --- diff --git a/config.h.in b/config.h.in index 4d0c77329..495192ec7 100644 --- a/config.h.in +++ b/config.h.in @@ -317,6 +317,15 @@ /* 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 header file. */ +#undef HAVE_DEV_SYSTRACE_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_SYS_SYSTRACE_H + /* Define to 1 if you have the `sysconf' function. */ #undef HAVE_SYSCONF diff --git a/configure.in b/configure.in index 872bf5628..013b9f120 100644 --- a/configure.in +++ b/configure.in @@ -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 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.])