About 44,000 people were evacuated from France's Cap Ferret peninsula, while around 40,000 people in Spain's Madrid region were told to leave or stay indoors as wildfires spread.