This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
U/threads/d_nl_langinfo_l.U: fix probe
authorAaron Crane <arc@cpan.org>
Sat, 21 Oct 2017 15:41:47 +0000 (16:41 +0100)
committerAaron Crane <arc@cpan.org>
Sat, 21 Oct 2017 15:41:47 +0000 (16:41 +0100)
If there's no thread-safe nl_langinfo_l(), the Configure variable was being
left as the empty string. Set it to "$define" in that case.

U/threads/d_nl_langinfo_l.U

index af27afd..e44165b 100644 (file)
@@ -116,6 +116,9 @@ case "$usethreads" in
        fi
        ;;
     *) echo "Since threads aren't selected, we won't bother looking for nl_langinfo_l()" >&4
-    esac
+esac
+if test X"$d_thread_safe_nl_langinfo_l" = X; then
+       d_thread_safe_nl_langinfo_l="$undef"
+fi
 $rm_try