ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/acinclude.m4
(Generate patch)

Comparing deliantra/server/acinclude.m4 (file contents):
Revision 1.5 by elmex, Sun Aug 13 17:15:59 2006 UTC vs.
Revision 1.6 by root, Sun Aug 13 17:47:24 2006 UTC

89 AC_CHECK_LIB(dl, main, PY_LIBS="$PY_LIBS -ldl", , $PY_LIBS ) 89 AC_CHECK_LIB(dl, main, PY_LIBS="$PY_LIBS -ldl", , $PY_LIBS )
90 90
91 AC_MSG_CHECKING([whether python supports the "L" format specifier]) 91 AC_MSG_CHECKING([whether python supports the "L" format specifier])
92 saved_LIBS="$LIBS" 92 saved_LIBS="$LIBS"
93 LIBS="$LIBS $PYTHON_LIB $PY_LIBS" 93 LIBS="$LIBS $PYTHON_LIB $PY_LIBS"
94 saved_CFLAGS="$CFLAGS" 94 saved_CXXFLAGS="$CXXFLAGS"
95 CFLAGS="$CFLAGS $PY_INCLUDES" 95 CXXFLAGS="$CXXFLAGS $PY_INCLUDES"
96 AC_TRY_RUN([ 96 AC_TRY_RUN([
97#include <Python.h> 97#include <Python.h>
98#include <stdlib.h> 98#include <stdlib.h>
99 99
100static PyObject *callback(PyObject *self, PyObject *args) 100static PyObject *callback(PyObject *self, PyObject *args)
130 ], 130 ],
131 [ 131 [
132 AC_MSG_RESULT([skipped because cross compiling]) 132 AC_MSG_RESULT([skipped because cross compiling])
133 ]) 133 ])
134 LIBS="$saved_LIBS" 134 LIBS="$saved_LIBS"
135 CFLAGS="$saved_CFLAGS" 135 CXXFLAGS="$saved_CXXFLAGS"
136 fi 136 fi
137 fi 137 fi
138 138
139 if test "x$PYTHON_LIB" = "x" ; then 139 if test "x$PYTHON_LIB" = "x" ; then
140 $2 140 $2

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines