Loic Dachary wrote:
Kenny MacDermid wrote:
Hello Loic,

Quick question. Do you plan to support osx for the pypoker-eval build? poker-eval builds fine, but pypoker-eval does not.

If so then I'll fire in a bug about it.

Thanks,

Kenny

I'm sure it's not a lot of work. Could you tell me what the error is ?

(I cc the list for future reference).

Cheers


Umm... the first error had to do with AC_LIB_RPATH. It required gettext to copy the config/config.rpath file over, which then opens a can of worms with the subdirs for gettext. I simply removed it and it works fine.

Second problem is that the ${PYTHON2_X_LIBS} isn't being added to the LIBADD, so it's not linking properly.

Please find attached the patch that I used to build on osx.

Also autoscan found two other missing checks, so it includes them as well (AC_PROG_RANLIB, AC_CHECK_FUNCS([memset]))

Kenny

Index: configure.ac
===================================================================
--- configure.ac        (revision 3736)
+++ configure.ac        (working copy)
@@ -40,8 +40,9 @@
 AC_LANG(C)
 AC_PROG_CPP
 AC_PROG_LIBTOOL
+AC_PROG_RANLIB
 
-AC_LIB_RPATH
+AC_CHECK_FUNCS([memset])
 
 AM_MAINTAINER_MODE
 
Index: Makefile.am
===================================================================
--- Makefile.am (revision 3736)
+++ Makefile.am (working copy)
@@ -38,7 +38,7 @@
 py2_5exec_LTLIBRARIES = _pokereval_2_5.la
 _pokereval_2_5_la_SOURCES = pypokereval.c
 _pokereval_2_5_la_LDFLAGS = -module -no-undefined -version-info 1:0:0
-_pokereval_2_5_la_LIBADD = ${POKER_EVAL_LIBS}
+_pokereval_2_5_la_LIBADD = ${PYTHON2_5_LIBS} ${POKER_EVAL_LIBS}
 _pokereval_2_5_la_CFLAGS = ${PYTHON2_5_CFLAGS} ${POKER_EVAL_CFLAGS} 
-DPYTHON_VERSION=\"2_5\" -D'VERSION_NAME(w)=w\#\#2_5'
 endif
 
@@ -46,7 +46,7 @@
 py2_4exec_LTLIBRARIES = _pokereval_2_4.la
 _pokereval_2_4_la_SOURCES = pypokereval.c
 _pokereval_2_4_la_LDFLAGS = -module -no-undefined -version-info 1:0:0
-_pokereval_2_4_la_LIBADD = ${POKER_EVAL_LIBS}
+_pokereval_2_4_la_LIBADD = ${PYTHON2_4_LIBS} ${POKER_EVAL_LIBS}
 _pokereval_2_4_la_CFLAGS = ${PYTHON2_4_CFLAGS} ${POKER_EVAL_CFLAGS} 
-DPYTHON_VERSION=\"2_4\" -D'VERSION_NAME(w)=w\#\#2_4'
 endif
 
@@ -54,7 +54,7 @@
 py2_3exec_LTLIBRARIES = _pokereval_2_3.la
 _pokereval_2_3_la_SOURCES = pypokereval.c
 _pokereval_2_3_la_LDFLAGS = -module -no-undefined -version-info 1:0:0
-_pokereval_2_3_la_LIBADD = ${POKER_EVAL_LIBS}
+_pokereval_2_3_la_LIBADD = ${PYTHON2_3_LIBS} ${POKER_EVAL_LIBS}
 _pokereval_2_3_la_CFLAGS = ${PYTHON2_3_CFLAGS} ${POKER_EVAL_CFLAGS} 
-DPYTHON_VERSION=\"2_3\" -D'VERSION_NAME(w)=w\#\#2_3'
 endif
 
_______________________________________________
Pokersource-users mailing list
[email protected]
https://mail.gna.org/listinfo/pokersource-users

Reply via email to