+
+# Check whether --with-python was given.
+if test "${with_python+set}" = set; then :
+ withval=$with_python;
+else
+ with_python=no
+fi
+
+
+ if test "x$with_python" != "xno"; then :
+
+ CY_PYTHON=1
+
+
+ cy_save=$LIBS
+ LIBS=
+
+
+ for element in `$with_python --includes`; do
+ haveit=
+ for x in $CPPFLAGS; do
+
+ acl_save_prefix="$prefix"
+ prefix="$acl_final_prefix"
+ acl_save_exec_prefix="$exec_prefix"
+ exec_prefix="$acl_final_exec_prefix"
+ eval x=\"$x\"
+ exec_prefix="$acl_save_exec_prefix"
+ prefix="$acl_save_prefix"
+
+ if test "X$x" = "X$element"; then
+ haveit=yes
+ break
+ fi
+ done
+ if test -z "$haveit"; then
+ CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
+ fi
+ done
+
+
+ for element in `$with_python --ldflags`; do
+ haveit=
+ for x in $LIBS; do
+
+ acl_save_prefix="$prefix"
+ prefix="$acl_final_prefix"
+ acl_save_exec_prefix="$exec_prefix"
+ exec_prefix="$acl_final_exec_prefix"
+ eval x=\"$x\"
+ exec_prefix="$acl_save_exec_prefix"
+ prefix="$acl_save_prefix"
+
+ if test "X$x" = "X$element"; then
+ haveit=yes
+ break
+ fi
+ done
+ if test -z "$haveit"; then
+ LIBS="${LIBS}${LIBS:+ }$element"
+ fi
+ done
+
+
+ LTPYTHON=$LIBS
+ LIBS=$cy_save
+
+
+
+else
+
+ CY_PYTHON=0
+
+
+fi
+
+ if test "x$with_python" != "xno"; then
+ CY_PRELINK_TRUE=
+ CY_PRELINK_FALSE='#'
+else
+ CY_PRELINK_TRUE='#'
+ CY_PRELINK_FALSE=
+fi
+
+