[PPL-devel] [GIT] ppl/ppl(master): Replaced $(cmd) with `cmd` in m4 autoconf files.

Abramo Bagnara abramo.bagnara at gmail.com
Sun Dec 19 10:09:01 CET 2010


Module: ppl/ppl
Branch: master
Commit: 99a25a1ecae28222bb8ee84fc6d4d5d1219ad34f
URL:    http://www.cs.unipr.it/git/gitweb.cgi?p=ppl/ppl.git;a=commit;h=99a25a1ecae28222bb8ee84fc6d4d5d1219ad34f

Author: Abramo Bagnara <abramo.bagnara at gmail.com>
Date:   Sun Dec 19 10:08:48 2010 +0100

Replaced $(cmd) with `cmd` in m4 autoconf files.

---

 m4/ac_check_sicstus_prolog.m4 |    3 ++-
 m4/ac_check_xsb_prolog.m4     |    8 ++++----
 2 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/m4/ac_check_sicstus_prolog.m4 b/m4/ac_check_sicstus_prolog.m4
index 6d9c841..ff30eb8 100644
--- a/m4/ac_check_sicstus_prolog.m4
+++ b/m4/ac_check_sicstus_prolog.m4
@@ -28,7 +28,8 @@ then
   dnl The following would fail to find the real base if `sicstus'
   dnl is a symbolic link.
   dnl sicstus_prolog_base=$(dirname $(dirname $sicstus_prolog))
-  sicstus_prolog_base=$(dirname $($sicstus_prolog -f --goal "use_module(library(system)), environ('SP_APP_DIR', X), write(X), nl, halt."))
+  sicstus_prolog_app_dir=`$sicstus_prolog -f --goal "use_module(library(system)), environ('SP_APP_DIR', X), write(X), nl, halt."`
+  sicstus_prolog_base=`dirname $sicstus_prolog_app_dir`
   SICSTUS_PROLOG_INCLUDE_OPTIONS="-I${sicstus_prolog_base}/include"
   ac_save_CPPFLAGS="$CPPFLAGS"
   CPPFLAGS="$CPPFLAGS $SICSTUS_PROLOG_INCLUDE_OPTIONS"
diff --git a/m4/ac_check_xsb_prolog.m4 b/m4/ac_check_xsb_prolog.m4
index 7252b45..df03715 100644
--- a/m4/ac_check_xsb_prolog.m4
+++ b/m4/ac_check_xsb_prolog.m4
@@ -28,14 +28,14 @@ then
   dnl The foreign language interface include file is `cinterf.h',
   dnl but this resides in the emulator directory and is not installed
   dnl in any standard place.
-  xsb_emu_dir=$(xsb --nobanner --quietload --noprompt \
+  xsb_emu_dir=`xsb --nobanner --quietload --noprompt \
                 -e "write('emudir='), \
                   xsb_configuration(emudir, X), write(X), nl, halt." \
-                    2>/dev/null | sed "s/^emudir=//g")
-  xsb_config_dir=$(xsb --nobanner --quietload --noprompt \
+                    2>/dev/null | sed "s/^emudir=//g"`
+  xsb_config_dir=`xsb --nobanner --quietload --noprompt \
                    -e "write('config_dir='), \
                      xsb_configuration(config_dir,X), write(X), nl, halt." \
-                       2>/dev/null | sed "s/^config_dir=//g")
+                       2>/dev/null | sed "s/^config_dir=//g"`
   XSB_PROLOG_INCLUDE_OPTIONS="-I${xsb_emu_dir} -I${xsb_config_dir}"
   AC_SUBST(XSB_PROLOG_INCLUDE_OPTIONS)
 fi




More information about the PPL-devel mailing list