+CFLAGS="$CFLAGS $DEBUG"
+
+dnl Check for Python
+AC_CHECK_HEADER([python2.2/Python.h],
+ ,
+ AC_MSG_ERROR([Openbox requires the use of Python 2.2. This is its secret special formula for extreme sexiness.
+See http://www.python.org
+]))
+AC_CHECK_LIB([python2.2], [Py_Initialize],
+ PYTHON_LDFLAGS="-lpython2.2 -Xlinker -export-dynamic",
+ AC_MSG_ERROR([Openbox requires the use of Python 2.2. This is its secret special formula for extreme sexiness.
+See http://www.python.org
+]))
+AC_SUBST([PYTHON_LDFLAGS])