--- rpl/src/Makefile.am 2010/08/13 21:00:36 1.34 +++ rpl/src/Makefile.am 2010/08/25 16:40:56 1.38 @@ -187,6 +187,7 @@ SRCC=\ rplcore.c\ semaphores.c\ sequenceur.c\ + siginfo.c\ simplification.c\ sommations.c\ sql.c\ @@ -357,7 +358,7 @@ generateurs.c: generateurs_aleatoires.aw rpl.inc: echo BUILDPATH=$(top_builddir)/.. > $@ echo COMPILE=$(DEFS) >> $@ - echo LINK=@libX@ @libMySQLlib@ @libPgSQLlib@ $(LIBS) >> $@ + echo LINK=@libX@ @libMySQLlib@ @libPgSQLlib@ -lz >> $@ echo OBJECTS=$(SRCCc:.c=.$(OBJEXT)) $(SRCFc:.f=.$(OBJEXT)) \ $(SRCF90c:.F90=.$(OBJEXT)) \ librpl-conv.$(OBJEXT) >> $@ @@ -409,11 +410,11 @@ INCLUDES = -I$(srcdir) -I$(top_builddir) $(include_libreadline) $(include_libncurses) $(include_libgsl) \ $(include_libiconv) $(include_libcrypto) $(include_libsqlite)\ @includeX@ @libMySQLinc@ @libPgSQLinc@ -DEFS = -DHAVE_CONFIG_H -Dd_version_rpl=\"@VERSION@\" \ +DEFS = -DHAVE_CONFIG_H -Dd_version_rpl=\"@VERSION@\" @BROKEN_SIGINFO@ \ -Dd_exec_path=\"@RUNPATH@\" @FORCE_GNUPLOT_PATH@ @DEBUG@ \ @MOTIF_SUPPORT@ @POSTSCRIPT_SUPPORT@ @GNUPLOT_SUPPORT@ \ @VIM_SUPPORT@ @MYSQL_SUPPORT@ @POSTGRESQL_SUPPORT@ \ - @SEMAPHORES_NOMMES@ @SEMAPHORES_SYSV@ @SEMUN@ @IPV6@ \ + @SEMAPHORES_NOMMES@ @SEMAPHORES_SYSV@ @IPCS_SYSV@ @SEMUN@ @IPV6@ \ @EXPERIMENTAL_CODE@ $(date) $(hash) -g @PROFILAGE@ \ -Dd_locale=\"@FINAL_ENCODING@\" \ -D@OS@ @@ -453,10 +454,18 @@ librpl: install-libLIBRARIES do \ cp -f $$i $(top_builddir)/librpl; \ done - (cd $(top_builddir)/librpl && \ - for i in *.a; do ar x $$i && rm -f $$i; done; \ - L="start"; \ + (cd $(top_builddir)/librpl && n=0 && \ echo Building standalone librpl.a; \ + for i in *.a; \ + do echo Extracting $$i; ar x $$i; \ + for j in `ar t $$i`; \ + do cp -f $$j $$n-$$j; \ + rm -f $$j; \ + done; \ + n=`expr $$n + 1`; \ + rm -f $$i; \ + done; \ + L="start"; \ while test -n "$$L"; \ do \ L=""; j=0; \ @@ -476,6 +485,9 @@ librpl: install-libLIBRARIES ls *.$(OBJEXT) 2> /dev/null | wc -l; \ done; \ echo Done; \ - ar s librpl.a); \ - mv -f $(top_builddir)/librpl/librpl.a $(top_builddir)/src/librpl.a + ar s librpl.a; \ + if [ @OS@ != OS2 ]; then \ + echo Stripping librpl.a && strip -d librpl.a; \ + fi;); \ + $(INSTALL_DATA) $(top_builddir)/librpl/librpl.a $(DESTDIR)$(libdir)/librpl.a