Skip to content
Snippets Groups Projects
Commit ce12211e authored by Boris Kolpackov's avatar Boris Kolpackov
Browse files

Allow use of the Windows transcoder and net accessor on Cygwin but only if the...

Allow use of the Windows transcoder and net accessor on Cygwin but only if the user explicitly asks for it.


git-svn-id: https://svn.apache.org/repos/asf/xerces/c/trunk@697787 13f79535-47bb-0310-9956-ffa450edef68
parent 8c5a650c
No related branches found
No related tags found
No related merge requests found
...@@ -106,6 +106,26 @@ AC_DEFUN([XERCES_NETACCESSOR_SELECTION], ...@@ -106,6 +106,26 @@ AC_DEFUN([XERCES_NETACCESSOR_SELECTION],
[AC_MSG_RESULT(no)] [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 esac
......
...@@ -108,6 +108,21 @@ AC_DEFUN([XERCES_TRANSCODER_SELECTION], ...@@ -108,6 +108,21 @@ AC_DEFUN([XERCES_TRANSCODER_SELECTION],
[AC_MSG_RESULT(no)] [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 esac
# TODO: Tests for additional transcoders # TODO: Tests for additional transcoders
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment