aboutsummaryrefslogtreecommitdiff
path: root/databases/hk_classes
diff options
context:
space:
mode:
authorTilman Keskinoz <arved@FreeBSD.org>2003-11-04 18:33:12 +0000
committerTilman Keskinoz <arved@FreeBSD.org>2003-11-04 18:33:12 +0000
commit9c4790dc36c3c2048041c5e4821faa241944d5a1 (patch)
treef595bca01b04f32eeb09b0883ee9577c4e48ac11 /databases/hk_classes
parent7524984514d9912fcc2d995f43ccf22ad0ce3c5f (diff)
downloadports-9c4790dc36c3c2048041c5e4821faa241944d5a1.tar.gz
ports-9c4790dc36c3c2048041c5e4821faa241944d5a1.zip
Notes
Diffstat (limited to 'databases/hk_classes')
-rw-r--r--databases/hk_classes/Makefile4
-rw-r--r--databases/hk_classes/files/patch-configure1432
-rw-r--r--databases/hk_classes/pkg-plist3
3 files changed, 1438 insertions, 1 deletions
diff --git a/databases/hk_classes/Makefile b/databases/hk_classes/Makefile
index 51be272d8b78..ad4ee855f0c3 100644
--- a/databases/hk_classes/Makefile
+++ b/databases/hk_classes/Makefile
@@ -6,7 +6,7 @@
PORTNAME= hk_classes
PORTVERSION= 0.6.1
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= databases
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= hk-classes
@@ -38,6 +38,8 @@ PLIST_SUB+= POSTGRESQL=""
PLIST_SUB+= POSTGRESQL="@comment "
.endif
+USE_PYTHON= yes
+CONFIGURE_ENV+= LIBPYTHON="-l${PYTHON_VERSION} ${PTHREAD_LIBS}"
CONFIGURE_TARGET=
CONFIGURE_ARGS+=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
GNU_CONFIGURE= yes
diff --git a/databases/hk_classes/files/patch-configure b/databases/hk_classes/files/patch-configure
new file mode 100644
index 000000000000..1c50b00819c6
--- /dev/null
+++ b/databases/hk_classes/files/patch-configure
@@ -0,0 +1,1432 @@
+--- configure.orig Tue Nov 4 19:13:40 2003
++++ configure Tue Nov 4 19:15:08 2003
+@@ -8783,10 +8783,10 @@
+
+
+
+-if test -z ""2.2""; then
++if test -z ""2.3""; then
+ version="1.5"
+ else
+- version=""2.2""
++ version=""2.3""
+ fi
+
+ echo "$as_me:$LINENO: checking for Python$version" >&5
+@@ -8911,10 +8911,10 @@
+
+
+
+-if test -z ""2.1""; then
++if test -z ""2.2""; then
+ version="1.5"
+ else
+- version=""2.1""
++ version=""2.2""
+ fi
+
+ echo "$as_me:$LINENO: checking for Python$version" >&5
+@@ -9039,10 +9039,10 @@
+
+
+
+-if test -z ""2.0""; then
++if test -z ""2.1""; then
+ version="1.5"
+ else
+- version=""2.0""
++ version=""2.1""
+ fi
+
+ echo "$as_me:$LINENO: checking for Python$version" >&5
+@@ -9167,10 +9167,10 @@
+
+
+
+-if test -z ""; then
++if test -z ""2.0""; then
+ version="1.5"
+ else
+- version=""
++ version=""2.0""
+ fi
+
+ echo "$as_me:$LINENO: checking for Python$version" >&5
+@@ -9291,6 +9291,134 @@
+ test "x$PYTHONLIB" = "x-Lno" && PYTHONLIB=""
+ test "x$PYTHONINC" = "x-Ino" && PYTHONINC=""
+
++
++
++
++
++if test -z ""; then
++ version="1.5"
++else
++ version=""
++fi
++
++echo "$as_me:$LINENO: checking for Python$version" >&5
++echo $ECHO_N "checking for Python$version... $ECHO_C" >&6
++
++python_incdirs="$ac_python_dir/include /usr/include /usr/local/include/ $kde_extra_includes"
++
++python_incdir=NO
++for i in $python_incdirs;
++do
++ for j in Python.h;
++ do
++ echo "configure: 9314: $i/$j" >&5
++ if test -r "$i/$j"; then
++ echo "taking that" >&5
++ python_incdir=$i
++ break 2
++ fi
++ done
++done
++
++if test ! -r $python_incdir/Python.h; then
++
++python_incdir=NO
++for i in $python_incdirs;
++do
++ for j in python$version/Python.h;
++ do
++ echo "configure: 9330: $i/$j" >&5
++ if test -r "$i/$j"; then
++ echo "taking that" >&5
++ python_incdir=$i
++ break 2
++ fi
++ done
++done
++
++ python_incdir=$python_incdir/python$version
++ if test ! -r $python_incdir/Python.h; then
++ python_incdir=no
++ fi
++fi
++
++PYTHONINC=-I$python_incdir
++
++python_libdirs="$ac_python_dir/lib /usr/lib /usr/local /usr/lib $kde_extra_libs"
++
++python_libdir=NO
++for i in $python_libdirs;
++do
++ for j in libpython$version.a;
++ do
++ echo "configure: 9354: $i/$j" >&5
++ if test -r "$i/$j"; then
++ echo "taking that" >&5
++ python_libdir=$i
++ break 2
++ fi
++ done
++done
++
++if test ! -r $python_libdir/libpython$version.a; then
++
++python_libdir=NO
++for i in $python_libdirs;
++do
++ for j in python$version/config/libpython$version.a;
++ do
++ echo "configure: 9370: $i/$j" >&5
++ if test -r "$i/$j"; then
++ echo "taking that" >&5
++ python_libdir=$i
++ break 2
++ fi
++ done
++done
++
++ python_libdir=$python_libdir/python$version/config
++ if test ! -r $python_libdir/libpython$version.a; then
++ python_libdir=no
++ fi
++fi
++
++PYTHONLIB=-L$python_libdir
++kde_orig_LIBPYTHON=$LIBPYTHON
++if test -z "$LIBPYTHON"; then
++ LIBPYTHON=-lpython$version
++fi
++
++python_libdirs="$ac_python_dir/lib /usr/lib /usr/local /usr/lib $kde_extra_libs"
++
++python_moddir=NO
++for i in $python_libdirs;
++do
++ for j in python$version/copy.py;
++ do
++ echo "configure: 9398: $i/$j" >&5
++ if test -r "$i/$j"; then
++ echo "taking that" >&5
++ python_moddir=$i
++ break 2
++ fi
++ done
++done
++
++python_moddir=$python_moddir/python$version
++if test ! -r $python_moddir/copy.py; then
++ python_moddir=no
++fi
++
++PYTHONMODDIR=$python_moddir
++
++echo "$as_me:$LINENO: result: header $python_incdir library $python_libdir modules $python_moddir" >&5
++echo "${ECHO_T}header $python_incdir library $python_libdir modules $python_moddir" >&6
++
++if test x$python_incdir = xno || test x$python_libdir = xno || test x$python_moddir = xno; then
++ LIBPYTHON=$kde_orig_LIBPYTHON
++ test "x$PYTHONLIB" = "x-Lno" && PYTHONLIB=""
++ test "x$PYTHONINC" = "x-Ino" && PYTHONINC=""
++
+ else
+ kde_python_link_found=no
+
+@@ -11762,6 +11890,1242 @@
+
+ fi
+
++
++
++else
++ kde_python_link_found=no
++
++if test "$kde_python_link_found" = no; then
++
++if test "normal" = normal; then
++ echo "$as_me:$LINENO: checking if a Python application links" >&5
++echo $ECHO_N "checking if a Python application links... $ECHO_C" >&6
++else
++ echo "$as_me:$LINENO: checking if Python depends on " >&5
++echo $ECHO_N "checking if Python depends on ... $ECHO_C" >&6
++fi
++
++if test "${kde_cv_try_link_python_normal+set}" = set; then
++ echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++
++
++
++ac_ext=c
++ac_cpp='$CPP $CPPFLAGS'
++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
++ac_compiler_gnu=$ac_cv_c_compiler_gnu
++
++kde_save_cflags="$CFLAGS"
++CFLAGS="$CFLAGS $PYTHONINC"
++kde_save_libs="$LIBS"
++LIBS="$LIBS $LIBPYTHON $LIBDL $LIBSOCKET"
++kde_save_ldflags="$LDFLAGS"
++LDFLAGS="$LDFLAGS $PYTHONLIB"
++
++cat >conftest.$ac_ext <<_ACEOF
++#line $LINENO "configure"
++/* confdefs.h. */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h. */
++
++#include <Python.h>
++
++int
++main ()
++{
++
++ PySys_SetArgv(1, 0);
++
++ ;
++ return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext conftest$ac_exeext
++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
++ (eval $ac_link) 2>&5
++ ac_status=$?
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); } &&
++ { ac_try='test -s conftest$ac_exeext'
++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++ (eval $ac_try) 2>&5
++ ac_status=$?
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); }; }; then
++ kde_cv_try_link_python_normal=yes
++else
++ echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++kde_cv_try_link_python_normal=no
++
++fi
++rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
++CFLAGS="$kde_save_cflags"
++LIBS="$kde_save_libs"
++LDFLAGS="$kde_save_ldflags"
++
++fi
++
++
++if test "$kde_cv_try_link_python_normal" = "yes"; then
++ echo "$as_me:$LINENO: result: yes" >&5
++echo "${ECHO_T}yes" >&6
++ kde_python_link_found=yes
++ if test ! "normal" = normal; then
++ LIBPYTHON="$LIBPYTHON "
++ fi
++
++else
++ echo "$as_me:$LINENO: result: no" >&5
++echo "${ECHO_T}no" >&6
++
++fi
++ac_ext=cc
++ac_cpp='$CXXCPP $CPPFLAGS'
++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
++
++
++fi
++
++
++
++if test "$kde_python_link_found" = no; then
++
++if test "m" = normal; then
++ echo "$as_me:$LINENO: checking if a Python application links" >&5
++echo $ECHO_N "checking if a Python application links... $ECHO_C" >&6
++else
++ echo "$as_me:$LINENO: checking if Python depends on -lm" >&5
++echo $ECHO_N "checking if Python depends on -lm... $ECHO_C" >&6
++fi
++
++if test "${kde_cv_try_link_python_m+set}" = set; then
++ echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++
++
++
++ac_ext=c
++ac_cpp='$CPP $CPPFLAGS'
++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
++ac_compiler_gnu=$ac_cv_c_compiler_gnu
++
++kde_save_cflags="$CFLAGS"
++CFLAGS="$CFLAGS $PYTHONINC"
++kde_save_libs="$LIBS"
++LIBS="$LIBS $LIBPYTHON -lm $LIBDL $LIBSOCKET"
++kde_save_ldflags="$LDFLAGS"
++LDFLAGS="$LDFLAGS $PYTHONLIB"
++
++cat >conftest.$ac_ext <<_ACEOF
++#line $LINENO "configure"
++/* confdefs.h. */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h. */
++
++#include <Python.h>
++
++int
++main ()
++{
++
++ PySys_SetArgv(1, 0);
++
++ ;
++ return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext conftest$ac_exeext
++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
++ (eval $ac_link) 2>&5
++ ac_status=$?
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); } &&
++ { ac_try='test -s conftest$ac_exeext'
++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++ (eval $ac_try) 2>&5
++ ac_status=$?
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); }; }; then
++ kde_cv_try_link_python_m=yes
++else
++ echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++kde_cv_try_link_python_m=no
++
++fi
++rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
++CFLAGS="$kde_save_cflags"
++LIBS="$kde_save_libs"
++LDFLAGS="$kde_save_ldflags"
++
++fi
++
++
++if test "$kde_cv_try_link_python_m" = "yes"; then
++ echo "$as_me:$LINENO: result: yes" >&5
++echo "${ECHO_T}yes" >&6
++ kde_python_link_found=yes
++ if test ! "m" = normal; then
++ LIBPYTHON="$LIBPYTHON -lm"
++ fi
++
++else
++ echo "$as_me:$LINENO: result: no" >&5
++echo "${ECHO_T}no" >&6
++
++fi
++ac_ext=cc
++ac_cpp='$CXXCPP $CPPFLAGS'
++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
++
++
++fi
++
++
++
++if test "$kde_python_link_found" = no; then
++
++if test "pthread" = normal; then
++ echo "$as_me:$LINENO: checking if a Python application links" >&5
++echo $ECHO_N "checking if a Python application links... $ECHO_C" >&6
++else
++ echo "$as_me:$LINENO: checking if Python depends on $LIBPTHREAD" >&5
++echo $ECHO_N "checking if Python depends on $LIBPTHREAD... $ECHO_C" >&6
++fi
++
++if test "${kde_cv_try_link_python_pthread+set}" = set; then
++ echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++
++
++
++ac_ext=c
++ac_cpp='$CPP $CPPFLAGS'
++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
++ac_compiler_gnu=$ac_cv_c_compiler_gnu
++
++kde_save_cflags="$CFLAGS"
++CFLAGS="$CFLAGS $PYTHONINC"
++kde_save_libs="$LIBS"
++LIBS="$LIBS $LIBPYTHON $LIBPTHREAD $LIBDL $LIBSOCKET"
++kde_save_ldflags="$LDFLAGS"
++LDFLAGS="$LDFLAGS $PYTHONLIB"
++
++cat >conftest.$ac_ext <<_ACEOF
++#line $LINENO "configure"
++/* confdefs.h. */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h. */
++
++#include <Python.h>
++
++int
++main ()
++{
++
++ PySys_SetArgv(1, 0);
++
++ ;
++ return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext conftest$ac_exeext
++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
++ (eval $ac_link) 2>&5
++ ac_status=$?
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); } &&
++ { ac_try='test -s conftest$ac_exeext'
++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++ (eval $ac_try) 2>&5
++ ac_status=$?
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); }; }; then
++ kde_cv_try_link_python_pthread=yes
++else
++ echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++kde_cv_try_link_python_pthread=no
++
++fi
++rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
++CFLAGS="$kde_save_cflags"
++LIBS="$kde_save_libs"
++LDFLAGS="$kde_save_ldflags"
++
++fi
++
++
++if test "$kde_cv_try_link_python_pthread" = "yes"; then
++ echo "$as_me:$LINENO: result: yes" >&5
++echo "${ECHO_T}yes" >&6
++ kde_python_link_found=yes
++ if test ! "pthread" = normal; then
++ LIBPYTHON="$LIBPYTHON $LIBPTHREAD"
++ fi
++
++else
++ echo "$as_me:$LINENO: result: no" >&5
++echo "${ECHO_T}no" >&6
++
++fi
++ac_ext=cc
++ac_cpp='$CXXCPP $CPPFLAGS'
++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
++
++
++fi
++
++
++
++if test "$kde_python_link_found" = no; then
++
++if test "tcl" = normal; then
++ echo "$as_me:$LINENO: checking if a Python application links" >&5
++echo $ECHO_N "checking if a Python application links... $ECHO_C" >&6
++else
++ echo "$as_me:$LINENO: checking if Python depends on -ltcl" >&5
++echo $ECHO_N "checking if Python depends on -ltcl... $ECHO_C" >&6
++fi
++
++if test "${kde_cv_try_link_python_tcl+set}" = set; then
++ echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++
++
++
++ac_ext=c
++ac_cpp='$CPP $CPPFLAGS'
++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
++ac_compiler_gnu=$ac_cv_c_compiler_gnu
++
++kde_save_cflags="$CFLAGS"
++CFLAGS="$CFLAGS $PYTHONINC"
++kde_save_libs="$LIBS"
++LIBS="$LIBS $LIBPYTHON -ltcl $LIBDL $LIBSOCKET"
++kde_save_ldflags="$LDFLAGS"
++LDFLAGS="$LDFLAGS $PYTHONLIB"
++
++cat >conftest.$ac_ext <<_ACEOF
++#line $LINENO "configure"
++/* confdefs.h. */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h. */
++
++#include <Python.h>
++
++int
++main ()
++{
++
++ PySys_SetArgv(1, 0);
++
++ ;
++ return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext conftest$ac_exeext
++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
++ (eval $ac_link) 2>&5
++ ac_status=$?
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); } &&
++ { ac_try='test -s conftest$ac_exeext'
++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++ (eval $ac_try) 2>&5
++ ac_status=$?
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); }; }; then
++ kde_cv_try_link_python_tcl=yes
++else
++ echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++kde_cv_try_link_python_tcl=no
++
++fi
++rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
++CFLAGS="$kde_save_cflags"
++LIBS="$kde_save_libs"
++LDFLAGS="$kde_save_ldflags"
++
++fi
++
++
++if test "$kde_cv_try_link_python_tcl" = "yes"; then
++ echo "$as_me:$LINENO: result: yes" >&5
++echo "${ECHO_T}yes" >&6
++ kde_python_link_found=yes
++ if test ! "tcl" = normal; then
++ LIBPYTHON="$LIBPYTHON -ltcl"
++ fi
++
++else
++ echo "$as_me:$LINENO: result: no" >&5
++echo "${ECHO_T}no" >&6
++
++fi
++ac_ext=cc
++ac_cpp='$CXXCPP $CPPFLAGS'
++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
++
++
++fi
++
++
++
++if test "$kde_python_link_found" = no; then
++
++if test "db2" = normal; then
++ echo "$as_me:$LINENO: checking if a Python application links" >&5
++echo $ECHO_N "checking if a Python application links... $ECHO_C" >&6
++else
++ echo "$as_me:$LINENO: checking if Python depends on -ldb2" >&5
++echo $ECHO_N "checking if Python depends on -ldb2... $ECHO_C" >&6
++fi
++
++if test "${kde_cv_try_link_python_db2+set}" = set; then
++ echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++
++
++
++ac_ext=c
++ac_cpp='$CPP $CPPFLAGS'
++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
++ac_compiler_gnu=$ac_cv_c_compiler_gnu
++
++kde_save_cflags="$CFLAGS"
++CFLAGS="$CFLAGS $PYTHONINC"
++kde_save_libs="$LIBS"
++LIBS="$LIBS $LIBPYTHON -ldb2 $LIBDL $LIBSOCKET"
++kde_save_ldflags="$LDFLAGS"
++LDFLAGS="$LDFLAGS $PYTHONLIB"
++
++cat >conftest.$ac_ext <<_ACEOF
++#line $LINENO "configure"
++/* confdefs.h. */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h. */
++
++#include <Python.h>
++
++int
++main ()
++{
++
++ PySys_SetArgv(1, 0);
++
++ ;
++ return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext conftest$ac_exeext
++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
++ (eval $ac_link) 2>&5
++ ac_status=$?
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); } &&
++ { ac_try='test -s conftest$ac_exeext'
++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++ (eval $ac_try) 2>&5
++ ac_status=$?
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); }; }; then
++ kde_cv_try_link_python_db2=yes
++else
++ echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++kde_cv_try_link_python_db2=no
++
++fi
++rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
++CFLAGS="$kde_save_cflags"
++LIBS="$kde_save_libs"
++LDFLAGS="$kde_save_ldflags"
++
++fi
++
++
++if test "$kde_cv_try_link_python_db2" = "yes"; then
++ echo "$as_me:$LINENO: result: yes" >&5
++echo "${ECHO_T}yes" >&6
++ kde_python_link_found=yes
++ if test ! "db2" = normal; then
++ LIBPYTHON="$LIBPYTHON -ldb2"
++ fi
++
++else
++ echo "$as_me:$LINENO: result: no" >&5
++echo "${ECHO_T}no" >&6
++
++fi
++ac_ext=cc
++ac_cpp='$CXXCPP $CPPFLAGS'
++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
++
++
++fi
++
++
++
++if test "$kde_python_link_found" = no; then
++
++if test "m_and_thread" = normal; then
++ echo "$as_me:$LINENO: checking if a Python application links" >&5
++echo $ECHO_N "checking if a Python application links... $ECHO_C" >&6
++else
++ echo "$as_me:$LINENO: checking if Python depends on $LIBPTHREAD -lm" >&5
++echo $ECHO_N "checking if Python depends on $LIBPTHREAD -lm... $ECHO_C" >&6
++fi
++
++if test "${kde_cv_try_link_python_m_and_thread+set}" = set; then
++ echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++
++
++
++ac_ext=c
++ac_cpp='$CPP $CPPFLAGS'
++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
++ac_compiler_gnu=$ac_cv_c_compiler_gnu
++
++kde_save_cflags="$CFLAGS"
++CFLAGS="$CFLAGS $PYTHONINC"
++kde_save_libs="$LIBS"
++LIBS="$LIBS $LIBPYTHON $LIBPTHREAD -lm $LIBDL $LIBSOCKET"
++kde_save_ldflags="$LDFLAGS"
++LDFLAGS="$LDFLAGS $PYTHONLIB"
++
++cat >conftest.$ac_ext <<_ACEOF
++#line $LINENO "configure"
++/* confdefs.h. */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h. */
++
++#include <Python.h>
++
++int
++main ()
++{
++
++ PySys_SetArgv(1, 0);
++
++ ;
++ return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext conftest$ac_exeext
++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
++ (eval $ac_link) 2>&5
++ ac_status=$?
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); } &&
++ { ac_try='test -s conftest$ac_exeext'
++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++ (eval $ac_try) 2>&5
++ ac_status=$?
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); }; }; then
++ kde_cv_try_link_python_m_and_thread=yes
++else
++ echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++kde_cv_try_link_python_m_and_thread=no
++
++fi
++rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
++CFLAGS="$kde_save_cflags"
++LIBS="$kde_save_libs"
++LDFLAGS="$kde_save_ldflags"
++
++fi
++
++
++if test "$kde_cv_try_link_python_m_and_thread" = "yes"; then
++ echo "$as_me:$LINENO: result: yes" >&5
++echo "${ECHO_T}yes" >&6
++ kde_python_link_found=yes
++ if test ! "m_and_thread" = normal; then
++ LIBPYTHON="$LIBPYTHON $LIBPTHREAD -lm"
++ fi
++
++else
++ echo "$as_me:$LINENO: result: no" >&5
++echo "${ECHO_T}no" >&6
++
++fi
++ac_ext=cc
++ac_cpp='$CXXCPP $CPPFLAGS'
++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
++
++
++fi
++
++
++
++if test "$kde_python_link_found" = no; then
++
++if test "m_and_thread_and_util" = normal; then
++ echo "$as_me:$LINENO: checking if a Python application links" >&5
++echo $ECHO_N "checking if a Python application links... $ECHO_C" >&6
++else
++ echo "$as_me:$LINENO: checking if Python depends on $LIBPTHREAD -lm -lutil" >&5
++echo $ECHO_N "checking if Python depends on $LIBPTHREAD -lm -lutil... $ECHO_C" >&6
++fi
++
++if test "${kde_cv_try_link_python_m_and_thread_and_util+set}" = set; then
++ echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++
++
++
++ac_ext=c
++ac_cpp='$CPP $CPPFLAGS'
++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
++ac_compiler_gnu=$ac_cv_c_compiler_gnu
++
++kde_save_cflags="$CFLAGS"
++CFLAGS="$CFLAGS $PYTHONINC"
++kde_save_libs="$LIBS"
++LIBS="$LIBS $LIBPYTHON $LIBPTHREAD -lm -lutil $LIBDL $LIBSOCKET"
++kde_save_ldflags="$LDFLAGS"
++LDFLAGS="$LDFLAGS $PYTHONLIB"
++
++cat >conftest.$ac_ext <<_ACEOF
++#line $LINENO "configure"
++/* confdefs.h. */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h. */
++
++#include <Python.h>
++
++int
++main ()
++{
++
++ PySys_SetArgv(1, 0);
++
++ ;
++ return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext conftest$ac_exeext
++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
++ (eval $ac_link) 2>&5
++ ac_status=$?
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); } &&
++ { ac_try='test -s conftest$ac_exeext'
++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++ (eval $ac_try) 2>&5
++ ac_status=$?
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); }; }; then
++ kde_cv_try_link_python_m_and_thread_and_util=yes
++else
++ echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++kde_cv_try_link_python_m_and_thread_and_util=no
++
++fi
++rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
++CFLAGS="$kde_save_cflags"
++LIBS="$kde_save_libs"
++LDFLAGS="$kde_save_ldflags"
++
++fi
++
++
++if test "$kde_cv_try_link_python_m_and_thread_and_util" = "yes"; then
++ echo "$as_me:$LINENO: result: yes" >&5
++echo "${ECHO_T}yes" >&6
++ kde_python_link_found=yes
++ if test ! "m_and_thread_and_util" = normal; then
++ LIBPYTHON="$LIBPYTHON $LIBPTHREAD -lm -lutil"
++ fi
++
++else
++ echo "$as_me:$LINENO: result: no" >&5
++echo "${ECHO_T}no" >&6
++
++fi
++ac_ext=cc
++ac_cpp='$CXXCPP $CPPFLAGS'
++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
++
++
++fi
++
++
++
++if test "$kde_python_link_found" = no; then
++
++if test "m_and_thread_and_db3" = normal; then
++ echo "$as_me:$LINENO: checking if a Python application links" >&5
++echo $ECHO_N "checking if a Python application links... $ECHO_C" >&6
++else
++ echo "$as_me:$LINENO: checking if Python depends on $LIBPTHREAD -lm -ldb-3 -lutil" >&5
++echo $ECHO_N "checking if Python depends on $LIBPTHREAD -lm -ldb-3 -lutil... $ECHO_C" >&6
++fi
++
++if test "${kde_cv_try_link_python_m_and_thread_and_db3+set}" = set; then
++ echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++
++
++
++ac_ext=c
++ac_cpp='$CPP $CPPFLAGS'
++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
++ac_compiler_gnu=$ac_cv_c_compiler_gnu
++
++kde_save_cflags="$CFLAGS"
++CFLAGS="$CFLAGS $PYTHONINC"
++kde_save_libs="$LIBS"
++LIBS="$LIBS $LIBPYTHON $LIBPTHREAD -lm -ldb-3 -lutil $LIBDL $LIBSOCKET"
++kde_save_ldflags="$LDFLAGS"
++LDFLAGS="$LDFLAGS $PYTHONLIB"
++
++cat >conftest.$ac_ext <<_ACEOF
++#line $LINENO "configure"
++/* confdefs.h. */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h. */
++
++#include <Python.h>
++
++int
++main ()
++{
++
++ PySys_SetArgv(1, 0);
++
++ ;
++ return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext conftest$ac_exeext
++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
++ (eval $ac_link) 2>&5
++ ac_status=$?
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); } &&
++ { ac_try='test -s conftest$ac_exeext'
++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++ (eval $ac_try) 2>&5
++ ac_status=$?
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); }; }; then
++ kde_cv_try_link_python_m_and_thread_and_db3=yes
++else
++ echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++kde_cv_try_link_python_m_and_thread_and_db3=no
++
++fi
++rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
++CFLAGS="$kde_save_cflags"
++LIBS="$kde_save_libs"
++LDFLAGS="$kde_save_ldflags"
++
++fi
++
++
++if test "$kde_cv_try_link_python_m_and_thread_and_db3" = "yes"; then
++ echo "$as_me:$LINENO: result: yes" >&5
++echo "${ECHO_T}yes" >&6
++ kde_python_link_found=yes
++ if test ! "m_and_thread_and_db3" = normal; then
++ LIBPYTHON="$LIBPYTHON $LIBPTHREAD -lm -ldb-3 -lutil"
++ fi
++
++else
++ echo "$as_me:$LINENO: result: no" >&5
++echo "${ECHO_T}no" >&6
++
++fi
++ac_ext=cc
++ac_cpp='$CXXCPP $CPPFLAGS'
++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
++
++
++fi
++
++
++
++if test "$kde_python_link_found" = no; then
++
++if test "pthread_and_db3" = normal; then
++ echo "$as_me:$LINENO: checking if a Python application links" >&5
++echo $ECHO_N "checking if a Python application links... $ECHO_C" >&6
++else
++ echo "$as_me:$LINENO: checking if Python depends on $LIBPTHREAD -ldb-3" >&5
++echo $ECHO_N "checking if Python depends on $LIBPTHREAD -ldb-3... $ECHO_C" >&6
++fi
++
++if test "${kde_cv_try_link_python_pthread_and_db3+set}" = set; then
++ echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++
++
++
++ac_ext=c
++ac_cpp='$CPP $CPPFLAGS'
++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
++ac_compiler_gnu=$ac_cv_c_compiler_gnu
++
++kde_save_cflags="$CFLAGS"
++CFLAGS="$CFLAGS $PYTHONINC"
++kde_save_libs="$LIBS"
++LIBS="$LIBS $LIBPYTHON $LIBPTHREAD -ldb-3 $LIBDL $LIBSOCKET"
++kde_save_ldflags="$LDFLAGS"
++LDFLAGS="$LDFLAGS $PYTHONLIB"
++
++cat >conftest.$ac_ext <<_ACEOF
++#line $LINENO "configure"
++/* confdefs.h. */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h. */
++
++#include <Python.h>
++
++int
++main ()
++{
++
++ PySys_SetArgv(1, 0);
++
++ ;
++ return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext conftest$ac_exeext
++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
++ (eval $ac_link) 2>&5
++ ac_status=$?
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); } &&
++ { ac_try='test -s conftest$ac_exeext'
++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++ (eval $ac_try) 2>&5
++ ac_status=$?
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); }; }; then
++ kde_cv_try_link_python_pthread_and_db3=yes
++else
++ echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++kde_cv_try_link_python_pthread_and_db3=no
++
++fi
++rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
++CFLAGS="$kde_save_cflags"
++LIBS="$kde_save_libs"
++LDFLAGS="$kde_save_ldflags"
++
++fi
++
++
++if test "$kde_cv_try_link_python_pthread_and_db3" = "yes"; then
++ echo "$as_me:$LINENO: result: yes" >&5
++echo "${ECHO_T}yes" >&6
++ kde_python_link_found=yes
++ if test ! "pthread_and_db3" = normal; then
++ LIBPYTHON="$LIBPYTHON $LIBPTHREAD -ldb-3"
++ fi
++
++else
++ echo "$as_me:$LINENO: result: no" >&5
++echo "${ECHO_T}no" >&6
++
++fi
++ac_ext=cc
++ac_cpp='$CXXCPP $CPPFLAGS'
++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
++
++
++fi
++
++
++
++if test "$kde_python_link_found" = no; then
++
++if test "m_and_thread_and_db" = normal; then
++ echo "$as_me:$LINENO: checking if a Python application links" >&5
++echo $ECHO_N "checking if a Python application links... $ECHO_C" >&6
++else
++ echo "$as_me:$LINENO: checking if Python depends on $LIBPTHREAD -lm -ldb -ltermcap -lutil" >&5
++echo $ECHO_N "checking if Python depends on $LIBPTHREAD -lm -ldb -ltermcap -lutil... $ECHO_C" >&6
++fi
++
++if test "${kde_cv_try_link_python_m_and_thread_and_db+set}" = set; then
++ echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++
++
++
++ac_ext=c
++ac_cpp='$CPP $CPPFLAGS'
++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
++ac_compiler_gnu=$ac_cv_c_compiler_gnu
++
++kde_save_cflags="$CFLAGS"
++CFLAGS="$CFLAGS $PYTHONINC"
++kde_save_libs="$LIBS"
++LIBS="$LIBS $LIBPYTHON $LIBPTHREAD -lm -ldb -ltermcap -lutil $LIBDL $LIBSOCKET"
++kde_save_ldflags="$LDFLAGS"
++LDFLAGS="$LDFLAGS $PYTHONLIB"
++
++cat >conftest.$ac_ext <<_ACEOF
++#line $LINENO "configure"
++/* confdefs.h. */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h. */
++
++#include <Python.h>
++
++int
++main ()
++{
++
++ PySys_SetArgv(1, 0);
++
++ ;
++ return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext conftest$ac_exeext
++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
++ (eval $ac_link) 2>&5
++ ac_status=$?
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); } &&
++ { ac_try='test -s conftest$ac_exeext'
++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++ (eval $ac_try) 2>&5
++ ac_status=$?
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); }; }; then
++ kde_cv_try_link_python_m_and_thread_and_db=yes
++else
++ echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++kde_cv_try_link_python_m_and_thread_and_db=no
++
++fi
++rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
++CFLAGS="$kde_save_cflags"
++LIBS="$kde_save_libs"
++LDFLAGS="$kde_save_ldflags"
++
++fi
++
++
++if test "$kde_cv_try_link_python_m_and_thread_and_db" = "yes"; then
++ echo "$as_me:$LINENO: result: yes" >&5
++echo "${ECHO_T}yes" >&6
++ kde_python_link_found=yes
++ if test ! "m_and_thread_and_db" = normal; then
++ LIBPYTHON="$LIBPYTHON $LIBPTHREAD -lm -ldb -ltermcap -lutil"
++ fi
++
++else
++ echo "$as_me:$LINENO: result: no" >&5
++echo "${ECHO_T}no" >&6
++
++fi
++ac_ext=cc
++ac_cpp='$CXXCPP $CPPFLAGS'
++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
++
++
++fi
++
++
++
++if test "$kde_python_link_found" = no; then
++
++if test "pthread_and_dl" = normal; then
++ echo "$as_me:$LINENO: checking if a Python application links" >&5
++echo $ECHO_N "checking if a Python application links... $ECHO_C" >&6
++else
++ echo "$as_me:$LINENO: checking if Python depends on $LIBPTHREAD $LIBDL -lutil -lreadline -lncurses -lm" >&5
++echo $ECHO_N "checking if Python depends on $LIBPTHREAD $LIBDL -lutil -lreadline -lncurses -lm... $ECHO_C" >&6
++fi
++
++if test "${kde_cv_try_link_python_pthread_and_dl+set}" = set; then
++ echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++
++
++
++ac_ext=c
++ac_cpp='$CPP $CPPFLAGS'
++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
++ac_compiler_gnu=$ac_cv_c_compiler_gnu
++
++kde_save_cflags="$CFLAGS"
++CFLAGS="$CFLAGS $PYTHONINC"
++kde_save_libs="$LIBS"
++LIBS="$LIBS $LIBPYTHON $LIBPTHREAD $LIBDL -lutil -lreadline -lncurses -lm $LIBDL $LIBSOCKET"
++kde_save_ldflags="$LDFLAGS"
++LDFLAGS="$LDFLAGS $PYTHONLIB"
++
++cat >conftest.$ac_ext <<_ACEOF
++#line $LINENO "configure"
++/* confdefs.h. */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h. */
++
++#include <Python.h>
++
++int
++main ()
++{
++
++ PySys_SetArgv(1, 0);
++
++ ;
++ return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext conftest$ac_exeext
++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
++ (eval $ac_link) 2>&5
++ ac_status=$?
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); } &&
++ { ac_try='test -s conftest$ac_exeext'
++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++ (eval $ac_try) 2>&5
++ ac_status=$?
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); }; }; then
++ kde_cv_try_link_python_pthread_and_dl=yes
++else
++ echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++kde_cv_try_link_python_pthread_and_dl=no
++
++fi
++rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
++CFLAGS="$kde_save_cflags"
++LIBS="$kde_save_libs"
++LDFLAGS="$kde_save_ldflags"
++
++fi
++
++
++if test "$kde_cv_try_link_python_pthread_and_dl" = "yes"; then
++ echo "$as_me:$LINENO: result: yes" >&5
++echo "${ECHO_T}yes" >&6
++ kde_python_link_found=yes
++ if test ! "pthread_and_dl" = normal; then
++ LIBPYTHON="$LIBPYTHON $LIBPTHREAD $LIBDL -lutil -lreadline -lncurses -lm"
++ fi
++
++else
++ echo "$as_me:$LINENO: result: no" >&5
++echo "${ECHO_T}no" >&6
++
++fi
++ac_ext=cc
++ac_cpp='$CXXCPP $CPPFLAGS'
++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
++
++
++fi
++
++
++
++if test "$kde_python_link_found" = no; then
++
++if test "m_and_thread_and_db_special" = normal; then
++ echo "$as_me:$LINENO: checking if a Python application links" >&5
++echo $ECHO_N "checking if a Python application links... $ECHO_C" >&6
++else
++ echo "$as_me:$LINENO: checking if Python depends on $LIBPTHREAD -lm -ldb -lutil" >&5
++echo $ECHO_N "checking if Python depends on $LIBPTHREAD -lm -ldb -lutil... $ECHO_C" >&6
++fi
++
++if test "${kde_cv_try_link_python_m_and_thread_and_db_special+set}" = set; then
++ echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++
++
++
++ac_ext=c
++ac_cpp='$CPP $CPPFLAGS'
++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
++ac_compiler_gnu=$ac_cv_c_compiler_gnu
++
++kde_save_cflags="$CFLAGS"
++CFLAGS="$CFLAGS $PYTHONINC"
++kde_save_libs="$LIBS"
++LIBS="$LIBS $LIBPYTHON $LIBPTHREAD -lm -ldb -lutil $LIBDL $LIBSOCKET"
++kde_save_ldflags="$LDFLAGS"
++LDFLAGS="$LDFLAGS $PYTHONLIB"
++
++cat >conftest.$ac_ext <<_ACEOF
++#line $LINENO "configure"
++/* confdefs.h. */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h. */
++
++#include <Python.h>
++
++int
++main ()
++{
++
++ PySys_SetArgv(1, 0);
++
++ ;
++ return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext conftest$ac_exeext
++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
++ (eval $ac_link) 2>&5
++ ac_status=$?
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); } &&
++ { ac_try='test -s conftest$ac_exeext'
++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++ (eval $ac_try) 2>&5
++ ac_status=$?
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); }; }; then
++ kde_cv_try_link_python_m_and_thread_and_db_special=yes
++else
++ echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++kde_cv_try_link_python_m_and_thread_and_db_special=no
++
++fi
++rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
++CFLAGS="$kde_save_cflags"
++LIBS="$kde_save_libs"
++LDFLAGS="$kde_save_ldflags"
++
++fi
++
++
++if test "$kde_cv_try_link_python_m_and_thread_and_db_special" = "yes"; then
++ echo "$as_me:$LINENO: result: yes" >&5
++echo "${ECHO_T}yes" >&6
++ kde_python_link_found=yes
++ if test ! "m_and_thread_and_db_special" = normal; then
++ LIBPYTHON="$LIBPYTHON $LIBPTHREAD -lm -ldb -lutil"
++ fi
++
++else
++ echo "$as_me:$LINENO: result: no" >&5
++echo "${ECHO_T}no" >&6
++ { { echo "$as_me:$LINENO: error: it seems, Python depends on another library.
++ Pleae set LIBPYTHON to '-lpython$version -lotherlib' before calling configure to fix this
++ and contact the authors to let them know about this problem" >&5
++echo "$as_me: error: it seems, Python depends on another library.
++ Pleae set LIBPYTHON to '-lpython$version -lotherlib' before calling configure to fix this
++ and contact the authors to let them know about this problem" >&2;}
++ { (exit 1); exit 1; }; }
++
++fi
++ac_ext=cc
++ac_cpp='$CXXCPP $CPPFLAGS'
++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
++
++
++fi
++
++
++
++ LIBPYTHON="$LIBPYTHON $LIBDL $LIBSOCKET"
++
++
++
++
++HKPYTHONDIR="python"
++
++cat >>confdefs.h <<\_ACEOF
++#define HAVE_PYTHON 1
++_ACEOF
++
++fi
+
+
+ else
diff --git a/databases/hk_classes/pkg-plist b/databases/hk_classes/pkg-plist
index bc590dd4c222..797d89ddf7ea 100644
--- a/databases/hk_classes/pkg-plist
+++ b/databases/hk_classes/pkg-plist
@@ -43,6 +43,9 @@ include/hk_classes/hk_interpreter.h
%%POSTGRESQL%%lib/hk_classes/drivers/libhk_postgresdriver.so.0
%%POSTGRESQL%%lib/hk_classes/drivers/libhk_postgresdriver.so
%%POSTGRESQL%%lib/hk_classes/drivers/libhk_postgresdriver.la
+%%PYTHON_SITELIBDIR%%/_hk_classes.so
+%%PYTHON_SITELIBDIR%%/hk_classes.py
+%%PYTHON_SITELIBDIR%%/hk_classes.pyc
lib/hk_classes/libhk_classes.so.5
lib/hk_classes/libhk_classes.la
lib/hk_classes/libhk_classes.so