From: Todd C. Miller Date: Wed, 12 Oct 2011 12:24:13 +0000 (-0400) Subject: Override and ignore the --disable-static option. Sudo already runs X-Git-Tag: SUDO_1_8_3~1^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8ef560b85cd3c0043a01bac8065387e758a9f087;p=sudo Override and ignore the --disable-static option. Sudo already runs libtool with -tag=disable-static where applicable and we need non-PIC objects to build the executables. --- diff --git a/configure b/configure index a047164d4..e219c45b8 100755 --- 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 diff --git a/configure.in b/configure.in index 0f278a896..530665ce0 100644 --- a/configure.in +++ b/configure.in @@ -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