freebsd-ports/security/sudo/files/patch-aa
David E. O'Brien 09cf8b901d this is better
1998-05-29 08:54:47 +00:00

52 lines
1.7 KiB
Text

--- configure.orig Mon Jan 12 20:45:09 1998
+++ configure Fri May 29 01:31:07 1998
@@ -39,6 +39,8 @@
--with-libraries additional libraries to link with"
ac_help="$ac_help
--with-csops add CSOps standard options"
+ac_help="$ac_help
+ --with-fbsdops add FreeBSD standard options"
# Initialize some variables set by options.
# The variables have the same names as the options, with
@@ -565,8 +567,8 @@
test "$mandir" = '${prefix}/man' && mandir='$(prefix)/man'
test "$bindir" = '${exec_prefix}/bin' && bindir='$(exec_prefix)/bin'
-test "$sbindir" = '${exec_prefix}/sbin' && sbindir='$(exec_prefix)/etc'
-test "$sysconfdir" = '${prefix}/etc' && sysconfdir='/etc'
+test "$sbindir" = '${exec_prefix}/sbin' || sbindir='$(exec_prefix)/etc'
+test "$sysconfdir" = '${prefix}/etc' || sysconfdir='/etc'
# Check whether --with-CC or --without-CC was given.
@@ -816,6 +818,20 @@
esac
fi
+# Check whether --with-fbsdops or --without-fbsdops was given.
+if test "${with_fbsdops+set}" = set; then
+ withval="$with_fbsdops"
+ case $with_fbsdops in
+ yes) OPTIONS="${OPTIONS} -DIGNORE_DOT_PATH -DENV_EDITOR -DUSE_TTY_TICKETS"
+ sbindir='$(exec_prefix)/sbin'
+ echo 'fbsdops--adding options: IGNORE_DOT_PATH ENV_EDITOR USE_TTY_TICKETS'
+ ;;
+ no) ;;
+ *) echo "Ignoring unknown argument to --with-csops: $with_csops"
+ ;;
+esac
+fi
+
# Extract the first word of "egrep", so it can be a program name with args.
set dummy egrep; ac_word=$2
@@ -4557,7 +4573,7 @@
fi
if test "$with_skey" = "yes"; then
- SUDO_LIBS="${SUDO_LIBS} -lskey"
+ SUDO_LIBS="${SUDO_LIBS} -lskey -lmd"
if test -f /usr/include/skey.h -a -f /usr/lib/libskey.a; then
:
elif test -f /usr/local/include/skey.h; then