fbbe536
commit 1b4247fc0675450564c733e5caa40768cd413162
fbbe536
Author: Changwoo Ryu <cwryu@debian.org>
fbbe536
Date:   Mon Oct 13 03:44:26 2014 +0900
fbbe536
fbbe536
    Add configure --with-python option
fbbe536
    
fbbe536
    It could be used to select python2 or python3
fbbe536
fbbe536
diff --git a/configure.ac b/configure.ac
fbbe536
index 57e4b20..a3e016c 100644
fbbe536
--- a/configure.ac
fbbe536
+++ b/configure.ac
fbbe536
@@ -67,7 +67,12 @@ PKG_CHECK_MODULES(HANGUL, [
fbbe536
 AC_PATH_PROG(ENV_PROG, env)
fbbe536
 AC_SUBST(ENV_PROG)
fbbe536
 
fbbe536
-#check python
fbbe536
+# Define python version
fbbe536
+AC_ARG_WITH(python,
fbbe536
+    AS_HELP_STRING([--with-python[=PATH]],
fbbe536
+        [Select python2 or python3]),
fbbe536
+    [PYTHON=$with_python], []
fbbe536
+)
fbbe536
 AM_PATH_PYTHON([2.5])
fbbe536
 
fbbe536
 # define GETTEXT_* variables