version 1.1, 2019/03/22 00:14:50 |
version 1.4, 2022/01/04 01:34:23 |
|
|
ac_subst_vars='LTLIBOBJS |
ac_subst_vars='LTLIBOBJS |
LIBOBJS |
LIBOBJS |
TARGET |
TARGET |
|
LIB_CONFIG |
X_EXTRA_LIBS |
X_EXTRA_LIBS |
X_LIBS |
X_LIBS |
X_PRE_LIBS |
X_PRE_LIBS |
|
|
fi |
fi |
|
|
|
|
|
|
TARGET=ox_python |
TARGET=ox_python |
case "${host}" in |
case "${host}" in |
*-apple-darwin*) |
*-apple-darwin*) |
LIBS="-L../../lib -L/usr/local/lib -lox -lmpfr -lgmp -lgc" |
LIBS="-L../../lib -L/usr/local/lib -lox -lmpfr -lgmp -lgc" |
CFLAGS="${CPPFLAGS} -Wno-attributes -I../../include -I /usr/local/include" |
CFLAGS="${CPPFLAGS} -Wno-attributes -I../../include -I /usr/local/include" |
PYTHON_CONFIG="`python-config --cflags`" |
|
;; |
;; |
|
*-linux-gnu*) |
|
LIBS_GCC=" " |
|
LIBS_OX="-L../../lib -lox -lmpfr -lgmp -lgc" |
|
LIBS="${LIBS_GCC} ${LIBS_OX}" |
|
CFLAGS="${CPPFLAGS} -Wno-attributes -I../../include -I /usr/local/include " |
|
;; |
*) |
*) |
LIBS_GCC="-L/usr/local/lib -L/usr/local/lib/gcc49 -Wl,-rpath=/usr/local/lib/gcc49" |
LIBS_GCC="-L/usr/local/lib -L/usr/local/lib/gcc49 -Wl,-rpath=/usr/local/lib/gcc49" |
LIBS_OX="-L../../lib -lox -lmpfr -lgmp -lgc" |
LIBS_OX="-L../../lib -lox -lmpfr -lgmp -lgc" |
LIBS="${LIBS_GCC} ${LIBS_OX}" |
LIBS="${LIBS_GCC} ${LIBS_OX}" |
CFLAGS="${CPPFLAGS} -Wno-attributes -I../../include -I /usr/local/include " |
CFLAGS="${CPPFLAGS} -Wno-attributes -I../../include -I /usr/local/include " |
PYTHON_CONFIG="`python2-config --cflags`" |
|
;; |
;; |
esac |
esac |
|
|
|
LIB_CONFIG="" |
|
python3-config --embed |
|
case "$?" in |
|
0) |
|
LIB_CONFIG="python3-config --ldflags --embed" |
|
;; |
|
*) |
|
LIB_CONFIG="python3-config --ldflags" |
|
;; |
|
esac |
|
|
|
|
|
|
|
|