Changeset 14351

Show
Ignore:
Timestamp:
01/10/08 12:53:43 (1 year ago)
Author:
piotras
Message:

Fixed for systems without python-config and with automake < 1.9
( maemo for example )

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/midgard/apis/python/configure.in

    r13436 r14351  
    66dnl Automake is needed for the build system. 
    77dnl 
    8 AM_INIT_AUTOMAKE([1.9]) 
     8AM_INIT_AUTOMAKE([1.8]) 
    99AM_MAINTAINER_MODE 
    1010 
     
    3030        [PY_CONFIG="$withval"], 
    3131        [AC_PATH_PROG([PY_CONFIG],["python-config"])]) 
    32 PYTHON_INCLUDES=`$PY_CONFIG --includes` 
    33 exec_prefix=`$PY_CONFIG --exec-prefix` 
     32 
     33if test "$PY_CONFIG" = ""; then 
     34        PYTHON_INCLUDES="-I/usr/include/python2.4" 
     35        exec_prefix="/usr"       
     36else 
     37        PYTHON_INCLUDES=`$PY_CONFIG --includes` 
     38        exec_prefix=`$PY_CONFIG --exec-prefix` 
     39fi 
    3440 
    3541PYGOBJECT_CFLAGS=`$PKGCONFIG --cflags  pygobject-2.0`