This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Add probe for unsetenv ()
authorH.Merijn Brand <h.m.brand@xs4all.nl>
Mon, 10 Oct 2005 13:34:49 +0000 (13:34 +0000)
committerH.Merijn Brand <h.m.brand@xs4all.nl>
Mon, 10 Oct 2005 13:34:49 +0000 (13:34 +0000)
p4raw-id: //depot/metaconfig@25732

U/perl/d_unsetenv.U [new file with mode: 0644]

diff --git a/U/perl/d_unsetenv.U b/U/perl/d_unsetenv.U
new file mode 100644 (file)
index 0000000..ccb06da
--- /dev/null
@@ -0,0 +1,24 @@
+?RCS: $Id$
+?RCS:
+?RCS: Copyright (c) 2005 H.Merijn Brand
+?RCS:
+?RCS: You may distribute under the terms of either the GNU General Public
+?RCS: License or the Artistic License, as specified in the README file.
+?RCS:
+?MAKE:d_unsetenv: Inlibc
+?MAKE: -pick add $@ %<
+?S:d_unsetenv:
+?S:    This variable conditionally defines the HAS_UNSETENV symbol, which
+?S:    indicates to the C program that the unsetenv () routine is available.
+?S:.
+?C:HAS_UNSETENV:
+?C:    This symbol, if defined, indicates that the unsetenv () routine is
+?C:    available for use.
+?C:.
+?H:#$d_unsetenv HAS_UNSETENV           /**/
+?H:.
+?LINT:set d_unsetenv
+: see if unsetenv exists
+set unsetenv d_unsetenv
+eval $inlibc
+