Patch for res_init() check in acinclude.m4.in

Marcus Camen mcamen at mcamen.de
Fri Apr 4 19:07:02 BST 2003


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch_BRANCH
Type: text/x-diff
Size: 988 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20030404/af503705/attachment.diff>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch_HEAD
Type: text/x-diff
Size: 972 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20030404/af503705/attachment-0001.diff>


More information about the kde-core-devel mailing list