diff options
author | Nicholas Clark <nick@ccl4.org> | 2011-09-28 00:15:32 +0200 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2011-09-28 00:15:32 +0200 |
commit | 9e68546f79174957f317b4b7abcf8be457602a6d (patch) | |
tree | a0bb0f4842103b6fbbbe202685371711db92869c /Configure | |
parent | 698ca84cd388c82246e9cc3789248bc413591374 (diff) | |
download | perl-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-x | Configure | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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 |