Changeset: 557404a473ad for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=557404a473ad
Modified Files:
buildtools/conf/MonetDB.m4
Branch: Oct2010
Log Message:
Avoid command [ ... ] in configure, use command test ... instead.
diffs (54 lines):
diff -r f8e82a8baa9b -r 557404a473ad buildtools/conf/MonetDB.m4
--- a/buildtools/conf/MonetDB.m4 Thu Nov 18 13:15:31 2010 +0100
+++ b/buildtools/conf/MonetDB.m4 Thu Nov 18 13:16:14 2010 +0100
@@ -2008,7 +2008,7 @@
dnl static or shared linking
SHARED_LIBS=''
[
-if [ "$enable_static" = "yes" ]; then
+if test "$enable_static" = "yes"; then
CFLAGS="$CFLAGS -DMONETDB_STATIC"
SHARED_LIBS='$(STATIC_LIBS) $(smallTOC_SHARED_LIBS)
$(largeTOC_SHARED_LIBS)'
case "$host_os" in
@@ -2760,9 +2760,9 @@
AC_CHECK_PROG(FIG2DEV,fig2dev,fig2dev)
FIG2DEV_EPS=eps
AC_MSG_CHECKING([$FIG2DEV postscript option])
-[ if [ "$FIG2DEV" ]; then
+[ if test "$FIG2DEV"; then
echo "" | $FIG2DEV -L$FIG2DEV_EPS 2>/dev/null
- if [ $? -ne 0 ]; then
+ if test $? -ne 0; then
FIG2DEV_EPS=ps
fi
fi ]
@@ -2772,16 +2772,16 @@
INSTALL_BACKUP=""
AC_MSG_CHECKING([$INSTALL --backup option])
-[ if [ "$INSTALL" ]; then
+[ if test "$INSTALL"; then
inst=`echo $INSTALL | sed 's/ .*//'`
- if [ ! "`file $inst | grep 'shell script' 2>/dev/null`" ] ; then
+ if test ! "`file $inst | grep 'shell script' 2>/dev/null`" ; then
echo "" > c 2>/dev/null
$INSTALL --backup=nil c d 1>/dev/null 2>/dev/null
- if [ $? -eq 0 ]; then
+ if test $? -eq 0; then
INSTALL_BACKUP="--backup=nil"
fi
$INSTALL -C --backup=nil c e 1>/dev/null 2>/dev/null
- if [ $? -eq 0 ]; then
+ if test $? -eq 0; then
INSTALL_BACKUP="-C --backup=nil"
fi
fi
@@ -2915,7 +2915,7 @@
MEL="$withval"
fi
if test x$MEL = x; then
- if [ -z "$1" ]; then
+ if test -z "$1"; then
AC_MSG_ERROR([mel is required])
fi
have_mel=no
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list