]> granicus.if.org Git - sudo/commitdiff
Add closefrom() to LIB_OBJS not SUDO_OBJS if it is missing since we
authorTodd C. Miller <Todd.Miller@courtesan.com>
Fri, 11 May 2007 21:05:12 +0000 (21:05 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Fri, 11 May 2007 21:05:12 +0000 (21:05 +0000)
need it for visudo now too.

configure
configure.in

index bbf5821b3fc0060f12c11bf47bdf229e4cdbca39..9872ec1db5f36f336726dbc7b8ee39ff078a0bde 100755 (executable)
--- a/configure
+++ b/configure
@@ -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
index a6e3f8fa3c817bff4d2474dd8c3b7b10b1bf7185..99f7855554a635f96767a962f36f132c2538bf93 100644 (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> ])