Ark, you will not only want to glue, but tape each joint with electrical tape or air WILL enter enter the pipe and break the siphon.

You can use S&D PVC on the outlet side, but if lifting higher then 15" to the highest point, the suction will collapse the pipe...use schedule 40 on the inlet and dam crossover pipes. Install a Tee that can be sealed with a "test plug" or threaded cap at the highest point to fill the pipe with water while the outlet is capped off using a "test plug". Be sure to install a 45* elbow on the outlet so air can not run up your discharge pipe.

Cap the outlet, fill the pipe at the Tee as much as you can, seal the Tee, then stand to the side as you loosen the outlet plug. The weight of the water will create the siphon flow and the amount of water coming out will shock you.