Changeset 858f07f


Ignore:
Timestamp:
08/18/06 21:58:19 (14 years ago)
Author:
Perry Lorier <perry@…>
Branches:
4.0.1-hotfixes, cachetimestamps, develop, dpdk-ndag, etsilive, getfragoff, help, libtrace4, master, ndag_format, pfring, rc-4.0.1, rc-4.0.2, rc-4.0.3, rc-4.0.4, ringdecrementfix, ringperformance, ringtimestampfixes
Children:
ace188a
Parents:
bdca481
Message:

Support disabling python bindings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • configure.in

    rbdca481 r858f07f  
    5151
    5252AC_PROG_LIBTOOL
    53 AM_PATH_PYTHON(2.3)
    54 AC_PROG_SWIG(1.3.21)
    55 SWIG_PYTHON
     53
     54
     55AC_ARG_ENABLE(swig,
     56[  --disable-swig               don't generate python bindings],
     57lt_use_python=true,lt_use_python=false)
     58
     59if test "x$lt_use_python" = "xtrue"
     60then
     61        AM_PATH_PYTHON(2.3)
     62        AC_PROG_SWIG(1.3.21)
     63        SWIG_PYTHON
     64fi
    5665
    5766# Checks for library functions.
     
    218227
    219228libtrace_swig=false;
    220 if test -n $SWIG; then
     229if test -n "$SWIG"; then
    221230        libtrace_swig=true;
    222231fi
     
    277286
    278287if test x"$libtrace_swig" = xtrue; then
    279         if test x"$libtrace_python"; then
     288        if test x"$libtrace_python" = xtrue; then
    280289                AC_MSG_NOTICE([Building swig bindings for: python])
     290        else
     291                AC_MSG_NOTICE([Building swig bindings for: Nothing])
    281292        fi
    282293else
    283         AC_MSG_NOTICE([Building swig bindings for: Nothing])
    284 fi
     294        AC_MSG_NOTICE([Not building swig bindings])
     295fi
Note: See TracChangeset for help on using the changeset viewer.