summaryrefslogtreecommitdiff
path: root/src/auto
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-03-16 15:13:45 +0100
committerBram Moolenaar <Bram@vim.org>2017-03-16 15:13:45 +0100
commitf3757f0c87bbd52c7989c85dcbd21511bffcbdd6 (patch)
tree498b5670475fcb798fb3a2a3231333192005f4f6 /src/auto
parent0f39a82b07b285e0c54162e1038348b2988a715c (diff)
downloadvim-git-f3757f0c87bbd52c7989c85dcbd21511bffcbdd6.tar.gz
patch 8.0.0464: can't find executable name on Solaris and FreeBSDv8.0.0464
Problem: Can't find executable name on Solaris and FreeBSD. Solution: Check for "/proc/self/path/a.out". (Danek Duvall) And for "/proc/curproc/file".
Diffstat (limited to 'src/auto')
-rwxr-xr-xsrc/auto/configure22
1 files changed, 16 insertions, 6 deletions
diff --git a/src/auto/configure b/src/auto/configure
index 73b9ce7d5..44532cf5e 100755
--- a/src/auto/configure
+++ b/src/auto/configure
@@ -10101,15 +10101,25 @@ fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /proc/self/exe" >&5
-$as_echo_n "checking for /proc/self/exe... " >&6; }
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /proc link to executable" >&5
+$as_echo_n "checking for /proc link to executable... " >&6; }
if test -L "/proc/self/exe"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
-$as_echo "yes" >&6; }
- $as_echo "#define HAVE_PROC_SELF_EXE 1" >>confdefs.h
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: /proc/self/exe" >&5
+$as_echo "/proc/self/exe" >&6; }
+ $as_echo "#define PROC_EXE_LINK \"/proc/self/exe\"" >>confdefs.h
+
+elif test -L "/proc/self/path/a.out"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: /proc/self/path/a.out" >&5
+$as_echo "/proc/self/path/a.out" >&6; }
+ $as_echo "#define PROC_EXE_LINK \"/proc/self/path/a.out\"" >>confdefs.h
+
+elif test -L "/proc/curproc/file"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: /proc/curproc/file" >&5
+$as_echo "/proc/curproc/file" >&6; }
+ $as_echo "#define PROC_EXE_LINK \"/proc/curproc/file\"" >>confdefs.h
else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi