summaryrefslogtreecommitdiff
path: root/Configure
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2011-09-28 00:15:32 +0200
committerNicholas Clark <nick@ccl4.org>2011-09-28 00:15:32 +0200
commit9e68546f79174957f317b4b7abcf8be457602a6d (patch)
treea0bb0f4842103b6fbbbe202685371711db92869c /Configure
parent698ca84cd388c82246e9cc3789248bc413591374 (diff)
downloadperl-9e68546f79174957f317b4b7abcf8be457602a6d.tar.gz
Teach Configure about "procselfexe" on Solaris and NetBSD
Configure would already find /proc/self/exe on NetBSD, where /proc/self is a symlink to /proc/curproc. However, the revised probe avoids the extra symlink traversal. Configure did not previously probe for the relevant path on Solaris, /proc/self/path/a.out Rename the description of /proc/curproc/file from BSD to FreeBSD, as it seems that of the "big 3" BSDs, only FreeBSD uses this path. Based on a patch from Johann 'Myrkraverk' Oskarsson.
Diffstat (limited to 'Configure')
-rwxr-xr-xConfigure4
1 files changed, 3 insertions, 1 deletions
diff --git a/Configure b/Configure
index 80923f6060..fe2fcc9afe 100755
--- a/Configure
+++ b/Configure
@@ -16048,7 +16048,9 @@ procselfexe=''
val="$undef"
case "$d_readlink" in
"$define")
- set Linux /proc/self/exe BSD /proc/curproc/file
+ : NetBSD first as /proc/self is a symlink to /proc/curproc, and it feels
+ : more tidy to avoid an extra level of symlink
+ set NetBSD /proc/curproc/exe Linux /proc/self/exe FreeBSD /proc/curproc/file Solaris /proc/self/path/a.out
while test $# -gt 0; do
type=$1; try=$2
shift; shift