From what I gathered, it was PM Fillon, not President Sarkozy, who "declared war". Obviously it was mainly nationalistic pathos aimed at domestic audience rather than any concrete "declaration" (in a political, not legal sense) of war against AQIM.

Here's some rather good coverage of it