Commit 2e624985 authored by Vincent Castellano's avatar Vincent Castellano

Merge branch 'python-bindings' of github.com:datamachine/tg into python-bindings

Conflicts:
	Makefile.in
	config.h.in
	configure
	main.c
parents 287011c1 1b3cdff3
......@@ -1338,7 +1338,6 @@ Optional Features:
--enable-libconfig/--disable-libconfig
--enable-extf/--disable-extf
--enable-liblua/--disable-liblua
<<<<<<< HEAD
--enable-json/--disable-json
--enable-valgrind/--disable-valgrind
--enable-python/--disable-python
......@@ -6380,6 +6379,7 @@ $as_echo "#define USE_PYTHON 1" >>confdefs.h
fi
<<<<<<< HEAD
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libjansson" >&5
$as_echo_n "checking for libjansson... " >&6; }
......@@ -6501,6 +6501,8 @@ $as_echo "#define USE_JSON 1" >>confdefs.h
fi
=======
>>>>>>> 1b3cdff3fde9a12d9251fa388fc86a94a905db2a
#check for custom prog name
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking progname" >&5
......
......@@ -94,6 +94,19 @@ AC_ARG_ENABLE(liblua,[--enable-liblua/--disable-liblua],
AC_MSG_ERROR([No lua found. Try --disable-liblua])
])
])
AC_ARG_ENABLE(python,[--enable-python/--disable-python],
[
AX_PYTHON()
dnl python checks (you can change the required python version bellow)
AM_PATH_PYTHON(2.7.0)
PY_PREFIX=`$PYTHON -c 'import sys ; print sys.prefix'`
AC_SUBST([PYTHON_LIBS])
AC_SUBST([PYTHON_CFLAGS])
EXTRA_LIBS="${EXTRA_LIBS} -l${PYTHON_LIB}"
CPPFLAGS="${CPPFLAGS} -I${PYTHON_INCLUDE_DIR}"
AC_DEFINE(USE_PYTHON,1,[use python])
])
AC_MSG_CHECKING([for libjansson])
AC_ARG_ENABLE(json,[--enable-json/--disable-json],
......
......@@ -496,6 +496,9 @@ void usage (void) {
#ifdef USE_PYTHON
printf (" -Z python script file\n");
#endif
#ifdef USE_PYTHON
printf (" -Z python script file\n");
#endif
printf (" -W send dialog_list query and wait for answer before reading input\n");
printf (" -C disable color output\n");
printf (" -R disable readline\n");
......@@ -674,6 +677,7 @@ void args_parse (int argc, char **argv) {
"Z:"
#endif
, long_options, NULL
)) != -1) {
switch (opt) {
case 1000:
......
Subproject commit b3dcce35110f5c995366318c2886065287815d09
Subproject commit 76824c29a6dcb424e1109e691d31280a9cbaa954
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment