Erik Grinaker is sharing code with you
Bitbucket is a code hosting site. Unlimited public and private repositories. Free for small teams.
Don't show this againRevelation / acinclude.m4
- commit
- c612387bf775
- parent
- d1c13e095736
- branch
- default
- tags
- revelation-0.4.0
fixed typo in python path checks
1 |
ab267e8bc63d
|
AC_DEFUN(RVL_FDO_MIME, [ |
2 |
ab267e8bc63d
|
AC_PATH_PROG(UPDATE_DESKTOP_DATABASE, update-desktop-database, no) |
3 |
ab267e8bc63d
|
AC_PATH_PROG(UPDATE_MIME_DATABASE, update-mime-database, no) |
4 |
ab267e8bc63d
|
|
5 |
ab267e8bc63d
|
AC_ARG_ENABLE(desktop-update, [AC_HELP_STRING(--disable-desktop-update, Disable the MIME desktop database update)], disable_desktop=yes, disable_desktop=no) |
6 |
ab267e8bc63d
|
AC_ARG_ENABLE(mime-update, [AC_HELP_STRING(--disable-mime-update, Disable the MIME database update)], disable_mime=yes, disable_mime=no) |
7 |
ab267e8bc63d
|
|
8 |
ab267e8bc63d
|
AM_CONDITIONAL(HAVE_FDO_DESKTOP, test "x$UPDATE_DESKTOP_DATABASE" != "xno" -a "x$disable_desktop" = "xno") |
9 |
ab267e8bc63d
|
AM_CONDITIONAL(HAVE_FDO_MIME, test "x$UPDATE_MIME_DATABASE" != "xno" -a "x$disable_mime" = "xno") |
10 |
ab267e8bc63d
|
]) |
11 |
ab267e8bc63d
|
|
12 |
ab267e8bc63d
|
AC_DEFUN(RVL_GCONF, [ |
13 |
ab267e8bc63d
|
AC_PATH_PROG(GCONFTOOL, gconftool-2, no) |
14 |
ab267e8bc63d
|
|
15 |
ab267e8bc63d
|
if test "x$GCONFTOOL" = "xno"; then |
16 |
ab267e8bc63d
|
AC_MSG_ERROR(gconftool-2 not found in your path) |
17 |
ab267e8bc63d
|
fi |
18 |
ab267e8bc63d
|
|
19 |
ab267e8bc63d
|
AM_GCONF_SOURCE_2 |
20 |
ab267e8bc63d
|
]) |
21 |
ab267e8bc63d
|
|
22 |
ab267e8bc63d
|
AC_DEFUN(RVL_PYTHON_MODULE, [ |
23 |
ab267e8bc63d
|
AC_MSG_CHECKING(python module $1) |
24 |
ab267e8bc63d
|
|
25 |
ab267e8bc63d
|
$PYTHON -c "import $1" 2>/dev/null |
26 |
ab267e8bc63d
|
|
27 |
ab267e8bc63d
|
if test $? -eq 0; then |
28 |
ab267e8bc63d
|
AC_MSG_RESULT(yes) |
29 |
ab267e8bc63d
|
eval AS_TR_CPP(HAVE_PYMOD_$1)=yes |
30 |
ab267e8bc63d
|
else |
31 |
ab267e8bc63d
|
AC_MSG_RESULT(no) |
32 |
ab267e8bc63d
|
AC_MSG_ERROR(failed to find module $1) |
33 |
ab267e8bc63d
|
exit 1 |
34 |
ab267e8bc63d
|
fi |
35 |
ab267e8bc63d
|
]) |
36 |
ab267e8bc63d
|
|
37 |
ab267e8bc63d
|
AC_DEFUN(RVL_PYTHON_PATH, [ |
38 |
ab267e8bc63d
|
AC_MSG_CHECKING(Python include path) |
39 |
ab267e8bc63d
|
AC_ARG_WITH(python-include, [AC_HELP_STRING(--with-python-include=PATH, Path to Pyton include dir)], PYTHON_INCLUDE=$withval) |
40 |
ab267e8bc63d
|
|
41 |
ab267e8bc63d
|
if test -z "$PYTHON_INCLUDE" ; then |
42 |
ab267e8bc63d
|
PYTHON_INCLUDE=$PYTHON |
43 |
ab267e8bc63d
|
rvl_py_include_path=`echo $PYTHON_INCLUDE | sed -e "s/bin/include/"` |
44 |
ab267e8bc63d
|
rvl_py_version="`$PYTHON -c "import sys; print sys.version[[0:3]]"`"; |
45 |
c612387bf775
|
PYTHON_INCLUDE="$rvl_py_include_path$rvl_py_version" |
46 |
ab267e8bc63d
|
fi |
47 |
ab267e8bc63d
|
|
48 |
ab267e8bc63d
|
AC_MSG_RESULT($PYTHON_INCLUDE) |
49 |
ab267e8bc63d
|
AC_SUBST(PYTHON_INCLUDE) |
50 |
ab267e8bc63d
|
]) |
51 |
ab267e8bc63d
|