[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-core-devel
Subject: Patch for res_init() check in acinclude.m4.in
From: Marcus Camen <mcamen () mcamen ! de>
Date: 2003-04-04 18:07:02
[Download RAW message or body]
Hi *,
on kde-nonlinux Albert Chin posted a patch for acinclude.m4.in which fixes a
compile problem on HP-UX.
http://lists.kde.org/?l=kde-nonlinux&m=104940768320588&w=2
I would welcome to see this applied to HEAD and to the BRANCH. Comments?
Index: acinclude.m4.in
===================================================================
RCS file: /home/kde/kde-common/admin/acinclude.m4.in,v
retrieving revision 2.353
diff -u -5 -p -d -r2.353 acinclude.m4.in
--- acinclude.m4.in 28 Mar 2003 11:06:54 -0000 2.353
+++ acinclude.m4.in 4 Apr 2003 15:45:51 -0000
@@ -2254,27 +2254,20 @@ AC_DEFUN(AC_CHECK_RES_INIT,
[ AC_MSG_RESULT(no) ]
)
LIBS=$kde_libs_safe
AC_SUBST(LIBRESOLV)
- AC_MSG_CHECKING([if res_init is available])
- AC_TRY_COMPILE(
+ KDE_CHECK_FUNC_EXT(res_init,
[
#include <sys/types.h>
#include <netinet/in.h>
#include <arpa/nameser.h>
#include <resolv.h>
],
- [
- res_init();
- ],
- [
- AC_MSG_RESULT(yes)
- AC_DEFINE(HAVE_RES_INIT, 1, [Define if you have the res_init function])
- ],
- [ AC_MSG_RESULT(no) ]
- )
+ [res_init()],
+ [int res_init(void)],
+ [RES_INIT])
])
AC_DEFUN(AC_CHECK_STRLCPY,
[
KDE_CHECK_FUNC_EXT(strlcpy, [
--
Marcus
["patch_BRANCH" (text/x-diff)]
Index: acinclude.m4.in
===================================================================
RCS file: /home/kde/kde-common/admin/acinclude.m4.in,v
retrieving revision 2.302.2.24
diff -u -5 -p -d -r2.302.2.24 acinclude.m4.in
--- acinclude.m4.in 6 Mar 2003 08:42:32 -0000 2.302.2.24
+++ acinclude.m4.in 4 Apr 2003 15:59:01 -0000
@@ -2248,27 +2248,20 @@ AC_DEFUN(AC_CHECK_RES_INIT,
[ AC_MSG_RESULT(no) ]
)
LIBS="$kde_libs_safe"
AC_SUBST(LIBRESOLV)
- AC_MSG_CHECKING([if res_init is available])
- AC_TRY_COMPILE(
+ KDE_CHECK_FUNC_EXT(res_init,
[
#include <sys/types.h>
#include <netinet/in.h>
#include <arpa/nameser.h>
#include <resolv.h>
],
- [
- res_init();
- ],
- [
- AC_MSG_RESULT(yes)
- AC_DEFINE(HAVE_RES_INIT, 1, [Define if you have the res_init function])
- ],
- [ AC_MSG_RESULT(no) ]
- )
+ [res_init()],
+ [int res_init(void)],
+ [RES_INIT])
])
AC_DEFUN(AC_CHECK_STRLCPY,
[
KDE_CHECK_FUNC_EXT(strlcpy, [
["patch_HEAD" (text/x-diff)]
Index: acinclude.m4.in
===================================================================
RCS file: /home/kde/kde-common/admin/acinclude.m4.in,v
retrieving revision 2.353
diff -u -5 -p -d -r2.353 acinclude.m4.in
--- acinclude.m4.in 28 Mar 2003 11:06:54 -0000 2.353
+++ acinclude.m4.in 4 Apr 2003 15:59:38 -0000
@@ -2254,27 +2254,20 @@ AC_DEFUN(AC_CHECK_RES_INIT,
[ AC_MSG_RESULT(no) ]
)
LIBS=$kde_libs_safe
AC_SUBST(LIBRESOLV)
- AC_MSG_CHECKING([if res_init is available])
- AC_TRY_COMPILE(
+ KDE_CHECK_FUNC_EXT(res_init,
[
#include <sys/types.h>
#include <netinet/in.h>
#include <arpa/nameser.h>
#include <resolv.h>
],
- [
- res_init();
- ],
- [
- AC_MSG_RESULT(yes)
- AC_DEFINE(HAVE_RES_INIT, 1, [Define if you have the res_init function])
- ],
- [ AC_MSG_RESULT(no) ]
- )
+ [res_init()],
+ [int res_init(void)],
+ [RES_INIT])
])
AC_DEFUN(AC_CHECK_STRLCPY,
[
KDE_CHECK_FUNC_EXT(strlcpy, [
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic