From e2b85e946aade5c4debe952439bbe9b835bf5b0e Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Sun, 3 Oct 2010 05:02:58 -0400 Subject: [PATCH] FS-287: fix bsd shell incompatibility --- Makefile.am | 4 ++-- libs/broadvoice/configure.ac | 2 +- libs/ilbc/configure.ac | 6 +++--- libs/libg722_1/configure.ac | 2 +- libs/spandsp/configure.ac | 4 ++-- libs/spandsp/unpack_gsm0610_data.sh | 4 ++-- libs/sqlite/configure.ac | 2 +- 7 files changed, 12 insertions(+), 12 deletions(-) diff --git a/Makefile.am b/Makefile.am index ad04fde392..b11e3ff988 100644 --- a/Makefile.am +++ b/Makefile.am @@ -367,14 +367,14 @@ src/include/switch_version.h: src/include/switch_version.h.in .version $(libfree else \ if [ -d .git ] ; then \ version=`git log --format="%h %ci" -1 HEAD | head -1 | sed -e 's|:|-|g' || echo hacked` ; \ - if [ "x$$version" == "xhacked" ] ; then \ + if [ "x$$version" = "xhacked" ] ; then \ version="hacked-`date -u +%Y%m%dT%H%M%SZ`" ; \ else \ version="git-$$version" ; \ fi ;\ else \ version=`svnversion . -n || echo hacked` ; \ - if [ "x$$version" == "xhacked" ] ; then \ + if [ "x$$version" = "xhacked" ] ; then \ version="hacked-`date -u +%Y%m%dT%H%M%SZ`" ; \ else \ version="svn-$$version" ; \ diff --git a/libs/broadvoice/configure.ac b/libs/broadvoice/configure.ac index d42ee823eb..ceb92a57cb 100644 --- a/libs/broadvoice/configure.ac +++ b/libs/broadvoice/configure.ac @@ -207,7 +207,7 @@ AC_CHECK_HEADERS([sndfile.h]) AC_LANG([C]) -if test "${build}" == "${host}" +if test "${build}" = "${host}" then case "${host}" in x86_64-*) diff --git a/libs/ilbc/configure.ac b/libs/ilbc/configure.ac index b3fda17c66..3dbfb24abd 100644 --- a/libs/ilbc/configure.ac +++ b/libs/ilbc/configure.ac @@ -175,14 +175,14 @@ AC_CHECK_HEADERS([sys/select.h]) AC_CHECK_HEADERS([sys/ioctl.h]) AC_CHECK_HEADERS([sys/fcntl.h]) AC_CHECK_HEADERS([audiofile.h]) -if test "${build}" == "${host}" +if test "${build}" = "${host}" then AC_CHECK_HEADERS([X11/X.h]) fi AC_LANG([C++]) -if test "${build}" == "${host}" +if test "${build}" = "${host}" then case "${host}" in x86_64-*) @@ -193,7 +193,7 @@ fi AC_LANG([C]) -if test "${build}" == "${host}" +if test "${build}" = "${host}" then case "${host}" in x86_64-*) diff --git a/libs/libg722_1/configure.ac b/libs/libg722_1/configure.ac index a60a69bc93..64e276b280 100644 --- a/libs/libg722_1/configure.ac +++ b/libs/libg722_1/configure.ac @@ -190,7 +190,7 @@ AC_CHECK_HEADERS([audiofile.h]) AC_LANG([C]) -if test "${build}" == "${host}" +if test "${build}" = "${host}" then case "${host}" in x86_64-*) diff --git a/libs/spandsp/configure.ac b/libs/spandsp/configure.ac index 3aeb44ff52..7914885d79 100644 --- a/libs/spandsp/configure.ac +++ b/libs/spandsp/configure.ac @@ -207,7 +207,7 @@ AC_CHECK_HEADERS([fenv.h]) AC_CHECK_HEADERS([fftw3.h], , [AC_CHECK_HEADERS([fftw.h])]) AC_CHECK_HEADERS([pcap.h]) AC_CHECK_HEADERS([pthread.h]) -if test "${build}" == "${host}" +if test "${build}" = "${host}" then AC_CHECK_HEADERS([X11/X.h]) fi @@ -253,7 +253,7 @@ AC_CHECK_HEADERS([FL/Fl_Audio_Meter.H], [], [], [],[[#include AC_LANG([C]) -if test "${build}" == "${host}" +if test "${build}" = "${host}" then case "${host}" in x86_64-*) diff --git a/libs/spandsp/unpack_gsm0610_data.sh b/libs/spandsp/unpack_gsm0610_data.sh index d1f8b92a23..482334c79e 100755 --- a/libs/spandsp/unpack_gsm0610_data.sh +++ b/libs/spandsp/unpack_gsm0610_data.sh @@ -53,7 +53,7 @@ else cd gsm0610 fi -if [ $1x == --no-exe-runx ] +if [ $1x = --no-exe-runx ] then # Run the .exe files, which should be here ./FR_A.EXE @@ -77,7 +77,7 @@ rm -rf READ_FRA.TXT rm -rf ACTION rm -rf unpacked -if [ $1x == --no-exex ] +if [ $1x = --no-exex ] then # We need to prepare the .exe files to be run separately rm -rf *.INP diff --git a/libs/sqlite/configure.ac b/libs/sqlite/configure.ac index fc21161fda..75d6f512d1 100644 --- a/libs/sqlite/configure.ac +++ b/libs/sqlite/configure.ac @@ -447,7 +447,7 @@ if test "$TARGET_EXEEXT" = ".exe"; then OS_WIN=0 OS_OS2=1 TARGET_CFLAGS="$TARGET_CFLAGS -DOS_OS2=1" - if test "$ac_compiler_gnu" == "yes" ; then + if test "$ac_compiler_gnu" = "yes" ; then TARGET_CFLAGS="$TARGET_CFLAGS -Zomf -Zexe -Zmap" BUILD_CFLAGS="$BUILD_CFLAGS -Zomf -Zexe" fi