Mercurial > vim
comparison src/auto/configure @ 11154:0895f142cac3 v8.0.0464
patch 8.0.0464: can't find executable name on Solaris and FreeBSD
commit https://github.com/vim/vim/commit/f3757f0c87bbd52c7989c85dcbd21511bffcbdd6
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Mar 16 15:13:45 2017 +0100
patch 8.0.0464: can't find executable name on Solaris and FreeBSD
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".
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Thu, 16 Mar 2017 15:15:05 +0100 |
parents | 3b36da20ad73 |
children | e11d5966b822 |
comparison
equal
deleted
inserted
replaced
11153:11200da8a321 | 11154:0895f142cac3 |
---|---|
10099 | 10099 |
10100 fi | 10100 fi |
10101 | 10101 |
10102 | 10102 |
10103 | 10103 |
10104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /proc/self/exe" >&5 | 10104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /proc link to executable" >&5 |
10105 $as_echo_n "checking for /proc/self/exe... " >&6; } | 10105 $as_echo_n "checking for /proc link to executable... " >&6; } |
10106 if test -L "/proc/self/exe"; then | 10106 if test -L "/proc/self/exe"; then |
10107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 10107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: /proc/self/exe" >&5 |
10108 $as_echo "yes" >&6; } | 10108 $as_echo "/proc/self/exe" >&6; } |
10109 $as_echo "#define HAVE_PROC_SELF_EXE 1" >>confdefs.h | 10109 $as_echo "#define PROC_EXE_LINK \"/proc/self/exe\"" >>confdefs.h |
10110 | 10110 |
10111 else | 10111 elif test -L "/proc/self/path/a.out"; then |
10112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 10112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: /proc/self/path/a.out" >&5 |
10113 $as_echo "/proc/self/path/a.out" >&6; } | |
10114 $as_echo "#define PROC_EXE_LINK \"/proc/self/path/a.out\"" >>confdefs.h | |
10115 | |
10116 elif test -L "/proc/curproc/file"; then | |
10117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: /proc/curproc/file" >&5 | |
10118 $as_echo "/proc/curproc/file" >&6; } | |
10119 $as_echo "#define PROC_EXE_LINK \"/proc/curproc/file\"" >>confdefs.h | |
10120 | |
10121 else | |
10122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10113 $as_echo "no" >&6; } | 10123 $as_echo "no" >&6; } |
10114 fi | 10124 fi |
10115 | 10125 |
10116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGWIN or MSYS environment" >&5 | 10126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGWIN or MSYS environment" >&5 |
10117 $as_echo_n "checking for CYGWIN or MSYS environment... " >&6; } | 10127 $as_echo_n "checking for CYGWIN or MSYS environment... " >&6; } |