2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-31 14:25:15 +00:00

Add closefrom() to LIB_OBJS not SUDO_OBJS if it is missing since we

need it for visudo now too.
This commit is contained in:
Todd C. Miller
2007-05-11 21:05:12 +00:00
parent 0ea35c0d32
commit 1488331d75
2 changed files with 9 additions and 2 deletions

9
configure vendored
View File

@@ -15912,7 +15912,14 @@ if test `eval echo '${'$as_ac_var'}'` = yes; then
_ACEOF
else
SUDO_OBJS="${SUDO_OBJS} closefrom.o"
case $LIBOBJS in
"closefrom.o.$ac_objext" | \
*" closefrom.o.$ac_objext" | \
"closefrom.o.$ac_objext "* | \
*" closefrom.o.$ac_objext "* ) ;;
*) LIBOBJS="$LIBOBJS closefrom.o.$ac_objext" ;;
esac
echo "$as_me:$LINENO: checking whether F_CLOSEM is declared" >&5
echo $ECHO_N "checking whether F_CLOSEM is declared... $ECHO_C" >&6
if test "${ac_cv_have_decl_F_CLOSEM+set}" = set; then

View File

@@ -1718,7 +1718,7 @@ AC_CHECK_FUNCS(utimes, [AC_CHECK_FUNCS(futimes futimesat, [break])], [AC_CHECK_F
SUDO_FUNC_FNMATCH([AC_DEFINE(HAVE_FNMATCH)], [AC_LIBOBJ(fnmatch)])
SUDO_FUNC_ISBLANK
AC_REPLACE_FUNCS(strerror strcasecmp sigaction strlcpy strlcat)
AC_CHECK_FUNCS(closefrom, [], [SUDO_OBJS="${SUDO_OBJS} closefrom.o"
AC_CHECK_FUNCS(closefrom, [], [AC_LIBOBJ(closefrom.o)
AC_CHECK_DECL(F_CLOSEM, AC_DEFINE(HAVE_FCNTL_CLOSEM), [],
[ #include <limits.h>
#include <fcntl.h> ])