Merck & Co Inc has reached an agreement to acquire Idenix Pharmaceuticals Inc for $3.85 billion in a move that will strengthen its portfolio of candidate drugs for hepatitis C infection, a disease that has only recently been treated with a new generation of direct-acting antiviral drugs.