Circuit to enable switching between antennas
You can buy SMT coaxial connectors that contain a switch. The antenna input is switched based on whether anything is plugged into the connector.

Just filter results by the feature "internal switch" or search for the term "RF micro-switch".