This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Enable -Dusesitecustomize from Configure command line
authorH.Merijn Brand <h.m.brand@xs4all.nl>
Wed, 30 Mar 2005 14:05:35 +0000 (14:05 +0000)
committerH.Merijn Brand <h.m.brand@xs4all.nl>
Wed, 30 Mar 2005 14:05:35 +0000 (14:05 +0000)
Will define USE_SITECUSTOMIZE for source files
and set d_sitecustomize and usesitecustomize in config

p4raw-id: //depot/metaconfig@24103

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

diff --git a/U/perl/d_sitecustomize.U b/U/perl/d_sitecustomize.U
new file mode 100644 (file)
index 0000000..4b3bb8d
--- /dev/null
@@ -0,0 +1,38 @@
+?RCS: $Id: d_sitecustomize.U,v $
+?RCS:
+?RCS: Copyright (c) 2005-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:
+?RCS: $Log: d_sitecustomize.U,v $
+?RCS:
+?MAKE:usesitecustomize d_sitecustomize: Oldconfig Setvar
+?MAKE: -pick add $@ %<
+?S:usesitecustomize:
+?S:    This variable is set to true when the user requires a mechanism that
+?S:    allows the sysadmin to add entries to @INC at runtime.  This variable
+?S:    being set, makes perl run '$sitelib/sitecustomize.pl' at startup.
+?S:.
+?S:d_sitecustomize:
+?S:    This variable conditionally defines the USE_SITECUSTOMIZE symbol,
+?S:    and indicates whether sitecustomize is available (and should be used).
+?S:.
+?C:USE_SITECUSTOMIZE:
+?C:    This symbol, if defined, indicates that sitecustomize should
+?C:    be used.
+?C:.
+?H:#$d_sitecustomize   USE_SITECUSTOMIZE               /**/
+?H:.
+?LINT:set d_sitecustomize
+
+d_sitecustomize="$undef"
+case "$usesitecustomize" in
+    $define|true|[Yy]*)
+       usesitecustomize="$define"
+       d_sitecustomize="$define"
+       ;;
+    *)
+       usesitecustomize="$undef"
+    esac
+