Annual report pursuant to Section 13 and 15(d)

Changes in Gross Liability for Unrecognized Tax Benefits, Excluding Interest and Penalties (Detail)

v3.5.0.2
Changes in Gross Liability for Unrecognized Tax Benefits, Excluding Interest and Penalties (Detail) - USD ($)
$ in Thousands
12 Months Ended
Aug. 31, 2016
Aug. 31, 2015
Aug. 31, 2014
Income Tax Disclosure [Abstract]      
Income (Loss) from Continuing Operations before Income Taxes, Domestic $ (19,182) $ 14,593 $ 84,854
Reconciliation of Unrecognized Tax Benefits, Excluding Amounts Pertaining to Examined Tax Returns [Roll Forward]      
Beginning balance 29,924 39,509  
Unrecognized Tax Benefits, Increase Resulting from Current Period Tax Positions 1,050 2,183 28,053
Unrecognized Tax Benefits, Increase Resulting from Prior Period Tax Positions 475 8,935 0
Decrease for tax positions taken in a prior period 0 (633) 0
Decrease due to lapse of statute of limitations (1,027) (4,464) (7,030)
Decrease due to settlements 0 (14,180) 0
Unrecognized Tax Benefits, Increase (Decrease) Resulting from Foreign Currency Translation (1,248) (1,426) 480
Ending balance 29,174 29,924 39,509
Income (Loss) from Continuing Operations before Income Taxes, Foreign (111,162) 10,798 89,172
Income (Loss) from Continuing Operations before Equity Method Investments, Income Taxes, Extraordinary Items, Noncontrolling Interest $ (130,344) $ 25,391 $ 174,026