Permalink
Browse files

test(1)'s equality operator is '=' not '=='.

'==' does work in some implementations though.
  • Loading branch information...
1 parent b132820 commit 86500486e77860b7418e0bf2d8fa312db2484037 @rmn64k rmn64k committed Feb 10, 2009
Showing with 4 additions and 4 deletions.
  1. +4 −4 configure.ac
View
@@ -56,15 +56,15 @@ AC_COMPILE_IFELSE([
int main(void) { return clock_gettime(CLOCK_MONOTONIC, (void *)0); }
], clock_gettime=yes, clock_gettime=no)
AC_MSG_RESULT($clock_gettime)
-if test $clock_gettime == yes; then
+if test $clock_gettime = yes; then
old_LIBS=$LIBS
LIBS=""
AC_SEARCH_LIBS(clock_gettime,rt,clock_gettime=yes,clock_gettime=no)
AC_SUBST(CLOCKLIB,$LIBS)
LIBS=$old_LIBS
AC_DEFINE(HAVE_CLOCK_MONOTONIC)
fi
-if test $clock_gettime == no; then
+if test $clock_gettime = no; then
AC_CHECK_FUNCS(mach_absolute_time,,
AC_MSG_FAILURE(no supported time mechanism found))
fi
@@ -108,7 +108,7 @@ for m in $evloop_methods; do
;;
esac
done
-if test x"$EVLOOP_METHOD" == x; then
+if test x"$EVLOOP_METHOD" = x; then
AC_MSG_FAILURE(no suitable evloop method found)
exit 1
else
@@ -117,7 +117,7 @@ fi
for i in 0 1 2 3 4 5 6 7; do
case $i in
- 0) if test x"$TD_CFLAGS$TD_LIBS" == x; then continue; fi;;
+ 0) if test x"$TD_CFLAGS$TD_LIBS" = x; then continue; fi;;
1) TD_CFLAGS=-pthread;;
2) TD_CFLAGS=-pthreads;;
3) TD_CFLAGS=-kthread;;

0 comments on commit 8650048

Please sign in to comment.