Oui j'ai simplifie le fichier configure.ac pour que le ./configure passe (il me plantait aussi avant).<br /><br /># -*- Autoconf -*-<br /># Process this file with autoconf to produce a configure script.<br /><br />AC_PREREQ(2.61)<br />AC_INIT(gameandwatch, 0.1,
rreale@bol.com.br)<br />AM_INIT_AUTOMAKE(gameandwatch, 0.1)<br />AC_CONFIG_SRCDIR([src/gamewatch.cpp])<br />AC_CONFIG_HEADER([config.h])<br /><br /># Checks for programs.<br />AC_PROG_CXX<br />AC_PROG_CC<br /><br /># initialize<br />CXXFLAGS="-DGW_USE_ZDATA"<br />LIBS="-lzzip"<br /><br /># Checks for libraries.<br /><br /># Use the macro SDL provides to check the installed version of the SDL<br /># development environment. Abort the configuration process if the<br /># minimum version we require isn't available.<br /><br /># Add the SDL preprocessor flags and libraries to the build process<br />CFLAGS="$CFLAGS $SDL_CFLAGS"<br />CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"<br />LIBS="$LIBS $SDL_LIBS"<br /><br /># Check for SDL_mixer<br />LIBS="$LIBS -lSDL_mixer"<br /><br /># Check for SDL_ttf<br />LIBS="$LIBS -lSDL_ttf"<br /><br /># Check for SDL_image<br />LIBS="$LIBS -lSDL_image"<br /><br /># Check for SDL_gfx<br />LIBS="$LIBS -lSDL_gfx"<br /><br /># boost-filesystem<br />LIBS="$LIBS $BOOST_LDFLAGS -lboost_filesystem"<br /><br /># Checks for header files.<br /><br /># Checks for typedefs, structures, and compiler characteristics.<br />AC_HEADER_STDBOOL<br />AC_C_CONST<br />AC_TYPE_MODE_T<br />AC_STRUCT_TM<br /><br /># Checks for library functions.<br />AC_CHECK_FUNCS([atexit])<br /><br />AC_OUTPUT(Makefile src/Makefile data/Makefile doc/Makefile)<br /><br />Et ensuite modifie quelques lignes au makefile du dossier src:<br /><br />CPPFLAGS = -I/usr/local/include/boost-1_35/ -I/usr/local/include/SDL/<br />et<br />LIBS = -lSDL -lzzip -lSDL_mixer -lSDL_ttf -lSDL_image -lSDL_gfx -lboost_filesystem-mt-1_35 -lboost_system-mt-1_35 -lSDLMain -framework Cocoa<br /><br />Parce que sinon il ne me trouvait pas des headers de la librairies boost. Le framework Cocoa et la lib SDLmain, c'est specifique au mac, sinon il y a une erreur comme quoi le main est introuvable...<br /><br />Je ne sais pas si c'est la facon la plus elegante de faire tourner ca, mais je ne m'y connais pas assez en ./configure/Makefile pour le faire plus proprement ;)