In most cases, if you are booked on a single itinerary with Air France for example, and your first flight is with Air France, and the second is a codeshare on KLM, you will not have to recheck bags during the layover to KLM. Your bags would be ticketed and checked all the way through to your final destination.