What determines if a human baby is male?

If having a penis!!!