curl-users
patch to curl 7.10.7 to support QNX 6.2.x
Date: Thu, 25 Sep 2003 17:13:20 -0400
Hello everyone,
QNX 6 is a POSIX-compliant UNIX variant, so porting curl was very easy.
Only two small changes to configure.ac were required in order to port
the latest curl (v7.10.7) to QNX 6.2.x (http://www.qnx.com).
The patch is attached to this mail.
Changes to support QNX 6.2.x
- had to change a check before testing for -lnsl and -lsocket
simultaneously. The configure system would forget that it had
already found -lsocket to be suitable, otherwise.
- had to move the check for IPv6 to below where -lsocket gets added
to the default LIBS variable. The commands were not changed, only
moved.
NOTE: The libz.so included in QNX 6.2.1 is missing the zlibVersion()
function. This will cause the compile to fail. It has already been
corrected in QNX's internal cvs repository. Earlier versions
(6.2.0) and future versions (6.3.x) should work fine. As a
temporary measure it is possible to link against /usr/lib/libz.so.1
which does include that function.
Thanks,
James
--- /fs/hd1-qnx4/home/jamesm/t2/cvs/open/curl/curl-7.10.7/configure.ac Thu Sep 25 14:46:03 2003
+++ configure.ac Thu Sep 25 16:11:03 2003
@@ -1,4 +1,4 @@
-dnl $Id: configure.ac,v 1.1 2003/09/25 18:46:03 jamesm Exp $
+dnl $Id: configure.ac,v 1.2 2003/09/25 20:11:03 jamesm Exp $
dnl Process this file with autoconf to produce a configure script.
AC_PREREQ(2.57)
@@ -193,50 +193,7 @@
AC_MSG_RESULT(yes)
)
-
dnl **********************************************************************
-dnl Checks for IPv6
-dnl **********************************************************************
-
-AC_MSG_CHECKING([whether to enable ipv6])
-AC_ARG_ENABLE(ipv6,
-AC_HELP_STRING([--enable-ipv6],[Enable ipv6 (with ipv4) support])
-AC_HELP_STRING([--disable-ipv6],[Disable ipv6 support]),
-[ case "$enableval" in
- no)
- AC_MSG_RESULT(no)
- ipv6=no
- ;;
- *) AC_MSG_RESULT(yes)
- ipv6=yes
- ;;
- esac ],
-
- AC_TRY_RUN([ /* is AF_INET6 available? */
-#include <sys/types.h>
-#include <sys/socket.h>
-main()
-{
- if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
- exit(1);
- else
- exit(0);
-}
-],
- AC_MSG_RESULT(yes)
- ipv6=yes,
- AC_MSG_RESULT(no)
- ipv6=no,
- AC_MSG_RESULT(no)
- ipv6=no
-))
-
-if test "$ipv6" = "yes"; then
- CURL_CHECK_WORKING_GETADDRINFO
-fi
-
-
-dnl **********************************************************************
dnl Checks for libraries.
dnl **********************************************************************
@@ -250,7 +207,7 @@
dnl At least one system has been identified to require BOTH nsl and
dnl socket libs to link properly.
-if test "$ac_cv_lib_nsl_gethostbyname" = "$ac_cv_func_gethostbyname"; then
+if test "$ac_cv_lib_nsl_gethostbyname" != "yes" -a "$ac_cv_lib_socket_gethostbyname" != "yes"; then
AC_MSG_CHECKING([trying both nsl and socket libs])
my_ac_save_LIBS=$LIBS
LIBS="-lnsl -lsocket $LIBS"
@@ -298,6 +255,47 @@
esac ],
AC_MSG_RESULT(no)
)
+
+dnl **********************************************************************
+dnl Checks for IPv6
+dnl **********************************************************************
+
+AC_MSG_CHECKING([whether to enable ipv6])
+AC_ARG_ENABLE(ipv6,
+AC_HELP_STRING([--enable-ipv6],[Enable ipv6 (with ipv4) support])
+AC_HELP_STRING([--disable-ipv6],[Disable ipv6 support]),
+[ case "$enableval" in
+ no)
+ AC_MSG_RESULT(no)
+ ipv6=no
+ ;;
+ *) AC_MSG_RESULT(yes)
+ ipv6=yes
+ ;;
+ esac ],
+
+ AC_TRY_RUN([ /* is AF_INET6 available? */
+#include <sys/types.h>
+#include <sys/socket.h>
+main()
+{
+ if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
+ exit(1);
+ else
+ exit(0);
+}
+],
+ AC_MSG_RESULT(yes)
+ ipv6=yes,
+ AC_MSG_RESULT(no)
+ ipv6=no,
+ AC_MSG_RESULT(no)
+ ipv6=no
+))
+
+if test "$ipv6" = "yes"; then
+ CURL_CHECK_WORKING_GETADDRINFO
+fi
dnl **********************************************************************
dnl Check how non-blocking sockets are set
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
Received on 2003-09-25