]> granicus.if.org Git - sudo/commitdiff
eval $shrext so that it expands nicely on MacOS X
authorTodd C. Miller <Todd.Miller@courtesan.com>
Fri, 9 Jan 2004 07:58:04 +0000 (07:58 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Fri, 9 Jan 2004 07:58:04 +0000 (07:58 +0000)
configure
configure.in

index 488e2087dd89e548e913ae4ff0897cc7089a775a..9e4108ec196b8676bc2bf53d7ceafbfaf281cdb4 100755 (executable)
--- a/configure
+++ b/configure
@@ -19604,7 +19604,11 @@ LIBTOOL='$(SHELL) $(top_builddir)/libtool'
 
 
 
-test "$enable_shared" = "no" && with_noexec=no
+if test "$enable_shared" = "no"; then
+    with_noexec=no
+else
+    eval _shrext="$shrext"
+fi
 echo "$as_me:$LINENO: checking path to sudo_noexec.so" >&5
 echo $ECHO_N "checking path to sudo_noexec.so... $ECHO_C" >&6
 
@@ -19612,13 +19616,13 @@ echo $ECHO_N "checking path to sudo_noexec.so... $ECHO_C" >&6
 if test "${with_noexec+set}" = set; then
   withval="$with_noexec"
   case $with_noexec in
-    yes)       with_noexec="$libexecdir/sudo_noexec$shrext"
+    yes)       with_noexec="$libexecdir/sudo_noexec$_shrext"
                ;;
     no)                ;;
     *)         ;;
 esac
 else
-  with_noexec="$libexecdir/sudo_noexec$shrext"
+  with_noexec="$libexecdir/sudo_noexec$_shrext"
 fi;
 echo "$as_me:$LINENO: result: $with_noexec" >&5
 echo "${ECHO_T}$with_noexec" >&6
index 7035c98cf475f2c51dcfc9bd06ac677350ab19e2..d199d44a0fc31c5954b2855358aeb24ae0d29d7f 100644 (file)
@@ -1148,15 +1148,19 @@ AC_PROG_LIBTOOL
 dnl
 dnl Defer with_noexec until after libtool magic runs
 dnl
-test "$enable_shared" = "no" && with_noexec=no
+if test "$enable_shared" = "no"; then
+    with_noexec=no
+else
+    eval _shrext="$shrext"
+fi
 AC_MSG_CHECKING(path to sudo_noexec.so)
 AC_ARG_WITH(noexec, [  --with-noexec           fully qualified pathname of sudo_noexec.so],
 [case $with_noexec in  
-    yes)       with_noexec="$libexecdir/sudo_noexec$shrext"
+    yes)       with_noexec="$libexecdir/sudo_noexec$_shrext"
                ;;
     no)                ;;
     *)         ;;
-esac], [with_noexec="$libexecdir/sudo_noexec$shrext"])
+esac], [with_noexec="$libexecdir/sudo_noexec$_shrext"])
 AC_MSG_RESULT($with_noexec)
 NOEXECDIR="`echo $with_noexec|sed 's:^\(.*\)/[[^/]]*:\1:'`"