* configure.ac: Allow setting USE_EXEC_PATH to lock the exec-path to a
authorDavid Shaw <dshaw@jabberwocky.com>
Wed, 3 Jul 2002 04:05:06 +0000 (04:05 +0000)
committerDavid Shaw <dshaw@jabberwocky.com>
Wed, 3 Jul 2002 04:05:06 +0000 (04:05 +0000)
fixed value.

ChangeLog
configure.ac

index 1404878..f0cb83c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2002-07-03  David Shaw  <dshaw@jabberwocky.com>
+
+       * configure.ac: Allow setting USE_EXEC_PATH to lock the exec-path
+       to a fixed value.
+
 2002-07-01  Werner Koch  <wk@gnupg.org>
 
        * configure.ac: Set version number to 1.1.91.
index da1e345..65bc087 100644 (file)
@@ -130,6 +130,17 @@ if test "$use_exec" = no ; then
 fi
 
 if test "$use_exec" = yes ; then
+  AC_MSG_CHECKING([for a restricted exec-path])
+  AC_ARG_WITH(exec-path,
+      [  --with-exec-path=PATH        restrict exec-path to PATH],
+      [if test "$withval" = yes ; then
+         withval=no
+      else
+         AC_DEFINE_UNQUOTED(USE_EXEC_PATH,"$withval",
+                           [restrict exec-path to this])
+      fi],withval=no)
+  AC_MSG_RESULT($withval)
+
   AC_MSG_CHECKING([whether LDAP keyserver support is requested])
   AC_ARG_ENABLE(ldap,
   [  --disable-ldap          disable LDAP keyserver interface],