jaehyun pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=9386e2dd77f7a1046e8aab56b5e8183c56f8c863

commit 9386e2dd77f7a1046e8aab56b5e8183c56f8c863
Author: Jaehyun Cho <[email protected]>
Date:   Fri Jun 29 14:43:03 2018 +0900

    configure: check if realpath program exists
    
    Summary: If realpath program does not exist, then readlink program can be 
used.
    
    Test Plan:
    Execute configure and check the log "checking for realpath".
    If realpath program does not exist, then "checking for readlink" log is 
also printed.
    
    Reviewers: woohyun, lauromoura, devilhorns
    
    Reviewed By: lauromoura
    
    Subscribers: cedric, #committers, zmike
    
    Tags: #efl
    
    Differential Revision: https://phab.enlightenment.org/D6470
---
 configure.ac | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index 48782e88bf..fa8a570447 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1453,7 +1453,15 @@ AC_SUBST([CUSTOM_EXPORTS_MONO_DL_MONO])
 # Eos file/library mapping
 
 # Unescaped sed pattern: sed -n 
's/src\/lib\/\([a-z0-9_]*\)\/[a-z\/]*\/\([a-z0-9\._]*\)/\2,\1/pg'
-_configure_path=`realpath $0`
+AC_CHECK_PROG([have_realpath], [realpath], [yes], [no])
+if test "x${have_realpath}" = "xyes" ; then
+  _configure_path=`realpath $0`
+else
+  AC_CHECK_PROG([have_readlink], [readlink], [yes], [no])
+  if test "x${have_readlink}" = "xyes" ; then
+    _configure_path=`readlink -f $0`
+  fi
+fi
 efl_mono_top_srcdir=`dirname ${_configure_path}`
 EFL_MONO_LIBRARY_MAP=`find ${efl_mono_top_srcdir}/src/lib/ -iname "*\.eo" | 
sed -n 
's/.*\/src\/lib\/\(@<:@a-z0-9_@:>@*\)@<:@\/a-z@:>@*\/\(@<:@a-z0-9\._@:>@*\)/\2,\1/pg'`
 

-- 


Reply via email to