L- and D-amino acid configurations are based on the stereochemical reference compound D- and L-glyceraldehyde, not glucose. Glyceraldehyde is the standard chiral reference molecule in organic chemistry. L-glucose and D-glucose themselves are assigned based on glyceraldehyde configuration.