In metaconfig.git, the branch master has been updated

<http://perl5.git.perl.org/metaconfig.git/commitdiff/04989e1df91d353ca0057270c570efeaf0308da6?hp=922a20e798ed97e7833110cfd1399f5f78c01ec5>

- Log -----------------------------------------------------------------
commit 04989e1df91d353ca0057270c570efeaf0308da6
Author: H.Merijn Brand - Tux <[email protected]>
Date:   Mon Jun 2 17:12:13 2014 +0200

    Probe for working wcscmp and wcsxfrm
-----------------------------------------------------------------------

Summary of changes:
 U/perl/d_wcscmp.U  | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 U/perl/d_wcsxfrm.U | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 105 insertions(+)
 create mode 100644 U/perl/d_wcscmp.U
 create mode 100644 U/perl/d_wcsxfrm.U

diff --git a/U/perl/d_wcscmp.U b/U/perl/d_wcscmp.U
new file mode 100644
index 0000000..22f1783
--- /dev/null
+++ b/U/perl/d_wcscmp.U
@@ -0,0 +1,52 @@
+?RCS: Copyright (c) 2014-2014, Karl Williamson & H.Merijn Brand
+?RCS:
+?RCS: You may redistribute only under the terms of the Artistic License,
+?RCS: as specified in the README file that comes with the distribution.
+?RCS: You may reuse parts of this distribution only within the terms of
+?RCS: that same Artistic License; a copy of which may be found at the root
+?RCS: of the source tree for dist 3.0.
+?RCS:
+?MAKE:d_wcscmp: Compile cat rm_try run Oldconfig Setvar
+?MAKE: -pick add $@ %<
+?S:d_wcscmp:
+?S:    This variable conditionally defines the HAS_WCSCMP symbol if the
+?S:    wcscmp() routine is available and can be used to compare wide
+?S:    character strings.
+?S:.
+?C:HAS_WCSCMP:
+?C:    This symbol, if defined, indicates that the wcscmp routine is
+?C:    available to compare two wide character strings.
+?C:.
+?H:#$d_wcscmp HAS_WCSCMP       /**/
+?H:.
+?F:!try
+?LINT: set d_wcscmp
+: look for wcscmp
+echo " "
+$cat >try.c <<'EOCP'
+#include <stdio.h>
+#include <wchar.h>
+int main ()
+{
+    wchar_t *s = L" ";
+    return (wcscmp (s, s) ? 1 : 0);
+    }
+EOCP
+set try
+?X: if $cc $ccflags $ldflags -o try try.c $libs >/dev/null 2>&1 ; then
+val="$undef"
+if eval $compile; then
+    `$run ./try`
+    case "$?" in
+       0)  echo "A working wcscmp() found." >&4
+           val="$define" ;;
+       *)  echo "wcscmp() found, but it doesn't work" >&4
+           ;;
+       esac
+else
+    echo "wcscmp() NOT found." >&4
+    fi
+set d_wcscmp
+eval $setvar
+$rm_try
+
diff --git a/U/perl/d_wcsxfrm.U b/U/perl/d_wcsxfrm.U
new file mode 100644
index 0000000..61a7505
--- /dev/null
+++ b/U/perl/d_wcsxfrm.U
@@ -0,0 +1,53 @@
+?RCS: Copyright (c) 2014-2014, Karl Williamson & H.Merijn Brand
+?RCS:
+?RCS: You may redistribute only under the terms of the Artistic License,
+?RCS: as specified in the README file that comes with the distribution.
+?RCS: You may reuse parts of this distribution only within the terms of
+?RCS: that same Artistic License; a copy of which may be found at the root
+?RCS: of the source tree for dist 3.0.
+?RCS:
+?MAKE:d_wcsxfrm: Compile cat rm_try run Oldconfig Setvar
+?MAKE: -pick add $@ %<
+?S:d_wcsxfrm:
+?S:    This variable conditionally defines the HAS_WCSXFRM symbol if the
+?S:    wcsxfrm() routine is available and can be used to compare wide
+?S:    character strings.
+?S:.
+?C:HAS_WCSXFRM:
+?C:    This symbol, if defined, indicates that the wcsxfrm routine is
+?C:    available to tranform a wide character string for wcscmp().
+?C:.
+?H:#$d_wcsxfrm HAS_WCSXFRM     /**/
+?H:.
+?F:!try
+?LINT: set d_wcsxfrm
+: look for wcsxfrm
+echo " "
+$cat >try.c <<'EOCP'
+#include <errno.h>
+#include <wchar.h>
+int main ()
+{
+    wchar_t dst[4], *src = L" ";
+    errno = 0;
+    return (wcsxfrm (dst, src, 1) ? errno ? errno : 0 : 1);
+    }
+EOCP
+set try
+?X: if $cc $ccflags $ldflags -o try try.c $libs >/dev/null 2>&1 ; then
+val="$undef"
+if eval $compile; then
+    `$run ./try`
+    case "$?" in
+       0)  echo "A working wcsxfrm() found." >&4
+           val="$define" ;;
+       *)  echo "wcsxfrm() found, but it doesn't work" >&4
+           ;;
+       esac
+else
+    echo "wcsxfrm() NOT found." >&4
+    fi
+set d_wcsxfrm
+eval $setvar
+$rm_try
+

--
perl5 metaconfig repository

Reply via email to