]> code.delx.au - pulseaudio/commitdiff
Don't use == for comparison in tests. Fix build with non-bash shells.
authorDiego Elio 'Flameeyes' Pettenò <flameeyes@gmail.com>
Fri, 15 May 2009 20:43:56 +0000 (22:43 +0200)
committerDiego Elio 'Flameeyes' Pettenò <flameeyes@gmail.com>
Fri, 15 May 2009 20:43:56 +0000 (22:43 +0200)
configure.ac

index 16e6648c2262aaf4667e8b5e863d0c74c4318740..37b9fc52aa802d6f06523daf1a7058687a9f8cb9 100644 (file)
@@ -608,30 +608,30 @@ AC_ARG_WITH(
         [database],
         AS_HELP_STRING([--with-database=auto|tdb|gdbm],[Choose database backend.]),[],[with_database=auto])
 
-if test "x${with_database}" == "xauto" -o "x${with_database}" == "xtdb" ; then
+if test "x${with_database}" = "xauto" -o "x${with_database}" = "xtdb" ; then
     PKG_CHECK_MODULES(TDB, [ tdb ],
         [
             HAVE_TDB=1
             with_database=tdb
         ], [
-            if test "x${with_database}" == "xtdb" ; then
+            if test "x${with_database}" = "xtdb" ; then
                 AC_MSG_ERROR([*** tdb not found])
             fi
         ])
 fi
 
-if test "x${with_database}" == "xauto" -o "x${with_database}" == "xgdbm" ; then
+if test "x${with_database}" = "xauto" -o "x${with_database}" = "xgdbm" ; then
    have_gdbm=yes
 
    AC_CHECK_LIB(gdbm, gdbm_open, [], [have_gdbm=no])
    AC_CHECK_HEADERS(gdbm.h, [], [have_gdbm=no])
 
-   if test "x${have_gdbm}" == "xyes" ; then
+   if test "x${have_gdbm}" = "xyes" ; then
        HAVE_GDBM=1
        GDBM_CFLAGS=
        GDBM_LIBS=-lgdbm
        with_database=gdbm
-   elif test "x${with_database}" == "xgdbm"; then
+   elif test "x${with_database}" = "xgdbm"; then
        AC_MSG_ERROR([*** gdbm not found])
    fi
 fi