[apparmor] [patch 01/10] libapparmor - fail configure if swig not found

Tyler Hicks tyhicks at canonical.com
Fri Sep 6 18:09:06 UTC 2013


On 2013-09-05 01:36:56, Steve Beattie wrote:
> This patch causes libapparmor's configure script to exit with an error
> if any of the language bindings are requested but swig has not been
> found earlier in the configure script. Without this script, configure
> would bury the inability to find swig in its output, without informing
> the user that building any of the language bindings would fail.
> 
> Patch is for both trunk and 2.8.3.
> 
> Signed-off-by: Steve Beattie <steve at nxnw.org>

Acked-by: Tyler Hicks <tyhicks at canonical.com>

> 
> ---
>  libraries/libapparmor/configure.in |   32 +++++++++++++++++---------------
>  1 file changed, 17 insertions(+), 15 deletions(-)
> 
> Index: b/libraries/libapparmor/configure.in
> ===================================================================
> --- a/libraries/libapparmor/configure.in
> +++ b/libraries/libapparmor/configure.in
> @@ -22,6 +22,7 @@ AC_ARG_WITH(python,
>  [  --with-python           enable the python wrapper  [[default=no]]],
>  [AC_MSG_RESULT($withval)], [AC_MSG_RESULT(no)])
>  if test "$with_python" = "yes"; then
> +   test -z "$SWIG" && AC_MSG_ERROR([swig is required when enabling python bindings])
>     AC_PATH_PROG(PYTHON, python, no)
>     if test x$PYTHON = xno; then
>        enable_python = no
> @@ -37,6 +37,7 @@ AC_ARG_WITH(perl,
>  [ --with-perl           enable the perl wrapper [[default=no]]],
>  [AC_MSG_RESULT($withval)], [AC_MSG_RESULT(no)])
>  if test "$with_perl" = "yes"; then
> +   test -z "$SWIG" && AC_MSG_ERROR([swig is required when enabling perl bindings])
>     AC_PATH_PROG(PERL, perl, no)    
>     if test x$PERL = xno; then
>        enable_perl=no
> @@ -52,6 +51,7 @@ AC_ARG_WITH(ruby,
>  [ --with-ruby           enable the ruby wrapper [[default=no]]],
>  [AC_MSG_RESULT($withval)], [AC_MSG_RESULT(no)])
>  if test "$with_ruby" = "yes"; then
> +   test -z "$SWIG" && AC_MSG_ERROR([swig is required when enabling ruby bindings])
>     AC_PATH_PROG([RUBY], [ruby])
>  fi
>  
>  
> 
> 
> -- 
> AppArmor mailing list
> AppArmor at lists.ubuntu.com
> Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/apparmor
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <https://lists.ubuntu.com/archives/apparmor/attachments/20130906/00c39953/attachment.pgp>


More information about the AppArmor mailing list