]> granicus.if.org Git - sudo/commitdiff
Override and ignore the --disable-static option. Sudo already runs
authorTodd C. Miller <Todd.Miller@courtesan.com>
Wed, 12 Oct 2011 12:24:13 +0000 (08:24 -0400)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Wed, 12 Oct 2011 12:24:13 +0000 (08:24 -0400)
libtool with -tag=disable-static where applicable and we need non-PIC
objects to build the executables.

configure
configure.in

index a047164d473bce8a3e496f04c12a691a68e9b393..e219c45b8dc9a25f3b85cde322f85e965258cb9f 100755 (executable)
--- a/configure
+++ b/configure
@@ -5989,6 +5989,12 @@ if test "x$ac_cv_prog_cc_c89" = "xno"; then
     as_fn_error $? "Sudo version $PACKAGE_VERSION requires an ANSI C compiler to build." "$LINENO" 5
 fi
 
+if test "$enable_static" = "no"; then
+    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring --disable-static, sudo does not install static libs" >&5
+$as_echo "$as_me: WARNING: Ignoring --disable-static, sudo does not install static libs" >&2;}
+    enable_static=yes
+fi
+
 ac_aux_dir=
 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
   if test -f "$ac_dir/install-sh"; then
index 0f278a896bf3f24c31e7d11f6fba347a7067b700..530665ce082a1ee7abacee3420f4a59ff90f8fd2 100644 (file)
@@ -1360,6 +1360,15 @@ if test "x$ac_cv_prog_cc_c89" = "xno"; then
     AC_MSG_ERROR([Sudo version $PACKAGE_VERSION requires an ANSI C compiler to build.])
 fi
 
+dnl
+dnl If the user specified --disable-static, override them or we'll
+dnl be unable to build the executables in the sudoers plugin dir.
+dnl
+if test "$enable_static" = "no"; then
+    AC_MSG_WARN([Ignoring --disable-static, sudo does not install static libs])
+    enable_static=yes
+fi
+
 dnl
 dnl Libtool setup, we require libtool 2.2.6b or higher
 dnl