develooper Front page | perl.perl5.porters | Postings from January 2004

[PATCH] Make 'Configure -Dcf_by=...' work

Thread Next
From:
Gisle Aas
Date:
January 12, 2004 02:35
Subject:
[PATCH] Make 'Configure -Dcf_by=...' work
Message ID:
lrvfnh315c.fsf@caliper.activestate.com
ActivePerl tries to override the 'perl -V:cf_by' with './Configure
-Dcf_by=ActiveState ...' but it does not work as Configure always
overrides this setting.  This patch was provided by Neil Watkiss to
address this issue.

--Gisle


--- Configure.orig	2003-12-05 04:03:48.000000000 -0800
+++ Configure	2004-01-12 02:07:17.000000000 -0800
@@ -3458,13 +3458,16 @@
 
 : who configured the system
 cf_time=`LC_ALL=C; LANGUAGE=C; export LC_ALL; export LANGUAGE; $date 2>&1`
-cf_by=`(logname) 2>/dev/null`
 case "$cf_by" in
 "")
-	cf_by=`(whoami) 2>/dev/null`
+	cf_by=`(logname) 2>/dev/null`
 	case "$cf_by" in
-	"") cf_by=unknown ;;
-	esac ;;
+	"")
+		cf_by=`(whoami) 2>/dev/null`
+		case "$cf_by" in
+		"") cf_by=unknown ;;
+		esac ;;
+	esac
 esac
 
 : set up the script used to warn in case of inconsistency


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