From: "Nguyen Thai Ngoc Duy" <pclouds@gmail.com>
To: "Johannes Sixt" <J.Sixt@eudaptics.com>
Cc: git@vger.kernel.org
Subject: Re: [PATCH 4/4] Don't link with libsocket in MINGW port
Date: Wed, 30 May 2007 09:08:59 -0400 [thread overview]
Message-ID: <fcaeb9bf0705300608y6ae9eb12i71635746defbec10@mail.gmail.com> (raw)
In-Reply-To: <465D6796.27B65043@eudaptics.com>
On 5/30/07, Johannes Sixt <J.Sixt@eudaptics.com> wrote:
> This looks wrong. NEEDS_SOCKET is set in the architecture sections of
> Makefile where necessary, but the MinGW section doesn't want it and
> doesn't set it. If ./configure sets it, then you should fix
> configure.ac, not work around in Makefile.
I did so because I didn't have SunOS to test so I'd rather not touch
the code detecting NEEDS_SOCKET in configure.ac. How about this patch:
diff --git a/configure.ac b/configure.ac
index 4a12cb0..0516fdb 100644
--- a/configure.ac
+++ b/configure.ac
@@ -173,6 +173,12 @@ test -n "$NEEDS_LIBICONV" && LIBS="$LIBS -liconv"
AC_CHECK_LIB([c], [socket],
[NEEDS_SOCKET=],
[NEEDS_SOCKET=YesPlease])
+if test "$NEEDS_SOCKET" = YesPlease; then # more check
+ AC_CHECK_LIB([socket], [socket],
+ [LIBSOCKET_HAS_SOCKET=],
+ [LIBSOCKET_HAS_SOCKET=1])
+ test -n "$LIBSOCKET_HAS_SOCKET" && NEEDS_SOCKET=
+fi
AC_SUBST(NEEDS_SOCKET)
test -n "$NEEDS_SOCKET" && LIBS="$LIBS -lsocket"
If someone has a SunOS, please test the above patch. Thanks
--
Duy
prev parent reply other threads:[~2007-05-30 13:09 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <11804928354163-git-send-email-pclouds@gmail.com>
2007-05-30 6:51 ` [PATCH 0/4] Make MINGW port cross-compilable from Linux Johannes Sixt
2007-05-30 13:11 ` Johannes Schindelin
[not found] ` <fcaeb9bf0705300618s712be8auf29ba7bd3579bd16@mail.gmail.com>
2007-05-30 13:43 ` Johannes Schindelin
[not found] ` <11804928381837-git-send-email-pclouds@gmail.com>
[not found] ` <1180492840102-git-send-email-pclouds@gmail.com>
[not found] ` <11804928463543-git-send-email-pclouds@gmail.com>
[not found] ` <1180492848275-git-send-email-pclouds@gmail.com>
2007-05-30 12:01 ` [PATCH 4/4] Don't link with libsocket in MINGW port Johannes Sixt
2007-05-30 13:08 ` Nguyen Thai Ngoc Duy [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=fcaeb9bf0705300608y6ae9eb12i71635746defbec10@mail.gmail.com \
--to=pclouds@gmail.com \
--cc=J.Sixt@eudaptics.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).