--- configure.ac | 6 ++++++ gobject/run-bindtests | 10 ++++++++-- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 2ca0c47..f15db58 100644 --- a/configure.ac +++ b/configure.ac @@ -1017,6 +1017,12 @@ AS_IF( ) AM_CONDITIONAL([HAVE_GOBJECT],[test "x$GOBJECT_LIBS" != "x"]) +AC_CHECK_PROG([GJS],[gjs],[gjs],[no]) +AS_IF( + [test "x$GJS" = "xno"], + [AC_MSG_WARN([gjs not found, gobject bindtests will not run])] +) + dnl gobject introspection GOBJECT_INTROSPECTION_CHECK([1.30.0]) diff --git a/gobject/run-bindtests b/gobject/run-bindtests index 3df2333..32760bb 100755 --- a/gobject/run-bindtests +++ b/gobject/run-bindtests @@ -16,8 +16,14 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +GJS=`which gjs 2>/dev/null` +if [ -z "$GJS" ]; then + echo "GObject bind tests skipped: gjs is missing" + exit 0 +fi + set -e -../run gjs bindtests.js > bindtests.tmp +../run $GJS bindtests.js > bindtests.tmp diff -u ${srcdir}/../bindtests bindtests.tmp -../run gjs bindtests-manual.js 2>/dev/null +../run $GJS bindtests-manual.js 2>/dev/null -- 1.7.7.5