autoconf-archive-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Patch for "ax_swig_python.m4"


From: Christian Ferrari
Subject: Patch for "ax_swig_python.m4"
Date: Thu, 18 Oct 2018 21:05:36 +0000 (UTC)

Da: Christian Ferrari <address@hidden>
A: address@hidden <address@hidden>
Cc: address@hidden <address@hidden>; address@hidden <address@hidden>
Inviato: giovedì 18 ottobre 2018, 23:02:51 CEST
Oggetto: Patch for "ax_swig_python.m4"

In the event that "swig" is not available, SWIG variable is blank, but the macro sets it to " -c++".
Further checks on SWIG variable, like:
    if test "z$SWIG" != "z"
are passed even if "swig" is not available.
At some point a build procedure fails because it does not skip the part that requires "swig", and the command " -c++" is issued.

The macro can be fixed with a small patch: just change SWIG variable only if it's not blank.

address@hidden:~/lixa/m4include$ diff /home/tiian/autoconf-archive/m4/ax_swig_enable_cxx.m4 ax_swig_enable_cxx.m4
52c52,54
<         SWIG="$SWIG -c++"
---
>         if test "z$SWIG" != "z"; then
>                 SWIG="$SWIG -c++"
>         fi

Kind Regards
Ch.F.

-------------------------------------------------------------
Good design can't stop bad implementation

reply via email to

[Prev in Thread] Current Thread [Next in Thread]