Changeset 1441

Show
Ignore:
Timestamp:
11/23/07 00:39:28 (9 months ago)
Author:
common
Message:

libemu

  • move python binding to bindings/python, integrate in autoconf using conditional dirs
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • libemu/trunk/Makefile.am

    r1424 r1441  
    33AUTOMAKE_OPTIONS = foreign 
    44 
    5 SUBDIRS = src include testsuite doc 
     5SUBDIRS = src include testsuite doc bindings 
    66 
    77 
  • libemu/trunk/bindings/python/setup.py

    r1439 r1441  
    55libemu = Extension('libemu', 
    66                    sources = ['libemu_module.c'], 
    7                     include_dirs = ['../include'], 
     7                    include_dirs = ['../../include'], 
    88                    library_dirs = ['/opt/libemu/lib/libemu'], 
    99                    libraries = ['emu'], 
  • libemu/trunk/configure.ac

    r1436 r1441  
    136136 
    137137 
     138dnl ************************************************** 
     139dnl * python bindings                                * 
     140dnl ************************************************** 
     141 
     142AC_ARG_ENABLE([python-bindings], 
     143                [  --enable-python-bindings    Compile bindings for Python], 
     144                [case "${enableval}" in 
     145                        yes) enable_python=true ;; 
     146                        no)  enable_python=false ;; 
     147                        *) AC_MSG_ERROR([bad value ${enableval} for --enable-bython-bindings]) ;; 
     148                esac], 
     149                [enable_python=false]) 
     150 
     151AM_CONDITIONAL([ENABLE_PYTHON_BINDINGS], [test x$enable_python = xtrue]) 
     152 
    138153 
    139154 
     
    174189                testsuite/Makefile 
    175190                doc/Makefile 
    176                 libemu.pc]) 
     191                libemu.pc 
     192                bindings/Makefile 
     193                bindings/python/Makefile]) 
    177194 
    178195                  
    179196AC_OUTPUT 
    180197 
     198echo 
     199echo "*** libemu configuration ***" 
     200echo "general" 
     201echo " - interactive hooks               : $enable_interactive_hooks" 
     202echo "" 
     203echo "bindings" 
     204echo " - python                          : $enable_python"