From 29252a6a5e757bc3bf02cc647e1951add3a92914 Mon Sep 17 00:00:00 2001 From: Benjamin Reed Date: Sat, 26 Jan 2008 14:40:48 -0500 Subject: [PATCH] Minor shell syntax change --- configure.in | 10 ++++++---- 1 files changed, 6 insertions(+), 4 deletions(-) diff --git a/configure.in b/configure.in index f6dd79f..624f853 100644 --- a/configure.in +++ b/configure.in @@ -964,7 +964,9 @@ else have_launchd=yes AC_CHECK_HEADER([launch.h], , have_launchd=no) AC_PATH_PROG([LAUNCHCTL], [launchctl]) - [ -z "$LAUNCHCTL" ] && have_launchd=no + if test "x$LAUNCHCTL" = "x"; then + have_launchd=no + fi if test x$enable_launchd = xyes -a x$have_launchd = xno ; then AC_MSG_ERROR([launchd support explicitly enabled but not available]) @@ -979,10 +981,10 @@ fi AM_CONDITIONAL(DBUS_ENABLE_LAUNCHD, test x$have_launchd = xyes) #### Directory to place launchd agent file -if ! test -z "$with_launchd_agent_dir"; then - LAUNCHD_AGENT_DIR="$with_launchd_agent_dir" -else +if test "x$with_launchd_agent_dir" = "x"; then LAUNCHD_AGENT_DIR="/Library/LaunchAgents" +else + LAUNCHD_AGENT_DIR="$with_launchd_agent_dir" fi AC_SUBST(LAUNCHD_AGENT_DIR) -- 1.5.3.7