Author: borisk
Date: Mon Sep 22 04:55:10 2008
New Revision: 697787

URL: http://svn.apache.org/viewvc?rev=697787&view=rev
Log:
Allow use of the Windows transcoder and net accessor on Cygwin but only if the 
user explicitly asks for it.

Modified:
    xerces/c/trunk/m4/xerces_netaccessor_selection.m4
    xerces/c/trunk/m4/xerces_transcoder_selection.m4

Modified: xerces/c/trunk/m4/xerces_netaccessor_selection.m4
URL: 
http://svn.apache.org/viewvc/xerces/c/trunk/m4/xerces_netaccessor_selection.m4?rev=697787&r1=697786&r2=697787&view=diff
==============================================================================
--- xerces/c/trunk/m4/xerces_netaccessor_selection.m4 (original)
+++ xerces/c/trunk/m4/xerces_netaccessor_selection.m4 Mon Sep 22 04:55:10 2008
@@ -106,6 +106,26 @@
                        [AC_MSG_RESULT(no)]
                )
                ;;
+       cygwin*)
+               # Only add it to the list if the user explicitly asked
+                # for it.
+               #
+               list_add=
+               no_winsock=false
+               AC_CHECK_HEADERS([winsock2.h], [], [no_winsock=true])
+               AC_MSG_CHECKING([whether to use the WinSock NetAccessor 
(Windows)])
+               AS_IF([! $no_winsock], [
+                       AC_ARG_ENABLE([netaccessor-winsock],
+                               AS_HELP_STRING([--enable-netaccessor-winsock],
+                                       [Enable winsock-based NetAccessor 
support]),
+                               [AS_IF([test x"$enableval" = xyes],
+                                       [list_add=WINSOCK])])
+               ])
+               AS_IF([test x"$list_add" != x],
+                       [na_list="$na_list -$list_add-"; AC_MSG_RESULT(yes)],
+                       [AC_MSG_RESULT(no)]
+               )
+               ;;
        esac
 
 

Modified: xerces/c/trunk/m4/xerces_transcoder_selection.m4
URL: 
http://svn.apache.org/viewvc/xerces/c/trunk/m4/xerces_transcoder_selection.m4?rev=697787&r1=697786&r2=697787&view=diff
==============================================================================
--- xerces/c/trunk/m4/xerces_transcoder_selection.m4 (original)
+++ xerces/c/trunk/m4/xerces_transcoder_selection.m4 Mon Sep 22 04:55:10 2008
@@ -108,6 +108,21 @@
                        [AC_MSG_RESULT(no)]
                )
                ;;
+       cygwin*)
+               # Only add it to the list if the user explicitly asked
+                # for it.
+               #
+               AC_MSG_CHECKING([whether to use the Windows Transcoder])
+               AC_ARG_ENABLE([transcoder-windows],
+                       AS_HELP_STRING([--enable-transcoder-windows],
+                               [Enable Windows-based transcoder support]),
+                       [AS_IF([test x"$enableval" = xyes],
+                              [list_add=WINDOWS])])
+               AS_IF([test x"$list_add" != x],
+                       [tc_list="$tc_list -$list_add-"; AC_MSG_RESULT(yes)],
+                       [AC_MSG_RESULT(no)]
+               )
+               ;;
        esac
 
        # TODO: Tests for additional transcoders



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to