develooper Front page | perl.perl5.porters | Postings from March 2006

$Config{d_sitearch}

Thread Next
From:
Gisle Aas
Date:
March 26, 2006 23:41
Subject:
$Config{d_sitearch}
Message ID:
lracbcl4gm.fsf@caliper.activestate.com
If you set $sitearch to be the same as $archlib then you get the same
directory twice in @INC.  This Configure patch introduce d_sitearch in
the same way as we have $d_archlib to prevent this annoyance.

Can I just apply it or should the corresponding metaconfig unit to be
patched first?

--Gisle


==== //depot/perl/Configure#612 - /home/gisle/perl/blead/Configure ====
Index: perl/Configure
--- perl/Configure.~1~	Mon Mar 27 09:33:50 2006
+++ perl/Configure	Mon Mar 27 09:33:50 2006
@@ -1101,6 +1101,7 @@
 installsitearch=''
 sitearch=''
 sitearchexp=''
+d_sitearch=''
 installsitebin=''
 sitebin=''
 sitebinexp=''
@@ -6584,6 +6585,11 @@
 . ./getfile
 prefixvar=sitearch
 . ./setprefixvar
+if $test X"$sitearch" = X"$sitelib"; then
+	d_sitearch="$undef"
+else
+	d_sitearch="$define"
+fi
 
 $cat <<EOM
 
@@ -21496,6 +21502,7 @@
 d_sigaction='$d_sigaction'
 d_sigprocmask='$d_sigprocmask'
 d_sigsetjmp='$d_sigsetjmp'
+d_sitearch='$d_sitearch'
 d_snprintf='$d_snprintf'
 d_sockatmark='$d_sockatmark'
 d_sockatmarkproto='$d_sockatmarkproto'
==== //depot/perl/Porting/Glossary#163 - /home/gisle/perl/blead/Porting/Glossary ====
Index: perl/Porting/Glossary
--- perl/Porting/Glossary.~1~	Mon Mar 27 09:33:50 2006
+++ perl/Porting/Glossary	Mon Mar 27 09:33:50 2006
@@ -1907,6 +1907,11 @@
 	which indicates that the sigsetjmp() routine is available to
 	call setjmp() and optionally save the process's signal mask.
 
+d_sitearch (sitearch.U):
+	This variable conditionally defines SITEARCH to hold the pathname
+	of architecture-dependent library files for $package.  If
+	$sitearch is the same as $archlib, then this is set to undef.
+
 d_sockatmark (d_sockatmark.U):
 	This variable conditionally defines the HAS_SOCKATMARK symbol, which
 	indicates to the C program that the sockatmark() routine is available.
==== //depot/perl/config_h.SH#313 - /home/gisle/perl/blead/config_h.SH ====
Index: perl/config_h.SH
--- perl/config_h.SH.~1~	Mon Mar 27 09:33:50 2006
+++ perl/config_h.SH	Mon Mar 27 09:33:50 2006
@@ -3485,8 +3485,8 @@
  *	This symbol contains the ~name expanded version of SITEARCH, to be used
  *	in programs that are not prepared to deal with ~ expansion at run-time.
  */
-#define SITEARCH "$sitearch"		/**/
-#define SITEARCH_EXP "$sitearchexp"		/**/
+#$d_sitearch SITEARCH "$sitearch"		/**/
+#$d_sitearch SITEARCH_EXP "$sitearchexp"		/**/
 
 /* SITELIB:
  *	This symbol contains the name of the private library for this package.
End of Patch.

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About