Over 40,000 people have been evacuated across southern Europe as record wildfires burn in France and Spain, with the EU dispatching firefighting aircraft from six member states.