[cig-commits] r13469 - cs/autoconf/trunk
luis at geodynamics.org
luis at geodynamics.org
Mon Dec 8 02:36:01 PST 2008
Author: luis
Date: 2008-12-08 02:36:01 -0800 (Mon, 08 Dec 2008)
New Revision: 13469
Modified:
cs/autoconf/trunk/deb_ax_python.m4
Log:
Test expression needs quotes (or it breaks on Mac OS X)
Modified: cs/autoconf/trunk/deb_ax_python.m4
===================================================================
--- cs/autoconf/trunk/deb_ax_python.m4 2008-12-07 19:15:58 UTC (rev 13468)
+++ cs/autoconf/trunk/deb_ax_python.m4 2008-12-08 10:36:01 UTC (rev 13469)
@@ -64,14 +64,14 @@
for python in python2.5 python2.4 python2.3 python2.2 python2.1 python; do
AC_CHECK_PROGS(PYTHON_BIN, [$python])
ax_python_bin=$PYTHON_BIN
- if test x$ax_python_bin != x; then
+ if test "x$ax_python_bin" != x; then
AC_CHECK_LIB($ax_python_bin, main, ax_python_lib=$ax_python_bin, ax_python_lib=no)
AC_CHECK_HEADER([$ax_python_bin/Python.h],
[[ax_python_header=`locate $ax_python_bin/Python.h | sed -e s,/Python.h,,`]],
ax_python_header=no)
- if test $ax_python_lib != no; then
- if test $ax_python_header != no; then
+ if test "$ax_python_lib" != no; then
+ if test "$ax_python_header" != no; then
break;
fi
fi
@@ -79,15 +79,15 @@
fi
done
- if test x$ax_python_bin = x; then
+ if test "x$ax_python_bin" = x; then
ax_python_bin=no
fi
- if test x$ax_python_header = x; then
+ if test "x$ax_python_header" = x; then
ax_python_header=no
fi
- if test x$ax_python_lib = x; then
+ if test "x$ax_python_lib" = x; then
ax_python_lib=no
fi
@@ -96,13 +96,14 @@
AC_MSG_RESULT([ Library: $ax_python_lib])
AC_MSG_RESULT([ Include Dir: $ax_python_header])
- if test x$ax_python_header != xno; then
+ if test "x$ax_python_header" != xno; then
PYTHON_INCLUDE_DIR=$ax_python_header
AC_SUBST(PYTHON_INCLUDE_DIR)
fi
- if test x$ax_python_lib != xno; then
+ if test "x$ax_python_lib" != xno; then
PYTHON_LIB=$ax_python_lib
AC_SUBST(PYTHON_LIB)
fi
])dnl
+# vim: syntax=config
More information about the CIG-COMMITS
mailing list