Surfwear maker Quiksilver Inc has agreed to buy skateboarding footwear and apparel company DC Shoes Inc for about $87.7 million in cash and stock.