View | Details | Raw Unified | Return to bug 64072
Collapse All | Expand All

(-)/usr/ports/databases/hk_classes/Makefile (-17 / +34 lines)
Lines 5-50 Link Here
5
# $FreeBSD: ports/databases/hk_classes/Makefile,v 1.4 2003/11/04 18:33:12 arved Exp $
5
# $FreeBSD: ports/databases/hk_classes/Makefile,v 1.4 2003/11/04 18:33:12 arved Exp $
6
6
7
PORTNAME=	hk_classes
7
PORTNAME=	hk_classes
8
PORTVERSION=	0.6.1
8
PORTVERSION=	0.6.2
9
PORTREVISION=	2
10
CATEGORIES=	databases
9
CATEGORIES=	databases
11
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
10
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
12
MASTER_SITE_SUBDIR=	hk-classes
11
MASTER_SITE_SUBDIR=	hk-classes
13
12
14
MAINTAINER=	ports@FreeBSD.org
13
MAINTAINER=	sem@ciam.ru
15
COMMENT=	"C++ Library for rapid development of database applications"
14
COMMENT=	C++ Library for rapid development of database applications
16
15
17
LIB_DEPENDS=	iconv.3:${PORTSDIR}/converters/libiconv
16
LIB_DEPENDS=	iconv.3:${PORTSDIR}/converters/libiconv
18
17
19
.if !defined(WITHOUT_MYSQL) || defined(WITH_MYSQL)
18
USE_PYTHON=	yes
19
CONFIGURE_ENV+=	LIBPYTHON="-l${PYTHON_VERSION} ${PTHREAD_LIBS}"
20
CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
21
GNU_CONFIGURE=	yes
22
INSTALLS_SHLIB=	yes
23
USE_LIBTOOL=	yes
24
LDCONFIG_DIRS+=	${PREFIX}/lib/hk_classes/
25
26
OPTIONS=	MYSQL "Build MySQL driver" on \
27
		POSTGRESQL "Build PostrgreSQL driver" off \
28
		ODBC "Build unixODBC driver" off
29
30
.include <bsd.port.pre.mk>
31
32
.if defined(WITH_MYSQL)
20
USE_MYSQL=	yes
33
USE_MYSQL=	yes
21
CONFIGURE_ARGS+=	-with-mysql-dir=${LOCALBASE} \
34
CONFIGURE_ARGS+=	--with-mysql-dir=${LOCALBASE} \
22
			--with-mysql-incdir=${LOCALBASE}/include/mysql
35
			--with-mysql-incdir=${LOCALBASE}/include/mysql \
36
			--with-mysql-libdir=${LOCALBASE}/lib/mysql
23
CONFIGURE_ENV+=	CPPFLAGS="-I${LOCALBASE}/include" \
37
CONFIGURE_ENV+=	CPPFLAGS="-I${LOCALBASE}/include" \
24
		LIBS="-L${LOCALBASE}/lib -L${LOCALBASE}/lib/mysql"
38
		LIBS="-L${LOCALBASE}/lib -L${LOCALBASE}/lib/mysql"
25
PLIST_SUB+=	MYSQL=""
39
PLIST_SUB+=	MYSQL=""
26
.else
40
.else
41
CONFIGURE_ARGS+=	--without-mysql
27
PLIST_SUB+=	MYSQL="@comment "
42
PLIST_SUB+=	MYSQL="@comment "
28
.endif
43
.endif
29
44
30
.if defined(WITH_POSTGRESQL)
45
.if defined(WITH_POSTGRESQL)
31
POSTGRESQL_PORT?=	databases/postgresql7
46
POSTGRESQL_PORT?=	databases/postgresql7
32
LIB_DEPENDS=		pq.3:${PORTSDIR}/${POSTGRESQL_PORT}
47
LIB_DEPENDS+=		pq.3:${PORTSDIR}/${POSTGRESQL_PORT}
33
CONFIGURE_ARGS+=	--with-postgres-incdir=${LOCALBASE}/include/ \
48
CONFIGURE_ARGS+=	--with-postgres-incdir=${LOCALBASE}/include/ \
34
			--with-postgres-libdir=${LOCALBASE}/lib
49
			--with-postgres-libdir=${LOCALBASE}/lib
35
CONFIGURE_ENV+=	CPPFLAGS="-I${LOCALBASE}/include" LIBS="-L${LOCALBASE}/lib"
50
CONFIGURE_ENV+=	CPPFLAGS="-I${LOCALBASE}/include" LIBS="-L${LOCALBASE}/lib"
36
PLIST_SUB+=	POSTGRESQL=""
51
PLIST_SUB+=	POSTGRESQL=""
37
.else
52
.else
53
CONFIGURE_ARGS+=	--without-postgres
38
PLIST_SUB+=	POSTGRESQL="@comment "
54
PLIST_SUB+=	POSTGRESQL="@comment "
39
.endif
55
.endif
40
56
41
USE_PYTHON=	yes
57
.if defined(WITH_ODBC)
42
CONFIGURE_ENV+= LIBPYTHON="-l${PYTHON_VERSION} ${PTHREAD_LIBS}"
58
LIB_DEPENDS+=		odbc.1:${PORTSDIR}/databases/unixODBC
43
CONFIGURE_TARGET=
59
CONFIGURE_ARGS+=	--with-odbc-incdir=${LOCALBASE}/include/\
44
CONFIGURE_ARGS+=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
60
			--with-odbc-libdir=${LOCALBASE}/lib
45
GNU_CONFIGURE=	yes
61
PLIST_SUB+=	ODBC=""
46
INSTALLS_SHLIB=	yes
62
.else
47
USE_LIBTOOL=	yes
63
CONFIGURE_ARGS+=	--without-odbc
48
LDCONFIG_DIRS+=	%%PREFIX%%/lib/hk_classes/
64
PLIST_SUB+=	ODBC="@comment "
65
.endif
49
66
50
.include <bsd.port.mk>
67
.include <bsd.port.post.mk>
(-)/usr/ports/databases/hk_classes/distinfo (-2 / +2 lines)
Lines 1-2 Link Here
1
MD5 (hk_classes-0.6.1.tar.gz) = e376aaf0e8f266a4b7aa00b16349ae73
1
MD5 (hk_classes-0.6.2.tar.gz) = 2f5fb56ecf05018c080de9bdd7914892
2
SIZE (hk_classes-0.6.1.tar.gz) = 572958
2
SIZE (hk_classes-0.6.2.tar.gz) = 578222
(-)/usr/ports/databases/hk_classes/files/patch-Makefile.in (-16 lines)
Lines 1-16 Link Here
1
--- Makefile.in.orig	Fri Oct 31 12:42:20 2003
2
+++ Makefile.in	Fri Oct 31 12:42:44 2003
3
@@ -562,11 +562,11 @@
4
 
5
 
6
 install-data-hook:
7
-	echo ; echo ; echo "**********************************************"; echo ; \
8
+	@echo ; echo ; echo "**********************************************"; echo ; \
9
 	if @NODRIVER@ ;then echo "W A R N I N G    !!!!" ;	 \
10
 	echo "No database driver installed! It makes no sense to run " ; echo "hk_classes without a database driver."; echo "Make sure that you have one of the following SQL databases." ; echo ; echo "Existing drivers are: @POSSIBLE_DRIVERS@" ; echo ; echo "Then re-configure and re-make this package." ;\
11
 	echo;echo "If you are sure the database is installed, but you still see this message,";	echo "check your installation. Probably you haven't installed your distribution's ";echo "development package for this database. For Mysql it is called ";echo "mysql-devel (the exact name is distribution specific)";\
12
-	else echo "The following drivers are installed:"; echo "@DRIVERSDIR@" ;fi;echo; if test "x@HKPYTHONDIR@" == "xpython" ; then echo "Python support is installed" ; else echo "No Python support";fi;echo ; echo "I wish you much fun";echo ; echo "Horst Knorr <hk_classes@knoda.org>";  echo; echo "**********************************************"; echo ;
13
+	else echo "The following drivers are installed:"; echo "@DRIVERSDIR@" ;fi;echo; if test x@HKPYTHONDIR@ = xpython ; then echo "Python support is installed" ; else echo "No Python support";fi;echo ; echo "I wish you much fun";echo ; echo "Horst Knorr <hk_classes@knoda.org>";  echo; echo "**********************************************"; echo ;
14
 # Tell versions [3.59,3.63) of GNU make to not export all variables.
15
 # Otherwise a system limit (for SysV at least) may be exceeded.
16
 .NOEXPORT:
(-)/usr/ports/databases/hk_classes/files/patch-configure (-1431 / +49 lines)
Lines 1-1432 Link Here
1
--- configure.orig	Tue Nov  4 19:13:40 2003
1
--- configure.orig	Sat Nov 15 19:04:37 2003
2
+++ configure	Tue Nov  4 19:15:08 2003
2
+++ configure	Thu Mar 11 00:21:00 2004
3
@@ -8783,10 +8783,10 @@
3
@@ -7855,7 +7855,7 @@
4
 
5
 
6
 # This can be used to rebuild libtool when needed
7
-LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
8
+LIBTOOL_DEPS="--disable-ltlibs /usr/local/share/libtool13/ltmain.sh"
9
 
10
 # Always use our own libtool.
11
 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
12
@@ -8541,9 +8541,8 @@
13
 NODRIVER=true
14
 POSSIBLE_DRIVERS="MYSQL,ODBC, POSTGRESQL"
15
 
16
-cat >>confdefs.h <<_ACEOF
17
-#define HKCLASSES "$HK_CLASSESDIR"
18
-_ACEOF
19
+echo -n "#define HKCLASSES " >>confdefs.h
20
+echo \"$prefix/lib/hk_classes\" >>confdefs.h
21
 
22
 echo "$as_me:$LINENO: result: OK" >&5
23
 echo "${ECHO_T}OK" >&6
24
@@ -15667,7 +15666,7 @@
25
 
26
 echo "$as_me:$LINENO: result: $mysql_lib" >&5
27
 echo "${ECHO_T}$mysql_lib" >&6
28
-if test $mysql_lib = yes ; then
29
+if test $mysql_lib = yes -a "x$with_mysql" != "xno"; then
30
 NODRIVER=false
31
 DRIVERSDIR="$DRIVERSDIR hk_mysqlclasses"
32
 
33
@@ -15807,7 +15806,7 @@
34
 
35
 echo "$as_me:$LINENO: result: $postgres_lib" >&5
36
 echo "${ECHO_T}$postgres_lib" >&6
37
-if test $postgres_lib = yes ; then
38
+if test $postgres_lib = yes -a "x$with_postgres" != "xno"; then
39
 NODRIVER=false
40
 DRIVERSDIR="$DRIVERSDIR hk_postgresclasses"
41
 
42
@@ -15966,7 +15965,7 @@
43
 
44
 echo "$as_me:$LINENO: result: $odbc_lib" >&5
45
 echo "${ECHO_T}$odbc_lib" >&6
46
-if test x$odbc_lib = xyes ; then
47
+if test x$odbc_lib = xyes -a "x$with_odbc" != "xno"; then
48
 NODRIVER=false
49
 DRIVERSDIR="$DRIVERSDIR hk_odbcclasses"
4
 
50
 
5
 
6
 
7
-if test -z ""2.2""; then
8
+if test -z ""2.3""; then
9
   version="1.5"
10
 else
11
-  version=""2.2""
12
+  version=""2.3""
13
 fi
14
 
15
 echo "$as_me:$LINENO: checking for Python$version" >&5
16
@@ -8911,10 +8911,10 @@
17
 
18
 
19
 
20
-if test -z ""2.1""; then
21
+if test -z ""2.2""; then
22
   version="1.5"
23
 else
24
-  version=""2.1""
25
+  version=""2.2""
26
 fi
27
 
28
 echo "$as_me:$LINENO: checking for Python$version" >&5
29
@@ -9039,10 +9039,10 @@
30
 
31
 
32
 
33
-if test -z ""2.0""; then
34
+if test -z ""2.1""; then
35
   version="1.5"
36
 else
37
-  version=""2.0""
38
+  version=""2.1""
39
 fi
40
 
41
 echo "$as_me:$LINENO: checking for Python$version" >&5
42
@@ -9167,10 +9167,10 @@
43
 
44
 
45
 
46
-if test -z ""; then
47
+if test -z ""2.0""; then
48
   version="1.5"
49
 else
50
-  version=""
51
+  version=""2.0""
52
 fi
53
 
54
 echo "$as_me:$LINENO: checking for Python$version" >&5
55
@@ -9291,6 +9291,134 @@
56
    test "x$PYTHONLIB" = "x-Lno" && PYTHONLIB=""
57
    test "x$PYTHONINC" = "x-Ino" && PYTHONINC=""
58
 
59
+
60
+
61
+
62
+
63
+if test -z ""; then
64
+  version="1.5"
65
+else
66
+  version=""
67
+fi
68
+
69
+echo "$as_me:$LINENO: checking for Python$version" >&5
70
+echo $ECHO_N "checking for Python$version... $ECHO_C" >&6
71
+
72
+python_incdirs="$ac_python_dir/include /usr/include /usr/local/include/ $kde_extra_includes"
73
+
74
+python_incdir=NO
75
+for i in $python_incdirs;
76
+do
77
+  for j in Python.h;
78
+  do
79
+    echo "configure: 9314: $i/$j" >&5
80
+    if test -r "$i/$j"; then
81
+      echo "taking that" >&5
82
+      python_incdir=$i
83
+      break 2
84
+    fi
85
+  done
86
+done
87
+
88
+if test ! -r $python_incdir/Python.h; then
89
+
90
+python_incdir=NO
91
+for i in $python_incdirs;
92
+do
93
+  for j in python$version/Python.h;
94
+  do
95
+    echo "configure: 9330: $i/$j" >&5
96
+    if test -r "$i/$j"; then
97
+      echo "taking that" >&5
98
+      python_incdir=$i
99
+      break 2
100
+    fi
101
+  done
102
+done
103
+
104
+  python_incdir=$python_incdir/python$version
105
+  if test ! -r $python_incdir/Python.h; then
106
+    python_incdir=no
107
+  fi
108
+fi
109
+
110
+PYTHONINC=-I$python_incdir
111
+
112
+python_libdirs="$ac_python_dir/lib /usr/lib /usr/local /usr/lib $kde_extra_libs"
113
+
114
+python_libdir=NO
115
+for i in $python_libdirs;
116
+do
117
+  for j in libpython$version.a;
118
+  do
119
+    echo "configure: 9354: $i/$j" >&5
120
+    if test -r "$i/$j"; then
121
+      echo "taking that" >&5
122
+      python_libdir=$i
123
+      break 2
124
+    fi
125
+  done
126
+done
127
+
128
+if test ! -r $python_libdir/libpython$version.a; then
129
+
130
+python_libdir=NO
131
+for i in $python_libdirs;
132
+do
133
+  for j in python$version/config/libpython$version.a;
134
+  do
135
+    echo "configure: 9370: $i/$j" >&5
136
+    if test -r "$i/$j"; then
137
+      echo "taking that" >&5
138
+      python_libdir=$i
139
+      break 2
140
+    fi
141
+  done
142
+done
143
+
144
+  python_libdir=$python_libdir/python$version/config
145
+  if test ! -r $python_libdir/libpython$version.a; then
146
+    python_libdir=no
147
+  fi
148
+fi
149
+
150
+PYTHONLIB=-L$python_libdir
151
+kde_orig_LIBPYTHON=$LIBPYTHON
152
+if test -z "$LIBPYTHON"; then
153
+  LIBPYTHON=-lpython$version
154
+fi
155
+
156
+python_libdirs="$ac_python_dir/lib /usr/lib /usr/local /usr/lib $kde_extra_libs"
157
+
158
+python_moddir=NO
159
+for i in $python_libdirs;
160
+do
161
+  for j in python$version/copy.py;
162
+  do
163
+    echo "configure: 9398: $i/$j" >&5
164
+    if test -r "$i/$j"; then
165
+      echo "taking that" >&5
166
+      python_moddir=$i
167
+      break 2
168
+    fi
169
+  done
170
+done
171
+
172
+python_moddir=$python_moddir/python$version
173
+if test ! -r $python_moddir/copy.py; then
174
+  python_moddir=no
175
+fi
176
+
177
+PYTHONMODDIR=$python_moddir
178
+
179
+echo "$as_me:$LINENO: result: header $python_incdir library $python_libdir modules $python_moddir" >&5
180
+echo "${ECHO_T}header $python_incdir library $python_libdir modules $python_moddir" >&6
181
+
182
+if test x$python_incdir = xno ||  test x$python_libdir = xno ||  test x$python_moddir = xno; then
183
+   LIBPYTHON=$kde_orig_LIBPYTHON
184
+   test "x$PYTHONLIB" = "x-Lno" && PYTHONLIB=""
185
+   test "x$PYTHONINC" = "x-Ino" && PYTHONINC=""
186
+
187
 else
188
     kde_python_link_found=no
189
 
190
@@ -11762,6 +11890,1242 @@
191
 
192
 fi
193
 
194
+
195
+
196
+else
197
+    kde_python_link_found=no
198
+
199
+if test "$kde_python_link_found" = no; then
200
+
201
+if test "normal" = normal; then
202
+  echo "$as_me:$LINENO: checking if a Python application links" >&5
203
+echo $ECHO_N "checking if a Python application links... $ECHO_C" >&6
204
+else
205
+  echo "$as_me:$LINENO: checking if Python depends on " >&5
206
+echo $ECHO_N "checking if Python depends on ... $ECHO_C" >&6
207
+fi
208
+
209
+if test "${kde_cv_try_link_python_normal+set}" = set; then
210
+  echo $ECHO_N "(cached) $ECHO_C" >&6
211
+else
212
+
213
+
214
+
215
+ac_ext=c
216
+ac_cpp='$CPP $CPPFLAGS'
217
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
218
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
219
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
220
+
221
+kde_save_cflags="$CFLAGS"
222
+CFLAGS="$CFLAGS $PYTHONINC"
223
+kde_save_libs="$LIBS"
224
+LIBS="$LIBS $LIBPYTHON  $LIBDL $LIBSOCKET"
225
+kde_save_ldflags="$LDFLAGS"
226
+LDFLAGS="$LDFLAGS $PYTHONLIB"
227
+
228
+cat >conftest.$ac_ext <<_ACEOF
229
+#line $LINENO "configure"
230
+/* confdefs.h.  */
231
+_ACEOF
232
+cat confdefs.h >>conftest.$ac_ext
233
+cat >>conftest.$ac_ext <<_ACEOF
234
+/* end confdefs.h.  */
235
+
236
+#include <Python.h>
237
+
238
+int
239
+main ()
240
+{
241
+
242
+	PySys_SetArgv(1, 0);
243
+
244
+  ;
245
+  return 0;
246
+}
247
+_ACEOF
248
+rm -f conftest.$ac_objext conftest$ac_exeext
249
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
250
+  (eval $ac_link) 2>&5
251
+  ac_status=$?
252
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
253
+  (exit $ac_status); } &&
254
+         { ac_try='test -s conftest$ac_exeext'
255
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
256
+  (eval $ac_try) 2>&5
257
+  ac_status=$?
258
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
259
+  (exit $ac_status); }; }; then
260
+  kde_cv_try_link_python_normal=yes
261
+else
262
+  echo "$as_me: failed program was:" >&5
263
+sed 's/^/| /' conftest.$ac_ext >&5
264
+
265
+kde_cv_try_link_python_normal=no
266
+
267
+fi
268
+rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
269
+CFLAGS="$kde_save_cflags"
270
+LIBS="$kde_save_libs"
271
+LDFLAGS="$kde_save_ldflags"
272
+
273
+fi
274
+
275
+
276
+if test "$kde_cv_try_link_python_normal" = "yes"; then
277
+  echo "$as_me:$LINENO: result: yes" >&5
278
+echo "${ECHO_T}yes" >&6
279
+  kde_python_link_found=yes
280
+  if test ! "normal" = normal; then
281
+    LIBPYTHON="$LIBPYTHON "
282
+  fi
283
+
284
+else
285
+  echo "$as_me:$LINENO: result: no" >&5
286
+echo "${ECHO_T}no" >&6
287
+
288
+fi
289
+ac_ext=cc
290
+ac_cpp='$CXXCPP $CPPFLAGS'
291
+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
292
+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
293
+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
294
+
295
+
296
+fi
297
+
298
+
299
+
300
+if test "$kde_python_link_found" = no; then
301
+
302
+if test "m" = normal; then
303
+  echo "$as_me:$LINENO: checking if a Python application links" >&5
304
+echo $ECHO_N "checking if a Python application links... $ECHO_C" >&6
305
+else
306
+  echo "$as_me:$LINENO: checking if Python depends on -lm" >&5
307
+echo $ECHO_N "checking if Python depends on -lm... $ECHO_C" >&6
308
+fi
309
+
310
+if test "${kde_cv_try_link_python_m+set}" = set; then
311
+  echo $ECHO_N "(cached) $ECHO_C" >&6
312
+else
313
+
314
+
315
+
316
+ac_ext=c
317
+ac_cpp='$CPP $CPPFLAGS'
318
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
319
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
320
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
321
+
322
+kde_save_cflags="$CFLAGS"
323
+CFLAGS="$CFLAGS $PYTHONINC"
324
+kde_save_libs="$LIBS"
325
+LIBS="$LIBS $LIBPYTHON -lm $LIBDL $LIBSOCKET"
326
+kde_save_ldflags="$LDFLAGS"
327
+LDFLAGS="$LDFLAGS $PYTHONLIB"
328
+
329
+cat >conftest.$ac_ext <<_ACEOF
330
+#line $LINENO "configure"
331
+/* confdefs.h.  */
332
+_ACEOF
333
+cat confdefs.h >>conftest.$ac_ext
334
+cat >>conftest.$ac_ext <<_ACEOF
335
+/* end confdefs.h.  */
336
+
337
+#include <Python.h>
338
+
339
+int
340
+main ()
341
+{
342
+
343
+	PySys_SetArgv(1, 0);
344
+
345
+  ;
346
+  return 0;
347
+}
348
+_ACEOF
349
+rm -f conftest.$ac_objext conftest$ac_exeext
350
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
351
+  (eval $ac_link) 2>&5
352
+  ac_status=$?
353
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
354
+  (exit $ac_status); } &&
355
+         { ac_try='test -s conftest$ac_exeext'
356
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
357
+  (eval $ac_try) 2>&5
358
+  ac_status=$?
359
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
360
+  (exit $ac_status); }; }; then
361
+  kde_cv_try_link_python_m=yes
362
+else
363
+  echo "$as_me: failed program was:" >&5
364
+sed 's/^/| /' conftest.$ac_ext >&5
365
+
366
+kde_cv_try_link_python_m=no
367
+
368
+fi
369
+rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
370
+CFLAGS="$kde_save_cflags"
371
+LIBS="$kde_save_libs"
372
+LDFLAGS="$kde_save_ldflags"
373
+
374
+fi
375
+
376
+
377
+if test "$kde_cv_try_link_python_m" = "yes"; then
378
+  echo "$as_me:$LINENO: result: yes" >&5
379
+echo "${ECHO_T}yes" >&6
380
+  kde_python_link_found=yes
381
+  if test ! "m" = normal; then
382
+    LIBPYTHON="$LIBPYTHON -lm"
383
+  fi
384
+
385
+else
386
+  echo "$as_me:$LINENO: result: no" >&5
387
+echo "${ECHO_T}no" >&6
388
+
389
+fi
390
+ac_ext=cc
391
+ac_cpp='$CXXCPP $CPPFLAGS'
392
+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
393
+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
394
+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
395
+
396
+
397
+fi
398
+
399
+
400
+
401
+if test "$kde_python_link_found" = no; then
402
+
403
+if test "pthread" = normal; then
404
+  echo "$as_me:$LINENO: checking if a Python application links" >&5
405
+echo $ECHO_N "checking if a Python application links... $ECHO_C" >&6
406
+else
407
+  echo "$as_me:$LINENO: checking if Python depends on $LIBPTHREAD" >&5
408
+echo $ECHO_N "checking if Python depends on $LIBPTHREAD... $ECHO_C" >&6
409
+fi
410
+
411
+if test "${kde_cv_try_link_python_pthread+set}" = set; then
412
+  echo $ECHO_N "(cached) $ECHO_C" >&6
413
+else
414
+
415
+
416
+
417
+ac_ext=c
418
+ac_cpp='$CPP $CPPFLAGS'
419
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
420
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
421
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
422
+
423
+kde_save_cflags="$CFLAGS"
424
+CFLAGS="$CFLAGS $PYTHONINC"
425
+kde_save_libs="$LIBS"
426
+LIBS="$LIBS $LIBPYTHON $LIBPTHREAD $LIBDL $LIBSOCKET"
427
+kde_save_ldflags="$LDFLAGS"
428
+LDFLAGS="$LDFLAGS $PYTHONLIB"
429
+
430
+cat >conftest.$ac_ext <<_ACEOF
431
+#line $LINENO "configure"
432
+/* confdefs.h.  */
433
+_ACEOF
434
+cat confdefs.h >>conftest.$ac_ext
435
+cat >>conftest.$ac_ext <<_ACEOF
436
+/* end confdefs.h.  */
437
+
438
+#include <Python.h>
439
+
440
+int
441
+main ()
442
+{
443
+
444
+	PySys_SetArgv(1, 0);
445
+
446
+  ;
447
+  return 0;
448
+}
449
+_ACEOF
450
+rm -f conftest.$ac_objext conftest$ac_exeext
451
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
452
+  (eval $ac_link) 2>&5
453
+  ac_status=$?
454
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
455
+  (exit $ac_status); } &&
456
+         { ac_try='test -s conftest$ac_exeext'
457
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
458
+  (eval $ac_try) 2>&5
459
+  ac_status=$?
460
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
461
+  (exit $ac_status); }; }; then
462
+  kde_cv_try_link_python_pthread=yes
463
+else
464
+  echo "$as_me: failed program was:" >&5
465
+sed 's/^/| /' conftest.$ac_ext >&5
466
+
467
+kde_cv_try_link_python_pthread=no
468
+
469
+fi
470
+rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
471
+CFLAGS="$kde_save_cflags"
472
+LIBS="$kde_save_libs"
473
+LDFLAGS="$kde_save_ldflags"
474
+
475
+fi
476
+
477
+
478
+if test "$kde_cv_try_link_python_pthread" = "yes"; then
479
+  echo "$as_me:$LINENO: result: yes" >&5
480
+echo "${ECHO_T}yes" >&6
481
+  kde_python_link_found=yes
482
+  if test ! "pthread" = normal; then
483
+    LIBPYTHON="$LIBPYTHON $LIBPTHREAD"
484
+  fi
485
+
486
+else
487
+  echo "$as_me:$LINENO: result: no" >&5
488
+echo "${ECHO_T}no" >&6
489
+
490
+fi
491
+ac_ext=cc
492
+ac_cpp='$CXXCPP $CPPFLAGS'
493
+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
494
+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
495
+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
496
+
497
+
498
+fi
499
+
500
+
501
+
502
+if test "$kde_python_link_found" = no; then
503
+
504
+if test "tcl" = normal; then
505
+  echo "$as_me:$LINENO: checking if a Python application links" >&5
506
+echo $ECHO_N "checking if a Python application links... $ECHO_C" >&6
507
+else
508
+  echo "$as_me:$LINENO: checking if Python depends on -ltcl" >&5
509
+echo $ECHO_N "checking if Python depends on -ltcl... $ECHO_C" >&6
510
+fi
511
+
512
+if test "${kde_cv_try_link_python_tcl+set}" = set; then
513
+  echo $ECHO_N "(cached) $ECHO_C" >&6
514
+else
515
+
516
+
517
+
518
+ac_ext=c
519
+ac_cpp='$CPP $CPPFLAGS'
520
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
521
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
522
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
523
+
524
+kde_save_cflags="$CFLAGS"
525
+CFLAGS="$CFLAGS $PYTHONINC"
526
+kde_save_libs="$LIBS"
527
+LIBS="$LIBS $LIBPYTHON -ltcl $LIBDL $LIBSOCKET"
528
+kde_save_ldflags="$LDFLAGS"
529
+LDFLAGS="$LDFLAGS $PYTHONLIB"
530
+
531
+cat >conftest.$ac_ext <<_ACEOF
532
+#line $LINENO "configure"
533
+/* confdefs.h.  */
534
+_ACEOF
535
+cat confdefs.h >>conftest.$ac_ext
536
+cat >>conftest.$ac_ext <<_ACEOF
537
+/* end confdefs.h.  */
538
+
539
+#include <Python.h>
540
+
541
+int
542
+main ()
543
+{
544
+
545
+	PySys_SetArgv(1, 0);
546
+
547
+  ;
548
+  return 0;
549
+}
550
+_ACEOF
551
+rm -f conftest.$ac_objext conftest$ac_exeext
552
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
553
+  (eval $ac_link) 2>&5
554
+  ac_status=$?
555
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
556
+  (exit $ac_status); } &&
557
+         { ac_try='test -s conftest$ac_exeext'
558
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
559
+  (eval $ac_try) 2>&5
560
+  ac_status=$?
561
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
562
+  (exit $ac_status); }; }; then
563
+  kde_cv_try_link_python_tcl=yes
564
+else
565
+  echo "$as_me: failed program was:" >&5
566
+sed 's/^/| /' conftest.$ac_ext >&5
567
+
568
+kde_cv_try_link_python_tcl=no
569
+
570
+fi
571
+rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
572
+CFLAGS="$kde_save_cflags"
573
+LIBS="$kde_save_libs"
574
+LDFLAGS="$kde_save_ldflags"
575
+
576
+fi
577
+
578
+
579
+if test "$kde_cv_try_link_python_tcl" = "yes"; then
580
+  echo "$as_me:$LINENO: result: yes" >&5
581
+echo "${ECHO_T}yes" >&6
582
+  kde_python_link_found=yes
583
+  if test ! "tcl" = normal; then
584
+    LIBPYTHON="$LIBPYTHON -ltcl"
585
+  fi
586
+
587
+else
588
+  echo "$as_me:$LINENO: result: no" >&5
589
+echo "${ECHO_T}no" >&6
590
+
591
+fi
592
+ac_ext=cc
593
+ac_cpp='$CXXCPP $CPPFLAGS'
594
+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
595
+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
596
+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
597
+
598
+
599
+fi
600
+
601
+
602
+
603
+if test "$kde_python_link_found" = no; then
604
+
605
+if test "db2" = normal; then
606
+  echo "$as_me:$LINENO: checking if a Python application links" >&5
607
+echo $ECHO_N "checking if a Python application links... $ECHO_C" >&6
608
+else
609
+  echo "$as_me:$LINENO: checking if Python depends on -ldb2" >&5
610
+echo $ECHO_N "checking if Python depends on -ldb2... $ECHO_C" >&6
611
+fi
612
+
613
+if test "${kde_cv_try_link_python_db2+set}" = set; then
614
+  echo $ECHO_N "(cached) $ECHO_C" >&6
615
+else
616
+
617
+
618
+
619
+ac_ext=c
620
+ac_cpp='$CPP $CPPFLAGS'
621
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
622
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
623
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
624
+
625
+kde_save_cflags="$CFLAGS"
626
+CFLAGS="$CFLAGS $PYTHONINC"
627
+kde_save_libs="$LIBS"
628
+LIBS="$LIBS $LIBPYTHON -ldb2 $LIBDL $LIBSOCKET"
629
+kde_save_ldflags="$LDFLAGS"
630
+LDFLAGS="$LDFLAGS $PYTHONLIB"
631
+
632
+cat >conftest.$ac_ext <<_ACEOF
633
+#line $LINENO "configure"
634
+/* confdefs.h.  */
635
+_ACEOF
636
+cat confdefs.h >>conftest.$ac_ext
637
+cat >>conftest.$ac_ext <<_ACEOF
638
+/* end confdefs.h.  */
639
+
640
+#include <Python.h>
641
+
642
+int
643
+main ()
644
+{
645
+
646
+	PySys_SetArgv(1, 0);
647
+
648
+  ;
649
+  return 0;
650
+}
651
+_ACEOF
652
+rm -f conftest.$ac_objext conftest$ac_exeext
653
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
654
+  (eval $ac_link) 2>&5
655
+  ac_status=$?
656
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
657
+  (exit $ac_status); } &&
658
+         { ac_try='test -s conftest$ac_exeext'
659
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
660
+  (eval $ac_try) 2>&5
661
+  ac_status=$?
662
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
663
+  (exit $ac_status); }; }; then
664
+  kde_cv_try_link_python_db2=yes
665
+else
666
+  echo "$as_me: failed program was:" >&5
667
+sed 's/^/| /' conftest.$ac_ext >&5
668
+
669
+kde_cv_try_link_python_db2=no
670
+
671
+fi
672
+rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
673
+CFLAGS="$kde_save_cflags"
674
+LIBS="$kde_save_libs"
675
+LDFLAGS="$kde_save_ldflags"
676
+
677
+fi
678
+
679
+
680
+if test "$kde_cv_try_link_python_db2" = "yes"; then
681
+  echo "$as_me:$LINENO: result: yes" >&5
682
+echo "${ECHO_T}yes" >&6
683
+  kde_python_link_found=yes
684
+  if test ! "db2" = normal; then
685
+    LIBPYTHON="$LIBPYTHON -ldb2"
686
+  fi
687
+
688
+else
689
+  echo "$as_me:$LINENO: result: no" >&5
690
+echo "${ECHO_T}no" >&6
691
+
692
+fi
693
+ac_ext=cc
694
+ac_cpp='$CXXCPP $CPPFLAGS'
695
+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
696
+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
697
+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
698
+
699
+
700
+fi
701
+
702
+
703
+
704
+if test "$kde_python_link_found" = no; then
705
+
706
+if test "m_and_thread" = normal; then
707
+  echo "$as_me:$LINENO: checking if a Python application links" >&5
708
+echo $ECHO_N "checking if a Python application links... $ECHO_C" >&6
709
+else
710
+  echo "$as_me:$LINENO: checking if Python depends on $LIBPTHREAD -lm" >&5
711
+echo $ECHO_N "checking if Python depends on $LIBPTHREAD -lm... $ECHO_C" >&6
712
+fi
713
+
714
+if test "${kde_cv_try_link_python_m_and_thread+set}" = set; then
715
+  echo $ECHO_N "(cached) $ECHO_C" >&6
716
+else
717
+
718
+
719
+
720
+ac_ext=c
721
+ac_cpp='$CPP $CPPFLAGS'
722
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
723
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
724
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
725
+
726
+kde_save_cflags="$CFLAGS"
727
+CFLAGS="$CFLAGS $PYTHONINC"
728
+kde_save_libs="$LIBS"
729
+LIBS="$LIBS $LIBPYTHON $LIBPTHREAD -lm $LIBDL $LIBSOCKET"
730
+kde_save_ldflags="$LDFLAGS"
731
+LDFLAGS="$LDFLAGS $PYTHONLIB"
732
+
733
+cat >conftest.$ac_ext <<_ACEOF
734
+#line $LINENO "configure"
735
+/* confdefs.h.  */
736
+_ACEOF
737
+cat confdefs.h >>conftest.$ac_ext
738
+cat >>conftest.$ac_ext <<_ACEOF
739
+/* end confdefs.h.  */
740
+
741
+#include <Python.h>
742
+
743
+int
744
+main ()
745
+{
746
+
747
+	PySys_SetArgv(1, 0);
748
+
749
+  ;
750
+  return 0;
751
+}
752
+_ACEOF
753
+rm -f conftest.$ac_objext conftest$ac_exeext
754
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
755
+  (eval $ac_link) 2>&5
756
+  ac_status=$?
757
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
758
+  (exit $ac_status); } &&
759
+         { ac_try='test -s conftest$ac_exeext'
760
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
761
+  (eval $ac_try) 2>&5
762
+  ac_status=$?
763
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
764
+  (exit $ac_status); }; }; then
765
+  kde_cv_try_link_python_m_and_thread=yes
766
+else
767
+  echo "$as_me: failed program was:" >&5
768
+sed 's/^/| /' conftest.$ac_ext >&5
769
+
770
+kde_cv_try_link_python_m_and_thread=no
771
+
772
+fi
773
+rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
774
+CFLAGS="$kde_save_cflags"
775
+LIBS="$kde_save_libs"
776
+LDFLAGS="$kde_save_ldflags"
777
+
778
+fi
779
+
780
+
781
+if test "$kde_cv_try_link_python_m_and_thread" = "yes"; then
782
+  echo "$as_me:$LINENO: result: yes" >&5
783
+echo "${ECHO_T}yes" >&6
784
+  kde_python_link_found=yes
785
+  if test ! "m_and_thread" = normal; then
786
+    LIBPYTHON="$LIBPYTHON $LIBPTHREAD -lm"
787
+  fi
788
+
789
+else
790
+  echo "$as_me:$LINENO: result: no" >&5
791
+echo "${ECHO_T}no" >&6
792
+
793
+fi
794
+ac_ext=cc
795
+ac_cpp='$CXXCPP $CPPFLAGS'
796
+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
797
+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
798
+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
799
+
800
+
801
+fi
802
+
803
+
804
+
805
+if test "$kde_python_link_found" = no; then
806
+
807
+if test "m_and_thread_and_util" = normal; then
808
+  echo "$as_me:$LINENO: checking if a Python application links" >&5
809
+echo $ECHO_N "checking if a Python application links... $ECHO_C" >&6
810
+else
811
+  echo "$as_me:$LINENO: checking if Python depends on $LIBPTHREAD -lm -lutil" >&5
812
+echo $ECHO_N "checking if Python depends on $LIBPTHREAD -lm -lutil... $ECHO_C" >&6
813
+fi
814
+
815
+if test "${kde_cv_try_link_python_m_and_thread_and_util+set}" = set; then
816
+  echo $ECHO_N "(cached) $ECHO_C" >&6
817
+else
818
+
819
+
820
+
821
+ac_ext=c
822
+ac_cpp='$CPP $CPPFLAGS'
823
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
824
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
825
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
826
+
827
+kde_save_cflags="$CFLAGS"
828
+CFLAGS="$CFLAGS $PYTHONINC"
829
+kde_save_libs="$LIBS"
830
+LIBS="$LIBS $LIBPYTHON $LIBPTHREAD -lm -lutil $LIBDL $LIBSOCKET"
831
+kde_save_ldflags="$LDFLAGS"
832
+LDFLAGS="$LDFLAGS $PYTHONLIB"
833
+
834
+cat >conftest.$ac_ext <<_ACEOF
835
+#line $LINENO "configure"
836
+/* confdefs.h.  */
837
+_ACEOF
838
+cat confdefs.h >>conftest.$ac_ext
839
+cat >>conftest.$ac_ext <<_ACEOF
840
+/* end confdefs.h.  */
841
+
842
+#include <Python.h>
843
+
844
+int
845
+main ()
846
+{
847
+
848
+	PySys_SetArgv(1, 0);
849
+
850
+  ;
851
+  return 0;
852
+}
853
+_ACEOF
854
+rm -f conftest.$ac_objext conftest$ac_exeext
855
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
856
+  (eval $ac_link) 2>&5
857
+  ac_status=$?
858
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
859
+  (exit $ac_status); } &&
860
+         { ac_try='test -s conftest$ac_exeext'
861
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
862
+  (eval $ac_try) 2>&5
863
+  ac_status=$?
864
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
865
+  (exit $ac_status); }; }; then
866
+  kde_cv_try_link_python_m_and_thread_and_util=yes
867
+else
868
+  echo "$as_me: failed program was:" >&5
869
+sed 's/^/| /' conftest.$ac_ext >&5
870
+
871
+kde_cv_try_link_python_m_and_thread_and_util=no
872
+
873
+fi
874
+rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
875
+CFLAGS="$kde_save_cflags"
876
+LIBS="$kde_save_libs"
877
+LDFLAGS="$kde_save_ldflags"
878
+
879
+fi
880
+
881
+
882
+if test "$kde_cv_try_link_python_m_and_thread_and_util" = "yes"; then
883
+  echo "$as_me:$LINENO: result: yes" >&5
884
+echo "${ECHO_T}yes" >&6
885
+  kde_python_link_found=yes
886
+  if test ! "m_and_thread_and_util" = normal; then
887
+    LIBPYTHON="$LIBPYTHON $LIBPTHREAD -lm -lutil"
888
+  fi
889
+
890
+else
891
+  echo "$as_me:$LINENO: result: no" >&5
892
+echo "${ECHO_T}no" >&6
893
+
894
+fi
895
+ac_ext=cc
896
+ac_cpp='$CXXCPP $CPPFLAGS'
897
+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
898
+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
899
+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
900
+
901
+
902
+fi
903
+
904
+
905
+
906
+if test "$kde_python_link_found" = no; then
907
+
908
+if test "m_and_thread_and_db3" = normal; then
909
+  echo "$as_me:$LINENO: checking if a Python application links" >&5
910
+echo $ECHO_N "checking if a Python application links... $ECHO_C" >&6
911
+else
912
+  echo "$as_me:$LINENO: checking if Python depends on $LIBPTHREAD -lm -ldb-3 -lutil" >&5
913
+echo $ECHO_N "checking if Python depends on $LIBPTHREAD -lm -ldb-3 -lutil... $ECHO_C" >&6
914
+fi
915
+
916
+if test "${kde_cv_try_link_python_m_and_thread_and_db3+set}" = set; then
917
+  echo $ECHO_N "(cached) $ECHO_C" >&6
918
+else
919
+
920
+
921
+
922
+ac_ext=c
923
+ac_cpp='$CPP $CPPFLAGS'
924
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
925
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
926
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
927
+
928
+kde_save_cflags="$CFLAGS"
929
+CFLAGS="$CFLAGS $PYTHONINC"
930
+kde_save_libs="$LIBS"
931
+LIBS="$LIBS $LIBPYTHON $LIBPTHREAD -lm -ldb-3 -lutil $LIBDL $LIBSOCKET"
932
+kde_save_ldflags="$LDFLAGS"
933
+LDFLAGS="$LDFLAGS $PYTHONLIB"
934
+
935
+cat >conftest.$ac_ext <<_ACEOF
936
+#line $LINENO "configure"
937
+/* confdefs.h.  */
938
+_ACEOF
939
+cat confdefs.h >>conftest.$ac_ext
940
+cat >>conftest.$ac_ext <<_ACEOF
941
+/* end confdefs.h.  */
942
+
943
+#include <Python.h>
944
+
945
+int
946
+main ()
947
+{
948
+
949
+	PySys_SetArgv(1, 0);
950
+
951
+  ;
952
+  return 0;
953
+}
954
+_ACEOF
955
+rm -f conftest.$ac_objext conftest$ac_exeext
956
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
957
+  (eval $ac_link) 2>&5
958
+  ac_status=$?
959
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
960
+  (exit $ac_status); } &&
961
+         { ac_try='test -s conftest$ac_exeext'
962
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
963
+  (eval $ac_try) 2>&5
964
+  ac_status=$?
965
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
966
+  (exit $ac_status); }; }; then
967
+  kde_cv_try_link_python_m_and_thread_and_db3=yes
968
+else
969
+  echo "$as_me: failed program was:" >&5
970
+sed 's/^/| /' conftest.$ac_ext >&5
971
+
972
+kde_cv_try_link_python_m_and_thread_and_db3=no
973
+
974
+fi
975
+rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
976
+CFLAGS="$kde_save_cflags"
977
+LIBS="$kde_save_libs"
978
+LDFLAGS="$kde_save_ldflags"
979
+
980
+fi
981
+
982
+
983
+if test "$kde_cv_try_link_python_m_and_thread_and_db3" = "yes"; then
984
+  echo "$as_me:$LINENO: result: yes" >&5
985
+echo "${ECHO_T}yes" >&6
986
+  kde_python_link_found=yes
987
+  if test ! "m_and_thread_and_db3" = normal; then
988
+    LIBPYTHON="$LIBPYTHON $LIBPTHREAD -lm -ldb-3 -lutil"
989
+  fi
990
+
991
+else
992
+  echo "$as_me:$LINENO: result: no" >&5
993
+echo "${ECHO_T}no" >&6
994
+
995
+fi
996
+ac_ext=cc
997
+ac_cpp='$CXXCPP $CPPFLAGS'
998
+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
999
+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1000
+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1001
+
1002
+
1003
+fi
1004
+
1005
+
1006
+
1007
+if test "$kde_python_link_found" = no; then
1008
+
1009
+if test "pthread_and_db3" = normal; then
1010
+  echo "$as_me:$LINENO: checking if a Python application links" >&5
1011
+echo $ECHO_N "checking if a Python application links... $ECHO_C" >&6
1012
+else
1013
+  echo "$as_me:$LINENO: checking if Python depends on $LIBPTHREAD -ldb-3" >&5
1014
+echo $ECHO_N "checking if Python depends on $LIBPTHREAD -ldb-3... $ECHO_C" >&6
1015
+fi
1016
+
1017
+if test "${kde_cv_try_link_python_pthread_and_db3+set}" = set; then
1018
+  echo $ECHO_N "(cached) $ECHO_C" >&6
1019
+else
1020
+
1021
+
1022
+
1023
+ac_ext=c
1024
+ac_cpp='$CPP $CPPFLAGS'
1025
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1026
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1027
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
1028
+
1029
+kde_save_cflags="$CFLAGS"
1030
+CFLAGS="$CFLAGS $PYTHONINC"
1031
+kde_save_libs="$LIBS"
1032
+LIBS="$LIBS $LIBPYTHON $LIBPTHREAD -ldb-3 $LIBDL $LIBSOCKET"
1033
+kde_save_ldflags="$LDFLAGS"
1034
+LDFLAGS="$LDFLAGS $PYTHONLIB"
1035
+
1036
+cat >conftest.$ac_ext <<_ACEOF
1037
+#line $LINENO "configure"
1038
+/* confdefs.h.  */
1039
+_ACEOF
1040
+cat confdefs.h >>conftest.$ac_ext
1041
+cat >>conftest.$ac_ext <<_ACEOF
1042
+/* end confdefs.h.  */
1043
+
1044
+#include <Python.h>
1045
+
1046
+int
1047
+main ()
1048
+{
1049
+
1050
+	PySys_SetArgv(1, 0);
1051
+
1052
+  ;
1053
+  return 0;
1054
+}
1055
+_ACEOF
1056
+rm -f conftest.$ac_objext conftest$ac_exeext
1057
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1058
+  (eval $ac_link) 2>&5
1059
+  ac_status=$?
1060
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1061
+  (exit $ac_status); } &&
1062
+         { ac_try='test -s conftest$ac_exeext'
1063
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1064
+  (eval $ac_try) 2>&5
1065
+  ac_status=$?
1066
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1067
+  (exit $ac_status); }; }; then
1068
+  kde_cv_try_link_python_pthread_and_db3=yes
1069
+else
1070
+  echo "$as_me: failed program was:" >&5
1071
+sed 's/^/| /' conftest.$ac_ext >&5
1072
+
1073
+kde_cv_try_link_python_pthread_and_db3=no
1074
+
1075
+fi
1076
+rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
1077
+CFLAGS="$kde_save_cflags"
1078
+LIBS="$kde_save_libs"
1079
+LDFLAGS="$kde_save_ldflags"
1080
+
1081
+fi
1082
+
1083
+
1084
+if test "$kde_cv_try_link_python_pthread_and_db3" = "yes"; then
1085
+  echo "$as_me:$LINENO: result: yes" >&5
1086
+echo "${ECHO_T}yes" >&6
1087
+  kde_python_link_found=yes
1088
+  if test ! "pthread_and_db3" = normal; then
1089
+    LIBPYTHON="$LIBPYTHON $LIBPTHREAD -ldb-3"
1090
+  fi
1091
+
1092
+else
1093
+  echo "$as_me:$LINENO: result: no" >&5
1094
+echo "${ECHO_T}no" >&6
1095
+
1096
+fi
1097
+ac_ext=cc
1098
+ac_cpp='$CXXCPP $CPPFLAGS'
1099
+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1100
+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1101
+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1102
+
1103
+
1104
+fi
1105
+
1106
+
1107
+
1108
+if test "$kde_python_link_found" = no; then
1109
+
1110
+if test "m_and_thread_and_db" = normal; then
1111
+  echo "$as_me:$LINENO: checking if a Python application links" >&5
1112
+echo $ECHO_N "checking if a Python application links... $ECHO_C" >&6
1113
+else
1114
+  echo "$as_me:$LINENO: checking if Python depends on $LIBPTHREAD -lm -ldb -ltermcap -lutil" >&5
1115
+echo $ECHO_N "checking if Python depends on $LIBPTHREAD -lm -ldb -ltermcap -lutil... $ECHO_C" >&6
1116
+fi
1117
+
1118
+if test "${kde_cv_try_link_python_m_and_thread_and_db+set}" = set; then
1119
+  echo $ECHO_N "(cached) $ECHO_C" >&6
1120
+else
1121
+
1122
+
1123
+
1124
+ac_ext=c
1125
+ac_cpp='$CPP $CPPFLAGS'
1126
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1127
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1128
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
1129
+
1130
+kde_save_cflags="$CFLAGS"
1131
+CFLAGS="$CFLAGS $PYTHONINC"
1132
+kde_save_libs="$LIBS"
1133
+LIBS="$LIBS $LIBPYTHON $LIBPTHREAD -lm -ldb -ltermcap -lutil $LIBDL $LIBSOCKET"
1134
+kde_save_ldflags="$LDFLAGS"
1135
+LDFLAGS="$LDFLAGS $PYTHONLIB"
1136
+
1137
+cat >conftest.$ac_ext <<_ACEOF
1138
+#line $LINENO "configure"
1139
+/* confdefs.h.  */
1140
+_ACEOF
1141
+cat confdefs.h >>conftest.$ac_ext
1142
+cat >>conftest.$ac_ext <<_ACEOF
1143
+/* end confdefs.h.  */
1144
+
1145
+#include <Python.h>
1146
+
1147
+int
1148
+main ()
1149
+{
1150
+
1151
+	PySys_SetArgv(1, 0);
1152
+
1153
+  ;
1154
+  return 0;
1155
+}
1156
+_ACEOF
1157
+rm -f conftest.$ac_objext conftest$ac_exeext
1158
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1159
+  (eval $ac_link) 2>&5
1160
+  ac_status=$?
1161
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1162
+  (exit $ac_status); } &&
1163
+         { ac_try='test -s conftest$ac_exeext'
1164
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1165
+  (eval $ac_try) 2>&5
1166
+  ac_status=$?
1167
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1168
+  (exit $ac_status); }; }; then
1169
+  kde_cv_try_link_python_m_and_thread_and_db=yes
1170
+else
1171
+  echo "$as_me: failed program was:" >&5
1172
+sed 's/^/| /' conftest.$ac_ext >&5
1173
+
1174
+kde_cv_try_link_python_m_and_thread_and_db=no
1175
+
1176
+fi
1177
+rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
1178
+CFLAGS="$kde_save_cflags"
1179
+LIBS="$kde_save_libs"
1180
+LDFLAGS="$kde_save_ldflags"
1181
+
1182
+fi
1183
+
1184
+
1185
+if test "$kde_cv_try_link_python_m_and_thread_and_db" = "yes"; then
1186
+  echo "$as_me:$LINENO: result: yes" >&5
1187
+echo "${ECHO_T}yes" >&6
1188
+  kde_python_link_found=yes
1189
+  if test ! "m_and_thread_and_db" = normal; then
1190
+    LIBPYTHON="$LIBPYTHON $LIBPTHREAD -lm -ldb -ltermcap -lutil"
1191
+  fi
1192
+
1193
+else
1194
+  echo "$as_me:$LINENO: result: no" >&5
1195
+echo "${ECHO_T}no" >&6
1196
+
1197
+fi
1198
+ac_ext=cc
1199
+ac_cpp='$CXXCPP $CPPFLAGS'
1200
+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1201
+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1202
+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1203
+
1204
+
1205
+fi
1206
+
1207
+
1208
+
1209
+if test "$kde_python_link_found" = no; then
1210
+
1211
+if test "pthread_and_dl" = normal; then
1212
+  echo "$as_me:$LINENO: checking if a Python application links" >&5
1213
+echo $ECHO_N "checking if a Python application links... $ECHO_C" >&6
1214
+else
1215
+  echo "$as_me:$LINENO: checking if Python depends on $LIBPTHREAD $LIBDL -lutil -lreadline -lncurses -lm" >&5
1216
+echo $ECHO_N "checking if Python depends on $LIBPTHREAD $LIBDL -lutil -lreadline -lncurses -lm... $ECHO_C" >&6
1217
+fi
1218
+
1219
+if test "${kde_cv_try_link_python_pthread_and_dl+set}" = set; then
1220
+  echo $ECHO_N "(cached) $ECHO_C" >&6
1221
+else
1222
+
1223
+
1224
+
1225
+ac_ext=c
1226
+ac_cpp='$CPP $CPPFLAGS'
1227
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1228
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1229
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
1230
+
1231
+kde_save_cflags="$CFLAGS"
1232
+CFLAGS="$CFLAGS $PYTHONINC"
1233
+kde_save_libs="$LIBS"
1234
+LIBS="$LIBS $LIBPYTHON $LIBPTHREAD $LIBDL -lutil -lreadline -lncurses -lm $LIBDL $LIBSOCKET"
1235
+kde_save_ldflags="$LDFLAGS"
1236
+LDFLAGS="$LDFLAGS $PYTHONLIB"
1237
+
1238
+cat >conftest.$ac_ext <<_ACEOF
1239
+#line $LINENO "configure"
1240
+/* confdefs.h.  */
1241
+_ACEOF
1242
+cat confdefs.h >>conftest.$ac_ext
1243
+cat >>conftest.$ac_ext <<_ACEOF
1244
+/* end confdefs.h.  */
1245
+
1246
+#include <Python.h>
1247
+
1248
+int
1249
+main ()
1250
+{
1251
+
1252
+	PySys_SetArgv(1, 0);
1253
+
1254
+  ;
1255
+  return 0;
1256
+}
1257
+_ACEOF
1258
+rm -f conftest.$ac_objext conftest$ac_exeext
1259
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1260
+  (eval $ac_link) 2>&5
1261
+  ac_status=$?
1262
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1263
+  (exit $ac_status); } &&
1264
+         { ac_try='test -s conftest$ac_exeext'
1265
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1266
+  (eval $ac_try) 2>&5
1267
+  ac_status=$?
1268
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1269
+  (exit $ac_status); }; }; then
1270
+  kde_cv_try_link_python_pthread_and_dl=yes
1271
+else
1272
+  echo "$as_me: failed program was:" >&5
1273
+sed 's/^/| /' conftest.$ac_ext >&5
1274
+
1275
+kde_cv_try_link_python_pthread_and_dl=no
1276
+
1277
+fi
1278
+rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
1279
+CFLAGS="$kde_save_cflags"
1280
+LIBS="$kde_save_libs"
1281
+LDFLAGS="$kde_save_ldflags"
1282
+
1283
+fi
1284
+
1285
+
1286
+if test "$kde_cv_try_link_python_pthread_and_dl" = "yes"; then
1287
+  echo "$as_me:$LINENO: result: yes" >&5
1288
+echo "${ECHO_T}yes" >&6
1289
+  kde_python_link_found=yes
1290
+  if test ! "pthread_and_dl" = normal; then
1291
+    LIBPYTHON="$LIBPYTHON $LIBPTHREAD $LIBDL -lutil -lreadline -lncurses -lm"
1292
+  fi
1293
+
1294
+else
1295
+  echo "$as_me:$LINENO: result: no" >&5
1296
+echo "${ECHO_T}no" >&6
1297
+
1298
+fi
1299
+ac_ext=cc
1300
+ac_cpp='$CXXCPP $CPPFLAGS'
1301
+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1302
+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1303
+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1304
+
1305
+
1306
+fi
1307
+
1308
+
1309
+
1310
+if test "$kde_python_link_found" = no; then
1311
+
1312
+if test "m_and_thread_and_db_special" = normal; then
1313
+  echo "$as_me:$LINENO: checking if a Python application links" >&5
1314
+echo $ECHO_N "checking if a Python application links... $ECHO_C" >&6
1315
+else
1316
+  echo "$as_me:$LINENO: checking if Python depends on $LIBPTHREAD -lm -ldb -lutil" >&5
1317
+echo $ECHO_N "checking if Python depends on $LIBPTHREAD -lm -ldb -lutil... $ECHO_C" >&6
1318
+fi
1319
+
1320
+if test "${kde_cv_try_link_python_m_and_thread_and_db_special+set}" = set; then
1321
+  echo $ECHO_N "(cached) $ECHO_C" >&6
1322
+else
1323
+
1324
+
1325
+
1326
+ac_ext=c
1327
+ac_cpp='$CPP $CPPFLAGS'
1328
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1329
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1330
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
1331
+
1332
+kde_save_cflags="$CFLAGS"
1333
+CFLAGS="$CFLAGS $PYTHONINC"
1334
+kde_save_libs="$LIBS"
1335
+LIBS="$LIBS $LIBPYTHON $LIBPTHREAD -lm -ldb -lutil $LIBDL $LIBSOCKET"
1336
+kde_save_ldflags="$LDFLAGS"
1337
+LDFLAGS="$LDFLAGS $PYTHONLIB"
1338
+
1339
+cat >conftest.$ac_ext <<_ACEOF
1340
+#line $LINENO "configure"
1341
+/* confdefs.h.  */
1342
+_ACEOF
1343
+cat confdefs.h >>conftest.$ac_ext
1344
+cat >>conftest.$ac_ext <<_ACEOF
1345
+/* end confdefs.h.  */
1346
+
1347
+#include <Python.h>
1348
+
1349
+int
1350
+main ()
1351
+{
1352
+
1353
+	PySys_SetArgv(1, 0);
1354
+
1355
+  ;
1356
+  return 0;
1357
+}
1358
+_ACEOF
1359
+rm -f conftest.$ac_objext conftest$ac_exeext
1360
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1361
+  (eval $ac_link) 2>&5
1362
+  ac_status=$?
1363
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1364
+  (exit $ac_status); } &&
1365
+         { ac_try='test -s conftest$ac_exeext'
1366
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1367
+  (eval $ac_try) 2>&5
1368
+  ac_status=$?
1369
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1370
+  (exit $ac_status); }; }; then
1371
+  kde_cv_try_link_python_m_and_thread_and_db_special=yes
1372
+else
1373
+  echo "$as_me: failed program was:" >&5
1374
+sed 's/^/| /' conftest.$ac_ext >&5
1375
+
1376
+kde_cv_try_link_python_m_and_thread_and_db_special=no
1377
+
1378
+fi
1379
+rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
1380
+CFLAGS="$kde_save_cflags"
1381
+LIBS="$kde_save_libs"
1382
+LDFLAGS="$kde_save_ldflags"
1383
+
1384
+fi
1385
+
1386
+
1387
+if test "$kde_cv_try_link_python_m_and_thread_and_db_special" = "yes"; then
1388
+  echo "$as_me:$LINENO: result: yes" >&5
1389
+echo "${ECHO_T}yes" >&6
1390
+  kde_python_link_found=yes
1391
+  if test ! "m_and_thread_and_db_special" = normal; then
1392
+    LIBPYTHON="$LIBPYTHON $LIBPTHREAD -lm -ldb -lutil"
1393
+  fi
1394
+
1395
+else
1396
+  echo "$as_me:$LINENO: result: no" >&5
1397
+echo "${ECHO_T}no" >&6
1398
+  { { echo "$as_me:$LINENO: error: it seems, Python depends on another library.
1399
+    Pleae set LIBPYTHON to '-lpython$version -lotherlib' before calling configure to fix this
1400
+    and contact the authors to let them know about this problem" >&5
1401
+echo "$as_me: error: it seems, Python depends on another library.
1402
+    Pleae set LIBPYTHON to '-lpython$version -lotherlib' before calling configure to fix this
1403
+    and contact the authors to let them know about this problem" >&2;}
1404
+   { (exit 1); exit 1; }; }
1405
+
1406
+fi
1407
+ac_ext=cc
1408
+ac_cpp='$CXXCPP $CPPFLAGS'
1409
+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1410
+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1411
+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1412
+
1413
+
1414
+fi
1415
+
1416
+
1417
+
1418
+  LIBPYTHON="$LIBPYTHON $LIBDL $LIBSOCKET"
1419
+
1420
+
1421
+
1422
+
1423
+HKPYTHONDIR="python"
1424
+
1425
+cat >>confdefs.h <<\_ACEOF
1426
+#define HAVE_PYTHON 1
1427
+_ACEOF
1428
+
1429
+fi
1430
 
1431
 
1432
 else
(-)/usr/ports/databases/hk_classes/files/patch-hk_classes::hk_actionquery.cpp (+11 lines)
Line 0 Link Here
1
--- hk_classes/hk_actionquery.cpp.orig	Wed Mar 10 22:55:49 2004
2
+++ hk_classes/hk_actionquery.cpp	Wed Mar 10 22:56:40 2004
3
@@ -12,6 +12,8 @@
4
 #include "hk_actionquery.h"
5
 #include "hk_database.h"
6
 
7
+#include <time.h>
8
+
9
 class hk_actionqueryprivate
10
 {
11
 public:
(-)/usr/ports/databases/hk_classes/files/patch-hk_classes::hk_datasource.cpp (+11 lines)
Line 0 Link Here
1
--- hk_classes/hk_datasource.cpp.orig	Wed Mar 10 22:57:45 2004
2
+++ hk_classes/hk_datasource.cpp	Wed Mar 10 22:58:01 2004
3
@@ -19,7 +19,7 @@
4
 #include <algorithm>
5
 #include <list>
6
 #include <stdlib.h>
7
-
8
+#include <time.h>
9
 
10
 class hk_datasourceprivate
11
 {
(-)/usr/ports/databases/hk_classes/files/patch-hk_drivermanager.cpp (-11 lines)
Lines 1-11 Link Here
1
--- hk_classes/hk_drivermanager.cpp.orig	Fri Oct 31 12:14:16 2003
2
+++ hk_classes/hk_drivermanager.cpp	Fri Oct 31 12:14:25 2003
3
@@ -141,7 +141,7 @@
4
     {
5
         if (interactive)
6
 	{
7
-	   char* e=dlerror();
8
+	   const char* e=dlerror();
9
 	   hk_string error=hk_translate("Unknown reason");
10
 	   if (e) error=e;
11
 	   hk_string w=hk_translate("Database driver '%DRIVER%' could not be loaded.\nReason: ")+error;
(-)/usr/ports/databases/hk_classes/pkg-plist (+3 lines)
Lines 40-45 Link Here
40
%%MYSQL%%lib/hk_classes/drivers/libhk_mysqldriver.so.3
40
%%MYSQL%%lib/hk_classes/drivers/libhk_mysqldriver.so.3
41
%%MYSQL%%lib/hk_classes/drivers/libhk_mysqldriver.so
41
%%MYSQL%%lib/hk_classes/drivers/libhk_mysqldriver.so
42
%%MYSQL%%lib/hk_classes/drivers/libhk_mysqldriver.la
42
%%MYSQL%%lib/hk_classes/drivers/libhk_mysqldriver.la
43
%%ODBC%%lib/hk_classes/drivers/libhk_odbcdriver.la
44
%%ODBC%%lib/hk_classes/drivers/libhk_odbcdriver.so
45
%%ODBC%%lib/hk_classes/drivers/libhk_odbcdriver.so.0
43
%%POSTGRESQL%%lib/hk_classes/drivers/libhk_postgresdriver.so.0
46
%%POSTGRESQL%%lib/hk_classes/drivers/libhk_postgresdriver.so.0
44
%%POSTGRESQL%%lib/hk_classes/drivers/libhk_postgresdriver.so
47
%%POSTGRESQL%%lib/hk_classes/drivers/libhk_postgresdriver.so
45
%%POSTGRESQL%%lib/hk_classes/drivers/libhk_postgresdriver.la
48
%%POSTGRESQL%%lib/hk_classes/drivers/libhk_postgresdriver.la

Return to bug 64072